/* =====================================================================
   Dharshanodiyaa School of Dance – Rhythm of Bells 2027
   Theme: deep plum + antique gold on ivory. Mobile first.
   ===================================================================== */
:root {
    --plum-950: #16070f;
    --plum-900: #2a0a1f;
    --plum-800: #3b0d2c;
    --plum-700: #56173f;
    --plum-600: #74245a;
    --plum-100: #f6e8f0;
    --gold: #c9a45c;
    --gold-600: #a9833c;
    --gold-light: #e8cf98;
    --ivory: #fbf8f3;
    --sand: #f3ece1;
    --ink: #1f1724;
    --muted: #6f6474;
    --line: #e7dfd3;
    --ok: #1d8a4e;
    --warn: #d08a06;
    --err: #c0322b;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(42, 10, 31, .05), 0 12px 32px -14px rgba(42, 10, 31, .28);
    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--ivory);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
.site-main { flex: 1; }
img { max-width: 100%; }
a { color: var(--plum-600); }
a:hover { color: var(--plum-800); }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.narrow-sm { max-width: 460px; }
.page { padding-top: 28px; padding-bottom: 56px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .02em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* ---------- typography */
.display, .display-sm, .card-title, .section-title, h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
.display { font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.02; margin: .1em 0 .3em; }
.display-sm { font-size: clamp(1.8rem, 4.5vw, 2.5rem); line-height: 1.1; margin: 0 0 .3em; color: var(--plum-800); }
.card-title { font-size: 1.6rem; margin: 0 0 .5em; color: var(--plum-800); }
.section-title { text-align: center; font-size: 2rem; color: var(--plum-800); margin: 40px 0 4px; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 700; color: var(--gold-light); margin: 0; }
.eyebrow.dark { color: var(--gold-600); }
.lead { font-size: 1.1rem; }
.fineprint { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }

/* ---------- header / footer */
.site-header { background: var(--plum-900); color: #fff; position: relative; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--plum-900);
    background: radial-gradient(circle at 30% 25%, #f6e3b4, var(--gold) 60%, var(--gold-600)); box-shadow: 0 0 0 3px rgba(201,164,92,.25); }
.brand-mark svg { width: 22px; height: 22px; }
.brand-mark.big { width: 72px; height: 72px; margin: 0 auto 10px; }
.brand-mark.big svg { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: .01em; }
.brand-text small { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-light); }
.header-tag { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--gold-light); }
@media (max-width: 560px) { .header-tag { display: none; } }
.site-footer { background: var(--plum-950); color: #cbb9c4; font-size: .85rem; padding: 26px 0; margin-top: auto; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; align-items: center; }
.footer-inner strong { color: #fff; display: block; font-family: var(--font-display); font-size: 1.1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.footer-links a { color: var(--gold-light); text-decoration: none; }
.secure-badge { display: inline-flex; gap: 6px; align-items: center; color: #a99aa3; }

/* ---------- hero */
.hero { position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(201,164,92,.28), transparent 60%),
        radial-gradient(700px 520px at -10% 110%, rgba(116,36,90,.65), transparent 60%),
        linear-gradient(160deg, var(--plum-900) 0%, var(--plum-800) 55%, #4a1236 100%);
    padding: 44px 0 64px; }
.hero-orn { position: absolute; inset: 0; pointer-events: none; opacity: .09;
    background-image: radial-gradient(circle at 1px 1px, var(--gold-light) 1.2px, transparent 1.4px);
    background-size: 26px 26px; mask-image: linear-gradient(90deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); }
.hero-inner { position: relative; display: grid; gap: 34px; align-items: start; }
.hero-copy .display { background: linear-gradient(180deg, #fff 30%, var(--gold-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { font-size: 1.08rem; color: #ead9e2; max-width: 34em; }
.event-facts { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.event-facts li { display: flex; gap: 14px; align-items: flex-start; }
.event-facts strong { display: block; font-size: 1.05rem; }
.event-facts span { color: #d9c6d0; font-size: .93rem; }
.fact-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(255,255,255,.08); border: 1px solid rgba(232,207,152,.3); color: var(--gold-light); }
.fact-icon svg { width: 22px; height: 22px; }
.form-card { color: var(--ink); }

@media (min-width: 960px) {
    .hero { padding: 64px 0 90px; }
    .hero-inner { grid-template-columns: 1.1fr .9fr; gap: 56px; }
    .hero-copy { padding-top: 20px; }
}

.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding-top: 34px; padding-bottom: 50px; }
.how-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); }
.how-item span { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--plum-100); color: var(--plum-700); font-weight: 800; }
.how-item p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }

/* ---------- cards, forms, buttons */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; margin-bottom: 22px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 10px; }
@media (max-width: 520px) { .card { padding: 20px 18px; border-radius: 16px; } }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field > span { font-weight: 600; font-size: .9rem; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search],
input[type=datetime-local], input:not([type]), select, textarea {
    width: 100%; font: inherit; color: var(--ink); background: #fff;
    border: 1.5px solid #d9cfc2; border-radius: 12px; padding: 12px 14px; min-height: 48px;
    transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--plum-600); box-shadow: 0 0 0 4px rgba(116,36,90,.14); }
.input-validation-error { border-color: var(--err) !important; }
.field-error, .field-validation-error { color: var(--err); font-size: .85rem; font-weight: 600; }
.validation-summary-valid { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--plum-700); flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem/1 var(--font-body);
    padding: 14px 22px; min-height: 48px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
    transition: transform .12s, box-shadow .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(180deg, var(--plum-700), var(--plum-800)); color: #fff; box-shadow: 0 10px 22px -10px rgba(59,13,44,.7); }
.btn-primary:hover:not(:disabled) { color: #fff; box-shadow: 0 14px 26px -10px rgba(59,13,44,.8); }
.btn-gold { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--plum-900); }
.btn-ghost { background: #fff; color: var(--plum-700); border-color: #dccbd5; }
.btn-ghost:hover { background: var(--plum-100); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { color: #fff; background: rgba(255,255,255,.08); }
.btn-danger { background: var(--err); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { font-size: 1.08rem; min-height: 56px; padding: 16px 26px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn-row form { margin: 0; }
.link { font-weight: 600; text-decoration: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--plum-600); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.inline-form { display: inline; margin: 0; }

.alert { padding: 14px 16px; border-radius: var(--radius-sm); margin: 0 0 18px; font-size: .95rem; border: 1px solid; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-error { background: #fdeceb; border-color: #f3c4c0; color: #8d211b; }
.alert-warn { background: #fff6e3; border-color: #f1d79c; color: #7a5200; }
.alert-ok { background: #e8f6ee; border-color: #b9e2c9; color: #14603a; }
.alert-info { background: var(--plum-100); border-color: #e6cbdb; color: var(--plum-800); }

/* ---------- steps */
.steps { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: s; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .74rem; color: var(--muted); position: relative; }
.steps li::before { content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.steps li:first-child::before { display: none; }
.steps li.done::before, .steps li.current::before { background: var(--gold); }
.step-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem;
    background: #fff; border: 2px solid var(--line); color: var(--muted); }
.steps li.done .step-dot { background: var(--gold); border-color: var(--gold); color: var(--plum-900); }
.steps li.current .step-dot { background: var(--plum-700); border-color: var(--plum-700); color: #fff; box-shadow: 0 0 0 4px rgba(116,36,90,.15); }
.steps li.current { color: var(--plum-800); font-weight: 700; }
@media (min-width: 640px) { .steps li { font-size: .82rem; } }

.page-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.page-head p { margin: 0; }
.booking-for { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .9rem; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- seat map */
.seatmap-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.legend { --s: 20px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .85rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend .seat { cursor: default; font-size: 11px; }
.zoom { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.zoom button { border: 0; background: none; font: 700 1rem var(--font-body); color: var(--plum-700); min-width: 46px; height: 40px; cursor: pointer; }
.zoom button + button { border-left: 1px solid var(--line); }
.zoom button:hover { background: var(--plum-100); }

.seatmap-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); position: relative; }
.seatmap { --s: 28px; --g: calc(var(--s) * .14); overflow: auto; padding: 18px 12px 26px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.seatmap-hint { display: none; text-align: center; font-size: .8rem; color: var(--muted); margin: -14px 0 12px; }
@media (max-width: 700px) { .seatmap-hint { display: block; } }
.sm-canvas { width: max-content; margin: 0 auto; display: flex; flex-direction: column; gap: calc(var(--s) * .2); }
.sm-stage { align-self: center; width: calc(var(--s) * 15); margin-bottom: calc(var(--s) * .9); padding: calc(var(--s) * .45) 0;
    text-align: center; color: var(--gold-light); font-weight: 800; letter-spacing: .5em; font-size: calc(var(--s) * .5);
    background: linear-gradient(180deg, var(--plum-800), var(--plum-950)); border-radius: 6px 6px 50% 50% / 6px 6px 22px 22px;
    box-shadow: 0 14px 30px -14px rgba(42,10,31,.8); }
.sm-row { display: flex; align-items: center; gap: calc(var(--s) * .25); }
.sm-label { width: calc(var(--s) * 1.1); text-align: center; font-weight: 800; color: var(--gold-600); font-size: calc(var(--s) * .42); flex: none; }
.sm-block { display: grid; grid-auto-rows: var(--s); flex: none; }
.sm-left, .sm-right { grid-template-columns: repeat(6, var(--s)); column-gap: var(--g); }
.sm-centre { grid-template-columns: repeat(22, calc((var(--s) + var(--g)) / 2)); }

.seat { width: var(--s); height: var(--s); padding: 0; display: grid; place-items: center;
    border-radius: calc(var(--s) * .3) calc(var(--s) * .3) calc(var(--s) * .14) calc(var(--s) * .14);
    border: 1.5px solid #cdbfae; background: #fff; color: var(--ink);
    font: 700 calc(var(--s) * .38)/1 var(--font-body); cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
    transition: transform .1s, background .12s, border-color .12s, box-shadow .12s; }
.seat.st-a:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--plum-600); background: #fdf3f9; }
.seat.st-m { background: linear-gradient(180deg, var(--plum-600), var(--plum-800)); border-color: var(--plum-800); color: #fff; box-shadow: 0 0 0 2px var(--gold-light); }
.seat.st-u { background: #ece6df; border-color: #e2d9cf; color: #b9ada2; cursor: not-allowed; }
.seat.st-h { background: #fff0cf; border-color: #e9b44c; color: #8a5a00; }
.seat.st-s { background: var(--plum-800); border-color: var(--plum-800); color: var(--gold-light); }
.seat.st-b { background: repeating-linear-gradient(45deg, #d8d2cc 0 3px, #f2efec 3px 6px); border-color: #c9c1b8; color: #7d746c; }
.seat.wc { font-size: calc(var(--s) * .5); }
.seat.wc.st-a { border-color: #6a9fd8; color: #2f6db0; }
.seat:disabled { cursor: not-allowed; }
.seat:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* sticky selection bar */
body.has-seat-bar { padding-bottom: 96px; }
.seat-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -12px 30px -18px rgba(42,10,31,.4); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); }
.seat-bar-inner { display: flex; align-items: center; gap: 14px; }
.seat-bar-info { flex: 1; min-width: 0; }
.seat-bar-count { font-size: .92rem; }
.seat-bar-chips { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; margin-top: 4px; }
.seat-bar-chips::-webkit-scrollbar { display: none; }
.mini-chip { flex: none; font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--plum-100); color: var(--plum-700); }
.seat-bar-total { text-align: right; }
.seat-bar-total span { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.seat-bar-total strong { font-size: 1.3rem; color: var(--plum-800); }
.seat-bar .btn { min-width: 130px; }
@media (max-width: 480px) {
    .seat-bar-inner { gap: 10px; }
    .seat-bar .btn { min-width: 0; padding: 14px 16px; }
    .seat-bar-total strong { font-size: 1.1rem; }
}

/* ---------- checkout */
.checkout-grid { display: grid; gap: 22px; align-items: start; }
@media (min-width: 900px) { .checkout-grid { grid-template-columns: 1.5fr 1fr; } .pay-card { position: sticky; top: 20px; } }
.summary { margin: 8px 0 0; display: grid; gap: 0; }
.summary > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.summary dt { color: var(--muted); font-size: .9rem; }
.summary dd { margin: 0; font-weight: 600; word-break: break-word; }
.seats-chosen { margin-top: 20px; }
.seats-chosen-head { display: flex; justify-content: space-between; align-items: baseline; }
.seats-chosen h2 { font-size: 1.4rem; margin: 0 0 10px; color: var(--plum-800); }
.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--plum-100); color: var(--plum-800); font-weight: 700; font-size: .9rem; }
.chip-wc { background: #e6f0fb; color: #23558c; }
.totals { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.totals td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.totals td:last-child { text-align: right; font-weight: 600; }
.totals .grand td { border-bottom: 0; font-size: 1.35rem; font-weight: 800; color: var(--plum-800); padding-top: 14px; }
.pay-note { font-size: .84rem; color: var(--muted); margin: 14px 0 0; }
#payForm { display: grid; gap: 16px; }
.hold-timer { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff6e3; color: #7a5200; font-size: .9rem; border: 1px solid #f1d79c; }
.hold-timer.urgent { background: #fdeceb; color: #8d211b; border-color: #f3c4c0; }
.hold-timer.centered { display: flex; justify-content: center; width: fit-content; margin: 12px auto; }

/* ---------- result pages */
.result-card { text-align: center; padding: 40px 26px; }
.result-icon { width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; }
.result-icon svg { width: 38px; height: 38px; }
.result-icon.ok { background: #e3f5ea; color: var(--ok); box-shadow: 0 0 0 8px #f1faf4; }
.result-icon.warn { background: #fff1d2; color: var(--warn); box-shadow: 0 0 0 8px #fff8e8; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 22px 0 4px; }
.spinner { width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 18px; border: 4px solid var(--plum-100); border-top-color: var(--plum-700); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- e-tickets */
.ticket-hero { text-align: center; color: #fff; border-radius: var(--radius); padding: 36px 22px; margin-bottom: 22px;
    background: radial-gradient(600px 300px at 80% 0, rgba(201,164,92,.3), transparent 60%), linear-gradient(160deg, var(--plum-900), var(--plum-800)); }
.ticket-hero .display { font-size: clamp(2.2rem, 7vw, 3.4rem); color: #fff; }
.ticket-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; color: #ead9e2; }
.ticket-meta.small { margin-top: 8px; font-size: .9rem; color: var(--gold-light); }
.ticket-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.group-pass { display: grid; gap: 22px; align-items: center; justify-items: center; text-align: center; border: 2px solid var(--gold); }
.group-pass-qr img { display: block; width: 260px; height: 260px; image-rendering: pixelated; border-radius: 8px; }
.group-pass h2 { font-size: 1.9rem; margin: 8px 0 6px; color: var(--plum-800); }
.badge { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: var(--gold); color: var(--plum-900); }
@media (min-width: 720px) { .group-pass { grid-template-columns: auto 1fr; text-align: left; justify-items: start; } }
.ticket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin: 22px 0 28px; }
.ticket-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 16px 14px; text-align: center; box-shadow: var(--shadow); page-break-inside: avoid; break-inside: avoid; }
.ticket-card img { display: block; margin: 8px auto 6px; width: 200px; height: 200px; image-rendering: pixelated; }
.ticket-card-top { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); }
.ticket-show { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--plum-700); }
.ticket-seat { font-weight: 800; color: var(--plum-800); font-size: 1.05rem; }
.ticket-perf { border-top: 2px dashed var(--line); margin: 12px -16px 10px; position: relative; }
.ticket-perf::before, .ticket-perf::after { content: ''; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--line); }
.ticket-perf::before { left: -9px; } .ticket-perf::after { right: -9px; }
.ticket-foot { font-size: .8rem; color: var(--muted); }
.ticket-card.used { opacity: .6; }
.ticket-used { display: inline-block; margin-top: 6px; font-size: .8rem; font-weight: 700; color: var(--ok); }
.entry-info h2 { color: var(--plum-800); margin-top: 0; }
.ticks { padding-left: 0; list-style: none; display: grid; gap: 8px; margin: 0; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--gold-600); font-weight: 800; }
.prose ol { padding-left: 20px; display: grid; gap: 10px; }

@media print {
    .site-header, .site-footer, .no-print, .toast { display: none !important; }
    body { background: #fff; }
    .ticket-hero { background: none; color: #000; padding: 0; }
    .ticket-hero .display, .ticket-meta, .ticket-meta.small { color: #000; }
    .card, .ticket-card { box-shadow: none; }
    .ticket-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- toast */
.toast { position: fixed; left: 50%; bottom: 112px; transform: translate(-50%, 20px); max-width: min(92vw, 520px); z-index: 50;
    background: var(--plum-950); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: .92rem; box-shadow: 0 14px 34px -10px rgba(0,0,0,.45);
    opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- admin */
.admin-nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.admin-nav a, .admin-nav .link-btn { color: #e7d6df; text-decoration: none; font-weight: 600; font-size: .9rem; padding: 8px 12px; border-radius: 999px; }
.admin-nav a.active, .admin-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-nav .link-btn { text-decoration: none; color: var(--gold-light); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); display: grid; gap: 4px; }
.stat > span { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.stat strong { font-size: 1.8rem; color: var(--plum-800); line-height: 1.1; }
.stat strong small, .stat > small { font-size: .85rem; color: var(--muted); font-weight: 500; }
.meter { height: 6px; border-radius: 6px; background: var(--sand); overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--plum-600)); }
.grid-form { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (min-width: 900px) { .grid-form { grid-template-columns: repeat(4, 1fr); } .span-2 { grid-column: span 2; } .span-4 { grid-column: 1 / -1; } }
.grid-form .alert { grid-column: 1 / -1; }
.admin-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .admin-grid { grid-template-columns: 1fr 1fr; } }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.filter-bar input { flex: 2 1 260px; } .filter-bar select { flex: 1 1 180px; width: auto; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--sand); padding: 12px 14px; white-space: nowrap; }
.table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.table tr:hover td { background: #fdfaf6; }
.row-muted td { opacity: .5; }
.status { display: inline-block; font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--sand); color: var(--muted); white-space: nowrap; }
.status.big { font-size: .9rem; padding: 7px 14px; }
.status-paid { background: #e3f5ea; color: var(--ok); }
.status-pendingpayment { background: #fff3d6; color: #8a5a00; }
.status-needsattention { background: #fdeceb; color: var(--err); }
.status-cancelled, .status-expired { background: #eee; color: #777; }
.pill-row { display: flex; gap: 8px; }
.pill { font-size: .8rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.pill-ok { background: #e3f5ea; color: var(--ok); }
.pill-warn { background: #fff3d6; color: #8a5a00; }
.mode-switch { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.mode-switch label { cursor: pointer; }
.mode-switch input { position: absolute; opacity: 0; }
.mode-switch span { display: block; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--muted); }
.mode-switch input:checked + span { background: var(--plum-700); color: #fff; }
.mode-switch input:focus-visible + span { outline: 2px solid var(--gold); }
.scan-log { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .86rem; max-height: 320px; overflow: auto; }
.scan-log time { color: var(--muted); }
.scan-log .log-ok strong { color: var(--ok); } .scan-log .log-warn strong { color: var(--warn); }
.scan-log .log-dup strong, .scan-log .log-error strong { color: var(--err); }
.scan-log .undone { text-decoration: line-through; opacity: .6; }
.danger-zone { border-color: #f3c4c0; }
.danger-zone form { display: grid; gap: 14px; justify-items: start; }

/* =====================================================================
   Door scanner (Zebra TC22 full-screen WebView)
   ===================================================================== */
.scan-body { background: var(--plum-950); color: #fff; min-height: 100vh; min-height: 100dvh; overscroll-behavior: none; user-select: none; -webkit-user-select: none; }
.scan-app { --bg: #1e0c17; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto auto 1fr auto; background: var(--bg); transition: background .2s; }
.scan-app[data-state="ok"] { --bg: #0f7a40; }
.scan-app[data-state="warn"] { --bg: #b77400; }
.scan-app[data-state="dup"], .scan-app[data-state="error"] { --bg: #b3261e; }
.scan-app[data-state="undo"] { --bg: #3b4b63; }
.scan-app[data-state="busy"] { --bg: #2b1424; }
.scan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; background: rgba(0,0,0,.25); }
.scan-title { display: grid; line-height: 1.2; }
.scan-title strong { font-size: .95rem; }
.scan-title span { font-size: .8rem; opacity: .8; display: inline-flex; align-items: center; gap: 6px; }
.net-dot { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; display: inline-block; }
.net-dot.off { background: #ff5b5b; box-shadow: 0 0 0 3px rgba(255,91,91,.3); }
.scan-count { text-align: right; line-height: 1; }
.scan-count strong { font-size: 2rem; font-weight: 800; }
.scan-count span { display: block; font-size: .8rem; opacity: .85; margin-top: 2px; }
.scan-input { display: flex; gap: 8px; padding: 10px 14px; }
.scan-input input { flex: 1; min-width: 0; background: rgba(255,255,255,.95); border: 0; border-radius: 12px; font: 700 1.05rem/1 ui-monospace, monospace; padding: 12px 14px; min-height: 52px; color: var(--ink); text-transform: uppercase; user-select: text; -webkit-user-select: text; }
.scan-icon-btn, .scan-go { border: 0; border-radius: 12px; min-width: 52px; min-height: 52px; font: 700 1.1rem var(--font-body); cursor: pointer; }
.scan-icon-btn { background: rgba(255,255,255,.15); color: #fff; font-size: 1.4rem; }
.scan-icon-btn.active { background: var(--gold); color: var(--plum-900); }
.scan-go { background: var(--gold); color: var(--plum-900); padding: 0 16px; }
.scan-result { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px 18px 24px; }
.res-icon { width: 96px; height: 96px; border-radius: 50%; margin-bottom: 14px; background: rgba(255,255,255,.12) center/52px no-repeat; }
.scan-app[data-state="idle"] .res-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8cf98' stroke-width='1.6'%3E%3Cpath d='M4 8V5a1 1 0 0 1 1-1h3M16 4h3a1 1 0 0 1 1 1v3M20 16v3a1 1 0 0 1-1 1h-3M8 20H5a1 1 0 0 1-1-1v-3M7 12h10'/%3E%3C/svg%3E"); }
.scan-app[data-state="ok"] .res-icon { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f7a40' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.scan-app[data-state="warn"] .res-icon { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b77400' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.scan-app[data-state="dup"] .res-icon, .scan-app[data-state="error"] .res-icon { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3261e' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.scan-app[data-state="busy"] .res-icon { border: 6px solid rgba(255,255,255,.2); border-top-color: var(--gold); animation: spin .8s linear infinite; }
.scan-result h1 { font-family: var(--font-body); font-weight: 800; font-size: clamp(2rem, 10vw, 3.2rem); line-height: 1.05; margin: 0 0 10px; letter-spacing: .01em; }
.scan-result p { margin: 0 0 8px; font-size: 1.05rem; max-width: 34em; opacity: .95; }
.res-customer { font-weight: 700; font-size: 1.2rem !important; }
.res-seats { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.res-seats li { padding: 8px 12px; border-radius: 10px; font-weight: 800; font-size: 1rem; background: rgba(255,255,255,.16); display: inline-flex; gap: 6px; align-items: baseline; }
.res-seats li.now { background: #fff; color: #0f5a31; }
.res-seats li.earlier { background: rgba(0,0,0,.25); text-decoration: line-through; opacity: .85; }
.res-seats li small { font-weight: 600; font-size: .75rem; text-decoration: none; }
.scan-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); background: rgba(0,0,0,.25); }
.scan-actions button { min-height: 54px; border: 0; border-radius: 12px; background: rgba(255,255,255,.14); color: #fff; font: 700 .95rem var(--font-body); cursor: pointer; }
.scan-actions button:disabled { opacity: .35; }
.scan-actions button.armed { background: #fff; color: #b3261e; }
.scan-dialog { width: min(96vw, 560px); max-height: 86vh; border: 0; border-radius: 18px; padding: 16px; color: var(--ink); background: #fff; }
.scan-dialog::backdrop { background: rgba(10, 2, 8, .7); }
.scan-dialog h2 { margin: 0 0 10px; font-family: var(--font-body); font-size: 1.1rem; }
.dlg-search { display: flex; gap: 8px; margin-bottom: 12px; }
.dlg-search button, .dlg-close, .dlg-logout button, .search-seats button, .admit-all { border: 0; border-radius: 10px; min-height: 46px; padding: 0 14px; font: 700 .95rem var(--font-body); cursor: pointer; }
.dlg-search button, .admit-all { background: var(--plum-700); color: #fff; }
.dlg-close { width: 100%; margin-top: 12px; background: var(--sand); }
.dlg-logout { margin-top: 12px; } .dlg-logout button { width: 100%; background: #fdeceb; color: var(--err); }
.search-results { display: grid; gap: 10px; max-height: 52vh; overflow: auto; }
.search-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.search-card-head { font-weight: 700; }
.search-seats { display: flex; flex-wrap: wrap; gap: 6px; }
.search-seats button { background: var(--plum-100); color: var(--plum-800); }
.search-seats button:disabled { background: #e3f5ea; color: var(--ok); }
.history-list { padding-left: 0; list-style: none; display: grid; gap: 6px; max-height: 56vh; overflow: auto; font-size: .88rem; margin: 0; }
.history-list li { padding: 8px 10px; border-radius: 8px; background: var(--sand); }
.history-list .h-ok { background: #e3f5ea; } .history-list .h-warn { background: #fff3d6; }
.history-list .h-dup, .history-list .h-error { background: #fdeceb; }
.scan-login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 20px;
    background: radial-gradient(600px 400px at 50% 0, rgba(201,164,92,.25), transparent 60%), var(--plum-950); }
.scan-login-card { width: min(100%, 380px); text-align: center; }
.scan-login-card h1 { font-family: var(--font-display); font-size: 2.2rem; margin: 0 0 18px; }
.scan-login-card form { display: grid; gap: 14px; text-align: left; }
.scan-login-card label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; color: #e7d6df; }
.scan-login-card input { min-height: 56px; font-size: 1.2rem; border-radius: 12px; border: 0; padding: 12px 14px; }
.scan-login-card button { min-height: 58px; border: 0; border-radius: 14px; background: var(--gold); color: var(--plum-900); font: 800 1.1rem var(--font-body); cursor: pointer; }
.scan-login-error { background: #b3261e; padding: 10px 12px; border-radius: 10px; }

/* ---------- logos */
.brand-logo { width: 48px; height: 48px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(232,207,152,.35); }
.hero-presents { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.hero-presents img { width: 72px; height: 72px; border-radius: 50%; flex: none; box-shadow: 0 8px 24px -8px rgba(0,0,0,.6), 0 0 0 3px rgba(232,207,152,.25); }
.hero-presents .eyebrow { line-height: 1.6; }
.hero-title { margin: 0 0 18px; line-height: 0; }
.hero-title img { display: block; width: 100%; max-width: 620px; height: auto; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.ticket-hero .hero-title img { margin: 6px auto 10px; max-width: 520px; }
.ticket-hero-logo { width: 84px; height: 84px; border-radius: 50%; display: block; margin: 0 auto 10px; }
.scan-login-logo { width: 110px; height: 110px; border-radius: 50%; display: block; margin: 0 auto 12px; }
@media print { .ticket-hero .hero-title img { filter: none; } }

/* ---------- single-seat gap warning */
.seat.orphan { outline: 2px dashed var(--err); outline-offset: 2px; animation: orphan-pulse 1.2s ease-in-out infinite; }
@keyframes orphan-pulse { 50% { outline-color: transparent; } }
.seat-bar-warn { margin-top: 6px; font-size: .82rem; font-weight: 700; color: var(--err); line-height: 1.35; }

/* ---------- Powered by PlanWithUs */
.powered-by { display: flex; justify-content: center; padding-top: 18px; margin-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.powered-badge { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 6px 16px 6px 14px;
    text-decoration: none; color: #4b4f6b; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
    box-shadow: 0 6px 18px -8px rgba(0,0,0,.6); transition: transform .15s; }
a.powered-badge:hover { transform: translateY(-1px); color: #4b4f6b; }
.powered-badge img { display: block; width: 130px; height: auto; }
.scan-login { grid-template-rows: 1fr auto; }
.scan-powered { display: inline-flex; align-items: center; gap: 8px; justify-self: center; align-self: end; margin-top: 24px;
    background: #fff; border-radius: 999px; padding: 5px 14px; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: #4b4f6b; }
.scan-powered img { width: 104px; height: auto; display: block; }
@media print { .powered-by { border: 0; } }

/* ---------- v1.6: PlanWithUs strip at the very top (always white, also in phone dark mode) */
.powered-top { background: #fff; border-bottom: 1px solid #ece6f3; color-scheme: light; }
.powered-top-inner { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 4px 12px;
    text-decoration: none; color: #4b4f6b; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.powered-top-inner:hover { color: #4b4f6b; }
.powered-top-inner img { display: block; width: 106px; height: auto; }
@media print { .powered-top { display: none; } }
