/* 01-base.css */
/* Tokens, reset, type, buttons. "Night & teal": deep navy ink, teal for money received, saffron for offers. No purple. */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --text: #0b1630;
  --muted: #4c5a75;
  --line: #dde3ee;
  --brand: #0a8a6e;
  --brand-2: #14c8a0;
  --brand-soft: #e2f6f0;
  --accent: #ff9f1c;
  --accent-2: #ff6b35;
  --accent-soft: #fff3df;
  --accent-text: #8f4600;
  --danger: #c62f3b;
  --danger-soft: #fdeff0;
  --warn-bg: #fff6e0;
  --warn-text: #7a4300;
  --warn-line: #ffd98a;
  --ink: #081226;
  --ink-2: #0f2042;
  --on-ink: #e9effc;
  /* The top band, the rate panel, buttons and the logo: themes in 04-themes.css override these. */
  --band-1: #081226;
  --band-2: #0f2042;
  --glow-1: rgba(20, 200, 160, 0.3);
  --glow-2: rgba(255, 159, 28, 0.2);
  --band-grid: rgba(255, 255, 255, 0.045);
  --band-strong: #ffffff;
  --band-text: #e9effc;
  --band-muted: rgba(233, 239, 252, 0.75);
  --band-faint: rgba(233, 239, 252, 0.55);
  --band-line: rgba(255, 255, 255, 0.12);
  --band-chip: rgba(255, 255, 255, 0.06);
  --band-chip-on: rgba(255, 255, 255, 0.15);
  --band-guide: rgba(255, 255, 255, 0.4);
  --band-up: #46ecc4;
  --band-down: #ff8f99;
  --panel-1: rgba(255, 255, 255, 0.075);
  --panel-2: rgba(255, 255, 255, 0.025);
  --hi: #46ecc4;
  --hi-soft: rgba(70, 236, 196, 0.16);
  --hi-line: rgba(124, 240, 210, 0.3);
  --hl-1: #46ecc4;
  --hl-2: #ffb347;
  --cta-1: #46ecc4;
  --cta-2: #14c8a0;
  --cta-ink: #04221b;
  --cta-shadow: rgba(20, 200, 160, 0.95);
  --logo-bg: #081226;
  --logo-1: #14c8a0;
  --logo-2: #ff9f1c;
  --logo-ink: #ffffff;
  --shadow: 0 1px 2px rgba(11, 22, 48, 0.06), 0 12px 32px -14px rgba(11, 22, 48, 0.18);
  --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, 0.75);
  --radius: 18px;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "SF Pro Text", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: "Inter Display", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "SF Pro Display", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060c1a;
    --surface: #0c1630;
    --surface-2: #11203f;
    --text: #e7edfb;
    --muted: #9eadcb;
    --line: #1f2f53;
    --brand: #3fe0b8;
    --brand-2: #7cf0d2;
    --brand-soft: #0d2c2b;
    --accent: #ffb347;
    --accent-2: #ff8a5c;
    --accent-soft: #2b1d0a;
    --accent-text: #ffc77a;
    --danger: #ff7a85;
    --danger-soft: #2b1119;
    --warn-bg: #2a1d0b;
    --warn-text: #ffc77a;
    --warn-line: #5a3a12;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 14px 34px -16px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
img, svg { max-width: 100%; }
p { margin: 0; }
button, input, select { font: inherit; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.small { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
h1 { font-weight: 800; font-size: clamp(38px, 5.8vw, 62px); }
h2 { font-weight: 770; font-size: clamp(26px, 3vw, 36px); }
h3 { font-weight: 720; font-size: 18px; letter-spacing: -0.015em; line-height: 1.25; }
.lead { font-size: clamp(17px, 1.7vw, 19.5px); line-height: 1.55; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 12.5px; font-weight: 750; letter-spacing: 0.09em; text-transform: uppercase; color: var(--brand); }

.ico { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -0.18em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border: 0; border-radius: 12px; cursor: pointer;
  font: 750 15.5px/1.2 var(--font); text-decoration: none; white-space: nowrap; color: var(--cta-ink);
  background: linear-gradient(135deg, var(--cta-1), var(--cta-2));
  box-shadow: 0 12px 26px -14px var(--cta-shadow), inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.button:hover { transform: translateY(-1px); filter: brightness(1.05); }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* 02-page.css */
/* Prototype strip, top band (header + hero), calculator, comparison rows, rules, questions, footer.
   Colours of the band, buttons and logo come from tokens (01-base.css), so themes (04-themes.css) can restyle them. */
.proto { margin: 0; padding: 8px 20px; text-align: center; font-size: 13.5px; color: var(--warn-text); background: var(--warn-bg); border-bottom: 1px solid var(--warn-line); }

.band {
  position: relative; overflow: hidden; color: var(--band-text);
  background:
    radial-gradient(900px 500px at 88% -12%, var(--glow-1), transparent 60%),
    radial-gradient(760px 460px at -12% 112%, var(--glow-2), transparent 60%),
    linear-gradient(180deg, var(--band-1), var(--band-2));
}
.band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--band-grid) 1px, transparent 1px), linear-gradient(90deg, var(--band-grid) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 25%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 25%, #000 15%, transparent 70%);
}
.top-in, .hero { position: relative; z-index: 1; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--band-strong); text-decoration: none; font: 780 19px/1 var(--font-display); letter-spacing: -0.02em; }
.logo .mark { width: 36px; height: 36px; }
.logo b { font-weight: 780; color: var(--hi); }
.mark rect:first-of-type { fill: var(--logo-bg); }
.mark stop:first-child { stop-color: var(--logo-1); }
.mark stop:last-child { stop-color: var(--logo-2); }
.mark text { fill: var(--logo-ink); }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--band-muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--band-strong); }

.hero { padding-top: 22px; padding-bottom: 72px; }
.hero-head { max-width: 780px; margin-bottom: 26px; }
.hero-head .eyebrow { color: var(--hi); padding: 6px 12px; border-radius: 999px; background: var(--hi-soft); box-shadow: inset 0 0 0 1px var(--hi-line); }
.hero-head h1 { color: var(--band-strong); margin: 8px 0 12px; font-size: clamp(34px, 4.8vw, 54px); }
.hl { background: linear-gradient(90deg, var(--hl-1), var(--hl-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-head .lead { color: var(--band-muted); max-width: 38em; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr); gap: 24px; align-items: start; }

/* Calculator card */
.calc { padding: 22px; color: var(--text); border-color: transparent; box-shadow: var(--shadow-lg); }
.field-k { display: block; margin: 0 0 8px; padding: 0; font-size: 12.5px; font-weight: 750; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.money { display: flex; align-items: center; gap: 10px; padding: 4px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); }
.money:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 22%, transparent); }
.cur { font: 750 28px/1 var(--font-display); color: var(--muted); }
.money input {
  flex: 1; width: 100%; min-width: 0; padding: 6px 0; border: 0; outline: 0; background: transparent; color: var(--text);
  font: 800 34px/1.2 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield;
}
.money input::-webkit-outer-spin-button, .money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.code { padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 700; color: var(--muted); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.quick button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 650; cursor: pointer; }
.quick button:hover { border-color: var(--brand-2); color: var(--brand); }
.seg { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.seg-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 9px 10px; border-radius: 9px; text-align: center; font-size: 14.5px; font-weight: 650; color: var(--muted); }
.seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 3px solid var(--brand-2); outline-offset: 1px; }
.summary { margin-bottom: 16px; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(135deg, var(--brand-soft), transparent 85%), var(--surface-2); }
.sum-k { font-size: 14px; font-weight: 600; color: var(--muted); }
.sum-amt { margin: 4px 0; font: 800 clamp(34px, 4.4vw, 44px)/1.1 var(--font-display); letter-spacing: -0.03em; color: var(--brand); font-variant-numeric: tabular-nums; }
.sum-who { font-size: 15px; }
.sum-gains { list-style: none; display: grid; gap: 6px; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line); font-size: 14px; color: var(--muted); }
.sum-gains b { color: var(--text); }
.sum-empty { font-weight: 600; color: var(--danger); }
.calc .button { width: 100%; }

/* Sections */
.sec { padding: 72px 0; }
.sec-alt { background: var(--surface-2); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 22px; }
.sec-head h2 { margin-bottom: 6px; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.sel, .tog { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; color: var(--muted); }
.sel select { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 650; }
.tog { cursor: pointer; }
.tog input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand-2); }
.fine { margin-top: 16px; }

/* Comparison rows */
.tier-note { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); font-size: 14px; }
.rows { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.rows-ref { margin-top: 10px; }
.row {
  display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(118px, 1fr) minmax(128px, 1fr) repeat(3, minmax(78px, 0.72fr)) minmax(130px, auto);
  align-items: center; gap: 8px 18px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
}
.row.best { border-color: color-mix(in srgb, var(--brand-2) 65%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-2) 18%, transparent), var(--shadow); }
.row.over > div { opacity: 0.55; }
.row.ref { background: transparent; box-shadow: none; border-style: dashed; }
.r-prov { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mono { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; color: #fff; font: 800 17px/1 var(--font-display); }
.h0 { background: linear-gradient(135deg, #12b892, #0a7a63); }
.h1 { background: linear-gradient(135deg, #ffad33, #ea7a0f); }
.h2 { background: linear-gradient(135deg, #3d8bff, #2457d4); }
.h3 { background: linear-gradient(135deg, #ff6b6b, #d1404d); }
.h4 { background: linear-gradient(135deg, #8ccc39, #5a9a19); }
.h5 { background: linear-gradient(135deg, #627395, #364362); }
.logo-img { flex: none; width: 40px; height: 40px; border-radius: 12px; object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.r-eta { min-width: 0; }
.r-arr { font-size: 15px; font-weight: 700; }
.speed { display: flex; gap: 3px; max-width: 120px; margin: 5px 0 4px; }
.speed i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.speed i.on { background: linear-gradient(90deg, var(--cta-1), var(--cta-2)); }
.r-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 16.5px; font-weight: 750; line-height: 1.3; }
.r-sub { font-size: 13px; color: var(--muted); line-height: 1.4; }
.tag { padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 750; letter-spacing: 0.02em; color: var(--cta-ink); background: var(--cta-1); }
.tag-ref { color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); }
.r-amt { font: 800 22px/1.2 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.row.best .r-amt { color: var(--brand); }
.r-stat > p:first-child { font-weight: 650; font-variant-numeric: tabular-nums; }
.r-go { justify-self: end; }
.send {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.send:hover { border-color: var(--brand-2); color: var(--brand); }
.row.best .send { color: var(--cta-ink); border-color: transparent; background: linear-gradient(135deg, var(--cta-1), var(--cta-2)); }
.r-note { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 8px; padding: 9px 12px; border-radius: 10px; font-size: 14px; line-height: 1.45; }
.r-note .ico { margin-top: 2px; }
.r-offer { background: var(--accent-soft); color: var(--accent-text); }
.r-over { background: var(--danger-soft); color: var(--danger); }
.r-more { grid-column: 1 / -1; }
.r-more summary { width: max-content; cursor: pointer; list-style: none; font-size: 13.5px; font-weight: 650; color: var(--muted); }
.r-more summary::-webkit-details-marker { display: none; }
.r-more summary::after { content: " +"; }
.r-more[open] summary::after { content: " −"; }
.r-more dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; margin: 12px 0 2px; padding: 14px; border-radius: 12px; background: var(--surface-2); }
.r-more dt { font-size: 12px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.r-more dd { margin: 2px 0 0; font-size: 14px; }
.empty { padding: 20px; border-radius: 14px; border: 1px dashed var(--line); color: var(--muted); }

/* Services we compare (rate mode: names and links, no rates) */
.svc-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 0; padding: 0; }
.svc { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.svc-body { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.svc-name { font-size: 16px; font-weight: 750; }
.tag-paid { color: var(--accent-text); background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.svc-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.svc-link:hover { border-color: var(--brand-2); color: var(--brand); }

/* Rules */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { padding: 22px; }
.ti { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 12px; color: var(--cta-ink); background: linear-gradient(135deg, var(--cta-1), var(--cta-2)); }
.tile:nth-child(3) .ti { color: #2b1700; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.tile p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* Questions */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; font-size: 16.5px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 600; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin-top: 10px; color: var(--muted); }

/* Text pages (About, Disclosure, Privacy, 404) */
.band-slim .top-in { padding-bottom: 22px; }
.text-page { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.text-page h1 { margin: 0 0 18px; font-size: clamp(32px, 4vw, 44px); }
.text-page h2 { margin: 30px 0 10px; font-size: 22px; }
.text-page p, .text-page li { color: var(--muted); }
.text-page p { margin: 0 0 14px; }
.text-page .lead { color: var(--text); }
.text-page ul { margin: 0 0 14px; padding-left: 20px; }
.text-page li { margin: 6px 0; }

/* Footer (always dark, in the theme's ink) */
.foot { padding: 34px 0 42px; background: var(--ink); color: rgba(233, 239, 252, 0.7); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; }
.foot b { color: #fff; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { color: rgba(233, 239, 252, 0.85); text-decoration: none; }
.foot a:hover { color: #fff; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; padding: 14px; }
  .r-prov { grid-column: 1 / 3; }
  .r-get { grid-column: 3; text-align: right; }
  .r-eta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding-top: 10px; border-top: 1px solid var(--line); }
  .r-eta .speed { width: 110px; margin: 0; }
  .r-stat { padding-top: 10px; border-top: 1px solid var(--line); }
  .r-go { grid-column: 1 / -1; justify-self: stretch; }
  .r-go:empty { display: none; }
  .send { width: 100%; }
}
@media (max-width: 720px) {
  .nav a:not(:first-child) { display: none; }
  .bento { grid-template-columns: 1fr; }
  .sec { padding: 52px 0; }
  .sec-head { align-items: flex-start; }
  .hero { padding-bottom: 48px; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .calc, .rate-panel { padding: 18px 16px; }
  .r-amt { font-size: 19px; }
  .mono { width: 34px; height: 34px; font-size: 15px; }
}

/* 03-rate.css */
/* Today's rate panel and chart (top, in the band), and the rupee trends section. Band colours come from tokens. */
.rate-panel {
  padding: 22px 22px 18px; border-radius: 20px; color: var(--band-text);
  background: linear-gradient(180deg, var(--panel-1), var(--panel-2));
  border: 1px solid var(--band-line); box-shadow: var(--shadow-lg);
}
.rp-k { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; font-size: 14px; font-weight: 650; color: var(--band-muted); }
.rp-src { font-size: 12.5px; color: var(--band-faint); }
.rp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 6px 0 2px; }
.rp-big { font: 800 clamp(46px, 6.2vw, 66px)/1 var(--font-display); letter-spacing: -0.035em; color: var(--band-strong); font-variant-numeric: tabular-nums; }
.rp-head .chg { font-size: 17px; }
.rp-vs { font-size: 13px; color: var(--band-faint); }
.rp-pill { display: inline-flex; margin-top: 10px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--hi); background: var(--hi-soft); box-shadow: inset 0 0 0 1px var(--hi-line); }
.rp-note { margin-top: 12px; font-size: 12.5px; color: var(--band-faint); }

.chg { display: inline-flex; align-items: center; gap: 4px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chg.up { color: var(--brand); }
.chg.down { color: var(--danger); }
.band .chg.up { color: var(--band-up); }
.band .chg.down { color: var(--band-down); }

/* Chart */
.chart { margin-top: 18px; color: var(--hi); }
.ch-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ch-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--band-chip); border: 1px solid var(--band-line); }
.ch-tabs button { padding: 5px 11px; border: 0; border-radius: 7px; background: transparent; color: var(--band-muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.ch-tabs button:hover { color: var(--band-strong); }
.ch-tabs button[aria-selected="true"] { background: var(--band-chip-on); color: var(--band-strong); }
.ch-chg { font-size: 14px; }
.ch-over { font-weight: 600; color: var(--band-faint); }
.ch-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 8px; }
.ch-plot { position: relative; height: 230px; touch-action: pan-y; cursor: crosshair; }
.chart-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart-svg .grid line { stroke: var(--band-line); stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.ch-y { display: flex; flex-direction: column; justify-content: space-between; margin: -7px 0; font-size: 12px; line-height: 14px; color: var(--band-faint); font-variant-numeric: tabular-nums; }
.ch-x { display: flex; justify-content: space-between; font-size: 12px; color: var(--band-faint); }
.ch-plot [hidden] { display: none !important; }
.ch-guide { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--band-guide); pointer-events: none; }
.ch-dot, .ch-last { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--hi); box-shadow: 0 0 0 4px var(--hi-soft); pointer-events: none; }
.ch-last { left: 100%; }
.ch-last::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--hi-line); animation: ping 2.2s ease-out infinite; }
@keyframes ping { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ch-last::after { animation: none; } }
.ch-tip {
  position: absolute; top: 6px; transform: translateX(12px); display: grid; gap: 1px; padding: 8px 10px; border-radius: 10px; pointer-events: none; white-space: nowrap;
  background: rgba(6, 12, 26, 0.94); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.7); font-size: 12.5px; color: rgba(233, 239, 252, 0.8);
}
.ch-tip b { font-size: 15px; color: #fff; }
.ch-tip.flip { transform: translateX(calc(-100% - 12px)); }

/* Rupee trends */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat { padding: 18px 20px; }
.st-k { font-size: 12.5px; font-weight: 750; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.st-v { margin: 6px 0 4px; font: 780 24px/1.25 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.st-v .chg { font: inherit; font-size: 21px; }
.st-s { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.range-bar { display: block; width: 100%; height: 12px; margin: 10px 0 6px; }
.rb-track { fill: var(--line); }
.rb-fill { fill: var(--brand-2); }
.rb-mark { fill: var(--text); }
.trend-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 14px; margin-top: 14px; }
.then, .months { padding: 20px; }
.tbl { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.tbl th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tbl td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl .when { font-weight: 650; }
.tbl .when small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.mbars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; height: 200px; margin-top: 14px; }
.mb { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 4px; min-width: 0; text-align: center; }
.mb b { overflow: hidden; font-size: 10.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mb svg { display: block; width: 100%; height: 100%; }
.mb rect { fill: color-mix(in srgb, var(--brand-2) 45%, var(--surface-2)); }
.mb.hi rect { fill: var(--brand-2); }
.mb.lo rect { fill: var(--accent); }
.mb span { font-size: 11.5px; color: var(--muted); }

@media (max-width: 960px) {
  .trend-grid { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .ch-plot { height: 190px; }
  .ch-tabs button { padding: 5px 8px; }
  .mb:not(.hi):not(.lo) b { visibility: hidden; }
  .tbl { font-size: 14px; }
}

/* 04-themes.css */
/* Theme options in India's colours (saffron #FF9933, white, green #138808, navy) for Div to choose from.
   Colours only: no flag and no Ashoka Chakra (India's Emblems Act restricts commercial use of the national flag).
   Each theme is <html data-theme="…">; build.mjs writes /themes/<id>/ and a side-by-side gallery at /themes/. */

/* A · Tiranga Night: navy top with saffron and green light; saffron buttons; green for money. */
:root[data-theme="tiranga-night"] {
  --ink: #081238;
  --ink-2: #102060;
  --band-1: #060e30;
  --band-2: #112060;
  --glow-1: rgba(255, 153, 51, 0.34);
  --glow-2: rgba(19, 136, 8, 0.32);
  --band-up: #5ee38a;
  --band-down: #ff9aa2;
  --hi: #ffad5c;
  --hi-soft: rgba(255, 173, 92, 0.16);
  --hi-line: rgba(255, 173, 92, 0.34);
  --hl-1: #ffad5c;
  --hl-2: #5ee38a;
  --cta-1: #ffb466;
  --cta-2: #ff8c1a;
  --cta-ink: #2b1400;
  --cta-shadow: rgba(255, 140, 26, 0.85);
  --logo-bg: #081238;
  --logo-1: #ff9933;
  --logo-2: #2fb34a;
}

/* B · Tiranga Light: bright top with soft saffron and green; navy text. (Dark mode falls back to the navy top.) */
:root[data-theme="tiranga-light"] {
  --ink: #0a1440;
  --ink-2: #13225e;
  --band-1: #fff7ec;
  --band-2: #eef9ef;
  --glow-1: rgba(255, 153, 51, 0.32);
  --glow-2: rgba(19, 136, 8, 0.2);
  --band-grid: rgba(10, 20, 64, 0.05);
  --band-strong: #0a1440;
  --band-text: #16224f;
  --band-muted: rgba(22, 34, 79, 0.74);
  --band-faint: rgba(22, 34, 79, 0.56);
  --band-line: rgba(10, 20, 64, 0.12);
  --band-chip: rgba(10, 20, 64, 0.05);
  --band-chip-on: #ffffff;
  --band-guide: rgba(10, 20, 64, 0.3);
  --band-up: #0e7a16;
  --band-down: #c62f3b;
  --panel-1: rgba(255, 255, 255, 0.92);
  --panel-2: rgba(255, 255, 255, 0.78);
  --hi: #e9730a;
  --hi-soft: rgba(242, 125, 12, 0.12);
  --hi-line: rgba(242, 125, 12, 0.32);
  --hl-1: #f27d0c;
  --hl-2: #0e8a1c;
  --cta-1: #ffa64d;
  --cta-2: #f47b20;
  --cta-ink: #2b1400;
  --cta-shadow: rgba(244, 123, 32, 0.6);
  --shadow-lg: 0 30px 70px -38px rgba(10, 20, 64, 0.35);
  --logo-bg: #0a1440;
  --logo-1: #ff9933;
  --logo-2: #2fb34a;
}

/* C · Saffron Sunrise: warm saffron top, navy text, green buttons. */
:root[data-theme="saffron-sunrise"] {
  --ink: #0a1440;
  --ink-2: #13225e;
  --band-1: #ff9a36;
  --band-2: #ffc87e;
  --glow-1: rgba(255, 255, 255, 0.42);
  --glow-2: rgba(19, 136, 8, 0.22);
  --band-grid: rgba(80, 30, 0, 0.06);
  --band-strong: #0a1440;
  --band-text: #10194a;
  --band-muted: rgba(16, 25, 74, 0.8);
  --band-faint: rgba(16, 25, 74, 0.64);
  --band-line: rgba(16, 25, 74, 0.16);
  --band-chip: rgba(255, 255, 255, 0.4);
  --band-chip-on: #ffffff;
  --band-guide: rgba(16, 25, 74, 0.4);
  --band-up: #0b6612;
  --band-down: #b3141f;
  --panel-1: rgba(255, 255, 255, 0.62);
  --panel-2: rgba(255, 255, 255, 0.44);
  --hi: #0b6e14;
  --hi-soft: rgba(11, 110, 20, 0.12);
  --hi-line: rgba(11, 110, 20, 0.3);
  --hl-1: #0b6e14;
  --hl-2: #0a1440;
  --cta-1: #23ad42;
  --cta-2: #0e7a16;
  --cta-ink: #ffffff;
  --cta-shadow: rgba(14, 122, 22, 0.55);
  --shadow-lg: 0 30px 70px -38px rgba(90, 35, 0, 0.45);
  --logo-bg: #0a1440;
  --logo-1: #ffffff;
  --logo-2: #2fb34a;
}

/* D · Green Rupee: deep India-green top with saffron accents. */
:root[data-theme="green-rupee"] {
  --ink: #052a12;
  --ink-2: #0b4a1e;
  --band-1: #032010;
  --band-2: #0c4d20;
  --glow-1: rgba(255, 153, 51, 0.32);
  --glow-2: rgba(255, 255, 255, 0.1);
  --band-up: #8af0a8;
  --band-down: #ff9aa2;
  --hi: #ffb15c;
  --hi-soft: rgba(255, 177, 92, 0.16);
  --hi-line: rgba(255, 177, 92, 0.34);
  --hl-1: #ffb15c;
  --hl-2: #ffffff;
  --cta-1: #ffb466;
  --cta-2: #ff8c1a;
  --cta-ink: #2b1400;
  --cta-shadow: rgba(255, 140, 26, 0.8);
  --logo-bg: #052a12;
  --logo-1: #ff9933;
  --logo-2: #ffffff;
}

/* All four: green for money received, saffron for offers. */
:root[data-theme] {
  --brand: #0e7a16;
  --brand-2: #1f9f3a;
  --brand-soft: #e7f5ea;
  --accent: #ff9933;
  --accent-2: #f26b1d;
  --accent-soft: #fff1e0;
  --accent-text: #8f4300;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme] {
    --brand: #5ee38a;
    --brand-2: #9ff0b6;
    --brand-soft: #0f2a17;
    --accent-soft: #2b1d0a;
    --accent-text: #ffc77a;
  }
  /* The two light tops switch to dark ones at night. */
  :root[data-theme="tiranga-light"],
  :root[data-theme="saffron-sunrise"] {
    --band-grid: rgba(255, 255, 255, 0.045);
    --band-strong: #ffffff;
    --band-text: #e9effc;
    --band-muted: rgba(233, 239, 252, 0.75);
    --band-faint: rgba(233, 239, 252, 0.55);
    --band-line: rgba(255, 255, 255, 0.12);
    --band-chip: rgba(255, 255, 255, 0.06);
    --band-chip-on: rgba(255, 255, 255, 0.15);
    --band-guide: rgba(255, 255, 255, 0.4);
    --band-up: #5ee38a;
    --band-down: #ff9aa2;
    --panel-1: rgba(255, 255, 255, 0.075);
    --panel-2: rgba(255, 255, 255, 0.025);
    --hi: #ffad5c;
    --hi-soft: rgba(255, 173, 92, 0.16);
    --hi-line: rgba(255, 173, 92, 0.34);
    --hl-1: #ffad5c;
    --hl-2: #5ee38a;
    --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, 0.75);
  }
  :root[data-theme="tiranga-light"] { --band-1: #060e30; --band-2: #112060; --glow-1: rgba(255, 153, 51, 0.34); --glow-2: rgba(19, 136, 8, 0.32); }
  :root[data-theme="saffron-sunrise"] { --band-1: #2a1302; --band-2: #5a2c05; --glow-1: rgba(255, 153, 51, 0.4); --glow-2: rgba(19, 136, 8, 0.28); }
}

/* Gallery page (/themes/): the real page in each theme, side by side. Prototype only. */
.gallery-page { padding: 32px 0 60px; }
.gallery-page h1 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 8px; }
.gallery-page .lead { color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin-top: 26px; }
.g-item { margin: 0; }
.g-frame { position: relative; aspect-ratio: 16 / 11; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.g-frame iframe { position: absolute; top: 0; left: 0; width: 200%; height: 200%; border: 0; transform: scale(0.5); transform-origin: 0 0; }
.g-item figcaption { display: grid; gap: 2px; margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.g-item figcaption b { font-size: 16px; color: var(--text); }
.swatches { display: flex; gap: 6px; margin-top: 6px; }
.swatches i { width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.sw-saffron { background: #ff9933; }
.sw-white { background: #ffffff; }
.sw-green { background: #138808; }
.sw-navy { background: #0a1440; }
.sw-deepgreen { background: #0c4d20; }
@media (max-width: 860px) { .gallery { grid-template-columns: minmax(0, 1fr); } }
