:root {
  --navy: #06162d;
  --navy2: #09264c;
  --blue: #0c4a8a;
  --royal: #1257b2;
  --gold: #d6aa42;
  --gold2: #fff1aa;
  --soft: #f4f8ff;
  --text: #10233f;
  --muted: #71829c;
  --line: #e8eef7;
  --white: #ffffff;
  --green: #16824a;
  --red: #b73535;
  --shadow: 0 24px 70px rgba(10, 35, 70, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
body { color: var(--text); background: #f6f9ff; }
button, a { cursor: pointer; }
a { text-decoration: none; color: inherit; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 6%; background: rgba(255,255,255,.88); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(232,238,247,.8);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark { width: 76px; height: 76px; border-radius: 18px; display: grid; place-items: center; background: transparent; box-shadow: none; overflow: visible; }
.brand-mark svg { width: 74px; height: 74px; display: block; filter: drop-shadow(0 10px 18px rgba(6,22,45,.18)); }
.logo { font-size: 21px; font-weight: 850; letter-spacing: -.5px; color: var(--navy); }
.tagline { font-size: 12px; color: var(--muted); margin-top: 3px; }
.menu { display: flex; align-items: center; gap: 24px; color: #314765; font-weight: 700; font-size: 14px; }
.login-btn { padding: 12px 18px; border: none; border-radius: 999px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--royal)); font-weight: 850; box-shadow: 0 14px 35px rgba(18,87,178,.2); display: inline-block; }

.page { display: block; }
.page.hidden { display: none; }

.hero-home {
  min-height: 650px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  padding: 58px 6% 70px;
  background:
    radial-gradient(circle at 85% 15%, rgba(214,170,66,.22), transparent 28%),
    linear-gradient(135deg, #06162d 0%, #092f5f 54%, #f6f9ff 54%, #f6f9ff 100%);
  overflow: hidden;
}
.hero-copy { color: white; max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); color: var(--gold2); font-weight: 800; font-size: 13px; margin-bottom: 22px; }
.hero-copy h1 { font-size: clamp(42px, 5vw, 72px); line-height: .98; letter-spacing: -2.6px; margin-bottom: 22px; }
.hero-copy p { color: rgba(255,255,255,.78); font-size: 18px; line-height: 1.7; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.primary { border: none; border-radius: 16px; padding: 15px 20px; background: linear-gradient(135deg, var(--gold), var(--gold2)); color: var(--navy); font-weight: 900; }
.secondary { border: 1px solid rgba(255,255,255,.2); border-radius: 16px; padding: 15px 20px; background: rgba(255,255,255,.1); color: white; font-weight: 850; }

.bank-card-showcase { justify-self: end; width: min(520px, 100%); }
.black-card { position: relative; min-height: 315px; border-radius: 34px; padding: 30px; color: white; background: radial-gradient(circle at 85% 18%, rgba(214,170,66,.45), transparent 26%), linear-gradient(135deg, #071325, #0b3d78 60%, #06162d); box-shadow: var(--shadow); overflow: hidden; }
.black-card::after { content: ""; position: absolute; width: 330px; height: 330px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); right: -135px; bottom: -150px; }
.chip { width: 58px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #fff1aa, var(--gold)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); margin-bottom: 42px; }
.card-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; position: relative; z-index: 1; }
.card-row small { color: rgba(255,255,255,.62); display: block; margin-bottom: 7px; }
.card-number { font-size: 25px; letter-spacing: 3px; margin-bottom: 26px; position: relative; z-index: 1; }

.stats-strip { width: min(1140px, 88%); margin: -42px auto 70px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; z-index: 2; }
.stat { background: white; padding: 24px; border-radius: 24px; box-shadow: 0 18px 50px rgba(10,35,70,.08); border: 1px solid rgba(255,255,255,.9); }
.stat h3 { font-size: 25px; color: var(--navy); margin-bottom: 6px; }
.stat p { color: var(--muted); font-weight: 650; font-size: 13px; }

.section-wrap { padding: 72px 6%; }
.section-title { max-width: 760px; margin-bottom: 30px; }
.section-title span { color: var(--gold); font-weight: 900; text-transform: uppercase; letter-spacing: 1px; font-size: 12px; }
.section-title h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -1.4px; margin-top: 8px; color: var(--navy); }
.section-title p { color: var(--muted); margin-top: 12px; line-height: 1.7; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { min-height: 210px; background: white; border-radius: 28px; padding: 26px; border: 1px solid var(--line); box-shadow: 0 18px 45px rgba(10,35,70,.06); transition: .2s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: #edf5ff; color: var(--blue); font-weight: 950; margin-bottom: 20px; }
.service-card h3 { font-size: 20px; margin-bottom: 10px; color: var(--navy); }
.service-card p { color: var(--muted); line-height: 1.65; font-size: 14px; }

.rates-card { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: stretch; }
.rates-panel, .visa-panel { border-radius: 32px; padding: 30px; box-shadow: var(--shadow); }
.rates-panel { background: linear-gradient(135deg, var(--navy), var(--navy2)); color: white; }
.rates-panel h2, .visa-panel h2 { font-size: 30px; letter-spacing: -1px; margin-bottom: 20px; }
.rate-row { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.rate-row:last-child { border-bottom: none; }
.rate-row span { color: rgba(255,255,255,.65); }
.rate-row strong { color: var(--gold2); font-size: 20px; }
.visa-panel { background: white; border: 1px solid var(--line); }
.visa-panel p { color: var(--muted); line-height: 1.7; margin-bottom: 22px; }
.dark-btn { border: none; border-radius: 16px; padding: 14px 18px; color: white; background: linear-gradient(135deg, var(--blue), var(--royal)); font-weight: 850; }

.contact-footer { background: var(--navy); color: white; padding: 45px 6%; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.contact-footer p, .contact-footer a { color: rgba(255,255,255,.72); line-height: 1.8; }

.portal-layout { display: grid; grid-template-columns: 310px 1fr; min-height: 100vh; background: radial-gradient(circle at top left, rgba(214,170,66,.18), transparent 32%), radial-gradient(circle at 90% 10%, rgba(18,87,178,.18), transparent 30%), linear-gradient(135deg, #f4f7fc 0%, #eef4fb 100%); }
.sidebar { position: relative; background: linear-gradient(180deg, #041124 0%, #071b36 45%, #03101f 100%); color: white; padding: 30px 22px; overflow: hidden; border-right: 1px solid rgba(214,170,66,.18); }
.sidebar::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(214,170,66,.15); top: -80px; right: -90px; }
.sidebar .brand { position: relative; margin-bottom: 38px; }
.nav { position: relative; display: grid; gap: 9px; }
.nav button { width: 100%; padding: 14px 15px; border: 1px solid transparent; border-radius: 17px; background: transparent; color: rgba(255,255,255,.82); text-align: left; font-size: 15px; cursor: pointer; transition: .2s ease; }
.nav button.active, .nav button:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.14); color: #fff; transform: translateX(3px); }
.sidebar-footer { position: absolute; left: 22px; right: 22px; bottom: 24px; padding: 18px; border-radius: 22px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(18px); }
.sidebar-footer small { display: block; opacity: .72; margin-bottom: 8px; } .sidebar-footer strong { color: var(--gold2); }
.main { padding: 30px; max-width: 1500px; width: 100%; margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; gap: 18px; }
.topbar h1 { font-size: 30px; letter-spacing: -.8px; } .topbar p { color: var(--muted); margin-top: 5px; font-size: 14px; }
.user-badge { min-width: 245px; background: rgba(255,255,255,.82); padding: 13px 15px; border-radius: 22px; display: flex; align-items: center; gap: 12px; box-shadow: 0 18px 45px rgba(10,35,70,.08); border: 1px solid rgba(255,255,255,.8); backdrop-filter: blur(18px); }
.avatar { width: 42px; height: 42px; border-radius: 15px; background: linear-gradient(135deg, #0c4a8a, #1257b2); color: white; display: grid; place-items: center; font-weight: 800; }
.user-badge span { font-size: 12px; color: var(--muted); }
.hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; margin-bottom: 22px; }
.premium-card { position: relative; min-height: 285px; border-radius: 34px; padding: 32px; color: white; overflow: hidden; background: radial-gradient(circle at 84% 12%, rgba(214,170,66,.55), transparent 28%), linear-gradient(135deg, #020a15 0%, #082d59 58%, #06162d 100%); box-shadow: 0 30px 90px rgba(6,22,45,.26); border: 1px solid rgba(255,255,255,.12); }
.premium-card::after { content: ""; position: absolute; width: 310px; height: 310px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); right: -120px; bottom: -140px; }
.premium-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
.premium-card p { color: rgba(255,255,255,.68); font-size: 13px; margin-bottom: 8px; } .premium-card h2 { font-size: 40px; letter-spacing: -1.4px; margin: 4px 0 26px; }
.account-meta { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 14px; }
.account-meta div { padding: 14px; border-radius: 18px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); } .account-meta strong { font-size: 15px; }
.quick-panel { display: grid; gap: 15px; }
.card { background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.95); border-radius: 30px; padding: 24px; box-shadow: 0 20px 60px rgba(10,35,70,.09); backdrop-filter: blur(20px); }
.mini-stat { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.mini-stat .icon { width: 46px; height: 46px; border-radius: 17px; background: #edf5ff; display: grid; place-items: center; color: var(--blue); font-weight: 900; }
.mini-stat p, .card p { font-size: 13px; color: var(--muted); margin-bottom: 6px; } .mini-stat h3 { font-size: 22px; letter-spacing: -.4px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 18px; margin-bottom: 22px; }
.balance-card h2 { font-size: 25px; letter-spacing: -.6px; } .balance-card .trend { display: inline-block; margin-top: 14px; padding: 7px 10px; border-radius: 999px; background: #e8f7ef; color: var(--green); font-size: 12px; font-weight: 700; }
.grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 22px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 12px; } .card h2 { font-size: 20px; letter-spacing: -.4px; }
.soft-btn { border: none; border-radius: 999px; padding: 9px 13px; background: #edf5ff; color: var(--blue); font-weight: 700; font-size: 12px; cursor: pointer; }
table { width: 100%; border-collapse: collapse; margin-top: 8px; } th, td { padding: 15px 10px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; } th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; font-weight: 800; } tr:last-child td { border-bottom: none; }
.status { padding: 7px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; background: #e8f7ef; color: var(--green); } .status.pending { background: #fff4d9; color: #9a6900; }
.amount-credit { color: var(--green); font-weight: 800; } .amount-debit { color: var(--red); font-weight: 800; }
.form-group { margin-bottom: 16px; } label { display: block; font-size: 13px; margin-bottom: 7px; color: var(--muted); font-weight: 700; }
input, select { width: 100%; padding: 14px; border: 1px solid #dce5f2; border-radius: 16px; outline: none; font-size: 14px; background: white; color: var(--text); } input:focus, select:focus { border-color: var(--royal); box-shadow: 0 0 0 4px rgba(18,87,178,.1); }
/* Native checkbox / radio inputs should not stretch to full width */
input[type="checkbox"], input[type="radio"] { width: auto; padding: 0; margin: 0; cursor: pointer; }
input[type="checkbox"]:focus, input[type="radio"]:focus { box-shadow: none; }
/* Compact account-row inside the Manage modal */
.acct-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; background: var(--soft); border-radius: 14px; margin-bottom: 8px; }
.acct-row .meta { font-size: 13px; color: var(--text); }
.acct-row .meta small { display: block; color: var(--muted); margin-top: 2px; font-size: 12px; }
.acct-row select { width: auto; padding: 8px 12px; font-size: 13px; }
.acct-status { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; margin-left: 8px; }
.acct-status.active { background: #e8f7ef; color: var(--green); }
.acct-status.locked { background: #fff4d9; color: #9a6900; }
.acct-status.closed { background: #fde7e7; color: var(--red); }
.primary-btn { width: 100%; padding: 15px; border: none; border-radius: 17px; background: linear-gradient(135deg, var(--blue), var(--royal)); color: white; font-weight: 800; cursor: pointer; margin-top: 5px; box-shadow: 0 16px 35px rgba(18,87,178,.22); }
.section { display: none; } .section.active { display: block; }
.notice { background: linear-gradient(135deg, #fff8e8, #fffdf5); border: 1px solid #f3dfaa; color: #7a5700; padding: 15px 17px; border-radius: 18px; font-size: 14px; margin-bottom: 18px; font-weight: 600; }
.profile-row { display: flex; justify-content: space-between; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); } .profile-row:last-child { border-bottom: none; } .profile-row strong { text-align: right; }

/* ===== Login page ===== */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; background: linear-gradient(135deg, #06162d, #092f5f); }
.login-card { background: white; border-radius: 32px; padding: 40px; width: min(420px, 100%); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.login-card h1 { font-size: 26px; margin-bottom: 8px; color: var(--navy); }
.login-card p.sub { color: var(--muted); margin-bottom: 26px; font-size: 14px; }
.err { background: #fde7e7; color: #b73535; padding: 12px 14px; border-radius: 14px; font-size: 13px; margin-bottom: 14px; display: none; }
.err.show { display: block; }
.msg { font-size: 13px; margin-top: 10px; min-height: 1em; font-weight: 700; }
.back-home { text-align: center; margin-top: 18px; font-size: 13px; }
.back-home a { color: var(--blue); font-weight: 700; }

/* ===== Modal (used by the admin Manage Customer panel) ===== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(6,22,45,0.65); backdrop-filter: blur(4px);
  z-index: 100;
  display: none; align-items: flex-start; justify-content: center;
  padding: 40px 20px; overflow-y: auto;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: white; border-radius: 28px;
  max-width: 760px; width: 100%;
  padding: 30px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  position: relative;
}
.modal h2 { font-size: 22px; margin-bottom: 6px; color: var(--navy); }
.modal .sub { color: var(--muted); margin-bottom: 22px; font-size: 13px; }
.modal-section {
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.modal-section:first-of-type { padding-top: 4px; }
.modal-section:last-of-type { border-bottom: none; }
.modal-section h3 {
  font-size: 14px; margin-bottom: 14px; color: var(--blue);
  text-transform: uppercase; letter-spacing: .6px; font-weight: 800;
}
.modal-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.modal-footer {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
}
.ghost-btn {
  background: transparent; border: 1px solid var(--line);
  color: var(--text); padding: 12px 20px; border-radius: 14px;
  font-weight: 700; cursor: pointer; font-size: 14px;
}
.ghost-btn:hover { background: var(--soft); }
.inline-primary-btn {
  border: none; border-radius: 14px; padding: 12px 22px;
  background: linear-gradient(135deg, var(--blue), var(--royal));
  color: white; font-weight: 800; cursor: pointer; font-size: 14px;
  box-shadow: 0 12px 28px rgba(18,87,178,.2);
}
input[type="file"] {
  padding: 10px; cursor: pointer;
}

@media (max-width: 700px) {
  .modal-row { grid-template-columns: 1fr; }
}

@media (max-width: 1050px) {
  .hero-home, .rates-card, .portal-layout { grid-template-columns: 1fr; }
  .stats-strip, .services, .cards, .grid, .hero { grid-template-columns: 1fr; }
  .hero-home { background: linear-gradient(135deg, #06162d, #092f5f); }
  .bank-card-showcase { justify-self: stretch; }
  .menu { display: none; }
  .sidebar-footer { position: static; margin-top: 22px; }
  .account-meta { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; } .user-badge { width: 100%; }
  .contact-footer { grid-template-columns: 1fr; }
}
