/* BNI Benchmark visitors.
   One accent (BNI red #CF2030). Light and dark themes via prefers-color-scheme.
   Phone vs laptop via (hover: hover) and (pointer: fine), never the user agent. */

:root {
  /* BNI brand colours (Brand Standards Manual, June 2020, p. 6) */
  --accent: #CF2030;          /* BNI Red */
  --accent-hover: #B41C2A;
  --accent-text: #C41E2D;
  --accent-soft: #FDECEE;
  --accent-ring: rgba(207, 32, 48, .18);
  --on-accent: #FFFFFF;
  --band: #CF2030;

  --bg: #F2F2F2;              /* Sterling Light Grey */
  --surface: #FFFFFF;
  --surface-2: #FAFAFA;
  --border: #E2E2E2;
  --border-strong: #C8C8C8;   /* Sterling Grey */
  --text: #000000;            /* Power Black */
  --muted: #64666A;           /* Granite Grey */
  --subtle: #64666A;

  --ok: #15803D;
  --ok-soft: #ECFDF3;
  --warn: #92400E;
  --warn-soft: #FFF7E6;

  --radius-lg: 18px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px -12px rgba(0, 0, 0, .16);
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, .06);

  /* Official BNI font: Helvetica Neue, with Arial as the approved substitute (p. 15). */
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent-text: #F87179;
    --accent-soft: #3A1519;
    --accent-ring: rgba(248, 113, 121, .25);
    --band: #A8192A;
    --bg: #0E0E10;
    --surface: #18181B;
    --surface-2: #1F1F23;
    --border: #2C2C31;
    --border-strong: #3F3F46;
    --text: #F4F4F5;
    --muted: #A1A1AA;
    --subtle: #8B8B94;
    --ok: #4ADE80;
    --ok-soft: #10291A;
    --warn: #FBBF24;
    --warn-soft: #2D2310;
    --shadow: 0 0 0 1px var(--border);
    --shadow-sm: none;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font); font-size: 1rem; line-height: 1.55;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: 1.625rem; }
h2 { font-size: 1.125rem; margin-top: 1.75rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
code, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
strong { font-weight: 600; }
img { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -999px; top: 0; z-index: 20; background: var(--surface); color: var(--text); padding: .75rem 1rem; }
.skip:focus { left: .5rem; top: .5rem; }

/* Red band: logo lockup and steps. The card overlaps its lower edge. */
.band { background: var(--band); color: #FFFFFF; padding: 1rem 1rem 4.5rem; }
.band-inner { max-width: 520px; margin: 0 auto; }
.wide .band-inner { max-width: 880px; }
.brand { display: inline-block; color: #FFFFFF; text-decoration: none; }
/* BNI logo + chapter name, drawn to the brand manual's proportions (tools/make-lockup.py). */
.brand-lockup { display: block; height: 56px; width: auto; }
.admin-title { margin-left: auto; font-weight: 600; font-size: .9375rem; }
.admin-title + .logout { margin-left: 0; }

/* Step indicator, white on the band */
.steps ol { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .375rem; position: relative; font-size: .8125rem; color: rgba(255, 255, 255, .75); }
.step + .step::before {
  content: ""; position: absolute; top: 14px; right: calc(50% + 18px); width: calc(100% - 36px); height: 2px;
  background: rgba(255, 255, 255, .3); border-radius: 2px;
}
.step-done + .step::before { background: #FFFFFF; }
.step-dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: .8125rem; border: 2px solid rgba(255, 255, 255, .55); color: #FFFFFF;
}
.step-current { color: #FFFFFF; font-weight: 600; }
.step-current .step-dot { background: #FFFFFF; border-color: #FFFFFF; color: var(--band); box-shadow: 0 0 0 4px rgba(255, 255, 255, .2); }
.step-done .step-dot { background: rgba(255, 255, 255, .18); border-color: #FFFFFF; }

/* Content */
.shell { width: 100%; max-width: 552px; margin: -3.5rem auto 0; padding: 0 1rem 2rem; position: relative; }
.card { background: var(--surface); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); }
.card-narrow { max-width: 420px; margin: 2rem auto; }
.lede { color: var(--muted); margin-bottom: 1.5rem; }
.lede strong { color: var(--text); }
@media (min-width: 600px) { .card { padding: 2.25rem; } }

/* Footer on white with BNI's Primary Super Graphic anchored bottom-right (manual pp. 16–17).
   Nothing touches the graphic, and it only appears on white, so it is hidden in dark mode. */
.foot { position: relative; margin-top: 2rem; min-height: 132px; padding: 1.25rem 1rem; background: #FFFFFF; color: var(--muted); font-size: .8125rem; overflow: hidden; }
/* Text above the graphic, never touching it: the bottom padding reserves the graphic's height. */
.foot p { margin: 0; position: relative; z-index: 1; }
.supergraphic { position: absolute; right: 0; bottom: 0; width: min(55%, 440px); height: auto; display: block; }
.foot { padding-bottom: calc(min(55vw, 440px) / 2 + 1rem); }
@media (prefers-color-scheme: dark) {
  .foot { background: var(--surface); }
  .supergraphic { display: none; }
}

/* Forms */
.field { margin-bottom: 1.25rem; }
label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: .375rem; }
.optional { font-weight: 400; color: var(--subtle); }
.hint { color: var(--subtle); font-size: .875rem; margin: -.125rem 0 .5rem; }
input, select, textarea {
  width: 100%; min-height: 52px; padding: .75rem 1rem;
  font: inherit; font-size: 1rem; /* 16px stops iOS zoom */
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: var(--subtle); opacity: .8; }
input:hover, select:hover, textarea:hover { border-color: var(--subtle); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
textarea { min-height: 6rem; resize: vertical; }
input[type="file"] { padding: .625rem; background: var(--surface-2); cursor: pointer; }
input[type="file"]::file-selector-button {
  font: inherit; font-weight: 600; font-size: .875rem; margin-right: .75rem; padding: .5rem .875rem;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); cursor: pointer;
}
.has-error input { border-color: var(--accent); }
.error-text { color: var(--accent-text); font-weight: 600; font-size: .875rem; margin: 0 0 .375rem; }
.ok-text { color: var(--ok); font-weight: 600; font-size: .875rem; margin: 0 0 .375rem; }
.input-utr { font-family: var(--mono); font-size: 1.25rem; letter-spacing: .1em; }
.check { display: flex; gap: .625rem; align-items: center; font-weight: 600; min-height: 48px; margin: 0; }
.check input { width: 22px; height: 22px; min-height: 0; box-shadow: none; accent-color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.privacy { color: var(--subtle); font-size: .8125rem; margin: 1rem 0 0; text-align: center; }
.back-link { margin: 1rem 0 0; text-align: center; font-size: .9375rem; }
.back-link + .back-link { margin-top: .5rem; }

/* Form groups */
.group { margin: 0 0 .5rem; }
.group + .group { border-top: 1px solid var(--border); padding-top: 1.25rem; }
.group-title { margin: 0 0 1rem; font-size: .8125rem; font-weight: 700; color: var(--accent-text); text-transform: uppercase; letter-spacing: .08em; }

/* The fixed visit date on the registration form */
.visit { margin: 0 0 1.25rem; padding: .875rem 1rem; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--surface-2); }
.visit p { margin: 0; }
.visit-date { font-size: 1.125rem; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.visit-meta { color: var(--muted); font-size: .9375rem; margin-top: .125rem !important; }
.visit-by { margin-top: .5rem !important; padding-top: .5rem; border-top: 1px solid var(--border); font-size: .9375rem; color: var(--muted); }
.visit-by strong { color: var(--text); }
.badge-accent { background: var(--accent-soft); border-color: rgba(207, 32, 48, .4); color: var(--accent-text); }

/* Invite page */
.invite-result { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.invite-result h2 { margin: 0 0 .875rem; }
/* Message preview, styled like a sent chat message */
.bubble {
  margin: 0 0 1.25rem; padding: .75rem 1rem; border-radius: 14px 14px 4px 14px;
  background: #DCF8C6; color: #111B21; font-size: .9375rem; line-height: 1.5; overflow-wrap: anywhere;
}
@media (prefers-color-scheme: dark) { .bubble { background: #005C4B; color: #E9EDEF; } }
.invite-actions { display: grid; gap: .625rem; }
.btn-whatsapp { background: #1F8F4E; color: #FFFFFF; }
.btn-whatsapp:hover { background: #18773F; }
.btn .icon { width: 20px; height: 20px; }
.btn-copy.btn-block { width: 100%; height: 52px; font-size: 1rem; }

/* Tom Select (invite page): match the site's inputs */
.ts-wrapper.single .ts-control, .ts-wrapper .ts-control {
  min-height: 52px; padding: .75rem 2.5rem .75rem 1rem; font: inherit; font-size: 1rem;
  color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.ts-wrapper .ts-control input { font: inherit; font-size: 1rem; color: var(--text); min-height: 0; box-shadow: none; }
.ts-wrapper.focus .ts-control { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.ts-dropdown {
  margin-top: 4px; font-size: 1rem; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.ts-dropdown .ts-dropdown-content { max-height: 280px; }
.ts-dropdown .option, .ts-dropdown .create, .ts-dropdown .no-results { padding: .75rem 1rem; min-height: 44px; }
.ts-dropdown .active { background: var(--accent-soft); color: var(--text); }
.ts-dropdown .create { color: var(--muted); }
.ts-dropdown .create strong { color: var(--accent-text); }
.ts-dropdown .no-results { color: var(--subtle); }
.ts-dropdown .highlight { background: none; color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.label-sub { margin-top: .75rem; font-weight: 500; font-size: .875rem; color: var(--muted); }

/* Fixed prefix inside an input, e.g. "+91" */
.input-group { display: flex; align-items: stretch; }
.input-prefix {
  display: flex; align-items: center; padding: 0 .875rem; font-weight: 600; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--border-strong); border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
}
.input-group input { border-radius: 0 var(--radius) var(--radius) 0; }
.input-group:focus-within .input-prefix { border-color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .75rem 1.25rem;
  font: inherit; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 2px rgba(207, 32, 48, .3), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--subtle); }
.btn-ghost { background: transparent; color: inherit; }
.btn-ghost:hover { background: rgba(127, 127, 127, .12); }
.btn-danger { background: transparent; color: var(--accent-text); border-color: var(--accent); }
.btn-danger:hover { background: var(--accent-soft); }
.btn-block { width: 100%; }
.btn-small { min-height: 40px; padding: .375rem .875rem; font-size: .875rem; border-radius: var(--radius-sm); }
.btn[disabled] { opacity: .6; cursor: progress; }
@media (pointer: coarse) { .btn-small { min-height: 48px; } }

/* Alerts and badges */
.alert { border-radius: var(--radius); padding: .875rem 1rem; margin-bottom: 1.25rem; border: 1px solid; }
.alert p:last-child, .alert ul { margin-bottom: 0; }
.alert ul { padding-left: 1.25rem; }
.alert-error { background: var(--accent-soft); border-color: rgba(207, 32, 48, .4); }
.alert-error a { color: var(--text); }
.alert-warn { background: var(--warn-soft); border-color: rgba(146, 64, 14, .35); }
.alert-ok { background: var(--ok-soft); border-color: rgba(21, 128, 61, .35); }
.badge {
  display: inline-block; padding: .125rem .5rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600; white-space: nowrap; vertical-align: middle; font-family: var(--font);
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--muted);
}
.badge-paid_unverified, .badge-warn { background: var(--warn-soft); border-color: rgba(146, 64, 14, .35); color: var(--warn); }
.badge-verified { background: var(--ok-soft); border-color: rgba(21, 128, 61, .35); color: var(--ok); }
.badge-not_received { background: var(--accent-soft); border-color: rgba(207, 32, 48, .4); color: var(--accent-text); }

/* Phone or laptop */
.on-desktop { display: none; }
@media (hover: hover) and (pointer: fine) {
  .on-touch { display: none !important; }
  .on-desktop { display: block; }
}

/* Pay screen */
.pay { display: grid; gap: 1.5rem; grid-template-areas: "summary" "steps" "other" "qr" "bar"; }
.pay-summary { grid-area: summary; text-align: center; }
.pay-steps { grid-area: steps; }
.other-ways { grid-area: other; }
.pay-qr { grid-area: qr; text-align: center; }
.eyebrow { font-size: .8125rem; font-weight: 600; color: var(--muted); margin: 0; }
.amount { font-size: 3rem; font-weight: 800; line-height: 1; margin: .375rem 0 1.25rem; color: var(--accent-text); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.ticket {
  display: grid; grid-template-columns: 1fr 1fr; margin: 0; text-align: left;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
}
.ticket div { padding: .75rem 1rem; }
.ticket div + div { border-left: 1px dashed var(--border-strong); }
.ticket dt { font-size: .75rem; font-weight: 600; color: var(--subtle); text-transform: uppercase; letter-spacing: .06em; }
.ticket dd { margin: .125rem 0 0; font-weight: 700; font-size: 1.0625rem; }
.ref { font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.ticket .ref { font-size: 1.375rem; color: var(--text); }
.ref-inline { font-variant-numeric: tabular-nums; }

.howto { list-style: none; counter-reset: step; margin: 0 0 .75rem; padding: 0; }
.howto li { counter-increment: step; position: relative; padding: .5rem 0 .5rem 2.5rem; font-size: 1.0625rem; line-height: 1.4; }
.howto li::before {
  content: counter(step); position: absolute; left: 0; top: .375rem; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: .8125rem; font-weight: 700;
  background: var(--accent-soft); color: var(--accent-text);
}
.pay-steps .hint { margin: .25rem 0 0; }

/* "Other ways to pay": closed by default. */
.other-ways { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.other-ways summary {
  min-height: 52px; padding: .875rem 1rem; cursor: pointer; border-radius: var(--radius);
  font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.other-ways summary::-webkit-details-marker { display: none; }
.other-ways summary::after {
  content: ""; width: 9px; height: 9px; margin-right: 4px;
  border-right: 2px solid var(--subtle); border-bottom: 2px solid var(--subtle);
  transform: rotate(45deg) translateY(-3px); transition: transform .15s ease;
}
.other-ways[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.other-ways-body { padding: 1rem; border-top: 1px solid var(--border); }

/* Each method is one boxed option. "or" separates them. */
.way-title { font-size: 1rem; font-weight: 600; letter-spacing: 0; margin: 0 0 .625rem; }
.way-note { font-size: .9375rem; color: var(--muted); margin: .625rem 0 0; }
.way-note strong { color: var(--text); }
.way .btn-block { margin-top: .875rem; }
.or { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; color: var(--subtle); font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.btn-app { padding-inline: .5rem; font-size: .9375rem; }

/* Key–value rows: text on the left, copy button centred on the right. */
.kv { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.kv-row { display: flex; align-items: center; gap: .75rem; padding: .625rem .625rem .625rem .875rem; min-height: 64px; }
.kv-row + .kv-row { border-top: 1px solid var(--border); }
.kv-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .125rem; }
.kv-label { font-size: .75rem; color: var(--subtle); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.kv-value { font-weight: 600; font-size: .9375rem; overflow-wrap: anywhere; }
code.kv-value { font-size: .875rem; }
/* Never break inside a value. The UPI ID may break only before "@" (a <wbr> in the markup). */
code.kv-value { white-space: nowrap; overflow-wrap: normal; }
.kv-vpa { white-space: normal; }
.kv-vpa span { white-space: nowrap; }

/* Icons (Phosphor, regular weight) */
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.way-title { display: flex; align-items: center; gap: .5rem; }
.way-title .icon { color: var(--accent-text); }
.other-ways summary::after { content: none; }
.other-ways .caret { color: var(--subtle); transition: transform .15s ease; }
.other-ways[open] .caret { transform: rotate(180deg); }
.link-icon { display: inline-flex; align-items: center; gap: .375rem; }
.step-dot .icon { width: 16px; height: 16px; }
.tick .icon { width: 36px; height: 36px; }

.btn-copy {
  flex: none; min-width: 92px; height: 44px; padding: 0 .75rem;
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: .875rem; font-weight: 600;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); cursor: pointer; box-shadow: var(--shadow-sm);
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.btn-copy:hover { border-color: var(--subtle); }
.btn-copy > span { display: inline-flex; align-items: center; gap: .375rem; }
.btn-copy .icon { width: 18px; height: 18px; color: var(--muted); }
.btn-copy .when-copied { display: none; }
.btn-copy.copied { color: var(--ok); border-color: var(--ok); background: var(--ok-soft); }
.btn-copy.copied .icon { color: var(--ok); }
.btn-copy.copied .when-idle { display: none; }
.btn-copy.copied .when-copied { display: inline-flex; }
@media (pointer: coarse) { .btn-copy { height: 48px; } }
.copy-status { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* QR panel. On a phone it appears once "Other ways to pay" is open. */
.other-ways:not([open]) ~ .pay-qr { display: none; }
.qr-card { display: inline-block; background: #FFFFFF; color: #18181B; border-radius: var(--radius); overflow: hidden; border: 1px solid #E4E4E7; }
.qr-card-head { background: #CF2030; color: #FFFFFF; font-weight: 700; font-size: .9375rem; padding: .5rem 1rem; letter-spacing: .01em; }
.qr-svg { display: block; width: 200px; height: 200px; margin: .75rem auto .25rem; }
.qr-svg path { fill: #000000; }
.qr-caption { font-size: .875rem; margin: 0; padding: 0 1rem 1rem; color: #3F3F46; }
.qr-caption span { display: block; font-size: .75rem; color: #71717A; }

/* Sticky pay bar on phones */
.paybar {
  grid-area: bar; position: sticky; bottom: 0; z-index: 5;
  display: flex; gap: .5rem;
  margin: 0 -1.5rem -1.5rem; padding: .875rem 1rem calc(.875rem + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 -8px 24px -12px rgba(24, 24, 27, .2);
}
.btn-pay { flex: 2; font-size: 1.125rem; }
.btn-paid { flex: 1; background: var(--surface); color: var(--text); border-color: var(--border-strong); }
@media (min-width: 600px) { .paybar { margin: 0 -2.25rem -2.25rem; padding-inline: 2.25rem; } }

/* Laptop or desktop: QR first, always visible, and "I've paid" is the main button. */
@media (hover: hover) and (pointer: fine) {
  .other-ways:not([open]) ~ .pay-qr { display: block; }
  .btn-paid { background: var(--accent); color: var(--on-accent); border-color: transparent; }
  .btn-paid:hover { background: var(--accent-hover); }
  .paybar { position: static; margin: 0; padding: 0; border: 0; box-shadow: none; background: none; }
}
@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
  .shell-wide { max-width: 912px; }
  .pay {
    grid-template-columns: 280px 1fr;
    grid-template-areas: "qr summary" "qr steps" "qr bar" "qr other";
    column-gap: 2.5rem; row-gap: 1.25rem; align-items: start;
  }
  .qr-svg { width: 232px; height: 232px; }
  .pay-summary { text-align: left; }
  .ticket { max-width: 360px; }
}

/* Thank-you */
.thanks { text-align: center; }
.tick {
  width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.75rem; font-weight: 700;
  background: var(--ok-soft); color: var(--ok);
}
.facts { margin: 1.5rem 0; display: grid; gap: 0; text-align: left; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.facts div { padding: .75rem 1rem; }
.facts div + div { border-top: 1px solid var(--border); }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--subtle); font-weight: 600; }
.facts dd { margin: .125rem 0 0; font-weight: 600; }
.facts .ref { font-size: 1.25rem; font-weight: 700; }

/* Admin */
.admin .band { padding-bottom: .875rem; }
.admin .band-inner { max-width: 1400px; display: flex; align-items: center; gap: 1rem; }
.logout { margin-left: auto; }
.logout .btn { color: #FFFFFF; }
.admin-main { margin: 0 auto; max-width: 1400px; width: 100%; padding: 1.5rem 1rem 3rem; }
@media (min-width: 768px) { .admin-main { padding-inline: 1.5rem; } }
.admin-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin-bottom: .75rem; }
.summary { color: var(--muted); font-size: .875rem; margin: 0; }
.filters {
  display: grid; gap: 0 1rem; grid-template-columns: 1fr;
  background: var(--surface); border-radius: var(--radius-lg); padding: 1rem 1.25rem .25rem; margin-bottom: .5rem; box-shadow: var(--shadow);
}
.filters .field { margin-bottom: .75rem; }
.filter-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin-bottom: .75rem; }
@media (min-width: 900px) { .filters { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; } }
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: var(--surface); border-radius: var(--radius-lg); margin-top: 1rem; box-shadow: var(--shadow);
}
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 960px; }
.table th, .table td { padding: .75rem 1rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border); }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--subtle); font-weight: 600; background: var(--surface-2); position: sticky; top: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .sub { display: block; color: var(--subtle); font-size: .8125rem; }
.table .empty { text-align: center; color: var(--subtle); padding: 2.5rem; }
.table a { font-weight: 600; text-decoration: none; }
.table a:hover { text-decoration: underline; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }
.detail { display: grid; gap: 1rem; }
@media (min-width: 900px) { .detail { grid-template-columns: 1fr 320px; align-items: start; } }
.facts-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); border: 0; background: none; gap: .5rem; }
.facts-grid div, .facts-grid div + div { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.actions h2 { margin-top: 0; }
.actions form { margin-bottom: 1.25rem; }
.shot { border-radius: var(--radius-sm); border: 1px solid var(--border); max-height: 520px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn:active { transform: none; }
}
