/* =========================================================
   PayNova — VTU App Stylesheet
   Theme: White & Blue (Moniepoint-inspired)
========================================================= */

:root{
  --blue-900:#04255c;
  --blue-800:#07316f;
  --blue-700:#0a3d91;
  --blue-600:#0f52b4;
  --blue-500:#1868db;
  --blue-100:#e7f0ff;
  --blue-50:#f3f8ff;
  --white:#ffffff;
  --surface:#f8fafc; /* softened off-white for card/panel backgrounds — lighter than page bg for depth */
  --surface-rgb:248,250,252;
  --ink:#0f1a2b;
  --gray-700:#4b5768;
  --gray-500:#7c8a9e;
  --gray-300:#dde5ef;
  --gray-100:#eaeff6; /* page background — a touch deeper than card surfaces */
  --green:#12a454;
  --green-100:#e7f9ef;
  --red:#e0392f;
  --red-100:#fdeceb;
  --amber:#c98a05;
  --amber-100:#fdf3df;
  --radius-sm:10px;
  --radius-md:16px;
  --radius-lg:22px;
  --shadow-card:0 6px 24px rgba(10,61,145,.08);
  --shadow-pop:0 14px 40px rgba(10,61,145,.16);
}

*,*::before,*::after{ box-sizing:border-box; }
html,body{ height:100%; max-width:100%; overflow-x:hidden; }
body{
  margin:0;
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  background:var(--gray-100);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
}
a{ text-decoration:none; color:inherit; }
ul{ list-style:none; margin:0; padding:0; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; cursor:pointer; }
input,select,textarea{ font-family:inherit; }

::selection{ background:var(--blue-100); color:var(--blue-900); }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar{ width:8px; height:8px; }
::-webkit-scrollbar-thumb{ background:var(--gray-300); border-radius:8px; }

/* =========================================================
   Utility
========================================================= */
.container{ width:100%; max-width:1200px; margin:0 auto; padding:0 20px; }
.text-muted{ color:var(--gray-500); }
.text-green{ color:var(--green); }
.text-red{ color:var(--red); }
.hidden{ display:none !important; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 22px; border-radius:14px; border:none; font-weight:600; font-size:15px;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease;
  white-space:nowrap;
}
.btn:active{ transform:scale(.97); }
.btn-block{ width:100%; }
.btn-primary{
  background:linear-gradient(135deg,var(--blue-600),var(--blue-800));
  color:#fff;
  box-shadow:0 10px 24px rgba(10,61,145,.28);
  transition:transform .15s, box-shadow .15s;
}
.btn-primary:hover{ box-shadow:0 14px 30px rgba(10,61,145,.36); transform:translateY(-1px); }
.btn-primary:active{ transform:translateY(0); }
.btn-outline{
  background:var(--surface); color:var(--blue-700); border:1.5px solid var(--blue-100);
}
.btn-outline:hover{ border-color:var(--blue-500); }
.btn-ghost{ background:transparent; color:var(--blue-700); }
.btn-sm{ padding:9px 14px; font-size:13px; border-radius:10px; }
.btn-danger{ background:var(--red-100); color:var(--red); }
.btn:disabled{ opacity:.55; cursor:not-allowed; transform:none; }

.card{
  background:var(--surface); border-radius:var(--radius-lg); box-shadow:var(--shadow-card);
  padding:24px; border:1px solid var(--gray-300); overflow:hidden;
}

.badge{ display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700; padding:4px 10px; border-radius:999px; }
.badge-success{ background:var(--green-100); color:var(--green); }
.badge-pending{ background:var(--amber-100); color:var(--amber); }
.badge-failed{ background:var(--red-100); color:var(--red); }

.field{ margin-bottom:18px; }
.field label{ display:block; font-size:13px; font-weight:600; margin-bottom:8px; color:var(--gray-700); }
.field .input,
.field select,
.field input,
.field textarea{
  width:100%; padding:14px 16px; border-radius:12px; border:1.5px solid var(--gray-300);
  background:var(--gray-100); font-size:15px; color:var(--ink); transition:border .15s, background .15s;
}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none; border-color:var(--blue-500); background:var(--surface);
}
.input-group{ position:relative; }
.input-group .prefix{ position:absolute; left:16px; top:50%; transform:translateY(-50%); color:var(--gray-500); font-weight:600; }
.input-group input{ padding-left:34px; }

.alert{ padding:14px 16px; border-radius:12px; font-size:14px; font-weight:500; margin-bottom:18px; display:flex; gap:10px; align-items:flex-start; }
.alert-error{ background:var(--red-100); color:var(--red); }
.alert-danger{ background:var(--red-100); color:var(--red); }
.alert-success{ background:var(--green-100); color:var(--green); }
.alert-info{ background:var(--blue-100); color:var(--blue-700); }
.alert-warning{ background:var(--amber-100); color:var(--amber); }
.alert-offline{ background:#eef1f5; color:#3c4b5e; border:1px dashed #c7d0dc; }
/* ---------- Dashboard announcement banner — animated & colorful ---------- */
@keyframes bannerSlideIn{ from{ opacity:0; transform:translateY(-14px) scale(.98); } to{ opacity:1; transform:translateY(0) scale(1); } }
@keyframes bannerShine{ 0%{ background-position:-150% 0; } 100%{ background-position:250% 0; } }
@keyframes bannerFadeOut{ to{ opacity:0; transform:translateY(-10px) scale(.97); max-height:0; margin:0; padding:0; } }

.dashboard-banner{
  position:relative; padding:17px 48px 17px 22px; border-radius:16px; overflow:hidden;
  border-left:5px solid currentColor; animation:bannerSlideIn .5s cubic-bezier(.2,.8,.3,1) both;
  box-shadow:0 10px 26px rgba(10,61,145,.10); font-weight:500;
}
.dashboard-banner.closing{ animation:bannerFadeOut .3s ease forwards; }
.dashboard-banner::before{
  content:''; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(110deg, transparent 25%, rgba(255,255,255,.4) 48%, transparent 70%);
  background-size:200% 100%; animation:bannerShine 4s ease-in-out infinite;
}
.dashboard-banner.alert-info{ background:linear-gradient(120deg,var(--blue-100),#eef5ff); }
.dashboard-banner.alert-success{ background:linear-gradient(120deg,var(--green-100),#ecfbf2); }
.dashboard-banner.alert-warning{ background:linear-gradient(120deg,var(--amber-100),#fff8e9); }
.dashboard-banner.alert-danger{ background:linear-gradient(120deg,var(--red-100),#fef0ef); }
.dashboard-banner .banner-icon{ font-size:18px; margin-right:10px; position:relative; z-index:1; }
.dashboard-banner .banner-text{ position:relative; z-index:1; }
.dashboard-banner .banner-close{
  position:absolute; right:12px; top:50%; transform:translateY(-50%); background:rgba(255,255,255,.5);
  border:none; cursor:pointer; width:26px; height:26px; border-radius:50%; font-size:14px; line-height:1;
  color:inherit; opacity:.7; transition:opacity .15s, background .15s; z-index:1;
}
.dashboard-banner .banner-close:hover{ opacity:1; background:rgba(255,255,255,.8); }

/* ---------- Multi-slide banner carousel ---------- */
.banner-carousel{ position:relative; margin-bottom:18px; }
.banner-carousel.closing{ animation:bannerFadeOut .3s ease forwards; }
.banner-carousel-track{ position:relative; }
.banner-slide{ display:none; margin-bottom:0; }
.banner-slide.active{ display:flex; align-items:center; animation:bannerSlideIn .5s cubic-bezier(.2,.8,.3,1); }
.banner-dots{ display:flex; justify-content:center; gap:7px; margin-top:10px; }
.banner-dot{
  width:7px; height:7px; border-radius:50%; background:var(--gray-300); cursor:pointer;
  transition:all .25s; flex:none;
}
.banner-dot.active{ background:var(--blue-600); width:20px; border-radius:4px; }

/* =========================================================
   AUTH PAGES (login / register) — refined, premium treatment
========================================================= */
@keyframes authFadeUp{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:translateY(0); } }
@keyframes authBlobFloat{ 0%,100%{ transform:translateY(0) scale(1); } 50%{ transform:translateY(-16px) scale(1.04); } }

.auth-wrap{
  min-height:100vh; display:flex; align-items:stretch;
}
.auth-visual{
  flex:1; background:
    radial-gradient(130% 130% at 0% 0%, var(--blue-500) 0%, transparent 45%),
    linear-gradient(155deg, var(--blue-700) 0%, var(--blue-900) 60%, #021739 100%);
  color:#fff; padding:60px; display:flex; flex-direction:column; justify-content:space-between;
  position:relative; overflow:hidden;
}
.auth-visual::after{
  content:''; position:absolute; width:440px; height:440px; border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,.1), transparent 70%);
  right:-160px; bottom:-180px; animation:authBlobFloat 9s ease-in-out infinite;
}
.auth-visual::before{
  content:''; position:absolute; width:240px; height:240px; border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,.12), transparent 70%);
  left:-70px; top:-70px; animation:authBlobFloat 7s ease-in-out infinite reverse;
}
.auth-visual h1{ font-size:40px; line-height:1.22; max-width:440px; position:relative; z-index:1; font-weight:800; letter-spacing:-.5px; }
.auth-visual p{ opacity:.82; max-width:390px; position:relative; z-index:1; font-size:15.5px; line-height:1.6; }
.auth-perks{ display:flex; flex-direction:column; gap:18px; position:relative; z-index:1; }
.auth-perks li{ display:flex; gap:14px; align-items:center; font-size:14.5px; opacity:.95; font-weight:500; }
.auth-perks .dot{
  width:26px; height:26px; border-radius:50%; background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.25); flex:none; display:flex; align-items:center; justify-content:center;
  font-size:13px;
}
.auth-perks .dot::after{ content:'✓'; }

.auth-form-side{
  flex:1; display:flex; align-items:center; justify-content:center; padding:40px 24px; background:var(--surface);
}
.auth-box{
  width:100%; max-width:420px; animation:authFadeUp .5s ease both;
  background:var(--white); border:1px solid var(--gray-300); border-radius:var(--radius-lg);
  padding:36px 34px; box-shadow:0 10px 28px rgba(10,61,145,.07);
}
.auth-logo{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:20px; color:var(--blue-800); margin-bottom:34px; }
.auth-logo .mark{
  width:38px; height:38px; border-radius:10px; background:linear-gradient(135deg,var(--blue-500),var(--blue-800));
  display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800;
}
.auth-box h2{ font-size:26px; margin:0 0 6px; }
.auth-box .sub{ color:var(--gray-500); margin-bottom:28px; font-size:14px; }
.auth-switch{ text-align:center; margin-top:22px; font-size:14px; color:var(--gray-700); }
.auth-switch a{ color:var(--blue-600); font-weight:700; }

@media (max-width: 860px){
  .auth-visual{ display:none; }
}
@media (max-width: 480px){
  .auth-box{ padding:28px 22px; }
}

/* =========================================================
   APP SHELL (dashboard layout)
========================================================= */
.app-shell{ display:flex; min-height:100vh; }

.sidebar{
  width:260px; background:var(--surface); border-right:1px solid var(--gray-300);
  display:flex; flex-direction:column; padding:24px 18px; position:sticky; top:0; height:100vh; flex:none;
}
.sidebar .brand{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:19px; color:var(--blue-800); padding:6px 10px 26px; }
.sidebar .brand .mark{
  width:34px; height:34px; border-radius:9px; background:linear-gradient(135deg,var(--blue-500),var(--blue-800));
  color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:15px;
}
.nav-group{ margin-bottom:14px; }
.nav-title{ font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--gray-500); font-weight:700; padding:10px 12px 6px; }
.nav-link{
  display:flex; align-items:center; gap:12px; padding:12px 12px; border-radius:12px; font-weight:600; font-size:14.5px;
  color:var(--gray-700); margin-bottom:2px; transition:background .15s, color .15s;
}
.nav-link svg{ width:19px; height:19px; flex:none; }
.nav-link:hover{ background:var(--blue-50); color:var(--blue-700); }
.nav-link.active{ background:var(--blue-700); color:#fff; box-shadow:0 8px 18px rgba(10,61,145,.28); }
.sidebar-foot{ margin-top:auto; padding-top:16px; border-top:1px solid var(--gray-300); }

.main{ flex:1; min-width:0; display:flex; flex-direction:column; }

.topbar{
  position:sticky; top:0; z-index:20; backdrop-filter:blur(6px);
  background:rgba(var(--surface-rgb),.92); border-bottom:1px solid var(--gray-300);
  padding:16px 28px; display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.topbar .hi{ font-size:15px; }
.topbar .hi b{ color:var(--blue-800); }
.wallet-pill{
  display:flex; align-items:center; gap:10px; background:var(--blue-900); color:#fff;
  padding:9px 16px; border-radius:999px; font-weight:700; font-size:14px; box-shadow:0 8px 20px rgba(10,61,145,.25);
}
.wallet-pill .lbl{ font-weight:500; opacity:.75; font-size:12px; }
.topbar-right{ display:flex; align-items:center; gap:14px; }
.hamburger{ display:none; background:none; border:none; padding:6px; }
.hamburger span{ display:block; width:22px; height:2px; background:var(--ink); margin:5px 0; border-radius:2px; }

.avatar{
  width:38px; height:38px; border-radius:50%; background:var(--blue-100); color:var(--blue-800);
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px;
}

.content{ padding:26px 28px 60px; flex:1; }

/* ---------- Dashboard hero / balance card ---------- */
.balance-card{
  background:
    linear-gradient(120deg,var(--blue-700),var(--blue-900) 80%),
    radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.4px);
  background-size:auto, 20px 20px;
  color:#fff; border-radius:var(--radius-lg); padding:28px; position:relative; overflow:hidden;
  box-shadow:var(--shadow-pop);
}
.balance-card::after{
  content:''; position:absolute; width:260px; height:260px; border-radius:50%;
  background:rgba(255,255,255,.07); right:-90px; top:-110px;
}
.balance-card .lbl{ font-size:13px; opacity:.8; margin-bottom:6px; }
.balance-card .amount{ font-size:36px; font-weight:800; letter-spacing:-.5px; }
.balance-card .actions{ display:flex; gap:12px; margin-top:22px; flex-wrap:wrap; position:relative; z-index:1; }
.balance-card .actions .btn-outline{ background:rgba(255,255,255,.12); color:#fff; border-color:rgba(255,255,255,.25); }
.balance-card .actions .btn-outline:hover{ background:rgba(255,255,255,.2); }

.grid{ display:grid; gap:20px; }
.grid-4{ grid-template-columns:repeat(4,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
@media (max-width:1000px){ .grid-4{ grid-template-columns:repeat(2,1fr);} .grid-3{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:620px){ .grid-4,.grid-3,.grid-2{ grid-template-columns:1fr; } }

.stat-card{ display:flex; flex-direction:column; gap:8px; }
.stat-card .top{ display:flex; align-items:center; justify-content:space-between; }
.stat-card .icon{ width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:var(--blue-100); color:var(--blue-700); }
.stat-card .value{ font-size:22px; font-weight:800; }
.stat-card .lbl{ font-size:13px; color:var(--gray-500); }

.quick-services{ margin-top:28px; }
.section-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.section-head h3{ margin:0; font-size:18px; }
.section-head a{ font-size:13px; font-weight:700; color:var(--blue-600); }

.service-tile{
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:10px; padding:20px 10px;
  border-radius:18px; background:var(--surface); border:1px solid var(--gray-300); transition:transform .15s, box-shadow .15s, border-color .15s;
}
.service-tile:hover{ transform:translateY(-3px); box-shadow:var(--shadow-card); border-color:var(--blue-100); }
.service-tile .icon{
  width:52px; height:52px; border-radius:16px; display:flex; align-items:center; justify-content:center;
  background:var(--blue-50); color:var(--blue-700); font-size:22px;
}
.service-tile span{ font-size:13px; font-weight:700; color:var(--ink); }

/* ---------- Opay/Moniepoint-style circular service grid ---------- */
.svc-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:16px 8px; }
@media (max-width:700px){ .svc-grid{ grid-template-columns:repeat(4,1fr); gap:14px 6px; } }
.svc-tile{ display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center; }
.svc-tile .circle{
  width:54px; height:54px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:22px; box-shadow:0 4px 10px rgba(10,61,145,.10); transition:transform .15s;
}
.svc-tile:hover .circle{ transform:translateY(-3px); }
.svc-tile span{ font-size:11.5px; font-weight:700; color:var(--ink); line-height:1.25; }
.circle-purple{ background:#efe6fb; color:#7b3fe4; }
.circle-blue{ background:#e3edff; color:#1868db; }
.circle-amber{ background:#fff2df; color:#c9820a; }
.circle-pink{ background:#ffe6f0; color:#d6336c; }
.circle-teal{ background:#e0f7f4; color:#0e9488; }
.circle-green{ background:#e7f9ef; color:#12a454; }
.circle-gray{ background:#eef1f5; color:#54626f; }
.circle-slate{ background:#e9edf3; color:#3c4b5e; }

.promo-card{
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  background:linear-gradient(120deg,#7b3fe4,#4a1fa8 85%); color:#fff; border-radius:var(--radius-lg);
  padding:20px 24px; margin-top:20px; box-shadow:0 10px 26px rgba(123,63,228,.25);
}
.promo-card .txt b{ display:block; font-size:15.5px; margin-bottom:2px; }
.promo-card .txt span{ font-size:13px; opacity:.85; }
.promo-card .btn{ background:rgba(255,255,255,.16); color:#fff; border:1.5px solid rgba(255,255,255,.3); flex:none; }
.promo-card .btn:hover{ background:rgba(255,255,255,.26); }

/* ---------- Network picker ---------- */
.network-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:22px; }
@media (max-width:560px){ .network-grid{ grid-template-columns:repeat(2,1fr);} }
.network-opt{
  border:1.5px solid var(--gray-300); border-radius:14px; padding:14px 10px; text-align:center; background:var(--surface);
  cursor:pointer; transition:all .15s; font-weight:700; font-size:13px; color:var(--gray-700);
}
.network-opt img,.network-opt .dot{ width:34px; height:34px; border-radius:50%; margin:0 auto 8px; }
.network-opt.active{ border-color:var(--blue-600); background:var(--blue-50); color:var(--blue-800); box-shadow:0 6px 16px rgba(10,61,145,.15); }

/* ---------- Provider badges (network/cable/exam picker icons) ---------- */
.provider-badge{
  width:44px; height:44px; border-radius:12px; margin:0 auto 8px;
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:11px; letter-spacing:.02em; line-height:1;
  box-shadow:0 2px 6px rgba(0,0,0,.12);
}
.badge-mtn{ background:#ffcc08; color:#111; }
.badge-glo{ background:#00a651; color:#fff; }
.badge-airtel{ background:#ed1c24; color:#fff; }
.badge-9mobile{ background:#046a38; color:#fff; font-size:9.5px; }
.badge-dstv{ background:#0a3d91; color:#fff; }
.badge-gotv{ background:#00a94f; color:#fff; }
.badge-startimes{ background:#f7941d; color:#fff; font-size:9px; }
.badge-waec{ background:#0a3d91; color:#fff; }
.badge-jamb{ background:#c1272d; color:#fff; }
.badge-generic{ background:var(--blue-100); color:var(--blue-700); }

/* Provider picker grid reused for cable TV / education (same look as network-grid) */
.provider-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:18px; }
@media (max-width:560px){ .provider-grid{ grid-template-columns:repeat(3,1fr);} }
.provider-opt{
  border:1.5px solid var(--gray-300); border-radius:14px; padding:14px 8px; text-align:center; background:var(--surface);
  cursor:pointer; transition:all .15s; font-weight:700; font-size:12px; color:var(--gray-700);
}
.provider-opt.active{ border-color:var(--blue-600); background:var(--blue-50); color:var(--blue-800); box-shadow:0 6px 16px rgba(10,61,145,.15); }

.plan-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:8px; }
@media (max-width:700px){ .plan-grid{ grid-template-columns:repeat(2,1fr);} }
.plan-opt{
  border:1.5px solid var(--gray-300); border-radius:14px; padding:14px; cursor:pointer; background:var(--surface); transition:all .15s;
}
.plan-opt b{ display:block; font-size:15px; margin-bottom:2px; }
.plan-opt span{ font-size:12px; color:var(--gray-500); }
.plan-opt .price{ margin-top:8px; font-weight:800; color:var(--blue-700); }
.plan-opt.active{ border-color:var(--blue-600); background:var(--blue-50); box-shadow:0 6px 16px rgba(10,61,145,.15); }

/* Centered single-column layout for service/purchase pages (airtime, data, bills) */
.page-narrow{ max-width:640px; margin:0 auto; }

.fund-card{ text-align:center; padding:36px 32px; }
.fund-card-icon{
  width:60px; height:60px; border-radius:18px; margin:0 auto 18px; font-size:26px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,var(--blue-100),var(--blue-50));
  box-shadow:0 8px 20px rgba(10,61,145,.10);
}
.fund-card .field{ text-align:left; }
.fund-trust-row{
  display:flex; justify-content:center; gap:18px; margin-top:18px; font-size:12px;
  color:var(--gray-500); font-weight:600;
}

/* ---------- Table (transactions) ---------- */
.table-wrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; padding:4px 6px; }
.table-wrap table{ margin:0 -2px; }
table{ width:100%; border-collapse:collapse; min-width:640px; }
th,td{ text-align:left; padding:14px 12px; font-size:13.5px; border-bottom:1px solid var(--gray-300); white-space:nowrap; }
th{ color:var(--gray-500); font-weight:700; text-transform:uppercase; font-size:11px; letter-spacing:.05em; }
tr:last-child td{ border-bottom:none; }
.tx-icon{ width:34px; height:34px; border-radius:10px; display:inline-flex; align-items:center; justify-content:center; background:var(--blue-50); color:var(--blue-700); margin-right:8px; }

/* ---------- Modal ---------- */
.modal-overlay{
  position:fixed; inset:0; background:rgba(4,20,50,.55); display:flex; align-items:center; justify-content:center;
  z-index:100; padding:20px; opacity:0; pointer-events:none; transition:opacity .18s;
}
.modal-overlay.open{ opacity:1; pointer-events:auto; }
.modal{ background:var(--surface); border-radius:20px; width:100%; max-width:420px; padding:28px; box-shadow:var(--shadow-pop); transform:translateY(10px); transition:transform .18s; text-align:center; }
.modal-overlay.open .modal{ transform:translateY(0); }
.modal .status-icon{ width:64px; height:64px; border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 16px; font-size:28px; }
.modal .status-icon.ok{ background:var(--green-100); color:var(--green); }
.modal .status-icon.err{ background:var(--red-100); color:var(--red); }
.modal h3{ margin:0 0 8px; }
.modal p{ color:var(--gray-500); font-size:14px; margin:0 0 20px; }
.modal .receipt{ background:var(--gray-100); border-radius:14px; padding:16px; text-align:left; margin-bottom:20px; }
.modal .receipt div{ display:flex; justify-content:space-between; font-size:13.5px; padding:6px 0; }
.modal .receipt div span:first-child{ color:var(--gray-500); }

/* ---------- Landing (marketing) ---------- */
.nav-public{ display:flex; align-items:center; justify-content:space-between; padding:20px 0; }
.hero-public{ padding:70px 0 40px; text-align:center; }
.hero-public h1{ font-size:44px; max-width:720px; margin:0 auto 16px; line-height:1.2; }
.hero-public .accent{ color:var(--blue-600); }
.hero-public p{ color:var(--gray-500); max-width:560px; margin:0 auto 30px; font-size:16px; }

/* Bottom nav for mobile */
.bottom-nav{
  display:none; position:fixed; bottom:0; left:0; right:0; background:var(--surface); border-top:1px solid var(--gray-300);
  padding:8px 6px 10px; z-index:40; box-shadow:0 -6px 20px rgba(10,61,145,.08);
}
.bottom-nav ul{ display:flex; justify-content:space-between; }
.bottom-nav li{ flex:1; }
.bottom-nav a{ display:flex; flex-direction:column; align-items:center; gap:4px; font-size:10.5px; font-weight:700; color:var(--gray-500); padding:4px; }
.bottom-nav a.active{ color:var(--blue-700); }
.bottom-nav svg{ width:20px; height:20px; }

@media (max-width: 900px){
  .sidebar{ position:fixed; left:-280px; top:0; z-index:60; box-shadow:var(--shadow-pop); transition:left .2s ease; }
  .sidebar.open{ left:0; }
  .hamburger{ display:block; }
  .content{ padding:20px 16px 90px; }
  .topbar{ padding:14px 16px; }
  .bottom-nav{ display:block; }
  .balance-card .amount{ font-size:30px; }
}
.sidebar-scrim{ display:none; position:fixed; inset:0; background:rgba(4,20,50,.4); z-index:50; }
.sidebar-scrim.open{ display:block; }

.modal-title{ font-size:19px; font-weight:800; margin:0 0 8px; }
.modal-msg{ color:var(--gray-500); font-size:14px; margin:0 0 20px; }

.amount-chips{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:18px; }
.chip-amount{
  padding:10px 16px; border-radius:10px; border:1.5px solid var(--gray-300); background:var(--surface);
  font-weight:700; font-size:13.5px; color:var(--gray-700); cursor:pointer; transition:all .15s;
}
.chip-amount:hover{ border-color:var(--blue-500); }
.chip-amount.active{ background:var(--blue-700); border-color:var(--blue-700); color:#fff; }

/* Loading spinner for buttons */
.spinner{ width:16px; height:16px; border-radius:50%; border:2.5px solid rgba(255,255,255,.4); border-top-color:#fff; animation:spin .7s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }
