/* Sarv Shree Sewa Foundation — "Marigold & Peacock" theme
   Colours come from the Foundation logo: peacock green and teal, marigold, saffron and gold.
   Public site: glowing gradient hero, colourful bento tiles. Portals: peacock sidebar + bright workspace. */
:root {
  --bg: #FFF8EE; --surface: #FFFFFF; --surface-2: #FFFCF6; --sunk: #F6EEDF;
  --ink: #13211B; --muted: #5F6A63; --line: #EADFCB;
  /* admin-chosen theme colours (Admin -> Website -> Look & feel) */
  --c-primary: #0B5D3B; --c-secondary: #0E7C66; --c-accent: #F59F00; --c-accent2: #E8590C;
  --brand: var(--c-primary); --brand-2: var(--c-secondary); --brand-3: color-mix(in srgb, var(--c-secondary) 60%, #0A4F8A); --brand-tint: color-mix(in srgb, var(--c-primary) 12%, #fff); --on-brand: #FFFFFF;
  --gold: var(--c-accent); --gold-2: color-mix(in srgb, var(--c-accent) 70%, #FFE066); --gold-ink: color-mix(in srgb, var(--c-accent) 45%, #3A1D00); --gold-tint: color-mix(in srgb, var(--c-accent) 18%, #fff);
  --saffron: var(--c-accent2); --saffron-tint: color-mix(in srgb, var(--c-accent2) 14%, #fff);
  --pink: #D6336C; --pink-tint: #FCE4EE; --violet: #6741D9; --violet-tint: #ECE6FF;
  --ok: #0B7A43; --ok-tint: #DDF5E8; --warn: #8A5A00; --warn-tint: #FFF1CF; --bad: #C92A2A; --bad-tint: #FFE3E3;
  --grad-brand: linear-gradient(125deg, var(--c-primary) 0%, var(--c-secondary) 55%, var(--brand-3) 100%);
  --grad-fire: linear-gradient(135deg, var(--gold-2) 0%, var(--c-accent) 40%, var(--c-accent2) 100%);
  --grad-rainbow: linear-gradient(90deg, var(--c-accent), var(--c-accent2), #D6336C, var(--c-secondary), var(--c-primary));
  --shadow: 0 1px 2px rgba(80, 45, 0, .06), 0 10px 30px rgba(80, 45, 0, .08);
  --shadow-lg: 0 24px 60px rgba(11, 93, 59, .22);
  --glow: 0 10px 28px rgba(232, 89, 12, .35);
  --r-lg: 26px; --r: 16px; --r-sm: 12px;
  --f-display: "Baloo 2", "Poppins", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1410; --surface: #12201A; --surface-2: #15261F; --sunk: #1B2E26;
    --ink: #EEF5F0; --muted: #A2B3AA; --line: #263A31;
    --brand: #5FD39A; --brand-2: #4CC9B0; --brand-3: #4FB6D6; --brand-tint: #143225; --on-brand: #04130C;
    --gold: #FFB938; --gold-2: #FFD27A; --gold-ink: #FFCB6B; --gold-tint: #2E230F; --saffron: #FF8A4C; --saffron-tint: #33190D;
    --pink: #F783AC; --pink-tint: #3A1726; --violet: #B197FC; --violet-tint: #241B3D;
    --ok: #7FE0AE; --ok-tint: #12301F; --warn: #FFD27A; --warn-tint: #2E240F; --bad: #FFA8A8; --bad-tint: #3A1818;
    --grad-brand: linear-gradient(125deg, #0B4D33 0%, #0C5F50 55%, #0A4F66 100%);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
    --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1410; --surface: #12201A; --surface-2: #15261F; --sunk: #1B2E26;
  --ink: #EEF5F0; --muted: #A2B3AA; --line: #263A31;
  --brand: #5FD39A; --brand-2: #4CC9B0; --brand-3: #4FB6D6; --brand-tint: #143225; --on-brand: #04130C;
  --gold: #FFB938; --gold-2: #FFD27A; --gold-ink: #FFCB6B; --gold-tint: #2E230F; --saffron: #FF8A4C; --saffron-tint: #33190D;
  --pink: #F783AC; --pink-tint: #3A1726; --violet: #B197FC; --violet-tint: #241B3D;
  --ok: #7FE0AE; --ok-tint: #12301F; --warn: #FFD27A; --warn-tint: #2E240F; --bad: #FFA8A8; --bad-tint: #3A1818;
  --grad-brand: linear-gradient(125deg, #0B4D33 0%, #0C5F50 55%, #0A4F66 100%);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0; color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 520px at -10% -5%, color-mix(in srgb, var(--gold-2) 35%, transparent), transparent 70%),
    radial-gradient(800px 500px at 110% 0%, color-mix(in srgb, var(--brand-2) 22%, transparent), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.05; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.8vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--brand-2); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--saffron); }
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--grad-fire); }
.grad-text { background: var(--grad-fire); -webkit-background-clip: text; background-clip: text; color: transparent; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- buttons */
.btn { font: inherit; font-weight: 700; font-size: .95rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.15;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, filter .2s; white-space: nowrap; position: relative; overflow: hidden; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 22px rgba(11, 93, 59, .28); }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 12px 28px rgba(11, 93, 59, .36); }
.btn-gold { background: var(--grad-fire); color: #2A1400; box-shadow: var(--glow); }
.btn-gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s ease; }
.btn-gold:hover::after { transform: translateX(120%); }
.btn-gold:hover { box-shadow: 0 14px 32px rgba(232, 89, 12, .45); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--saffron); color: var(--saffron); }
.btn-danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn-danger:hover { background: var(--bad-tint); }
.btn-soft { background: var(--gold-tint); color: var(--gold-ink); border-color: transparent; }
.btn-sm { padding: 7px 14px; font-size: .84rem; }
.btn-block { width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------------------------------------------------------------- chips */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; background: var(--sunk); color: var(--muted); white-space: nowrap; }
.chip.ok { background: var(--ok-tint); color: var(--ok); }
.chip.warn { background: var(--warn-tint); color: var(--warn); }
.chip.bad { background: var(--bad-tint); color: var(--bad); }
.chip.brand { background: var(--brand-tint); color: var(--brand); }
.chip.gold { background: var(--gold-tint); color: var(--gold-ink); }
.chip.violet { background: var(--violet-tint); color: var(--violet); }
.chip.ok::before, .chip.warn::before, .chip.bad::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------------------------------------------------------------- top bar */
.rainbow-bar { height: 5px; background: var(--grad-rainbow); }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; padding-block: 12px; }
.nav { display: flex; align-items: center; gap: 18px; background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: saturate(170%) blur(16px); -webkit-backdrop-filter: saturate(170%) blur(16px);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: 999px; padding: 8px 8px 8px 12px; box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.logo-slot svg, .logo-slot img { width: 100%; height: 100%; object-fit: contain; }
.brand img, .brand svg { width: 46px; height: 46px; flex: none; object-fit: contain; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--gold-tint); }
.brand b { font-family: var(--f-display); font-size: 1.18rem; display: block; line-height: 1.05; font-weight: 800; }
.brand small { display: block; font-size: .68rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.navlinks { display: flex; gap: 2px; }
.navlinks a { text-decoration: none; color: var(--muted); font-weight: 600; padding: 8px 13px; border-radius: 999px; font-size: .94rem; transition: background .15s, color .15s; }
.navlinks a:hover { background: var(--gold-tint); color: var(--gold-ink); }
@media (max-width: 960px) { .navlinks { display: none; } .brand small { display: none; } }
@media (max-width: 480px) { .nav .btn-ghost.hide-sm { display: none; } }

/* ---------------------------------------------------------------- hero + bento */
.hero { padding-block: 22px 10px; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; min-width: 0; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease; }
.tile-hero { grid-column: span 8; padding: clamp(28px, 4.5vw, 54px); background: var(--grad-brand); color: #fff; border: 0; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg); isolation: isolate; }
.tile-hero h1 { color: #fff; }
.tile-hero h1 .hl { background: linear-gradient(90deg, #FFE066, #FFC53D, #FF922B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tile-hero .eyebrow { color: #FFD43B; }
.tile-hero .eyebrow::before { background: #FFD43B; }
.tile-hero p.lead { font-size: 1.12rem; opacity: .92; margin-top: 18px; max-width: 34em; text-shadow: 0 1px 2px rgba(0,0,0,.15); }
.tile-hero .ctas { margin-top: 30px; }
.tile-hero .btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(4px); }
.tile-hero .btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; border-color: #fff; }
.tile-hero > * { position: relative; z-index: 2; }
.tile-hero .orb { position: absolute; border-radius: 50%; filter: blur(2px); z-index: 0; pointer-events: none; }
.tile-hero .orb.o1 { width: 300px; height: 300px; right: -120px; bottom: -150px; background: radial-gradient(circle at 35% 35%, #FFE066, #F59F00 45%, #E8590C 75%); opacity: .95; }
.tile-hero .orb.o2 { width: 150px; height: 150px; right: 210px; top: -50px; background: radial-gradient(circle at 40% 40%, #63E6BE, #0CA678 70%); opacity: .55; }
.tile-hero .orb.o3 { width: 80px; height: 80px; right: 60px; top: 50px; background: radial-gradient(circle, #FFA8A8, #D6336C); opacity: .7; }
.tile-hero .ring { position: absolute; right: -40px; bottom: -70px; width: 260px; height: 260px; border-radius: 50%; z-index: 1; pointer-events: none;
  border: 2px dashed rgba(255,255,255,.55); }
.tile-hero .feather { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .18;
  background-image: radial-gradient(circle at 20% 120%, transparent 0 40px, rgba(255,255,255,.7) 41px 43px, transparent 44px 70px, rgba(255,255,255,.5) 71px 72px, transparent 73px),
                    radial-gradient(rgba(255,255,255,.9) 1.2px, transparent 1.5px);
  background-size: auto, 22px 22px; }
@media (prefers-reduced-motion: no-preference) {
  .tile-hero .orb.o1 { animation: float 9s ease-in-out infinite; }
  .tile-hero .orb.o2 { animation: float 11s ease-in-out infinite reverse; }
  .tile-hero .orb.o3 { animation: float 7s ease-in-out infinite; }
  .tile-hero .ring { animation: spin 40s linear infinite; }
  @keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-14px, -18px); } }
  @keyframes spin { to { transform: rotate(360deg); } }
}
.tile-reg { grid-column: span 4; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.tile-reg::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--grad-rainbow); }
.reg-row { display: flex; justify-content: space-between; gap: 12px; padding-block: 9px; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.reg-row:last-of-type { border-bottom: 0; }
.reg-row span:first-child { color: var(--muted); font-weight: 600; }
.reg-row .mono { text-align: right; word-break: break-all; font-size: .85rem; }
.tile-stat { grid-column: span 4; display: flex; gap: 16px; align-items: flex-start; position: relative; overflow: hidden; }
.tile-stat:hover, .tile.lift:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(80, 45, 0, .14); }
.tile-stat .ico { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; flex: none; color: #fff !important; box-shadow: 0 10px 20px rgba(0,0,0,.12); }
.tile-stat:nth-of-type(3n+1) .ico { background: var(--grad-fire) !important; }
.tile-stat:nth-of-type(3n+2) .ico { background: var(--grad-brand) !important; }
.tile-stat:nth-of-type(3n) .ico { background: linear-gradient(135deg, #F783AC, #D6336C) !important; }
.tile-stat::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--gold-tint); opacity: .7; z-index: 0; }
.tile-stat > * { position: relative; z-index: 1; }
@media (max-width: 960px) { .tile-hero, .tile-reg, .bento > .tile:not(.tile-stat) { grid-column: 1 / -1 !important; } .tile-stat { grid-column: span 6; } }
@media (max-width: 620px) { .tile-stat { grid-column: span 12; } }

/* impact counters */
.impact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 18px; border-radius: var(--r-lg); overflow: hidden; background: var(--grad-fire); color: #2A1400; box-shadow: var(--glow); }
.impact > div { padding: 20px 22px; border-right: 1px solid rgba(42, 20, 0, .12); }
.impact > div:last-child { border-right: 0; }
.impact .n { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1; }
.impact .l { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .8; margin-top: 4px; }
@media (max-width: 720px) { .impact { grid-template-columns: 1fr 1fr; } .impact > div:nth-child(2) { border-right: 0; } .impact > div:nth-child(-n+2) { border-bottom: 1px solid rgba(42,20,0,.12); } }

section.block { padding-block: 72px 8px; }
.block-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.block-head h2 { margin-top: 8px; }
.block-head p { color: var(--muted); max-width: 42em; margin-top: 10px; font-size: 1.04rem; }

/* ---------------------------------------------------------------- forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; min-width: 0; box-shadow: var(--shadow); }
.card-tight { padding: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.span2 { grid-column: 1 / -1; }
@media (max-width: 720px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--muted); min-width: 0; }
label.f .hint { font-weight: 500; font-size: .78rem; }
input, select, textarea { font: inherit; font-size: .97rem; color: var(--ink); background: var(--surface-2); border: 1.5px solid var(--line);
  border-radius: var(--r-sm); padding: 11px 13px; width: 100%; min-width: 0; transition: border-color .15s, box-shadow .15s, background .15s; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--saffron); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 25%, transparent); }
input[type=color] { padding: 4px; height: 46px; }
input[type=file] { padding: 9px; background: repeating-linear-gradient(135deg, var(--surface-2) 0 10px, var(--sunk) 10px 20px); border-style: dashed; }
input[type=file]::file-selector-button { font: inherit; font-weight: 700; border: 0; border-radius: 999px; padding: 7px 14px; margin-right: 10px; background: var(--grad-brand); color: #fff; cursor: pointer; }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--ink); font-weight: 600; }
.check input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--saffron); flex: none; }
.seg { display: inline-flex; background: var(--sunk); border-radius: 999px; padding: 5px; gap: 4px; flex-wrap: wrap; }
.seg button { font: inherit; font-weight: 700; font-size: .9rem; border: 0; background: transparent; color: var(--muted); padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--grad-brand); color: #fff; box-shadow: 0 6px 14px rgba(11,93,59,.25); }
.amounts { display: flex; gap: 8px; flex-wrap: wrap; }
.amounts button { font: inherit; font-family: var(--f-mono); font-weight: 600; font-size: .95rem; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink);
  border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: all .15s; }
.amounts button:hover { border-color: var(--gold); transform: translateY(-1px); }
.amounts button[aria-pressed="true"] { background: var(--grad-fire); color: #2A1400; border-color: transparent; box-shadow: var(--glow); }
.note { font-size: .88rem; background: var(--sunk); color: var(--muted); border-radius: var(--r-sm); padding: 12px 14px; border-left: 4px solid var(--line); }
.note.warn { background: var(--warn-tint); color: var(--warn); border-left-color: var(--gold); }
.note.ok { background: var(--ok-tint); color: var(--ok); border-left-color: var(--ok); }
.note.bad { background: var(--bad-tint); color: var(--bad); border-left-color: var(--bad); }
.note.safe { background: var(--brand-tint); color: var(--brand); border-left-color: var(--brand); }
.paybox { border: 1.5px dashed var(--gold); background: var(--gold-tint); border-radius: var(--r); padding: 16px; display: grid; gap: 6px; font-size: .93rem; }
.paybox .k { color: var(--gold-ink); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.qr-img { width: 170px; height: 170px; border-radius: 14px; border: 4px solid #fff; background: #fff; object-fit: contain; box-shadow: var(--shadow); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan { border: 2px solid var(--line); border-radius: var(--r); padding: 16px; cursor: pointer; display: flex; gap: 10px; color: var(--ink); transition: all .15s; background: var(--surface-2); }
.plan:hover { border-color: var(--gold); }
.plan:has(input:checked) { border-color: var(--saffron); background: linear-gradient(135deg, var(--gold-tint), var(--saffron-tint)); box-shadow: var(--glow); }
.plan input { width: auto; accent-color: var(--saffron); }
.plan b { font-family: var(--f-display); font-size: 1.5rem; display: block; color: var(--saffron); }
.otp { font-family: var(--f-mono); font-size: 1.7rem; letter-spacing: .5em; text-align: center; font-weight: 600; }

/* ---------------------------------------------------------------- gallery & feed */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gal { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.gal:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 18px 40px rgba(80,45,0,.16); }
.gal img, .gal .ph { aspect-ratio: 4 / 3; width: 100%; max-width: 100%; object-fit: cover; }
.gal.is-hidden img { filter: grayscale(1) opacity(.5); }
.gal .ph { display: grid; place-items: center; color: var(--gold-ink); font-size: .9rem; font-weight: 700;
  background: radial-gradient(circle at 30% 30%, var(--gold-tint), transparent 60%), repeating-linear-gradient(135deg, var(--saffron-tint) 0 14px, var(--gold-tint) 14px 28px); }
.gal figcaption { padding: 11px 13px; font-size: .9rem; display: flex; justify-content: space-between; gap: 8px; align-items: center; font-weight: 600; }
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.post img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.post .pb { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.soc { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: .9rem; transition: all .15s; }
.soc:hover { background: var(--grad-fire); color: #2A1400; border-color: transparent; transform: translateY(-2px); }
.soc svg { width: 18px; height: 18px; }
.empty { border: 2px dashed var(--line); border-radius: var(--r); padding: 28px; text-align: center; color: var(--muted); background: color-mix(in srgb, var(--surface) 60%, transparent); }

/* timeline (what happens next) */
.tl { border-top: 4px solid var(--line); padding-top: 10px; font-size: .9rem; color: var(--muted); }
.tl b { color: var(--ink); display: block; }
.tl.done { border-color: var(--ok); } .tl.now { border-color: var(--gold); }
.steps .tl { border-top: 0; border-left: 4px solid var(--line); padding: 2px 0 2px 14px; }
.steps .tl.done { border-left-color: var(--ok); } .steps .tl.now { border-left-color: var(--saffron); }

/* footer */
footer.site { margin-top: 80px; background: var(--grad-brand); color: #fff; padding-block: 50px 30px; position: relative; }
footer.site::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; background: var(--grad-rainbow); }
footer.site a { color: #FFE066; }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
footer.site .small { opacity: .9; }
footer.site .copy { margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2); font-size: .82rem; opacity: .85; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 820px) { footer.site .cols { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- auth pages */
.auth { min-height: 100vh; display: grid; place-items: start center; padding-block: 44px; position: relative; }
.auth .card { width: min(560px, 100%); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; padding-top: 32px; }
.auth .card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 7px; background: var(--grad-rainbow); }
.auth-deco { position: fixed; border-radius: 50%; pointer-events: none; z-index: -1; filter: blur(30px); opacity: .55; }
.auth-deco.d1 { width: 380px; height: 380px; left: -120px; bottom: -120px; background: var(--gold-2); }
.auth-deco.d2 { width: 320px; height: 320px; right: -100px; top: -80px; background: var(--brand-2); opacity: .35; }
.steps-dots { display: flex; gap: 8px; }
.steps-dots span { height: 7px; flex: 1; border-radius: 99px; background: var(--sunk); transition: background .3s; }
.steps-dots span.on { background: var(--grad-fire); }
fieldset.card { border: 2px dashed var(--line) !important; box-shadow: none; background: var(--surface-2); }
fieldset.card legend { background: var(--grad-brand); color: #fff !important; padding: 4px 14px !important; border-radius: 999px; }
fieldset.card legend::before { display: none; }

/* ---------------------------------------------------------------- portal */
.portal { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.side { background: var(--grad-brand); color: #fff; padding: 20px 14px; display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; box-shadow: 6px 0 30px rgba(11, 93, 59, .18); }
.side .brand { margin: 4px 6px 18px; color: #fff; }
.side .brand small { color: rgba(255,255,255,.75); }
.side .brand img { box-shadow: 0 0 0 3px rgba(255, 212, 59, .7); }
.side nav { display: flex; flex-direction: column; gap: 3px; }
.side nav button { font: inherit; text-align: left; background: transparent; border: 0; color: rgba(255,255,255,.82); padding: 11px 14px; border-radius: 14px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; transition: background .15s, color .15s, transform .15s; }
.side nav button:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateX(3px); }
.side nav button[aria-current="page"] { background: var(--grad-fire); color: #2A1400; font-weight: 800; box-shadow: 0 8px 18px rgba(232,89,12,.35); }
.side nav .badge { background: #fff; color: var(--saffron); font-family: var(--f-mono); font-size: .72rem; font-weight: 700; border-radius: 99px; padding: 1px 8px; }
.side nav button[aria-current="page"] .badge { background: #2A1400; color: #FFD43B; }
.side .foot { margin-top: auto; padding: 12px 6px 0; border-top: 1px solid rgba(255,255,255,.2); display: flex; flex-direction: column; gap: 8px; }
.side .foot .muted { color: rgba(255,255,255,.75); }
.side .foot .btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); }
.side .foot .btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.workspace { min-width: 0; padding: 28px clamp(16px, 3vw, 40px) 60px; display: flex; flex-direction: column; gap: 20px; }
.ws-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; flex-wrap: wrap; padding-bottom: 6px; }
.ws-head h2 { font-size: 2.1rem; }
@media (max-width: 860px) {
  .portal { grid-template-columns: 1fr; }
  .side { position: sticky; top: env(safe-area-inset-top, 0px); height: auto; z-index: 30; flex-direction: row; align-items: center; padding: 10px 14px; overflow-x: auto; }
  .side .brand { margin: 0 10px 0 0; } .side .brand b, .side .brand small { display: none; }
  .side nav { flex-direction: row; } .side nav button { white-space: nowrap; }
  .side .foot { display: none; }
}
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--grad-brand); }
.kpi:nth-child(1)::before { background: var(--grad-fire); }
.kpi:nth-child(3)::before { background: linear-gradient(180deg, #F783AC, #D6336C); }
.kpi:nth-child(4)::before { background: linear-gradient(180deg, #9775FA, #6741D9); }
.kpi .v { font-family: var(--f-display); font-size: 2.2rem; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi.attn { border-color: var(--gold); background: linear-gradient(135deg, var(--gold-tint), var(--surface) 70%); }
.kpi.attn .v { color: var(--saffron); }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-ink); background: var(--gold-tint); white-space: nowrap; font-weight: 800; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: color-mix(in srgb, var(--gold-tint) 45%, transparent); }
tr.is-hidden td { opacity: .55; }
td .row { gap: 6px; flex-wrap: nowrap; }
.num { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.who { display: flex; gap: 10px; align-items: center; }
.avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--grad-fire); color: #2A1400;
  display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--gold-tint); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 640px) { .timeline { grid-template-columns: 1fr 1fr; } }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.doc { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); transition: transform .2s; }
.doc:hover { transform: translateY(-3px); }
.doc .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--grad-fire); color: #2A1400; display: grid; place-items: center; }
.doc:nth-child(3n+2) .ic { background: var(--grad-brand); color: #fff; }
.doc:nth-child(3n) .ic { background: linear-gradient(135deg, #F783AC, #D6336C); color: #fff; }
.welcome { background: var(--grad-brand); color: #fff; border: 0; position: relative; overflow: hidden; }
.welcome::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, #FFD43B, #F59F00 60%, transparent 61%); opacity: .5; }
.welcome > * { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- drawer + modal */
.overlay { position: fixed; inset: 0; background: rgba(10, 20, 16, .55); backdrop-filter: blur(3px); z-index: 80; display: flex; justify-content: flex-end; }
.drawer { width: min(780px, 100%); height: 100%; background: var(--bg); overflow-y: auto; padding: 24px clamp(16px, 3vw, 30px) 60px; display: flex; flex-direction: column; gap: 16px; border-left: 6px solid var(--gold); }
.modal-wrap { position: fixed; inset: 0; background: rgba(10, 20, 16, .55); backdrop-filter: blur(3px); z-index: 90; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto;
  padding: calc(env(safe-area-inset-top, 0px) + 40px) 16px 40px; }
.modal { background: var(--surface); border-radius: var(--r-lg); width: min(560px, 100%); padding: 26px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 14px; border-top: 7px solid var(--saffron); }
.x { font: inherit; font-size: 1.2rem; border: 0; background: var(--sunk); color: var(--ink); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; flex: none; transition: background .15s, transform .15s; }
.x:hover { background: var(--saffron-tint); transform: rotate(90deg); }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); transform: translateX(-50%); z-index: 100; background: var(--grad-brand); color: #fff;
  padding: 13px 20px; border-radius: 14px; font-size: .93rem; font-weight: 600; max-width: calc(100% - 32px); box-shadow: var(--shadow-lg); }
.toast.bad { background: linear-gradient(135deg, #E03131, #C92A2A); color: #fff; }
.pdf-frame { width: 100%; height: 72vh; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.brand-img { width: 130px; height: 86px; object-fit: contain; border: 2px dashed var(--line); border-radius: 12px; background: #fff; }
.tabs-inline { display: flex; gap: 6px; flex-wrap: wrap; }
@media (prefers-reduced-motion: no-preference) {
  .modal, .drawer { animation: pop .22s cubic-bezier(.2,.9,.3,1.2); }
  @keyframes pop { from { transform: translateY(12px) scale(.98); opacity: .4; } to { transform: none; opacity: 1; } }
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* fixes */
.auth fieldset.card { width: auto; box-shadow: none; overflow: visible; padding-top: 20px; }
.auth fieldset.card::before { display: none; }
.stack > .seg { align-self: flex-start; }
.gal figcaption { flex-wrap: wrap; }
.gal figcaption .btn { margin-left: auto; }

/* ================================================================ v2 public site */
.center { text-align: center; }
.block-head.center { justify-content: center; text-align: center; }
.block-head.center > div { display: flex; flex-direction: column; align-items: center; }
.block-head.center p { margin-inline: auto; }
section.band { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--gold-tint) 70%, transparent) 18%, color-mix(in srgb, var(--gold-tint) 70%, transparent) 82%, transparent); padding-bottom: 60px; }

/* utility bar */
.utility { background: var(--brand); color: #fff; font-size: .82rem; }
.utility .wrap { min-height: 38px; gap: 14px; flex-wrap: nowrap; }
.utility a { color: #fff; text-decoration: none; opacity: .92; }
.utility a:hover { opacity: 1; text-decoration: underline; }
.util-contact, .util-right { gap: 16px; flex-wrap: nowrap; white-space: nowrap; }
.util-announce { flex: 1; text-align: center; font-weight: 700; color: #FFE066 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.socials.mini { display: inline-flex; gap: 6px; }
.socials.mini .soc { padding: 4px; border: 0; background: transparent; color: #fff; }
.socials.mini .soc svg { width: 15px; height: 15px; }
@media (max-width: 860px) { .util-contact a:nth-child(2), .socials.mini { display: none; } }
@media (max-width: 560px) { .utility .util-announce { display: none; } }

/* mobile menu */
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.menu-btn span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
@media (max-width: 960px) {
  .menu-btn { display: flex; }
  body.menu-open .navlinks { display: flex; position: absolute; left: 20px; right: 20px; top: 74px; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
    border-radius: 22px; padding: 10px; box-shadow: var(--shadow-lg); }
  body.menu-open .navlinks a { padding: 12px 16px; font-size: 1rem; }
  body.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .topbar { position: sticky; }
  .topbar .wrap { position: relative; }
}

/* hero slider */
.slider { position: relative; height: clamp(440px, 74vh, 680px); overflow: hidden; margin: 14px 20px 0; border-radius: 30px; box-shadow: var(--shadow-lg); background: var(--grad-brand); }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.04); transition: opacity .9s ease, transform 6s ease; display: flex; align-items: flex-end; }
.slide.on { opacity: 1; transform: scale(1); z-index: 1; }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 30, 20, .82) 0%, rgba(5, 30, 20, .45) 50%, rgba(5, 30, 20, .05) 100%), linear-gradient(0deg, rgba(0,0,0,.35), transparent 50%); }
.slide-in { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(40px, 8vh, 80px); }
.slide-card { max-width: 640px; color: #fff; }
.slide-card h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); margin-top: 10px; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.slide-card .eyebrow { color: #FFD43B; } .slide-card .eyebrow::before { background: #FFD43B; }
.slide-card .lead { font-size: 1.15rem; margin-top: 14px; opacity: .95; }
.slide-card .ctas { margin-top: 26px; }
.slide-card .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.sl-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.18); color: #fff; font-size: 2rem; line-height: 1; backdrop-filter: blur(6px); transition: background .2s; }
.sl-arrow:hover { background: var(--c-accent); color: #2A1400; }
.sl-arrow.prev { left: 18px; } .sl-arrow.next { right: 18px; }
.sl-dots { position: absolute; z-index: 3; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.sl-dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgba(255,255,255,.5); cursor: pointer; transition: width .3s, background .3s; padding: 0; }
.sl-dots button[aria-current] { width: 30px; background: var(--c-accent); }
@media (max-width: 640px) { .slider { margin: 10px 10px 0; border-radius: 22px; } .sl-arrow { display: none; } }

/* about */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
.about-art { position: relative; aspect-ratio: 1; max-width: 440px; justify-self: center; width: 100%; }
.about-logo { position: absolute; inset: 12%; border-radius: 50%; background: #fff; box-shadow: var(--shadow-lg); padding: 6%; display: grid; place-items: center; z-index: 1; }
.about-logo img { width: 100%; height: 100%; object-fit: contain; }
.about-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, var(--c-accent), var(--c-accent2), #D6336C, var(--c-secondary), var(--c-primary), var(--c-accent)); opacity: .9;
  mask: radial-gradient(circle, transparent 62%, #000 63%); -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%); }
@media (prefers-reduced-motion: no-preference) { .about-ring { animation: spin 30s linear infinite; } }
.about-badge { position: absolute; z-index: 2; left: -4%; bottom: 10%; background: var(--surface); border-radius: 18px; padding: 10px 16px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; line-height: 1.1; border-left: 5px solid var(--c-accent); }
.about-badge b { font-family: var(--f-display); font-size: 1.6rem; color: var(--saffron); }
.about-badge span { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.about-badge.b2 { left: auto; right: -2%; bottom: auto; top: 8%; border-left-color: var(--c-primary); }
.about-badge.b2 b { color: var(--brand); }
.about-text { display: flex; flex-direction: column; gap: 12px; color: var(--muted); font-size: 1.06rem; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-art { max-width: 300px; } }

/* programme / campaign cards */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 960px) { .cards3 { grid-template-columns: 1fr 1fr; } .cards4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards3, .cards4 { grid-template-columns: 1fr; } }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.pcard:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(80,45,0,.16); }
.card-img { aspect-ratio: 16 / 10; background-size: cover; background-position: center; display: grid; place-items: center; color: #fff; position: relative; }
.card-img svg { width: 64px; height: 64px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.2)); }
.card-img.ph-0 { background: var(--grad-fire); color: #2A1400; } .card-img.ph-1 { background: var(--grad-brand); } .card-img.ph-2 { background: linear-gradient(135deg, #F783AC, #D6336C); }
.pcard-b { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard-b .row { margin-top: auto; padding-top: 6px; }
.pcard-b h3 { font-size: 1.4rem; }
.pcard details summary { cursor: pointer; font-weight: 700; color: var(--brand-2); font-size: .9rem; }
.pcard details p { margin-top: 8px; color: var(--muted); font-size: .94rem; }
.campaign .card-img::after { content: "Cause"; position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.92); color: var(--saffron); font-weight: 800; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; }
.campaign .btn { margin-top: auto; align-self: flex-start; }
.progress { height: 10px; background: var(--sunk); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--grad-fire); border-radius: 99px; }

/* payment gateway + UPI */
.gw-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gw { border: 2px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: flex; gap: 10px; cursor: pointer; background: var(--surface-2); }
.gw:has(input:checked) { border-color: var(--saffron); background: var(--gold-tint); }
.gw input { width: auto; accent-color: var(--saffron); }
.gw span { display: flex; flex-direction: column; } .gw small { color: var(--muted); font-size: .78rem; }
.upi-box { border: 1.5px dashed var(--gold); background: var(--gold-tint); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.upi-box .k { color: var(--gold-ink); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.upi-tabs { background: rgba(255,255,255,.6); }
.upi-apps { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.upi-app { text-decoration: none; font-weight: 700; font-size: .85rem; padding: 8px 14px; border-radius: 999px; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.upi-app:hover { border-color: var(--saffron); }
.upi-app.gpay { border-color: #4285F4; color: #1a56c4; } .upi-app.phonepe { border-color: #5f259f; color: #5f259f; } .upi-app.paytm { border-color: #00BAF2; color: #00639a; } .upi-app.bhim { border-color: #F47F20; color: #b5520a; }

/* stories */
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 380px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; scrollbar-width: thin; }
.story { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.story-img { aspect-ratio: 16 / 10; background-size: cover; background-position: center; display: grid; place-items: center; color: #fff; }
.story-img svg { width: 56px; height: 56px; }
.story-img.ph-0 { background: var(--grad-fire); } .story-img.ph-1 { background: var(--grad-brand); } .story-img.ph-2 { background: linear-gradient(135deg, #F783AC, #D6336C); }
.story-b { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.quote { color: var(--muted); position: relative; padding-left: 16px; border-left: 4px solid var(--gold); display: flex; flex-direction: column; gap: 8px; }
.who-line { font-size: .9rem; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); font-size: 1.5rem; cursor: pointer; color: var(--ink); }
.round-btn:hover { background: var(--grad-fire); border-color: transparent; color: #2A1400; }

/* join */
.join-card { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.join-card .btn { margin-top: auto; }
.join-ico { font-size: 2.2rem; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--gold-tint); }
@media (max-width: 960px) { .join-card { grid-column: 1 / -1 !important; } }

/* partners marquee + accreditations */
.marquee { overflow: hidden; mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; }
@media (prefers-reduced-motion: no-preference) { .marquee-track { animation: marquee 40s linear infinite; } .marquee:hover .marquee-track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(-50%); } }
.partner { flex: none; width: 180px; height: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; display: grid; place-items: center; padding: 14px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); font-weight: 800; text-align: center; }
.partner img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(.3); transition: filter .2s; }
.partner:hover img { filter: none; }
.acc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; box-shadow: var(--shadow); }
.acc img { height: 64px; width: auto; object-fit: contain; }
.acc-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--grad-brand); color: #fff; display: grid; place-items: center; }

/* gallery lightbox + post images */
.gal { cursor: zoom-in; }
.gal figcaption .chip { margin-left: auto; }
.modal.lb-modal { width: min(1100px, 100%); background: #0B1410; padding: 10px; border-top: 0; }
.lightbox { position: relative; display: flex; flex-direction: column; gap: 10px; }
.lightbox img { max-height: 78vh; width: 100%; object-fit: contain; border-radius: 14px; }
.lightbox .x { position: absolute; right: 10px; top: 10px; z-index: 4; background: rgba(255,255,255,.85); }
.lb-cap { color: #fff; text-align: center; font-weight: 600; padding-bottom: 6px; }
.post { position: relative; }
.post-imgs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.post-imgs::-webkit-scrollbar { display: none; }
.post-imgs img { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.img-count { position: absolute; right: 10px; top: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; }

/* footer v2 */
footer.site .cols4 { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 30px; }
footer.site .links { display: flex; flex-direction: column; gap: 6px; }
footer.site .links a { color: #fff; text-decoration: none; opacity: .9; } footer.site .links a:hover { color: #FFE066; }
footer.site .socials .soc { background: rgba(255,255,255,.12); border-color: transparent; color: #fff; padding: 8px; }
.foot-logo { width: 48px; height: 48px; display: block; flex: none; background: #fff; border-radius: 50%; padding: 3px; }
@media (max-width: 860px) { footer.site .cols4 { grid-template-columns: 1fr 1fr; } footer.site .cols4 > :first-child { grid-column: 1 / -1; } }

/* floating WhatsApp + mobile donate bar */
.wa-float { position: fixed; right: 18px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37, 211, 102, .45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.mobile-donate { display: none; }
@media (max-width: 720px) {
  .mobile-donate { display: block; position: fixed; left: 12px; right: 84px; bottom: 14px; z-index: 59; text-align: center; padding: 15px; border-radius: 999px; font-weight: 800;
    text-decoration: none; background: var(--grad-fire); color: #2A1400; box-shadow: var(--glow); }
  .wa-float { bottom: 10px; right: 12px; }
  body.site { padding-bottom: 80px; }
}

/* ================================================================ v2 admin */
.dropzone { border: 2.5px dashed color-mix(in srgb, var(--gold) 60%, var(--line)); border-radius: var(--r-lg); padding: 30px; text-align: center; background: var(--gold-tint); cursor: pointer; transition: background .2s, border-color .2s; }
.dropzone.over { background: var(--saffron-tint); border-color: var(--saffron); }
.dropzone b { font-family: var(--f-display); font-size: 1.3rem; display: block; }
.queue { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.qitem { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.qitem img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.qitem .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: rgba(0,0,0,.15); }
.qitem .bar span { display: block; height: 100%; width: 0; background: var(--grad-fire); transition: width .2s; }
.qitem.done .bar span { background: var(--ok); width: 100% !important; }
.qitem.err { outline: 3px solid var(--bad); }
.qitem .qmsg { position: absolute; inset: auto 0 6px 0; font-size: .7rem; text-align: center; color: #fff; text-shadow: 0 1px 3px #000; font-weight: 700; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.thumbs img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.item-row { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.item-row:last-child { border-bottom: 0; }
.item-row.is-hidden { opacity: .55; }
.item-thumb { width: 74px; height: 54px; border-radius: 10px; background: var(--sunk) center/cover; display: grid; place-items: center; color: var(--muted); font-size: .7rem; font-weight: 700; }
.item-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 720px) { .item-row { grid-template-columns: 54px 1fr; } .item-actions { grid-column: 1 / -1; justify-content: flex-start; } }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.swatch { border: 2px solid var(--line); border-radius: 14px; padding: 10px; cursor: pointer; background: var(--surface); text-align: left; font: inherit; font-weight: 700; display: flex; flex-direction: column; gap: 8px; }
.swatch[aria-pressed="true"] { border-color: var(--saffron); box-shadow: var(--glow); }
.swatch .dots { display: flex; gap: 4px; } .swatch .dots i { width: 22px; height: 22px; border-radius: 50%; display: block; }
.toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font-weight: 600; font-size: .9rem; }
.toggle input { width: 42px; height: 24px; appearance: none; -webkit-appearance: none; background: var(--line); border-radius: 99px; position: relative; cursor: pointer; border: 0; padding: 0; flex: none; transition: background .2s; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.toggle input:checked { background: var(--brand-2); }
.toggle input:checked::after { transform: translateX(18px); }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; }
.secret-note { font-size: .78rem; color: var(--ok); font-weight: 700; }

.impact[data-n="1"] { grid-template-columns: 1fr; } .impact[data-n="2"] { grid-template-columns: 1fr 1fr; } .impact[data-n="3"] { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .impact[data-n="3"] { grid-template-columns: 1fr; } .impact[data-n="3"] > div { border-right: 0; border-bottom: 1px solid rgba(42,20,0,.12); } }
@media (max-width: 720px) { .nav > .btn-gold { display: none; } }

/* ================================================================ v3 */
.nav-login { gap: 6px; border-color: var(--brand-2); color: var(--brand); }
.nav-login:hover { background: var(--brand-tint); color: var(--brand); border-color: var(--brand); }
@media (max-width: 720px) { .nav-login { padding: 9px; } .nav-login span { display: none; } }

/* gallery v3 */
.album-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.album-cards:empty { display: none; }
.album-card { font: inherit; text-align: left; border: 2px solid var(--line); background: var(--surface); border-radius: 18px; padding: 8px 8px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; color: var(--ink); transition: transform .2s, border-color .2s; }
.album-card:hover { transform: translateY(-3px); }
.album-card.on { border-color: var(--saffron); box-shadow: var(--glow); }
.album-card .ac-img { aspect-ratio: 4 / 3; border-radius: 12px; background: var(--grad-fire) center/cover; margin-bottom: 6px; }
.album-card b, .album-card span.small { padding-inline: 4px; }
#albumInfo:empty { display: none; } #albumInfo { margin: -6px 0 14px; }
.gallery.masonry { display: block; columns: 4 240px; column-gap: 16px; }
.gallery.masonry .gal { break-inside: avoid; margin-bottom: 16px; }
.gallery.masonry .gal img { aspect-ratio: auto; height: auto; }
.gallery.masonry .gal.is-video img { aspect-ratio: 16 / 9; object-fit: cover; }
.gal { position: relative; }
.gal .play, .post-video .play { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 62px; height: 62px; border-radius: 50%;
  background: rgba(220, 20, 20, .9); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.35); pointer-events: none; }
.gal .play svg, .post-video .play svg { margin-left: 4px; }
.gal .feat { position: absolute; left: 10px; top: 10px; background: var(--grad-fire); color: #2A1400; font-size: .7rem; font-weight: 800; padding: 3px 9px; border-radius: 99px; }
.lb-stage { display: grid; place-items: center; min-height: 40vh; }
.lb-stage iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; color: #fff; padding: 0 6px 6px; }
.lb-bar .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.lb-cap .chip { vertical-align: middle; }

/* feed v3 */
.post .pin { position: absolute; left: 10px; top: 10px; z-index: 2; background: #fff; color: var(--saffron); font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; box-shadow: var(--shadow); }
.post-video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer; background: #000 center/cover; }
.post-video.playing iframe { width: 100%; height: 100%; border: 0; }
.post-text { white-space: pre-line; }
.tag { color: var(--brand-2); font-weight: 700; }
.share { display: flex; align-items: center; gap: 6px; border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px; }
.share a, .share button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); color: var(--ink); border: 0; cursor: pointer; font-size: .9rem; }
.share a:hover, .share button:hover { background: var(--grad-fire); color: #2A1400; }
.share svg { width: 15px; height: 15px; }
.share .muted { margin-right: auto; }

/* admin v3 */
.bulkbar { position: sticky; top: 8px; z-index: 20; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 16px; box-shadow: var(--shadow-lg); }
.bulkbar .btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.bulkbar input, .bulkbar select { width: auto; padding: 7px 10px; }
.gal .pick { position: absolute; right: 10px; top: 10px; width: 24px; height: 24px; accent-color: var(--saffron); z-index: 2; cursor: pointer; }
.gal.picked { outline: 4px solid var(--saffron); }
.email-grid { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .email-grid { grid-template-columns: 1fr; } }
.email-list { display: flex; flex-direction: column; gap: 4px; max-height: 75vh; overflow-y: auto; }
.email-list .grp { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); margin: 10px 4px 2px; }
.email-list button { font: inherit; text-align: left; border: 1px solid transparent; background: transparent; padding: 9px 12px; border-radius: 12px; cursor: pointer; color: var(--ink); display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.email-list button:hover { background: var(--sunk); }
.email-list button[aria-current="true"] { background: var(--gold-tint); border-color: var(--gold); font-weight: 700; }
.email-frame { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: var(--r); background: #FFF7EC; }
.varlist { display: flex; flex-wrap: wrap; gap: 6px; }
.varlist button { font: inherit; font-family: var(--f-mono); font-size: .75rem; border: 1px dashed var(--brand-2); background: var(--brand-tint); color: var(--brand); border-radius: 8px; padding: 3px 8px; cursor: pointer; }
.numfmt { display: grid; grid-template-columns: 1.2fr 1.4fr .8fr 1.4fr; gap: 10px; align-items: end; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.numfmt:last-child { border-bottom: 0; }
@media (max-width: 860px) { .numfmt { grid-template-columns: 1fr 1fr; } }
.numfmt .ex { font-family: var(--f-mono); font-weight: 700; color: var(--saffron); background: var(--gold-tint); padding: 10px 12px; border-radius: 10px; }
.danger-zone { border: 2px dashed var(--bad); background: color-mix(in srgb, var(--bad-tint) 50%, var(--surface)); }
.chip.suspended { background: #FFE8CC; color: #A34700; } .chip.archived { background: var(--sunk); color: var(--muted); text-decoration: line-through; }

/* ================================================================ v4: events, invitations, jobs, signatures */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.ev-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: inherit; text-decoration: none; box-shadow: var(--shadow); min-width: 0; }
.ev-card:hover .ev-more { transform: translateX(4px); }
.ev-card.is-cancelled { opacity: .72; }
.ev-card.is-cancelled .ev-title { text-decoration: line-through; }
.ev-img { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--grad-brand); background-size: cover; background-position: center; }
.ev-date { position: absolute; left: 14px; bottom: -22px; width: 62px; height: 66px; border-radius: 14px; background: var(--surface); box-shadow: 0 10px 24px rgba(0,0,0,.18); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; border-top: 5px solid var(--gold); }
.ev-date b { font-family: var(--f-display); font-size: 1.7rem; color: var(--brand); }
.ev-date small { font-weight: 800; text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; color: var(--muted); margin-top: 3px; }
.ev-star { position: absolute; right: 12px; top: 12px; background: var(--gold); color: #3b2500; font-weight: 800; font-size: .72rem; padding: 4px 10px; border-radius: 99px; }
.ev-body { display: flex; flex-direction: column; gap: 6px; padding: 32px 18px 18px; flex: 1; }
.ev-title { font-family: var(--f-display); font-size: 1.22rem; line-height: 1.2; }
.ev-foot { margin-top: auto; padding-top: 10px; gap: 8px; }
.ev-more { font-weight: 800; color: var(--brand); transition: transform .2s; margin-left: auto; }
.ev-page { padding-top: 24px; padding-bottom: 60px; }
.ev-hero { min-height: 280px; border-radius: var(--r-lg); background: var(--grad-brand); background-size: cover; background-position: center; color: #fff; display: flex; align-items: flex-end; padding: clamp(22px, 4vw, 44px); margin-bottom: 22px; }
.ev-hero h1 { font-family: var(--f-display); font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1.08; margin: 10px 0 6px; color: #fff; }
.ev-hero p { max-width: 720px; opacity: .95; }
.ev-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.ev-reg { position: sticky; top: 90px; }
.ev-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ev-facts > div { display: flex; gap: 10px; align-items: flex-start; }
.ev-ico { width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--brand-tint); display: grid; place-items: center; }
.ev-desc p { line-height: 1.7; }
@media (max-width: 820px) { .ev-layout { grid-template-columns: 1fr; } .ev-reg { position: static; } }
.jobbox { border: 1px solid var(--line); border-radius: var(--r-md, 14px); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.progress.big { height: 14px; }
.progress.big span { transition: width .4s ease; }
.pick-list { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; margin: 8px 0; }
.pick-list label { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: .9rem; }
.pick-list label:last-child { border-bottom: 0; }
.pick-list label:hover { background: var(--sunk); }
.pick-list input { width: auto; }
.sig-prev { height: 70px; display: flex; align-items: center; justify-content: center; background: repeating-conic-gradient(#f1f1f1 0 25%, #fff 0 50%) 0 0 / 16px 16px; border: 1px dashed var(--line); border-radius: 10px; }
.sig-prev img { max-height: 62px; max-width: 100%; }
.ev-tbl td { vertical-align: middle; }
.ev-tbl .ev-when { white-space: nowrap; }
.ev-tbl .ev-acts { flex-wrap: wrap; gap: 6px; max-width: 340px; }
.ev-tbl .who b { display: inline; }
