/* =========================================================
   Samiti Manager – stylesheet
   Palette: indigo ink, peacock teal, marigold, rani pink
   Type: Baloo 2 (display) + Mukta (body) – both cover Devanagari
   ========================================================= */
:root {
  --ink: #1F1B3A;
  --ink-2: #3B3563;
  --peacock: #0E7C7B;
  --peacock-d: #0A5E5D;
  --peacock-l: #E2F3F2;
  --marigold: #F2A007;
  --marigold-l: #FFF3D6;
  --rani: #C2185B;
  --bg: #F4F5F9;
  --surface: #FFFFFF;
  --line: #E3E4EC;
  --text: #24213D;
  --muted: #6B6880;
  --danger: #B42318;
  --ok: #1E7B34;
  --r-lg: 18px;
  --r: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 2px rgba(31, 27, 58, .06), 0 6px 18px rgba(31, 27, 58, .06);
  --display: "Baloo 2", "Mukta", system-ui, sans-serif;
  --body: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --side: 256px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.55;
  color: var(--text); background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--peacock); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); font-weight: 700; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font: 600 .95rem/1 var(--body); padding: .72rem 1.15rem; border-radius: var(--r-sm);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  background: var(--peacock); color: #fff; transition: background .15s, transform .1s;
  white-space: nowrap;
}
.btn:hover { background: var(--peacock-d); }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--marigold); color: var(--ink); }
.btn-gold:hover { background: #DB9000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg); }
.btn-danger { background: transparent; color: var(--danger); border-color: #F3C9C5; }
.btn-danger:hover { background: #FDECEA; }
.btn-sm { padding: .45rem .75rem; font-size: .85rem; }
.btn-block { width: 100%; }
.icon-btn { background: none; border: 0; padding: .4rem; cursor: pointer; color: inherit; font-size: 1.15rem; border-radius: var(--r-sm); }

label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--ink-2); }
.input, select, textarea {
  width: 100%; font: 400 1rem var(--body); color: var(--text); background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px; padding: .66rem .8rem;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, select:focus, textarea:focus { outline: none; border-color: var(--peacock); box-shadow: 0 0 0 3px var(--peacock-l); }
textarea { min-height: 96px; resize: vertical; }
input[type=color] { height: 44px; padding: 4px; }
.field { margin-bottom: 1rem; }
.hint { font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.grid-2 { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--peacock); }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* ---------- Alerts ---------- */
.alert { padding: .8rem 1rem; border-radius: var(--r-sm); margin-bottom: 1rem; display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
.alert-success { background: #E6F4EA; color: var(--ok); }
.alert-error { background: #FDECEA; color: var(--danger); }
.alert-info { background: var(--peacock-l); color: var(--peacock-d); }

/* ---------- Badges ---------- */
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: .22rem .6rem; border-radius: 999px; white-space: nowrap; }
.st-not_done { background: #FDE8E8; color: var(--danger); }
.st-pending { background: var(--marigold-l); color: #8A5A00; }
.st-in_progress { background: var(--peacock-l); color: var(--peacock-d); }
.st-completed { background: #E6F4EA; color: var(--ok); }
.pill { font-size: .75rem; font-weight: 600; padding: .12rem .5rem; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.pr-high { border-color: #F3C9C5; color: var(--danger); }
.pr-medium { border-color: #F5DDA3; color: #8A5A00; }
.overdue { color: var(--danger); font-weight: 600; }

/* =========================================================
   PANEL (admin + member)
   ========================================================= */
.panel { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--side); background: var(--ink); color: #D9D6EE; position: fixed; inset: 0 auto 0 0;
  display: flex; flex-direction: column; z-index: 50; transition: transform .25s ease;
}
.brand { display: flex; align-items: center; gap: .65rem; padding: 1.25rem 1.25rem 1rem; color: #fff; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 50% 50%, var(--marigold) 0 38%, #E08A00 39% 55%, var(--marigold) 56%);
  box-shadow: 0 0 0 3px rgba(242, 160, 7, .25);
}
.brand b { font-family: var(--display); font-size: 1.2rem; font-weight: 700; line-height: 1.1; }
.brand small { display: block; font-size: .78rem; color: #A9A4CC; }
.nav { padding: .5rem .75rem; flex: 1; overflow-y: auto; }
.nav a {
  display: flex; align-items: center; gap: .75rem; padding: .65rem .8rem; margin-bottom: 2px;
  color: #D9D6EE; text-decoration: none; border-radius: 10px; font-weight: 500;
}
.nav a i { font-size: 1.1rem; width: 1.2rem; text-align: center; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.active { background: var(--marigold); color: var(--ink); font-weight: 700; }
.nav .group { font-size: .78rem; color: #8C87B3; padding: 1rem .8rem .35rem; }
.side-foot { padding: 1rem 1.25rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .88rem; }
.side-foot a { color: #D9D6EE; }

.main { flex: 1; margin-left: var(--side); min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; background: rgba(244, 245, 249, .92);
  backdrop-filter: blur(8px); display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1.5rem; border-bottom: 1px solid var(--line);
}
.topbar .menu-btn { display: none; }
.topbar .title { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink); flex: 1; }
.user-chip { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .92rem; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--peacock); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-family: var(--display);
}
.content { padding: 1.5rem; max-width: 1280px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head h1 { margin: 0; }
.page-head p { margin: .25rem 0 0; color: var(--muted); }
.backdrop { display: none; }

@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(31, 27, 58, .45); z-index: 40; }
  .main { margin-left: 0; }
  .topbar { padding: .75rem 1rem; }
  .topbar .menu-btn { display: inline-flex; }
  .user-chip span { display: none; }
  .content { padding: 1rem; }
}

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; margin-bottom: 1.25rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-head h2 { margin: 0; font-size: 1.15rem; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .card-head { padding: 1.1rem 1.25rem 0; }

/* Stat strip: one bordered band, not separate cards */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 1.25rem; overflow: hidden;
}
.stat { padding: 1.1rem 1.25rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat .num { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--ink); line-height: 1; }
.stat .lbl { color: var(--muted); font-size: .9rem; margin-top: .3rem; display: flex; align-items: center; gap: .4rem; }
.stat .lbl i { color: var(--peacock); }
@media (min-width: 760px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: 0; }
  .stat:last-child { border-right: 0; }
}

.two-col { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1.4fr 1fr; } .two-col > .card { margin-bottom: 0; } }
.two-col + * { margin-top: 1.25rem; }

/* Status bar (stacked progress) */
.sbar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--line); }
.sbar span { display: block; height: 100%; }
.sbar .s-completed { background: #2E9E4C; }
.sbar .s-in_progress { background: var(--peacock); }
.sbar .s-pending { background: var(--marigold); }
.sbar .s-not_done { background: #E5604F; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .85rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }

.samiti-row { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.samiti-row:last-child { border-bottom: 0; }
.samiti-row .top { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .45rem; font-weight: 600; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .45rem; vertical-align: 1px; }

/* ---------- Tables (stack into cards on mobile) ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .84rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: #FAFAFC; white-space: nowrap; }
.table td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FAFAFD; }
.table .t-title { font-weight: 600; color: var(--ink); text-decoration: none; }
.table .t-title:hover { color: var(--peacock); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { flex-wrap: nowrap; justify-content: flex-end; }
.table td[data-label="Due"] { white-space: nowrap; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty i { font-size: 2rem; display: block; margin-bottom: .5rem; color: #B9B6CC; }

@media (max-width: 760px) {
  .table.stack thead { display: none; }
  .table.stack, .table.stack tbody, .table.stack tr, .table.stack td { display: block; width: 100%; }
  .table.stack tr { padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
  .table.stack td { border: 0; padding: .2rem 0; text-align: right; overflow: hidden; }
  .table.stack td::before { content: attr(data-label); float: left; margin-right: 1rem; color: var(--muted); font-size: .84rem; font-weight: 600; text-align: left; }
  .table.stack td[data-label=""]::before { display: none; }
  .table.stack td.lead { display: block; text-align: left; font-size: 1.02rem; margin-bottom: .25rem; }
  .table.stack td.lead::before { display: none; }
  .table.stack td .actions { justify-content: flex-end; display: inline-flex; }
  .table.stack .num { text-align: right; }
}

/* ---------- Filters ---------- */
.filters { display: grid; gap: .6rem; grid-template-columns: 1fr 1fr; margin-bottom: 1rem; }
.filters .wide { grid-column: 1 / -1; }
@media (min-width: 900px) { .filters { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } .filters .wide { grid-column: span 2; } }

.tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs a { padding: .42rem .85rem; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .88rem; background: var(--surface); border: 1px solid var(--line); }
.tabs a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs a span { opacity: .7; margin-left: .2rem; }

.pager { display: flex; gap: .3rem; flex-wrap: wrap; padding: 1rem; justify-content: center; }
.pager a, .pager .cur { min-width: 36px; padding: .35rem .6rem; text-align: center; border-radius: 8px; text-decoration: none; border: 1px solid var(--line); color: var(--ink); }
.pager .cur { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Task detail / timeline ---------- */
.task-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; margin: 1rem 0; }
@media (min-width: 640px) { .task-meta { grid-template-columns: repeat(4, 1fr); } }
.task-meta div small { display: block; color: var(--muted); font-size: .82rem; }
.task-meta div b { font-weight: 600; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 1.25rem 1.75rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--peacock); }
.timeline .who { font-weight: 600; }
.timeline .when { color: var(--muted); font-size: .82rem; }
.timeline .remark { background: var(--bg); border-radius: var(--r-sm); padding: .55rem .75rem; margin-top: .35rem; white-space: pre-line; }

.status-pick { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1rem; }
.status-pick label { margin: 0; }
.status-pick input { position: absolute; opacity: 0; }
.status-pick span { display: block; text-align: center; padding: .6rem; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.status-pick input:checked + span { border-color: var(--peacock); background: var(--peacock-l); color: var(--peacock-d); }
.status-pick input:focus-visible + span { outline: 3px solid var(--marigold); outline-offset: 2px; }

.banner-thumb { width: 120px; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 8px; background: var(--line); }
.chart-box { position: relative; height: 260px; }

/* Modal (native dialog) */
dialog { border: 0; border-radius: var(--r-lg); padding: 0; width: min(560px, calc(100% - 2rem)); box-shadow: 0 20px 60px rgba(31, 27, 58, .3); }
dialog::backdrop { background: rgba(31, 27, 58, .5); }
dialog .d-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
dialog .d-head h2 { margin: 0; font-size: 1.15rem; }
dialog .d-body { padding: 1.25rem; max-height: 70vh; overflow-y: auto; }

/* =========================================================
   AUTH page
   ========================================================= */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: var(--ink); position: relative; overflow: hidden; }
.auth::before { content: ""; position: absolute; inset: 0 0 auto; height: 34px; background: var(--toran); background-size: 44px 34px, 44px 34px, 44px 34px, 44px 34px, 100% 34px; }
.auth-card { background: #fff; border-radius: 22px; padding: 2rem 1.5rem; width: min(420px, 100%); position: relative; }
@media (min-width: 480px) { .auth-card { padding: 2.25rem 2.25rem; } }
.auth-card .brand { padding: 0 0 1.25rem; color: var(--ink); }
.auth-card .brand small { color: var(--muted); }

/* =========================================================
   FRONT WEBSITE
   ========================================================= */
:root {
  /* Marigold garland (toran): flowers on a string with mango leaves */
  --toran:
    radial-gradient(circle at 22px 9px, #F2A007 0 7px, #E08A00 7.5px 9px, transparent 9.5px),
    radial-gradient(circle at 22px 24px, #FFB82E 0 6px, #E08A00 6.5px 7.5px, transparent 8px),
    radial-gradient(ellipse 6px 11px at 4px 12px, #2F8F46 0 98%, transparent),
    radial-gradient(ellipse 6px 11px at 40px 12px, #2F8F46 0 98%, transparent),
    linear-gradient(to bottom, transparent 2px, #7A4A12 2px 4px, transparent 4px);
}
.site { background: #fff; }
.site-wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }

.site-header { position: absolute; top: 34px; left: 0; right: 0; z-index: 20; }
.site-header .site-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; }
.site-header .brand { padding: 0; }
.site-header .brand small { color: rgba(255, 255, 255, .75); }
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 600; }
.site-nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
.site-nav .menu-toggle { display: none; }
@media (max-width: 760px) {
  .site-nav .links { display: none; position: absolute; top: 100%; left: 1.25rem; right: 1.25rem; background: #fff; border-radius: var(--r); padding: .5rem; box-shadow: var(--shadow); flex-direction: column; }
  .site-nav .links.open { display: flex; }
  .site-nav .links a { color: var(--ink); padding: .7rem .9rem; display: block; }
  .site-nav .menu-toggle { display: inline-flex; color: #fff; font-size: 1.6rem; }
}
@media (min-width: 761px) { .site-nav .links { display: flex; gap: 1.5rem; align-items: center; } }

.hero { position: relative; background: var(--ink); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 34px; background: var(--toran); background-size: 44px 34px, 44px 34px, 44px 34px, 44px 34px, 100% 34px; z-index: 25; }
.slider { position: relative; height: clamp(520px, 86vh, 760px); overflow: hidden; touch-action: pan-y; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; visibility: hidden; }
.slide.on { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31, 27, 58, .55) 0%, rgba(31, 27, 58, .15) 35%, rgba(31, 27, 58, .85) 100%); }
.slide-copy { position: absolute; left: 0; right: 0; bottom: 4.5rem; z-index: 2; }
.slide-copy h1, .slide-copy h2 {
  color: #fff; font-size: clamp(2.3rem, 7vw, 4.6rem); font-weight: 800; line-height: .98;
  max-width: 14ch; margin-bottom: .35em; letter-spacing: -.01em;
}
.slide-copy p { font-size: clamp(1rem, 2.2vw, 1.25rem); max-width: 46ch; color: rgba(255, 255, 255, .88); margin-bottom: 1.4rem; }
.slider-dots { position: absolute; bottom: 1.6rem; left: 0; right: 0; z-index: 3; }
.slider-dots .site-wrap { display: flex; gap: .5rem; }
.slider-dots button { width: 32px; height: 5px; border-radius: 4px; border: 0; background: rgba(255, 255, 255, .4); cursor: pointer; padding: 0; }
.slider-dots button.on { background: var(--marigold); width: 52px; }
.slider-arrows { position: absolute; right: max(1.25rem, calc((100% - 1160px) / 2)); bottom: 1.1rem; z-index: 3; display: flex; gap: .4rem; }
.slider-arrows button { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5); background: transparent; color: #fff; cursor: pointer; font-size: 1.1rem; }
.slider-arrows button:hover { background: rgba(255, 255, 255, .15); }
.hero-fallback { background: radial-gradient(120% 90% at 85% 10%, #3B3563 0%, var(--ink) 60%); }
.hero-fallback::after { display: none; }

/* Event strip under hero */
.event-strip { background: var(--marigold); color: var(--ink); }
.event-strip .site-wrap { display: grid; grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem 0; align-items: center; }
@media (min-width: 860px) { .event-strip .site-wrap { grid-template-columns: auto 1fr auto; gap: 2rem; } }
.event-when { display: flex; gap: 1.5rem; flex-wrap: wrap; font-weight: 600; }
.event-when i { margin-right: .35rem; }
.countdown { display: flex; gap: .4rem; }
.countdown div { background: var(--ink); color: #fff; border-radius: 10px; padding: .4rem .6rem; text-align: center; min-width: 58px; }
.countdown b { font-family: var(--display); font-size: 1.5rem; display: block; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown small { font-size: .72rem; opacity: .8; }

.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.about-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; } }
.about-grid p { font-size: 1.12rem; color: #45425E; max-width: 60ch; }

.samiti-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.samiti-list li { display: grid; grid-template-columns: 14px 1fr; gap: .25rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.samiti-list .sw { width: 14px; height: 14px; border-radius: 50%; margin-top: .45rem; }
.samiti-list h3 { margin: 0; font-size: 1.2rem; }
.samiti-list p { margin: .15rem 0 0; color: var(--muted); font-size: .95rem; }
.samiti-list .people { grid-column: 2; font-size: .9rem; color: var(--ink-2); }

.cta-band { background: var(--peacock); color: #fff; position: relative; overflow: hidden; }
.cta-band .site-wrap { padding: clamp(2.5rem, 6vw, 4rem) 0; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin: 0; max-width: 20ch; font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; }
.cta-band p { margin: .5rem 0 0; color: rgba(255, 255, 255, .85); }

.site-footer { background: var(--ink); color: #C9C5E3; padding: 2.5rem 0 1.5rem; }
.site-footer .site-wrap { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .site-footer .site-wrap { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { color: #E6E3F5; text-decoration: none; }
.site-footer a:hover { color: var(--marigold); }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 1.25rem; font-size: .85rem; color: #8C87B3; }
.socials { display: flex; gap: .5rem; flex-wrap: wrap; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; font-size: 1.15rem; background: rgba(255, 255, 255, .08); color: #fff; transition: background .15s, color .15s; }
.socials a:hover { background: var(--marigold); color: var(--ink); }
.social-rail { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 15; display: flex; flex-direction: column; background: var(--ink); border-radius: 12px 0 0 12px; padding: .3rem; gap: .15rem; }
.social-rail a { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; border-radius: 8px; font-size: 1.05rem; }
.social-rail a:hover { background: var(--marigold); color: var(--ink); }
@media (max-width: 760px) { .social-rail { display: none; } }

/* Register page */
.reg-page { min-height: 100vh; background: var(--bg); }
.reg-top { background: var(--ink); color: #fff; padding: calc(34px + 1rem) 0 6rem; position: relative; }
.reg-top::before { content: ""; position: absolute; inset: 0 0 auto; height: 34px; background: var(--toran); background-size: 44px 34px, 44px 34px, 44px 34px, 44px 34px, 100% 34px; }
.reg-top .brand { padding: 0; margin-bottom: 2rem; color: #fff; }
.reg-top .brand small { color: rgba(255, 255, 255, .7); }
.reg-top h1 { color: #fff; font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 800; max-width: 16ch; }
.reg-top p { color: rgba(255, 255, 255, .8); max-width: 50ch; margin: 0; }
.reg-card { background: #fff; border-radius: 22px; padding: 1.5rem; margin-top: -4rem; position: relative; max-width: 620px; box-shadow: var(--shadow); margin-bottom: 3rem; }
@media (min-width: 640px) { .reg-card { padding: 2.25rem; } }
.success-mark { width: 72px; height: 72px; border-radius: 50%; background: #E6F4EA; color: var(--ok); display: grid; place-items: center; font-size: 2.2rem; margin-bottom: 1rem; }
.reg-no { font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--peacock); letter-spacing: .02em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .sidebar, .topbar, .no-print, .filters, .pager { display: none !important; }
  .main { margin: 0; }
  .card { border: 1px solid #ccc; break-inside: avoid; }
  body { background: #fff; }
}

/* ---------- Mobile: show the full banner, never crop it ---------- */
@media (max-width: 760px) {
  /* Header sits above the banner instead of on top of it */
  .site-header { position: relative; top: auto; background: var(--ink); padding-top: 34px; }
  .site-header::before { content: ""; position: absolute; inset: 0 0 auto; height: 34px; background: var(--toran); background-size: 44px 34px, 44px 34px, 44px 34px, 44px 34px, 100% 34px; }
  .hero::before { display: none; }

  /* Slider height follows the image instead of a fixed height */
  .slider { height: auto; display: grid; }
  .slide { position: relative; inset: auto; grid-area: 1 / 1; background: var(--ink); }
  .slide img { width: 100%; height: auto; object-fit: contain; }
  .slide::after { display: none; }

  /* Banner text goes below the image so it never covers it */
  .slide-copy { position: static; padding: 1.25rem 0 3.75rem; }
  .slide-copy h1, .slide-copy h2 { font-size: clamp(1.7rem, 7vw, 2.3rem); }
  .slide-copy p { font-size: 1rem; margin-bottom: 1rem; }
  .hero-fallback .slide-copy { padding: 4rem 0 4.5rem; }

  .slider-dots { bottom: 1.4rem; }
  .slider-arrows { bottom: .9rem; }
  .slider-arrows button { width: 36px; height: 36px; }
}

/* =========================================================
   Floating "get your digital pass" button (blinking)
   ========================================================= */
.pass-fab {
  position: fixed; z-index: 60; right: 22px; bottom: 22px;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.3rem .85rem 1.1rem; border-radius: 999px;
  font: 700 1.02rem/1.1 var(--display); color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #E8501A 0%, #B3200C 100%);
  border: 2.5px solid #FFD24A;
  box-shadow: 0 8px 22px rgba(179, 32, 12, .45);
  animation: fab-blink 1.3s ease-in-out infinite;
}
.pass-fab i { font-size: 1.3rem; color: #FFD24A; }
.pass-fab::before {           /* expanding glow ring */
  content: ""; position: absolute; inset: -3px; border-radius: inherit;
  border: 3px solid #FFD24A; animation: fab-ring 1.3s ease-out infinite; pointer-events: none;
}
.pass-fab:hover, .pass-fab:focus-visible { animation-play-state: paused; background: linear-gradient(135deg, #F2A007 0%, #E8501A 100%); }
@keyframes fab-blink {
  0%, 100% { background: linear-gradient(135deg, #E8501A 0%, #B3200C 100%); transform: scale(1); }
  50% { background: linear-gradient(135deg, #F2A007 0%, #E8501A 100%); transform: scale(1.05); }
}
@keyframes fab-ring {
  0% { opacity: .9; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.35, 1.6); }
}
@media (max-width: 760px) {
  .pass-fab { left: 50%; right: auto; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); white-space: nowrap; }
  @keyframes fab-blink {
    0%, 100% { background: linear-gradient(135deg, #E8501A 0%, #B3200C 100%); transform: translateX(-50%) scale(1); }
    50% { background: linear-gradient(135deg, #F2A007 0%, #E8501A 100%); transform: translateX(-50%) scale(1.05); }
  }
  .site-footer { padding-bottom: 5.5rem; }
}
@media (prefers-reduced-motion: reduce) { .pass-fab::before { display: none; } }

/* =========================================================
   Digital invitation pass
 /* =========================================================
   Digital invitation pass (one screen, personal + generic)
   ========================================================= */
.pass-page {
  background: radial-gradient(120% 70% at 50% 0%, #5A1408 0%, #2A0A04 70%);
  min-height: 100vh; color: #fff; display: flex; flex-direction: column;
}
.pass-page.fit { height: 100vh; height: 100dvh; overflow: hidden; }
.pass-top {
  flex: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .6rem 1rem; font-weight: 600; font-size: .92rem; color: rgba(255, 255, 255, .85);
}
.pass-top a { color: #FFD24A; text-decoration: none; }
.pass-success {
  flex: none; display: flex; gap: .5rem; align-items: center; margin: 0 .75rem .25rem;
  background: #E6F4EA; color: #14532D; border-radius: 10px; padding: .45rem .75rem; font-size: .9rem; font-weight: 600;
}
.pass-success i { color: #1E7B34; font-size: 1.1rem; }

.pass-layout { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .6rem; padding: .25rem .75rem calc(.75rem + env(safe-area-inset-bottom, 0px)); }
.pass-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.pass-fit { position: relative; flex: none; }
.pass-side { flex: none; width: 100%; max-width: 460px; margin: 0 auto; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .pass-layout { flex-direction: row; align-items: center; justify-content: center; gap: 2rem; padding: .5rem 2rem 1.5rem; }
  .pass-stage { flex: 0 1 auto; height: 100%; width: min(62vw, 720px); justify-content: flex-end; }
  .pass-success { align-self: center; width: min(640px, 100% - 2rem); }
  .pass-side { width: 240px; margin: 0; }
  .pass-side .pass-actions { grid-template-columns: 1fr; }
}

/* The card is designed at a fixed 420px width; JS scales it to fit the screen */
/* =========================================================
   Digital invitation pass (one screen, personal + generic)
   ========================================================= */
.pass-page {
  background: radial-gradient(120% 70% at 50% 0%, #5A1408 0%, #2A0A04 70%);
  min-height: 100vh; color: #fff; display: flex; flex-direction: column;
}
.pass-page.fit { height: 100vh; height: 100dvh; overflow: hidden; }
.pass-top {
  flex: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .6rem 1rem; font-weight: 600; font-size: .92rem; color: rgba(255, 255, 255, .85);
}
.pass-top a { color: #FFD24A; text-decoration: none; }
.pass-success {
  flex: none; display: flex; gap: .5rem; align-items: center; margin: 0 .75rem .25rem;
  background: #E6F4EA; color: #14532D; border-radius: 10px; padding: .45rem .75rem; font-size: .9rem; font-weight: 600;
}
.pass-success i { color: #1E7B34; font-size: 1.1rem; }

.pass-layout { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .6rem; padding: .25rem .75rem calc(.75rem + env(safe-area-inset-bottom, 0px)); }
.pass-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.pass-fit { position: relative; flex: none; }
.pass-side { flex: none; width: 100%; max-width: 460px; margin: 0 auto; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .pass-layout { flex-direction: row; align-items: center; justify-content: center; gap: 2rem; padding: .5rem 2rem 1.5rem; }
  .pass-stage { flex: 0 1 auto; height: 100%; width: min(62vw, 720px); justify-content: flex-end; }
  .pass-success { align-self: center; width: min(640px, 100% - 2rem); }
  .pass-side { width: 240px; margin: 0; }
  .pass-side .pass-actions { grid-template-columns: 1fr; }
}

/* The card is designed at a fixed 420px width; JS scales it to fit the screen */
.pass-card {
  position: absolute; top: 0; left: 0; width: 420px; transform-origin: top left;
  overflow: hidden; border-radius: 18px; border: 5px solid #F3C443; background: #C9380E;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  font-family: var(--body); color: #fff; text-align: center;
}
.pass-page:not(.fit) .pass-card { position: relative; max-width: 100%; }
.pass-art { width: 100%; display: block; }
.pass-body {
  position: relative; overflow: hidden; padding: 0 18px 16px;
  background: linear-gradient(180deg, #E05A16 0%, #CB3D0E 55%, #A8240B 100%);
}
.pass-mandala { position: absolute; width: 420px; height: 420px; left: 50%; top: 20%; margin-left: -210px; opacity: .2; pointer-events: none; }
.pass-body > *:not(.pass-mandala) { position: relative; }
.pass-toran { display: block; width: calc(100% + 36px); height: 28px; margin: 0 -18px 4px; }
.pass-heading {
  margin: 0 0 6px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font: 800 22px/1.4 var(--display); color: #FFE14D; text-shadow: 0 2px 0 #7A1806;
}
.pass-flourish { width: 70px; height: 16px; flex: none; }
.pass-label { margin: 0; font-size: 15px; color: #FFE9B0; }
.pass-city { margin: -4px 0 4px; font: 600 16px/1.35 var(--body); color: #FFE9B0; }

.pass-meta { margin: -4px 0 6px; }
.pass-city, .pass-mobile { margin: 0; font: 600 16px/1.35 var(--body); color: #FFE9B0; }
.pass-valid {
  display: block; width: fit-content; margin: 10px auto 0; padding: 3px 14px; border-radius: 999px;
  background: #fff; color: #9E1F0B; font: 700 15px/1.5 var(--body); box-shadow: 0 2px 0 #7A1806;
}

.pass-name {
  margin: 0 0 4px; font: 800 34px/1.3 var(--display); color: #FFE14D;
  text-shadow: 0 2px 0 #7A1806, 0 4px 10px rgba(0, 0, 0, .35); word-break: break-word;
}
.pass-invite { margin: 0; font: 700 19px/1.3 var(--display); color: #fff; text-shadow: 0 1px 0 #7A1806; }
.pass-date { margin: 10px 0 0; display: flex; flex-direction: column; font-size: 15px; font-weight: 600; text-shadow: 0 1px 0 #7A1806; }
.pass-date b { font: 700 18px/1.3 var(--display); }
.pass-venue { background: #8E1A0A; padding: 9px 14px; font: 700 15px/1.35 var(--display); border-top: 2px solid #F3C443; }

.pass-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.pass-actions .btn { padding: .75rem .5rem; font-size: .98rem; }
.pass-actions .btn-wa { background: #1E9E4A; }
.pass-actions .btn-wa:hover { background: #17843D; }
.pass-actions .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.pass-actions .btn-ghost:hover { background: rgba(255, 255, 255, .08); }


.pass-msg { margin: .5rem 0 0; text-align: center; font-size: .9rem; font-weight: 600; color: #FFE9B0; }
.pass-save {
  position: fixed; inset: 0; z-index: 100; background: rgba(20, 5, 2, .92);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.pass-save[hidden] { display: none; }
.pass-save-box { width: min(420px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: .6rem; text-align: center; }
.pass-save-title { margin: 0; font: 800 1.3rem/1.2 var(--display); color: #FFE14D; }
.pass-save-help { margin: 0; color: #fff; font-size: .95rem; }
.pass-save-box img { flex: 1; min-height: 0; max-height: 72vh; width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; border-radius: 12px; -webkit-touch-callout: default; }
.pass-save-box .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.pass-save-box .btn-ghost:hover, .pass-save-box .btn-ghost:focus { background: rgba(255, 255, 255, .12); color: #fff; }

.pass-more { margin: .5rem 0 0; text-align: center; font-size: .88rem; color: rgba(255, 255, 255, .8); }

.pass-more a { color: #FFD24A; }

@media print {
  .pass-page, .pass-page.fit { background: #fff; height: auto; overflow: visible; }
  .pass-top, .pass-side, .pass-success { display: none !important; }
  .pass-fit { width: auto !important; height: auto !important; }
  .pass-card { position: relative; transform: none !important; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}