/* ================================================================
   QUANT PULSE INDIA — Design System
   Dark-first, Mobile-responsive Trading Platform
   ================================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* --- Design Tokens --- */
:root {
  /* Backgrounds */
  --bg-base:      #060c1a;
  --bg-surface:   #09101f;
  --bg-elevated:  #0d1628;
  --bg-card:      #111e31;
  --bg-card-h:    #162438;
  --bg-input:     #0a1322;
  --bg-overlay:   rgba(6,12,26,.96);

  /* Borders */
  --border-subtle: #16243a;
  --border-default:#1d2f4a;
  --border-strong: #263d5f;
  --border-accent: rgba(38,198,218,.35);

  /* Brand */
  --brand-navy:    #1b2e5e;
  --brand-teal:    #26c6da;
  --brand-teal-2:  #00e5d4;
  --brand-grad:    linear-gradient(135deg,#1b2e5e 0%,#26c6da 100%);
  --brand-grad-r:  linear-gradient(135deg,#26c6da 0%,#1b2e5e 100%);

  /* Text */
  --txt-primary:  #dde5f5;
  --txt-secondary:#7a93b8;
  --txt-muted:    #3d5474;
  --txt-inv:      #060c1a;

  /* Status */
  --green:        #00d4a0;
  --green-dim:    rgba(0,212,160,.12);
  --red:          #ff4757;
  --red-dim:      rgba(255,71,87,.12);
  --orange:       #ff8c42;
  --orange-dim:   rgba(255,140,66,.12);
  --blue:         #3b9eff;
  --blue-dim:     rgba(59,158,255,.12);
  --gold:         #ffd166;
  --gold-dim:     rgba(255,209,102,.12);
  --purple:       #a78bfa;

  /* India */
  --india-orange: #ff6b00;
  --india-green:  #138808;

  /* Shadows */
  --sh-sm:        0 1px 4px rgba(0,0,0,.5);
  --sh-md:        0 4px 16px rgba(0,0,0,.55);
  --sh-lg:        0 8px 32px rgba(0,0,0,.65);
  --sh-teal:      0 0 24px rgba(38,198,218,.18);
  --sh-card:      0 4px 24px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.04);

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-f:  9999px;

  /* Transitions */
  --t-fast: 120ms ease;
  --t-base: 220ms ease;
  --t-slow: 380ms ease;

  /* Typography */
  --font:      'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Nav height */
  --nav-h: 64px;
}

/* Light mode */
[data-theme="light"] {
  --bg-base:       #f0f4fa;
  --bg-surface:    #f7f9fd;
  --bg-elevated:   #ffffff;
  --bg-card:       #ffffff;
  --bg-card-h:     #f5f8ff;
  --bg-input:      #eef2f8;
  --bg-overlay:    rgba(240,244,250,.97);
  --border-subtle: #e3eaf5;
  --border-default:#cdd7e8;
  --border-strong: #a8bacc;
  --txt-primary:   #0d1829;
  --txt-secondary: #4a6280;
  --txt-muted:     #8ba0b8;
  --sh-card: 0 4px 24px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.8);
}

/* --- Reset --- */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  font-family:var(--font);
  background:var(--bg-base);
  color:var(--txt-primary);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a { color:var(--brand-teal); text-decoration:none; transition:color var(--t-fast); }
a:hover { color:var(--brand-teal-2); }
img { max-width:100%; display:block; }
ul,ol { list-style:none; }
button,input,select,textarea { font-family:inherit; }
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background:var(--bg-base); }
::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:var(--r-f); }
::-webkit-scrollbar-thumb:hover { background:var(--brand-teal); }

/* --- Layout Utilities --- */
.container      { width:100%; max-width:1280px; margin:0 auto; padding:0 1.25rem; }
.container--sm  { max-width:900px; }
.container--lg  { max-width:1440px; }
.section        { padding:4rem 0; }
.section--sm    { padding:2.5rem 0; }
.section--lg    { padding:6rem 0; }
.grid           { display:grid; gap:1.5rem; }
.grid-2         { grid-template-columns:repeat(2,1fr); }
.grid-3         { grid-template-columns:repeat(3,1fr); }
.grid-4         { grid-template-columns:repeat(4,1fr); }
.grid-6         { grid-template-columns:repeat(6,1fr); }
.flex           { display:flex; }
.flex-center    { display:flex; align-items:center; justify-content:center; }
.flex-between   { display:flex; align-items:center; justify-content:space-between; }
.flex-col       { display:flex; flex-direction:column; }
.gap-sm         { gap:.5rem; }
.gap-md         { gap:1rem; }
.gap-lg         { gap:1.5rem; }
.gap-xl         { gap:2rem; }

/* --- Typography --- */
.h1 { font-size:clamp(2rem,5vw,3.5rem); font-weight:800; line-height:1.15; letter-spacing:-0.02em; }
.h2 { font-size:clamp(1.5rem,3vw,2.25rem); font-weight:700; line-height:1.2; letter-spacing:-0.015em; }
.h3 { font-size:clamp(1.1rem,2vw,1.5rem); font-weight:600; line-height:1.3; }
.h4 { font-size:1.125rem; font-weight:600; }
.h5 { font-size:1rem; font-weight:600; }
.lead { font-size:1.125rem; color:var(--txt-secondary); line-height:1.7; }
.mono { font-family:var(--font-mono); }
.text-gradient {
  background:var(--brand-grad);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.text-green  { color:var(--green) !important; }
.text-red    { color:var(--red) !important; }
.text-gold   { color:var(--gold) !important; }
.text-muted  { color:var(--txt-muted) !important; }
.text-secondary { color:var(--txt-secondary) !important; }
.text-center { text-align:center; }

/* --- Badges --- */
.badge {
  display:inline-flex; align-items:center; gap:.3rem;
  padding:.2rem .6rem; border-radius:var(--r-f);
  font-size:.72rem; font-weight:600; letter-spacing:.03em; text-transform:uppercase;
}
.badge--green  { background:var(--green-dim);  color:var(--green);  border:1px solid rgba(0,212,160,.25); }
.badge--red    { background:var(--red-dim);    color:var(--red);    border:1px solid rgba(255,71,87,.25); }
.badge--orange { background:var(--orange-dim); color:var(--orange); border:1px solid rgba(255,140,66,.25);}
.badge--blue   { background:var(--blue-dim);   color:var(--blue);   border:1px solid rgba(59,158,255,.25);}
.badge--gold   { background:var(--gold-dim);   color:var(--gold);   border:1px solid rgba(255,209,102,.25);}
.badge--teal   { background:rgba(38,198,218,.1); color:var(--brand-teal); border:1px solid var(--border-accent); }

/* --- Buttons --- */
.btn {
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.625rem 1.375rem; border-radius:var(--r-md);
  font-size:.9rem; font-weight:600; cursor:pointer;
  border:1px solid transparent; transition:all var(--t-base);
  white-space:nowrap; user-select:none;
}
.btn:active { transform:scale(.97); }
.btn--primary {
  background:var(--brand-grad);
  color:#fff;
  box-shadow:var(--sh-teal);
}
.btn--primary:hover { opacity:.88; box-shadow:0 0 30px rgba(38,198,218,.3); color:#fff; }
.btn--outline {
  background:transparent;
  color:var(--brand-teal);
  border-color:var(--border-accent);
}
.btn--outline:hover { background:rgba(38,198,218,.08); color:var(--brand-teal-2); }
.btn--ghost {
  background:transparent;
  color:var(--txt-secondary);
  border-color:var(--border-default);
}
.btn--ghost:hover { background:var(--bg-card); color:var(--txt-primary); }
.btn--danger { background:var(--red-dim); color:var(--red); border-color:rgba(255,71,87,.25); }
.btn--danger:hover { background:rgba(255,71,87,.2); }
.btn--sm  { padding:.4rem 1rem; font-size:.8rem; border-radius:var(--r-sm); }
.btn--lg  { padding:.875rem 2rem; font-size:1rem; border-radius:var(--r-lg); }
.btn--full { width:100%; justify-content:center; }

/* --- Cards --- */
.card {
  background:var(--bg-card);
  border:1px solid var(--border-default);
  border-radius:var(--r-lg);
  box-shadow:var(--sh-card);
  transition:border-color var(--t-base), transform var(--t-base);
}
.card:hover { border-color:var(--border-accent); }
.card--hover:hover { transform:translateY(-2px); }
.card__head {
  padding:1.25rem 1.5rem;
  border-bottom:1px solid var(--border-subtle);
  display:flex; align-items:center; justify-content:space-between;
}
.card__body { padding:1.5rem; }
.card__foot {
  padding:1rem 1.5rem;
  border-top:1px solid var(--border-subtle);
}
.card--glass {
  background:rgba(13,22,40,.7);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
}

/* --- Inputs --- */
.input-group { display:flex; flex-direction:column; gap:.4rem; }
.input-group label { font-size:.82rem; font-weight:500; color:var(--txt-secondary); }
.input {
  background:var(--bg-input);
  border:1px solid var(--border-default);
  border-radius:var(--r-md);
  color:var(--txt-primary);
  padding:.625rem 1rem;
  font-size:.9rem;
  transition:border-color var(--t-fast), box-shadow var(--t-fast);
  width:100%;
}
.input:focus {
  outline:none;
  border-color:var(--brand-teal);
  box-shadow:0 0 0 3px rgba(38,198,218,.12);
}
.input::placeholder { color:var(--txt-muted); }
select.input { cursor:pointer; }
.input-icon { position:relative; }
.input-icon .input { padding-left:2.5rem; }
.input-icon i { position:absolute; left:.85rem; top:50%; transform:translateY(-50%); color:var(--txt-muted); font-size:.9rem; }

/* --- Tables --- */
.table-wrap { overflow-x:auto; }
.table {
  width:100%; border-collapse:collapse;
  font-size:.875rem;
}
.table th {
  padding:.75rem 1rem; text-align:left;
  font-size:.75rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase;
  color:var(--txt-muted); background:var(--bg-input);
  border-bottom:1px solid var(--border-default);
}
.table td {
  padding:.875rem 1rem;
  border-bottom:1px solid var(--border-subtle);
  color:var(--txt-secondary);
}
.table tr:hover td { background:rgba(38,198,218,.04); color:var(--txt-primary); }
.table .mono { font-family:var(--font-mono); font-size:.82rem; }

/* ================================================================
   NAVIGATION
   ================================================================ */
.navbar {
  position:sticky; top:0; z-index:var(--z-nav,1000);
  height:var(--nav-h);
  background:var(--bg-overlay);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border-subtle);
  display:flex; align-items:center;
}
.navbar .container { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.navbar__logo img { height:36px; }
.navbar__nav { display:flex; align-items:center; gap:.25rem; }
.navbar__nav a {
  padding:.5rem .875rem; border-radius:var(--r-md);
  font-size:.875rem; font-weight:500;
  color:var(--txt-secondary);
  transition:all var(--t-fast);
  display:flex; align-items:center; gap:.4rem;
}
.navbar__nav a:hover,
.navbar__nav a.active { color:var(--txt-primary); background:var(--bg-card); }
.navbar__nav a.active { color:var(--brand-teal); }
.navbar__dropdown { position:relative; }
.navbar__dropdown-menu {
  position:absolute; top:calc(100% + .5rem); left:0;
  min-width:220px;
  background:var(--bg-elevated);
  border:1px solid var(--border-default);
  border-radius:var(--r-lg);
  box-shadow:var(--sh-lg);
  padding:.5rem;
  opacity:0; visibility:hidden; transform:translateY(-8px);
  transition:all var(--t-base);
  z-index:50;
}
.navbar__dropdown:hover .navbar__dropdown-menu {
  opacity:1; visibility:visible; transform:translateY(0);
}
.navbar__dropdown-menu a {
  display:flex; align-items:center; gap:.75rem;
  padding:.625rem .875rem; border-radius:var(--r-md);
  font-size:.85rem;
}
.navbar__dropdown-menu a i { width:16px; color:var(--brand-teal); }
.navbar__actions { display:flex; align-items:center; gap:.75rem; }
.navbar__hamburger { display:none; background:none; border:none; cursor:pointer; color:var(--txt-primary); font-size:1.25rem; padding:.5rem; }

/* Theme toggle */
.theme-toggle {
  background:var(--bg-card); border:1px solid var(--border-default);
  border-radius:var(--r-f); padding:.4rem .75rem;
  color:var(--txt-secondary); cursor:pointer;
  font-size:.8rem; display:flex; align-items:center; gap:.4rem;
  transition:all var(--t-fast);
}
.theme-toggle:hover { color:var(--txt-primary); border-color:var(--border-accent); }

/* Mobile nav */
.nav-mobile {
  display:none;
  position:fixed; top:var(--nav-h); left:0; right:0; bottom:0;
  background:var(--bg-overlay); overflow-y:auto;
  padding:1rem; z-index:999;
  border-top:1px solid var(--border-default);
  flex-direction:column; gap:.25rem;
}
.nav-mobile.open { display:flex; }
.nav-mobile a {
  padding:.875rem 1.25rem; border-radius:var(--r-md);
  color:var(--txt-secondary); font-weight:500;
  border:1px solid transparent;
  display:flex; align-items:center; gap:.75rem;
}
.nav-mobile a:hover { background:var(--bg-card); color:var(--txt-primary); border-color:var(--border-subtle); }
.nav-mobile .divider { height:1px; background:var(--border-subtle); margin:.5rem 0; }

/* ================================================================
   TICKER BAR
   ================================================================ */
.ticker-bar {
  background:var(--bg-surface);
  border-bottom:1px solid var(--border-subtle);
  padding:.4rem 0;
  overflow:hidden;
  position:relative;
}
.ticker-bar::before,
.ticker-bar::after {
  content:''; position:absolute; top:0; bottom:0; width:60px; z-index:2;
}
.ticker-bar::before { left:0; background:linear-gradient(to right, var(--bg-surface), transparent); }
.ticker-bar::after  { right:0; background:linear-gradient(to left, var(--bg-surface), transparent); }
.ticker-scroll {
  display:flex; gap:2.5rem;
  animation:tickerScroll 40s linear infinite;
  width:max-content;
}
.ticker-scroll:hover { animation-play-state:paused; }
.ticker-item {
  display:flex; align-items:center; gap:.5rem;
  font-size:.8rem; white-space:nowrap; font-family:var(--font-mono);
}
.ticker-item__name { color:var(--txt-secondary); font-weight:600; }
.ticker-item__val  { color:var(--txt-primary); font-weight:600; }
.ticker-item__chg  { font-size:.75rem; }
@keyframes tickerScroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
  position:relative;
  padding:6rem 0 5rem;
  overflow:hidden;
  background:radial-gradient(ellipse 80% 60% at 50% -20%, rgba(27,46,94,.6) 0%, transparent 60%),
             radial-gradient(ellipse 60% 40% at 80% 80%, rgba(38,198,218,.06) 0%, transparent 50%),
             var(--bg-base);
}
.hero__grid { display:grid; grid-template-columns:1fr 1fr; gap:4rem; align-items:center; }
.hero__eyebrow { display:flex; align-items:center; gap:.75rem; margin-bottom:1.25rem; }
.hero__eyebrow-line { width:32px; height:2px; background:var(--brand-grad); border-radius:2px; }
.hero__eyebrow span { font-size:.8rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--brand-teal); }
.hero__title { margin-bottom:1.25rem; }
.hero__desc { margin-bottom:2rem; max-width:480px; }
.hero__ctas { display:flex; gap:1rem; flex-wrap:wrap; }
.hero__stats {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:1px; background:var(--border-subtle);
  border:1px solid var(--border-subtle); border-radius:var(--r-lg);
  overflow:hidden; margin-top:2.5rem;
}
.hero__stat {
  background:var(--bg-card); padding:1rem;
  display:flex; flex-direction:column; gap:.25rem;
}
.hero__stat-val { font-size:1.25rem; font-weight:700; font-family:var(--font-mono); }
.hero__stat-lbl { font-size:.72rem; color:var(--txt-muted); text-transform:uppercase; letter-spacing:.06em; }
.hero__visual { position:relative; }
.hero__dashboard {
  background:var(--bg-card);
  border:1px solid var(--border-default);
  border-radius:var(--r-xl);
  padding:1.5rem;
  box-shadow:var(--sh-lg), var(--sh-teal);
}
.hero__bg-orbs {
  position:absolute; top:0; left:0; right:0; bottom:0;
  pointer-events:none; overflow:hidden; z-index:-1;
}
.hero__orb {
  position:absolute; border-radius:50%;
  filter:blur(100px); opacity:.12;
}
.hero__orb--1 { width:600px; height:600px; background:#26c6da; top:-200px; right:-200px; }
.hero__orb--2 { width:400px; height:400px; background:#1b2e5e; bottom:-100px; left:-100px; }

/* ================================================================
   SECTION HEADERS
   ================================================================ */
.section-header { text-align:center; margin-bottom:3rem; }
.section-header .eyebrow {
  display:inline-flex; align-items:center; gap:.5rem;
  font-size:.75rem; font-weight:600; letter-spacing:.1em;
  text-transform:uppercase; color:var(--brand-teal);
  margin-bottom:.75rem;
}
.section-header .eyebrow::before,
.section-header .eyebrow::after { content:''; width:20px; height:1px; background:var(--brand-teal); }
.section-header h2 { margin-bottom:.75rem; }
.section-header p { color:var(--txt-secondary); max-width:560px; margin:0 auto; }

/* ================================================================
   FEATURE CARDS (homepage)
   ================================================================ */
.feature-card {
  background:var(--bg-card);
  border:1px solid var(--border-default);
  border-radius:var(--r-lg);
  padding:1.75rem;
  transition:all var(--t-base);
  position:relative; overflow:hidden;
}
.feature-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background:var(--brand-grad); opacity:0; transition:opacity var(--t-base);
}
.feature-card:hover::before { opacity:1; }
.feature-card:hover { border-color:var(--border-accent); transform:translateY(-3px); box-shadow:var(--sh-lg); }
.feature-card__icon {
  width:48px; height:48px; border-radius:var(--r-md);
  background:var(--brand-grad); display:flex; align-items:center; justify-content:center;
  font-size:1.25rem; color:#fff; margin-bottom:1.25rem;
}
.feature-card__title { font-size:1.05rem; font-weight:600; margin-bottom:.5rem; }
.feature-card__desc  { font-size:.875rem; color:var(--txt-secondary); line-height:1.6; margin-bottom:1.25rem; }
.feature-card__link  { font-size:.82rem; font-weight:600; color:var(--brand-teal); display:flex; align-items:center; gap:.3rem; }
.feature-card__link:hover { gap:.6rem; color:var(--brand-teal-2); }

/* ================================================================
   INDEX WIDGETS
   ================================================================ */
.index-widget {
  background:var(--bg-card);
  border:1px solid var(--border-default);
  border-radius:var(--r-lg);
  padding:1.25rem 1.5rem;
  display:flex; align-items:center; justify-content:space-between;
  gap:1rem;
}
.index-widget__name { font-size:.8rem; color:var(--txt-muted); font-weight:600; text-transform:uppercase; letter-spacing:.06em; margin-bottom:.2rem; }
.index-widget__val  { font-size:1.5rem; font-weight:700; font-family:var(--font-mono); }
.index-widget__chg  { display:flex; align-items:center; gap:.3rem; font-family:var(--font-mono); font-size:.85rem; font-weight:600; }
.index-widget__chart { width:80px; height:40px; }

/* ================================================================
   MARKET HEATMAP
   ================================================================ */
.heatmap-grid { display:grid; gap:3px; }
.heatmap-cell {
  border-radius:var(--r-sm);
  padding:.625rem;
  font-size:.75rem;
  display:flex; flex-direction:column; justify-content:space-between;
  cursor:pointer; transition:filter var(--t-fast);
  min-height:60px;
}
.heatmap-cell:hover { filter:brightness(1.15); }
.heatmap-cell__name { font-weight:600; color:rgba(255,255,255,.9); }
.heatmap-cell__chg  { font-weight:700; font-family:var(--font-mono); }

/* ================================================================
   SCREENER TABLE
   ================================================================ */
.screener-rank {
  width:24px; height:24px; border-radius:50%;
  background:var(--brand-grad);
  display:flex; align-items:center; justify-content:center;
  font-size:.7rem; font-weight:700; color:#fff;
}
.vcp-stage {
  display:flex; gap:3px; align-items:center;
}
.vcp-stage-dot {
  width:8px; height:8px; border-radius:50%;
  background:var(--border-strong);
}
.vcp-stage-dot.active { background:var(--green); }

/* ================================================================
   CALCULATOR PANELS
   ================================================================ */
.calc-panel {
  background:var(--bg-card);
  border:1px solid var(--border-default);
  border-radius:var(--r-lg);
}
.calc-result {
  background:var(--bg-input);
  border:1px solid var(--border-subtle);
  border-radius:var(--r-md);
  padding:1.5rem;
  margin-top:1.25rem;
}
.calc-result-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:1rem; }
.calc-result-item { }
.calc-result-item__lbl { font-size:.75rem; color:var(--txt-muted); text-transform:uppercase; letter-spacing:.06em; margin-bottom:.3rem; }
.calc-result-item__val { font-size:1.2rem; font-weight:700; font-family:var(--font-mono); }

/* ================================================================
   TRADE JOURNAL
   ================================================================ */
.journal-summary {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:1rem;
  margin-bottom:1.5rem;
}
.journal-stat {
  background:var(--bg-card);
  border:1px solid var(--border-default);
  border-radius:var(--r-lg);
  padding:1.25rem;
}
.journal-stat__lbl { font-size:.72rem; color:var(--txt-muted); letter-spacing:.06em; text-transform:uppercase; margin-bottom:.4rem; }
.journal-stat__val { font-size:1.4rem; font-weight:700; font-family:var(--font-mono); }
.journal-stat__sub { font-size:.75rem; color:var(--txt-muted); margin-top:.2rem; }

/* Trade card (open positions) */
.trade-card {
  background:var(--bg-card);
  border:1px solid var(--border-default);
  border-radius:var(--r-lg);
  padding:1.25rem;
  transition:border-color var(--t-base);
}
.trade-card.profit { border-left:3px solid var(--green); }
.trade-card.loss   { border-left:3px solid var(--red); }

/* ================================================================
   EDUCATION — VCP EXPLAINER
   ================================================================ */
.vcp-stage-diagram {
  display:flex; align-items:flex-end; gap:4px;
  height:120px; padding:1rem;
}
.vcp-bar {
  flex:1; background:var(--brand-teal); border-radius:2px 2px 0 0;
  opacity:.8; transition:opacity var(--t-fast);
}
.vcp-bar:hover { opacity:1; }

/* Checklist */
.checklist { display:flex; flex-direction:column; gap:.625rem; }
.checklist-item {
  display:flex; align-items:center; gap:.875rem;
  padding:.875rem 1rem; border-radius:var(--r-md);
  background:var(--bg-input); border:1px solid var(--border-subtle);
  cursor:pointer; transition:all var(--t-fast);
}
.checklist-item:hover { border-color:var(--border-default); }
.checklist-item.checked { border-color:rgba(0,212,160,.25); background:var(--green-dim); }
.checklist-item__check {
  width:22px; height:22px; border-radius:50%;
  border:2px solid var(--border-strong);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; transition:all var(--t-fast); font-size:.7rem;
}
.checklist-item.checked .checklist-item__check {
  border-color:var(--green); background:var(--green); color:#000;
}
.checklist-item__text { font-size:.9rem; line-height:1.5; }
.checklist-item__text strong { display:block; font-weight:600; margin-bottom:.1rem; }
.checklist-item__text span { color:var(--txt-secondary); font-size:.82rem; }

/* ================================================================
   PORTFOLIO / ALLOCATION
   ================================================================ */
.allocation-ring { position:relative; display:flex; align-items:center; justify-content:center; }
.allocation-ring canvas { transform:rotate(-90deg); }
.allocation-ring__label {
  position:absolute; text-align:center;
}
.allocation-legend { display:flex; flex-direction:column; gap:.625rem; }
.allocation-legend-item { display:flex; align-items:center; gap:.75rem; }
.allocation-legend-dot { width:12px; height:12px; border-radius:50%; flex-shrink:0; }
.allocation-legend-name { font-size:.875rem; flex:1; }
.allocation-legend-pct  { font-size:.875rem; font-family:var(--font-mono); font-weight:600; }

/* ================================================================
   CHART CONTAINERS
   ================================================================ */
.chart-container { position:relative; }
.chart-container canvas { max-width:100%; }

/* ================================================================
   PAGE HEADER
   ================================================================ */
.page-header {
  padding:3rem 0 2rem;
  border-bottom:1px solid var(--border-subtle);
  background:linear-gradient(to bottom, rgba(27,46,94,.15), transparent);
}
.page-header__back {
  display:inline-flex; align-items:center; gap:.4rem;
  font-size:.8rem; color:var(--txt-muted); margin-bottom:1rem;
  transition:color var(--t-fast);
}
.page-header__back:hover { color:var(--txt-primary); }
.page-header__tools { display:flex; align-items:center; gap:.75rem; margin-top:1.25rem; }

/* ================================================================
   BLOG
   ================================================================ */
.blog-card {
  background:var(--bg-card);
  border:1px solid var(--border-default);
  border-radius:var(--r-lg);
  overflow:hidden;
  transition:all var(--t-base);
}
.blog-card:hover { border-color:var(--border-accent); transform:translateY(-3px); }
.blog-card__img { aspect-ratio:16/9; background:var(--brand-grad); position:relative; overflow:hidden; }
.blog-card__body { padding:1.5rem; }
.blog-card__cat { font-size:.72rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--brand-teal); margin-bottom:.625rem; }
.blog-card__title { font-size:1.1rem; font-weight:700; margin-bottom:.625rem; line-height:1.4; }
.blog-card__excerpt { font-size:.875rem; color:var(--txt-secondary); line-height:1.6; margin-bottom:1rem; }
.blog-card__meta { display:flex; align-items:center; gap:1rem; font-size:.78rem; color:var(--txt-muted); }

/* ================================================================
   ALERTS / NEWSLETTER
   ================================================================ */
.alert-card {
  background:var(--bg-card);
  border:1px solid var(--border-default);
  border-radius:var(--r-lg);
  padding:1.25rem;
  display:flex; align-items:center; gap:1rem;
}
.alert-dot {
  width:10px; height:10px; border-radius:50%; flex-shrink:0;
  animation:alertPulse 2s ease infinite;
}
.alert-dot--green { background:var(--green); }
.alert-dot--orange { background:var(--orange); }
@keyframes alertPulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:.6; transform:scale(1.3); }
}

/* Newsletter CTA */
.newsletter-form {
  display:flex; gap:.75rem; max-width:480px;
}
.newsletter-form .input { flex:1; }

/* ================================================================
   TREND TEMPLATE SCORE METER
   ================================================================ */
.score-meter {
  display:flex; align-items:center; gap:.5rem;
  background:var(--bg-input); border-radius:var(--r-f);
  padding:.25rem .5rem;
}
.score-meter__bar {
  flex:1; height:6px; background:var(--border-default);
  border-radius:var(--r-f); overflow:hidden;
}
.score-meter__fill { height:100%; border-radius:var(--r-f); transition:width .6s ease; }
.score-meter__val { font-size:.8rem; font-weight:700; font-family:var(--font-mono); min-width:28px; text-align:right; }

/* ================================================================
   DRAWDOWN MONITOR
   ================================================================ */
.drawdown-meter {
  position:relative; height:16px;
  background:var(--bg-input); border-radius:var(--r-f); overflow:hidden;
}
.drawdown-meter__fill {
  height:100%; border-radius:var(--r-f);
  background:linear-gradient(to right, var(--green), var(--gold), var(--red));
  background-size:200% 100%;
  transition:background-position .6s ease;
}
.risk-zone {
  display:grid; grid-template-columns:repeat(3,1fr); gap:.5rem; margin-top:.75rem;
}
.risk-zone-item {
  border-radius:var(--r-sm); padding:.5rem .75rem; font-size:.75rem; font-weight:600; text-align:center;
}

/* ================================================================
   TOAST NOTIFICATIONS
   ================================================================ */
.toast-container {
  position:fixed; bottom:1.5rem; right:1.5rem;
  display:flex; flex-direction:column; gap:.5rem;
  z-index:3000;
}
.toast {
  background:var(--bg-elevated);
  border:1px solid var(--border-default);
  border-radius:var(--r-lg);
  padding:1rem 1.25rem;
  box-shadow:var(--sh-lg);
  display:flex; align-items:center; gap:.75rem;
  font-size:.875rem; min-width:280px;
  animation:toastIn .3s ease;
}
.toast.success { border-left:3px solid var(--green); }
.toast.error   { border-left:3px solid var(--red); }
.toast.info    { border-left:3px solid var(--blue); }
@keyframes toastIn { from{opacity:0;transform:translateX(20px)} to{opacity:1;transform:translateX(0)} }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background:var(--bg-surface);
  border-top:1px solid var(--border-subtle);
  padding:3rem 0 1.5rem;
}
.footer__grid {
  display:grid; grid-template-columns:2fr 1fr 1fr 1fr;
  gap:3rem; margin-bottom:3rem;
}
.footer__brand img { height:32px; margin-bottom:1rem; }
.footer__brand p { font-size:.875rem; color:var(--txt-secondary); line-height:1.7; max-width:280px; }
.footer__col h5 { font-size:.8rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--txt-muted); margin-bottom:1rem; }
.footer__col a {
  display:block; font-size:.875rem; color:var(--txt-secondary);
  padding:.3rem 0; transition:color var(--t-fast);
}
.footer__col a:hover { color:var(--brand-teal); }
.footer__bottom {
  padding-top:1.5rem;
  border-top:1px solid var(--border-subtle);
  display:flex; align-items:center; justify-content:space-between;
  font-size:.8rem; color:var(--txt-muted);
  flex-wrap:wrap; gap:1rem;
}
.footer__india {
  display:inline-flex; align-items:center; gap:.5rem;
}
.india-flag {
  display:flex; width:20px; height:14px; border-radius:2px; overflow:hidden; flex-direction:column;
}
.india-flag span { flex:1; }
.india-flag .f-orange { background:var(--india-orange); }
.india-flag .f-white  { background:#fff; }
.india-flag .f-green  { background:var(--india-green); }

/* ================================================================
   LOADING STATES
   ================================================================ */
.skeleton {
  background:linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-h) 50%, var(--bg-card) 75%);
  background-size:200% 100%;
  animation:shimmer 1.5s infinite;
  border-radius:var(--r-sm);
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.spinner {
  width:24px; height:24px; border-radius:50%;
  border:2px solid var(--border-default);
  border-top-color:var(--brand-teal);
  animation:spin .7s linear infinite;
}
@keyframes spin { to{transform:rotate(360deg)} }

/* ================================================================
   MISC UTILITIES
   ================================================================ */
.divider { height:1px; background:var(--border-subtle); margin:1.5rem 0; }
.pill { display:inline-block; padding:.2rem .7rem; border-radius:var(--r-f); font-size:.78rem; font-weight:600; }
.dot { width:8px; height:8px; border-radius:50%; display:inline-block; }
.dot--green { background:var(--green); }
.dot--red   { background:var(--red); }
.dot--gold  { background:var(--gold); }
.truncate { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hidden { display:none !important; }
.visible { display:block !important; }
.mt-xs { margin-top:.25rem; }
.mt-sm { margin-top:.5rem; }
.mt-md { margin-top:1rem; }
.mt-lg { margin-top:1.5rem; }
.mt-xl { margin-top:2rem; }
.mb-sm { margin-bottom:.5rem; }
.mb-md { margin-bottom:1rem; }
.mb-lg { margin-bottom:1.5rem; }
.mb-xl { margin-bottom:2rem; }
.p-md { padding:1rem; }
.p-lg { padding:1.5rem; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width:1024px) {
  .hero__grid   { grid-template-columns:1fr; gap:2.5rem; }
  .hero__visual { display:none; }
  .grid-4       { grid-template-columns:repeat(2,1fr); }
  .grid-6       { grid-template-columns:repeat(3,1fr); }
  .footer__grid { grid-template-columns:1fr 1fr; gap:2rem; }
}
@media (max-width:768px) {
  .navbar__nav,
  .navbar__actions .btn--outline { display:none; }
  .navbar__hamburger { display:block; }
  .grid-3, .grid-2 { grid-template-columns:1fr; }
  .grid-4, .grid-6 { grid-template-columns:repeat(2,1fr); }
  .section { padding:2.5rem 0; }
  .hero { padding:3rem 0; }
  .footer__grid { grid-template-columns:1fr; }
  .newsletter-form { flex-direction:column; }
  .journal-summary { grid-template-columns:repeat(2,1fr); }
  .footer__bottom { flex-direction:column; text-align:center; }
}
@media (max-width:480px) {
  .grid-4, .grid-6 { grid-template-columns:1fr; }
  .hero__stats { grid-template-columns:1fr; }
  .calc-result-grid { grid-template-columns:1fr 1fr; }
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeIn    { from{opacity:0} to{opacity:1} }
@keyframes slideUp   { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
@keyframes slideDown { from{opacity:0;transform:translateY(-16px)} to{opacity:1;transform:translateY(0)} }
@keyframes pulse     { 0%,100%{opacity:1} 50%{opacity:.5} }
@keyframes blink     { 0%,100%{opacity:1} 50%{opacity:0} }
.animate-fade    { animation:fadeIn .4s ease; }
.animate-slide   { animation:slideUp .4s ease; }
.animate-delay-1 { animation-delay:.1s; animation-fill-mode:both; }
.animate-delay-2 { animation-delay:.2s; animation-fill-mode:both; }
.animate-delay-3 { animation-delay:.3s; animation-fill-mode:both; }
