* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
}

body {
  background: linear-gradient(135deg, #0b1f3a 0%, #123a63 60%, #1c4e8c 100%);
  min-height: 100vh;
  color: #ffffff;
}

/* ---------- Screens ---------- */
.screen {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.screen.active {
  display: flex;
}

/* ---------- Login / Config card ---------- */
.login-card {
  background: #ffffff;
  color: #1a2b4a;
  border-radius: 14px;
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.brand {
  text-align: center;
  margin-bottom: 26px;
}
.brand .logo {
  width: 90px;
  height: auto;
  margin-bottom: 10px;
}
.brand h1 {
  font-size: 24px;
  color: #0b1f3a;
  letter-spacing: 0.5px;
}
.brand .tagline {
  color: #8a94a6;
  font-size: 13px;
  margin-top: 4px;
}

form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #3a4a63;
  margin: 14px 0 6px;
}

form input,
form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccd4e0;
  border-radius: 8px;
  font-size: 15px;
  color: #1a2b4a;
  background: #f7f9fc;
  outline: none;
  transition: border 0.2s;
}
form input:focus,
form select:focus {
  border-color: #c9a227;
  background: #ffffff;
}

.btn-primary {
  width: 100%;
  margin-top: 22px;
  padding: 13px;
  background: #0b1f3a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover {
  background: #c9a227;
}

.error {
  color: #c0392b;
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
}
.hidden {
  display: none !important;
}

.footer-note {
  text-align: center;
  color: #8a94a6;
  font-size: 12px;
  margin-top: 20px;
}

/* ---------- Dashboard ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #0b1f3a;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo.small {
  width: 38px;
}
.bank-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.clock {
  font-size: 14px;
  color: #c9a227;
  font-weight: 600;
}
.btn-ghost {
  background: transparent;
  border: 1px solid #c9a227;
  color: #c9a227;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
.btn-ghost:hover {
  background: #c9a227;
  color: #0b1f3a;
}

.dashboard {
  max-width: 720px;
  margin: 90px auto 40px;
  padding: 0 20px;
}
.dashboard h2 {
  font-size: 26px;
}
.dashboard .subtitle {
  color: #b9c6d8;
  margin: 6px 0 24px;
}

.account-card {
  background: #ffffff;
  color: #1a2b4a;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.account-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eef1f6;
}
.account-row .label {
  color: #8a94a6;
}
.account-row .value {
  font-weight: 600;
}

.balance-box {
  margin-top: 18px;
  text-align: center;
  background: #f4f7fb;
  border-radius: 10px;
  padding: 22px;
}
.balance-box .label {
  color: #8a94a6;
  font-size: 13px;
}
.balance {
  display: block;
  font-size: 40px;
  font-weight: 800;
  color: #0b1f3a;
  margin-top: 6px;
}
.block-status {
  display: inline-block;
  margin-top: 12px;
  background: #c0392b;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
}

.info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.info-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.info-box .label {
  display: block;
  color: #b9c6d8;
  font-size: 12px;
  margin-bottom: 6px;
}
.info-box .value {
  font-weight: 700;
  font-size: 15px;
}

@media (max-width: 600px) {
  .info-row {
    grid-template-columns: 1fr;
  }
}