/* ============================================================
   OMKARA — Desi Investment Community  ·  Design System
   ============================================================ */

:root {
  /* Brand */
  --brand: #3B2F8F;
  --brand-2: #6B5BD6;
  --brand-ink: #241A5C;
  --saffron: #FF7A18;
  --marigold: #FF9E2C;
  --gold: #F5B53D;
  --gold-soft: #FFD86B;
  --teal: #1FB6A6;
  --green: #16B981;
  --red: #F2556B;
  --amber: #F59E0B;

  /* Light theme surfaces */
  --bg: #F4F1FB;
  --bg-grad: radial-gradient(1200px 600px at 85% -10%, #efe9ff 0%, rgba(244,241,251,0) 60%),
             radial-gradient(900px 500px at -5% 110%, #fff1e2 0%, rgba(244,241,251,0) 55%),
             #F4F1FB;
  --surface: #FFFFFF;
  --surface-2: #F7F4FE;
  --surface-3: #EFEAFB;
  --glass: rgba(255,255,255,0.72);
  --glass-brd: rgba(255,255,255,0.7);
  --ink: #1B1535;
  --ink-soft: #5C5480;
  --ink-faint: #948CB0;
  --border: #E8E2F5;
  --border-strong: #D8D0EE;
  --shadow-sm: 0 1px 2px rgba(33,22,77,.06), 0 2px 6px rgba(33,22,77,.06);
  --shadow-md: 0 6px 18px rgba(40,28,90,.10), 0 2px 6px rgba(40,28,90,.06);
  --shadow-lg: 0 18px 50px rgba(40,28,90,.18);
  --shadow-glow: 0 10px 40px rgba(107,91,214,.28);

  --grad-brand: linear-gradient(135deg, #3B2F8F 0%, #6B5BD6 100%);
  --grad-warm: linear-gradient(135deg, #FF7A18 0%, #F5B53D 100%);
  --grad-royal: linear-gradient(135deg, #241A5C 0%, #3B2F8F 55%, #6B5BD6 100%);
  --grad-aurora: linear-gradient(120deg, #2A1E6B 0%, #3B2F8F 40%, #6B5BD6 70%, #FF7A18 130%);

  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 22px; --r-xl: 30px; --r-pill: 999px;
  --sb-w: 248px; --tb-h: 66px;
  --font-display: "Plus Jakarta Sans", "Poppins", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.22,.61,.36,1);
}

[data-theme="dark"] {
  --bg: #0D0A20;
  --bg-grad: radial-gradient(1100px 600px at 85% -12%, #241a5c66 0%, rgba(13,10,32,0) 60%),
             radial-gradient(900px 520px at -8% 112%, #5a2a0b55 0%, rgba(13,10,32,0) 55%),
             #0D0A20;
  --surface: #161232;
  --surface-2: #1C1740;
  --surface-3: #241D52;
  --glass: rgba(26,21,64,0.6);
  --glass-brd: rgba(120,104,224,0.22);
  --ink: #F2EEFF;
  --ink-soft: #B7AEDE;
  --ink-faint: #847BB3;
  --border: #2A2360;
  --border-strong: #38307A;
  --brand-2: #8C7DEC;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,.40);
  --shadow-lg: 0 22px 60px rgba(0,0,0,.55);
  --shadow-glow: 0 10px 44px rgba(124,108,236,.40);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg-grad);
  background-attachment: fixed;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  min-height: 100vh;
}
h1,h2,h3,h4 { font-family: var(--font-display); margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; }
::selection { background: var(--brand-2); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-2); background-clip: padding-box; }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: var(--sb-w) 1fr; min-height: 100vh; }
.app.landing-mode { grid-template-columns: 1fr; }

/* ---------- Sidebar ---------- */
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; z-index: 30;
}
.sb-logo { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; }
.sb-logo img { height: 34px; }
.sb-section { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-faint); padding: 14px 12px 6px; font-weight: 700; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--r-sm);
  color: var(--ink-soft); font-weight: 600; font-size: 14px; transition: all .15s var(--ease); position: relative; border: 1px solid transparent;
}
.nav-item .ni-ico { width: 20px; height: 20px; display: grid; place-items: center; flex: none; opacity: .85; }
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.active { background: linear-gradient(135deg, rgba(59,47,143,.10), rgba(107,91,214,.06)); color: var(--brand); border-color: var(--border); }
[data-theme="dark"] .nav-item.active { color: #C9BEFF; background: linear-gradient(135deg, rgba(124,108,236,.20), rgba(124,108,236,.07)); }
.nav-item.active::before { content:""; position:absolute; left:-14px; top:9px; bottom:9px; width:4px; border-radius: 0 4px 4px 0; background: var(--grad-warm); }
.nav-badge { margin-left: auto; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: var(--grad-warm); color: #3a1d00; }
.nav-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 99px; background: var(--green); box-shadow: 0 0 0 3px rgba(22,185,129,.18); }
.sb-foot { margin-top: auto; padding: 12px 8px 4px; }
.sb-upsell { background: var(--grad-royal); border-radius: var(--r-md); padding: 14px; color: #fff; position: relative; overflow: hidden; }
.sb-upsell::after { content:""; position:absolute; inset:0; background: radial-gradient(120px 80px at 90% 0%, rgba(245,181,61,.5), transparent 70%); }
.sb-upsell h4 { color:#fff; font-size: 14px; }
.sb-upsell p { margin: 4px 0 10px; font-size: 12px; color: #d9d2ff; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; height: var(--tb-h); z-index: 25;
  display: flex; align-items: center; gap: 14px; padding: 0 22px;
  background: var(--glass); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.search {
  flex: 1; max-width: 460px; display: flex; align-items: center; gap: 9px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 9px 14px; color: var(--ink-faint);
}
.search input { border: none; background: transparent; outline: none; color: var(--ink); font-size: 13.5px; width: 100%; }
.tb-spacer { flex: 1; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--ink-soft); position: relative; transition: all .15s var(--ease);
}
.icon-btn:hover { color: var(--brand); border-color: var(--border-strong); transform: translateY(-1px); }
.icon-btn .pip { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 99px; background: var(--saffron); box-shadow: 0 0 0 2px var(--surface); }

/* Segmented role switcher */
.segmented { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 4px; gap: 2px; }
.segmented button {
  border: none; background: transparent; padding: 7px 14px; border-radius: var(--r-pill); font-weight: 700; font-size: 12.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; transition: all .18s var(--ease);
}
.segmented button.on { color: #fff; background: var(--grad-brand); box-shadow: var(--shadow-sm); }
.segmented button .sg-emoji { font-size: 13px; }

/* Karma chip */
.karma-chip { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: var(--r-pill); background: linear-gradient(135deg, rgba(245,181,61,.16), rgba(255,122,24,.10)); border: 1px solid rgba(245,181,61,.4); font-weight: 800; color: #9a5a00; }
[data-theme="dark"] .karma-chip { color: var(--gold-soft); }
.karma-chip .kc-ring { width: 26px; height: 26px; }

/* Avatar */
.avatar { border-radius: 50%; object-fit: cover; background: var(--surface-3); display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; }
.avatar.gradient { background: var(--grad-royal); }
.av-32 { width: 32px; height: 32px; font-size: 13px; }
.av-40 { width: 40px; height: 40px; font-size: 15px; }
.av-48 { width: 48px; height: 48px; font-size: 17px; }
.av-64 { width: 64px; height: 64px; font-size: 22px; }
.av-80 { width: 80px; height: 80px; font-size: 28px; }
.av-wrap { position: relative; flex: none; }
.av-ring { padding: 2px; border-radius: 50%; background: var(--grad-warm); }
.av-ring .avatar { border: 2px solid var(--surface); }
.online-dot { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 99px; background: var(--green); border: 2.5px solid var(--surface); }

/* ---------- Main / content ---------- */
.main { min-width: 0; display: flex; flex-direction: column; }
.view { padding: 26px 30px 60px; max-width: 1240px; width: 100%; margin: 0 auto; animation: viewIn .35s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .ph-title { font-size: 26px; }
.page-head .ph-sub { color: var(--ink-soft); font-size: 14px; margin-top: 4px; }
.eyebrow { display:inline-flex; align-items:center; gap:7px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-2); background: var(--surface-2); border:1px solid var(--border); padding: 5px 11px; border-radius: 99px; }

/* ---------- Grid utils ---------- */
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.row { display: flex; gap: 18px; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.center { align-items: center; }
.wrap { flex-wrap: wrap; }
.gap-sm { gap: 8px; } .gap-md { gap: 14px; }
.flex1 { flex: 1; min-width: 0; }
.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mb-8{margin-bottom:8px}
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.tiny { font-size: 12px; } .small { font-size: 13px; }
.up { color: var(--green); } .down { color: var(--red); }
.center-text{text-align:center}

/* ---------- Card ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); position: relative; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card.pad { padding: 20px; }
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h3 { font-size: 16px; }
.glass { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--glass-brd); }

/* Stat tile */
.stat { padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat .st-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; margin-bottom: 12px; }
.st-i-brand { background: rgba(107,91,214,.14); color: var(--brand-2); }
.st-i-warm { background: rgba(255,122,24,.14); color: var(--saffron); }
.st-i-teal { background: rgba(31,182,166,.16); color: var(--teal); }
.st-i-green { background: rgba(22,185,129,.16); color: var(--green); }
.stat .st-val { font-size: 26px; font-weight: 800; font-family: var(--font-display); letter-spacing: -.02em; }
.stat .st-label { color: var(--ink-soft); font-size: 13px; margin-top: 2px; }
.stat .st-delta { font-size: 12px; font-weight: 700; margin-top: 8px; display: inline-flex; gap: 4px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14px;
  padding: 11px 18px; border-radius: var(--r-pill); border: 1px solid transparent; transition: all .18s var(--ease); white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-warm { background: var(--grad-warm); color: #3a1d00; box-shadow: 0 8px 24px rgba(255,122,24,.32); }
.btn-warm:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn-ghost { background: var(--surface-2); color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); background: var(--surface-3); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--surface-2); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon-only { padding: 11px; }

/* ---------- Chips / badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 99px; background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--border); }
.chip.active, .chip:hover { color: var(--brand); border-color: var(--brand-2); }
.chip.tag { background: rgba(107,91,214,.10); color: var(--brand-2); border-color: transparent; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 7px; }
.b-verified { background: rgba(31,182,166,.16); color: #0f9b8d; }
.b-ria { background: rgba(59,47,143,.12); color: var(--brand-2); }
.b-pro { background: var(--grad-warm); color: #3a1d00; }
.b-top { background: rgba(245,181,61,.18); color: #a5740a; }
.b-new { background: rgba(242,85,107,.14); color: var(--red); }
[data-theme="dark"] .b-verified { color: #4ed6c7; } [data-theme="dark"] .b-top { color: var(--gold-soft); }

.pill-tier { display:inline-flex; align-items:center; gap:6px; padding: 4px 10px; border-radius: 99px; font-weight: 800; font-size: 11.5px; }
.tier-gold { background: linear-gradient(135deg,#FFE9B0,#F5B53D); color:#6b4a00; }
.tier-silver { background: linear-gradient(135deg,#EAEAF2,#C7C7D6); color:#4a4a5a; }
.tier-bronze { background: linear-gradient(135deg,#F0CBA8,#CD8B5C); color:#5a3417; }

/* ---------- Progress / meters ---------- */
.meter { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 99px; background: var(--grad-warm); }
.meter.brand > span { background: var(--grad-brand); }
.meter.teal > span { background: linear-gradient(90deg,#1FB6A6,#7BE6D6); }

.risk-dots { display: inline-flex; gap: 3px; }
.risk-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--surface-3); display:block; }
.risk-dots i.on { background: var(--amber); }
.risk-dots.low i.on { background: var(--green); }
.risk-dots.high i.on { background: var(--red); }

/* ---------- Feed / list items ---------- */
.feed-item { padding: 16px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: all .18s var(--ease); }
.feed-item:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.feed-head { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.feed-head .fh-name { font-weight: 700; font-size: 14px; }
.feed-actions { display: flex; gap: 6px; align-items: center; margin-top: 12px; }
.vote { display: inline-flex; align-items: center; gap: 7px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 99px; padding: 5px 6px; }
.vote button { border: none; background: transparent; color: var(--ink-soft); width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center; transition: all .15s; }
.vote button:hover { background: var(--surface-3); color: var(--brand); }
.vote button.up.cast { color: var(--green); } .vote button.down.cast { color: var(--red); }
.vote .vcount { font-weight: 800; font-size: 13px; min-width: 18px; text-align: center; }
.act-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); color: var(--ink-soft); font-size: 12.5px; font-weight: 600; }
.act-btn:hover { color: var(--brand); border-color: var(--border-strong); }

/* Insight callout */
.insight { border-left: 3px solid var(--saffron); background: linear-gradient(90deg, rgba(255,122,24,.06), transparent 80%); padding: 12px 14px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin-top: 12px; }
.insight .in-label { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--saffron); display:flex; align-items:center; gap:6px; }

/* ---------- Maven / model cards ---------- */
.maven-card { padding: 0; overflow: hidden; }
.maven-cover { height: 76px; background: var(--grad-aurora); position: relative; z-index: 0; }
.maven-cover.c2 { background: linear-gradient(120deg,#0F766E,#1FB6A6,#7BE6D6); }
.maven-cover.c3 { background: linear-gradient(120deg,#7C2D12,#FF7A18,#F5B53D); }
.maven-cover.c4 { background: linear-gradient(120deg,#312E81,#6B5BD6,#A78BFA); }
.maven-body { padding: 0 18px 18px; margin-top: -34px; position: relative; z-index: 1; }
/* any content that overlaps a cover must sit above it */
.over-cover { position: relative; z-index: 1; }
.card-icon { width: 60px; height: 60px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; font-size: 30px; box-shadow: var(--shadow-md); }

/* Quick-action tiles (Maven Studio) */
.qa-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.qa-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; padding: 20px 12px; min-height: 116px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease); text-align: center; font-family: inherit; }
.qa-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.qa-card .qa-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; }
.qa-card .qa-label { font-weight: 700; font-size: 12.5px; color: var(--ink); line-height: 1.25; }
.maven-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 14px 0; text-align: center; }
.maven-stats .ms-v { font-weight: 800; font-size: 16px; font-family: var(--font-display); }
.maven-stats .ms-l { font-size: 11px; color: var(--ink-faint); }
.maven-stats > div { background: var(--surface-2); border-radius: 12px; padding: 9px 6px; }

.model-card { padding: 18px; }
.model-spark { height: 54px; margin: 12px 0; }
.kv { display:flex; justify-content:space-between; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.kv:last-child{border-bottom:none}
.kv .k { color: var(--ink-soft); } .kv .v { font-weight: 700; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tab { padding: 11px 16px; font-weight: 700; font-size: 13.5px; color: var(--ink-soft); border-bottom: 2.5px solid transparent; white-space: nowrap; transition: all .15s; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--brand); border-color: var(--saffron); }

/* ---------- Table ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.table td { padding: 12px; border-bottom: 1px solid var(--border); }
.table tr:hover td { background: var(--surface-2); }
.table tr:last-child td { border-bottom: none; }

/* ---------- Marketplace ---------- */
.bid-card { border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px; background: var(--surface); transition: all .18s; }
.bid-card.best { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31,182,166,.12); }
.bid-card:hover { border-color: var(--border-strong); }
.bid-fee { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.match-bar { display:flex; align-items:center; gap:8px; }
.match-bar .mb-track { flex:1; height:6px; border-radius:99px; background:var(--surface-3); overflow:hidden; }
.match-bar .mb-track > span { display:block; height:100%; background: var(--grad-brand); }

/* ---------- Pricing ---------- */
.price-card { padding: 26px 24px; border-radius: var(--r-xl); text-align: left; position: relative; overflow: hidden; }
.price-card.feature { background: var(--grad-royal); color: #fff; border: none; box-shadow: var(--shadow-lg); }
.price-card.feature .muted, .price-card.feature .price-sub { color: #cdc4f5 !important; }
.price-card .price-amt { font-size: 40px; font-weight: 800; font-family: var(--font-display); letter-spacing: -.02em; }
.price-card .price-row { display:flex; gap:10px; align-items:flex-start; padding: 8px 0; font-size: 14px; }
.price-card .price-row .pc { color: var(--teal); flex:none; margin-top:1px; }
.price-card.feature .price-row .pc { color: var(--gold-soft); }
.ribbon { position:absolute; top: 16px; right: -34px; transform: rotate(45deg); background: var(--grad-warm); color:#3a1d00; font-weight:800; font-size: 11px; padding: 5px 40px; }

/* ---------- WhatsApp ---------- */
.wa-phone { width: 330px; background: #0b141a; border-radius: 30px; padding: 10px; box-shadow: var(--shadow-lg); border: 6px solid #1f2c33; }
.wa-screen { background: #0b141a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 0h40v40H0z' fill='%230b141a'/%3E%3Ccircle cx='8' cy='8' r='1' fill='%23142028'/%3E%3C/svg%3E"); border-radius: 22px; overflow: hidden; height: 540px; display: flex; flex-direction: column; }
.wa-top { background: #1f2c33; padding: 12px 14px; display: flex; align-items: center; gap: 10px; color: #e9edef; }
.wa-top .wa-name { font-weight: 700; font-size: 14px; } .wa-top .wa-status { font-size: 11px; color: #8696a0; }
.wa-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.wa-msg { max-width: 80%; padding: 7px 10px; border-radius: 10px; font-size: 12.5px; color: #e9edef; position: relative; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,.2); }
.wa-msg.them { background: #1f2c33; align-self: flex-start; border-top-left-radius: 3px; }
.wa-msg.me { background: #144d37; align-self: flex-end; border-top-right-radius: 3px; }
.wa-msg .wa-time { font-size: 9.5px; color: #8696a0; margin-left: 8px; float: right; margin-top: 4px; }
.wa-msg .wa-bot { font-size: 10px; color: #53bdeb; font-weight: 700; display:block; margin-bottom: 2px; }
.wa-input { background: #1f2c33; padding: 9px 12px; display: flex; align-items: center; gap: 8px; color: #8696a0; font-size: 12px; }
.wa-input .wa-field { flex:1; background:#2a3942; border-radius: 18px; padding: 7px 12px; }
.wa-send { width: 34px; height: 34px; border-radius: 99px; background: #00a884; display: grid; place-items: center; color: #04130d; flex:none; }

/* ---------- Modal ---------- */
.modal-scrim { position: fixed; inset: 0; background: rgba(16,10,38,.55); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 80; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal-scrim.open { opacity: 1; pointer-events: auto; }
.modal { width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); transform: translateY(14px) scale(.98); transition: transform .28s var(--ease); max-height: 88vh; overflow-y: auto; }
.modal-scrim.open .modal { transform: none; }
.modal-head { padding: 22px 24px 0; display:flex; justify-content: space-between; align-items:flex-start; }
.modal-body { padding: 16px 24px 24px; }
.modal-x { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--ink-soft); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; padding: 11px 13px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface-2); color: var(--ink); font-size: 14px; font-family: inherit; outline: none; transition: border .15s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand-2); }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 22px; right: 22px; z-index: 120; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--teal); border-radius: 12px; padding: 13px 16px; box-shadow: var(--shadow-lg); display: flex; gap: 11px; align-items: center; min-width: 280px; animation: toastIn .3s var(--ease); }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity:1; transform: none; } }
.toast .t-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(31,182,166,.16); color: var(--teal); flex:none; }

/* ---------- Leaderboard ---------- */
.lb-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-md); transition: background .15s; }
.lb-row:hover { background: var(--surface-2); }
.lb-rank { width: 30px; text-align: center; font-weight: 800; font-family: var(--font-display); color: var(--ink-faint); }
.lb-rank.gold { color: var(--gold); } .lb-rank.silver { color: #9aa0b3; } .lb-rank.bronze { color: #cd8b5c; }

/* ---------- Event / appointment ---------- */
.cal-day { aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--border); display: grid; place-items: center; font-size: 13px; font-weight: 600; position: relative; transition: all .15s; }
.cal-day:hover { border-color: var(--brand-2); }
.cal-day.has::after { content:""; position:absolute; bottom:7px; width:5px; height:5px; border-radius:99px; background: var(--saffron); }
.cal-day.sel { background: var(--grad-brand); color:#fff; border-color: transparent; }
.cal-day.muted { color: var(--ink-faint); opacity: .5; }
.slot { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); font-size: 13px; font-weight: 600; text-align:center; transition: all .15s; }
.slot:hover { border-color: var(--brand-2); color: var(--brand); }
.slot.taken { opacity: .4; text-decoration: line-through; pointer-events: none; }

/* ---------- Landing ---------- */
.landing { min-height: 100vh; }
.lp-nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 18px; padding: 16px 40px; background: var(--glass); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.lp-nav img { height: 36px; }
.lp-links { display: flex; gap: 26px; margin-left: 28px; }
.lp-links a { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.lp-links a:hover { color: var(--brand); }
.hero { position: relative; padding: 70px 40px 40px; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 52px; line-height: 1.05; letter-spacing: -.025em; }
.hero h1 .grad { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--ink-soft); margin: 20px 0 26px; max-width: 520px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-row { display:flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.trust-row .tr-v { font-size: 24px; font-weight: 800; font-family: var(--font-display); }
.trust-row .tr-l { font-size: 12.5px; color: var(--ink-soft); }
.hero-visual { position: relative; }
.float-card { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 12px 14px; animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-12px);} }
.section { max-width: 1200px; margin: 0 auto; padding: 60px 40px; }
.section h2 { font-size: 34px; text-align: center; letter-spacing: -.02em; }
.section .sec-sub { text-align: center; color: var(--ink-soft); max-width: 600px; margin: 12px auto 40px; font-size: 16px; }
.feat-card { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: all .2s var(--ease); }
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feat-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; background: var(--grad-brand); color: #fff; }
.feat-card h3 { font-size: 17px; margin-bottom: 7px; }
.feat-card p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.persona-card { padding: 26px; border-radius: var(--r-xl); border: 1px solid var(--border); background: var(--surface); position: relative; overflow: hidden; }
.persona-card .pe-emoji { font-size: 34px; }
.cta-band { background: var(--grad-aurora); border-radius: var(--r-xl); padding: 48px; text-align: center; color: #fff; position: relative; overflow: hidden; margin: 20px 0; }
.cta-band h2 { color: #fff; }
.lp-foot { border-top: 1px solid var(--border); padding: 40px; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.disclaimer { background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--r-md); padding: 14px 18px; font-size: 12px; color: var(--ink-soft); display:flex; gap:10px; }

/* ---------- Demo tour overlay ---------- */
.demo-scrim { position: fixed; inset: 0; z-index: 200; pointer-events: none; display: none; }
.demo-scrim.on { display: block; }
.spotlight { position: absolute; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(13,10,32,.72); transition: all .5s var(--ease); border: 2px solid var(--saffron); }
.demo-caption { position: fixed; left: 50%; transform: translateX(-50%); bottom: 34px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 18px 22px; max-width: 560px; width: calc(100% - 48px); pointer-events: auto; z-index: 210; }
.demo-caption .dc-step { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--saffron); }
.demo-caption h4 { font-size: 18px; margin: 6px 0 4px; }
.demo-caption p { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 14px; }
.demo-progress { height: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-bottom: 14px; }
.demo-progress > span { display:block; height:100%; background: var(--grad-warm); transition: width .5s var(--ease); }
.demo-badge { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 210; background: var(--grad-royal); color: #fff; padding: 7px 16px; border-radius: 99px; font-weight: 700; font-size: 12.5px; box-shadow: var(--shadow-lg); display:flex; align-items:center; gap:8px; pointer-events:auto; }
.demo-badge .rec { width: 9px; height: 9px; border-radius: 99px; background: #ff4d4d; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.dot-sep { color: var(--ink-faint); margin: 0 7px; }
.skel { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.hide { display: none !important; }
.notif-pop { position: absolute; top: 56px; right: 0; width: 340px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 60; }
.notif-item { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; gap: 11px; font-size: 13px; }
.notif-item:hover { background: var(--surface-2); }

.serif { font-family: var(--font-serif); font-weight: 600; letter-spacing: -.01em; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Auth / Login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-art { position: relative; overflow: hidden; background: var(--grad-aurora); color: #fff; padding: 50px 56px; display: flex; flex-direction: column; }
.auth-art::after { content:""; position:absolute; inset:0; background: radial-gradient(600px 380px at 80% 12%, rgba(245,181,61,.34), transparent 60%), radial-gradient(520px 360px at 8% 96%, rgba(31,182,166,.32), transparent 60%); pointer-events:none; }
.kolam { position:absolute; inset:0; opacity:.08; background-image: radial-gradient(circle at 20px 20px, #fff 1.4px, transparent 1.5px); background-size: 40px 40px; }
.auth-art .aa-quote { font-family: var(--font-serif); font-size: 30px; line-height: 1.25; margin-top: auto; font-weight: 500; }
.auth-art .aa-points { display:flex; flex-direction:column; gap:14px; margin-top: 26px; }
.auth-art .aa-point { display:flex; gap:11px; align-items:flex-start; font-size: 14px; color:#e9e3ff; }
.auth-art .aa-point .ck { width:22px;height:22px;border-radius:99px;background:rgba(255,255,255,.16); display:grid;place-items:center; flex:none; color: var(--gold-soft); }
.auth-form { display: grid; place-items: center; padding: 40px; background: var(--bg-grad); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 27px; }
.seg-tabs { display:flex; background: var(--surface-2); border:1px solid var(--border); border-radius: var(--r-pill); padding: 4px; margin: 20px 0; }
.seg-tabs button { flex:1; border:none; background:transparent; padding: 10px; border-radius: var(--r-pill); font-weight: 700; font-size: 13.5px; color: var(--ink-soft); }
.seg-tabs button.on { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }
.oauth-btn { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; padding: 11px; border-radius: var(--r-sm); border:1px solid var(--border); background: var(--surface); color: var(--ink); font-weight:700; font-size:14px; }
.oauth-btn:hover { border-color: var(--border-strong); background: var(--surface-2); }
.or-div { display:flex; align-items:center; gap:12px; color: var(--ink-faint); font-size:12px; margin: 16px 0; }
.or-div::before, .or-div::after { content:""; flex:1; height:1px; background: var(--border); }

/* ---------- Onboarding stepper ---------- */
.onb { max-width: 640px; margin: 0 auto; padding: 30px 24px 60px; }
.steps { display:flex; align-items:center; gap: 8px; margin-bottom: 30px; }
.step-dot { flex:1; height: 6px; border-radius: 99px; background: var(--surface-3); overflow:hidden; }
.step-dot.done > span, .step-dot.cur > span { display:block; height:100%; background: var(--grad-warm); }
.step-dot.cur > span { width: 50%; } .step-dot.done > span { width: 100%; }
.choice { display:flex; gap: 14px; padding: 18px; border-radius: var(--r-lg); border: 2px solid var(--border); background: var(--surface); cursor:pointer; transition: all .18s; }
.choice:hover { border-color: var(--brand-2); }
.choice.sel { border-color: var(--saffron); background: linear-gradient(135deg, rgba(255,122,24,.06), transparent); }
.choice .ch-ico { width: 48px; height:48px; border-radius: 14px; display:grid; place-items:center; font-size: 24px; flex:none; }
.handle-prev { display:flex; align-items:center; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); border:1px dashed var(--border-strong); }

/* ---------- Risk-o-meter ---------- */
.riskometer { display:inline-flex; align-items:center; gap: 8px; }
.rm-track { display:flex; gap:3px; }
.rm-track i { width: 18px; height: 7px; border-radius: 3px; background: var(--surface-3); display:block; }
.rm-track i.on1 { background:#16B981; } .rm-track i.on2 { background:#84CC16; }
.rm-track i.on3 { background:#F59E0B; } .rm-track i.on4 { background:#FB7185; } .rm-track i.on5 { background:#EF4444; }
.rm-label { font-size: 11.5px; font-weight: 800; }

/* ---------- Compliance / disclosure ---------- */
.compliance-bar { display:flex; align-items:center; gap:10px; font-size:12px; color: var(--ink-soft); background: var(--surface-2); border:1px solid var(--border); border-radius: var(--r-sm); padding: 9px 14px; }
.sebi-badge { display:inline-flex; align-items:center; gap:7px; background: linear-gradient(135deg, rgba(31,182,166,.14), rgba(31,182,166,.06)); border:1px solid rgba(31,182,166,.35); border-radius: 9px; padding: 6px 11px; font-size: 12px; font-weight: 700; color:#0f8b8d; }
.sebi-badge .tri { color:#16B981; }
[data-theme="dark"] .sebi-badge { color:#4ed6c7; }
.valid-upi { display:inline-flex; align-items:center; gap:5px; font-size: 12px; font-weight:700; color:#16B981; }
.accordion { border:1px solid var(--border); border-radius: var(--r-md); overflow:hidden; }
.acc-head { padding: 13px 16px; display:flex; justify-content:space-between; align-items:center; font-weight:700; font-size:13.5px; cursor:pointer; background: var(--surface-2); }
.acc-body { padding: 0 16px; max-height: 0; overflow:hidden; transition: max-height .3s var(--ease), padding .3s var(--ease); font-size:13px; color: var(--ink-soft); }
.acc-body.open { max-height: 420px; padding: 14px 16px; }
.lane-toggle { display:inline-flex; background: var(--surface-2); border:1px solid var(--border); border-radius:99px; padding:3px; }
.lane-toggle button { border:none; background:transparent; padding:6px 14px; border-radius:99px; font-weight:700; font-size:12.5px; color:var(--ink-soft); }
.lane-toggle button.on.edu { background: rgba(31,182,166,.16); color:#0f8b8d; }
.lane-toggle button.on.adv { background: rgba(59,47,143,.14); color: var(--brand-2); }

/* ---------- Donut ---------- */
.donut-wrap { position: relative; width: 150px; height: 150px; }
.donut-center { position:absolute; inset:0; display:grid; place-items:center; text-align:center; }
.legend-dot { width:10px; height:10px; border-radius:3px; flex:none; }

/* ---------- Hero phone mock / aura ---------- */
.aura { position:absolute; border-radius:50%; filter: blur(60px); opacity:.5; z-index:-1; }

/* ---------- Count up emphasis ---------- */
.metric-xl { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { display:none; } }
@media (max-width: 1100px) {
  .g-4 { grid-template-columns: repeat(2,1fr); } .g-3 { grid-template-columns: repeat(2,1fr); }
  .hero { grid-template-columns: 1fr; } .hero h1 { font-size: 40px; }
  .lp-foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; } .sidebar { display: none; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .qa-grid { grid-template-columns: repeat(2, 1fr); }
  .view { padding: 18px; } .lp-links { display: none; }
  .row { flex-direction: column; }
}
