/* ============================================================================
   Bihar Connect — design system v3 (editorial, photo-led)
   Type:    Instrument Serif (display) + Inter (text)
   Palette: warm cream surfaces, near-black "night" panels, vermilion + gold accents
   ========================================================================== */
:root {
  --cream: #f6f1e8;
  --cream-2: #fbf8f2;
  --paper: #ffffff;
  --night: #140c0e;
  --night-2: #221317;
  --ink: #1a1412;
  --ink-2: #4a403b;
  --muted: #7a6e67;
  --line: #e9e0d2;
  --line-2: #d9cdb8;
  --vermilion: #8a1526;      /* logo maroon */
  --vermilion-2: #a51c31;
  --teal: #1f5f5b;           /* logo teal */
  --saffron: #e8891d;        /* logo saffron */
  --gold: #d6b25e;
  --gold-2: #efd58f;
  --gold-soft: #f8efd6;
  --emerald: #1f6f4a;
  --emerald-soft: #e3f2e9;
  --ruby-soft: #fbe6e6;
  --amber-soft: #fdf3d9;
  --indigo: #1f5f5b;         /* links use the logo teal */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-1: 0 1px 2px rgba(40, 20, 10, .04), 0 8px 24px -14px rgba(40, 20, 10, .12);
  --shadow-2: 0 2px 6px rgba(20, 10, 5, .06), 0 20px 44px -24px rgba(20, 10, 5, .28);
  --serif: 'Fraunces', 'Georgia', serif;
  --sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); line-height: 1.6; background: var(--cream); -webkit-font-smoothing: antialiased; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px; }
.skip:focus { left: 8px; z-index: 100; }
.wrap { width: 100%; max-width: 1520px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px); }
.wrap.narrow-wrap { max-width: 1120px; }
body { overflow-x: clip; }
a { color: var(--indigo); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; font-variation-settings: 'SOFT' 100, 'opsz' 40; line-height: 1.15; margin: 0 0 .5rem; color: var(--ink); letter-spacing: 0; font-variant-numeric: lining-nums; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
h1 em, h2 em, .hero h1 em { font-style: italic; color: var(--vermilion); }
h2.rule { position: relative; padding-bottom: .5rem; margin-bottom: 1rem; }
h2.rule::after { content: ''; position: absolute; left: 0; bottom: 0; width: 44px; height: 2px; background: var(--vermilion); }
p { margin: 0 0 1rem; }
.lead { font-size: 1.05rem; color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.inline { display: inline; }
.hidden { display: none !important; }
.mt { margin-top: 1.1rem; } .mb { margin-bottom: 1.1rem; }
.eyebrow { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--vermilion); margin-bottom: .5rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; font-size: .8rem; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-size: .86rem; font-weight: 500; backdrop-filter: blur(8px); }
.chip svg { width: 14px; height: 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(246, 241, 232, .82); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(0, 0, 0, .05); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { display: block; height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); font-weight: 500; font-variation-settings: 'SOFT' 100; }
@media (max-width: 480px) { .brand-mark { height: 36px; } .brand-text strong { font-size: 1.2rem; } }
.hero .emblem { position: absolute; top: 18px; right: 18px; height: 70px; width: auto; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .5)); z-index: 1; }
@media (max-width: 819px) { .hero-inner { padding-top: 110px; } }
@media (min-width: 820px) { .hero .emblem { top: 32px; right: 56px; height: 130px; } }
.brand-text .w1 { color: var(--vermilion); } .brand-text .w2 { color: var(--teal); } .brand-text .w3 { color: var(--saffron); font-style: italic; }
.brand-text small { color: var(--muted); font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; background: rgba(255, 255, 255, .6); border: 1px solid var(--line); padding: 4px; border-radius: 999px; }
.nav a, .nav .linkish { text-decoration: none; color: var(--ink); padding: 7px 13px; border-radius: 999px; font-weight: 600; font-size: .86rem; background: none; border: 0; font-family: var(--sans); cursor: pointer; transition: all .15s; }
.nav a.active { background: var(--ink); color: #fff; }
.nav a:hover:not(.active), .nav .linkish:hover { background: var(--cream); }

main { padding: 24px clamp(16px, 4vw, 56px) 64px; min-height: 60vh; }
body.home main { padding: 0 0 64px; max-width: none; }
body.home main > .wrap { padding-top: 0; }
.site-footer { background: var(--night); color: #cfc3b6; margin-top: 40px; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; padding: 36px 20px 40px; flex-wrap: wrap; font-size: .92rem; }
.footer-row strong { font-family: var(--serif); font-size: 1.2rem; color: #fff; font-weight: 500; }
.footer-row a { color: var(--gold-2); }

/* Cards */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow-1); margin-bottom: 22px; position: relative; }
.card.narrow { max-width: 620px; margin-left: auto; margin-right: auto; }
.card.accent { border-top: 0; }
.card.dark { background: var(--night-2); color: #e8ddd0; border-color: rgba(255, 255, 255, .08); }
.card.dark h2 { color: #fff; }
.grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--vermilion); color: #fff; box-shadow: 0 10px 24px -10px rgba(180, 48, 63, .7); }
.btn-primary:hover { background: var(--vermilion-2); }
.btn-secondary { background: var(--gold); color: var(--night); box-shadow: 0 10px 24px -12px rgba(214, 178, 94, .9); }
.btn-secondary:hover { background: var(--gold-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { background: var(--paper); }
.btn-success { background: var(--emerald); color: #fff; }
.btn-danger { background: var(--vermilion); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(0, 0, 0, .05); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 6px 16px; font-size: .9rem; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 14px 0; }

/* Forms */
label { display: block; font-weight: 600; margin-bottom: 5px; font-size: .88rem; color: var(--ink); }
.field { margin-bottom: 18px; }
.field .hint { color: var(--muted); font-size: .86rem; margin-top: 5px; }
.field .error { color: var(--vermilion); font-weight: 600; font-size: .9rem; margin-top: 5px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=date], input[type=datetime-local], input[type=file], select, textarea {
  width: 100%; font: inherit; font-size: .98rem; padding: 11px 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); min-height: 46px; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #b9a98d; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(26, 20, 18, .08); }
button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.field.has-error input, .field.has-error select { border-color: var(--vermilion); }
textarea { min-height: 120px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231a1412' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper input { text-align: center; max-width: 96px; font-family: var(--serif); font-size: 1.25rem; font-variant-numeric: lining-nums; }
.stepper button { min-width: 46px; min-height: 46px; font-size: 1.3rem; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--paper); color: var(--ink); cursor: pointer; transition: all .15s; }
.stepper button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.checkbox input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--vermilion); }

/* Totals */
.totals { background: var(--night); color: #efe6d9; border-radius: var(--radius-sm); padding: 18px 20px; display: grid; gap: 8px; }
.totals .row { display: flex; justify-content: space-between; align-items: baseline; }
.totals .big { font-family: var(--serif); font-size: 1.7rem; color: var(--gold-2); font-variant-numeric: lining-nums; }
.totals .small { color: #b9aa98; }

/* Flashes & notices */
.flashes { margin-bottom: 18px; }
.flash { padding: 13px 18px; border-radius: var(--radius-sm); margin-bottom: 8px; font-weight: 500; border: 1px solid transparent; }
.flash-success { background: var(--emerald-soft); color: #134a2f; border-color: #bfe0cc; }
.flash-error { background: var(--ruby-soft); color: #7a1218; border-color: #f0c2c2; }
.flash-info { background: var(--amber-soft); color: #5c4300; border-color: var(--gold-2); }
.notice { padding: 15px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid var(--gold-2); background: var(--amber-soft); }
.notice.good { border-color: #bfe0cc; background: var(--emerald-soft); }
.notice.bad { border-color: #f0c2c2; background: var(--ruby-soft); }
.notice.info { border-color: #c9d3ea; background: #eef2fa; }

/* Badges */
.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; border: 1px solid transparent; }
.badge-awaiting_payment { background: var(--amber-soft); color: #6a4b00; border-color: var(--gold-2); }
.badge-pending_verification { background: #eef2fa; color: var(--indigo); border-color: #c9d3ea; }
.badge-approved, .badge-valid, .badge-sent { background: var(--emerald-soft); color: #134a2f; border-color: #bfe0cc; }
.badge-rejected, .badge-void, .badge-failed { background: var(--ruby-soft); color: #7a1218; border-color: #f0c2c2; }
.badge-cancelled, .badge-redeemed, .badge-superseded, .badge-skipped { background: #ece7de; color: #4f463f; }
.badge-pending, .badge-queued { background: var(--amber-soft); color: #6a4b00; }
.badge-demo { background: #f6def0; color: #7a1060; }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; border-radius: 0 0 28px 28px; min-height: min(72vh, 620px); display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow-2); isolation: isolate; }
.hero .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: 60% 55%; transform: scale(1.03); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1.1); } }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 5, 6, .25) 0%, rgba(10, 5, 6, .2) 40%, rgba(10, 5, 6, .86) 100%), linear-gradient(90deg, rgba(10, 5, 6, .55) 0%, rgba(10, 5, 6, 0) 60%); }
.hero-inner { position: relative; padding: 48px clamp(20px, 4vw, 56px) 36px; width: 100%; max-width: 1520px; margin: 0 auto; }
.hero .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.3rem, 7vw, 4.2rem); color: #fff; line-height: 1.02; margin: 0 0 12px; max-width: 14ch; letter-spacing: -.01em; }
.hero h1 em { color: var(--gold-2); }
.hero .lead { color: rgba(255, 255, 255, .86); max-width: 54ch; font-size: 1rem; }
.hero .btn-row { margin-top: 20px; }
.hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.hero .btn-outline:hover { background: rgba(255, 255, 255, .12); }
.hero .fine { color: rgba(255, 255, 255, .7); font-size: .82rem; margin: 8px 0 0; max-width: 60ch; }
.hero .credit { position: absolute; right: 16px; bottom: 12px; font-size: .68rem; color: rgba(255, 255, 255, .45); }
.hero .credit a { color: inherit; }
@media (min-width: 820px) { .hero-inner { padding: 56px clamp(24px, 4vw, 56px) 44px; } .hero { min-height: 560px; } .hero h1 { font-size: clamp(3rem, 5.2vw, 4.8rem); } }

/* ---------------------------------------------------------------- Bento */
.bento { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-top: 18px; }
@media (min-width: 820px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, auto); gap: 14px; }
  .t-count { grid-column: 1; grid-row: 1; } .t-price { grid-column: 2; grid-row: 1; } .t-photo { grid-column: 3; grid-row: 1 / 3; } .t-venue { grid-column: 4; grid-row: 1; }
  .t-org { grid-column: 1 / 3; grid-row: 2; } .t-deadline { grid-column: 4; grid-row: 2; }
  .t-wa { grid-column: 1 / 3; grid-row: 3; } .t-food { grid-column: 3 / 5; grid-row: 3; }
}
.bento { grid-auto-flow: dense; }
.tile { position: relative; overflow: hidden; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); padding: 58px 18px 18px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; transition: transform .2s ease, box-shadow .2s ease; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.tile .k { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.tile .v { font-family: var(--serif); font-size: 1.25rem; line-height: 1.1; color: var(--ink); font-variant-numeric: lining-nums; }
.tile .v.sans { font-family: var(--sans); font-size: .95rem; font-weight: 500; line-height: 1.45; }
.tile .ic { position: absolute; top: 16px; left: 16px; width: 34px; height: 34px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; color: var(--vermilion); }
.tile .ic svg { width: 18px; height: 18px; }
.tile.photo { padding: 0; border: 0; text-decoration: none; }
.tile.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile.photo:hover img { transform: scale(1.04); }
.tile.photo .cap { position: relative; margin: auto 0 0; padding: 18px; color: #fff; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .72)); font-size: .92rem; font-weight: 500; }
.tile.photo .cap strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; display: block; }
.tile.night { background: var(--night); border-color: var(--night); color: #efe6d9; }
.tile.night .k { color: #b9aa98; } .tile.night .v { color: #fff; } .tile.night .ic { background: rgba(255, 255, 255, .1); color: var(--gold-2); }
.tile.gold { background: linear-gradient(145deg, var(--gold-2), var(--gold)); border-color: transparent; color: var(--night); }
.tile.gold .k { color: rgba(20, 12, 14, .6); } .tile.gold .ic { background: rgba(255, 255, 255, .5); color: var(--night); }
a.tile { text-decoration: none; color: inherit; }
.tile.green { background: #e7f6ed; border-color: #cfead9; }
.tile.green .ic { background: #25d366; color: #fff; }
.tile.span-2 { grid-column: span 2; }
.tile.row-2 { grid-row: span 2; }
.tile .price { font-family: var(--serif); font-size: 2.2rem; line-height: 1; font-variant-numeric: lining-nums; }
.tile .price small { display: block; font-family: var(--sans); font-size: .86rem; font-weight: 500; margin: 8px 0 0; }
.countdown { display: flex; gap: 10px; }
.countdown div { text-align: center; }
.countdown b { display: block; font-family: var(--serif); font-size: 1.6rem; line-height: 1; font-weight: 400; font-variant-numeric: lining-nums; }
.countdown span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #b9aa98; }
.contacts { display: grid; gap: 4px; font-size: .95rem; }
.contacts a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contacts a:hover { color: var(--vermilion); }

/* ---------------------------------------------------------------- Sections */
.section { margin-top: 44px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 46ch; }
.steps { display: grid; gap: 14px; counter-reset: s; padding: 0; margin: 0; list-style: none; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 18px; position: relative; padding-top: 56px; box-shadow: var(--shadow-1); }
.steps li::before { counter-increment: s; content: '0' counter(s); position: absolute; left: 18px; top: 14px; font-family: var(--serif); font-size: 1.2rem; color: var(--vermilion); font-variant-numeric: lining-nums; }
.steps li strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; display: block; margin-bottom: 4px; }
.steps li p { color: var(--ink-2); font-size: .9rem; margin: 0; }
.feature { display: grid; gap: 0; overflow: hidden; border-radius: 0; background: var(--night); color: #efe6d9; box-shadow: var(--shadow-2); }
@media (min-width: 820px) { .feature { grid-template-columns: 1.1fr 1fr; } }
.feature img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; display: block; }
.feature .body { padding: clamp(36px, 5vw, 80px) clamp(24px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; }
.feature img { min-height: 320px; }
.feature h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.feature p { color: #cfc3b6; }
.feature .btn-row { margin-bottom: 0; }
.marquee { overflow: hidden; white-space: nowrap; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 10px 0; margin: 0; font-family: var(--serif); font-size: 1.05rem; color: var(--ink-2); }
.marquee span { display: inline-block; padding-right: 48px; animation: marquee 40s linear infinite; }
.marquee i { color: var(--vermilion); font-style: normal; padding: 0 18px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee span, .hero .bg { animation: none; } }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px; background: rgba(20, 12, 14, .92); color: #fff; backdrop-filter: blur(10px); box-shadow: var(--shadow-2); transform: translateY(120%); transition: transform .3s ease; }
.sticky-cta.show { transform: none; }
.sticky-cta strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 400; font-variant-numeric: lining-nums; }
.sticky-cta small { display: block; font-size: .72rem; color: #b9aa98; }
@media (max-width: 819px) { .sticky-cta { display: flex; } body.has-sticky main { padding-bottom: 110px; } }

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; border-radius: 20px; min-height: 170px; display: flex; align-items: flex-end; color: #fff; margin-bottom: 22px; box-shadow: var(--shadow-2); }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 5, 6, .15) 0%, rgba(10, 5, 6, .55) 45%, rgba(10, 5, 6, .9) 100%); }
.page-hero .body { text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.page-hero .body { position: relative; padding: 26px 24px; }
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 0 0 4px; }
.page-hero p { color: rgba(255, 255, 255, .82); margin: 0; }
.page-hero .eyebrow { color: var(--gold-2); }

/* Definition lists */
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.dl dt { color: var(--muted); font-size: .9rem; } .dl dd { margin: 0; font-weight: 500; word-break: break-word; }
@media (max-width: 480px) { .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 10px; } }

/* UPI panel */
.upi-box { text-align: center; }
.upi-box svg { width: 232px; height: 232px; max-width: 100%; background: #fff; padding: 10px; border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow-1); }
.upi-id { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.15rem; background: var(--cream); border: 1px solid var(--line-2); padding: 8px 14px; border-radius: 10px; display: inline-block; word-break: break-all; }
.amount-big { font-family: var(--serif); font-size: 2.2rem; color: var(--ink); line-height: 1.05; font-variant-numeric: lining-nums; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--cream); font-weight: 600; white-space: nowrap; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
td.num, th.num { text-align: right; white-space: nowrap; }
tr:hover td { background: var(--cream-2); }

/* Stat tiles (admin) */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow-1); }
.stat .k { color: var(--muted); font-size: .8rem; font-weight: 500; }
.stat .v { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); line-height: 1.1; margin-top: 4px; font-variant-numeric: lining-nums; }
.stat.verified { border-color: #bfe0cc; background: linear-gradient(160deg, var(--emerald-soft), #fff); }
.stat.verified .v { color: var(--emerald); }
.stat.expected { border-color: var(--gold-2); background: linear-gradient(160deg, var(--gold-soft), #fff); }

/* Coupons */
.coupon-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .coupon-grid { grid-template-columns: repeat(2, 1fr); } }
.coupon { border: 1.5px solid var(--ink); border-radius: 20px; padding: 18px 16px 18px 18px; background: #fff; position: relative; display: grid; grid-template-columns: 1fr 124px; gap: 12px; page-break-inside: avoid; break-inside: avoid; box-shadow: var(--shadow-1); }
.coupon::before { content: ''; position: absolute; inset: 6px; border: 1px solid var(--gold); border-radius: 15px; pointer-events: none; }
.coupon .no { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); letter-spacing: .01em; font-variant-numeric: lining-nums; }
.coupon .meta { font-size: .88rem; color: var(--muted); }
.coupon .eyebrow { margin-bottom: 2px; }
.coupon svg { width: 124px; height: 124px; background: #fff; border-radius: 8px; }
.coupon.redeemed { opacity: .6; } .coupon.redeemed::after { content: 'REDEEMED'; position: absolute; bottom: 42%; left: 0; right: 0; text-align: center; font-family: var(--serif); font-size: 1.5rem; color: var(--vermilion); transform: rotate(-12deg); letter-spacing: .1em; }
.coupon.void { opacity: .4; }

/* Counter */
.scanner { position: relative; background: #0d0809; border-radius: 20px; overflow: hidden; aspect-ratio: 4/3; max-height: 60vh; border: 1px solid var(--line-2); }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner .frame { position: absolute; inset: 15%; border: 2px solid var(--gold-2); border-radius: 16px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .45); }
.result { border-radius: 20px; padding: 20px; margin-top: 16px; border: 2px solid var(--line); background: var(--paper); box-shadow: var(--shadow-1); }
.result.valid { border-color: var(--emerald); background: var(--emerald-soft); }
.result.redeemed { border-color: var(--vermilion); background: var(--ruby-soft); }
.result.void { border-color: #888; background: #eee; }
.result .big { font-family: var(--serif); font-size: 1.45rem; }

/* Misc */
details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 10px; background: var(--cream-2); }
summary { cursor: pointer; font-weight: 600; }
.screenshot { max-width: 100%; border: 1px solid var(--line); border-radius: 10px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 8px 0 8px 20px; border-left: 2px solid var(--line-2); position: relative; font-size: .94rem; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); border: 2px solid var(--paper); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 8px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-2); text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--ink); }
.tabs a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; }
.otp-input { font-family: var(--serif); font-size: 1.9rem; letter-spacing: .45em; text-align: center; font-variant-numeric: lining-nums; }
.linkish { background: none; border: 0; color: var(--indigo); text-decoration: underline; font: inherit; cursor: pointer; padding: 0; }
.madhubani-band { display: none; }

@media print {
  .site-header, .site-footer, .no-print, .flashes, .sticky-cta { display: none !important; }
  body { background: #fff; } main { padding: 0; }
  .coupon { border-color: #000; box-shadow: none; }
  .coupon-grid { grid-template-columns: repeat(2, 1fr); }
}
