:root{
  --bg:#000;
  --bg-2:#0e0e0e;
  --surface:#1c1c1e;
  --surface-2:#2a2a2c;
  --text:#fff;
  --muted:#9a9a9a;
  --line:#232325;
  --green:#00875a;
  --green-2:#00b871;
  --green-soft:#0b3a2b;
  --yellow:#e8ff5a;
  --red:#e5484d;
  --purple:#5b5bd6;
  --radius:14px;
  --radius-lg:22px;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
input,select,textarea{font:inherit;color:inherit;background:none;border:0;outline:none;width:100%}
img{max-width:100%;display:block}
.app{max-width:480px;margin:0 auto;min-height:100vh;background:var(--bg);display:flex;flex-direction:column;position:relative}
.page{flex:1;padding:20px 20px 100px;display:flex;flex-direction:column;gap:18px}
.topbar{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;min-height:56px}
.topbar .center{position:absolute;left:50%;transform:translateX(-50%);font-weight:600}
.topbar-rel{position:relative}
.icon-btn{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;color:#fff}
.icon-btn:hover{background:#1a1a1a}
.title{font-size:32px;font-weight:800;line-height:1.1}
.subtitle{color:var(--muted);font-size:15px;line-height:1.5}
.field{background:var(--surface);border-radius:var(--radius);padding:14px 16px;position:relative;border:1px solid transparent;transition:border-color .15s}
.field.active,.field:focus-within{border-color:var(--green-2)}
.field .label{position:absolute;top:6px;left:16px;font-size:11px;color:var(--muted)}
.field.active .label{color:var(--green-2)}
.field input,.field select{padding-top:14px;font-size:16px;background:transparent;color:#fff}
.field select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239a9a9a' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");background-repeat:no-repeat;background-position:right 0 center}
.row{display:flex;gap:12px}
.row>*{flex:1}
.btn{background:var(--green);color:#fff;border-radius:14px;padding:16px;font-weight:600;font-size:16px;width:100%;transition:opacity .15s,transform .1s}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn:not(:disabled):active{transform:scale(.98)}
.btn-ghost{background:transparent;color:var(--green-2);font-weight:600}
.link{color:var(--green-2);font-weight:600}
.text-red{color:var(--red)}
.text-muted{color:var(--muted)}
.checkbox{display:flex;gap:12px;align-items:flex-start;font-size:14px;color:#ddd}
.checkbox input{width:20px;height:20px;accent-color:var(--green-2);margin-top:2px;flex:0 0 20px}
/* password checklist */
.pw-check{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;padding:4px 4px}
.pw-check .item{display:flex;gap:8px;align-items:center;font-size:14px;color:#ddd}
.pw-check .dot{width:22px;height:22px;border-radius:50%;background:var(--red);display:grid;place-items:center;color:#fff;font-size:12px;font-weight:700;flex:0 0 22px}
.pw-check .item.ok .dot{background:var(--green-2)}
/* country list */
.search{background:var(--surface);border-radius:14px;padding:12px 14px;display:flex;align-items:center;gap:10px}
.search svg{color:var(--muted);flex:0 0 auto}
.section-label{color:var(--muted);font-size:15px;margin:8px 4px 4px}
.country{display:flex;align-items:center;gap:14px;padding:14px 4px;border-bottom:1px solid var(--line)}
.country:last-child{border-bottom:0}
.flag{width:36px;height:36px;border-radius:50%;overflow:hidden;background:#333;flex:0 0 36px;display:grid;place-items:center;font-size:20px}
/* PIN */
.pin-dots{display:flex;justify-content:center;gap:18px;margin:6px 0 8px}
.pin-dot{width:20px;height:20px;border-radius:50%;border:2px solid var(--green-2)}
.pin-dot.filled{background:var(--green-2)}
.toggle-row{display:flex;justify-content:space-between;align-items:center;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:16px}
.switch{width:52px;height:30px;background:#444;border-radius:20px;position:relative;cursor:pointer;transition:background .2s}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;transition:left .2s}
.switch.on{background:var(--green-2)}
.switch.on::after{left:25px}
.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;justify-items:center;padding:20px 30px}
.key{width:72px;height:72px;border-radius:50%;background:var(--surface);display:grid;place-items:center;font-size:26px;font-weight:400;transition:background .15s}
.key:active{background:var(--surface-2)}
.key.empty{background:transparent}
/* progress bar (onboarding) */
.progress{display:flex;gap:6px;align-items:center;flex:1;margin:0 12px}
.progress .seg{flex:1;height:3px;border-radius:2px;background:rgba(255,255,255,.28)}
.progress .seg.active{background:#fff}
/* onboarding cards */
.ob-page{min-height:100vh;background:linear-gradient(160deg,#0d5236,#083826 60%,#052318);color:#fff;display:flex;flex-direction:column;padding:14px 20px 30px}
.ob-title{font-size:36px;font-weight:800;line-height:1.05;margin-top:8px}
.ob-desc{color:#cfe7db;font-size:15px;line-height:1.55;margin-top:14px}
.ob-cta{margin-top:auto;display:flex;justify-content:center}
.chip-btn{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.35);color:#fff;padding:12px 22px;border-radius:999px;display:inline-flex;gap:10px;align-items:center;font-size:16px}
.mock{margin-top:auto;background:#fff;color:#111;border-radius:26px;padding:16px;box-shadow:0 20px 60px rgba(0,0,0,.35);width:100%;max-width:340px;align-self:center}
.mock h4{font-size:16px;margin-bottom:6px}
/* home */
.hgreet{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:600}
.hgreet .avatar{width:36px;height:36px;border-radius:50%;background:var(--surface);display:grid;place-items:center}
.hicons{display:flex;gap:6px}
.card-scroller{display:flex;gap:12px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
.card-scroller::-webkit-scrollbar{display:none}
.promo-card{flex:0 0 160px;height:170px;border-radius:20px;padding:14px;color:#fff;display:flex;flex-direction:column;justify-content:flex-end;font-weight:600}
.promo-card .cap{font-size:14px;line-height:1.25}
.wealth{background:var(--surface);border-radius:20px;padding:20px}
.wealth .lbl{color:#ddd;font-size:15px}
.wealth .amt{font-size:42px;font-weight:800;margin:8px 0 16px}
.wealth .amt .cents{color:#7a7a7a;font-size:24px}
.wealth-actions{display:flex;gap:12px}
.wealth-actions .btn{padding:14px;font-weight:600;font-size:16px;border-radius:14px}
.btn-solid{background:var(--green)}
.btn-outline{background:#2c2c2e;color:#fff}
.tile{background:var(--surface);border-radius:16px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between}
.tile .lft{display:flex;gap:12px;align-items:center}
.tile .ic{width:38px;height:38px;border-radius:10px;background:#e69a5b;display:grid;place-items:center;color:#fff}
.action-card{background:#3b3b98;border-radius:20px;padding:20px;display:flex;justify-content:space-between;gap:14px;align-items:center}
.section-h{display:flex;justify-content:space-between;align-items:center;margin-top:4px}
.section-h h3{font-size:20px}
/* bottom nav */
.bnav{position:sticky;bottom:0;background:#000;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);padding:10px 0 14px;gap:6px}
.bnav a{display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--muted);font-size:12px}
.bnav a.active{color:#fff}
.bnav .ic{width:28px;height:28px;display:grid;place-items:center}
.bnav a.active .ic{background:var(--surface-2);border-radius:50%}
/* invest */
.pills{display:flex;gap:10px;overflow-x:auto;padding-bottom:6px;scrollbar-width:none}
.pills::-webkit-scrollbar{display:none}
.pill{padding:10px 18px;border-radius:999px;background:transparent;border:1px solid var(--green);color:var(--green-2);font-weight:600;white-space:nowrap}
.pill.active{background:#ddd;color:#111;border-color:#ddd}
.hero-invest{background:var(--green-soft);border-radius:20px;padding:20px;display:flex;justify-content:space-between;gap:16px}
.hero-invest h3{font-size:22px}
.hero-invest p{color:#cfe7db;margin-top:10px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.asset{background:var(--surface);border-radius:18px;padding:16px;min-height:150px;display:flex;flex-direction:column;justify-content:space-between;position:relative}
.asset .badge{position:absolute;top:10px;right:10px;background:#eee;color:#111;font-size:12px;padding:4px 10px;border-radius:999px;font-weight:600}
.asset .n{font-size:17px;font-weight:700}
.asset .d{color:var(--muted);font-size:14px}
/* learn */
.tabs{display:flex;gap:20px;overflow-x:auto;padding-bottom:8px;border-bottom:1px solid var(--line);scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tab{padding:8px 0;font-weight:600;color:var(--muted);white-space:nowrap;position:relative}
.tab.active{color:#fff}
.tab.active::after{content:"";position:absolute;left:0;right:0;bottom:-8px;height:2px;background:var(--green-2);border-radius:2px}
.qa{display:flex;gap:14px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}
.qa .ic{width:44px;height:28px;border-radius:6px;background:var(--green-2);display:grid;place-items:center;flex:0 0 44px}
/* profile */
.profile-name{font-size:34px;font-weight:800}
.log{color:var(--red);font-weight:600}
.card-green{background:var(--green-soft);border-radius:20px;padding:20px;display:flex;justify-content:space-between;gap:12px}
.card-green h4{color:var(--yellow);font-size:18px;margin-bottom:8px}
.card-green p{color:#cfe7db;font-size:14px;line-height:1.5}
.menu{display:flex;flex-direction:column}
.menu-h{color:#ddd;font-size:20px;font-weight:600;margin:8px 0 4px}
.menu a{display:flex;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid var(--line);color:#fff;font-size:16px}
.menu a .ic{width:34px;height:34px;border-radius:8px;display:grid;place-items:center;color:var(--green-2)}
.menu a .chev{margin-left:auto;color:var(--muted)}
/* search stocks */
.stock{display:flex;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid var(--line)}
.stock .logo{width:44px;height:44px;background:#fff;border-radius:8px;display:grid;place-items:center;color:#000;font-weight:700;flex:0 0 44px;overflow:hidden}
.stock .meta{flex:1}
.stock .name{font-size:16px;font-weight:600}
.stock .sym{color:var(--muted);font-size:14px}
.stock .price{text-align:right}
.stock .up{color:var(--green-2)}
.stock .down{color:var(--red)}
.fab{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--green);color:#fff;padding:14px 24px;border-radius:999px;display:flex;gap:16px;align-items:center;font-weight:600;box-shadow:0 10px 30px rgba(0,0,0,.4)}
.fab .sep{width:1px;height:20px;background:rgba(255,255,255,.35)}
/* chips row for hero on search */
.chip-lg{display:flex;gap:10px;align-items:center;padding:12px 14px;border-radius:12px;font-weight:600;font-size:14px;white-space:nowrap}
.chip-yellow{background:#f5f68a;color:#1a1a1a}
.chip-lav{background:#e2defb;color:#1a1a1a}
/* utility */
.mt-auto{margin-top:auto}
.center-text{text-align:center}
.hidden{display:none !important}
@media(max-width:380px){.title{font-size:26px}.ob-title{font-size:30px}.key{width:64px;height:64px;font-size:22px}}

/* Welcome landing */
.app.welcome{background:#000;color:#fff;overflow:hidden;position:relative;min-height:100vh}
.welcome-bg{position:absolute;inset:0;background-size:cover;background-position:center top;z-index:0}
.welcome-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.35) 0%,rgba(0,0,0,.15) 40%,rgba(0,0,0,.75) 100%);z-index:1}
.welcome-header{position:relative;z-index:2;padding:24px 20px;display:flex;justify-content:center}
.brand-logo{font-size:34px;font-weight:800;color:#e8ff5a;letter-spacing:-.5px;font-family:Georgia,"Times New Roman",serif;font-style:italic;display:flex;align-items:center}
.welcome-main{position:relative;z-index:2;flex:1;display:flex;align-items:flex-end;padding:0 22px}
.welcome-title{color:#e8ff5a;font-size:64px;line-height:.98;font-weight:900;letter-spacing:-2px;margin-bottom:24px}
.welcome-cta{position:relative;z-index:2;display:flex;gap:12px;padding:16px 20px 32px}
.welcome-cta .btn{flex:1;border-radius:32px;padding:18px}
.btn-yellow{background:#e8ff5a;color:#0d5236}
@media (max-width:360px){.welcome-title{font-size:52px}}
@media (min-width:481px){.welcome-title{font-size:72px}}
