/* ============================================================
   PADI — "Dependable Speed" design system (production)
   Extracted from the approved VTU-Design-Direction-Phase app.html.
   Visual source of truth. Do not dilute.
   ============================================================ */

/* OD-LAYOUT-PRIMITIVES v1 — structure only */
@layer od-layout {
  :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }
  .od-stack   { display: flex; flex-direction: column; gap: var(--od-gap, 8px); }
  .od-row     { display: flex; align-items: center; gap: var(--od-gap, 8px); }
  .od-row-top { display: flex; align-items: flex-start; gap: var(--od-gap, 8px); }
  .od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, 8px); }
  .od-fill    { flex: 1 1 0; min-width: 0; }
  .od-fixed   { flex: none; }
  .od-grid    { display: grid; gap: var(--od-gap, 12px); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }
  .od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, 2px); }
  :where(.od-stat,.od-field,.od-cell) > :where(*) { display: block; }
  .od-tile { display: grid; grid-template-rows: auto 1fr; }
  :where(.od-tile) > :where(*) { display: block; }
  .od-media { display: block; width: 100%; height: auto; aspect-ratio: var(--od-ratio, auto); }
  .od-media-cover { object-fit: cover; }
  .od-truncate { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .od-clamp-2 { -webkit-line-clamp: 2; }
  .od-clamp-3 { -webkit-line-clamp: 3; }
  .od-lines-2 { min-height: calc(2 * 1.4em); }
  .od-nowrap  { white-space: nowrap; }
  .od-keep    { word-break: keep-all; overflow-wrap: anywhere; }
  .od-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
  .od-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
  .od-rail { display: flex; gap: var(--od-gap, 8px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
             padding-inline: var(--od-rail-pad, 16px); scroll-padding-inline: var(--od-rail-pad, 16px); }
  .od-rail::-webkit-scrollbar { display: none; }
  :where(.od-rail) > :where(*) { flex: none; scroll-snap-align: start; }
  :where(.od-rail) > :where(:last-child) { margin-inline-end: var(--od-rail-pad, 16px); }
  .od-spacer { flex: none; visibility: hidden; pointer-events: none; }
  .od-touch  { min-width: 44px; min-height: 44px; }
}
/* /OD-LAYOUT-PRIMITIVES v1 */

:root{
  --bg:#F5F7F6; --surface:#FFFFFF; --surface-2:#EEF2F0; --surface-3:#E3EAE7;
  --text:#0F1512; --muted:#5A6B64; --faint:#84948D;
  --border:#DCE4E0; --border-strong:#C6D2CD;
  --primary:#1E5BD6; --primary-strong:#1746A8; --primary-soft:#E7EEFC; --on-primary:#FFFFFF;
  --success:#147A52; --success-soft:#E1F2E9;
  --warning:#9A6A12; --warning-soft:#F6ECD8;
  --error:#B3392B; --error-soft:#FBE6E2;
  --shadow-1:0 1px 2px rgba(15,21,18,.05);
  --shadow-2:0 1px 2px rgba(15,21,18,.04), 0 10px 26px -8px rgba(15,21,18,.14);
  --shadow-3:0 18px 44px -12px rgba(15,21,18,.28);
  --ring:0 0 0 2px var(--surface), 0 0 0 4px var(--primary);
  --r-sm:8px; --r-md:12px; --r-lg:16px; --r-xl:20px; --r-pill:999px;
  --font-display:'Space Grotesk','Inter',system-ui,sans-serif;
  --font-body:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --tabbar-h:66px; --safe-b:env(safe-area-inset-bottom, 0px); --safe-t:env(safe-area-inset-top, 0px);
  --ease-out:cubic-bezier(.22,.61,.36,1); --ease-in:cubic-bezier(.4,0,1,1);
}
[data-theme="dark"]{
  --bg:#0B0F0D; --surface:#141A17; --surface-2:#1B2320; --surface-3:#222C28;
  --text:#ECF1EE; --muted:#9AA8A1; --faint:#748079;
  --border:#26302B; --border-strong:#33403A;
  --primary:#6DA2FF; --primary-strong:#8CB6FF; --primary-soft:#152238; --on-primary:#04122E;
  --success:#43CE90; --success-soft:#12241D;
  --warning:#E0A83E; --warning-soft:#2A2313;
  --error:#F37868; --error-soft:#2C1815;
  --shadow-2:0 1px 2px rgba(0,0,0,.4), 0 12px 30px -10px rgba(0,0,0,.6);
  --shadow-3:0 22px 50px -14px rgba(0,0,0,.7);
  --ring:0 0 0 2px var(--surface), 0 0 0 4px var(--primary);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font-body);font-size:16px;line-height:1.55;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2,h3,h4{margin:0;font-family:var(--font-display);font-weight:600;letter-spacing:-.015em;line-height:1.15}
p{margin:0}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
a{color:inherit;text-decoration:none}
a:hover,a:focus,a:active{color:inherit;text-decoration:none}
input,textarea,select{font:inherit;color:inherit}
:focus-visible{outline:none;box-shadow:var(--ring);border-radius:var(--r-sm)}
img,svg{display:block}
.ic{width:22px;height:22px;flex:none}
.hide{display:none !important}
.muted{color:var(--muted)}
.mono-num{font-variant-numeric:tabular-nums}
.app{display:grid;grid-template-columns:1fr;min-height:100dvh}
.main-col{display:flex;flex-direction:column;min-width:0;min-height:100dvh}
.view{flex:1 1 auto;padding-bottom:calc(var(--tabbar-h) + var(--safe-b) + 20px)}
.sidebar{display:none}
.topbar{display:none}

/* ---------- tab bar (mobile) ---------- */
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:40;display:grid;grid-template-columns:repeat(5,1fr);
  background:color-mix(in srgb, var(--surface) 88%, transparent);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
  border-top:1px solid var(--border);padding-bottom:var(--safe-b)}
.tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:var(--tabbar-h);
  padding:8px 2px 6px;color:var(--faint);font-size:11px;font-weight:600;transition:color .16s var(--ease-out)}
.tab .ic{width:24px;height:24px}
.tab.is-active{color:var(--primary)}
.tab.is-active .ic{stroke-width:2.1}
.tab:active{transform:scale(.97)}

/* ---------- screens ---------- */
.screen{animation:screenIn .26s var(--ease-out) both}
@keyframes screenIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.pad{padding:0 16px}
.stack-12{display:grid;gap:12px}
.screen-head{display:flex;align-items:center;gap:12px;padding:calc(var(--safe-t) + 12px) 16px 12px;position:sticky;top:0;z-index:30;
  background:color-mix(in srgb, var(--bg) 90%, transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.screen-head h1{font-size:18px;flex:1;min-width:0}
.head-actions{display:flex;gap:6px;margin-left:auto}
.icon-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:var(--r-pill);color:var(--text);transition:background .16s var(--ease-out)}
.icon-btn:hover{background:var(--surface-2)}
.icon-btn:active{transform:scale(.94)}
.badge-dot{position:absolute;top:9px;right:10px;width:8px;height:8px;border-radius:50%;background:var(--error);border:2px solid var(--bg)}
.back-btn{margin-left:-8px}
.home-head{justify-content:space-between}
.home-greet{display:flex;align-items:center;gap:12px;min-width:0}
.avatar{width:44px;height:44px;border-radius:14px;flex:none;display:grid;place-items:center;font-family:var(--font-display);font-weight:600;font-size:15px;background:var(--primary);color:var(--on-primary)}
.greet-line{font-size:13px;color:var(--muted);line-height:1.3}
.greet-name{font-size:18px}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 18px;border-radius:var(--r-md);
  font-weight:600;font-size:15px;transition:transform .12s var(--ease-out),background .16s var(--ease-out),box-shadow .16s,border-color .16s}
.btn .ic{width:19px;height:19px}
.btn:active{transform:scale(.975)}
.btn:disabled{opacity:.45;cursor:not-allowed;transform:none}
.btn-primary{background:var(--primary);color:var(--on-primary);box-shadow:0 1px 2px rgba(23,70,168,.28)}
.btn-primary:not(:disabled):hover{background:var(--primary-strong)}
.btn-secondary{background:var(--surface);border:1px solid var(--border-strong);color:var(--text)}
.btn-secondary:hover{background:var(--surface-2)}
.btn-ghost{background:transparent;color:var(--primary)}
.btn-ghost:hover{background:var(--primary-soft)}
.btn-light{background:rgba(255,255,255,.16);color:#fff;border:1px solid rgba(255,255,255,.22)}
.btn-light:hover{background:rgba(255,255,255,.24)}
.btn-ghost-light{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.3)}
.btn-ghost-light:hover{background:rgba(255,255,255,.12)}
.btn-block{width:100%}
.btn-danger{background:var(--error-soft);color:var(--error)}
.btn-sm{min-height:38px;padding:0 14px;font-size:13.5px;border-radius:10px}
.link{color:var(--primary);font-weight:600;font-size:13.5px;padding:4px 2px;border-radius:8px}
.link:hover{text-decoration:underline}

/* ---------- balance ---------- */
.balance-card{margin:4px 16px 0;padding:20px;border-radius:var(--r-xl);background:linear-gradient(155deg,var(--primary) 0%,var(--primary-strong) 100%);color:#fff;box-shadow:var(--shadow-2);position:relative;overflow:hidden}
.balance-card::after{content:"";position:absolute;right:-40px;top:-60px;width:180px;height:180px;border-radius:50%;background:radial-gradient(circle at center, rgba(255,255,255,.16), transparent 68%);pointer-events:none}
.balance-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.balance-label{font-size:12.5px;letter-spacing:.04em;text-transform:uppercase;opacity:.82;font-weight:600}
.wallet-id{font-size:12px;font-variant-numeric:tabular-nums;background:rgba(255,255,255,.14);padding:4px 10px;border-radius:var(--r-pill)}
.balance-amount{font-family:var(--font-display);font-weight:600;font-size:clamp(30px,9vw,38px);letter-spacing:-.02em;margin:10px 0 16px;font-variant-numeric:tabular-nums}
.balance-actions{display:flex;gap:10px;flex-wrap:wrap;position:relative;z-index:1}
.balance-eye{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;color:inherit;background:color-mix(in srgb,currentColor 15%,transparent);transition:background .16s var(--ease-out),transform .12s var(--ease-out)}
.balance-eye:hover{background:color-mix(in srgb,currentColor 26%,transparent)}
.balance-eye:active{transform:scale(.92)}
.balance-eye .ic{width:18px;height:18px}
.acct-slider{margin-top:16px}
.acct-slider-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:0 16px;margin-bottom:10px}
.acct-slider-head h2{font-size:16px}
.acct-slider-head .muted{font-size:12.5px}
.acct-rail{display:grid;gap:10px;padding:0 16px}
.acct-slide{width:100%;padding:16px;border-radius:var(--r-lg);background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-1)}
.acct-slide-top{display:flex;align-items:center;gap:10px}
.acct-logo{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;font-family:var(--font-display);font-weight:700;font-size:15px;background:var(--primary-soft);color:var(--primary);flex:none}
.acct-bank{flex:1;min-width:0;display:grid;gap:1px}
.acct-bank>*{display:block}
.acct-bank strong{font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.acct-bank span{font-size:11px;color:var(--muted)}
.acct-copy-btn{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--surface-2);color:var(--primary);flex:none;transition:background .15s var(--ease-out),transform .12s var(--ease-out)}
.acct-copy-btn:hover{background:var(--primary-soft)}
.acct-copy-btn:active{transform:scale(.93)}
.acct-copy-btn .ic{width:17px;height:17px}
.acct-number{font-family:var(--font-display);font-weight:600;font-size:clamp(22px,7vw,26px);letter-spacing:.06em;font-variant-numeric:tabular-nums;margin:12px 0 3px}
.acct-holder-label{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--faint);font-weight:600}
.acct-dots{display:flex;gap:6px;justify-content:center;margin-top:12px}
.acct-dot{width:6px;height:6px;border-radius:50%;background:var(--border-strong);transition:width .2s var(--ease-out),background .2s var(--ease-out)}
.acct-dot.is-active{width:18px;border-radius:3px;background:var(--primary)}
.plan-type-note{font-size:12.5px;color:var(--muted);margin-top:-6px}

/* ---------- quick actions ---------- */
.quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 16px 0}
.qa{display:flex;flex-direction:column;align-items:center;gap:8px;padding:8px 4px;border-radius:var(--r-md);transition:background .16s var(--ease-out)}
.qa:hover{background:var(--surface-2)}
.qa:active{transform:scale(.96)}
.qa-ic{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:var(--surface);border:1px solid var(--border);color:var(--primary);box-shadow:var(--shadow-1)}
.qa-ic .ic{width:24px;height:24px}
.qa span{font-size:12.5px;font-weight:600;color:var(--muted)}

/* ---------- sections ---------- */
.section{margin-top:24px}
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:0 16px;margin-bottom:12px}
.section-head h2{font-size:16px}
.section-head .muted{font-size:13px}

/* ---------- service grid ---------- */
.svc-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 16px}
.svc{display:flex;flex-direction:column;gap:12px;text-align:left;min-height:132px;padding:15px;border-radius:var(--r-lg);
  background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-1);transition:transform .14s var(--ease-out),box-shadow .18s var(--ease-out),border-color .18s}
.svc:hover{box-shadow:var(--shadow-2);border-color:var(--border-strong)}
.svc:active{transform:scale(.985)}
.svc--wide{grid-column:1/-1}
.svc-icon{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:var(--surface-2);color:var(--text)}
.svc-icon .ic{width:23px;height:23px}
.svc-body{display:grid;gap:2px;flex:1;min-width:0}
.svc-name{font-family:var(--font-display);font-weight:600;font-size:16px}
.svc-desc{font-size:12.5px;color:var(--muted);line-height:1.4}
.svc-foot{display:flex;align-items:center;justify-content:space-between;gap:8px}
.svc-go{color:var(--faint)}
.svc-go .ic{width:18px;height:18px}
.svc-data{background:linear-gradient(160deg,var(--primary-soft),var(--surface));border-color:transparent}
.svc-data .svc-icon{background:var(--primary);color:#fff}
.nets{display:flex;gap:6px;margin-top:4px}
.svc-bulk .svc-icon{background:#0B1F19;color:#6FE3B2}

/* ---------- Services page deck: 2-up everywhere (1-up only on tiny screens) ---------- */
.services-deck{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr));padding:0 16px}
@media (max-width:339px){
  .services-deck{grid-template-columns:1fr}
}
@media (min-width:640px){
  .services-deck{gap:12px;padding:0}
}

/* Card proportion is driven by the card's own width (container query), so the
   compact sizing is correct on a phone, in a narrow column, or side by side. */
.services-deck{container-type:inline-size;container-name:servicesdeck}

/* Card internals laid out for a balanced 2-up row */
.services-deck .svc{
  min-height:0;                 /* natural height; equalised by the grid row */
  padding:13px;
  border-radius:var(--r-lg);
  position:relative;
}
.services-deck .svc-top{display:flex;align-items:center;gap:10px}
.services-deck .svc-icon{width:38px;height:38px;flex:none;border-radius:12px}
.services-deck .svc-icon .ic{width:20px;height:20px}
.services-deck .svc-name{font-size:13.5px;line-height:1.25;display:block}
.services-deck .svc-desc{
  display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;
  -webkit-line-clamp:2;
  font-size:11.5px;color:var(--muted);line-height:1.45;margin-top:8px;
}
.services-deck .svc-go{
  position:absolute;right:10px;bottom:10px;width:26px;height:26px;
  display:grid;place-items:center;border-radius:8px;background:var(--surface-2);color:var(--muted);
}
.services-deck .svc-go .ic{width:15px;height:15px}
.services-deck .svc:hover .svc-go{background:var(--primary);color:var(--on-primary)}
/* keep the description clear of the corner chevron */
.services-deck .svc-desc{padding-right:24px}

/* One compact threshold, based on the deck's own width */
@container servicesdeck (max-width: 460px){
  .services-deck .svc{padding:11px}
  .services-deck .svc-top{gap:8px}
  .services-deck .svc-icon{width:32px;height:32px;border-radius:10px}
  .services-deck .svc-icon .ic{width:17px;height:17px}
  .services-deck .svc-name{font-size:12px}
  .services-deck .svc-desc{font-size:10.5px;margin-top:7px;padding-right:22px}
  .services-deck .svc-go{right:9px;bottom:9px;width:24px;height:24px;border-radius:7px}
  .services-deck .svc-go .ic{width:14px;height:14px}
}

/* Roomier proportions once there is real space */
@container servicesdeck (min-width: 461px){
  .services-deck .svc{padding:16px}
  .services-deck .svc-top{gap:12px}
  .services-deck .svc-icon{width:44px;height:44px;border-radius:13px}
  .services-deck .svc-icon .ic{width:23px;height:23px}
  .services-deck .svc-name{font-size:15.5px}
  .services-deck .svc-desc{font-size:12.5px;margin-top:10px;padding-right:26px}
  .services-deck .svc-go{right:12px;bottom:12px;width:28px;height:28px}
  .services-deck .svc-go .ic{width:16px;height:16px}
}

/* ---------- Dashboard services: 2-up tiles (side by side on all devices) ---------- */
.services-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0}
.services-strip .svc{
  display:flex;flex-direction:column;gap:10px;
  min-height:0;padding:14px;border-radius:var(--r-lg);position:relative;text-align:left;
}
.services-strip .svc-icon{width:40px;height:40px;flex:none;border-radius:12px}
.services-strip .svc-icon .ic{width:21px;height:21px}
.services-strip .svc-body{display:grid;gap:3px;flex:1;min-width:0;padding:0}
.services-strip .svc-name{font-family:var(--font-display);font-weight:600;font-size:14.5px;line-height:1.2}
.services-strip .svc-desc{
  font-size:11.5px;color:var(--muted);line-height:1.4;
  display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;-webkit-line-clamp:2;
}
.services-strip .nets{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}
.services-strip .nets .wm{height:16px;min-width:16px;padding:0 5px;border-radius:5px;font-size:9px}
.services-strip .svc-go{
  position:absolute;right:11px;bottom:11px;width:28px;height:28px;flex:none;
  display:grid;place-items:center;border-radius:9px;background:var(--surface-2);color:var(--faint);
  transition:background .15s var(--ease-out),color .15s var(--ease-out);
}
.services-strip .svc-go .ic{width:16px;height:16px}
.services-strip .svc:hover{border-color:var(--border-strong);box-shadow:var(--shadow-2)}
.services-strip .svc:active{transform:scale(.985)}
.services-strip .svc:hover .svc-go{background:var(--primary);color:var(--on-primary)}
.services-strip .svc-desc{padding-right:30px}

/* wordmarks */
.wm{display:inline-flex;align-items:center;justify-content:center;height:24px;min-width:24px;padding:0 7px;border-radius:7px;font-size:11px;font-weight:700;letter-spacing:.02em;font-family:var(--font-display)}
.wm-mtn{background:#FFCC00;color:#241c00}
.wm-airtel{background:#E40000;color:#fff}
.wm-glo{background:#0B7A3B;color:#fff}
.wm-9mobile{background:#00674B;color:#fff}
.wm-dstv{background:#004B8D;color:#fff}
.wm-gotv{background:#0B7A3B;color:#fff}
.wm-startimes{background:#0A3F86;color:#fff}
.wm-waec{background:#1B5E20;color:#fff}
.wm-neco{background:#6A1B9A;color:#fff}
.wm-nabteb{background:#8D4A00;color:#fff}
.wm-ikedc,.wm-ekedc,.wm-aedc,.wm-phed,.wm-kedco,.wm-ibedc{background:#1F6FB2;color:#fff}

/* ---------- transactions ---------- */
.txlist{display:flex;flex-direction:column;gap:2px;padding:0 8px}
.tx{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:11px 8px;border-radius:12px;transition:background .15s var(--ease-out)}
.tx:hover{background:var(--surface-2)}
.tx-ico{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;flex:none;background:var(--surface-2);color:var(--text)}
.tx-ico .ic{width:21px;height:21px}
.tx-ico.success{background:var(--success-soft);color:var(--success)}
.tx-ico.pending{background:var(--warning-soft);color:var(--warning)}
.tx-ico.failed{background:var(--error-soft);color:var(--error)}
.tx-main{flex:1;min-width:0;display:grid;gap:1px}
.tx-title{font-weight:600;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tx-sub{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tx-amt{text-align:right;display:grid;gap:2px;flex:none}
.tx-amt .amt{font-weight:600;font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap}
.tx-amt .amt.credit{color:var(--success)}
.status{font-size:11px;font-weight:600;letter-spacing:.02em;text-transform:capitalize}
.status.success{color:var(--success)}.status.pending{color:var(--warning)}.status.failed{color:var(--error)}
.status-dot{display:inline-flex;align-items:center;gap:5px;justify-content:flex-end}
.status-dot::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.tip{margin:22px 16px 0;font-size:13px;color:var(--muted);background:var(--surface-2);border-radius:var(--r-md);padding:12px 14px;display:flex;gap:8px;align-items:flex-start;line-height:1.5}
.tip .ic{flex:none;width:18px;height:18px}

/* ---------- forms ---------- */
.field{display:grid;gap:7px;margin-bottom:16px}
.label{font-size:13px;font-weight:600;color:var(--muted)}
.req{color:var(--error)}
.input,.select,textarea.input{width:100%;min-height:52px;padding:13px 14px;border-radius:var(--r-md);background:var(--surface);border:1px solid var(--border-strong);color:var(--text);transition:border-color .16s var(--ease-out),box-shadow .16s var(--ease-out);font-size:16px}
.input::placeholder{color:var(--faint)}
.input:focus,.select:focus,textarea.input:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft);outline:none}
.input-wrap{position:relative;display:flex;align-items:center}
.input-wrap .input{padding-left:44px}
.input-wrap .prefix{position:absolute;left:14px;color:var(--muted);display:grid;place-items:center;pointer-events:none}
.input-wrap .prefix .ic{width:20px;height:20px}
.input-btn{position:absolute;right:8px;min-height:36px;padding:0 12px;border-radius:9px;background:var(--surface-2);font-weight:600;font-size:13px;color:var(--primary)}
textarea.input{min-height:96px;resize:vertical;line-height:1.5}

/* ---------- beneficiaries picker ---------- */
.bene-row{display:flex;align-items:stretch;gap:8px}
.bene-row .input-wrap{flex:1;min-width:0}
.bene-btn{flex:none;display:inline-flex;align-items:center;gap:7px;padding:0 13px;border-radius:var(--r-md);background:var(--surface);border:1px solid var(--border-strong);color:var(--primary);font-weight:600;font-size:13px;white-space:nowrap;transition:background .15s var(--ease-out),border-color .15s var(--ease-out)}
.bene-btn:hover{background:var(--primary-soft);border-color:var(--primary)}
.bene-btn:active{transform:scale(.97)}
.bene-btn .ic{width:18px;height:18px}
.bene-btn[data-count]:not([data-count="0"])::after{content:attr(data-count);display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--primary);color:var(--on-primary);font-size:10.5px;font-weight:700}
.bene-list{display:grid;gap:6px;max-height:46vh;overflow-y:auto;margin:2px 0}
.bene-item{display:flex;align-items:stretch;gap:6px}
.bene-pick{flex:1;min-width:0;display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:var(--r-md);background:var(--surface);border:1px solid var(--border);text-align:left;transition:background .15s var(--ease-out),border-color .15s var(--ease-out)}
.bene-pick:hover{background:var(--surface-2);border-color:var(--border-strong)}
.bene-item-ic{width:36px;height:36px;flex:none;border-radius:11px;display:grid;place-items:center;background:var(--primary-soft);color:var(--primary)}
.bene-item-ic .ic{width:18px;height:18px}
.bene-item-main{flex:1;min-width:0;display:grid;gap:1px}
.bene-item-name{font-family:var(--font-display);font-weight:600;font-size:14.5px;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bene-item-sub{font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bene-del{flex:none;width:42px;border-radius:var(--r-md);background:var(--surface);border:1px solid var(--border);color:var(--faint);display:grid;place-items:center;transition:background .15s var(--ease-out),color .15s var(--ease-out)}
.bene-del:hover{background:var(--error-soft);color:var(--error);border-color:transparent}
.bene-del .ic{width:17px;height:17px}
.bene-empty{display:grid;justify-items:center;gap:6px;padding:18px 8px;text-align:center}
.bene-empty-ic{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:var(--primary-soft);color:var(--primary);margin-bottom:4px}
.bene-empty-ic .ic{width:24px;height:24px}
.bene-empty p{margin:0;font-size:14px}
.bene-add-box{display:grid;gap:0;padding:16px;border-radius:var(--r-lg);background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-1)}
.bene-group{display:grid;gap:8px;margin-bottom:16px}
.bene-group-head{font-size:11.5px;letter-spacing:.07em;text-transform:uppercase;color:var(--faint);font-weight:700;padding:2px 4px}
@media (max-width:339px){
  .bene-btn{padding:0 10px}
  .bene-btn-txt{display:none}
  .bene-btn .ic{width:20px;height:20px}
}
.err{color:var(--error);font-size:12.5px;display:flex;gap:5px;align-items:center}
.err .ic{width:14px;height:14px}
.hint{font-size:12.5px;color:var(--muted)}
.field.has-error .input{border-color:var(--error);box-shadow:0 0 0 3px var(--error-soft)}
.help-row{display:flex;justify-content:space-between;align-items:center;gap:10px}
.char-count{font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums}

/* segments */
.segment{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px;padding:4px;background:var(--surface-2);border-radius:var(--r-md)}
.seg{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;border-radius:9px;font-weight:600;font-size:13px;color:var(--muted);transition:background .16s,color .16s,box-shadow .16s}
.seg.is-active{background:var(--primary);color:var(--on-primary);box-shadow:var(--shadow-1)}
.seg.is-selected{background:var(--primary);color:var(--on-primary);box-shadow:var(--shadow-1)}
.seg.is-selected .seg-net-name{color:var(--on-primary)}
.seg.is-active .seg-net-name{color:var(--on-primary)}
.seg .wm{height:20px;font-size:10px;padding:0 6px}

/* chips */
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips.rail{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:4px;margin:0 -16px;padding-inline:16px}
.chips.rail::-webkit-scrollbar{display:none}
.chip{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border-radius:var(--r-pill);background:var(--surface);border:1px solid var(--border-strong);font-weight:600;font-size:13.5px;color:var(--text);transition:background .14s,border-color .14s,transform .12s;white-space:nowrap;flex:none}
.chip:active{transform:scale(.96)}
.chip.is-active{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}
.chip.is-selected{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}
.chip-sm{min-height:28px;padding:0 10px;font-size:12px;border-radius:8px;background:var(--surface-2);border-color:transparent;color:var(--muted)}
.filter-chip{min-height:38px;background:transparent}
.filter-chip.is-active{background:var(--text);color:var(--bg);border-color:var(--text)}

/* plans */
.plans{display:grid;gap:10px}
.plan{display:flex;align-items:center;gap:14px;padding:14px 15px;border-radius:var(--r-md);background:var(--surface);border:1.5px solid var(--border);cursor:pointer;transition:border-color .16s,box-shadow .16s,background .16s;position:relative}
.plan:hover{border-color:var(--border-strong)}
.plan input{position:absolute;opacity:0;pointer-events:none}
.plan.is-selected{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}
.plan-radio{width:22px;height:22px;border-radius:50%;border:2px solid var(--border-strong);flex:none;display:grid;place-items:center;transition:border-color .16s}
.plan.is-selected .plan-radio{border-color:var(--primary)}
.plan.is-selected .plan-radio::after{content:"";width:11px;height:11px;border-radius:50%;background:var(--primary)}
.plan-main{flex:1;min-width:0;display:grid;gap:1px}
.plan-size{font-family:var(--font-display);font-weight:600;font-size:16px}
.plan-meta{font-size:12.5px;color:var(--muted)}
.plan-price{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}

/* verify card */
.verify-card{margin-bottom:16px;padding:15px;border-radius:var(--r-md);background:var(--success-soft);border:1px solid color-mix(in srgb,var(--success) 26%,transparent);display:grid;gap:9px;animation:screenIn .3s var(--ease-out) both}
.verify-head{display:flex;align-items:center;gap:8px;color:var(--success);font-weight:700;font-size:13px}
.verify-head .ic{width:17px;height:17px}
.kv{display:flex;justify-content:space-between;gap:12px;font-size:13.5px}
.kv span{color:var(--muted)}
.kv strong{font-weight:600;text-align:right;overflow-wrap:anywhere}

/* action bar */
.action-bar{position:fixed;left:0;right:0;z-index:35;bottom:calc(var(--tabbar-h) + var(--safe-b));display:flex;align-items:center;gap:14px;padding:12px 16px;background:color-mix(in srgb,var(--surface) 92%,transparent);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-top:1px solid var(--border)}
.action-total{display:grid;gap:0;flex:1;min-width:0}
.action-total span{font-size:12px;color:var(--muted)}
.action-total strong{font-family:var(--font-display);font-size:19px;font-variant-numeric:tabular-nums}
.action-bar .btn{flex:none;min-width:150px}
.view.has-action{padding-bottom:calc(var(--tabbar-h) + var(--safe-b) + 96px)}
.pay-summary{display:grid;gap:12px;margin:8px 0 4px;padding:16px;border-radius:var(--r-lg);background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-2)}
.pay-summary-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pay-summary-label{font-size:13px;color:var(--muted)}
.pay-summary-row strong{font-family:var(--font-display);font-size:22px;font-variant-numeric:tabular-nums}
.step-card{padding:16px;border-radius:var(--r-lg);background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-1)}

/* ---------- sheets ---------- */
.scrim{position:fixed;inset:0;z-index:60;background:rgba(6,10,8,.44);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);animation:fadeIn .2s var(--ease-out)}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:61;background:var(--surface);border-radius:var(--r-xl) var(--r-xl) 0 0;max-height:90dvh;display:flex;flex-direction:column;padding-bottom:var(--safe-b);box-shadow:var(--shadow-3);animation:sheetUp .28s var(--ease-out) both}
@keyframes sheetUp{from{transform:translateY(100%)}to{transform:none}}
.sheet-grabber{width:38px;height:4px;border-radius:2px;background:var(--border-strong);margin:10px auto 4px}
.sheet-head{display:flex;align-items:flex-start;gap:12px;padding:8px 20px 6px}
.sheet-head h3{font-size:18px;flex:1;min-width:0}
.sheet-body{padding:6px 20px 8px;overflow-y:auto}
.sheet-foot{padding:12px 20px 18px;display:grid;gap:8px}
.sheet-foot-duo{grid-template-columns:1fr 1fr}
.sheet-foot-duo .btn{width:100%}
.review{display:grid;gap:2px;margin-bottom:6px}
.review-row{display:flex;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid var(--border);font-size:14px}
.review-row span{color:var(--muted)}
.review-row strong{font-weight:600;text-align:right}
.review-total{display:flex;justify-content:space-between;align-items:center;padding:14px 0 4px;font-size:15px;font-weight:600}
.review-amount{font-family:var(--font-display);font-size:22px;font-variant-numeric:tabular-nums}
.opt{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:13px 12px;border-radius:12px;transition:background .15s}
.opt:hover{background:var(--surface-2)}
.opt.is-active{background:var(--primary-soft)}
.opt-main{flex:1;min-width:0;display:grid;gap:1px}
.opt-title{font-weight:600;font-size:14.5px}
.opt-sub{font-size:12.5px;color:var(--muted)}
.opt .check{color:var(--primary);opacity:0;transition:opacity .15s}
.opt.is-active .check{opacity:1}

/* ---------- toast ---------- */
.toast-root{position:fixed;left:0;right:0;bottom:calc(var(--tabbar-h) + var(--safe-b) + 12px);z-index:70;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none;padding:0 16px}
.toast{display:flex;align-items:center;gap:10px;max-width:440px;width:100%;background:var(--text);color:var(--bg);padding:13px 15px;border-radius:var(--r-md);box-shadow:var(--shadow-3);font-size:14px;font-weight:500;animation:toastIn .26s var(--ease-out) both}
@keyframes toastIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.toast.out{animation:toastOut .2s var(--ease-in) both}
@keyframes toastOut{to{opacity:0;transform:translateY(8px)}}
.toast .ic{width:19px;height:19px;flex:none}
.toast.success .ic{color:#6FE3B2}.toast.error .ic{color:#F79A8C}.toast.info .ic{color:#8FD8BC}

/* ---------- processing ---------- */
.processing{position:fixed;inset:0;z-index:80;display:grid;place-items:center;background:color-mix(in srgb,var(--bg) 84%,transparent);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);animation:fadeIn .18s}
.processing-card{display:grid;place-items:center;gap:16px;text-align:center;padding:34px 30px;max-width:320px}
.spinner{width:52px;height:52px;border-radius:50%;border:3px solid var(--surface-3);border-top-color:var(--primary);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.processing-card p{font-size:14px;color:var(--muted)}
.processing-steps{display:grid;gap:8px;width:100%;text-align:left;margin-top:4px}
.p-step{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--faint)}
.p-step .ic{width:16px;height:16px}
.p-step.done{color:var(--success)}.p-step.active{color:var(--text)}

/* ---------- receipt ---------- */
.receipt-hero{display:grid;place-items:center;gap:12px;text-align:center;padding:22px 16px 6px}
.receipt-mark{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;background:var(--success-soft);color:var(--success);animation:pop .4s var(--ease-out) both}
.receipt-mark.pending{background:var(--warning-soft);color:var(--warning)}
.receipt-mark.failed{background:var(--error-soft);color:var(--error)}
.receipt-mark .ic{width:38px;height:38px;stroke-width:2.4}
@keyframes pop{0%{transform:scale(.6);opacity:0}60%{transform:scale(1.06)}100%{transform:scale(1);opacity:1}}
.receipt-amount{font-family:var(--font-display);font-size:34px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.receipt-card{margin:18px 16px 0;border-radius:var(--r-lg);background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-1);overflow:hidden}
.receipt-row{display:flex;justify-content:space-between;gap:14px;padding:13px 16px;border-bottom:1px dashed var(--border);font-size:14px}
.receipt-row:last-child{border-bottom:0}
.receipt-row>span{color:var(--muted);flex:none}
.receipt-row strong{font-weight:600;text-align:right;overflow-wrap:anywhere}
.pin-card{margin:16px;padding:20px;border-radius:var(--r-lg);background:#0B1F19;color:#EAFFF6;text-align:center;position:relative;overflow:hidden}
.pin-label{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#7FD9B6;font-weight:600}
.pin-value{font-family:var(--font-display);font-size:clamp(18px,5.4vw,26px);font-weight:700;letter-spacing:.12em;margin:10px 0 14px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;word-break:break-word}
.receipt-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 16px 0}

/* ---------- wallet ---------- */
.wallet-hero{margin:4px 16px 0;padding:22px;border-radius:var(--r-xl);background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-2)}
.wallet-hero .balance-amount{color:var(--text);margin-bottom:6px}
.wallet-acct{display:flex;align-items:center;gap:10px;margin-top:14px;padding:12px 14px;border-radius:var(--r-md);background:var(--surface-2)}
.wallet-acct .opt-main strong{font-family:var(--font-display);font-size:15px;letter-spacing:.02em;font-variant-numeric:tabular-nums}
.stat-strip{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 16px;margin-top:16px}
.stat{display:grid;gap:2px;padding:14px;border-radius:var(--r-md);background:var(--surface);border:1px solid var(--border)}
.stat-num{font-family:var(--font-display);font-size:20px;font-weight:600;font-variant-numeric:tabular-nums;display:block}
.stat-cap{font-size:12.5px;color:var(--muted);display:block}

/* ---------- notifications ---------- */
.notif{display:flex;gap:12px;padding:14px 16px;border-bottom:1px solid var(--border);transition:background .15s;align-items:flex-start}
.notif:hover{background:var(--surface-2)}
.notif-ico{width:40px;height:40px;border-radius:12px;flex:none;display:grid;place-items:center;background:var(--surface-2);color:var(--primary)}
.notif-ico .ic{width:20px;height:20px}
.notif-main{flex:1;min-width:0;display:grid;gap:3px}
.notif-main p{font-size:13.5px;color:var(--muted);line-height:1.45}
.notif-main strong{font-size:14.5px;font-weight:600}
.notif-time{font-size:12px;color:var(--faint);white-space:nowrap}
.notif.unread{background:color-mix(in srgb,var(--primary-soft) 55%,transparent)}
.unread-dot{width:8px;height:8px;border-radius:50%;background:var(--primary);flex:none;margin-top:6px}

/* ---------- profile ---------- */
.profile-head{display:flex;align-items:center;gap:14px;padding:16px}
.profile-head .avatar{width:58px;height:58px;border-radius:18px;font-size:19px}
.profile-list{margin:8px 16px 0;border-radius:var(--r-lg);background:var(--surface);border:1px solid var(--border);overflow:hidden;box-shadow:var(--shadow-1)}
.prow{display:flex;align-items:center;gap:13px;width:100%;text-align:left;padding:15px 16px;border-bottom:1px solid var(--border);transition:background .15s}
.prow:last-child{border-bottom:0}
.prow:hover{background:var(--surface-2)}
.prow-ico{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:var(--surface-2);color:var(--text);flex:none}
.prow-ico .ic{width:19px;height:19px}
.prow-main{flex:1;min-width:0}
.prow-main strong{display:block;font-size:14.5px;font-weight:600}
.prow-main span{font-size:12.5px;color:var(--muted)}
.prow .chev{color:var(--faint)}
.switch{position:relative;width:46px;height:28px;border-radius:var(--r-pill);background:var(--border-strong);transition:background .2s;flex:none}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:var(--shadow-1);transition:transform .2s var(--ease-out)}
.switch.on{background:var(--primary)}
.switch.on::after{transform:translateX(18px)}
[data-theme="dark"] .switch::after{background:#0B0F0D}
[data-theme="dark"] .switch.on::after{background:#04241A}

/* ---------- empty ---------- */
.empty{display:grid;place-items:center;gap:12px;text-align:center;padding:52px 30px}
.empty-ico{width:64px;height:64px;border-radius:20px;display:grid;place-items:center;background:var(--surface-2);color:var(--muted)}
.empty-ico .ic{width:30px;height:30px}
.empty h3{font-size:16px}
.empty p{font-size:13.5px;color:var(--muted);max-width:280px}

/* ---------- tables ---------- */
.tbl{width:100%;border-collapse:collapse;font-size:14px}
.tbl th{text-align:left;font-size:11.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);font-weight:600;padding:10px 14px;border-bottom:1px solid var(--border)}
.tbl td{padding:13px 14px;border-bottom:1px solid var(--border);vertical-align:middle}
.tbl tbody tr{transition:background .15s;cursor:pointer}
.tbl tbody tr:hover{background:var(--surface-2)}
.tbl .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.tbl .r{text-align:right}
.tbl-card{border-radius:var(--r-lg);background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-1);overflow:hidden}

/* ---------- auth ---------- */
body.auth-on .sidebar,body.auth-on .topbar,body.auth-on .tabbar{display:none !important}
body.auth-on .app{grid-template-columns:1fr}
body.auth-on .view{display:grid;place-items:center;min-height:100dvh;padding:24px 0}
body.auth-on .screen{width:100%;max-width:1000px}
.auth{width:100%;max-width:430px;margin:0 auto;padding:8px 20px 40px}
.auth-brand{display:flex;align-items:center;gap:11px;margin-bottom:24px}
.auth-brand .brand-mark{width:42px;height:42px;border-radius:12px;background:var(--primary);color:var(--on-primary);display:grid;place-items:center;font-family:var(--font-display);font-weight:700;font-size:21px}
.auth-brand .brand-name{font-family:var(--font-display);font-weight:700;font-size:20px;letter-spacing:-.02em}
.auth h1{font-size:24px}
.auth .auth-sub{color:var(--muted);font-size:14px;margin:6px 0 22px;line-height:1.5}
.auth-foot{margin-top:18px;font-size:14px;color:var(--muted);text-align:center}
.auth-link{color:var(--primary);font-weight:600}
.auth-link:hover{text-decoration:underline}
.otp-row{display:flex;gap:8px}
.otp-row input{width:100%;min-height:56px;text-align:center;font-family:var(--font-display);font-size:20px;letter-spacing:.08em;border:1px solid var(--border-strong);border-radius:var(--r-md);background:var(--surface);color:var(--text)}
.otp-row input:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft);outline:none}
.check-row{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;color:var(--muted);margin-bottom:16px;line-height:1.5}
.check-row input{width:20px;height:20px;accent-color:var(--primary);flex:none;margin-top:1px}
.auth-alt{margin-top:10px;text-align:center;font-size:13.5px;color:var(--muted)}

/* ---------- secondary pages ---------- */
.faq{margin:8px 16px 0;border:1px solid var(--border);border-radius:var(--r-lg);background:var(--surface);overflow:hidden;box-shadow:var(--shadow-1)}
.faq details{border-bottom:1px solid var(--border)}
.faq details:last-child{border-bottom:0}
.faq summary{list-style:none;cursor:pointer;padding:15px 16px;font-weight:600;font-size:14.5px;display:flex;justify-content:space-between;gap:12px;align-items:center}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-family:var(--font-display);color:var(--muted);font-size:18px}
.faq details[open] summary::after{content:"\2013"}
.faq p{padding:0 16px 16px;color:var(--muted);font-size:13.5px;line-height:1.6;margin:0}
.bene{display:flex;align-items:center;gap:12px;padding:13px 16px;border-bottom:1px solid var(--border)}
.bene:last-child{border-bottom:0}
.bene .avatar{width:40px;height:40px;border-radius:12px;font-size:14px}
.bene-main{flex:1;min-width:0;display:grid;gap:1px}
.bene-main strong{font-size:14.5px;font-weight:600}
.bene-main span{font-size:12.5px;color:var(--muted)}
.tier{display:flex;gap:14px;padding:16px;border-radius:var(--r-lg);background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-1);margin-bottom:12px}
.tier-ico{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;flex:none;background:var(--surface-2);color:var(--primary)}
.tier-main{flex:1;min-width:0;display:grid;gap:2px}
.tier-main strong{font-family:var(--font-display);font-size:16px}
.tier-main p{font-size:13px;color:var(--muted);line-height:1.5}
.tier.done .tier-ico{background:var(--success-soft);color:var(--success)}

/* ---------- identity verification ---------- */
.vplans{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.vplan{padding:14px;border-radius:var(--r-md);border:1.5px solid var(--border);background:var(--surface);text-align:left;display:grid;gap:3px;transition:border-color .16s var(--ease-out),box-shadow .16s var(--ease-out)}
.vplan.is-active{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}
.vplan-name{font-family:var(--font-display);font-weight:600;font-size:15px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.vplan-price{font-weight:700;font-variant-numeric:tabular-nums}
.vplan-desc{font-size:12px;color:var(--muted);line-height:1.4}
.consent-row{display:flex;gap:11px;align-items:flex-start;font-size:13.5px;color:var(--muted);line-height:1.5;margin:6px 0 2px}
.consent-row input{width:20px;height:20px;accent-color:var(--primary);flex:none;margin-top:1px}
.slip-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 16px 0}
@media print{
  .sidebar,.topbar,.tabbar,.screen-head,.slip-actions,.toast-root,#overlayRoot,.tip{display:none !important}
  body{background:#fff !important}
  .view{padding:0 !important}
  .screen{max-width:640px !important}
  .slip-sheet{border:1px solid var(--border) !important;box-shadow:none !important}
}

/* ---------- responsive: tablet ---------- */
@media (min-width:640px){
  .quick-actions{max-width:560px}
  .stat-strip{grid-template-columns:repeat(3,1fr)}
  .services-strip .svc{padding:16px}
  .services-strip .svc-icon{width:44px;height:44px;border-radius:13px}
  .services-strip .svc-icon .ic{width:23px;height:23px}
  .services-strip .svc-name{font-size:15.5px}
  .services-strip .svc-desc{font-size:12.5px;-webkit-line-clamp:2}
}

/* ============================================================
   DESKTOP (>=1024)
   ============================================================ */
@media (min-width:1024px){
  .app{grid-template-columns:260px minmax(0,1fr)}
  .view{padding:26px 28px 40px;padding-bottom:40px}
  .tabbar{display:none}
  .screen-head{display:none}
  .screen{animation:none}
  .sidebar{display:flex;flex-direction:column;gap:2px;position:sticky;top:0;height:100dvh;overflow-y:auto;padding:20px 14px;background:var(--surface);border-right:1px solid var(--border)}
  .brand{display:flex;align-items:center;gap:11px;padding:4px 10px 18px}
  .brand-mark{width:38px;height:38px;border-radius:11px;background:var(--primary);color:var(--on-primary);display:grid;place-items:center;font-family:var(--font-display);font-weight:700;font-size:19px}
  .brand-name{font-family:var(--font-display);font-weight:700;font-size:19px;letter-spacing:-.02em}
  .brand-sub{font-size:11.5px;color:var(--muted)}
  .nav-label{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--faint);font-weight:600;padding:16px 12px 6px}
  .nav-item{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:10px 12px;border-radius:11px;font-size:14.5px;font-weight:500;color:var(--muted);transition:background .15s,color .15s;text-decoration:none}
  .nav-item .ic{width:20px;height:20px}
  .nav-item:hover{background:var(--surface-2);color:var(--text)}
  .nav-item.is-active{background:var(--primary-soft);color:var(--primary);font-weight:600}
  [data-theme="dark"] .nav-item.is-active{background:var(--surface-2);color:var(--primary)}
  .nav-spacer{flex:1;min-height:16px}
  .nav-cta{margin:10px 2px 0}
  .topbar{display:flex;align-items:center;gap:16px;position:sticky;top:0;z-index:30;padding:14px 28px;background:color-mix(in srgb,var(--bg) 88%,transparent);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-bottom:1px solid var(--border)}
  .topbar-title{font-family:var(--font-display);font-size:19px;font-weight:600}
  .search{display:flex;align-items:center;gap:9px;width:320px;min-height:42px;padding:0 14px;border-radius:var(--r-pill);background:var(--surface);border:1px solid var(--border);color:var(--muted);margin-left:8px}
  .search input{border:0;background:none;outline:none;width:100%;font-size:14px}
  .search .ic{width:18px;height:18px}
  .topbar-right{display:flex;align-items:center;gap:10px;margin-left:auto}
  .topbalance{display:flex;flex-direction:column;align-items:flex-end;padding-right:12px;border-right:1px solid var(--border)}
  .topbalance span{font-size:11px;color:var(--muted)}
  .topbalance strong{font-family:var(--font-display);font-size:16px;font-variant-numeric:tabular-nums}
  .screen{max-width:1320px;margin:0 auto}
  .pad{padding:0}
  .section{margin-top:26px}
  .section-head{padding:0;margin-bottom:14px}
  .balance-card{margin:0;max-width:440px}
  .quick-actions{margin:22px 0 0;max-width:none;grid-template-columns:repeat(6,1fr);gap:10px}
  .qa{padding:14px 10px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);box-shadow:var(--shadow-1)}
  .qa:hover{background:var(--surface-2)}
  .qa span{font-size:13px;color:var(--text)}
  .services-strip{gap:12px}
  .tip{margin:24px 0 0}
  .stat-strip{padding:0}
  .txlist{padding:0;gap:0}
  .tx{padding:13px 12px}
  .notif{border:1px solid var(--border);border-bottom:0;padding:16px 18px}
  .notif:first-child{border-radius:var(--r-lg) var(--r-lg) 0 0}
  .notif:last-child{border-bottom:1px solid var(--border);border-radius:0 0 var(--r-lg) var(--r-lg)}
  .profile-list,.wallet-hero{margin-left:0;margin-right:0}
  .wallet-hero{max-width:460px}
  .receipt-card,.receipt-actions,.pin-card{margin-left:0;margin-right:0;max-width:520px}
  .receipt-hero{justify-items:start;text-align:left;padding-left:0}
  .empty{padding:80px}
  .home-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:26px;align-items:start}
  .home-grid .balance-card{max-width:none}
  .acct-slider{margin-top:20px}
  .acct-slider-head{padding:0}
  .acct-rail{padding:0}
  .desk-2{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:22px;align-items:start}
  .desk-form{max-width:560px}
  .action-bar{position:sticky;bottom:0;left:auto;right:auto;margin-top:22px;max-width:560px;border:1px solid var(--border);border-radius:var(--r-lg);box-shadow:var(--shadow-2);background:var(--surface)}
  .action-bar .btn{min-width:190px}
  .view.has-action{padding-bottom:40px}
  .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
  .form-grid .span-2{grid-column:1/-1}
  .chips.rail{flex-wrap:wrap;overflow:visible;margin:0;padding-inline:0}
  .sheet{left:50%;right:auto;top:50%;bottom:auto;transform:translate(-50%,-50%);width:min(460px,92vw);border-radius:var(--r-xl);max-height:86dvh;padding-bottom:0;animation:dialogIn .24s var(--ease-out) both}
  @keyframes dialogIn{from{opacity:0;transform:translate(-50%,-46%)}to{opacity:1;transform:translate(-50%,-50%)}}
  .sheet-grabber{display:none}
  .sheet-head{padding-top:20px}
  .toast-root{bottom:28px;left:auto;right:28px;align-items:flex-end;width:auto}
  .toast{width:auto;max-width:420px}
  .profile-head{max-width:640px}
  .receipt-amount{font-size:38px}
}
@media (min-width:1440px){
  .desk-2{grid-template-columns:minmax(0,1.7fr) minmax(340px,1fr)}
}
.only-mobile{display:block}
.only-desk{display:none}
@media (min-width:1024px){ .only-mobile{display:none} .only-desk{display:block} }

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;scroll-behavior:auto !important}
}
