*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root{
  --green:#527320;    /* fills: buttons, avatar, toasts, progress */
  --green-d:#44601A;  /* text + hover + gradient end */
  --green-l:#F2FBE8;  /* tint backgrounds */
  --gold:#FFD700;
  --red:#ef4444;
  --blue:#3b82f6;
  --text:#111827;
  --sub:#6b7280;
  --border:#e5e7eb;
  --bg:#f3f4f6;
  --card:#fff;
  --r:16px;
  --sh:0 2px 12px rgba(0,0,0,.07);
  --sh2:0 8px 32px rgba(0,0,0,.12);
}

html,body{height:100%;font-family:'Inter',-apple-system,sans-serif;background:#1a1a2e;color:var(--text);overflow:hidden}

/* ── SPLASH ── */
#splash{
  position:fixed;inset:0;z-index:999;
  background:linear-gradient(160deg,#93C736 0%,#44601A 100%);
  display:flex;flex-direction:column;align-items:center;justify-content:space-between;
  padding:0 0 60px;
}
.splash-inner{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;gap:16px}
.splash-logo-wrap{
  width:100px;height:100px;background:rgba(255,255,255,.15);border-radius:28px;
  display:flex;align-items:center;justify-content:center;
  animation:popIn .6s .4s both cubic-bezier(.34,1.56,.64,1);
}
.splash-inner h1{color:#fff;font-size:30.5px;font-weight:900;letter-spacing:-1.2px;animation:fadeUp .5s .7s both;text-shadow:0 0 24px rgba(147,199,54,.55),0 0 46px rgba(255,215,0,.25)}
.splash-inner p{color:rgba(255,255,255,.7);font-size:13px;animation:fadeUp .5s .9s both}
.splash-loader{width:120px;height:3px;background:rgba(255,255,255,.2);border-radius:99px;overflow:hidden}
.splash-bar{height:100%;background:#fff;border-radius:99px;animation:load 2s .5s both ease-in-out}

@keyframes popIn{from{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}
@keyframes fadeUp{from{transform:translateY(12px);opacity:0}to{transform:translateY(0);opacity:1}}
@keyframes load{from{width:0}to{width:100%}}

/* ── PHONE SHELL ── */
#phone{
  position:fixed;inset:0;
  display:flex;align-items:center;justify-content:center;
  background:#1a1a2e;
}

/* On small screens: fill entire viewport */
.view{width:100%;height:100%;max-width:420px;background:var(--card);position:relative;display:flex;flex-direction:column;overflow:hidden;border-radius:0}

@media(min-width:500px){
  .view{height:calc(100vh - 40px);max-height:860px;border-radius:32px;box-shadow:0 24px 80px rgba(0,0,0,.5)}
}

.hidden{display:none!important}

/* ── AUTH — redesigned bolder, punchier, less "corporate form" ── */
#auth{overflow-y:auto;background:#0d1409}
.auth-view{padding:18px 20px 16px;min-height:100%;display:flex;flex-direction:column;position:relative;z-index:1}

/* Login/Register get a soft tinted backdrop instead of stark white, so the
   whole auth flow reads as one designed surface, not a bare HTML form. */
#v-login,#v-register{
  background:radial-gradient(120% 90% at 100% 0%,#F2FBE8 0%,#F6FBEF 42%,#fff 78%);
}

/* WELCOME — same treatment as the splash screen: just the logo, nothing
   fighting it (see #splash/.splash-panel, same gradient recipe — low-
   opacity glows in the logo's own blue/gold/green over near-black, so it
   has depth without going flat black or "shouty"). The old version had a
   loud green gradient hero, floating decorative blobs, a white icon tile,
   and a separate gradient-text "Nairo" wordmark stacked under it — all
   removed; the logo image already contains the wordmark, so there is
   nothing left to duplicate. */
#v-welcome{
  background:
    radial-gradient(120% 70% at 15% -10%,rgba(30,136,229,.16) 0%,transparent 60%),
    radial-gradient(100% 60% at 100% 110%,rgba(255,215,0,.13) 0%,transparent 55%),
    radial-gradient(90% 60% at 50% 45%,rgba(173,228,61,.09) 0%,transparent 60%),
    linear-gradient(165deg,#050505 0%,#0d0d0d 55%,#040404 100%);
  overflow:hidden;
}
.welcome-art{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:14px;position:relative;padding:26px 0;
}
.welcome-logo-img{
  width:min(26vw,120px);height:auto;
}
.welcome-art p{font-size:13px;color:rgba(255,255,255,.72);text-align:center;max-width:250px;line-height:1.6;font-weight:500}
.welcome-art p.welcome-sub{font-size:10.5px;color:rgba(255,255,255,.45);max-width:280px;font-weight:400;margin-top:-4px}
.welcome-btns{display:flex;flex-direction:column;align-items:center;gap:10px;position:relative;z-index:2;padding-bottom:26px}
/* Compact boxes, not edge-to-edge — scoped here so .btn-full elsewhere
   (forms, transaction sheets) keeps its normal full-width behaviour. */
.welcome-btns .btn-full{width:100%;max-width:220px}

/* Buttons inside the dark hero get a glow-pill / glass treatment — scoped
   so the rest of the app's plain .btn-g / .btn-outline usage is untouched */
#v-welcome .btn-g{
  background:linear-gradient(90deg,#93C736,#44601A);
  box-shadow:0 8px 24px rgba(147,199,54,.45),0 0 0 1px rgba(255,255,255,.06) inset;
  border-radius:999px;
}
#v-welcome .btn-g:active{transform:scale(.97)}
#v-welcome .btn-outline{
  background:rgba(255,255,255,.06);border:1.5px solid rgba(255,255,255,.22);
  color:#fff;border-radius:999px;backdrop-filter:blur(6px);
}
#v-welcome .btn-outline:active{transform:scale(.97);background:rgba(255,255,255,.12)}

.auth-top{margin-bottom:14px}
.back-link{background:none;border:none;color:var(--green-d);font-size:12px;font-weight:700;cursor:pointer;padding:0 0 12px;font-family:inherit;display:flex;align-items:center;gap:4px}
.auth-top h2{font-size:24px;font-weight:900;letter-spacing:-.6px;color:var(--text)}
.auth-top p{font-size:12.5px;color:var(--sub);margin-top:4px;font-weight:500}
.switch-link{text-align:center;font-size:12.5px;color:var(--sub);margin-top:16px}
.switch-link a{color:var(--green-d);font-weight:800;cursor:pointer}
.opt{font-size:10px;color:var(--sub);font-weight:400}

/* Login/Register input/button skin lives further down (single source of
   truth, see "AUTH: bold Gen-Z redesign") — kept out of here since an
   earlier duplicate here was fighting it at equal specificity. */

/* ── APP ── */
#app{display:flex;flex-direction:column;overflow:hidden}

/* TOPBAR */
#topbar{
  background:#fff;border-bottom:1px solid var(--border);
  padding:12px 16px;display:flex;align-items:center;justify-content:space-between;
  min-height:60px;flex-shrink:0;
}
#tb-left{display:flex;align-items:center;gap:10px;flex:1;min-width:0}
.tb-icon-btn{background:var(--bg);border:none;width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--text);flex-shrink:0;position:relative}
#tb-brand{display:flex;align-items:center;gap:10px;min-width:0}
#tb-avatar{width:38px;height:38px;border-radius:50%;background:var(--green);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:12px;flex-shrink:0}
#tb-greet-wrap{display:flex;flex-direction:column}
#tb-greet{font-size:9.5px;color:var(--sub)}
#tb-name{font-size:12px;font-weight:700;color:var(--text)}
#tb-title{font-size:14.5px;font-weight:700;color:var(--text)}
.notif-dot{position:absolute;top:6px;right:6px;width:8px;height:8px;background:var(--red);border-radius:50%;border:2px solid #fff}

/* SCREENS */
#screens{flex:1;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch}
.screen{display:none;padding-bottom:24px}
.screen.active{display:block}

/* HOME */
.bal-card{
  background:linear-gradient(145deg,#93C736 0%,#44601A 100%);
  margin:12px;border-radius:20px;padding:20px;color:#fff;position:relative;overflow:hidden;
}
.bal-card-gfx{
  position:absolute;width:220px;height:220px;border-radius:50%;
  background:rgba(255,255,255,.07);top:-80px;right:-60px;
}
.bal-row1{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.bal-lbl{font-size:10px;opacity:.8;font-weight:500}
.eye-btn{background:rgba(255,255,255,.15);border:none;border-radius:8px;padding:5px 8px;cursor:pointer;display:flex;align-items:center}
.bal-amount{font-size:29px;font-weight:900;letter-spacing:-1px;margin-bottom:12px}
.bal-acct-row{display:flex;align-items:center;gap:8px;margin-bottom:18px}
.bal-acct{font-size:11px;font-weight:600;letter-spacing:1.5px;opacity:.9}
.copy-acct{background:rgba(255,255,255,.18);border:none;color:#fff;border-radius:6px;padding:4px 10px;font-size:9.5px;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:5px;font-family:inherit}
.bal-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.bal-btn{background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.2);border-radius:12px;color:#fff;display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 4px;cursor:pointer;font-family:inherit;transition:background .15s}
.bal-btn:hover{background:rgba(255,255,255,.25)}
.bal-btn-ic{width:34px;height:34px;background:rgba(255,255,255,.2);border-radius:50%;display:flex;align-items:center;justify-content:center}
.bal-btn span{font-size:9px;font-weight:600}

/* Reuses .promo-tag's badge look (later redesigned green) — same visual
   language as the home promo strip, just inline above the phone field
   where a sender is about to decide whether to bother with this flow. */
.free-transfer-badge{display:flex;align-items:center;gap:10px;padding:0 16px 12px}
.free-transfer-copy{display:flex;flex-direction:column;gap:1px}
.free-transfer-copy strong{font-size:12px;font-weight:700;color:var(--text)}
.free-transfer-copy span{font-size:10px;color:var(--sub)}

.promo-strip{margin:0 12px 4px;background:linear-gradient(90deg,#FFF9E6,#FFF3CC);border-radius:14px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;border:1px solid #FFE680}
.promo-text{display:flex;flex-direction:column;gap:2px}
.promo-tag{background:var(--gold);color:#6b4200;border-radius:4px;padding:2px 7px;font-size:9px;font-weight:800;width:fit-content}
.promo-text strong{font-size:12px;font-weight:700;color:var(--text)}
.promo-text span{font-size:10px;color:var(--sub)}
.promo-emoji{font-size:25.5px}

.home-section{padding:16px 12px 0}
.section-ttl{font-size:13px;font-weight:700;color:var(--text);margin-bottom:12px}
.section-ttl-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.see-all{background:none;border:none;color:var(--green);font-size:11px;font-weight:600;cursor:pointer}

.svc-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.svc-item{background:#fff;border:none;border-radius:14px;padding:12px 6px;display:flex;flex-direction:column;align-items:center;gap:7px;cursor:pointer;font-family:inherit;box-shadow:var(--sh);transition:transform .15s,box-shadow .15s}
.svc-item:hover{transform:translateY(-2px);box-shadow:var(--sh2)}
.svc-ic{width:46px;height:46px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:18.5px}
.svc-item span:last-child{font-size:9.5px;font-weight:600;color:var(--text)}

/* TRANSACTIONS */
.txn-list{display:flex;flex-direction:column;gap:4px;padding:0 12px}
.txn-item{background:#fff;border-radius:14px;padding:12px 14px;display:flex;align-items:center;gap:12px;box-shadow:0 1px 4px rgba(0,0,0,.05)}
.txn-ic{width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:15.5px;flex-shrink:0}
.txn-body{flex:1;min-width:0}
.txn-title{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.txn-desc{font-size:10px;color:var(--sub);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.txn-date{font-size:9.5px;color:var(--sub);margin-top:1px}
.txn-right{text-align:right;flex-shrink:0}
.txn-amt{font-size:13px;font-weight:700}
.txn-amt.cr{color:var(--green)}
.txn-amt.db{color:var(--red)}
.txn-status{font-size:9px;color:var(--sub);margin-top:2px}

.shimmer{height:64px;background:linear-gradient(90deg,#f0f0f0 25%,#e8e8e8 50%,#f0f0f0 75%);background-size:200% 100%;animation:sh 1.4s infinite;border-radius:14px}
@keyframes sh{0%{background-position:200% 0}100%{background-position:-200% 0}}
.empty-msg{text-align:center;padding:40px 20px;color:var(--sub)}
.empty-msg .ei{font-size:34px;margin-bottom:8px}

/* BOTTOM NAV */
#bnav{
  background:#fff;border-top:1px solid var(--border);
  display:flex;padding:8px 0 max(8px,env(safe-area-inset-bottom));flex-shrink:0;
}
.bn{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;background:none;border:none;cursor:pointer;padding:4px;color:var(--sub);font-family:inherit;transition:color .15s}
.bn span{font-size:9px;font-weight:500}
.bn.active{color:var(--green)}

/* ── FORMS ── */
.field{display:flex;flex-direction:column;gap:4px;padding:0 16px;margin-bottom:9px}
.field label{font-size:11px;font-weight:600;color:var(--text)}
.field input,.field select,.field textarea{
  background:var(--bg);border:2px solid var(--border);border-radius:12px;
  padding:9px 14px;font-size:13px;font-family:inherit;color:var(--text);
  outline:none;transition:border-color .2s;width:100%;
}
.field input:focus,.field select:focus{border-color:var(--green)}
.sel-wrap{position:relative}
.sel-wrap select{appearance:none;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:36px}
.pw-wrap{position:relative;display:flex;align-items:center}
.pw-wrap input{flex:1}
.eye{position:absolute;right:12px;background:none;border:none;cursor:pointer;color:var(--sub);display:flex;padding:0}
.amt-wrap{display:flex;align-items:center;background:var(--bg);border:2px solid var(--border);border-radius:12px;overflow:hidden;transition:border-color .2s}
.amt-wrap:focus-within{border-color:var(--green)}
.naira{padding:0 10px 0 14px;font-size:13.5px;font-weight:700;color:var(--green)}
.amt-wrap input{flex:1;border:none;background:transparent;padding:13px 14px 13px 0;font-size:13px;font-family:inherit;color:var(--text);outline:none}
.fee-line{font-size:10px;color:var(--sub);padding:0 2px}
.cashback{color:var(--green);font-weight:500}
.input-with-btn{display:flex;gap:8px}
.input-with-btn input{flex:1}
.input-with-btn button{background:var(--green-l);border:none;border-radius:12px;padding:0 14px;color:var(--green);font-weight:600;font-size:11px;cursor:pointer;font-family:inherit;white-space:nowrap}
.quick-amts{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}
.quick-amts button{background:#fff;border:1.5px solid var(--border);border-radius:8px;padding:6px 12px;font-size:11px;font-weight:500;cursor:pointer;font-family:inherit;transition:all .15s}
.quick-amts button:hover{border-color:var(--green);color:var(--green)}
.radio-row{display:flex;gap:20px}
.rlabel{display:flex;align-items:center;gap:6px;font-size:12px;cursor:pointer}
.rlabel input{accent-color:var(--green);width:16px;height:16px}
.verified-box{margin:0 16px 14px;background:var(--green-l);border:1.5px solid var(--green);border-radius:12px;padding:11px 14px;display:flex;align-items:center;gap:9px}
.verified-box span{font-size:12px;font-weight:600;color:var(--green-d)}

/* ── BANK PICKER BUTTON (replaces the native <select>) ── */
.bank-picker{width:100%;display:flex;align-items:center;justify-content:space-between;
  background:var(--n0,#fff);border:1.6px solid var(--border);border-radius:12px;
  padding:13px 14px;font-family:inherit;font-size:13px;color:var(--text);cursor:pointer;
  text-align:left}
.bank-picker:active{border-color:var(--green)}
.bank-picker svg{color:var(--sub);flex-shrink:0;margin-left:8px}
.bp-placeholder{color:var(--sub);font-weight:400}

/* ── BANK PICKER SHEET ── */
.bp-sheet{display:flex;flex-direction:column;max-height:78vh;padding-bottom:12px}
.bp-search{display:flex;align-items:center;gap:9px;background:var(--band,#f2f4f6);
  border-radius:12px;padding:11px 14px;margin:14px 0 10px;flex-shrink:0}
.bp-search svg{color:var(--sub);flex-shrink:0}
.bp-search input{flex:1;min-width:0;border:none;background:none;outline:none;
  font-family:inherit;font-size:13px;color:var(--text)}
.bp-list{overflow-y:auto;flex:1;-webkit-overflow-scrolling:touch;margin:0 -24px;padding:0 24px}
.bp-row{width:100%;display:flex;align-items:center;justify-content:space-between;
  padding:13px 4px;background:none;border:none;border-bottom:1px solid var(--border);
  font-family:inherit;font-size:12.5px;color:var(--text);cursor:pointer;text-align:left}
.bp-row:active{background:var(--green-l)}
.bp-row .bp-code{font-size:9.5px;color:var(--sub);flex-shrink:0;margin-left:10px}
.bp-empty{padding:32px 4px;text-align:center;color:var(--sub);font-size:11px}

/* ── ACCOUNT VERIFY STATUS (replaces a toast that could be missed) ── */
.verify-status{margin:0 16px 14px}
.vs-row{display:flex;align-items:center;gap:9px;border-radius:12px;padding:11px 14px;font-size:11.5px}
.vs-row.ok{background:var(--green-l);border:1.5px solid var(--green)}
.vs-row.ok span{font-weight:600;color:var(--green-d)}
.vs-row.bad{background:#FDF2F2;border:1.5px solid #F5C6C6;color:#9B1C1C}
.vs-row:not(.ok):not(.bad){background:var(--band,#f2f4f6);color:var(--sub)}
.vs-spin{width:15px;height:15px;border-radius:50%;border:2px solid var(--border);
  border-top-color:var(--green);animation:vsspin .7s linear infinite;flex-shrink:0}
@keyframes vsspin{to{transform:rotate(360deg)}}
.checkbox-lbl{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--text);padding:0 16px;cursor:pointer}
.checkbox-lbl input{accent-color:var(--green);width:16px;height:16px}
.err{background:#fef2f2;border:1px solid #fecaca;color:var(--red);padding:10px 14px;border-radius:10px;font-size:11px;margin:0 16px}

/* TABS */
.tab-bar{display:flex;background:var(--bg);border-radius:12px;padding:4px;margin:12px 16px 0}
.tab{flex:1;border:none;background:none;padding:10px;border-radius:10px;font-size:12px;font-weight:500;cursor:pointer;font-family:inherit;color:var(--sub);transition:all .2s}
.tab.active{background:#fff;color:var(--green);font-weight:700;box-shadow:var(--sh)}

/* NETWORKS */
.net-row{display:flex;gap:8px;padding:12px 16px 0}
.net-btn{flex:1;background:#fff;border:2px solid var(--border);border-radius:12px;padding:12px 4px;cursor:pointer;font-family:inherit;transition:all .2s;box-shadow:var(--sh)}
.net-btn.active{border-color:var(--green);background:var(--green-l)}
.nb{display:block;font-size:9.5px;font-weight:800;text-align:center}
.nb.mtn{color:#fbbf24}.nb.airtel{color:#dc2626}.nb.glo{color:#16a34a}.nb.m9{color:#0891b2}

/* DATA PLANS */
.plans-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.plan-card{background:#fff;border:2px solid var(--border);border-radius:12px;padding:12px;cursor:pointer;transition:all .2s;box-shadow:var(--sh)}
.plan-card.active{border-color:var(--green);background:var(--green-l)}
.plan-size{font-size:15.5px;font-weight:800;color:var(--text)}
.plan-val{font-size:9.5px;color:var(--sub);margin-top:2px}
.plan-price{font-size:13px;font-weight:700;color:var(--green);margin-top:6px}

/* TV */
.tv-provider-row{display:flex;gap:8px;padding:12px 16px 0}
.tv-btn{flex:1;background:#fff;border:2px solid var(--border);border-radius:12px;padding:14px 4px;cursor:pointer;font-family:inherit;transition:all .2s;box-shadow:var(--sh)}
.tv-btn.active{border-color:var(--green);background:var(--green-l)}
.tvb{display:block;font-size:10px;font-weight:800;text-align:center}
.tvb.dstv{color:#0056a4}.tvb.gotv{color:#e65100}.tvb.star{color:#c62828}
.tv-pkg-list{display:flex;flex-direction:column;gap:8px}
.tv-pkg{background:#fff;border:2px solid var(--border);border-radius:12px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;transition:all .2s;box-shadow:var(--sh)}
.tv-pkg.active{border-color:var(--green);background:var(--green-l)}
.tv-pkg-name{font-size:12px;font-weight:600}
.tv-pkg-price{font-size:13px;font-weight:700;color:var(--green)}

/* BENEFICIARIES */
.bene-list{display:flex;flex-direction:column;gap:6px}
.bene-row{background:#fff;border-radius:12px;padding:12px 14px;display:flex;align-items:center;gap:10px;cursor:pointer;box-shadow:var(--sh)}
.bene-av{width:38px;height:38px;border-radius:50%;background:var(--green);color:#fff;font-weight:700;font-size:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.bene-info .bene-name{font-size:12px;font-weight:600}
.bene-info .bene-bank{font-size:10px;color:var(--sub)}

/* FILTER */
.filter-scroll{display:flex;gap:8px;padding:12px 12px 0;overflow-x:auto;scrollbar-width:none;position:sticky;top:0;background:#fff;z-index:5;border-bottom:1px solid var(--border)}
.filter-scroll::-webkit-scrollbar{display:none}
.chip{border:1.5px solid var(--border);background:#fff;border-radius:20px;padding:6px 14px;font-size:11px;font-weight:500;white-space:nowrap;cursor:pointer;font-family:inherit;transition:all .2s;flex-shrink:0}
.chip.active{border-color:var(--green);background:var(--green-l);color:var(--green)}
#hist-list{padding:10px 12px 0}

/* CARDS */
/* Real-card treatment: embossed edge (inset highlight/shadow), a static
   grain layer for texture (same technique as the balance card — one paint,
   never animated), an actual chip graphic, and a contactless icon. Applies
   to every color variant via the shared base rule, so switching card
   color never loses the premium detailing. */
.card-3d{border-radius:20px;padding:22px;margin:12px 12px 8px;min-height:180px;
  position:relative;overflow:hidden;color:#fff;
  box-shadow:0 16px 32px -12px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.22),inset 0 -1px 0 rgba(0,0,0,.18);
}
.card-3d.green{background:linear-gradient(135deg,#93C736,#44601A)}
.card-3d.dark{background:linear-gradient(135deg,#1e293b,#0f172a)}
.card-3d.blue{background:linear-gradient(135deg,#2563eb,#1e3a8a)}
.card-3d.purple{background:linear-gradient(135deg,#7c3aed,#4c1d95)}
.card-3d::before{content:'';position:absolute;width:180px;height:180px;border-radius:50%;background:rgba(255,255,255,.07);top:-60px;right:-50px}
.card-3d::after{
  content:'';position:absolute;inset:0;opacity:.4;mix-blend-mode:overlay;pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.card-chip{
  position:absolute;top:52px;left:22px;width:36px;height:28px;border-radius:6px;z-index:1;
  background:linear-gradient(155deg,#F4E7B8 0%,#D9C078 50%,#F4E7B8 100%);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.12);overflow:hidden;
}
.card-chip::before,.card-chip::after{content:'';position:absolute;background:rgba(0,0,0,.14)}
.card-chip::before{left:0;right:0;top:50%;height:1px;transform:translateY(-.5px)}
.card-chip::after{top:0;bottom:0;left:50%;width:1px;transform:translateX(-.5px)}
.card-contactless{position:absolute;top:56px;left:66px;width:22px;height:22px;opacity:.85;z-index:1}

/* Everything meant to read as content sits above the grain overlay
   (::after) and the decorative circle (::before), which are unstyled
   z-index:auto and would otherwise stack on top of plain-flow children. */
.card-net,.card-num,.card-bottom,.card-frozen-badge{position:relative;z-index:1}
.card-frozen-badge{position:absolute;top:16px;left:16px;background:rgba(255,255,255,.2);border-radius:20px;padding:3px 10px;font-size:9.5px;font-weight:600}
.card-net{position:absolute;top:18px;right:20px;font-size:12px;font-weight:800;
  letter-spacing:.5px;font-style:italic;opacity:.95;z-index:1;text-shadow:0 1px 2px rgba(0,0,0,.15)}
.card-num{font-size:14.5px;font-weight:600;letter-spacing:3px;margin:66px 0 14px;
  font-variant-numeric:tabular-nums;text-shadow:0 1px 2px rgba(0,0,0,.18)}
.card-bottom{display:flex;justify-content:space-between;align-items:flex-end}
.card-holder{font-size:10px;font-weight:600;letter-spacing:1px;opacity:.9}
.card-exp .card-exp-lbl{font-size:9px;opacity:.7;display:block;margin-bottom:2px}
.card-exp .card-exp-val{font-size:11px;font-weight:600}
.card-actions-row{display:flex;gap:8px;padding:0 12px}
.card-act{flex:1;background:#fff;border:1.5px solid var(--border);border-radius:10px;padding:10px;font-size:11px;font-weight:600;cursor:pointer;font-family:inherit;transition:all .2s}
.card-act.danger{color:var(--red)}
.card-act:hover{background:var(--green-l);border-color:var(--green)}
.info-box{background:var(--green-l);border-radius:14px;padding:14px;border:1px solid rgba(82,115,32,.2)}
.info-box h4{font-size:12px;font-weight:700;color:var(--green-d);margin-bottom:8px}
.info-box ul{list-style:none;display:flex;flex-direction:column;gap:4px}
.info-box li{font-size:11px;padding-left:16px;position:relative}
.info-box li::before{content:'✓';position:absolute;left:0;color:var(--green);font-weight:700}

/* SAVINGS */
.savings-hero{background:linear-gradient(135deg,var(--green-l),#E3F7CB);border-radius:16px;padding:18px;margin:12px;display:flex;justify-content:space-between;align-items:center}
.savings-hero h4{font-size:10px;color:var(--sub);margin-bottom:4px}
.big-rate{font-size:25.5px;font-weight:900;color:var(--green)}
.savings-hero p{font-size:10px;color:var(--sub)}
.sav-emoji{font-size:34px}
.sav-card{background:#fff;border-radius:14px;padding:14px;margin-bottom:10px;box-shadow:var(--sh)}
.sav-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.sav-name{font-size:13px;font-weight:700}
.sav-rate{font-size:10px;font-weight:600;color:var(--green)}
.sav-prog-bg{background:var(--border);border-radius:8px;height:7px;overflow:hidden;margin-bottom:6px}
.sav-prog-fill{background:var(--green);height:100%;border-radius:8px;transition:width 1s}
.sav-nums{display:flex;justify-content:space-between;font-size:10px;color:var(--sub);margin-bottom:12px}
.sav-btns{display:flex;gap:8px}
.sav-btns button{flex:1;padding:9px;font-size:11px;font-weight:600;border-radius:10px;cursor:pointer;font-family:inherit}

/* NOTIFICATIONS */
.notif-list-inner{display:flex;flex-direction:column;gap:6px;padding:10px 12px 0}
.notif-row{background:#fff;border-radius:14px;padding:12px 14px;display:flex;gap:10px;box-shadow:var(--sh)}
.notif-row.unread{background:#F2FBE8;border-left:3px solid var(--green)}
.notif-ic{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:14.5px;flex-shrink:0}
.notif-body-inner{flex:1}
.notif-ttl{font-size:12px;font-weight:600}
.notif-msg{font-size:11px;color:var(--sub);margin-top:3px;line-height:1.5}
.notif-time{font-size:9.5px;color:var(--sub);margin-top:5px}

/* PROFILE */
.profile-top{background:#fff;padding:28px 20px;text-align:center;border-bottom:1px solid var(--border)}
.profile-av-lg{width:76px;height:76px;border-radius:50%;background:var(--green);color:#fff;font-size:22px;font-weight:700;display:flex;align-items:center;justify-content:center;margin:0 auto 10px}
.profile-top h3{font-size:17px;font-weight:700}
.profile-top p{font-size:12px;color:var(--sub);margin-top:4px}
.kyc-pill{display:inline-block;background:var(--green-l);color:var(--green);border:1px solid var(--green);border-radius:20px;padding:4px 14px;font-size:10px;font-weight:600;margin-top:8px}
.menu-group{background:#fff;border-radius:16px;margin:12px;overflow:hidden}
.menu-label{padding:12px 16px 6px;font-size:9.5px;color:var(--sub);text-transform:uppercase;letter-spacing:.5px;font-weight:600}
.menu-row{width:100%;background:none;border:none;display:flex;justify-content:space-between;align-items:center;padding:14px 16px;cursor:pointer;font-family:inherit;font-size:13px;color:var(--text);border-top:1px solid var(--border);transition:background .15s}
.menu-row:first-of-type{border-top:none}
.menu-row:hover{background:var(--bg)}
.menu-row.danger{color:var(--red)}
.app-version{text-align:center;font-size:10px;color:var(--sub);padding:16px}

/* ADD MONEY */
.add-money-card{background:#fff;border-radius:16px;padding:16px;border:1px solid var(--border)}
.add-money-sub{font-size:11px;color:var(--sub);margin-bottom:14px;text-align:center}
.detail-rows{display:flex;flex-direction:column;gap:0}
.dr{display:flex;justify-content:space-between;align-items:center;padding:11px 0;border-bottom:1px solid var(--border)}
.dr:last-child{border-bottom:none}
.dr span{font-size:11px;color:var(--sub)}
.dr strong{font-size:13px;font-weight:600}

/* MODALS */
.modal-bg{position:fixed;inset:0;background:rgba(0,0,0,.5);backdrop-filter:blur(4px);z-index:800;display:flex;align-items:flex-end;justify-content:center}
.modal-sheet{background:#fff;border-radius:24px 24px 0 0;padding:20px 24px 36px;width:100%;max-width:420px;animation:slideUp .3s ease}
@keyframes slideUp{from{transform:translateY(100%)}to{transform:translateY(0)}}
.modal-drag{width:40px;height:4px;background:var(--border);border-radius:99px;margin:0 auto 20px}
.modal-sheet h3{font-size:17px;font-weight:700}
.modal-sheet p{font-size:12px;color:var(--sub);margin-top:5px}
.modal-btns{display:flex;gap:10px}
.modal-btns .btn-outline{flex:1}.modal-btns .btn-g{flex:2}
.pin-err{color:var(--red);font-size:11px;text-align:center}

/* SUCCESS */
.ok-sheet{text-align:center;padding:32px 24px 36px;border-radius:24px 24px 0 0}
.ok-circle{width:80px;height:80px;border-radius:50%;background:var(--green);display:flex;align-items:center;justify-content:center;margin:0 auto 16px;animation:popIn .4s cubic-bezier(.34,1.56,.64,1)}
.ok-sheet h3{font-size:18.5px;font-weight:700;margin-bottom:6px}
.ok-sheet p{font-size:12px;color:var(--sub);margin-bottom:14px}
.ok-rows{background:var(--bg);border-radius:12px;padding:12px;text-align:left;margin-bottom:4px}
.ok-row{display:flex;justify-content:space-between;padding:7px 0;font-size:12px;border-bottom:1px solid var(--border)}
.ok-row:last-child{border-bottom:none}
.ok-row span{color:var(--sub)}
.ok-row strong{font-weight:600}

/* PIN */
.pin-row{display:flex;gap:8px;justify-content:center}
.pin-digit{width:42px;height:42px;border:2px solid var(--border);border-radius:12px;text-align:center;font-size:17px;font-family:inherit;background:var(--bg);color:var(--text);outline:none;transition:border-color .2s}
.pin-digit:focus{border-color:var(--green)}

/* BUTTONS */
.btn-g{background:var(--green);color:#fff;border:none;padding:11px 24px;border-radius:14px;font-size:13.5px;font-weight:700;cursor:pointer;font-family:inherit;transition:all .2s}
.btn-g:hover{background:var(--green-d);transform:translateY(-1px)}
.btn-g:active{transform:translateY(0)}
.btn-outline{background:transparent;color:var(--green);border:2px solid var(--green);padding:12px 24px;border-radius:14px;font-size:13px;font-weight:700;cursor:pointer;font-family:inherit;transition:all .2s}

/* ── AUTH: bold Gen-Z redesign ──
   Single source of truth for #auth's buttons/inputs/pin/kyc — replaces the
   older, calmer "zen" pass, which fought this one at equal CSS specificity
   and would otherwise win by being later in the file. Gradient-glow pills,
   punchy focus rings, everything with a little spring to it. Scoped to
   #auth so the rest of the app's .btn-g/.field are untouched. */
#auth .btn-g{
  border-radius:999px;padding:10px 20px;
  background:linear-gradient(90deg,#93C736,#44601A);
  box-shadow:0 10px 26px -6px rgba(68,96,26,.55);
  letter-spacing:.2px;font-weight:800;
  transition:transform .16s cubic-bezier(.34,1.56,.64,1),box-shadow .18s ease;
}
#auth .btn-g:hover{transform:translateY(-1px) scale(1.01);box-shadow:0 14px 30px -6px rgba(68,96,26,.6)}
#auth .btn-g:active{transform:scale(.97);box-shadow:0 6px 16px -4px rgba(68,96,26,.5)}

#v-welcome .btn-g{background:linear-gradient(90deg,#93C736,#44601A)}
#v-welcome .btn-outline{
  background:rgba(255,255,255,.06);border:1.5px solid rgba(255,255,255,.22);
  color:#fff;border-radius:999px;backdrop-filter:blur(6px);
}
#v-welcome .btn-outline:hover{background:rgba(255,255,255,.12)}
#v-welcome .btn-outline:active{transform:scale(.97)}

#v-login .btn-outline,#v-register .btn-outline{border-radius:999px;border-width:1.6px;background:var(--green-l)}

#v-login .field input,#v-register .field input,
#v-login .field select,#v-register .field select,
#v-login .field textarea,#v-register .field textarea{
  background:#fff;border:1.5px solid rgba(68,96,26,.18);border-radius:16px;
  padding:8.5px 16px;font-weight:600;box-shadow:0 1px 2px rgba(0,0,0,.03);
  transition:border-color .18s ease,box-shadow .18s ease,transform .1s ease;
}
#v-login .field input:focus,#v-register .field input:focus,
#v-login .field select:focus,#v-register .field select:focus{
  border-color:var(--green);box-shadow:0 0 0 4px rgba(147,199,54,.2);
}
#v-login .field label,#v-register .field label{
  font-size:10.5px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:#44601A;
}

#auth .pin-digit{
  border:none;border-radius:14px;background:#fff;
  box-shadow:0 0 0 1.5px rgba(68,96,26,.18);font-weight:800;
  transition:box-shadow .18s ease,transform .12s ease;
}
#auth .pin-digit:focus{box-shadow:0 0 0 4px rgba(147,199,54,.22),0 0 0 1.5px var(--green)}

#auth .kyc-slot{border-radius:18px;border-color:rgba(68,96,26,.3);background:#fff}
#auth .kyc-slot.done{box-shadow:0 0 0 3px rgba(147,199,54,.2)}
#auth .kyc-slot:active{transform:scale(.98)}

/* ── REGISTER FORM — icon-prefixed inputs, more air between fields ──
   The old plain-box layout technically had rounded/shadowed inputs, but
   read flat and "corporate-form" at a glance — no visual anchor per field,
   cramped vertical rhythm. Icons give each field an instant landmark and
   let the label do less work; the extra gap keeps a 4-field form from
   feeling like a wall of boxes. */
.reg-form{display:flex;flex-direction:column;gap:2px}
/* Compact box, not edge-to-edge — the field pills above stay full width
   (align-items default is stretch), only the submit button shrinks. */
.reg-form button[type="submit"].btn-full{
  width:100%;max-width:220px;align-self:center;
}
/* Tighter outer padding than the shared .auth-view default — scoped here
   rather than changed globally so the welcome screen (already tuned
   separately) isn't affected. */
#v-login.auth-view,#v-register.auth-view{padding:14px 18px 14px}
#v-login.auth-view{justify-content:center}
.reg-form .field{margin-bottom:9px}
.field-ic{position:relative}
/* Small tinted chip behind each icon, not a bare floating glyph — a
   deliberate "designed component" touch rather than a generic template
   look, and it doubles as a bit more visual weight now everything else
   has shrunk. */
.field-ic .field-icon{
  position:absolute;left:9px;top:50%;transform:translateY(-50%);
  width:24px;height:24px;border-radius:50%;background:#E3F7CB;
  color:#44601A;pointer-events:none;
  display:flex;align-items:center;justify-content:center;
}
.field-ic .field-icon svg{width:13px;height:13px}
#v-register .field-ic input{padding-left:42px}
#v-register .field-ic .eye{top:50%}

.reg-form .field label .opt{
  display:block;font-size:10px;font-weight:600;text-transform:none;
  letter-spacing:0;color:var(--sub);margin-top:2px;
}
.reg-kyc-hint{
  font-size:11px;color:var(--sub);text-align:center;line-height:1.5;
  margin-top:10px;padding:0 8px;
}

/* ── CREATE ACCOUNT — icon-badge header, label-less pill inputs ──
   Matches the requested reference format: a circular tinted badge holding
   the mark, a big centered heading, and fields that read from their icon
   + placeholder alone (no visible label row eating vertical space) —
   labels stay in the DOM via .sr-only for screen readers, just not shown. */
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
.back-link-float{
  position:absolute;top:18px;left:18px;z-index:3;
  width:34px;height:34px;border-radius:50%;
  background:rgba(68,96,26,.08);border:none;color:#44601A;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
}
/* Fixed (not theme-aware) colours throughout this block on purpose: #v-login/
   #v-register/#v-welcome always render on their own light backdrop
   regardless of the app's global dark/light toggle (dark is the app-wide
   default) — using var(--bg)/var(--text)/var(--green-l) here pulled in
   their DARK-mode values (near-black fields, near-invisible light-on-light
   heading), which is what actually happened before this fix. */
.reg-header{display:flex;flex-direction:column;align-items:center;text-align:center;padding-top:8px;margin-bottom:12px}
.reg-badge{
  width:40px;height:40px;border-radius:50%;background:transparent;
  display:flex;align-items:center;justify-content:center;margin-bottom:8px;
  padding:8px;
}
.reg-badge img{width:100%;height:100%;object-fit:contain}
.reg-header h2{font-size:18px;font-weight:900;letter-spacing:-.3px;color:#111827}
/* Small gradient accent dash under the heading — a distinct signature
   touch rather than a plain generic form header. */
.reg-header p{font-size:11px;color:#6b7280;margin-top:6px;font-weight:500}

/* Softer, label-less pill fields — light grey fill instead of white+border,
   fully rounded, more breathing room per field than the old boxed style.
   Shared with #v-login now too, so Sign In matches Create Account exactly
   (fixed colours, not var(--green) — same #auth-stays-light reasoning as
   everywhere else in this file). Sizing is deliberately tighter than a
   typical form field — this pass exists specifically to stop the screen
   reading as an oversized generic template. */
#v-login .field input,#v-register .field input{
  background:#F1F3F1;border:1.5px solid transparent;border-radius:999px;
  padding:9px 16px;color:#111827;font-size:13px;
}
#v-login .field-ic input,#v-register .field-ic input{padding-left:42px}
#v-login .field input::placeholder,#v-register .field input::placeholder{
  color:#9ca3af;font-weight:400;
}
#v-login .field input:focus,#v-register .field input:focus{
  background:#fff;border-color:#527320;box-shadow:0 0 0 4px rgba(147,199,54,.15);
}
#v-login .field-ic .field-icon,#v-register .field-ic .field-icon{top:50%;transform:translateY(-50%);left:9px}
#v-login .field-ic .eye,#v-register .field-ic .eye{top:50%;transform:translateY(-50%)}

.terms-row{
  display:flex;align-items:flex-start;gap:8px;margin:6px 2px 4px;
  font-size:12px;color:#6b7280;line-height:1.5;cursor:pointer;
}
/* Custom box, not the browser default — white with a visible border when
   unticked, fills solid green with a white check mark once ticked. Fixed
   colours again (not var(--green)), same #auth-stays-light reasoning. */
.terms-row input[type="checkbox"]{
  appearance:none;-webkit-appearance:none;
  width:19px;height:19px;margin-top:1px;flex-shrink:0;cursor:pointer;
  background:#fff;border:1.8px solid #d1d5db;border-radius:5px;
  display:inline-flex;align-items:center;justify-content:center;
  transition:background .15s ease,border-color .15s ease;
}
.terms-row input[type="checkbox"]:checked{
  background:#527320;border-color:#527320;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size:13px 13px;background-position:center;background-repeat:no-repeat;
}
.terms-row a{color:#44601A;font-weight:700;cursor:pointer}

/* Fixed (not theme-aware) colours throughout this block, same reasoning as
   the register-screen fix above: #auth always renders on its own light
   backdrop regardless of the app's global dark/light toggle, so
   var(--bg)/var(--text)/var(--green-l)/var(--sub) here would pull in
   dark-mode values again (black OTP boxes, invisible terms text) exactly
   like before. */

/* ── EMAIL VERIFY BUTTON — sits inside the email pill, right side ──
   Same gradient as #auth .btn-g (Create Account / Sign In) — it was flat
   #527320 before, which read as a different, duller colour next to those
   gradient buttons even though the base hue matched. */
.email-verify-btn{
  position:absolute;right:6px;top:50%;transform:translateY(-50%);
  background:linear-gradient(90deg,#93C736,#44601A);color:#fff;border:none;border-radius:999px;
  font-size:11px;font-weight:800;padding:7px 14px;cursor:pointer;
  transition:opacity .15s;
}
.email-verify-btn:disabled{opacity:.55;cursor:default}
.email-verify-status{
  font-size:11px;font-weight:600;margin:-8px 4px 12px;padding-left:16px;
  min-height:14px;
}
.email-verify-status.ok{color:#44601A}
.email-verify-status.bad{color:#C42B2B}

/* ── OTP INPUT (6 digits) — same shape language as .pin-digit, one wider row ── */
.otp-row{display:flex;gap:6px;justify-content:center;margin-top:16px}
.otp-digit{
  width:38px;height:46px;border:2px solid #e5e7eb;border-radius:12px;
  text-align:center;font-size:18px;font-weight:700;font-family:inherit;
  background:#F1F3F1;color:#111827;outline:none;transition:border-color .2s;
}
.otp-digit:focus{border-color:#527320}

/* ── TERMS & CONDITIONS DOCUMENT ── */
.terms-doc{
  flex:1;overflow-y:auto;padding:0 2px 8px;
  font-size:13px;line-height:1.65;color:#111827;
}
.terms-updated{font-size:11px;color:#6b7280;font-weight:600;margin-bottom:14px}
.terms-doc h3{font-size:14px;font-weight:800;margin:18px 0 6px;color:#44601A}
.terms-doc h3:first-of-type{margin-top:0}
.terms-doc p{margin-bottom:4px;color:#6b7280}
.terms-disclaimer{
  margin-top:20px;padding:12px 14px;background:#F2FBE8;border-radius:12px;
  font-size:11.5px;font-style:italic;color:#44601A;line-height:1.6;
}
.terms-agree-btn{flex-shrink:0;margin-top:14px}

/* This modal only ever appears mid-registration, i.e. always over the
   light #auth backdrop — pin it to light regardless of the global theme
   toggle. The ID selector here outranks the app-wide
   `:root[data-theme="dark"] .modal-sheet` rule by specificity, so this
   wins even though that rule is theme-conditional and this isn't. */
#email-otp-modal .modal-sheet{background:#fff}
#email-otp-modal .modal-sheet h3{color:#111827}
#email-otp-modal .modal-sheet p{color:#6b7280}

.btn-outline:hover{background:var(--green-l)}
.btn-full{width:100%}

/* UTILITIES */
.mt8{margin-top:8px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt20{margin-top:20px}
.mx16{margin-left:16px;margin-right:16px}
.padding-x{padding:0 16px}

/* ═══════════════════════════════════════════
   REDESIGN — list-first banking layout
   ═══════════════════════════════════════════ */

:root{
  --g1:#93C736;        /* softened R-green top of gradient */
  --g2:#44601A;        /* deep green bottom */
  --tint:#F2FBE8;      /* icon tile / chevron tint */
  --band:#f2f4f6;      /* date band + section gap */
}

#screens{background:var(--band)}

/* ── TOPBAR: back + title left-aligned, actions right ── */
#topbar{padding:14px 16px;min-height:64px}
#tb-title{font-size:16px;font-weight:700;letter-spacing:-.2px}
.tb-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}
.tb-act{background:none;border:none;width:38px;height:38px;display:flex;align-items:center;
  justify-content:center;cursor:pointer;color:var(--g2);border-radius:50%;transition:background .15s}
.tb-act:hover{background:var(--tint)}

/* ── BALANCE CARD (redesign) ── */
.bal-card{
  background:linear-gradient(160deg,var(--g1) 0%,var(--g2) 100%);
  margin:12px;border-radius:14px;padding:22px 20px;color:#fff;
  display:flex;justify-content:space-between;align-items:flex-start;gap:16px;
}
.bal-main{flex:1;min-width:0}
.bal-amount{font-size:27px;font-weight:800;letter-spacing:-.5px;margin:0 0 8px}
.bal-meta{font-size:9.5px;font-weight:700;letter-spacing:.6px;opacity:.92;
  text-transform:uppercase;display:flex;flex-wrap:wrap;gap:8px;align-items:baseline}
.bal-meta .acct{letter-spacing:1px}
.bal-status{font-size:9.5px;opacity:.9;margin-top:5px}
.bal-status b{font-weight:700}
.bal-side{display:flex;flex-direction:column;gap:10px;flex-shrink:0}
.bal-cbtn{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.22);
  border:none;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;
  transition:background .15s}
.bal-cbtn:hover{background:rgba(255,255,255,.34)}

/* carousel dots */
.dots{display:flex;gap:5px;justify-content:center;align-items:center;
  background:#fff;width:fit-content;margin:0 auto 14px;padding:6px 10px;border-radius:99px;
  box-shadow:0 1px 4px rgba(0,0,0,.08)}
.dot{width:7px;height:7px;border-radius:50%;background:#d7dbe0;transition:all .25s}
.dot.on{width:20px;border-radius:99px;background:var(--g1)}

/* ── DATE-GROUPED TRANSACTION LIST ── */
.txn-group{margin-bottom:0}
.date-band{background:var(--band);padding:11px 16px;font-size:9.5px;font-weight:700;
  color:#8a9199;letter-spacing:.6px;text-transform:uppercase;
  position:sticky;top:0;z-index:4}
.row-list{background:#fff}
.trow{display:flex;align-items:flex-start;gap:14px;padding:15px 16px;cursor:pointer;
  background:#fff;border:none;width:100%;text-align:left;font-family:inherit;
  transition:background .12s;position:relative}
.trow+.trow::before{content:'';position:absolute;top:0;left:62px;right:16px;
  height:1px;background:#eceff1}
.trow:hover{background:#fafbfc}
.trow-ic{width:34px;height:34px;border-radius:8px;background:var(--tint);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--g2);margin-top:1px}
.trow-body{flex:1;min-width:0}
.trow-ttl{font-size:12px;font-weight:500;color:var(--text);line-height:1.45}
.trow-sub{font-size:10px;color:var(--sub);margin-top:3px}
.trow-amt{font-size:12px;font-weight:600;white-space:nowrap;flex-shrink:0;margin-top:1px}
.trow-amt.db{color:#e03131}
.trow-amt.cr{color:var(--g2)}

/* ── TRANSACTION DETAIL ── */
.det-hero{background:linear-gradient(160deg,var(--g1) 0%,var(--g2) 100%);
  padding:8px 20px 34px;text-align:center;color:#fff}
.det-hero-top{display:flex;align-items:center;gap:8px;margin-bottom:22px}
.det-back{background:none;border:none;color:#fff;cursor:pointer;padding:6px;display:flex}
.det-hero-date{flex:1;font-size:14.5px;font-weight:600;margin-right:34px}
.det-tile{width:72px;height:72px;border-radius:12px;background:rgba(255,255,255,.2);
  display:flex;align-items:center;justify-content:center;margin:0 auto 12px}
.det-cat{font-size:12px;opacity:.95;margin-bottom:6px}
.det-amt{font-size:22px;font-weight:700;letter-spacing:-.3px}

.det-card{background:#fff;padding:0 20px}
.det-row{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;
  padding:17px 0;border-bottom:1px solid #eceff1}
.det-row:last-child{border-bottom:none}
.det-k{font-size:12px;color:var(--text);flex-shrink:0}
.det-v{font-size:12px;color:var(--g2);text-align:right;line-height:1.5;word-break:break-word}
.det-v small{display:block;color:var(--sub);font-size:10px;margin-top:2px}
.det-gap{height:10px;background:var(--band)}

/* ── GROUPED SERVICE LIST (Quick Services) ── */
.grp-label{padding:16px 16px 8px;font-size:10px;font-weight:600;color:#8a9199;
  background:var(--band)}
.srow{display:flex;align-items:center;gap:14px;padding:16px;background:#fff;
  border:none;width:100%;text-align:left;font-family:inherit;cursor:pointer;
  transition:background .12s;position:relative}
.srow+.srow::before{content:'';position:absolute;top:0;left:62px;right:16px;
  height:1px;background:#eceff1}
.srow:hover{background:#fafbfc}
.srow-ic{width:34px;height:34px;border-radius:8px;background:var(--tint);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--g2)}
.srow-lbl{flex:1;font-size:13px;color:var(--text)}
.chev{width:28px;height:28px;border-radius:50%;background:var(--tint);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--g2)}

/* width:100% + 16px side margins overflowed the shell */
.btn-full.mx16{width:calc(100% - 32px)}

/* single tappable row (Home -> History) */
.row-list.one-row{border-radius:12px;overflow:hidden;border:1px solid #eceff1}
.one-row .srow-lbl{font-weight:600}
.srow .chev svg{width:14px;height:14px}
.srow-ic svg{width:19px;height:19px}

/* ── NOTIFICATIONS: one colour, line icons ── */
.notif-row{box-shadow:none;border:1px solid #eceff1;border-radius:12px;align-items:flex-start}
.notif-row.unread{background:#fff;border-left:3px solid var(--green)}
.notif-ic{width:36px;height:36px;border-radius:10px;background:var(--tint);
  color:var(--g2);flex-shrink:0}
.notif-ic svg{width:19px;height:19px}

/* ── PROMO STRIP: same palette as everything else ── */
.promo-strip{background:#fff;border:1px solid #eceff1;border-radius:12px;padding:14px 16px}
.promo-tag{background:var(--tint);color:var(--g2)}
.promo-emoji{width:42px;height:42px;border-radius:12px;background:var(--tint);
  color:var(--g2);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.promo-emoji svg{width:21px;height:21px}

/* ── SERVICES GRID: one colour, line icons ── */
.svc-item{box-shadow:none;background:#fff;border-radius:12px;padding:14px 6px;gap:9px}
.svc-item:hover{transform:none;box-shadow:none;background:#fafbfc}
.svc-ic{width:42px;height:42px;border-radius:12px;background:var(--tint);color:var(--g2)}
.svc-ic svg{width:21px;height:21px}
.svc-item span:last-child{font-size:9.5px;font-weight:500;color:var(--text)}

/* ── BOTTOM NAV (5 tab) ── */
#bnav{padding:6px 0 max(6px,env(safe-area-inset-bottom))}
.bn{gap:4px;padding:5px 2px;color:#9aa0a6}
.bn span{font-size:9px;font-weight:600}
.bn.active{color:var(--g2)}

/* TOAST */
.toast{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);background:#111;color:#fff;padding:10px 22px;border-radius:12px;font-size:12px;font-weight:500;z-index:999;white-space:nowrap;box-shadow:var(--sh2);animation:toastIn .25s ease}
.toast.ok{background:var(--green)}
.toast.bad{background:var(--red)}
@keyframes toastIn{from{opacity:0;bottom:70px}to{opacity:1;bottom:90px}}

/* ═══════════════════════════════════════════
   TYPE SCALE — dialled down ~1-2px across the ramp
   ═══════════════════════════════════════════ */

/* display */
.bal-amount{font-size:23px}
.det-amt{font-size:19.5px}
.auth-top h2{font-size:19.5px}
.profile-top h3{font-size:15.5px}
.big-rate{font-size:22px}
.ok-sheet h3{font-size:16px}
.modal-sheet h3{font-size:15.5px}
.splash-inner h1{font-size:27px}

/* headings + titles */
#tb-title{font-size:14.5px}
.section-ttl{font-size:12px}
.srow-lbl{font-size:12px}
.menu-row{font-size:12px}
.sav-name{font-size:12px}
.plan-size{font-size:13.5px}

/* body */
.trow-ttl{font-size:11px}
.trow-amt{font-size:11px}
.det-k,.det-v{font-size:11px}
.notif-ttl{font-size:11px}
.promo-text strong{font-size:11px}
.bene-info .bene-name{font-size:11px}
.tv-pkg-name{font-size:11px}
.ok-row{font-size:11px}
.dr strong{font-size:12px}
.field input,.field select,.field textarea{font-size:12px}
.amt-wrap input{font-size:12px}

/* secondary */
.notif-msg{font-size:10px}
.field label{font-size:10px}
.auth-top p{font-size:11px}
.welcome-art p{font-size:11px}
.switch-link{font-size:11px}
.modal-sheet p{font-size:11px}
.ok-sheet p{font-size:11px}
.chip{font-size:10px}
.tab{font-size:11px}
.see-all{font-size:10px}
.dr span{font-size:10px}
.info-box li{font-size:10px}
.empty-msg{font-size:11px}

/* fine print */
.trow-sub{font-size:9.5px}
.grp-label{font-size:9.5px}
.promo-text span{font-size:9.5px}
.bene-info .bene-bank{font-size:9.5px}
.sav-nums{font-size:9.5px}
.notif-time{font-size:9px}
.date-band{font-size:9px}
.bal-meta,.bal-status{font-size:9px}
.svc-item span:last-child{font-size:9px}
.bn span{font-size:9px}
.promo-tag{font-size:9px}
.det-v small{font-size:9.5px}

/* buttons */
.btn-g{font-size:13px;padding:11px 22px}
.btn-outline{font-size:12px;padding:9px 22px}
.card-act{font-size:10px}
.sav-btns button{font-size:10px}

/* ═══════════════════════════════════════════
   MOBILE CORRECTNESS
   ═══════════════════════════════════════════ */

/* iOS auto-zooms any focused input under 16px and never zooms back out.
   The old fix was user-scalable=no, which also blocks pinch-zoom for
   low-vision users. 16px inputs solve it without breaking zoom. */
.field input,.field select,.field textarea,.amt-wrap input,.pin-digit,.search-input{
  font-size:13.5px;
}

/* Kill the grey flash on tap; we draw our own press states */
*{-webkit-tap-highlight-color:transparent}

/* Scroll stays inside the list — no rubber-banding the whole page behind it */
#screens{overscroll-behavior:contain;scroll-behavior:smooth}

/* Notch / home-indicator safe areas (matters in installed PWA mode) */
@media(max-width:499px){
  #topbar{padding-top:calc(14px + env(safe-area-inset-top))}
  .det-hero{padding-top:calc(8px + env(safe-area-inset-top))}
  #splash{padding-top:env(safe-area-inset-top)}
}

/* Nothing may push the shell sideways.
   NB: don't set max-width on .view here — it would override the 420px
   shell width, since this rule is later in the cascade at equal specificity. */
.view{overflow-x:hidden}
#screens,.screen{max-width:100%;overflow-x:hidden}
.trow-ttl,.srow-lbl,.notif-ttl,.notif-msg{overflow-wrap:anywhere}

/* ── TAP TARGETS: 44px minimum, per WCAG 2.5.5 ── */
.tb-act,.tb-icon-btn{min-width:44px;min-height:44px}
.bn{min-height:48px}
.chip{min-height:36px;display:inline-flex;align-items:center}
.srow,.trow{min-height:56px}

/* ── PRESS FEEDBACK: instant, on every tappable ── */
.trow:active,.srow:active,.svc-item:active,.menu-row:active,.bene-row:active{
  background:#f1f4f6;transition:none;
}
.btn-g:active,.btn-outline:active,.card-act:active{transform:scale(.975)}
.bal-cbtn:active,.tb-act:active,.tb-icon-btn:active{transform:scale(.9)}
.svc-item:active{transform:scale(.96)}
.btn-g,.btn-outline,.svc-item,.bal-cbtn,.tb-act,.tb-icon-btn,.card-act{
  transition:transform .1s ease,background .15s ease;
}

/* ── FOCUS: visible for keyboard, invisible for mouse/touch ── */
:focus{outline:none}
:focus-visible{outline:2px solid var(--g2);outline-offset:2px;border-radius:8px}
.field input:focus-visible,.field select:focus-visible{outline-offset:0}

/* ── SCREEN TRANSITION ── */
.screen.active{animation:screenIn .26s cubic-bezier(.22,.61,.36,1) both}
@keyframes screenIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* ── INLINE SEARCH ── */
.search-wrap{display:flex;align-items:center;gap:9px;margin:0 12px 10px;
  background:#fff;border:1px solid #e3e7ea;border-radius:12px;padding:0 12px;
  animation:searchIn .2s ease both}
@keyframes searchIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.search-wrap:focus-within{border-color:var(--green)}
.search-ic{display:flex;color:#9aa0a6;flex-shrink:0}
.search-ic svg{width:17px;height:17px}
.search-input{flex:1;min-width:0;border:none;outline:none;background:none;
  padding:12px 0;font-family:inherit;color:var(--text)}
.search-input::-webkit-search-cancel-button{display:none}
.search-clear{background:none;border:none;padding:6px;cursor:pointer;color:#9aa0a6;
  display:flex;flex-shrink:0}
.search-clear svg{width:15px;height:15px}

/* ── SKELETONS shaped like the rows they replace ── */
.sk-band{height:11px;width:120px;margin:16px 16px 10px;border-radius:4px}
.sk-row{display:flex;align-items:center;gap:14px;padding:15px 16px;background:#fff}
.sk-tile{width:34px;height:34px;border-radius:8px;flex-shrink:0}
.sk-lines{flex:1;display:flex;flex-direction:column;gap:7px}
.sk-l1{height:11px;width:62%;border-radius:4px}
.sk-l2{height:9px;width:38%;border-radius:4px}
.sk-amt{height:11px;width:58px;border-radius:4px;flex-shrink:0}
.sk-band,.sk-tile,.sk-l1,.sk-l2,.sk-amt{
  background:linear-gradient(90deg,#eef0f2 25%,#e4e7ea 50%,#eef0f2 75%);
  background-size:200% 100%;animation:sh 1.3s infinite linear;
}

/* ── EMPTY STATE ── */
.empty-msg{display:flex;flex-direction:column;align-items:center;gap:10px;
  padding:48px 24px;color:var(--sub);text-align:center}
.empty-msg .ei{width:52px;height:52px;border-radius:16px;background:var(--tint);
  color:var(--g2);display:flex;align-items:center;justify-content:center;font-size:0;margin:0}
.empty-msg .ei svg{width:24px;height:24px}

/* ── NETWORK / PROVIDER PICKERS: selection shown by state, not brand hue ──
   Must match the two-class specificity of .nb.mtn etc, or those win. */
.nb.mtn,.nb.airtel,.nb.glo,.nb.m9,
.tvb.dstv,.tvb.gotv,.tvb.star{color:var(--sub)}
.nb,.tvb{color:var(--sub);font-weight:700}
.net-btn.active .nb,.tv-btn.active .tvb{color:var(--g2)}
.net-btn,.tv-btn{box-shadow:none;border-color:#e3e7ea}
.net-btn.active,.tv-btn.active{border-color:var(--green);background:var(--tint)}

/* ═══════════════════════════════════════════
   MOTION SYSTEM
   One easing vocabulary, used everywhere.
   ═══════════════════════════════════════════ */
:root{
  --ease-out:cubic-bezier(.22,.61,.36,1);      /* entering  */
  --ease-in:cubic-bezier(.55,.06,.68,.19);     /* leaving   */
  --ease-spring:cubic-bezier(.34,1.56,.64,1);  /* emphasis  */
}

/* ── STARTUP CHOREOGRAPHY ── */
#splash{
  background:
    radial-gradient(90% 60% at 50% 32%, rgba(255,255,255,.16), transparent 60%),
    linear-gradient(150deg,var(--g400) 0%,var(--g600) 48%,var(--g900) 100%);
  overflow:hidden;
}
/* No exit animation — #splash.done just hides instantly (see the final
   rebrand override block below, and app.js which no longer waits on a
   transition before switching screens). */
/* soft light sweeping behind the mark */
#splash::before{
  content:'';position:absolute;width:420px;height:420px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.22),transparent 68%);
  top:50%;left:50%;transform:translate(-50%,-58%) scale(.4);
  animation:glowIn 1.5s var(--ease-out) .15s forwards;
}
@keyframes glowIn{to{transform:translate(-50%,-58%) scale(1.6);opacity:.85}}

/* ── WORLD MAP LAYER ──
   The source artwork is blue; hue-rotate swings it into the brand green so the
   file never has to be re-exported. Blue sits around 197deg, the brand green
   around 85deg, hence roughly -112deg. Adjust if you swap the artwork.
   Kept low-opacity and behind everything so the wordmark stays legible. */
.splash-map{
  position:absolute;inset:0;z-index:0;pointer-events:none;
  /* Nigeria with all 37 states, built from the OCHA/OSGoF COD-AB boundaries.
     Portrait-ish (1000x811), so height-constrain it and let width follow. */
  /* The map is landscape (1000x811) inside a portrait phone frame, so it must
     be constrained by WIDTH — sizing by height made it overflow and clip the
     east/west edges. 92% leaves a little breathing room at the sides. */
  background:url('/img/nigeria-states.svg') center 46% / 92% auto no-repeat;
  opacity:.5;
  filter:drop-shadow(0 0 20px rgba(147,199,54,.3));
  animation:mapIn 2.6s var(--ease-out) both;
}
@keyframes mapIn{
  from{opacity:0;transform:scale(1.08)}
  to{opacity:.5;transform:scale(1)}
}

/* concentric rings pulsing outward — alternating brand green/gold instead
   of flat white, so the pulse itself carries brand identity */
.splash-ring{
  position:absolute;top:50%;left:50%;width:110px;height:110px;margin:-55px 0 0 -55px;
  border:1.5px solid rgba(255,255,255,.5);border-radius:34px;opacity:0;
  animation:ring 2.6s var(--ease-out) infinite;
}
.splash-ring:nth-of-type(2){animation-delay:.55s;border-color:rgba(255,215,0,.55)}
.splash-ring:nth-of-type(3){animation-delay:1.1s;border-color:rgba(147,199,54,.6)}
@keyframes ring{
  0%{transform:scale(.85);opacity:.55}
  75%{opacity:0}
  100%{transform:scale(2.6);opacity:0}
}

.splash-logo-wrap{
  position:relative;z-index:2;
  animation:markIn .85s var(--ease-spring) both;
  box-shadow:0 18px 50px rgba(0,0,0,.22),0 0 28px rgba(147,199,54,.35);
}
@keyframes markIn{
  0%{transform:scale(.3) rotate(-14deg);opacity:0}
  60%{opacity:1}
  100%{transform:scale(1) rotate(0);opacity:1}
}
/* The N strokes on first, then the two Naira bars cross it.
   Dash lengths are generous — an exact getTotalLength() isn't needed,
   any value >= the path length animates cleanly. */
.splash-logo-wrap .draw{
  stroke-dasharray:170;stroke-dashoffset:170;
  animation:draw .8s var(--ease-out) .3s forwards;
}
.splash-logo-wrap .draw2{
  stroke-dasharray:100;stroke-dashoffset:100;
  animation:draw .45s var(--ease-out) .95s forwards;
}
@keyframes draw{to{stroke-dashoffset:0}}

/* gold dot lands last, after the bars finish at 1.4s */
.splash-logo-wrap .dot{
  opacity:0;transform-origin:45px 16px;
  animation:dotPop .45s var(--ease-spring) 1.4s forwards;
}
@keyframes dotPop{0%{opacity:0;transform:scale(0)}100%{opacity:1;transform:scale(1)}}

/* wordmark: letters rise in sequence */
.splash-inner h1{position:relative;z-index:2;display:flex;gap:1px}
.splash-inner h1 span{
  display:inline-block;opacity:0;
  animation:letterUp .5s var(--ease-out) forwards;
}
@keyframes letterUp{
  from{opacity:0;transform:translateY(16px) rotate(4deg)}
  to{opacity:1;transform:none}
}
.splash-inner p{position:relative;z-index:2;animation:fadeUp .6s var(--ease-out) 1.25s both}
.splash-loader{position:relative;z-index:2}

/* ── DIRECTIONAL SCREEN TRANSITIONS ──
   Forward pushes left, back pulls right — so depth reads correctly. */
.screen.active{animation:pushIn .3s var(--ease-out) both}
.screen.active.back{animation:popIn2 .3s var(--ease-out) both}
@keyframes pushIn{from{opacity:0;transform:translateX(22px)}to{opacity:1;transform:none}}
@keyframes popIn2{from{opacity:0;transform:translateX(-22px)}to{opacity:1;transform:none}}

/* ── STAGGERED LIST ENTRY ── */
.stagger>*{animation:rowIn .34s var(--ease-out) both}
@keyframes rowIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.stagger>*:nth-child(1){animation-delay:.02s}
.stagger>*:nth-child(2){animation-delay:.06s}
.stagger>*:nth-child(3){animation-delay:.1s}
.stagger>*:nth-child(4){animation-delay:.14s}
.stagger>*:nth-child(5){animation-delay:.18s}
.stagger>*:nth-child(6){animation-delay:.22s}
.stagger>*:nth-child(7){animation-delay:.26s}
.stagger>*:nth-child(n+8){animation-delay:.3s}

/* ── BALANCE: subtle sheen when it settles ── */
.bal-card{position:relative;overflow:hidden}
.bal-card::after{
  content:'';position:absolute;top:0;left:-60%;width:45%;height:100%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.22),transparent);
  transform:skewX(-18deg);
}
.bal-card.shine::after{animation:sheen 1.1s var(--ease-out)}
@keyframes sheen{to{left:130%}}
.bal-amount{font-variant-numeric:tabular-nums}

/* ── RIPPLE ── */
.rip{position:absolute;border-radius:50%;transform:scale(0);pointer-events:none;
  background:rgba(68,96,26,.18);animation:rip .55s var(--ease-out) forwards}
@keyframes rip{to{transform:scale(2.4);opacity:0}}
.trow,.srow,.svc-item,.menu-row,.bn{position:relative;overflow:hidden}

/* ── PULL TO REFRESH ── */
#ptr{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;
  justify-content:center;height:0;overflow:hidden;color:var(--g2);z-index:6;
  pointer-events:none}
#ptr svg{width:21px;height:21px}
#ptr.spin svg{animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* ── OFFLINE BANNER ── */
#offline{position:absolute;left:0;right:0;bottom:0;background:#33383d;color:#fff;
  font-size:10px;text-align:center;padding:9px;z-index:60;
  transform:translateY(100%);transition:transform .3s var(--ease-out)}
#offline.on{transform:none}

/* ── PIN SHEET + KEYPAD ── */
#pin-modal .modal-sheet{text-align:center;padding-bottom:26px}
.pin-lock{width:46px;height:46px;border-radius:14px;background:var(--tint);color:var(--g2);
  display:flex;align-items:center;justify-content:center;margin:2px auto 12px}
.pin-lock svg{width:23px;height:23px}
#pin-modal h3{font-size:14.5px}
#pin-modal p{font-size:10px;margin-bottom:2px}

.pin-dots{display:flex;gap:14px;justify-content:center;margin:20px 0 4px}
.pin-dots i{width:13px;height:13px;border-radius:50%;background:#dfe3e6;
  transition:transform .18s var(--ease-spring),background .18s}
.pin-dots i.on{background:var(--green);transform:scale(1.22)}

.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:18px}
.keypad button{
  height:56px;border:none;border-radius:14px;background:#f4f6f7;
  font-family:inherit;font-size:18.5px;font-weight:500;color:var(--text);
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  transition:transform .09s ease,background .15s;
}
.keypad button:active{transform:scale(.94);background:var(--tint)}
.keypad .kp-ghost{background:none;font-size:11px;font-weight:600;color:var(--sub)}
.keypad .kp-ghost svg{width:22px;height:22px}
.keypad.busy{pointer-events:none;opacity:.45}

.shake{animation:shake .4s}
@keyframes shake{
  10%,90%{transform:translateX(-2px)} 20%,80%{transform:translateX(4px)}
  30%,50%,70%{transform:translateX(-7px)} 40%,60%{transform:translateX(7px)}
}

/* ═══════════════════════════════════════════════════════════
   BRAND v3 — engineered palette
   Every token pair below is measured against WCAG AA.
   Ratios in comments are vs white unless stated.
   ═══════════════════════════════════════════════════════════ */
:root{
  /* Green scale — re-anchored on the logo's actual "R" green (#ADE43D,
     sampled directly from the logo file) at step 300. That raw chip is
     vivid/lime — fine as a decorative highlight, too "shouty" to carry a
     button or text — so 400+ tone it down and deepen it step by step
     rather than just darkening the same saturated hue. --g1/--g2 (the
     gradient pair used on the balance card, primary buttons, etc.) pull
     from 400→700 specifically so those surfaces read as genuine depth —
     light-toned green settling into a rich, deep green — not a flat fill.
     400/500 are DECORATIVE ONLY (fills, gradients). 600 and 700 are the
     only steps allowed to carry text. */
  --g50 :#F2FBE8;
  --g100:#E3F7CB;
  --g200:#C8EEA0;
  --g300:#ADE43D;   /* the logo's actual "R" green, sampled directly */
  --g400:#93C736;   /* decorative — gradient light stop, softened from 300 */
  --g500:#729C2C;   /* decorative — brand mid */
  --g600:#527320;   /* interactive fill · white on this = 5.48 ✓ */
  --g700:#44601A;   /* text on light = 7.16 ✓ */
  --g800:#324812;
  --g900:#22300C;

  /* Neutrals */
  --n0  :#FFFFFF;
  --n50 :#F7F8F9;
  --n100:#EDF0F2;
  --n200:#E1E5E9;
  --n400:#9AA2AB;
  --n600:#5B6470;   /* secondary text = 5.87 ✓ (5.23 on --n50) */
  --n900:#141A1F;   /* primary text = 16.4 ✓ */

  /* Semantic — both readable on white, unlike the old #ef4444 (3.76) */
  --pos:#1E7A3D;    /* credit  = 5.35 ✓ */
  --neg:#C42B2B;    /* debit   = 5.70 ✓ */

  /* Remap legacy aliases so every existing rule inherits the fix */
  --green  :var(--g600);
  --green-d:var(--g700);
  --green-l:var(--g50);
  --g1:var(--g400);
  --g2:var(--g700);
  --tint   :var(--g50);
  --band   :var(--n100);
  --text   :var(--n900);
  --sub    :var(--n600);
  --border :var(--n200);
  --red    :var(--neg);

  /* Layered elevation — one soft ambient + one tight contact shadow */
  --e1:0 1px 2px rgba(20,26,31,.05), 0 1px 1px rgba(20,26,31,.03);
  --e2:0 4px 12px rgba(20,26,31,.07), 0 1px 3px rgba(20,26,31,.05);
  --e3:0 12px 32px rgba(20,26,31,.11), 0 3px 8px rgba(20,26,31,.06);
}

/* ── SURFACES ── */
body,#phone{background:#10151A}
#screens{background:var(--n50)}
#topbar{background:var(--n0);border-bottom:1px solid var(--n200)}

/* ── THE HERO CARD — premium bank-card treatment ──
   Deep 3-stop gradient + a top-left light source for real depth, a faint
   static grain layer (SVG turbulence, one paint — never animated, see the
   splash-screen lesson from earlier) so the surface doesn't read as a flat
   color swatch, and a small embossed chip graphic for the "this is a real
   card, not a colored div" read. Single source of truth — this is the
   last .bal-card rule in the cascade on purpose, see the earlier two now
   marked (redesign)/(sheen) above for what's still layered under it. */
.bal-card{
  background:
    radial-gradient(140% 100% at 8% -6%, rgba(255,255,255,.32) 0%, transparent 42%),
    radial-gradient(90% 70% at 100% 115%, rgba(0,0,0,.22) 0%, transparent 60%),
    linear-gradient(155deg, var(--g400) 0%, var(--g500) 45%, var(--g700) 100%);
  border-radius:20px;
  box-shadow:var(--e3), inset 0 1px 0 rgba(255,255,255,.25), inset 0 -1px 0 rgba(0,0,0,.15);
  padding:16px 20px;
}
.bal-card::before{
  content:'';position:absolute;inset:0;opacity:.5;mix-blend-mode:overlay;pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bal-chip{
  width:34px;height:26px;border-radius:6px;margin-bottom:14px;
  background:linear-gradient(155deg,#F4E7B8 0%,#D9C078 50%,#F4E7B8 100%);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.12);position:relative;overflow:hidden;
}
.bal-chip::before,.bal-chip::after{content:'';position:absolute;background:rgba(0,0,0,.14)}
.bal-chip::before{left:0;right:0;top:50%;height:1px;transform:translateY(-.5px)}
.bal-chip::after{top:0;bottom:0;left:50%;width:1px;transform:translateX(-.5px)}
.bal-eyebrow{font-size:9px;font-weight:800;letter-spacing:1.6px;text-transform:uppercase;
  opacity:.85;margin-bottom:2px}
.bal-amount{font-size:28px;font-weight:800;letter-spacing:-.8px;
  text-shadow:0 1px 2px rgba(0,0,0,.14)}
.bal-meta{opacity:.95;letter-spacing:2px;font-weight:600}
.bal-status{opacity:.85}
.bal-cbtn{background:rgba(255,255,255,.2);backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.22);transition:background .15s,transform .12s}
.bal-cbtn:active{transform:scale(.92)}

/* ── PRIMARY ACTION — white on --g600 = 5.48 ✓ ── */
.btn-g{background:var(--g600);color:#fff;border-radius:13px;box-shadow:var(--e1);font-weight:700}
.btn-g:hover{background:var(--g700)}
.btn-outline{border:1.6px solid var(--g600);color:var(--g700);border-radius:13px;font-weight:700}
.btn-outline:hover{background:var(--g50)}

/* ── ANY GREEN CARRYING TEXT now uses --g700 (7.16) ── */
.see-all,.switch-link a,.demo-tip,.back-link,.sav-rate,.plan-price,
.tv-pkg-price,.naira,.cashback,.input-with-btn button,.det-v,
.chip.active,.kyc-pill,.tab.active,.info-box h4,.big-rate,
.srow-lbl,.trow-amt.cr,.promo-tag{color:var(--g700)}
.chip.active{background:var(--g50);border-color:var(--g600)}
.kyc-pill{background:var(--g50);border-color:var(--g600)}
.input-with-btn button{background:var(--g50)}
.promo-tag{background:var(--g100)}
.trow-amt.cr{color:var(--pos)}
.trow-amt.db{color:var(--neg)}
.menu-row.danger{color:var(--neg)}

/* small print that was failing at 2.89 */
.date-band,.grp-label{color:var(--n600);background:var(--n100)}
.trow-sub,.notif-msg,.notif-time,.sav-nums,.bene-bank,.app-version{color:var(--n600)}

/* ── LIST SURFACES ── */
.row-list,.trow,.srow{background:var(--n0)}
.trow+.trow::before,.srow+.srow::before{background:var(--n100)}
.svc-item{box-shadow:var(--e1);border:1px solid var(--n200)}
.svc-ic,.srow-ic,.trow-ic,.notif-ic,.chev,.promo-emoji,.pin-lock,.empty-msg .ei{
  background:var(--g50);color:var(--g700);
}
.promo-strip{border:1px solid var(--n200);box-shadow:var(--e1);border-radius:14px}
.notif-row{border:1px solid var(--n200);box-shadow:none}
.notif-row.unread{border-left:3px solid var(--g600)}

/* ── BOTTOM NAV — active pill instead of colour alone ── */
#bnav{background:var(--n0);border-top:1px solid var(--n200)}
.bn{color:var(--n400)}
.bn.active{color:var(--g700)}
.bn.active::before{
  content:'';position:absolute;top:2px;width:26px;height:3px;border-radius:99px;
  background:var(--g600);animation:navPill .28s var(--ease-out) both;
}
@keyframes navPill{from{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}

/* ── FORMS ── */
.field input,.field select,.field textarea,.amt-wrap{
  background:var(--n0);border:1.6px solid var(--n200);border-radius:12px}
.field input:focus,.field select:focus{border-color:var(--g600)}
.amt-wrap:focus-within{border-color:var(--g600)}
.field label{color:var(--n900);font-weight:600}
.tab-bar{background:var(--n100)}
.tab.active{background:var(--n0);box-shadow:var(--e1)}

/* ── TAP TARGETS: Freeze / Details were 37px ── */
.card-act{min-height:44px;border-radius:12px;border:1.5px solid var(--n200);
  color:var(--g700);font-weight:600}
.card-act:hover{background:var(--g50);border-color:var(--g600)}
.card-act.danger{color:var(--neg)}
.sav-btns button{min-height:44px}

/* ── MISC ── */
.promo-tag{font-size:9px}          /* was 9px */
.sav-emoji{width:46px;height:46px;border-radius:14px;background:var(--g50);
  color:var(--g700);display:flex;align-items:center;justify-content:center;font-size:0}
.sav-emoji svg{width:26px;height:26px}
.savings-hero{background:linear-gradient(135deg,var(--g50),var(--g100));
  border:1px solid var(--g200);border-radius:16px}
.card-3d.green{background:
  radial-gradient(110% 80% at 10% 6%, rgba(255,255,255,.22), transparent 55%),
  linear-gradient(145deg,var(--g400),var(--g800))}
.ok-circle{background:var(--g600)}
.toast.ok{background:var(--g700)}
.toast.bad{background:var(--neg)}
.sav-prog-fill{background:var(--g600)}
.pin-dots i.on{background:var(--g600)}
.keypad button:active{background:var(--g50)}
:focus-visible{outline-color:var(--g700)}
.err{background:#FDF2F2;border-color:#F5C6C6;color:#9B1C1C}

/* ═══════════════════════════════════════════════════════════
   DARK THEME
   Only the base tokens are redefined — every alias (--green, --text, --sub,
   --border, --tint …) resolves lazily through var(), so the whole system
   flips from this one block.

   The critical inversion: --g700 is the "green that carries text". At #44601A
   it is legible on white and invisible on a dark panel, so in dark mode it
   swaps to the light end of the scale. Fill greens stay saturated.
   ═══════════════════════════════════════════════════════════ */
:root[data-theme="dark"]{
  --n0  :#171E28;   /* raised surface (cards, rows, sheets) */
  --n50 :#0F141B;   /* page background */
  --n100:#1E2733;   /* bands, tracks, inactive fills */
  --n200:#2B3542;   /* borders */
  --n400:#6B7684;
  --n600:#9AA7B5;   /* secondary text — 6.5:1 on --n0 */
  --n900:#E9EFF5;   /* primary text  — 14:1 on --n0 */
  --card:#171E28;

  --g50 :#1C2612;   /* icon tiles become dark green, not pale green */
  --g100:#28361A;
  /* --g600 deliberately NOT brightened. A lighter fill looks punchier on dark
     but drops white-on-green contrast, which fails at any size below 14px bold.
     #527320 keeps white at 5.48 and still clears 3:1 against the dark surface,
     so it satisfies both the text and the UI-component requirement. */
  --g700:#ADE43D;   /* text: the raw R-green itself — 11.13:1 on --n0, vivid reads fine on dark */

  --pos :#4ADE80;
  --neg :#F87171;

  --e1:0 1px 2px rgba(0,0,0,.4);
  --e2:0 4px 14px rgba(0,0,0,.45);
  --e3:0 14px 36px rgba(0,0,0,.55);

  /* Two token systems ended up coexisting in this file: an original
     --bg/--text/--sub/--border set (light-only, never had a dark variant)
     and the newer --n0..--n900 scale that dark mode actually redefines.
     Anything still styled with the old tokens — like the back-button icon
     on this bar — silently stayed light-mode-colored even in dark mode,
     since nothing here ever pointed the old names at the new values.
     Aliasing them fixes every such component at once, not just this one. */
  --bg:var(--n100);
  --text:var(--n900);
  --sub:var(--n600);
  --border:var(--n200);
}

/* Surfaces that hardcode #fff need pointing at the token */
:root[data-theme="dark"] #topbar,
:root[data-theme="dark"] #bnav,
:root[data-theme="dark"] .svc-item,
:root[data-theme="dark"] .txn-item,
:root[data-theme="dark"] .row-list,
:root[data-theme="dark"] .trow,
:root[data-theme="dark"] .srow,
:root[data-theme="dark"] .quick-amts button,
:root[data-theme="dark"] .tab.active,
:root[data-theme="dark"] .net-btn,
:root[data-theme="dark"] .plan-card,
:root[data-theme="dark"] .tv-btn,
:root[data-theme="dark"] .tv-pkg,
:root[data-theme="dark"] .bene-row,
:root[data-theme="dark"] .chip,
:root[data-theme="dark"] .card-act,
:root[data-theme="dark"] .sav-card,
:root[data-theme="dark"] .notif-row,
:root[data-theme="dark"] .profile-top,
:root[data-theme="dark"] .menu-group,
:root[data-theme="dark"] .add-money-card,
:root[data-theme="dark"] .modal-sheet,
:root[data-theme="dark"] .promo-strip,
:root[data-theme="dark"] .search-wrap,
:root[data-theme="dark"] .filter-scroll,
:root[data-theme="dark"] #lock,
:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field select,
:root[data-theme="dark"] .field textarea,
:root[data-theme="dark"] .amt-wrap,
:root[data-theme="dark"] .kyc-slot,
:root[data-theme="dark"] .sk-row{ background:var(--n0); }

:root[data-theme="dark"] .keypad button{ background:var(--n100); color:var(--n900) }
:root[data-theme="dark"] .keypad button:active{ background:var(--g50) }
:root[data-theme="dark"] .pin-dots i{ background:var(--n200) }

/* Hairlines and press states */
:root[data-theme="dark"] .trow+.trow::before,
:root[data-theme="dark"] .srow+.srow::before,
:root[data-theme="dark"] .det-row,
:root[data-theme="dark"] .search-wrap{ border-color:var(--n200) }
:root[data-theme="dark"] .trow+.trow::before,
:root[data-theme="dark"] .srow+.srow::before{ background:var(--n200) }
:root[data-theme="dark"] .trow:active,
:root[data-theme="dark"] .srow:active,
:root[data-theme="dark"] .svc-item:active,
:root[data-theme="dark"] .menu-row:active,
:root[data-theme="dark"] .bene-row:active{ background:var(--n100) }
:root[data-theme="dark"] .trow:hover,
:root[data-theme="dark"] .srow:hover,
:root[data-theme="dark"] .menu-row:hover,
:root[data-theme="dark"] .svc-item:hover{ background:var(--n100) }

/* Skeletons must shimmer dark, not flash white */
:root[data-theme="dark"] .sk-band,
:root[data-theme="dark"] .sk-tile,
:root[data-theme="dark"] .sk-l1,
:root[data-theme="dark"] .sk-l2,
:root[data-theme="dark"] .sk-amt{
  background:linear-gradient(90deg,#1E2733 25%,#27313E 50%,#1E2733 75%);
  background-size:200% 100%;
}

/* Errors */
:root[data-theme="dark"] .err{ background:#2A1215;border-color:#5B1D24;color:#FCA5A5 }

/* Auth screens sit on the card surface */
:root[data-theme="dark"] #auth{ background:var(--n0) }

/* The desktop surround stays dark in both themes; nudge it in light mode only */
:root[data-theme="dark"] body,
:root[data-theme="dark"] #phone{ background:#070A0E }

/* ── THEME TOGGLE CONTROL ── */
.theme-row{display:flex;align-items:center;justify-content:space-between;
  padding:14px 16px;width:100%;background:none;border:none;font-family:inherit;
  cursor:pointer;color:var(--text);border-top:1px solid var(--border)}
.theme-row:first-child{border-top:none}
.theme-row .tr-l{display:flex;align-items:center;gap:12px}
.theme-row .tr-ic{width:34px;height:34px;border-radius:10px;background:var(--tint);
  color:var(--g700);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.theme-row .tr-ic svg{width:18px;height:18px}
.theme-row .tr-t{font-size:12px}
.theme-row .tr-s{font-size:9.5px;color:var(--sub);margin-top:1px}
.switch{width:46px;height:26px;border-radius:99px;background:var(--n200);
  position:relative;flex-shrink:0;transition:background .22s var(--ease-out)}
.switch::after{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;
  border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);
  transition:transform .22s var(--ease-out)}
:root[data-theme="dark"] .switch{background:var(--g600)}
:root[data-theme="dark"] .switch::after{transform:translateX(20px)}

/* ═══════════════════════════════════════════
   SPLASH INSIDE THE PHONE FRAME
   It used to be position:fixed inset:0, so on a laptop it covered the whole
   window while every other screen sat in a 420px shell. Now #splash is just
   the dark backdrop and .splash-panel matches .view exactly.
   ═══════════════════════════════════════════ */
#splash{
  background:#10151A;
  display:flex;align-items:center;justify-content:center;
  padding:0;overflow:hidden;
}
.splash-panel{
  position:relative;overflow:hidden;
  width:100%;height:100%;max-width:420px;
  display:flex;flex-direction:column;align-items:center;justify-content:space-between;
  padding:0 0 60px;
  background:
    radial-gradient(80% 55% at 20% 8%,rgba(147,199,54,.5) 0%,transparent 60%),
    radial-gradient(70% 50% at 100% 100%,rgba(255,215,0,.3) 0%,transparent 55%),
    radial-gradient(90% 60% at 50% 32%,rgba(255,255,255,.14),transparent 60%),
    linear-gradient(150deg,#0e2408 0%,var(--g600) 55%,#081204 100%);
}
/* same rounded frame the app shell gets on a desktop viewport */
@media(min-width:500px){
  .splash-panel{
    height:calc(100vh - 40px);max-height:860px;
    border-radius:32px;box-shadow:0 24px 80px rgba(0,0,0,.5);
  }
}
@media(max-width:499px){
  .splash-panel{padding-top:env(safe-area-inset-top)}
}
/* the soft glow now anchors to the panel, not the window */
#splash::before{content:none}
.splash-panel::before{
  content:'';position:absolute;width:420px;height:420px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.22),transparent 68%);
  top:50%;left:50%;transform:translate(-50%,-58%) scale(.4);
  animation:glowIn 1.5s var(--ease-out) .15s forwards;
  z-index:0;
}

/* ── REBRAND — startup screen is just the new logo, nothing else ──
   The old panel background (dark green radial gradient) was built for a
   white-stroke monochrome wordmark; the new mark is multicolour (yellow/
   red/navy/sky over a cyan-to-gold NAIRO wordmark). Flat black read as
   dead/flat rather than premium, so this pulls very low-opacity glows in
   three of the logo's own colours (blue, gold, the R-letter green) over a
   near-black base — depth without competing with the mark or reading
   "shouty". Every old decorative layer (map, rings, hand-drawn N,
   cascading wordmark, tagline, loader bar) is gone from the markup — this
   block only needs to place the one image now inside .splash-panel. */
#splash{background:#050505}
.splash-panel{
  background:
    radial-gradient(120% 70% at 15% -10%,rgba(30,136,229,.16) 0%,transparent 60%),
    radial-gradient(100% 60% at 100% 110%,rgba(255,215,0,.13) 0%,transparent 55%),
    radial-gradient(90% 60% at 50% 45%,rgba(173,228,61,.09) 0%,transparent 60%),
    linear-gradient(165deg,#050505 0%,#0d0d0d 55%,#040404 100%);
  justify-content:center;
}
.splash-panel::before{content:none}
#splash.done{display:none}

/* ── SPLASH ENTRANCE v2 — bigger, louder, more stages ──
   Rotating multi-colour halo breathes behind everything from the first
   frame; the icon SLAMS in with a spring overshoot and then keeps a
   soft pulsing glow so it never goes static; the wordmark rises in
   underneath once the icon has landed; three staggered colour-tinted
   shockwave rings (not one flat white ring) punch outward from the
   impact; and finally a single light-shimmer sweeps once across the
   wordmark glyphs (masked to the letter shapes themselves) as a last
   "shine" beat. Every stage visibly follows the last instead of firing
   all at once. */
.splash-mark{display:flex;flex-direction:column;align-items:center;gap:14px;position:relative;z-index:2}
.splash-halo{
  position:absolute;width:380px;height:380px;top:50%;left:50%;
  transform:translate(-50%,-50%);border-radius:50%;overflow:hidden;
  filter:blur(50px);opacity:0;z-index:0;pointer-events:none;
  animation:splashHaloIn 1s ease-out .1s both;
}
.splash-halo-spin{
  width:100%;height:100%;
  background:conic-gradient(from 0deg,#00ACFC,#FDE608,#0046CD,#00ACFC);
  animation:splashHaloSpin 10s linear infinite;
}
@keyframes splashHaloIn{from{opacity:0}to{opacity:.26}}
@keyframes splashHaloSpin{to{transform:rotate(360deg)}}
.splash-icon-img{
  width:min(20vw,92px);height:auto;position:relative;z-index:2;
  animation:splashIconDrop 1.35s cubic-bezier(.34,1.56,.64,1) both,
            splashIconPulse 2.4s ease-in-out 1.45s infinite;
}
.splash-wordmark-wrap{position:relative;display:inline-block;z-index:2}
.splash-wordmark-img{
  width:min(44vw,200px);height:auto;display:block;
  animation:splashWordmarkRise 1.1s cubic-bezier(.22,.9,.32,1) .8s both;
}
/* Bigger drop, sharper rotation, harder overshoot before it settles —
   the whole point is that it visibly SLAMS into place rather than
   drifting in. */
@keyframes splashIconDrop{
  0%{transform:translateY(-90px) scale(.35) rotate(-40deg);opacity:0}
  55%{transform:translateY(10px) scale(1.22) rotate(10deg);opacity:1}
  75%{transform:translateY(-6px) scale(.94) rotate(-4deg)}
  100%{transform:translateY(0) scale(1) rotate(0);opacity:1}
}
/* Filter-only pulse (not transform) so it layers cleanly on top of the
   drop animation's held end-state instead of fighting it for control
   of `transform`. */
@keyframes splashIconPulse{
  0%,100%{filter:drop-shadow(0 0 0 rgba(255,255,255,0))}
  50%{filter:drop-shadow(0 0 16px rgba(255,255,255,.6))}
}
@keyframes splashWordmarkRise{
  from{transform:translateY(36px) scale(.85);opacity:0}
  to{transform:translateY(0) scale(1);opacity:1}
}
/* Ambient looping light sweep across the wordmark (cue borrowed from
   Brevo's homepage: a continuous, seamless auto-scrolling marquee that's
   always quietly moving rather than a one-off flourish that fires once
   and stops). Masked to the PNG's own alpha so the shine only crosses
   the letters, never the space between them. Runs on an endless
   sweep→pause→reset cycle for as long as the splash is on screen. */
.splash-shimmer{
  position:absolute;inset:0;
  background:linear-gradient(75deg,transparent 30%,rgba(255,255,255,.8) 48%,transparent 66%);
  background-size:250% 100%;background-position:-120% 0;
  -webkit-mask-image:url(/img/nairo-wordmark.png);mask-image:url(/img/nairo-wordmark.png);
  -webkit-mask-size:contain;mask-size:contain;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  opacity:0;pointer-events:none;
  animation:splashShimmerSweep 3.6s ease-in-out 2.1s infinite;
}
@keyframes splashShimmerSweep{
  0%{opacity:0;background-position:-120% 0}
  8%{opacity:1}
  35%{opacity:1;background-position:120% 0}
  45%,100%{opacity:0;background-position:120% 0}
}
.splash-glow-ring{
  position:absolute;width:340px;height:340px;border-radius:50%;
  top:50%;left:50%;transform:translate(-50%,-50%) scale(.25);opacity:0;
  pointer-events:none;z-index:1;
}
.splash-glow-ring.r1{background:radial-gradient(circle,rgba(255,255,255,.3),transparent 70%);animation:splashGlowRing 2.1s ease-out .9s both}
.splash-glow-ring.r2{background:radial-gradient(circle,rgba(0,172,252,.24),transparent 70%);animation:splashGlowRing 2.4s ease-out 1.15s both}
.splash-glow-ring.r3{background:radial-gradient(circle,rgba(253,230,8,.2),transparent 70%);animation:splashGlowRing 2.7s ease-out 1.4s both}
@keyframes splashGlowRing{
  0%{transform:translate(-50%,-50%) scale(.25);opacity:0}
  35%{opacity:1}
  100%{transform:translate(-50%,-50%) scale(1.6);opacity:0}
}
@media(prefers-reduced-motion:reduce){
  .splash-halo,.splash-halo-spin,.splash-icon-img,.splash-wordmark-img,.splash-shimmer,.splash-glow-ring{animation:none;opacity:1}
  .splash-shimmer{display:none}
}

/* ── AVATAR WITH KYC PHOTO ──
   Same elements swap between initials and the user's photo, so the sizing and
   rounding stay in one place. */
#tb-avatar.has-photo,#p-av.has-photo,#lock-av.has-photo{
  background-size:cover;background-position:center;background-repeat:no-repeat;
  font-size:0;                       /* kill any residual text node spacing */
}
#p-av.has-photo,#lock-av.has-photo{box-shadow:0 0 0 3px var(--g50), var(--e2)}
#tb-avatar.has-photo{box-shadow:0 0 0 2px var(--g50)}

/* ── KYC CAPTURE SLOTS ── */
.kyc-row{display:flex;justify-content:center;gap:10px}
.kyc-slot{background:var(--n0);border:1.6px dashed var(--n200);border-radius:14px;
  padding:10px 8px;display:flex;flex-direction:column;align-items:center;gap:5px;
  cursor:pointer;font-family:inherit;transition:border-color .18s,background .18s;
  min-height:78px;justify-content:center;width:100%;max-width:180px}
.kyc-slot:active{transform:scale(.98)}
.kyc-slot.done{border-style:solid;border-color:var(--g600);background:var(--g50)}
.kyc-thumb{width:36px;height:36px;border-radius:12px;background:var(--g50);
  color:var(--g700);display:flex;align-items:center;justify-content:center;
  overflow:hidden;flex-shrink:0}
.kyc-thumb svg{width:18px;height:18px}
.kyc-thumb img{width:100%;height:100%;object-fit:cover}
.kyc-thumb.filled{background:none}
.kyc-lbl{font-size:10px;font-weight:600;color:var(--n900)}
.kyc-state{font-size:9px;color:var(--n600)}
.kyc-slot.done .kyc-state{color:var(--g700);font-weight:600}
.kyc-note{font-size:9.5px;color:var(--n600);margin-top:8px;line-height:1.5}

/* ── PROFILE: Identity Verification menu row + status screen ── */
.menu-row-r{display:flex;align-items:center;gap:8px}
.kyc-badge{font-size:10px;font-weight:700;padding:3px 9px;border-radius:99px;
  background:var(--n100);color:var(--n600)}
.kyc-badge.pending{background:#fff7e0;color:#a16207}
.kyc-badge.verified{background:var(--g50);color:var(--g700)}
.kyc-badge.rejected{background:#fee2e2;color:#b91c1c}

.kyc-status-card{display:flex;align-items:center;gap:12px;padding:14px 16px;
  border-radius:14px;background:var(--n50);border:1px solid var(--n100)}
.kyc-status-ic{width:40px;height:40px;border-radius:50%;flex-shrink:0;
  background:var(--n200);color:var(--n0);display:flex;align-items:center;justify-content:center}
.kyc-status-card.verified{background:var(--g50);border-color:var(--g100)}
.kyc-status-card.verified .kyc-status-ic{background:var(--g600)}
.kyc-status-card.pending{background:#fffaf0;border-color:#fde8bd}
.kyc-status-card.pending .kyc-status-ic{background:#eab308}
.kyc-status-card.rejected{background:#fef2f2;border-color:#fecaca}
.kyc-status-card.rejected .kyc-status-ic{background:var(--neg,#ef4444)}
.kyc-status-title{font-size:13.5px;font-weight:700;color:var(--n900)}
.kyc-status-sub{font-size:11px;color:var(--n600);margin-top:2px}

/* ── KYC GATE MODAL — blocks the first transaction until verified ── */
.kyc-gate-sheet{text-align:center}
.kyc-gate-ic{width:56px;height:56px;border-radius:50%;margin:0 auto 14px;
  background:linear-gradient(135deg,var(--g1,#93C736),var(--g2,#44601A));
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 26px -6px rgba(68,96,26,.5)}
.kyc-gate-sheet h3{font-size:16.5px}
.kyc-gate-sheet p{font-size:12.5px;line-height:1.6;margin-top:6px}

/* ── CAMERA SHEET ── */
.cam-sheet{padding-bottom:26px}
.cam-stage{position:relative;width:100%;aspect-ratio:3/4;max-height:46vh;
  background:#10151A;border-radius:16px;overflow:hidden;margin-top:14px;
  display:flex;align-items:center;justify-content:center}
.cam-stage video,.cam-stage img{width:100%;height:100%;object-fit:cover;display:block}
.cam-guide{position:absolute;inset:0;pointer-events:none;
  border:2px dashed rgba(255,255,255,.45);border-radius:50%;
  margin:14% 18%;transition:border-radius .2s,margin .2s}
.cam-guide.doc{border-radius:12px;margin:22% 6%}
.cam-fallback{position:absolute;inset:0;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:10px;color:rgba(255,255,255,.75);
  font-size:10px;text-align:center;padding:0 24px}
.cam-fallback svg{width:30px;height:30px}
.cam-actions{display:flex;gap:8px;margin-top:16px}
.cam-actions button{flex:1;min-height:44px;padding-left:8px;padding-right:8px;font-size:11px}

/* ── LOCK SCREEN ── */
#lock{background:var(--n0);overflow-y:auto}
.lock-inner{min-height:100%;display:flex;flex-direction:column;align-items:center;
  padding:26px 24px calc(22px + env(safe-area-inset-bottom));text-align:center}
.lock-brand{color:var(--g600);margin-bottom:18px}
.lock-brand svg{width:38px;height:38px}
.lock-av{width:66px;height:66px;border-radius:50%;background:var(--g600);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:18.5px;font-weight:700;
  margin-bottom:14px;box-shadow:var(--e2);
  animation:markIn .5s var(--ease-spring) both}
.lock-inner h2{font-size:13px;font-weight:500;color:var(--n600)}
.lock-name{font-size:19.5px;font-weight:800;color:var(--n900);letter-spacing:-.4px;margin-top:2px}
#lock .pin-dots{margin:24px 0 6px}
#lock .err{margin:0;font-size:10px}
#lock-keypad{width:100%;max-width:290px;margin-top:20px}
#lock-keypad span{visibility:hidden}
.lock-switch{margin-top:auto;padding-top:22px;background:none;border:none;
  font-family:inherit;font-size:11px;font-weight:600;color:var(--g700);cursor:pointer}

/* ── REDUCED MOTION: honour the OS setting ── */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms!important;animation-iteration-count:1!important;
    transition-duration:.01ms!important;scroll-behavior:auto!important;
  }
  .screen.active,.stagger>*{animation:none!important;opacity:1!important;transform:none!important}
  .splash-ring,#splash::before{display:none}
}
