/* ==========================================================================
   AGARMATH — Design System
   Inspired by the Agarmath brand: royal blue + saffron gold + parchment cream,
   Om motif, four-pillar heritage, bilingual Devanagari + English.
   Original theme — not a copy of the source artwork.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   1. DESIGN TOKENS
---------------------------------------------------------------------------- */
:root {
  /* Brand core */
  --royal:        #26277a;   /* logo circle */
  --royal-deep:   #191a5c;
  --royal-soft:   #3a3ca3;
  --gold:         #e3a012;   /* saffron gold */
  --gold-deep:    #b9790a;
  --gold-soft:    #f4c04e;
  --marigold:     #f6a723;
  --saffron:      #f0851e;
  --sandstone:    #cba973;
  --sand-soft:    #e6d6b4;

  /* VIBGYOR accent ramp (dome art) */
  --v-violet: #7b5ea7;
  --v-indigo: #3f4aa0;
  --v-blue:   #2f7fc1;
  --v-green:  #3fa06a;
  --v-yellow: #e7b93f;
  --v-orange: #ec8a3c;
  --v-red:    #d9564f;

  /* Semantic */
  --up:      #2f9e63;
  --up-soft: #e2f4ea;
  --down:    #d9534f;
  --down-soft:#fbe7e6;
  --warn:    #e0a021;

  /* Neutrals (light) */
  --parchment: #f7efdd;   /* page bg */
  --parchment-2:#fdf8ec;
  --surface:   #fffdf7;   /* cards */
  --surface-2: #f3ead4;
  --ink:       #262019;
  --ink-2:     #5b5145;
  --ink-3:     #8a7d6b;
  --line:      #e3d6b8;
  --line-2:    #d3c19b;

  /* Mapped roles (light default) */
  --bg:        var(--parchment);
  --bg-pattern-color: rgba(38,39,122,.045);
  --card:      var(--surface);
  --card-2:    var(--surface-2);
  --text:      var(--ink);
  --text-2:    var(--ink-2);
  --text-3:    var(--ink-3);
  --border:    var(--line);
  --border-2:  var(--line-2);
  --brand:     var(--royal);
  --brand-ink: #ffffff;
  --accent:    var(--gold);

  /* Typography */
  --font-display: "Marcellus", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-deva:    "Tiro Devanagari Hindi", "Noto Sans Devanagari", var(--font-display);

  --fs-hero:  clamp(2.4rem, 6vw, 4.6rem);
  --fs-h1:    clamp(1.9rem, 4vw, 2.9rem);
  --fs-h2:    clamp(1.45rem, 3vw, 2.1rem);
  --fs-h3:    1.25rem;
  --fs-lead:  clamp(1.02rem, 1.6vw, 1.2rem);
  --fs-body:  1rem;
  --fs-sm:    .875rem;
  --fs-xs:    .75rem;

  /* Space scale */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem;

  /* Radii */
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(31,27,20,.06), 0 1px 3px rgba(31,27,20,.05);
  --sh-2: 0 4px 14px rgba(31,27,20,.08), 0 2px 6px rgba(31,27,20,.05);
  --sh-3: 0 14px 40px rgba(31,27,20,.13), 0 6px 14px rgba(31,27,20,.07);
  --sh-gold: 0 8px 30px rgba(227,160,18,.28);
  --sh-royal:0 10px 34px rgba(38,39,122,.30);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur: .28s;

  --container: 1180px;
  --header-h: 68px;
}

/* Dark mode */
:root[data-theme="dark"] {
  --bg:        #12132e;
  --bg-pattern-color: rgba(244,192,78,.05);
  --card:      #1b1c3f;
  --card-2:    #232457;
  --text:      #f3ecd9;
  --text-2:    #c3bfd6;
  --text-3:    #8f8bb0;
  --border:    #2f3068;
  --border-2:  #3c3d7d;
  --brand:     var(--gold);
  --brand-ink: #191a5c;
  --accent:    var(--gold-soft);
  --surface-2: #232457;
  --up-soft:   rgba(47,158,99,.16);
  --down-soft: rgba(217,83,79,.18);
  --sh-1: 0 1px 2px rgba(0,0,0,.4);
  --sh-2: 0 6px 18px rgba(0,0,0,.4);
  --sh-3: 0 18px 46px rgba(0,0,0,.55);
  --sh-royal: 0 10px 34px rgba(0,0,0,.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#12132e; --bg-pattern-color:rgba(244,192,78,.05);
    --card:#1b1c3f; --card-2:#232457; --text:#f3ecd9; --text-2:#c3bfd6;
    --text-3:#8f8bb0; --border:#2f3068; --border-2:#3c3d7d;
    --brand:var(--gold); --brand-ink:#191a5c; --accent:var(--gold-soft);
    --surface-2:#232457; --up-soft:rgba(47,158,99,.16); --down-soft:rgba(217,83,79,.18);
    --sh-1:0 1px 2px rgba(0,0,0,.4); --sh-2:0 6px 18px rgba(0,0,0,.4);
    --sh-3:0 18px 46px rgba(0,0,0,.55); --sh-royal:0 10px 34px rgba(0,0,0,.5);
  }
}

/* ----------------------------------------------------------------------------
   2. BASE
---------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(227,160,18,.06), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(38,39,122,.06), transparent 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Ctext x='60' y='74' font-size='54' text-anchor='middle' fill='%2326277a' fill-opacity='0.045' font-family='serif'%3E%E0%A5%90%3C/text%3E%3C/svg%3E");
  background-attachment: fixed, fixed, fixed;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
  min-height: 100vh;
}
:root[data-theme="dark"] body {
  background-image:
    radial-gradient(circle at 12% 18%, rgba(244,192,78,.05), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(120,122,220,.10), transparent 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Ctext x='60' y='74' font-size='54' text-anchor='middle' fill='%23f4c04e' fill-opacity='0.05' font-family='serif'%3E%E0%A5%90%3C/text%3E%3C/svg%3E");
}

h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; font-weight: 500; letter-spacing: .2px; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1rem; color: var(--text-2); }
a { color: var(--brand); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--gold-deep); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--gold-soft); color: var(--royal-deep); }

/* Devanagari display */
.deva { font-family: var(--font-deva); }

/* ----------------------------------------------------------------------------
   3. LAYOUT
---------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.container-narrow { max-width: 820px; }
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section-sm { padding-block: clamp(2rem, 5vw, 3.5rem); }
.grid { display: grid; gap: var(--sp-5); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.stack { display: flex; flex-direction: column; gap: var(--sp-4); }
.row { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
@media (max-width: 900px){ .cols-4{grid-template-columns:repeat(2,1fr)} .cols-3{grid-template-columns:repeat(2,1fr)} }
@media (max-width: 620px){ .cols-4,.cols-3,.cols-2{grid-template-columns:1fr} }

/* ----------------------------------------------------------------------------
   4. DECORATIVE — corner frame, dividers, eyebrow, pattern
---------------------------------------------------------------------------- */
.frame { position: relative; }
.frame::before, .frame::after {
  content: ""; position: absolute; width: 26px; height: 26px; pointer-events: none;
  border-color: var(--gold-deep); border-style: solid; opacity: .7;
}
.frame::before { top: 10px; left: 10px; border-width: 2px 0 0 2px; border-top-left-radius: 6px; }
.frame::after  { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; border-bottom-right-radius: 6px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-xs);
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
:root[data-theme="dark"] .eyebrow { color: var(--gold-soft); }

.divider-orn { display: flex; align-items: center; justify-content: center; gap: .8rem; color: var(--gold-deep); margin: var(--sp-5) 0; }
.divider-orn::before, .divider-orn::after { content: ""; height: 1px; width: min(120px, 22vw); background: linear-gradient(90deg, transparent, var(--border-2)); }
.divider-orn::after { transform: scaleX(-1); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto var(--sp-7); }
.section-head p { font-size: var(--fs-lead); }

/* ----------------------------------------------------------------------------
   5. BUTTONS
---------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand); --btn-fg: var(--brand-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-sm);
  padding: .72rem 1.3rem; border-radius: var(--r-pill); border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
  text-decoration: none; line-height: 1; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: .95rem 1.8rem; font-size: var(--fs-body); }
.btn-sm { padding: .5rem .9rem; font-size: var(--fs-xs); }
.btn-block { width: 100%; }

.btn-primary { background: linear-gradient(135deg, var(--royal-soft), var(--royal)); color: #fff; box-shadow: var(--sh-royal); }
.btn-primary:hover { box-shadow: 0 14px 40px rgba(38,39,122,.42); }
.btn-gold { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: #3a2a02; box-shadow: var(--sh-gold); }
.btn-gold:hover { box-shadow: 0 14px 40px rgba(227,160,18,.45); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--card-2); border-color: var(--gold); color: var(--text); }
.btn-outline-gold { background: transparent; color: var(--gold-deep); border-color: var(--gold); }
:root[data-theme="dark"] .btn-outline-gold { color: var(--gold-soft); }
.btn-outline-gold:hover { background: var(--gold); color:#3a2a02; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-icon { padding: .6rem; width: 42px; height: 42px; border-radius: 50%; }

/* ----------------------------------------------------------------------------
   6. CARDS
---------------------------------------------------------------------------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--sp-5); box-shadow: var(--sh-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: var(--gold-soft); }
.card-pad-lg { padding: var(--sp-6); }
.card-flush { padding: 0; overflow: hidden; }

.feature-card { text-align: left; position: relative; overflow: hidden; }
.feature-card .fc-num { position: absolute; top: 10px; right: 16px; font-family: var(--font-display); font-size: 3.2rem; color: var(--gold); opacity: .12; line-height: 1; }
.feature-card .fc-icon {
  width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: var(--sp-3);
  border-radius: var(--r-md); background: linear-gradient(135deg, rgba(227,160,18,.16), rgba(38,39,122,.12));
  border: 1px solid var(--border);
}
.feature-card h3 { margin-bottom: .35rem; }
.feature-card p { font-size: var(--fs-sm); margin: 0; }

/* Pillar card (Taraaju / Kalam / Bahi / Kosh) */
.pillar {
  text-align: center; padding: var(--sp-6) var(--sp-4);
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border); border-radius: var(--r-lg); position: relative;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease);
}
.pillar:hover { transform: translateY(-8px); box-shadow: var(--sh-3); }
.pillar .p-emoji { font-size: 2.6rem; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0,0,0,.15)); }
.pillar .p-name { font-family: var(--font-display); font-size: 1.35rem; margin: .6rem 0 .1rem; color: var(--brand); }
:root[data-theme="dark"] .pillar .p-name { color: var(--gold-soft); }
.pillar .p-sub { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.pillar .p-desc { font-size: var(--fs-sm); color: var(--text-2); margin: .6rem 0 0; }
.pillar::after { content: ""; position: absolute; inset: auto 26% 0; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0; transition: opacity var(--dur) var(--ease); }
.pillar:hover::after { opacity: 1; }

/* ----------------------------------------------------------------------------
   7. BADGES / CHIPS / PILLS
---------------------------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--fs-xs); font-weight: 600; padding: .28rem .7rem; border-radius: var(--r-pill); background: var(--card-2); color: var(--text-2); border: 1px solid var(--border); }
.badge-gold { background: rgba(227,160,18,.14); color: var(--gold-deep); border-color: rgba(227,160,18,.35); }
:root[data-theme="dark"] .badge-gold { color: var(--gold-soft); }
.badge-royal { background: rgba(38,39,122,.12); color: var(--royal); border-color: rgba(38,39,122,.28); }
:root[data-theme="dark"] .badge-royal { background: rgba(120,122,220,.18); color: #b9baf0; border-color: rgba(120,122,220,.4); }
.badge-up { background: var(--up-soft); color: var(--up); border-color: transparent; }
.badge-down { background: var(--down-soft); color: var(--down); border-color: transparent; }
.badge-live { background: rgba(47,158,99,.15); color: var(--up); border-color: transparent; }
.badge-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{opacity:1; transform:scale(1)} 50%{opacity:.4; transform:scale(.8)} }

.chip { display:inline-flex; align-items:center; gap:.4rem; padding:.45rem .85rem; border-radius:var(--r-pill); background:var(--card-2); border:1px solid var(--border); font-size:var(--fs-sm); cursor:pointer; transition: all var(--dur) var(--ease); user-select:none; }
.chip:hover { border-color: var(--gold); }
.chip.active { background: var(--royal); color:#fff; border-color: var(--royal); }
:root[data-theme="dark"] .chip.active { background: var(--gold); color:#191a5c; border-color: var(--gold); }

/* ----------------------------------------------------------------------------
   8. FORMS
---------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: var(--sp-4); }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.field .hint { font-size: var(--fs-xs); color: var(--text-3); }
.input, .textarea, .select {
  width: 100%; font-family: var(--font-body); font-size: var(--fs-body); color: var(--text);
  background: var(--card); border: 1.5px solid var(--border-2); border-radius: var(--r-md);
  padding: .72rem .9rem; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(227,160,18,.16); }
.textarea { resize: vertical; min-height: 96px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a7d6b' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem; }
.input-group { display: flex; gap: .5rem; }
.input-group .input { flex: 1; }

/* toggle switch */
.switch { position: relative; display: inline-flex; align-items:center; gap:.6rem; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 44px; height: 26px; border-radius: var(--r-pill); background: var(--border-2); position: relative; transition: background var(--dur) var(--ease); flex: none; }
.switch .track::after { content:""; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow: var(--sh-1); transition: transform var(--dur) var(--ease); }
.switch input:checked + .track { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch .lbl { font-size: var(--fs-sm); font-weight: 500; }

/* ----------------------------------------------------------------------------
   9. TABLE
---------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--sh-1); }
table.tbl { width: 100%; border-collapse: collapse; min-width: 560px; }
table.tbl thead th { text-align: left; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); font-weight: 700; padding: .9rem 1rem; background: var(--card-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
table.tbl tbody td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); color: var(--text); vertical-align: middle; }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl tbody tr { transition: background var(--dur) var(--ease); }
table.tbl tbody tr:hover { background: var(--card-2); }
.rank-badge { display:inline-grid; place-items:center; width:30px; height:30px; border-radius:50%; font-weight:700; font-size:var(--fs-sm); background:var(--card-2); color:var(--text-2); border:1px solid var(--border); }
.rank-1 { background: linear-gradient(135deg,#f6d365,#e3a012); color:#4a3400; border-color:transparent; }
.rank-2 { background: linear-gradient(135deg,#e2e2e6,#b9bcc6); color:#333; border-color:transparent; }
.rank-3 { background: linear-gradient(135deg,#e8b483,#c9884f); color:#3a2500; border-color:transparent; }

/* ----------------------------------------------------------------------------
   10. HEADER / NAV
---------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  backdrop-filter: saturate(1.4) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: var(--sp-5); }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; color: var(--text); }
.brand .brand-mark { width: 40px; height: 40px; flex: none; }
.brand .brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand .brand-name .en { letter-spacing: .5px; }
.brand .brand-name .sub { font-family: var(--font-body); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); margin-top: 3px; }
:root[data-theme="dark"] .brand .brand-name .sub { color: var(--gold-soft); }
.nav { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }
.nav a { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); padding: .5rem .8rem; border-radius: var(--r-pill); transition: all var(--dur) var(--ease); }
.nav a:hover { color: var(--text); background: var(--card-2); }
.nav a.active { color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); }
:root[data-theme="dark"] .nav a.active { color: var(--gold-soft); }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; transition: all var(--dur) var(--ease); font-size: 1.1rem; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold-deep); transform: rotate(-8deg); }
.nav-toggle { display: none; }
@media (max-width: 860px){
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--border); padding: var(--sp-3); gap: .2rem; transform: translateY(-120%); transition: transform var(--dur) var(--ease); box-shadow: var(--sh-2); }
  .nav.open { transform: translateY(0); }
  .nav a { padding: .8rem 1rem; }
  .nav-toggle { display: grid; margin-left: auto; }
}

/* ----------------------------------------------------------------------------
   11. HERO
---------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 9vw, 7rem); }
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 860px; margin: 0 auto; }
.hero h1 { font-size: var(--fs-hero); margin-bottom: .3rem; }
.hero .lead { font-size: var(--fs-lead); color: var(--text-2); max-width: 620px; margin: 1rem auto 1.8rem; }
.hero .hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero-glow { position: absolute; z-index: 1; border-radius: 50%; filter: blur(70px); opacity: .5; }
.hero-glow.g1 { width: 420px; height: 420px; background: radial-gradient(circle, var(--gold), transparent 70%); top: -120px; left: -80px; }
.hero-glow.g2 { width: 460px; height: 460px; background: radial-gradient(circle, var(--royal-soft), transparent 70%); bottom: -160px; right: -100px; }
.hero .om-ghost { position:absolute; z-index:0; font-family: var(--font-deva); font-size: 30rem; color: var(--gold); opacity: .04; top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events:none; user-select:none; }

/* ----------------------------------------------------------------------------
   12. STAT / KPI
---------------------------------------------------------------------------- */
.stat { text-align: center; padding: var(--sp-4); }
.stat .k { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--brand); line-height: 1; }
:root[data-theme="dark"] .stat .k { color: var(--gold-soft); }
.stat .l { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-top: .4rem; }

.kpi { display: flex; align-items: center; gap: var(--sp-4); }
.kpi .kpi-ic { width: 48px; height: 48px; border-radius: var(--r-md); display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.kpi .kpi-v { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; }
.kpi .kpi-l { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }

/* ----------------------------------------------------------------------------
   13. PROGRESS / METER
---------------------------------------------------------------------------- */
.meter { height: 10px; border-radius: var(--r-pill); background: var(--card-2); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--gold), var(--saffron)); transition: width .6s var(--ease-out); }
.meter.up > span { background: linear-gradient(90deg, var(--up), #57c98a); }
.dual-meter { display: flex; height: 10px; border-radius: var(--r-pill); overflow: hidden; background: var(--card-2); }
.dual-meter .up-bar { background: linear-gradient(90deg,#57c98a,var(--up)); transition: width .6s var(--ease-out); }
.dual-meter .down-bar { background: linear-gradient(90deg,var(--down),#e88a86); transition: width .6s var(--ease-out); }

/* ----------------------------------------------------------------------------
   14. VOTE CARD (survey activity)
---------------------------------------------------------------------------- */
.vote-card { position: relative; overflow: hidden; }
.vote-card .vc-head { display: flex; align-items: flex-start; gap: var(--sp-3); }
.vote-card .vc-emoji { width: 52px; height: 52px; border-radius: var(--r-md); display: grid; place-items: center; font-size: 1.7rem; background: linear-gradient(135deg, rgba(227,160,18,.15), rgba(38,39,122,.10)); border: 1px solid var(--border); flex: none; }
.vote-card h3 { margin: 0; font-size: 1.15rem; }
.vote-card .vc-desc { font-size: var(--fs-sm); color: var(--text-2); margin: .2rem 0 0; }
.vote-actions { display: flex; align-items: center; gap: .6rem; margin-top: var(--sp-4); flex-wrap: wrap; }
.vote-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border-radius: var(--r-pill); border: 1.5px solid var(--border-2); background: var(--card); color: var(--text-2); font-weight: 600; font-size: var(--fs-sm); cursor: pointer; transition: all var(--dur) var(--ease); }
.vote-btn:hover { transform: translateY(-2px); }
.vote-btn.up:hover, .vote-btn.up.on { background: var(--up-soft); color: var(--up); border-color: var(--up); }
.vote-btn.down:hover, .vote-btn.down.on { background: var(--down-soft); color: var(--down); border-color: var(--down); }
.vote-btn.on { box-shadow: var(--sh-1); }
.vote-btn .cnt { font-variant-numeric: tabular-nums; }
.net-pill { margin-left: auto; font-weight: 700; font-size: var(--fs-sm); padding: .35rem .75rem; border-radius: var(--r-pill); background: var(--card-2); color: var(--text-2); font-variant-numeric: tabular-nums; }
.net-pill.pos { background: var(--up-soft); color: var(--up); }
.net-pill.neg { background: var(--down-soft); color: var(--down); }

/* comments */
.comment-list { margin-top: var(--sp-4); display: flex; flex-direction: column; gap: .6rem; }
.comment { background: var(--card-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: .6rem .8rem; }
.comment .c-top { display: flex; align-items: center; gap: .5rem; margin-bottom: .2rem; }
.comment .c-av { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg,var(--royal-soft),var(--gold)); color:#fff; display:grid; place-items:center; font-size:.7rem; font-weight:700; }
.comment .c-name { font-weight: 600; font-size: var(--fs-sm); }
.comment .c-time { font-size: var(--fs-xs); color: var(--text-3); margin-left: auto; }
.comment .c-text { font-size: var(--fs-sm); color: var(--text-2); margin: 0; }

/* ----------------------------------------------------------------------------
   15. MODAL / TOAST
---------------------------------------------------------------------------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(20,16,10,.55); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease); }
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal { width: min(520px, 100%); background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--sh-3); padding: var(--sp-6); transform: translateY(14px) scale(.98); transition: transform var(--dur) var(--ease-out); max-height: 90vh; overflow: auto; }
.modal-backdrop.open .modal { transform: none; }
.modal h3 { margin-top: 0; }
.modal-close { position: absolute; }

.toast-wrap { position: fixed; z-index: 200; bottom: 1.2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: .5rem; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; background: var(--royal-deep); color: #fff; padding: .8rem 1.2rem; border-radius: var(--r-pill); box-shadow: var(--sh-3); font-size: var(--fs-sm); font-weight: 500; display: flex; align-items: center; gap: .6rem; animation: toastIn .4s var(--ease-out); border: 1px solid rgba(255,255,255,.12); }
.toast.gold { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #2a1e02; }
.toast.err { background: #a4342f; }
@keyframes toastIn { from{ opacity:0; transform: translateY(16px);} to{opacity:1; transform:none;} }

/* ----------------------------------------------------------------------------
   16. FOOTER
---------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: color-mix(in srgb, var(--royal) 6%, var(--bg)); margin-top: var(--sp-8); }
:root[data-theme="dark"] .site-footer { background: color-mix(in srgb, #000 30%, var(--bg)); }
.site-footer .container { padding-block: var(--sp-7); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--sp-6); }
.site-footer h4 { font-family: var(--font-body); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: var(--sp-3); }
:root[data-theme="dark"] .site-footer h4 { color: var(--gold-soft); }
.site-footer a { display: block; color: var(--text-2); font-size: var(--fs-sm); padding: .2rem 0; }
.site-footer a:hover { color: var(--gold-deep); }
.footer-bottom { border-top: 1px solid var(--border); text-align: center; font-size: var(--fs-xs); color: var(--text-3); padding: var(--sp-4); }
@media (max-width: 720px){ .footer-grid { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------------------
   17. UTIL / MOTION
---------------------------------------------------------------------------- */
.text-gold { color: var(--gold-deep); } :root[data-theme="dark"] .text-gold{color:var(--gold-soft);}
.text-royal { color: var(--royal); } :root[data-theme="dark"] .text-royal{color:#b9baf0;}
.text-2 { color: var(--text-2); } .text-3{color:var(--text-3);}
.small { font-size: var(--fs-sm); } .xs{font-size:var(--fs-xs);}
.muted { color: var(--text-3); }
.hidden { display: none !important; }
.mono { font-variant-numeric: tabular-nums; }
.gap-2{gap:var(--sp-2)}.gap-3{gap:var(--sp-3)}.gap-4{gap:var(--sp-4)}
.w-full{width:100%}
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *{ animation-duration:.001ms !important; transition-duration:.001ms !important; scroll-behavior:auto !important;} .reveal{opacity:1;transform:none;} }

/* number bump animation */
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.25)} 100%{transform:scale(1)} }
.bump { animation: bump .35s var(--ease); display:inline-block; }

/* ----------------------------------------------------------------------------
   18. STARS + AUTH + RATE-ITEM (simple rating flow, elderly-friendly)
---------------------------------------------------------------------------- */
.stars { display: inline-flex; gap: .15rem; }
.star {
  background: none; border: none; cursor: pointer; padding: .1rem .12rem; line-height: 1;
  font-size: 2.15rem; color: var(--border-2);
  transition: transform .12s var(--ease), color .12s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.star:hover { transform: scale(1.18); }
.star.on { color: var(--gold); text-shadow: 0 2px 8px rgba(227,160,18,.35); }
.stars.hovering .star.pre { color: var(--gold-soft); }
.star:focus-visible { outline: 2px solid var(--gold); border-radius: 6px; }
/* readonly small stars for results */
.stars-sm { display:inline-flex; font-size:1rem; color:var(--border-2); letter-spacing:1px; }
.stars-sm .fill { color: var(--gold); }

.user-chip { display:inline-flex; align-items:center; gap:.45rem; padding:.25rem .3rem .25rem .3rem; border-radius:var(--r-pill); background:var(--card-2); border:1px solid var(--border); }
.user-chip .c-av { width:28px; height:28px; border-radius:50%; background:linear-gradient(135deg,var(--royal-soft),var(--gold)); color:#fff; display:grid; place-items:center; font-size:.72rem; font-weight:700; }
.user-chip .uc-name { font-size:var(--fs-sm); font-weight:600; }
.user-chip .uc-out { background:none; border:none; cursor:pointer; color:var(--text-3); font-size:1rem; padding:.1rem .35rem; border-radius:50%; }
.user-chip .uc-out:hover { color:var(--down); background:var(--down-soft); }

/* rate item card — large & clear */
.rate-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--sp-5); box-shadow: var(--sh-1);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.rate-item.rated { border-color: var(--gold-soft); box-shadow: 0 0 0 1px var(--gold-soft), var(--sh-1); }
.ri-head { display:flex; align-items:flex-start; gap: var(--sp-4); }
.ri-emoji { width: 60px; height: 60px; border-radius: var(--r-md); display: grid; place-items: center; font-size: 2rem; flex:none;
  background: linear-gradient(135deg, rgba(227,160,18,.16), rgba(38,39,122,.10)); border: 1px solid var(--border); }
.ri-title { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.2; margin: 0; }
.ri-title-hi { font-family: var(--font-deva); font-size: 1.05rem; color: var(--brand); margin: .1rem 0 0; }
:root[data-theme="dark"] .ri-title-hi { color: var(--gold-soft); }
.ri-desc { font-size: var(--fs-sm); color: var(--text-2); margin: .4rem 0 0; }
.ri-rate-row { display:flex; align-items:center; gap:var(--sp-4); flex-wrap:wrap; margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px dashed var(--border); }
.ri-rate-label { font-size: var(--fs-sm); font-weight:600; color: var(--text-2); }
.ri-your { font-size: var(--fs-xs); color: var(--up); font-weight:700; margin-left:auto; opacity:0; transition:opacity var(--dur) var(--ease); }
.ri-your.show { opacity:1; }
.ri-avg { display:inline-flex; align-items:center; gap:.4rem; font-size:var(--fs-sm); color:var(--text-3); }
.ri-avg strong { color: var(--gold-deep); font-size:1rem; } :root[data-theme="dark"] .ri-avg strong{color:var(--gold-soft);}

.section-band { display:flex; align-items:center; gap:.7rem; margin: var(--sp-6) 0 var(--sp-4); }
.section-band h2 { margin:0; font-size:1.5rem; }
.section-band .count { font-size:var(--fs-xs); color:var(--text-3); }
.section-band::after { content:""; flex:1; height:1px; background:linear-gradient(90deg,var(--border-2),transparent); }

/* sticky progress bar for rate page */
.rate-progress { position: sticky; top: var(--header-h); z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); border-bottom:1px solid var(--border); padding:.7rem 0; }
.rate-progress .container { display:flex; align-items:center; gap:1rem; }
.rate-progress .rp-text { font-size:var(--fs-sm); font-weight:600; white-space:nowrap; }
.rate-progress .meter { flex:1; }

/* auth card */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display:grid; place-items:center; padding: 2rem 1rem; }
.auth-card { width:min(460px,100%); }
.big-input { font-size:1.1rem; padding:.9rem 1rem; }
.step-list { list-style:none; margin:0; padding:0; counter-reset:s; }
.step-list li { display:flex; gap:1rem; align-items:flex-start; padding:.7rem 0; }
.step-list li .n { counter-increment:s; flex:none; width:34px; height:34px; border-radius:50%; display:grid; place-items:center; font-weight:700; background:var(--royal); color:#fff; }
.step-list li .n::before { content:counter(s); }
:root[data-theme="dark"] .step-list li .n { background:var(--gold); color:#191a5c; }

/* svg chart helpers */
.chart-legend { display:flex; flex-wrap:wrap; gap:.6rem 1.1rem; margin-top:var(--sp-4); }
.chart-legend .lg { display:flex; align-items:center; gap:.4rem; font-size:var(--fs-sm); color:var(--text-2); }
.chart-legend .sw { width:12px; height:12px; border-radius:3px; }
.bar-row { display:grid; grid-template-columns: 130px 1fr 52px; align-items:center; gap:.8rem; margin-bottom:.7rem; }
.bar-row .bl { font-size:var(--fs-sm); font-weight:600; text-align:right; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bar-track { height:22px; background:var(--card-2); border-radius:var(--r-pill); overflow:hidden; }
.bar-fill { height:100%; border-radius:var(--r-pill); transition: width .8s var(--ease-out); }
.bar-row .bv { font-size:var(--fs-sm); font-weight:700; text-align:left; font-variant-numeric:tabular-nums; }

/* ---- language toggle (हिं / EN) ---- */
[data-lang="hi"] .en-only{display:none !important}
[data-lang="en"] .hi-only{display:none !important}
.lang-switch{display:inline-flex;border:1px solid var(--border-2);border-radius:999px;overflow:hidden}
.lang-switch button{border:0;background:transparent;padding:.35rem .8rem;cursor:pointer;font-weight:600;font-size:.85rem;color:var(--text-2);font-family:inherit}
.lang-switch button.on{background:var(--royal);color:#fff}
