/* ==========================================================================
   Imran Invest — investor dashboard (v3)
   Dark-green header, round actions, pastel tiles, white cards, floating nav.
   ========================================================================== */
:root {
  --bg: #F3F4F1;
  --surface: #FFFFFF;
  --surface-2: #F5F6F3;
  --ink: #0F1A14;
  --ink-2: #33403A;
  --muted: #6B746F;
  --line: #E9ECE7;
  --hdr1: #11251C;
  --hdr2: #1B392D;
  --lime: #C9D54C;
  --lime-2: #D8E36A;
  --lime-soft: #F6F9D2;
  --green: #1F9D50;
  --green-soft: #E7F6EC;
  --red: #E5484D;
  --red-soft: #FDECEC;
  --amber: #E08A00;
  --amber-soft: #FFF4E0;
  --blue: #3B6FF5;
  --blue-soft: #E8EEFF;
  --purple: #7C5CF5;
  --purple-soft: #F0EBFF;
  --teal: #0F9F8F;
  --teal-soft: #E2F6F3;
  --yellow: #A86A00;
  --yellow-soft: #FFF5D6;
  /* aliases kept for older markup */
  --leaf: var(--green); --leaf-soft: var(--green-soft); --rust: var(--red); --rust-soft: var(--red-soft);
  --ochre: var(--lime); --ochre-soft: var(--lime-soft); --ochre-ink: #5E6A0E; --sky-soft: var(--blue-soft); --sky-ink: var(--blue);
  --forest: var(--hdr1); --forest-2: var(--hdr2); --forest-3: var(--green); --stone: var(--bg);
  --on-forest: #F2F6F1; --on-forest-muted: rgba(255,255,255,.66);

  --r-xl: 28px; --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
  --f: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --sh: 0 1px 2px rgba(15,26,20,.04), 0 6px 18px -10px rgba(15,26,20,.14);
  --sh-lg: 0 10px 40px -12px rgba(15,26,20,.25);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1210; --surface: #141D19; --surface-2: #1A2520; --ink: #E8EEEA; --ink-2: #C3CEC8; --muted: #93A39B; --line: #22302A;
    --green-soft: #12301F; --red-soft: #3A1717; --amber-soft: #3A2A0E; --blue-soft: #16224A; --purple-soft: #261D4A; --teal-soft: #0F2E2A; --yellow-soft: #33280B; --lime-soft: #2A2F0F;
    --green: #3FC57A; --red: #FF7A7E; --amber: #FFB84D; --blue: #7FA2FF; --purple: #A992FF; --teal: #3DD6C3; --yellow: #F2C14E;
    --sh: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1210; --surface: #141D19; --surface-2: #1A2520; --ink: #E8EEEA; --ink-2: #C3CEC8; --muted: #93A39B; --line: #22302A;
  --green-soft: #12301F; --red-soft: #3A1717; --amber-soft: #3A2A0E; --blue-soft: #16224A; --purple-soft: #261D4A; --teal-soft: #0F2E2A; --yellow-soft: #33280B; --lime-soft: #2A2F0F;
  --green: #3FC57A; --red: #FF7A7E; --amber: #FFB84D; --blue: #7FA2FF; --purple: #A992FF; --teal: #3DD6C3; --yellow: #F2C14E;
  --sh: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--f); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--green); }
:focus-visible { outline: 2.5px solid var(--lime); outline-offset: 2px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 { margin: 0; letter-spacing: -.03em; font-weight: 700; }
h1 { font-size: 1.45rem; line-height: 1.2; }
h2 { font-size: 1.05rem; line-height: 1.3; }
h3 { font-size: 1rem; line-height: 1.3; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.plus { color: var(--green) !important; }
.amount { font-weight: 700; letter-spacing: -.04em; }
.amount .kobo, .dh-amt .kobo { font-size: .55em; opacity: .7; margin-left: 1px; }
.wrap { white-space: normal !important; }

/* boot */
.boot { min-height: 100dvh; display: grid; place-items: center; background: var(--hdr1); color: var(--lime); }
.boot-mark { width: 56px; height: 56px; animation: boot 1.2s ease-in-out infinite alternate; }
@keyframes boot { from { opacity: .4; transform: translateY(2px); } to { opacity: 1; } }

/* ---------- layout ---------- */
.app { min-height: 100dvh; }
.main { padding-bottom: calc(96px + var(--safe-b)); overflow-x: clip; }
.view { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.stack { display: grid; gap: 14px; align-content: start; }
.stack-s { display: grid; gap: 8px; }
.row-flex { display: flex; align-items: center; gap: 12px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.section { margin-top: 18px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.section-head a, .link, .see { font-size: .88rem; font-weight: 700; color: var(--green); text-decoration: none; }
.cols { display: grid; gap: 14px; }
.cols > * { min-width: 0; }

/* ---------- top bar (plain screens) ---------- */
.topbar { position: sticky; top: 0; z-index: 20; padding: calc(10px + var(--safe-t)) 16px 10px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.topbar-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 12px; min-height: 46px; }
.topbar h1 { font-size: 1.3rem; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; flex: none; background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; position: relative; box-shadow: var(--sh); text-decoration: none; }
.icon-btn .dot, .glass-btn .dot { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--hdr1); }
.icon-btn .dot { box-shadow: 0 0 0 2px var(--surface); }
.back { background: transparent; box-shadow: none; margin-left: -8px; }

/* ---------- dark header (Tega style) ---------- */
.dhero { padding: 0; }
.dhero-in { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: calc(14px + var(--safe-t)) 18px 22px; border-radius: 0 0 30px 30px;
  background: radial-gradient(120% 90% at 85% 0%, #2B5A44 0%, transparent 55%), radial-gradient(80% 60% at 0% 100%, #16372A, transparent 70%), linear-gradient(170deg, var(--hdr1), var(--hdr2)); }
.dh-glow { position: absolute; z-index: -1; right: -80px; top: -90px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(closest-side, rgba(201,213,76,.22), transparent); animation: glowDrift 9s ease-in-out infinite alternate; }
@keyframes glowDrift { to { transform: translate(-30px, 20px) scale(1.15); } }
.dh-top { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.dh-me { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-width: 0; flex: 1; }
.dh-me small { display: block; color: rgba(255,255,255,.7); font-size: .8rem; }
.dh-me b { display: block; font-size: 1.15rem; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dh-title { flex: 1; text-align: center; font-size: 1.05rem; }
.dh-sp { width: 44px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--lime); color: var(--hdr1); font-weight: 800; font-size: .95rem; text-decoration: none; }
.avatar.ring { box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 0 0 4px rgba(201,213,76,.45); }
.glass-btn { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); position: relative; text-decoration: none; transition: background .2s; }
.glass-btn:hover { background: rgba(255,255,255,.18); }
.dh-bal { display: grid; justify-items: center; text-align: center; margin-top: 18px; }
.dh-lbl { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.72); font-size: .9rem; }
.peek { background: none; border: 0; color: inherit; padding: 4px; cursor: pointer; border-radius: 8px; display: grid; }
.peek .ic { width: 17px; height: 17px; }
.dh-amt { font-size: clamp(2.1rem, 9vw, 2.7rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.1; margin: 6px 0 10px; }
.dchip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: 99px; background: var(--lime); color: var(--hdr1); font-weight: 700; font-size: .8rem; }
.dchip .ic { width: 14px; height: 14px; stroke-width: 2.5; }
.dchip.lite { background: var(--green-soft); color: var(--green); }
.dchip.lite.neg { background: var(--red-soft); color: var(--red); }
.qacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 22px; }
.dhero-in { padding-bottom: 38px; }
.qa { display: grid; justify-items: center; gap: 8px; text-decoration: none; color: #fff; background: none; border: 0; padding: 0; cursor: pointer; font-size: .8rem; font-weight: 600; }
.qa i { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); transition: transform .3s var(--spring), background .2s; }
.qa.on i { background: var(--lime); color: var(--hdr1); box-shadow: 0 8px 22px -8px rgba(201,213,76,.8); }
.qa .ic { width: 22px; height: 22px; }
.qa:hover i { transform: translateY(-3px); }
.qa:active i { transform: scale(.92); }
.qa[disabled] { opacity: .45; cursor: not-allowed; }
.blur .money-v { filter: blur(9px); user-select: none; }

/* summary strips under the header */
.split3, .split4 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: -20px 0 16px; position: relative; z-index: 2; }
.split4 { grid-template-columns: 1fr 1fr; margin-top: 16px; }
.split3 > *, .split4 > * { background: var(--surface); border-radius: 18px; padding: 12px; box-shadow: var(--sh); text-decoration: none; color: var(--ink); min-width: 0; }
.split3 small, .split4 small { display: block; color: var(--muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.split3 b, .split4 b { display: block; font-size: .98rem; font-weight: 800; letter-spacing: -.03em; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 700px) { .split4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- cards ---------- */
.card { display: block; background: var(--surface); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--sh); color: var(--ink); text-decoration: none; }
.card.flush { padding: 0; overflow: hidden; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-h.pad { padding: 16px 16px 4px; margin: 0; }
.panel { background: var(--surface); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--sh); }
.panel-flush { padding: 4px 0; overflow: hidden; }
.grp { font-size: .82rem; color: var(--muted); font-weight: 700; margin: 4px 4px 8px; letter-spacing: 0; }

/* pastel shortcut tiles */
.tiles4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tiles4 > * { display: grid; justify-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-size: .8rem; font-weight: 600; background: none; border: 0; padding: 4px 0; cursor: pointer; }
.tiles4 > *[disabled] { opacity: .45; cursor: not-allowed; }
.tl { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; transition: transform .3s var(--spring); }
.tl .ic { width: 24px; height: 24px; }
.tiles4 > *:hover .tl { transform: translateY(-3px) rotate(-3deg); }
.tl.g { background: var(--green-soft); color: var(--green); } .tl.a { background: var(--amber-soft); color: var(--amber); }
.tl.b { background: var(--blue-soft); color: var(--blue); } .tl.p { background: var(--purple-soft); color: var(--purple); }

/* tinted icon squares (transactions, notifications) */
.tico { width: 42px; height: 42px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.tico .ic { width: 20px; height: 20px; }
.tico.lg { width: 56px; height: 56px; border-radius: 18px; } .tico.lg .ic { width: 26px; height: 26px; }
.tico.g { background: var(--green-soft); color: var(--green); } .tico.a { background: var(--amber-soft); color: var(--amber); }
.tico.b { background: var(--blue-soft); color: var(--blue); } .tico.p { background: var(--purple-soft); color: var(--purple); }
.tico.r { background: var(--red-soft); color: var(--red); } .tico.y { background: var(--yellow-soft); color: var(--yellow); }
.tico.t { background: var(--teal-soft); color: var(--teal); }
.ico { width: 42px; height: 42px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--surface-2); color: var(--green); }
.ico.in { background: var(--green-soft); color: var(--green); } .ico.out { background: var(--red-soft); color: var(--red); } .ico.wait { background: var(--yellow-soft); color: var(--yellow); }

/* bank logos */
.blogo { width: 42px; height: 42px; flex: none; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; overflow: hidden; }
.blogo img { width: 78%; height: 78%; object-fit: contain; }
.blogo.txt { background: var(--blue-soft); color: var(--blue); font-weight: 800; font-size: .8rem; box-shadow: none; }
.blogo.sm { width: 28px; height: 28px; border-radius: 8px; }
.bank-line { display: inline-flex !important; align-items: center; gap: 8px; }
.bank-pick { position: relative; display: block; }
.bank-pick #bl { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); }
.bank-pick #bl:not(:empty) + .input { padding-left: 48px; }

/* nudges (setup reminders) */
.nudge { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border-radius: 18px; box-shadow: var(--sh); color: var(--ink); text-decoration: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.nudge.static { cursor: default; }
.nudge b { display: block; font-size: .92rem; }
.nudge small { display: block; color: var(--muted); font-size: .8rem; }
.chev { color: var(--muted); width: 18px; height: 18px; }

/* goal / next maturity */
.goal-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 1rem; }
.goal-row .pct { color: var(--green); }
.bar { display: block; height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 10px 0; }
.bar.sm { height: 6px; margin: 8px 0 0; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, #1F9D50, #45C16F); transform-origin: left; animation: grow 1.2s var(--ease) both .2s; }
@keyframes grow { from { transform: scaleX(0); } }
.goal-sub { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .8rem; }
.empty-goal { display: flex; align-items: center; gap: 14px; }
.empty-goal b { display: block; }
.empty-goal small { display: block; color: var(--muted); font-size: .82rem; }
.empty-goal > span:nth-child(2) { flex: 1; }

/* lists */
.list { list-style: none; margin: 0; padding: 4px 0; }
.list > li + li { border-top: 1px solid var(--line); }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; color: inherit; width: 100%; background: none; border: 0; text-align: left; cursor: pointer; transition: background .15s; }
.item + .item { border-top: 1px solid var(--line); }
.item:hover { background: var(--surface-2); }
.item-main { flex: 1; min-width: 0; }
.item-main b { display: block; font-weight: 700; font-size: .94rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-main span { display: block; color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-end { text-align: right; flex: none; display: grid; justify-items: end; gap: 3px; }
.item-end b { font-weight: 800; letter-spacing: -.02em; font-size: .94rem; }
.note-row { cursor: default; }

/* ---------- tab bar: floating on phones, side rail on desktop ---------- */
.tabbar { position: fixed; left: 12px; right: 12px; bottom: calc(10px + var(--safe-b)); z-index: 30; height: 66px; padding: 0 6px; background: var(--surface); border-radius: 22px; box-shadow: 0 10px 30px -8px rgba(15,26,20,.25), 0 0 0 1px var(--line); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; }
.tab { position: relative; display: grid; justify-items: center; gap: 3px; color: var(--muted); text-decoration: none; font-size: .7rem; font-weight: 600; padding: 8px 0; }
.tab .ic { width: 23px; height: 23px; transition: transform .35s var(--spring); }
.tab[aria-current="page"] { color: var(--green); }
.tab[aria-current="page"] .ic { transform: translateY(-2px); stroke-width: 2.2; }
.tab[aria-current="page"]::after { content: ""; position: absolute; bottom: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: pop .4s var(--spring); }
.rail-brand, .rail-foot, .rail-buy { display: none; }
@media (min-width: 960px) {
  .tabbar { inset: 16px auto 16px 16px; width: 240px; height: auto; padding: 20px 14px; border-radius: 26px; display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
  .rail-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
  .rail-brand img { width: 34px; height: 34px; border-radius: 10px; }
  .rail-buy { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 14px; height: 46px; border-radius: 14px; background: var(--hdr1); color: #fff; font-weight: 700; text-decoration: none; transition: transform .2s; }
  .rail-buy .ic { color: var(--lime); }
  .rail-buy:hover { transform: translateY(-1px); }
  .tab { display: flex; align-items: center; gap: 12px; font-size: .95rem; padding: 12px 14px; border-radius: 14px; }
  .tab:hover { background: var(--surface-2); }
  .tab[aria-current="page"] { background: var(--green-soft); }
  .tab[aria-current="page"]::after { display: none; }
  .rail-foot { display: block; margin-top: auto; padding: 12px 10px 0; font-size: .8rem; color: var(--muted); }
  .main { margin-left: 272px; padding-bottom: 40px; }
  .topbar { padding-left: 24px; padding-right: 24px; }
  .view { padding: 0 24px; }
  .dhero { padding: 16px 24px 0; }
  .dhero-in { max-width: 1132px; margin: 0 auto; border-radius: 30px; padding: 22px 28px 26px; }
  .dh-bal { margin-top: 10px; }
  .qacts { max-width: 520px; margin: 22px auto 0; }
  .split3 { margin-top: -18px; max-width: 760px; margin-left: auto; margin-right: auto; }
  .cols { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .hide-desk { display: none !important; }
}
@media (max-width: 959px) { .hide-mob { display: none !important; } }

/* ---------- promos ---------- */
.promos { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.promos::-webkit-scrollbar { display: none; }
.promo { scroll-snap-align: start; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 4px 12px; padding: 16px; border-radius: 22px; border: 0; text-align: left; cursor: pointer; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); position: relative; overflow: hidden; min-height: 118px; }
.promo::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ac) 55%, transparent), transparent); }
.promo-ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.14); color: var(--ac); }
.promo-txt em { font-style: normal; font-size: .66rem; font-weight: 800; letter-spacing: .06em; color: var(--ac); }
.promo-txt b { display: block; font-size: 1.05rem; letter-spacing: -.02em; }
.promo-txt small { display: block; opacity: .85; font-size: .82rem; }
.promo-cta { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: .85rem; color: var(--ac); }
.promo-cta .ic { width: 16px; height: 16px; }
@media (min-width: 960px) { .promos { grid-auto-flow: row; grid-auto-columns: auto; margin: 0; padding: 0; overflow: visible; } }

/* growth / insights */
.growth-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.growth-top b { font-size: 1.3rem; font-weight: 800; letter-spacing: -.04em; }
.growth-top b.big { font-size: 1.9rem; }
.chart { width: 100%; height: 170px; }
.chart .area { fill: url(#gArea); opacity: 0; animation: fadeIn .9s ease .7s forwards; }
.chart .line { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) .15s forwards; }
.chart .grid { stroke: var(--line); stroke-dasharray: 3 4; }
.chart text { fill: var(--muted); font-size: 10px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-2); padding: 4px; border-radius: 14px; gap: 4px; }
.seg button, .seg a { border: 0; background: none; padding: 9px 10px; border-radius: 10px; font-weight: 700; font-size: .86rem; color: var(--muted); cursor: pointer; text-decoration: none; text-align: center; }
.seg [aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh); }
.seg.mini button, .seg.mini a { padding: 6px 10px; font-size: .78rem; }
.earn4 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.earn4 > div { background: var(--surface-2); border-radius: 18px; padding: 12px; display: grid; gap: 2px; }
.earn4 .tico { width: 34px; height: 34px; border-radius: 11px; margin-bottom: 6px; }
.earn4 .tico .ic { width: 17px; height: 17px; }
.earn4 small { color: var(--muted); font-size: .76rem; }
.earn4 b { font-size: 1.05rem; font-weight: 800; letter-spacing: -.03em; }
.alloc { display: grid; gap: 16px; align-items: center; }
.donut-wrap { position: relative; width: 170px; height: 170px; margin: 0 auto; }
.donut { width: 100%; height: 100%; transform: rotate(-90deg); }
.dseg { fill: none; stroke-width: 16; stroke-linecap: butt; animation: seg 1.1s var(--ease) both; animation-delay: var(--d); }
@keyframes seg { from { stroke-dasharray: 0 400; } }
.donut-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-c small { color: var(--muted); font-size: .75rem; }
.donut-c b { font-size: 1.05rem; font-weight: 800; letter-spacing: -.03em; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.legend li { display: grid; grid-template-columns: 12px 1fr auto auto; align-items: center; gap: 10px; font-size: .88rem; }
.legend i { width: 12px; height: 12px; border-radius: 4px; }
.legend b { font-weight: 800; } .legend small { color: var(--muted); width: 3ch; text-align: right; }
@media (min-width: 520px) { .alloc { grid-template-columns: 170px 1fr; } }
.sched { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sched a { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--ink); text-decoration: none; }
.sched li + li a { border-top: 1px solid var(--line); padding-top: 12px; }
.sched b { display: block; font-size: .92rem; }
.sched small { font-weight: 700; color: var(--muted); }
.cal { width: 46px; height: 50px; border-radius: 14px; background: var(--lime-soft); display: grid; place-content: center; text-align: center; line-height: 1.05; flex: none; }
.cal small { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: #6E7C13; font-weight: 800; }
.cal b { font-size: 1.15rem; font-weight: 800; color: var(--ink); }

/* receipt sheet */
.receipt { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 6px 0 14px; }
.receipt small { color: var(--muted); }
.rc-amt { font-size: 2rem; font-weight: 800; letter-spacing: -.045em; }
.rc-kv { background: var(--surface); border-radius: 18px; padding: 4px 16px; box-shadow: var(--sh); }
.ref { display: inline-flex !important; align-items: center; gap: 6px; font-size: .82rem; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.badge.ok { background: var(--green-soft); color: var(--green); }
.badge.wait { background: var(--yellow-soft); color: var(--yellow); }
.badge.bad { background: var(--red-soft); color: var(--red); }
.badge.info { background: var(--blue-soft); color: var(--blue); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 99px; border: 0; cursor: pointer; font-weight: 700; font-size: .98rem; text-decoration: none; width: 100%; background: var(--hdr1); color: #fff; transition: transform .12s, opacity .15s, background .2s; position: relative; }
:root[data-theme="dark"] .btn { background: var(--lime); color: var(--hdr1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { background: var(--lime); color: var(--hdr1); } }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn .ic { width: 19px; height: 19px; }
.btn-gold { background: var(--lime) !important; color: var(--hdr1) !important; }
.btn-gold:hover { background: var(--lime-2) !important; }
.btn-ghost { background: var(--surface) !important; color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost-d { background: transparent !important; color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.btn-danger { background: var(--red-soft) !important; color: var(--red) !important; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .88rem; width: auto; }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid #fff; border-color: #fff #fff transparent transparent; animation: spin .7s linear infinite; }
.btn-gold.loading::after, .btn-ghost.loading::after { border-color: var(--hdr1) var(--hdr1) transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field > span { font-size: .86rem; font-weight: 700; }
.field small { color: var(--muted); font-size: .8rem; }
.input, select.input, textarea.input { width: 100%; min-height: 54px; padding: 12px 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md); font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.input:focus { border-color: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 14%, transparent); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 52px; }
.input-wrap button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.money-input { display: flex; align-items: center; gap: 4px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 6px 16px; }
.money-input:focus-within { border-color: var(--green); }
.money-input span { font-size: 1.6rem; color: var(--muted); font-weight: 700; }
.money-input input { border: 0; outline: none; background: none; width: 100%; font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; padding: 6px 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 0; border-radius: 999px; padding: 8px 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: .86rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--hdr1); color: #fff !important; box-shadow: none; }
:root[data-theme="dark"] .chip[aria-pressed="true"] { background: var(--lime); color: var(--hdr1) !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip[aria-pressed="true"] { background: var(--lime); color: var(--hdr1) !important; } }
.err { color: var(--red); font-size: .86rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; text-align: left; border: 0; width: 100%; transition: box-shadow .2s, background .2s; }
.opt[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--green); background: color-mix(in srgb, var(--green-soft) 55%, var(--surface)); }
.opt .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; }
.opt[aria-checked="true"] .radio { border-color: var(--green); }
.opt[aria-checked="true"] .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); animation: pop .3s var(--spring); }
.stepper { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; gap: 8px; }
.stepper button { height: 56px; border-radius: 18px; border: 0; background: var(--surface-2); font-size: 1.6rem; font-weight: 700; cursor: pointer; color: var(--ink); }
.stepper input { text-align: center; font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; border: 0; background: none; width: 100%; outline: none; padding: 0; }
.stepper-cap { text-align: center; color: var(--muted); font-size: .85rem; margin-top: -4px; }

input[type=file].input { padding: 10px; min-height: 0; }
input[type=file]::file-selector-button { border: 0; border-radius: 99px; padding: 9px 16px; margin-right: 12px; background: var(--green-soft); color: var(--green); font-weight: 700; cursor: pointer; }

/* roof tiles */
.tiles { width: auto; height: 30px; max-width: 100%; }
.panel .tiles, .empty .tiles, .card .tiles { height: 36px; }
.tiles .t { fill: var(--surface-2); stroke: var(--line); stroke-width: 1; transform-box: fill-box; transform-origin: 50% 100%; }
.tiles .t.on { fill: var(--lime); stroke: #A7B33A; animation: tile .55s var(--spring) both; animation-delay: calc(250ms + var(--k, 0) * 90ms); }
.tiles .t.now { fill: color-mix(in srgb, var(--lime) 45%, transparent); }
.hero-card .tiles .t, .dhero .tiles .t, .wcard.dark .tiles .t { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.16); }
.hero-card .tiles .t.on, .dhero .tiles .t.on, .wcard.dark .tiles .t.on { fill: var(--lime); stroke: #A7B33A; }
@keyframes tile { from { transform: scaleY(.2); opacity: 0; } }

/* investment cards & detail hero */
.inv { background: var(--surface); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--sh); display: grid; gap: 12px; text-decoration: none; color: inherit; transition: transform .25s var(--ease), box-shadow .25s; }
.inv:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.inv-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.inv-top b { font-size: 1.25rem; font-weight: 800; letter-spacing: -.035em; display: block; }
.inv-meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.inv .gain { color: var(--green); font-weight: 700; }
.inv-grid { display: grid; gap: 12px; }
@media (min-width: 700px) { .inv-grid { grid-template-columns: 1fr 1fr; } }
.hero-card { position: relative; overflow: hidden; isolation: isolate; color: #fff; border-radius: var(--r-xl); padding: 22px 20px 20px; background: radial-gradient(120% 90% at 85% 0%, #2B5A44 0%, transparent 55%), linear-gradient(170deg, var(--hdr1), var(--hdr2)); }
.hero-label { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.72); font-size: .88rem; }
.hero-amount { font-size: clamp(2rem, 8vw, 2.5rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.1; margin: 6px 0 6px; color: #fff; }
.hero-sub { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .86rem; color: rgba(255,255,255,.72); }
.hero-sub b { color: #fff; }
.gain { color: #9BE8B6; font-weight: 700; }
.sheen { position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.07) 45%, transparent 60%); transform: translateX(-100%); animation: sheen 1.6s var(--ease) .3s forwards; pointer-events: none; }
@keyframes sheen { to { transform: translateX(100%); } }

/* ---------- auth ---------- */
.auth { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; background: var(--bg); }
.auth-top { color: #fff; padding: calc(28px + var(--safe-t)) 24px 56px; position: relative; overflow: hidden; border-radius: 0 0 34px 34px; background: radial-gradient(120% 90% at 85% 0%, #2B5A44 0%, transparent 55%), linear-gradient(170deg, var(--hdr1), var(--hdr2)); }
.auth-top::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, rgba(201,213,76,.25), transparent); }
.auth-top .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; text-decoration: none; margin-bottom: 30px; }
.auth-top .brand img { width: 36px; height: 36px; border-radius: 10px; }
.auth-top h1 { color: #fff; font-size: 2.2rem; letter-spacing: -.045em; max-width: 14ch; position: relative; z-index: 1; }
.auth-top h1 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--lime); letter-spacing: -.01em; }
.auth-top p { color: rgba(255,255,255,.72); margin-top: 8px; max-width: 34ch; position: relative; z-index: 1; }
.auth-body { padding: 24px 20px calc(32px + var(--safe-b)); max-width: 460px; width: 100%; margin: 0 auto; }
.auth-foot { text-align: center; margin-top: 20px; font-size: .92rem; color: var(--muted); }
@media (min-width: 960px) {
  .auth { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .auth-top { border-radius: 0 40px 40px 0; padding: 56px; display: flex; flex-direction: column; justify-content: center; }
  .auth-top h1 { font-size: 3.2rem; }
  .auth-top .brand { position: absolute; top: 40px; left: 56px; }
  .auth-body { align-self: center; padding: 48px; }
}

/* ---------- welcome / onboarding ---------- */
.welcome { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; color: #fff; background: radial-gradient(120% 70% at 85% 0%, #2B5A44 0%, transparent 55%), linear-gradient(170deg, var(--hdr1), #0B1A13); overflow: hidden; }
.wl-top { display: flex; align-items: center; justify-content: space-between; padding: calc(18px + var(--safe-t)) 20px 0; max-width: 520px; width: 100%; margin: 0 auto; }
.wl-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.wl-brand img { width: 32px; height: 32px; border-radius: 9px; }
.wl-skip { color: rgba(255,255,255,.75); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 99px; background: rgba(255,255,255,.08); }
.wl-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; max-width: 520px; width: 100%; margin: 0 auto; }
.wl-track::-webkit-scrollbar { display: none; }
.wl-slide { scroll-snap-align: center; padding: 24px 24px 0; display: grid; align-content: center; gap: 12px; }
.wl-slide h1 { font-size: 2rem; letter-spacing: -.045em; max-width: 13ch; }
.wl-slide p { color: rgba(255,255,255,.72); max-width: 36ch; }
.wl-art { height: 330px; position: relative; margin-bottom: 14px; }
.wl-foot { display: grid; gap: 10px; padding: 0 24px calc(28px + var(--safe-b)); max-width: 520px; width: 100%; margin: 0 auto; }
.wl-dots { display: flex; gap: 6px; margin-bottom: 8px; }
.wl-dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.25); transition: width .35s var(--ease), background .35s; }
.wl-dots i.on { width: 26px; background: var(--lime); }
.wv { position: absolute; inset: 0; }
.wcard { position: absolute; background: #fff; color: var(--ink); border-radius: 22px; padding: 16px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); display: grid; gap: 6px; }
.wcard small { color: var(--muted); font-size: .78rem; }
.wcard b { font-weight: 800; letter-spacing: -.03em; }
.wcard.dark { background: linear-gradient(160deg, #1B392D, #11251C); color: #fff; box-shadow: 0 24px 50px -20px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08); }
.wcard.dark small { color: rgba(255,255,255,.7); } .wcard.dark b { font-size: 1.8rem; }
.wcard.dark .dchip { justify-self: start; }
.wv1 .wcard.dark { left: 4%; right: 10%; top: 30px; }
.float1, .float2, .float3 { display: flex; align-items: center; gap: 10px; animation: wfloat 5s ease-in-out infinite; }
.float1 b, .float3 b { display: block; font-size: .95rem; }
.float1 small, .float3 small { display: block; }
.float1 { right: 0; bottom: 30px; }
.wv2 .wcard:first-child { left: 0; right: 8%; top: 20px; gap: 0; padding: 8px 16px; }
.wrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.wrow + .wrow { border-top: 1px solid var(--line); }
.wrow > span:nth-child(2) { flex: 1; } .wrow b { display: block; font-size: .9rem; } .wrow small { display: block; }
.float2 { right: 0; bottom: 34px; display: grid; }
.float2 b { font-size: 1.5rem; }
.wv3 .wcard:first-child { left: 6%; right: 6%; top: 24px; justify-items: center; padding: 22px; }
.wdots { display: flex; gap: 12px; margin: 8px 0 14px; }
.wdots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); }
.wdots i.on { background: var(--hdr1); box-shadow: none; }
.wlogos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; width: 100%; }
.wlogos .blogo { width: 100%; height: auto; aspect-ratio: 1; }
.float3 { left: 0; bottom: 20px; }
@keyframes wfloat { 50% { transform: translateY(-8px); } }

/* ---------- sheets ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(6, 16, 12, .5); display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease-out; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet { width: 100%; max-width: 520px; max-height: 92dvh; overflow-y: auto; background: var(--bg); border-radius: 28px 28px 0 0; padding: 10px 20px calc(24px + var(--safe-b)); animation: rise .42s var(--spring); }
.sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 14px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
@media (min-width: 640px) { .scrim { align-items: center; } .sheet { border-radius: 28px; padding-bottom: 24px; } .sheet-grip { display: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }

/* PIN pad */
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 8px 0 18px; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); transition: background .1s, transform .2s var(--spring); }
.pin-dots i.on { background: var(--hdr1); box-shadow: none; transform: scale(1.1); }
:root[data-theme="dark"] .pin-dots i.on { background: var(--lime); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pin-dots i.on { background: var(--lime); } }
.pin-dots.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-4px); } }
.pad:not(.card-h) { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pad button { height: 60px; border-radius: 20px; border: 0; background: var(--surface); box-shadow: var(--sh); font-size: 1.5rem; font-weight: 700; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.pad button:active { background: var(--surface-2); transform: scale(.96); }
.pad .ghost { background: none; box-shadow: none; font-size: .88rem; color: var(--muted); }

/* key/value, copy, notes */
.kv { display: grid; }
.kv > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.kv > div:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.kv b { text-align: right; font-weight: 700; overflow-wrap: anywhere; }
.copy { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--surface-2); padding: 4px 10px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .85rem; color: var(--ink); }
.copy .ic { width: 14px; height: 14px; }
.bank-box { background: radial-gradient(120% 90% at 85% 0%, #2B5A44 0%, transparent 55%), linear-gradient(170deg, var(--hdr1), var(--hdr2)); color: #fff; border-radius: var(--r-xl); padding: 18px; }
.bank-box .kv > div { border-color: rgba(255,255,255,.15); }
.bank-box .kv span:first-child { color: rgba(255,255,255,.66); }
.bank-box .copy { background: rgba(255,255,255,.14); color: #fff; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--yellow-soft); color: var(--yellow); font-size: .88rem; }
.note .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.note.info { background: var(--blue-soft); color: var(--blue); }
.note.ok { background: var(--green-soft); color: var(--green); }

/* result */
.result { text-align: center; padding: 16px 0 4px; display: grid; justify-items: center; gap: 8px; }
.result-ico { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); margin-bottom: 4px; animation: pop .5s var(--spring) both .1s; }
.result-ico.wait { background: var(--yellow-soft); color: var(--yellow); }
.result-ico.bad { background: var(--red-soft); color: var(--red); }
.result-ico .ic { width: 36px; height: 36px; stroke-width: 2.4; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* empty + skeleton + toasts */
.empty { text-align: center; padding: 26px 16px; display: grid; justify-items: center; gap: 10px; }
.empty p { color: var(--muted); max-width: 34ch; }
.sk { background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: 16px; }
.sk.dark { background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.12), rgba(255,255,255,.05)); background-size: 200% 100%; }
.dhero .sk.dark { margin-top: 6px; }
@keyframes sk { to { background-position: -200% 0; } }
#toasts { position: fixed; left: 0; right: 0; top: calc(12px + var(--safe-t)); z-index: 90; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; max-width: 440px; width: 100%; background: var(--hdr1); color: #fff; padding: 12px 16px; border-radius: 16px; font-size: .92rem; font-weight: 600; box-shadow: var(--sh-lg); animation: drop .4s var(--spring); display: flex; gap: 10px; align-items: center; }
.toast .ic { width: 18px; height: 18px; }
.toast.bad .ic { color: #FF9B9E; } .toast.ok .ic { color: var(--lime); }
@keyframes drop { from { transform: translateY(-12px); opacity: 0; } }

/* misc */
.install { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh); }
.install img { width: 42px; height: 42px; border-radius: 12px; flex: none; }
.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-head .avatar { width: 64px; height: 64px; font-size: 1.4rem; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--lime); }
.kyc-strip { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-lg); background: var(--yellow-soft); color: var(--yellow); text-decoration: none; }
.kyc-strip b { display: block; }
.appearance { flex-wrap: wrap; }
.item .seg { flex: none; }
details.panel summary { list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.panel summary::-webkit-details-marker { display: none; }
details.panel summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); transition: transform .3s var(--ease); }
details.panel[open] summary::after { transform: rotate(45deg); }
.fade-in { animation: fade .2s ease-out; }

/* screen entrance */
.enter > * { animation: up .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes up { from { opacity: 0; transform: translateY(14px); } }
.dhero-in > * { animation: up .55s var(--ease) both; }
.dhero-in > .dh-bal { animation-delay: .06s; } .dhero-in > .qacts { animation-delay: .12s; }
.qacts .qa { animation: up .5s var(--ease) both; }
.qacts .qa:nth-child(2) { animation-delay: .16s; } .qacts .qa:nth-child(3) { animation-delay: .2s; } .qacts .qa:nth-child(4) { animation-delay: .24s; }
.list > li { animation: up .45s var(--ease) both; }
.list > li:nth-child(2) { animation-delay: 40ms; } .list > li:nth-child(3) { animation-delay: 80ms; } .list > li:nth-child(4) { animation-delay: 120ms; }
.list > li:nth-child(5) { animation-delay: 160ms; } .list > li:nth-child(n+6) { animation-delay: 200ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .chart .line { stroke-dashoffset: 0; } .chart .area { opacity: 1; }
}

/* ---------- KYC ---------- */
.kyc-hero { text-align: center; display: grid; justify-items: center; gap: 8px; padding: 8px 4px 4px; }
.kyc-hero h2 { font-size: 1.4rem; }
.kyc-hero > p { color: var(--muted); max-width: 36ch; }
.kyc-badge { position: relative; width: 84px; height: 84px; border-radius: 28px; display: grid; place-items: center; color: var(--hdr1); background: var(--lime); box-shadow: 0 18px 40px -16px rgba(140,160,20,.9); margin-bottom: 6px; animation: pop .6s var(--spring) both; }
.kyc-badge .ic { width: 40px; height: 40px; stroke-width: 1.7; }
.kyc-badge::after { content: ""; position: absolute; inset: -8px; border-radius: 34px; border: 2px solid var(--lime); opacity: 0; animation: ripple 2.4s ease-out infinite .6s; }
.kyc-badge.sms i { position: absolute; top: -4px; right: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px var(--bg); animation: pop .5s var(--spring) both .5s; }
@keyframes ripple { 0% { opacity: .7; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.25); } }
.kyc-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; width: 100%; text-align: left; background: var(--surface); border-radius: 20px; box-shadow: var(--sh); overflow: hidden; }
.kyc-steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; animation: up .5s var(--ease) both; animation-delay: calc(.15s + var(--i) * 90ms); position: relative; }
.kyc-steps li + li { border-top: 1px solid var(--line); }
.kyc-steps b { display: block; font-size: .92rem; } .kyc-steps small { display: block; color: var(--muted); font-size: .8rem; }
.nin-in { font-size: 1.25rem !important; letter-spacing: .12em; font-weight: 700; }
.kyc-priv { display: flex; gap: 8px; align-items: flex-start; } .kyc-priv .ic { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.note.bad { background: var(--red-soft); color: var(--red); }
.otp-wrap { position: relative; }
.otp { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; font-size: 16px; cursor: text; z-index: 2; }
.otp-cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp-cells i { font-style: normal; height: 60px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; transition: box-shadow .15s, transform .2s var(--spring); }
.otp-cells i.full { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink-2); animation: pop .25s var(--spring); }
.otp-cells i.on { box-shadow: inset 0 0 0 2px var(--green); }
.otp-cells i.on::after { content: ""; width: 2px; height: 26px; background: var(--green); animation: blink 1s steps(1) infinite; }
.otp-cells.shake { animation: shake .35s; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- signed out ---------- */
.bye { min-height: 100dvh; display: grid; place-items: center; padding: 24px 20px calc(24px + var(--safe-b)); color: #fff; background: radial-gradient(120% 70% at 85% 0%, #2B5A44 0%, transparent 55%), linear-gradient(170deg, var(--hdr1), #0B1A13); position: relative; overflow: hidden; }
.bye::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; left: 50%; top: 42%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(201,213,76,.14), transparent); animation: glowDrift 8s ease-in-out infinite alternate; }
.bye-in { position: relative; width: 100%; max-width: 420px; display: grid; justify-items: center; text-align: center; gap: 10px; }
.bye-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; text-decoration: none; margin-bottom: 28px; }
.bye-brand img { width: 34px; height: 34px; border-radius: 10px; }
.bye-art { width: 132px; height: 132px; margin-bottom: 10px; }
.bye-art .door { transform-origin: 46px 50%; animation: door 1.2s var(--ease) .3s both; }
.bye-art .walk { transform-box: fill-box; transform-origin: center; animation: pop .6s var(--spring) 1.1s both; }
.bye-art .ring { fill: none; stroke: var(--lime); stroke-width: 3; stroke-dasharray: 340; stroke-dashoffset: 340; animation: ringdraw 1.4s var(--ease) .2s forwards; }
@keyframes door { from { transform: perspective(200px) rotateY(0); } to { transform: perspective(200px) rotateY(-62deg); } }
@keyframes walkout { from { transform: translateX(-22px); opacity: 0; } 60% { opacity: 1; } to { transform: translateX(10px); opacity: 1; } }
@keyframes ringdraw { to { stroke-dashoffset: 0; } }
.bye h1 { font-size: 2rem; letter-spacing: -.045em; animation: up .6s var(--ease) both .4s; }
.bye p { color: rgba(255,255,255,.72); max-width: 32ch; animation: up .6s var(--ease) both .5s; }
.bye-acts { display: grid; gap: 10px; width: 100%; margin-top: 18px; animation: up .6s var(--ease) both .6s; }
.bye-tips { margin-top: 26px; display: grid; gap: 8px; width: 100%; animation: up .6s var(--ease) both .75s; }
.bye-tip { display: flex; align-items: center; gap: 10px; text-align: left; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); font-size: .86rem; color: rgba(255,255,255,.8); }
.bye-tip .ic { color: var(--lime); width: 18px; height: 18px; }

/* ---------- v2.8: uploads, bank picker, reinvest ---------- */
.upl { display: block; cursor: pointer; border-radius: 18px; border: 2px dashed var(--line); background: var(--surface); transition: border-color .2s, background .2s; }
.upl:hover { border-color: var(--green); }
.upl.need { border-color: var(--red); background: var(--red-soft); }
.upl-empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 22px 16px; }
.upl-empty small { color: var(--muted); }
.upl-full { display: none; align-items: center; gap: 14px; padding: 10px; }
.upl.has { border-style: solid; border-color: var(--green); }
.upl.has .upl-empty { display: none; } .upl.has .upl-full { display: flex; }
.upl-full img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; background: var(--surface-2); }
.upl-full b { display: block; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.upl-full small { color: var(--muted); }
.proof-img { display: block; border-radius: 16px; overflow: hidden; background: var(--surface-2); max-height: 360px; }
.proof-img img { width: 100%; max-height: 360px; object-fit: contain; }
.bank-btn { display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; }
.bank-btn > span:not(.blogo) { flex: 1; font-weight: 600; }
.bank-btn .ic { color: var(--muted); }
.bank-search { position: relative; margin-bottom: 8px; }
.bank-search .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.bank-search .input { padding-left: 48px; }
.bank-list { max-height: 56vh; overflow-y: auto; margin: 0 -8px; padding: 0; }
.bank-list .item { padding: 10px 8px; border-radius: 14px; }
.bank-list .item .ic { color: var(--green); }
.acct-in { font-size: 1.25rem !important; letter-spacing: .1em; font-weight: 700; }
.who-box:empty { display: none; }
.who-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 16px; }
.who-row .ic { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.who-row small { display: block; font-size: .78rem; opacity: .8; }
.who-row b { display: block; font-size: 1.02rem; letter-spacing: .01em; }
.who-row em { display: block; font-style: normal; font-size: .86rem; margin-top: 4px; }
.who-row.ok { background: var(--green-soft); color: var(--green); }
.who-row.ok b { color: var(--ink); }
.who-row.bad { background: var(--red-soft); color: var(--red); }
.who-row.wait { background: var(--surface-2); color: var(--muted); align-items: center; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; flex: none; }
.opt[disabled] { opacity: .5; cursor: not-allowed; }
.opt .tico { width: 40px; height: 40px; }
.opt-bad { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--red) 40%, transparent); }
.opt-bad .bad-t { color: var(--red) !important; display: inline-flex !important; align-items: center; gap: 4px; }
.opt-bad .bad-t .ic { width: 14px; height: 14px; }
.badge .ic { width: 12px; height: 12px; }
.kyc h3 { font-size: 1rem; }
.input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 14%, transparent); }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.review-card { display: grid; gap: 8px; background: linear-gradient(160deg, #FFFBEA, var(--surface)); box-shadow: inset 0 0 0 1px #F2E3A8, var(--sh); }
.rv-stars { display: flex; gap: 4px; color: #E8A317; }
.rv-stars .ic { width: 20px; height: 20px; fill: currentColor; }
.review-card .btn-row { margin-top: 6px; }
.group-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: start; }
.group-card .btn { grid-column: 1 / -1; justify-self: start; background: #1FAF54; }

/* WhatsApp contact card (Home) */
.wa-card { padding-bottom: 6px; }
.wa-card .panel-flush { margin: 4px -6px 0; }
.wa-card .item { border-radius: 14px; }
.ico.wa { background: #DDF4E4; color: #1FAF54; }
:root[data-theme="dark"] .ico.wa { background: rgba(31,175,84,.16); color: #4CD07D; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ico.wa { background: rgba(31,175,84,.16); color: #4CD07D; } }
.wa-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #1FAF54; }
.wa-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1FAF54; box-shadow: 0 0 0 3px rgba(31,175,84,.18); }

/* KYC: profile photo */
.photo-pick { display: flex; gap: 16px; align-items: center; cursor: pointer; border: 1.5px dashed var(--line); border-radius: 18px; padding: 14px; transition: border-color .15s, background .15s; }
.photo-pick:hover { border-color: var(--green); }
.photo-pick.bad { border-color: var(--red); background: var(--red-soft); }
.photo-ring { width: 84px; height: 84px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--surface-2); color: var(--muted); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--lime); }
.photo-ring img { width: 100%; height: 100%; object-fit: cover; }
.photo-ring .ic { width: 34px; height: 34px; }
.photo-txt { display: grid; gap: 4px; justify-items: start; }
.photo-txt small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.photo-txt .btn { margin-top: 6px; }
.kyc-done-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--green); margin: 0 auto 6px; display: block; }

/* KYC + sign-up: the name must match the bank account */
.name-lock { border: 2px solid var(--lime); background: linear-gradient(180deg, color-mix(in srgb, var(--lime) 14%, var(--surface)), var(--surface) 60%); }
.name-lock-head { display: flex; gap: 12px; align-items: flex-start; }
.name-lock-head h3 { margin: 0 0 4px; }
.name-lock-head p { margin: 0; font-size: .9rem; color: var(--ink-2, var(--muted)); line-height: 1.5; }
.name-preview { border-radius: 14px; padding: 12px 14px; background: var(--hdr1, #0E2A1F); color: #fff; display: grid; gap: 4px; }
.name-preview small { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.name-preview b { font-size: 1.15rem; letter-spacing: .06em; word-break: break-word; color: var(--lime); }
.check.strong { font-weight: 700; font-size: .95rem; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.name-hint { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--lime); background: color-mix(in srgb, var(--lime) 12%, transparent); font-size: .86rem; line-height: 1.45; }
.name-hint .ic { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--green); }
.avatar.has-photo { overflow: hidden; padding: 0; }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
