/* Booking: the seat plan, basket and payment; the e-tickets; and the team's door and box-office pages.
   The public pages sit on site.css; the team's pages (body.tool) load only this file, so the brand
   colours are restated here. */
:root {
  --bg: #07060f; --surface: #0e0c1b; --surface-2: #14112a; --text: #fff; --text-2: #bdb7d1; --mute: #7c7692;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .15);
  --gold: #f0c77e; --amber: #f2a65a; --rose: #e47b93; --lilac: #ac8ff5;
  --grad: linear-gradient(100deg, #f7d58b 0%, #f2a65a 34%, #e47b93 68%, #ac8ff5 100%);
  --grad-warm: linear-gradient(100deg, #f7d58b, #f2a65a 60%, #ec8f72);
  --edge: linear-gradient(135deg, rgba(240, 199, 126, .45), rgba(228, 123, 147, .18) 45%, rgba(172, 143, 245, .3) 75%, rgba(255, 255, 255, .06));
  --ease: cubic-bezier(.2, .7, .1, 1);
  /* the four price bands */
  --platinum: #fff1c9; --gold-band: #f2c46c; --silver: #c6c1ea; --standard: #e47b93;
}

/* anything marked hidden stays hidden, whatever display its own rule gives it */
[hidden] { display: none !important; }

/* ---------- booking page ---------- */
.book-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(130px, 14vw, 170px) 0 clamp(26px, 4vw, 40px); text-align: center; }
.book-hero::before { content: ''; position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 30% 40%, rgba(91, 94, 232, .28), transparent 70%), radial-gradient(ellipse 45% 55% at 75% 30%, rgba(242, 166, 90, .22), transparent 70%); }
.book-hero h1 { font-size: clamp(40px, 6vw, 76px); margin: 18px 0 10px; }
.book-meta { color: var(--text-2); font-size: 15.5px; max-width: 60ch; margin: 0 auto; }
.steps { display: inline-flex; gap: 6px; margin-top: 26px; padding: 6px; list-style: none; border-radius: 999px; border: 1px solid transparent;
  background: linear-gradient(160deg, var(--surface-2), var(--surface)) padding-box, var(--edge) border-box; }
.steps li { display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; border-radius: 999px; font-size: 14px; color: var(--mute); transition: color .3s, background .3s; }
.steps li b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .07); color: var(--text-2); }
.steps li.on { color: #1a0f05; background: var(--grad-warm); }
.steps li.on b { background: rgba(26, 15, 5, .15); color: #1a0f05; }
.steps li.done { color: var(--text); }
.steps li.done b { background: rgba(242, 166, 90, .25); color: var(--gold); }

.book-main { padding: 10px 0 clamp(70px, 9vw, 110px); }
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
@media (max-width: 980px) { .book-grid { grid-template-columns: 1fr; } }

.map-card, .basket, .ticket, .tiles > div, .bands > div, .admin-map, .orders, .pin, .result, .mock-pay {
  border: 1px solid transparent; background: linear-gradient(160deg, var(--surface-2), var(--surface) 60%) padding-box, var(--edge) border-box; }
.map-card { border-radius: 26px; padding: 18px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 9px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-size: 13px; }
.chip i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.chip b { font-weight: 500; }
.chip small { color: var(--text-2); }
.chip em { font-style: normal; color: var(--mute); font-size: 12.5px; }
.chip em::before { content: '· '; }
@media (max-width: 700px) {
  .legend { gap: 6px; }
  .chip { padding: 6px 10px 6px 8px; font-size: 12.5px; }
  .chip em { display: none; }
  .map-card { padding: 12px; border-radius: 22px; }
  .book-hero { padding-top: 112px; }
  .steps li { padding: 6px 12px 6px 6px; font-size: 13px; }
}
.chip.taken i { --c: #3a3550; box-shadow: none; }
.band-platinum { --c: var(--platinum); } .band-gold { --c: var(--gold-band); } .band-silver { --c: var(--silver); } .band-standard { --c: var(--standard); }
.map-wrap { position: relative; border-radius: 18px; overflow: hidden; background: radial-gradient(ellipse 70% 50% at 50% 0, rgba(242, 166, 90, .1), transparent 70%), rgba(0, 0, 0, .25); }
.map { position: relative; touch-action: pan-y; }
.map-loading { padding: 80px 20px; text-align: center; color: var(--mute); }
.seat-svg { display: block; width: 100%; height: auto; max-height: 78vh; user-select: none; -webkit-user-select: none; }
.seat-svg .stage-label, .seat-svg .area-label, .seat-svg .row-label { font-family: 'Jost', system-ui, sans-serif; fill: var(--mute); }
.seat-svg .stage-label { font-size: 13px; letter-spacing: .3em; fill: #fbe7c2; }
.seat-svg .area-label { font-size: 10px; letter-spacing: .28em; }
.seat-svg .row-label { font-size: 9px; font-weight: 500; }
.seat-svg .area-rule { stroke: var(--line-2); stroke-dasharray: 2 5; }
.seat { cursor: pointer; outline: none; }
.seat circle { fill: var(--c); fill-opacity: .82; stroke: var(--c); stroke-width: 1.4; stroke-opacity: .5; transition: fill-opacity .2s, transform .25s var(--ease), stroke-width .2s; transform-box: fill-box; transform-origin: center; }
.seat .tick { fill: none; stroke: #1a0f05; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .2s; }
.seat:hover circle, .seat:focus-visible circle { fill-opacity: 1; transform: scale(1.25); stroke-width: 3; filter: drop-shadow(0 0 4px var(--c)); }
.seat.selected circle { fill: #fff; fill-opacity: 1; stroke: var(--c); stroke-width: 3.2; stroke-opacity: 1; filter: drop-shadow(0 0 5px var(--c)); }
.seat.selected .tick { opacity: 1; }
.seat.taken { cursor: not-allowed; }
.seat.taken circle { fill: #2c2840; fill-opacity: 1; stroke: #3a3550; stroke-opacity: 1; transform: none; filter: none; }
.map-zoom { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; }
.map-zoom button { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(14, 12, 27, .8); color: var(--text); font-size: 18px; cursor: pointer; transition: background .3s; }
.map-zoom button:hover { background: rgba(242, 166, 90, .2); }
.seat-tip { position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 12px)); pointer-events: none; padding: 9px 13px; border-radius: 12px; white-space: nowrap;
  background: #17132b; border: 1px solid var(--line-2); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .8); font-size: 13px; display: grid; gap: 1px; }
.seat-tip span { color: var(--text-2); } .seat-tip em { font-style: normal; color: var(--rose); }
.map-note { margin-top: 12px; font-size: 13.5px; color: var(--mute); }
.map-note a { color: var(--gold); }
@media (max-width: 700px) {
  /* on phones the zoom buttons sit in a row above the plan instead of over the seats */
  .map-wrap { display: flex; flex-direction: column; }
  .map-zoom { position: static; order: -1; flex-direction: row; justify-content: flex-end; padding: 8px 8px 0; }
  .map-zoom button { width: 36px; height: 36px; }
}

/* the basket */
.basket { position: sticky; top: 96px; border-radius: 26px; padding: 22px; }
@media (max-width: 980px) { .basket { position: static; scroll-margin-top: 90px; } }
.basket h2 { font-size: 22px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 12px; }
.basket .sub { font-size: 14px; color: var(--text-2); margin: -4px 0 16px; }
.basket .sub.secure { display: flex; gap: 8px; align-items: flex-start; }
.basket .sub.secure svg { flex: none; width: 18px; height: 18px; color: var(--gold); margin-top: 2px; }
.empty { color: var(--mute); font-size: 14.5px; padding: 18px 0; }
.picked { list-style: none; display: grid; gap: 8px; }
.picked li { display: grid; grid-template-columns: 10px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 6px 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.picked li > i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.picked li b { display: block; font-weight: 500; font-size: 14.5px; }
.picked li small { display: block; color: var(--mute); font-size: 12.5px; }
.picked select { margin-top: 6px; padding: 5px 8px; border-radius: 9px; border: 1px solid var(--line-2); background: #120f22; color: var(--text); font-size: 13px; }
.picked .one { display: block; margin-top: 4px; font-size: 12.5px; color: var(--text-2); }
.picked .price { font-weight: 500; font-variant-numeric: tabular-nums; }
.picked .x { width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: var(--mute); font-size: 18px; cursor: pointer; }
.picked .x:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.picked.compact { margin: 14px 0 4px; }
.picked.compact li { grid-template-columns: 1fr auto; padding: 8px 12px; font-size: 14px; animation: none; }
.picked.compact small { display: inline; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.total-row span { color: var(--text-2); }
.total-row b { font-size: 26px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.btn.wide { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-text { display: block; margin: 12px auto 0; border: 0; background: none; color: var(--text-2); font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.notice { margin: 12px 0; padding: 11px 14px; border-radius: 12px; font-size: 14px; background: rgba(228, 123, 147, .12); border: 1px solid rgba(228, 123, 147, .35); color: #ffd7df; }
.closed p { margin: 6px 0 14px; font-size: 14.5px; color: var(--text-2); }
.closed b { color: var(--text); }
form.panel label { display: grid; gap: 6px; margin-bottom: 12px; font-size: 13.5px; color: var(--text-2); }
form.panel input { padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text); font-size: 16px; transition: border-color .3s, box-shadow .3s; }
form.panel input:focus { outline: none; border-color: rgba(240, 199, 126, .6); box-shadow: 0 0 0 4px rgba(242, 166, 90, .12); }
form.panel input.error { border-color: #ef6f6f; }
.hold-timer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -6px -6px 16px; padding: 10px 14px; border-radius: 14px; background: rgba(242, 166, 90, .1); border: 1px solid rgba(242, 166, 90, .3); font-size: 13.5px; color: var(--text-2); }
.hold-timer b { font-size: 18px; font-weight: 500; color: var(--gold); font-variant-numeric: tabular-nums; }
.hold-timer.low { background: rgba(228, 123, 147, .12); border-color: rgba(228, 123, 147, .4); }
.hold-timer.low b { color: var(--rose); }
.pay-box { min-height: 120px; border-radius: 16px; overflow: hidden; background: #fff; }
.pay-box:empty { background: transparent; }
.pay-loading { padding: 40px 20px; text-align: center; color: #555; }
.test-banner { margin-bottom: 12px; padding: 10px 14px; border-radius: 12px; font-size: 13px; background: rgba(172, 143, 245, .12); border: 1px solid rgba(172, 143, 245, .35); color: #e4dcff; }
.mock-pay { padding: 18px; border-radius: 16px; background: #120f22; }
.mock-pay p { color: var(--text-2); font-size: 14px; margin-bottom: 14px; }

/* the slim basket bar on phones */
.mobile-basket { position: fixed; inset: auto 0 0; z-index: 44; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(10, 8, 22, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line-2); animation: rise .4s var(--ease); }
.mobile-basket[hidden] { display: none; }
@keyframes rise { from { transform: translateY(100%); } }
.mobile-basket b { display: block; font-weight: 500; } .mobile-basket span { color: var(--gold); font-variant-numeric: tabular-nums; }
@media (min-width: 981px) { .mobile-basket { display: none !important; } }
body.booking:has(.mobile-basket:not([hidden])) .to-top { bottom: 92px; }

/* ---------- e-tickets ---------- */
.done-hero { padding-bottom: 20px; }
.order-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 24px; }
.tickets { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }
.ticket { position: relative; display: grid; grid-template-columns: 1fr 210px; border-radius: 24px; overflow: hidden; }
.ticket::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); box-shadow: 0 0 18px var(--c); }
.t-main { padding: 24px 24px 24px 30px; }
.t-kicker { font-size: 12px; color: var(--amber); letter-spacing: .04em; }
.ticket h3 { font-size: 28px; margin: 6px 0 8px; }
.t-when { color: var(--text-2); font-size: 14.5px; }
.t-seat { margin-top: 14px; font-size: 20px; font-weight: 500; line-height: 1.25; }
.t-type { margin-top: 6px; font-size: 14px; color: var(--c); }
.t-code { display: grid; place-items: center; align-content: center; gap: 8px; padding: 20px; background: #fff; border-left: 2px dashed rgba(0, 0, 0, .18); }
.t-code svg { width: 160px; height: 160px; }
.t-code code { font: 600 13px/1 'Jost', monospace; letter-spacing: .18em; color: #222; }
.keep-note { max-width: 760px; margin: 22px auto 0; text-align: center; font-size: 14px; color: var(--mute); }
@media (max-width: 600px) { .ticket { grid-template-columns: 1fr; } .t-code { border-left: 0; border-top: 2px dashed rgba(0, 0, 0, .18); } }
@media print {
  body { background: #fff !important; color: #000; }
  .site-header, .site-footer, .order-actions, .keep-note, .to-top, .progress, .cursor-glow, body::after { display: none !important; }
  .book-hero { padding: 0 0 12px; } .book-hero::before { display: none; }
  .book-hero h1, .book-meta { color: #000 !important; -webkit-text-fill-color: #000 !important; }
  .ticket { break-inside: avoid; background: #fff !important; border: 1px solid #999; color: #000; }
  .t-when, .t-type { color: #333 !important; }
}

/* ---------- the team's pages: door scanner and box office ---------- */
body.tool { margin: 0; min-height: 100vh; background: radial-gradient(ellipse 60% 40% at 50% 0, rgba(91, 94, 232, .18), transparent 70%), var(--bg); color: var(--text); font: 16px/1.5 'Jost', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body.tool * { box-sizing: border-box; }
.tool .btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; border: 0; cursor: pointer; font: 500 14.5px 'Jost', sans-serif; text-decoration: none; }
.tool .btn-gold { background: var(--grad-warm); color: #1a0f05; }
.tool .btn-ghost { color: var(--text); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); }
.tool .muted { color: var(--mute); }
.tool-head { display: flex; align-items: center; gap: 14px; padding: 16px max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); }
.tool-head img { height: 40px; }
.tool-head div { flex: 1; } .tool-head b { display: block; } .tool-head small { color: var(--mute); }
.tool-head .count { font-weight: 600; color: var(--gold); font-size: 18px; }
.pin { max-width: 380px; margin: 60px auto; padding: 24px; border-radius: 22px; display: grid; gap: 14px; }
.pin label { display: grid; gap: 6px; color: var(--text-2); font-size: 14px; }
.pin input, .manual input, .admin-actions input, .orders input { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text); font-size: 16px; }

.scan section { max-width: 520px; margin: 0 auto; padding: 16px; }
.camera { position: relative; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: #000; display: grid; place-items: center; }
.camera video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camera .frame { position: absolute; inset: 18%; border-radius: 18px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); border: 2px solid rgba(240, 199, 126, .8); }
.camera .btn { position: relative; z-index: 2; }
.result { margin-top: 14px; padding: 18px 20px; border-radius: 20px; display: grid; gap: 4px; animation: pop .35s var(--ease); }
.result b { font-size: 22px; } .result span { font-size: 18px; } .result small { color: var(--text-2); }
.result.ok { border-color: transparent; background: linear-gradient(160deg, rgba(56, 180, 120, .35), rgba(20, 60, 40, .6)); }
.result.again { background: linear-gradient(160deg, rgba(242, 166, 90, .35), rgba(80, 50, 20, .6)); }
.result.bad { background: linear-gradient(160deg, rgba(228, 80, 100, .4), rgba(80, 20, 30, .6)); }
.manual { display: flex; gap: 8px; margin-top: 14px; } .manual input { flex: 1; min-width: 0; text-transform: uppercase; }

.admin { padding-bottom: 60px; }
.admin [data-board] { max-width: 1240px; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 16px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tiles > div { padding: 18px; border-radius: 18px; }
.tiles span { color: var(--mute); font-size: 13px; } .tiles b { display: block; font-size: 30px; font-weight: 500; } .tiles small { font-size: 15px; color: var(--mute); }
.bands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bands > div { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 14px; }
.bands i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); } .bands b { font-weight: 500; flex: 1; } .bands span { color: var(--text-2); }
@media (max-width: 800px) { .tiles, .bands { grid-template-columns: 1fr 1fr; } }
.admin-map, .orders { padding: 18px; border-radius: 22px; }
.admin-map-head, .orders-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.admin-map-head h2, .orders-head h2 { font-size: 20px; font-weight: 500; flex: 1; }
.key { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.key .k { width: 10px; height: 10px; border-radius: 50%; margin-left: 10px; }
.key .free { background: var(--standard); } .key .sold { background: #3a3550; } .key .held { background: #6b5ea8; } .key .kept { background: #8a6a2a; }
.admin .seat[data-state="sold"] circle { fill: #3a3550; stroke: #3a3550; }
.admin .seat[data-state="held"] circle { fill: #6b5ea8; stroke: #6b5ea8; }
.admin .seat[data-state="reserved"] circle { fill: #8a6a2a; stroke: #f0c77e; }
.admin .seat.taken { cursor: pointer; }
.admin .seat.selected circle { fill: #fff; stroke: #fff; }
.admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.admin-actions p[data-sel] { flex-basis: 100%; color: var(--text-2); font-size: 14px; }
.admin-actions .sep { flex-basis: 100%; height: 0; }
.admin-actions input { flex: 1 1 180px; font-size: 14px; padding: 10px 12px; }
.orders-head input { flex: 1 1 220px; font-size: 14px; padding: 10px 12px; }
.table-wrap { overflow-x: auto; }
.orders table { width: 100%; border-collapse: collapse; font-size: 14px; }
.orders th { text-align: left; font-weight: 500; color: var(--mute); padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.orders td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.orders em { font-style: normal; font-size: 11.5px; padding: 2px 7px; border-radius: 999px; background: rgba(172, 143, 245, .2); color: #e4dcff; }
.orders em.warn { background: rgba(228, 80, 100, .25); color: #ffd7df; }
.seat-tag { display: inline-block; margin: 0 4px 4px 0; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); white-space: nowrap; }
.seat-tag.in { border-color: rgba(56, 180, 120, .6); background: rgba(56, 180, 120, .15); }
.admin .notice { flex-basis: 100%; background: rgba(242, 166, 90, .1); border-color: rgba(242, 166, 90, .35); color: var(--text); }
.admin .notice .link { color: var(--gold); }

/* agreeing to the ticket terms before paying */
form.panel label.terms { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 16px; font-size: 14px; line-height: 1.55; color: var(--text-2); cursor: pointer; }
form.panel label.terms input { width: 18px; height: 18px; padding: 0; margin-top: 2px; flex: none; accent-color: var(--amber); }
form.panel label.terms input.error { outline: 1.5px solid #ef6f6f; outline-offset: 2px; }
form.panel label.terms a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
form.panel label.terms b { color: var(--text); font-weight: 500; }
