/* WMAX app — black theme derived from wmax.co.in (Manrope / Instrument Serif / JetBrains Mono)
   and the WMAX logo (navy #08172E + champagne gold #B59563). */
:root {
  color-scheme: dark;
  --ink: #000000;
  --bg: #0A0A0B;
  --bg-2: #0F0F11;
  --surface: #141416;
  --surface-2: #1B1B1E;
  --surface-3: #232327;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #F6F4EF;
  --text-soft: rgba(246, 244, 239, 0.72);
  --text-mute: rgba(246, 244, 239, 0.5);
  --text-faint: rgba(246, 244, 239, 0.32);
  --gold: #B59563;
  --gold-2: #D2B98D;
  --gold-3: #8C7048;
  --gold-soft: rgba(181, 149, 99, 0.14);
  --gold-line: rgba(181, 149, 99, 0.38);
  --navy: #08172E;
  --navy-2: #0D2445;
  --green: #3DBE6E;
  --green-soft: rgba(61, 190, 110, 0.13);
  --red: #F0564F;
  --red-soft: rgba(240, 86, 79, 0.13);
  --blue: #6EA8FE;
  --blue-soft: rgba(110, 168, 254, 0.13);
  --violet: #B39DFF;
  --violet-soft: rgba(179, 157, 255, 0.13);
  --amber: #F2B84B;
  --amber-soft: rgba(242, 184, 75, 0.14);
  --sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --tab-h: 66px;
  --top-h: 60px;
  --side-w: 256px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--gold-2); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; text-wrap: balance; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.mono { font-family: var(--mono); font-feature-settings: 'zero' 1; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }
.soft { color: var(--text-soft); }
.mute { color: var(--text-mute); }
.faint { color: var(--text-faint); }
.gold { color: var(--gold-2); }
.up { color: var(--green); }
.down { color: var(--red); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--gold-soft); color: var(--text); }

/* ---------------------------------------------------------------- Splash */
.splash {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink);
  display: grid; place-items: center;
  transition: opacity .55s var(--ease), visibility .55s;
}
.splash.out { opacity: 0; visibility: hidden; }
.splash-inner { display: grid; justify-items: center; gap: 26px; width: min(78vw, 340px); }
.splash-logo { position: relative; width: 100%; aspect-ratio: 520 / 203; }
.splash-logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.splash-logo .letters { opacity: 0; transform: scale(.94); filter: blur(6px); animation: lettersIn .9s var(--ease) .15s forwards; }
.splash-logo .stripes { clip-path: polygon(0 0, 0 0, -30% 100%, -30% 100%); animation: stripesIn .85s var(--ease) .75s forwards; }
.splash-tag { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--text-soft); opacity: 0; animation: fadeUp .7s var(--ease) 1.25s forwards; text-align: center; }
.splash-tag b { font-family: var(--sans); font-style: normal; font-weight: 600; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 8px; }
.splash-bar { width: 120px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; opacity: 0; animation: fadeUp .4s ease 1.4s forwards; }
.splash-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); animation: bar 1.1s var(--ease) 1.45s forwards; }
.splash-foot { position: absolute; bottom: calc(28px + var(--safe-b)); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); opacity: 0; animation: fadeUp .6s ease 1.5s forwards; }
@keyframes lettersIn { to { opacity: 1; transform: none; filter: none; } }
@keyframes stripesIn { to { clip-path: polygon(0 0, 130% 0, 100% 100%, -30% 100%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bar { to { width: 100%; } }

/* ---------------------------------------------------------------- Auth */
.auth {
  min-height: 100%;
  display: grid; grid-template-columns: 1fr;
  background: radial-gradient(120% 70% at 100% 0%, rgba(13, 36, 69, .55), transparent 60%), var(--bg);
}
.auth-art { display: none; }
.auth-main { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding: calc(22px + var(--safe-t)) 20px calc(28px + var(--safe-b)); max-width: 480px; width: 100%; margin: 0 auto; }
.auth-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.auth-top img { height: 30px; width: auto; }
.auth h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.auth h1 .serif { font-size: 34px; color: var(--gold-2); }
.auth .lede { color: var(--text-soft); margin-top: 8px; margin-bottom: 26px; }
.auth-foot { margin-top: auto; padding-top: 28px; font-size: 12px; color: var(--text-mute); text-align: center; }
.auth-switch { text-align: center; margin-top: 18px; color: var(--text-soft); font-size: 14px; }
.steps { display: flex; gap: 6px; margin-bottom: 22px; }
.steps i { flex: 1; height: 3px; border-radius: 3px; background: var(--surface-3); }
.steps i.on { background: var(--gold); }
@media (min-width: 960px) {
  .auth { grid-template-columns: 1.1fr 1fr; }
  .auth-art {
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 48px; border-right: 1px solid var(--line);
    background: linear-gradient(160deg, var(--navy) 0%, #050b16 55%, #000 100%);
    position: relative; overflow: hidden;
  }
  .auth-art::after { content: ''; position: absolute; right: -10%; top: -20%; width: 44%; height: 150%; background: linear-gradient(90deg, transparent, rgba(181,149,99,.16), transparent); transform: rotate(22deg); }
  .auth-art img { width: 180px; }
  .auth-art h2 { font-size: 46px; font-weight: 600; letter-spacing: -0.025em; max-width: 12ch; }
  .auth-art h2 .serif { color: var(--gold-2); font-size: 52px; }
  .auth-art ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; color: var(--text-soft); }
  .auth-art li { display: flex; gap: 12px; align-items: center; }
  .auth-art li svg { color: var(--gold); flex: none; }
  .auth-main { justify-content: center; }
}

/* Onboarding */
.onb { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: calc(20px + var(--safe-t)) 20px calc(26px + var(--safe-b)); max-width: 480px; margin: 0 auto; }
.onb-skip { align-self: flex-end; background: none; border: 0; color: var(--text-mute); font-size: 14px; padding: 8px; }
.onb-slide { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 18px; animation: fadeUp .5s var(--ease); }
.onb-visual { aspect-ratio: 1.15; border-radius: var(--r-xl); border: 1px solid var(--line); background: linear-gradient(160deg, var(--navy) 0%, #03070f 70%); position: relative; overflow: hidden; display: grid; place-items: center; }
.onb-visual::before { content: ''; position: absolute; inset: -20% 30% -20% 45%; background: linear-gradient(90deg, transparent, rgba(181,149,99,.22), transparent); transform: rotate(24deg); }
.onb h2 { font-size: 28px; letter-spacing: -0.02em; }
.onb h2 .serif { color: var(--gold-2); font-size: 32px; }
.onb p { color: var(--text-soft); }
.dots { display: flex; gap: 6px; justify-content: center; margin: 18px 0; }
.dots i { width: 6px; height: 6px; border-radius: 6px; background: var(--surface-3); transition: width .3s var(--ease), background .3s; }
.dots i.on { width: 22px; background: var(--gold); }

/* ---------------------------------------------------------------- Forms */
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field > label, .label { font-size: 12.5px; font-weight: 600; color: var(--text-soft); letter-spacing: .01em; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input, .select, textarea.input {
  width: 100%; min-height: 50px; padding: 13px 15px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r);
  outline: none; transition: border-color .2s, background .2s, box-shadow .2s;
}
textarea.input { min-height: 110px; resize: vertical; }
.input::placeholder { color: var(--text-faint); }
.input:focus, .select:focus { border-color: var(--gold); background: var(--surface-2); box-shadow: 0 0 0 4px var(--gold-soft); }
.input.err { border-color: var(--red); }
.input-wrap .input { padding-right: 48px; }
.input-wrap .prefix + .input { padding-left: 54px; }
.input-wrap .prefix { position: absolute; left: 15px; color: var(--text-mute); font-weight: 600; pointer-events: none; }
.input-wrap .icon-btn { position: absolute; right: 6px; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-mute) 50%), linear-gradient(135deg, var(--text-mute) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.hint { font-size: 12px; color: var(--text-mute); }
.error-text { font-size: 12.5px; color: var(--red); }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.form-row > * { min-width: 0; }
.form-row > .field { margin-bottom: 14px; }
@media (max-width: 380px) { .form-row { grid-template-columns: 1fr; gap: 0; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-soft); margin: 6px 0 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); margin-top: 2px; flex: none; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
input[type=range] { width: 100%; accent-color: var(--gold); height: 28px; }
.pw-meter { display: flex; gap: 4px; margin-top: 2px; }
.pw-meter i { flex: 1; height: 3px; border-radius: 3px; background: var(--surface-3); }
.pw-meter[data-s="1"] i:nth-child(-n+1) { background: var(--red); }
.pw-meter[data-s="2"] i:nth-child(-n+2) { background: var(--amber); }
.pw-meter[data-s="3"] i:nth-child(-n+3) { background: var(--gold); }
.pw-meter[data-s="4"] i { background: var(--green); }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 700; font-size: 15px; letter-spacing: .005em;
  transition: transform .15s var(--ease), background .2s, border-color .2s, opacity .2s;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-primary { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #15110A; box-shadow: 0 8px 24px -10px rgba(181,149,99,.6), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-primary:hover { background: linear-gradient(180deg, #DCC69D, #BF9F6C); }
.btn-light { background: var(--text); color: #0A0A0A; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold-line); background: var(--gold-soft); }
.btn-soft { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn-soft:hover { background: var(--surface-3); }
.btn-danger { background: var(--red-soft); color: var(--red); border-color: rgba(240,86,79,.3); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 13px; }
.btn-xs { min-height: 30px; padding: 5px 11px; font-size: 12px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; border: 0; background: transparent; color: var(--text-soft); position: relative; flex: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn .badge { position: absolute; top: 5px; right: 5px; }
.link-btn { background: none; border: 0; color: var(--gold-2); font-weight: 600; padding: 0; font-size: inherit; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- App shell */
.app { min-height: 100%; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: calc(var(--top-h) + var(--safe-t)); padding: var(--safe-t) 12px 0 16px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(10, 10, 11, .82); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid var(--line);
}
.topbar .brand img { height: 22px; width: auto; }
.topbar .title { font-weight: 700; font-size: 17px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .spacer { flex: 1; }
.main { padding: 18px 16px calc(var(--tab-h) + 28px + var(--safe-b)); max-width: 760px; margin: 0 auto; }
.main.wide { max-width: 1180px; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(10, 10, 11, .9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.tabbar button { background: none; border: 0; display: grid; justify-items: center; align-content: center; gap: 4px; color: var(--text-mute); font-size: 10.5px; font-weight: 600; letter-spacing: .02em; position: relative; }
.tabbar button.on { color: var(--gold-2); }
.tabbar button.on::before { content: ''; position: absolute; top: 0; width: 26px; height: 2px; border-radius: 2px; background: var(--gold); }
.tabbar .fab { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; margin-top: -22px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #15110A; box-shadow: 0 10px 26px -8px rgba(181,149,99,.7); }
.tabbar button.on .fab { outline: 2px solid var(--gold-line); outline-offset: 3px; }
.tabbar button:has(.fab).on::before { display: none; }
.sidebar { display: none; }
.preview-ribbon { background: var(--gold-soft); color: var(--gold-2); border-bottom: 1px solid var(--gold-line); font-size: 12px; font-weight: 600; text-align: center; padding: 7px 12px; letter-spacing: .01em; }
.preview-ribbon button { background: none; border: 0; color: var(--text); text-decoration: underline; font-weight: 700; font-size: 12px; padding: 0 0 0 6px; }

@media (min-width: 960px) {
  .app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); }
  .sidebar {
    display: flex; flex-direction: column; gap: 2px;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    padding: 22px 14px; border-right: 1px solid var(--line); background: var(--bg-2);
  }
  .sidebar .brand { padding: 4px 10px 22px; }
  .sidebar .brand img { height: 26px; width: auto; }
  .sidebar .group { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); padding: 18px 12px 6px; }
  .sidebar button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: none; border: 0; color: var(--text-soft); font-weight: 600; font-size: 14px; text-align: left; }
  .sidebar button:hover { background: var(--surface); color: var(--text); }
  .sidebar button.on { background: var(--gold-soft); color: var(--gold-2); }
  .sidebar button .badge { margin-left: auto; }
  .sidebar .side-foot { margin-top: auto; padding: 14px 10px 0; font-size: 11.5px; color: var(--text-faint); }
  .tabbar { display: none; }
  .main { padding: 28px 32px 48px; max-width: 940px; }
  .topbar { padding-left: 32px; padding-right: 24px; }
  .topbar .brand { display: none; }
}

/* ---------------------------------------------------------------- Layout primitives */
.stack { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.stack-sm { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.stack > *, .stack-sm > *, .grid-2 > *, .grid-3 > * { min-width: 0; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.grid-3 { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 719px) { .grid-3 .stat { padding: 12px 10px; } .grid-3 .stat .v { font-size: 15.5px; } .grid-3 .stat .k { font-size: 11px; } .grid-3 .stat .s { font-size: 10.5px; } }
@media (min-width: 720px) { .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .grid-3 { gap: 12px; } }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 8px 2px 2px; }
.section-head h3 { font-size: 16px; }
.section-head .link-btn { font-size: 13px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); }
.page-title { font-size: 26px; letter-spacing: -0.02em; }
.page-title .serif { color: var(--gold-2); font-size: 30px; }
.page-sub { color: var(--text-soft); margin-top: 4px; }
.divider { height: 1px; background: var(--line); margin: 4px 0; border: 0; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.card-tight { padding: 14px; }
.card-flush { padding: 0; overflow: hidden; }
.card h3 { font-size: 15.5px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-mute); }

/* Hero fund card (the one bold element — echoes the logo's gold diagonal stripes) */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 22px 20px 20px;
  background: linear-gradient(150deg, var(--navy-2) 0%, var(--navy) 38%, #04070d 100%);
  border: 1px solid rgba(181,149,99,.28);
  box-shadow: 0 30px 60px -30px rgba(8, 23, 46, .9);
}
.hero::before, .hero::after { content: ''; position: absolute; top: -40%; bottom: -40%; width: 22px; background: linear-gradient(180deg, transparent, rgba(181,149,99,.32), transparent); transform: rotate(24deg); pointer-events: none; }
.hero::before { right: 26%; }
.hero::after { right: 14%; width: 10px; opacity: .6; }
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { color: rgba(246,244,239,.6); }
.hero-value { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.hero-value small { font-size: 18px; font-weight: 700; opacity: .7; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-stats .k { font-size: 11px; color: rgba(246,244,239,.58); font-weight: 600; }
.hero-stats .v { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.progress { height: 6px; border-radius: 6px; background: rgba(255,255,255,.09); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); }

/* Chips / pills / badges */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-soft); white-space: nowrap; }
.chip .dot { width: 6px; height: 6px; border-radius: 6px; background: currentColor; }
.chip.gold { background: var(--gold-soft); color: var(--gold-2); border-color: var(--gold-line); }
.chip.green { background: var(--green-soft); color: var(--green); border-color: rgba(61,190,110,.28); }
.chip.red { background: var(--red-soft); color: var(--red); border-color: rgba(240,86,79,.28); }
.chip.blue { background: var(--blue-soft); color: var(--blue); border-color: rgba(110,168,254,.28); }
.chip.violet { background: var(--violet-soft); color: var(--violet); border-color: rgba(179,157,255,.28); }
.chip.amber { background: var(--amber-soft); color: var(--amber); border-color: rgba(242,184,75,.3); }
.chip.white { background: rgba(255,255,255,.08); color: var(--text); }
.chip.glass { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); color: var(--text); }
.chip.live .dot { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; display: inline-grid; place-items: center; line-height: 1; }
.id-chip { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; padding: 4px 9px; border-radius: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: var(--text); display: inline-flex; align-items: center; gap: 6px; }

/* Segmented control & filter chips */
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); width: 100%; }
.seg button { min-width: 0; overflow: hidden; text-overflow: ellipsis; border: 0; background: none; border-radius: 10px; padding: 9px 10px; font-size: 13.5px; font-weight: 700; color: var(--text-mute); white-space: nowrap; }
.seg button.on { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg-count { font-size: 11px; font-weight: 700; margin-left: 5px; padding: 1px 6px; border-radius: 8px; background: rgba(255,255,255,.07); color: var(--text-mute); }
@media (max-width: 420px) { .seg button { padding: 9px 6px; font-size: 13px; } .seg-count { display: none; } }
.seg.gold button.on { background: var(--gold-soft); color: var(--gold-2); box-shadow: inset 0 0 0 1px var(--gold-line); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-soft); font-weight: 600; font-size: 13px; }
.filters button.on { background: var(--text); color: #0A0A0A; border-color: var(--text); }
@media (min-width: 960px) { .filters { margin: 0; padding: 0; flex-wrap: wrap; } }

/* Quick actions */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 6px; }
.quick button { background: none; border: 0; display: grid; justify-items: center; gap: 8px; padding: 6px 2px; color: var(--text-soft); font-size: 11.5px; font-weight: 600; text-align: center; line-height: 1.25; }
.quick .qi { width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--gold-2); transition: transform .15s var(--ease), border-color .2s; position: relative; }
.quick button:hover .qi { border-color: var(--gold-line); transform: translateY(-2px); }
.quick .qi .badge { position: absolute; top: -4px; right: -4px; }
@media (min-width: 720px) { .quick { grid-template-columns: repeat(6, 1fr); } }

/* Ticker */
.ticker { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.ticker::-webkit-scrollbar { display: none; }
.tick { flex: none; min-width: 150px; padding: 12px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.tick .s { font-size: 11.5px; font-weight: 700; color: var(--text-mute); letter-spacing: .04em; }
.tick .p { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; margin-top: 3px; }
.tick .c { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (min-width: 960px) { .ticker { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); } .tick { min-width: 0; } }

/* Lists */
.list { display: grid; grid-template-columns: minmax(0, 1fr); }
.list > * { min-width: 0; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; color: inherit; }
.list-item:last-child { border-bottom: 0; }
button.list-item:hover { background: rgba(255,255,255,.015); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .t { font-weight: 650; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .s { font-size: 12.5px; color: var(--text-mute); margin-top: 1px; }
.list-item .r { text-align: right; flex: none; }
.list-item .r .t { font-variant-numeric: tabular-nums; }
.avatar { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--surface-2); border: 1px solid var(--line); color: var(--gold-2); }
.avatar.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 22px; background: linear-gradient(150deg, var(--navy-2), var(--navy)); border-color: var(--gold-line); }
.side-tag { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.side-tag.buy { background: var(--green-soft); color: var(--green); }
.side-tag.sell { background: var(--red-soft); color: var(--red); }

/* Key-value rows */
.kv { display: grid; }
.kv .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.kv .row:last-child { border-bottom: 0; }
.kv .row .k { color: var(--text-soft); }
.kv .row .v { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.kv .row.total { border-top: 1px solid var(--line-2); border-bottom: 0; margin-top: 4px; padding-top: 13px; }
.kv .row.total .k { color: var(--text); font-weight: 700; }
.kv .row.head .k { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); }

/* Stat tiles */
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.stat .k { font-size: 12px; color: var(--text-mute); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.stat .v { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 11.5px; color: var(--text-mute); margin-top: 2px; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); padding: 11px 12px; background: var(--bg-2); border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl tr.done td { color: var(--text-soft); }
.tbl tr.now td { background: var(--gold-soft); }
.tbl-scroll { max-height: 420px; overflow: auto; }

/* Empty / notice */
.empty { text-align: center; padding: 34px 18px; color: var(--text-mute); display: grid; justify-items: center; gap: 10px; }
.empty .ei { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--surface-2); color: var(--gold); }
.empty h4 { color: var(--text); font-size: 16px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r); background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--text-soft); font-size: 13.5px; }
.notice svg { color: var(--gold-2); flex: none; margin-top: 1px; }
.notice.blue { background: var(--blue-soft); border-color: rgba(110,168,254,.3); }
.notice.blue svg { color: var(--blue); }
.notice.red { background: var(--red-soft); border-color: rgba(240,86,79,.3); }
.notice.red svg { color: var(--red); }
.notice b { color: var(--text); }
.disclaimer { font-size: 11.5px; color: var(--text-faint); line-height: 1.55; }

/* Notifications */
.notif { display: flex; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-align: left; width: 100%; color: inherit; position: relative; }
.notif.unread { border-color: var(--gold-line); background: linear-gradient(180deg, rgba(181,149,99,.07), transparent), var(--surface); }
.notif.unread::after { content: ''; position: absolute; top: 16px; right: 14px; width: 8px; height: 8px; border-radius: 8px; background: var(--gold); }
.notif .ni { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; }
.notif .ni.gold { background: var(--gold-soft); color: var(--gold-2); }
.notif .ni.blue { background: var(--blue-soft); color: var(--blue); }
.notif .ni.green { background: var(--green-soft); color: var(--green); }
.notif .ni.violet { background: var(--violet-soft); color: var(--violet); }
.notif .ni.white { background: rgba(255,255,255,.08); color: var(--text); }
.notif .nt { font-weight: 700; font-size: 14.5px; padding-right: 16px; }
.notif .nb { font-size: 13.5px; color: var(--text-soft); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif .nm { font-size: 11.5px; color: var(--text-mute); margin-top: 6px; display: flex; gap: 8px; align-items: center; }

/* IPO */
.ipo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 12px; text-align: left; color: inherit; width: 100%; }
button.ipo:hover { border-color: var(--line-2); }
.ipo .top { display: flex; gap: 12px; align-items: center; }
.ipo .logo { width: 44px; height: 44px; border-radius: 13px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: linear-gradient(150deg, var(--navy-2), var(--navy)); color: var(--gold-2); border: 1px solid var(--gold-line); }
.ipo .name { font-weight: 750; font-size: 15.5px; }
.ipo .sector { font-size: 12px; color: var(--text-mute); }
.ipo .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ipo .facts .k { font-size: 11px; color: var(--text-mute); font-weight: 600; }
.ipo .facts .v { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; margin-top: 6px; }
.timeline::before { content: ''; position: absolute; left: 12.5%; right: 12.5%; top: 6px; height: 2px; background: var(--surface-3); }
.timeline .st { display: grid; justify-items: center; gap: 6px; text-align: center; position: relative; }
.timeline .st i { width: 14px; height: 14px; border-radius: 14px; background: var(--surface-3); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); }
.timeline .st.done i { background: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.timeline .st.now i { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.timeline .st .k { font-size: 11px; color: var(--text-mute); font-weight: 600; }
.timeline .st .v { font-size: 12px; font-weight: 700; }

/* Calculator */
.calc-hero { border-radius: var(--r-xl); padding: 20px; background: linear-gradient(160deg, #111 0%, #0a0a0b 100%); border: 1px solid var(--line-2); }
.big-input { display: flex; align-items: center; gap: 6px; border-bottom: 2px solid var(--gold-line); padding: 6px 0 8px; }
.big-input span { font-size: 30px; font-weight: 800; color: var(--gold-2); }
.big-input input { background: none; border: 0; outline: none; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; width: 100%; font-variant-numeric: tabular-nums; min-width: 0; }
.amount-words { font-size: 12.5px; color: var(--text-mute); margin-top: 8px; font-style: italic; }
.preset { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.preset button { height: 32px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-soft); font-size: 12.5px; font-weight: 700; }
.preset button.on { background: var(--gold-soft); color: var(--gold-2); border-color: var(--gold-line); }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.result .v { overflow-wrap: anywhere; }
.result { padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.result .k { font-size: 12px; color: var(--text-mute); font-weight: 600; }
.result .v { font-size: 20px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.result.feature { grid-column: 1 / -1; background: linear-gradient(150deg, var(--navy-2), var(--navy) 50%, #04070d); border-color: var(--gold-line); }
.result.feature .v { font-size: 32px; }
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--text-mute); font-size: 10px; font-family: var(--sans); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-soft); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool { text-align: left; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: inherit; display: grid; gap: 10px; }
.tool.on { border-color: var(--gold-line); background: var(--gold-soft); }
.tool .ti { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--gold-2); }
.tool .tt { font-weight: 700; font-size: 13.5px; }
.tool .ts { font-size: 11.5px; color: var(--text-mute); }

/* Contact / bank */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.contact .ci { width: 42px; height: 42px; border-radius: 13px; flex: none; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-2); }
.contact .grow { flex: 1; min-width: 0; }
.contact .k { font-size: 12px; color: var(--text-mute); font-weight: 600; }
.contact .v { font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.contact .icon-btn { width: 34px; height: 34px; }
.bank-card { border-radius: var(--r-xl); padding: 20px; position: relative; overflow: hidden; background: linear-gradient(135deg, #16130d 0%, #0b0a08 60%), var(--surface); border: 1px solid var(--gold-line); }
.bank-card::after { content: ''; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 1px solid rgba(181,149,99,.2); box-shadow: 0 0 0 30px rgba(181,149,99,.04), 0 0 0 60px rgba(181,149,99,.03); }
.bank-card > * { position: relative; }
.upi-card { border-color: var(--gold-line); }
.upi-row { display: flex; gap: 16px; align-items: center; }
.upi-qr { background: #fff; border-radius: 14px; padding: 8px; width: 132px; height: 132px; flex: none; }
.upi-qr img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
@media (max-width: 380px) { .upi-row { flex-direction: column; align-items: flex-start; } }
/* Inside the WMAX phone apps: no browser-only hints */
html.in-app .browser-only { display: none !important; }
.placeholder-val { color: var(--text-faint); font-weight: 600; font-style: italic; }

/* Sheet / modal / toast */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.62); backdrop-filter: blur(3px); animation: fade .2s ease; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 88vh; overflow-y: auto; background: var(--bg-2); border-top: 1px solid var(--line-2); border-radius: 26px 26px 0 0; padding: 10px 18px calc(22px + var(--safe-b)); animation: sheetUp .32s var(--ease); }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--surface-3); margin: 0 auto 14px; }
.sheet h3 { font-size: 18px; margin-bottom: 4px; }
@media (min-width: 720px) { .sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 32px)); border-radius: 24px; border: 1px solid var(--line-2); animation: pop .25s var(--ease); padding-bottom: 22px; } .sheet .grab { display: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.98); } }
.toasts { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); top: calc(12px + var(--safe-t)); display: grid; gap: 8px; width: min(420px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 16px; background: rgba(28,28,31,.96); border: 1px solid var(--line-2); box-shadow: 0 20px 40px -12px rgba(0,0,0,.7); animation: toastIn .35s var(--ease); backdrop-filter: blur(12px); }
.toast .ti { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-2); }
.toast.ok .ti { background: var(--green-soft); color: var(--green); }
.toast.err .ti { background: var(--red-soft); color: var(--red); }
.toast .tt { font-weight: 700; font-size: 14px; }
.toast .tb { font-size: 13px; color: var(--text-soft); }
.toast.push { border-color: var(--gold-line); }
.toast.out { opacity: 0; transform: translateY(-8px); transition: .25s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(.98); } }

/* Accordion */
details.acc { border-bottom: 1px solid var(--line); }
details.acc summary { list-style: none; cursor: pointer; padding: 15px 0; font-weight: 650; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary svg { transition: transform .2s; color: var(--text-mute); flex: none; }
details.acc[open] summary svg { transform: rotate(180deg); }
details.acc p { padding: 0 0 16px; color: var(--text-soft); font-size: 14px; }

/* Toggle switch */
.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 28px; background: var(--surface-3); transition: .2s; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 22px; background: #fff; transition: .2s var(--ease); }
.switch input:checked + i { background: var(--gold); }
.switch input:checked + i::after { transform: translateX(18px); }

/* Profile */
.profile-head { display: flex; gap: 14px; align-items: center; }
.menu { display: grid; }
.menu button { display: flex; align-items: center; gap: 14px; padding: 14px 4px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 600; text-align: left; width: 100%; }
.menu button:last-child { border-bottom: 0; }
.menu button .mi { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--gold-2); flex: none; }
.menu button .grow { flex: 1; }
.menu button .chev { color: var(--text-faint); }

/* Market list */
.mkt-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mkt-row:last-child { border-bottom: 0; }
.mkt-row .sym { font-weight: 750; font-size: 14px; }
.mkt-row .nm { font-size: 12px; color: var(--text-mute); }
.mkt-row .px { text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; }
.pct-pill { display: inline-block; min-width: 64px; text-align: center; padding: 3px 8px; border-radius: 8px; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pct-pill.up { background: var(--green-soft); }
.pct-pill.down { background: var(--red-soft); }
.heat { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.heat div { border-radius: 10px; padding: 10px 8px; font-size: 11.5px; font-weight: 700; display: grid; gap: 2px; }
.heat b { font-size: 12.5px; }

/* Admin */
.admin-table td .actions { display: flex; gap: 6px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 8px; margin-right: 6px; }
.tabs-line { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs-line button { background: none; border: 0; padding: 11px 12px; font-weight: 700; font-size: 13.5px; color: var(--text-mute); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs-line button.on { color: var(--gold-2); border-bottom-color: var(--gold); }
.drop { border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 20px; text-align: center; color: var(--text-mute); font-size: 13.5px; }
.drop.over { border-color: var(--gold); background: var(--gold-soft); }
.code { font-family: var(--mono); font-size: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; white-space: pre-wrap; word-break: break-all; color: var(--text-soft); }

/* Statement (printable) */
.statement { background: #fff; color: #111; border-radius: 14px; padding: 22px; font-size: 12.5px; }
.statement .st-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 3px solid var(--navy); }
.statement .st-head img { height: 34px; width: auto; }
.statement h4 { color: var(--navy); font-size: 15px; }
.statement table { width: 100%; border-collapse: collapse; margin-top: 12px; font-variant-numeric: tabular-nums; }
.statement th { background: var(--navy); color: #fff; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 7px 8px; text-align: left; }
.statement td { padding: 7px 8px; border-bottom: 1px solid #e6e2d8; }
.statement .gold-band { background: #f4efe4; border-left: 3px solid var(--gold); padding: 8px 10px; margin-top: 12px; }
.statement .muted { color: #666; }

.fade-in { animation: fadeUp .35s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .splash-logo .letters { opacity: 1; transform: none; filter: none; }
  .splash-logo .stripes { clip-path: none; }
}
@media print {
  .topbar, .tabbar, .sidebar, .no-print, .preview-ribbon { display: none !important; }
  body, .main { background: #fff !important; padding: 0 !important; }
  .app { display: block; }
}

/* ---------------------------------------------------------------- Watchlist & stock pages */
.search-bar { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); color: var(--text-mute); font-size: 14.5px; text-align: left; }
.search-bar:hover { border-color: var(--gold-line); }
.search-bar kbd { margin-left: auto; font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--text-faint); }
.wl-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.wl-tabs::-webkit-scrollbar { display: none; }
.wl-tabs button { flex: none; height: 34px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text-soft); font-weight: 700; font-size: 13px; }
.wl-tabs button.on { background: var(--gold-soft); color: var(--gold-2); border-color: var(--gold-line); }
.wl-tabs button .n { margin-left: 6px; font-size: 11px; color: var(--text-faint); }
.wl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.wl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; color: inherit; text-align: left; }
.wl-row:last-child { border-bottom: 0; }
button.wl-row:hover { background: rgba(255,255,255,.02); }
.wl-row .sym { font-weight: 750; font-size: 14.5px; display: flex; align-items: center; gap: 6px; }
.wl-row .ex { font-size: 9.5px; font-weight: 800; letter-spacing: .06em; padding: 1px 5px; border-radius: 4px; background: var(--surface-3); color: var(--text-mute); }
.wl-row .nm { font-size: 12px; color: var(--text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.wl-row .px { text-align: right; font-variant-numeric: tabular-nums; }
.wl-row .ltp { font-weight: 800; font-size: 15px; padding: 1px 4px; border-radius: 5px; transition: background .6s; }
.wl-row .ch { font-size: 12px; font-weight: 700; }
.wl-row .ltp.flash-up { background: rgba(61,190,110,.25); transition: none; }
.wl-row .ltp.flash-down { background: rgba(240,86,79,.25); transition: none; }
.wl-row .edit-ctl { display: flex; gap: 4px; }
.wl-row .edit-ctl .icon-btn { width: 34px; height: 34px; }
.wl-row .spark { display: none; }
@media (min-width: 540px) { .wl-row { grid-template-columns: minmax(0, 1fr) 96px auto; } .wl-row .spark { display: block; } }
.live-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--text-mute); }
.stock-head .ltp { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stock-head .chg { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.ranges { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.ranges button { flex: 1; border: 0; background: none; border-radius: 9px; padding: 7px 0; font-size: 12.5px; font-weight: 700; color: var(--text-mute); }
.ranges button.on { background: var(--surface-3); color: var(--text); }
.pchart { width: 100%; height: auto; display: block; touch-action: pan-y; }
.pchart text { fill: var(--text-faint); font-size: 10px; font-family: var(--sans); }
.chart-box { position: relative; min-height: 200px; }
.chart-tip { position: absolute; top: 4px; left: 8px; font-size: 12px; color: var(--text-soft); font-variant-numeric: tabular-nums; pointer-events: none; }
.range-bar { position: relative; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--red), var(--amber), var(--green)); margin: 10px 0 6px; opacity: .85; }
.range-bar i { position: absolute; top: -5px; width: 2px; height: 14px; background: var(--text); border-radius: 2px; transform: translateX(-1px); }
.range-lbl { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-mute); font-variant-numeric: tabular-nums; }
.news-item { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: inherit; }
.news-item:last-child { border-bottom: 0; }
.news-item .t { font-weight: 650; font-size: 14px; line-height: 1.4; color: var(--text); }
.news-item .m { font-size: 11.5px; color: var(--text-mute); margin-top: 4px; }
.alert-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.alert-row:last-child { border-bottom: 0; }
.cond-pill { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; padding: 3px 7px; border-radius: 6px; text-transform: uppercase; }
.cond-pill.above { background: var(--green-soft); color: var(--green); }
.cond-pill.below { background: var(--red-soft); color: var(--red); }
.job { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.job:last-child { border-bottom: 0; }
.job .jt { font-weight: 700; }
.job .js { font-size: 12.5px; color: var(--text-mute); margin-top: 2px; overflow-wrap: anywhere; }

/* One-time codes */
.or-line{display:flex;align-items:center;gap:12px;margin:18px 0 14px;color:var(--text-faint);font-size:12px;text-transform:uppercase;letter-spacing:.14em}
.or-line::before,.or-line::after{content:"";flex:1;height:1px;background:var(--line)}
.otp-input{letter-spacing:.5em;font-size:22px;text-align:center;padding-left:.5em}
.verify-chip{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:650;padding:2px 8px;border-radius:999px;margin-left:6px;vertical-align:1px}
.verify-chip.ok{background:var(--green-soft);color:var(--green)}
.verify-chip.no{background:var(--surface-2);color:var(--text-mute);border:1px solid var(--line);cursor:pointer}
.msg-log{font-size:12.5px}
.msg-log .row{display:grid;grid-template-columns:auto 1fr auto;gap:10px;padding:8px 0;border-bottom:1px solid var(--line);align-items:center}
.msg-log .row:last-child{border-bottom:0}
.msg-log .m{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Terms, risk disclosure */
.legal-short{margin:0;padding-left:18px;display:grid;gap:9px;color:var(--text-soft);font-size:14.5px;line-height:1.55}
.legal-full{border-top:1px solid var(--line)}
.legal-full details{border-bottom:1px solid var(--line)}
.legal-full summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 2px;font-weight:650;font-size:15px}
.legal-full summary::-webkit-details-marker{display:none}
.legal-full summary svg{transition:transform .2s;color:var(--text-mute);flex:none}
.legal-full details[open] summary svg{transform:rotate(90deg)}
.legal-body{padding:0 2px 16px;color:var(--text-soft);font-size:14px;line-height:1.65}
.legal-body .link-btn,.legal-short .link-btn{font-size:inherit}

/* Client profile: KYC checklist */
.kyc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kyc-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text-mute); }
.kyc-item svg { flex: none; }
.kyc-item.ok { color: var(--green); background: var(--green-soft); border-color: rgba(61,190,110,.28); }

/* Touch screens: every button at least ~40px tall so it is easy to tap. */
@media (pointer: coarse) {
  .btn-sm { min-height: 40px; }
  .btn-xs { min-height: 36px; }
  .preset button { height: 38px; }
  .icon-btn { min-width: 40px; min-height: 40px; }
  .filters button, .seg button { min-height: 38px; }
  .link-btn { padding: 8px 2px; }
}

/* WMAX Insights */
.tv-meter .bar { position: relative; height: 10px; border-radius: 99px; background: linear-gradient(90deg, rgba(240,86,79,.85), rgba(240,86,79,.25) 35%, rgba(255,255,255,.14) 50%, rgba(61,190,110,.25) 65%, rgba(61,190,110,.85)); }
.tv-meter .bar i { position: absolute; top: -5px; width: 4px; height: 20px; margin-left: -2px; border-radius: 3px; background: var(--text); box-shadow: 0 0 0 3px rgba(0,0,0,.45); }
.tv-meter .ends { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-mute); margin-top: 6px; }
.heat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.heat-grid.small { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.heat-tile { display: grid; gap: 2px; align-content: center; min-height: 64px; padding: 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.06); color: var(--text); text-align: left; font: inherit; }
.heat-grid.small .heat-tile { min-height: 54px; padding: 8px; cursor: pointer; }
.heat-tile b { font-size: 12.5px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.heat-tile span { font-size: 13px; font-weight: 700; }
.heat-tile small { font-size: 11px; opacity: .75; }
.breadth { display: flex; height: 8px; border-radius: 99px; overflow: hidden; gap: 2px; }
.breadth i { display: block; min-width: 0; }
.breadth .a { background: var(--green); } .breadth .f { background: rgba(255,255,255,.25); } .breadth .d { background: var(--red); }
.tbl tr[data-stock]:hover td { background: rgba(255,255,255,.03); }
