/* Exstream Tickets: club admin + platform owner */
:root {
  --ink: #0f172a; --ink-2: #334155; --ink-3: #475569; --line: #e2e8f0; --line-2: #cbd5e1; --bg: #f1f5f9; --panel: #fff;
  --brand: #4f46e5; --brand-2: #4338ca; --brand-soft: #eef2ff; --side: #0f172a; --side-2: #1e293b;
  --ok: #15803d; --ok-soft: #dcfce7; --bad: #b91c1c; --bad-soft: #fee2e2; --warn: #92400e; --warn-soft: #fef3c7;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; }
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--ink-2); }
.spin { width: 30px; height: 30px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth__side { background: var(--side); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth__side h1 { font-size: 44px; margin: 0; letter-spacing: -.02em; }
.auth__logo { display: block; width: 220px; height: auto; margin: 0 0 28px; }
.auth__side p { color: #e2e8f0; font-size: 17px; max-width: 38ch; }
.auth__main { display: grid; place-items: center; padding: 32px 20px; background: #fff; }
.auth__form { width: 100%; max-width: 400px; }
.auth__form h2 { font-size: 28px; margin: 0 0 6px; }
.auth__form p.lead { color: var(--ink-2); margin: 0 0 22px; }
@media (max-width: 800px) { .auth { grid-template-columns: 1fr; } .auth__side { padding: 26px 20px; } .auth__side h1 { font-size: 30px; } .auth__side p { display: none; } }

/* shell */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--side); color: #fff; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.side .plat { font-weight: 700; font-size: 17px; padding: 0 8px; }
.side .plat img { display: block; width: 150px; height: auto; margin: 4px 0 8px; }
.side .plat small { display: block; font-weight: 500; font-size: 12px; color: #c7d2fe; margin-top: 2px; }
.clubsw { margin: 16px 0 12px; background: var(--side-2); border-radius: 10px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; }
.clubsw .ini { width: 36px; height: 36px; border-radius: 8px; background: #000; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; border: 1px solid #334155; flex: none; overflow: hidden; }
.clubsw .ini img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.clubsw b { display: block; font-size: 14px; line-height: 1.25; } .clubsw span { font-size: 12px; color: #e2e8f0; }
.clubsw select { width: 100%; background: var(--side); color: #fff; border: 1px solid #334155; border-radius: 6px; padding: 5px 6px; font-size: 13px; margin-top: 4px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #fff; text-decoration: none; font-size: 14px; margin-bottom: 2px; }
.side nav a:hover { background: var(--side-2); }
.side nav a.on { background: var(--brand); font-weight: 600; }
.side .lab { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #c7d2fe; padding: 14px 10px 6px; }
.side .me { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid #1e293b; font-size: 13px; color: #e2e8f0; }
.side .me b { display: block; color: #fff; }
.side .me button { background: none; border: 0; color: #c7d2fe; padding: 0; cursor: pointer; text-decoration: underline; font-size: 13px; margin-right: 10px; }
.topbar { display: none; }
main { padding: 26px 30px 60px; min-width: 0; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .shell.menu .side { transform: none; box-shadow: 0 0 0 100vmax rgba(15, 23, 42, .5); }
  .topbar { display: flex; align-items: center; gap: 12px; background: var(--side); color: #fff; padding: 10px 14px; position: sticky; top: 0; z-index: 40; }
  .topbar button { background: var(--side-2); border: 0; color: #fff; border-radius: 8px; padding: 8px 12px; font-weight: 600; }
  main { padding: 18px 14px 50px; }
}

/* page parts */
.bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.bar h1 { margin: 0; font-size: 26px; letter-spacing: -.01em; } .bar p { margin: 4px 0 0; color: var(--ink-2); }
.bar .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.crumb { font-size: 13px; margin-bottom: 6px; } .crumb a { text-decoration: none; font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; color: var(--ink); white-space: nowrap; }
.btn:hover { background: #f8fafc; }
.btn--p { background: var(--brand); border-color: var(--brand); color: #fff; } .btn--p:hover { background: var(--brand-2); }
.btn--bad { background: var(--bad); border-color: var(--bad); color: #fff; } .btn--bad:hover { background: #991b1b; }
.btn--sm { padding: 6px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; cursor: pointer; text-decoration: underline; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.grid2--b { grid-template-columns: 1fr 1.15fr; }
@media (max-width: 1100px) { .grid2, .grid2--b { grid-template-columns: 1fr; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 18px; min-width: 0; }
.panel > h2 { font-size: 16px; margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pb { padding: 16px 18px; }
.pb > :last-child { margin-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat b { display: block; font-size: 26px; letter-spacing: -.01em; } .stat span { color: var(--ink-2); font-size: 13px; }
.note { background: var(--brand-soft); color: #312e81; border-radius: 8px; padding: 11px 13px; font-size: 14px; line-height: 1.5; margin: 0 0 14px; }
.note--warn { background: var(--warn-soft); color: #78350f; }
.note--bad { background: var(--bad-soft); color: #7f1d1d; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: #3730a3; white-space: nowrap; }
.tag--ok { background: var(--ok-soft); color: #14532d; } .tag--bad { background: var(--bad-soft); color: #7f1d1d; } .tag--warn { background: var(--warn-soft); color: #78350f; } .tag--grey { background: #e2e8f0; color: #1e293b; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a, .tabs button { padding: 9px 14px; border: 0; background: none; border-bottom: 3px solid transparent; font-weight: 600; color: var(--ink-2); text-decoration: none; cursor: pointer; margin-bottom: -1px; }
.tabs .on { color: var(--ink); border-bottom-color: var(--brand); }
.empty { padding: 30px 18px; text-align: center; color: var(--ink-2); }

/* tables */
.tw { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; font-weight: 700; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; } tr.click:hover td { background: #f8fafc; }
td.num, th.num { text-align: right; white-space: nowrap; }
td small { display: block; color: var(--ink-2); font-size: 12.5px; }

/* forms */
.f { display: grid; gap: 6px; margin-bottom: 14px; min-width: 0; }
.f > label, .f > .l { font-weight: 600; font-size: 13px; }
.f small { color: var(--ink-2); font-size: 12.5px; }
.in, .f input:not([type=checkbox]):not([type=radio]):not([type=color]), .f select, .f textarea { border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 11px; background: #fff; width: 100%; font-size: 15px; }
.f textarea { min-height: 110px; resize: vertical; }
.f input[type=color] { width: 54px; height: 40px; border: 1px solid var(--line-2); border-radius: 8px; padding: 3px; background: #fff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
@media (max-width: 640px) { .row2, .row3 { grid-template-columns: 1fr; } }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 10px; cursor: pointer; }
.chk input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.chk small { display: block; color: var(--ink-2); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg button { padding: 8px 11px; white-space: nowrap; font-size: 13px; font-weight: 600; border: 0; border-right: 1px solid var(--line-2); background: #fff; cursor: pointer; }
.seg button:last-child { border-right: 0; } .seg button.on { background: var(--brand); color: #fff; }
.colour { display: flex; gap: 8px; align-items: center; }
.colour .in { flex: 1; font-family: ui-monospace, monospace; }
pre.code { margin: 0; background: var(--side); color: #f1f5f9; padding: 14px; border-radius: 8px; font-size: 13px; line-height: 1.55; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.err { color: var(--bad); font-weight: 600; font-size: 14px; margin: 8px 0 0; }

/* price table */
.ptable td { padding: 8px 6px; vertical-align: top; } .ptable th { padding: 8px 6px; }
.ptable input:not([type=checkbox]) { border: 1px solid var(--line-2); border-radius: 6px; padding: 7px 8px; width: 100%; min-width: 64px; font-size: 14px; background: #fff; }
.ptable .money { width: 86px; }
.ptable .opts { display: grid; gap: 4px; font-size: 13px; min-width: 150px; }
.ptable .opts label { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.ptable .opts input[type=number] { width: 60px; min-width: 0; padding: 4px 6px; }

/* bars */
.bars { display: grid; gap: 8px; }
.bars div { display: grid; grid-template-columns: 140px 1fr 50px; gap: 10px; align-items: center; font-size: 14px; }
.bars i { display: block; height: 10px; border-radius: 99px; background: var(--brand); min-width: 2px; }
.bars span:last-child { text-align: right; font-weight: 600; }
.cap { height: 12px; background: #e2e8f0; border-radius: 99px; overflow: hidden; margin: 8px 0 4px; } .cap i { display: block; height: 100%; background: var(--brand); }

/* modal + toast */
.modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal__box { background: #fff; border-radius: 14px; width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.modal__box--wide { max-width: 860px; }
.modal__hd { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal__hd h2 { margin: 0; font-size: 18px; }
.modal__hd button { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink-2); padding: 0 4px; }
.modal__bd { padding: 18px 20px; }
.modal__ft { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; position: sticky; bottom: 0; background: #fff; }
.toasts { position: fixed; bottom: 18px; right: 18px; display: grid; gap: 8px; z-index: 200; }
.toast { background: var(--side); color: #fff; padding: 12px 16px; border-radius: 10px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); max-width: 380px; }
.toast--bad { background: var(--bad); }

/* branding preview */
.preview { border-radius: 0 0 12px 12px; padding: 22px; min-height: 300px; }
.preview--dark { background: #000; }
.preview--light { background: #fff; }
.logo-box { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.logo-box .lg { width: 130px; height: 56px; border: 1px dashed var(--line-2); border-radius: 8px; display: grid; place-items: center; background: #f8fafc; overflow: hidden; color: var(--ink-2); font-size: 13px; }
.logo-box .lg img { max-width: 100%; max-height: 100%; }

/* scanner (full screen, dark) */
body.scanner-on { background: #000; overflow: hidden; }
body.scanner-on #app { display: none; }
.scn { position: fixed; inset: 0; background: #000; color: #fff; display: flex; flex-direction: column; z-index: 300; }
.scn__pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; background: #14532d; color: #fff; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.scn__pill i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.scn__pill.off { background: #7f1d1d; } .scn__pill.off i { background: #fca5a5; }
.scn__x { background: #1e293b; color: #fff; border: 0; border-radius: 8px; padding: 9px 12px; font-weight: 600; text-decoration: none; font-size: 14px; cursor: pointer; }
.scn__tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: #0f172a; border-top: 1px solid #1e293b; }
.scn__tabs button { background: none; border: 0; color: #fff; padding: 11px; font-weight: 700; border-bottom: 3px solid transparent; cursor: pointer; }
.scn__tabs button.on { border-bottom-color: #818cf8; }
.scn section { flex: 1; overflow-y: auto; display: flex; flex-direction: column; min-height: 0; }
.scn__view { position: relative; background: #111; flex: 1; min-height: 200px; overflow: hidden; }
.scn__view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scn__frame { position: absolute; inset: 18% 22%; pointer-events: none; }
.scn__frame i { position: absolute; width: 34px; height: 34px; border: 4px solid #fff; }
.scn__frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; } .scn__frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.scn__frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; } .scn__frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.scn__cam { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #4f46e5; color: #fff; border: 0; border-radius: 10px; padding: 14px 22px; font-weight: 700; font-size: 16px; cursor: pointer; }
.scn__res { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 14px 16px 12px; border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.5); cursor: pointer; max-height: 70%; overflow: auto; }
.scn__res .big { font-size: 34px; font-weight: 800; line-height: 1.05; letter-spacing: -.01em; }
.scn__res .type { font-size: 20px; font-weight: 700; margin-top: 4px; }
.scn__res p { margin: 6px 0 0; font-size: 15px; }
.scn__res .flag { display: inline-block; background: #fff; color: #000; font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 4px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; }
.scn__res .id { display: block; font-size: 13px; margin-top: 4px; opacity: .95; }
.scn__res .seat { display: inline-block; margin-top: 8px; font-size: 22px; font-weight: 800; background: #fff; color: #000; padding: 4px 10px; border-radius: 6px; }
.scn__res .flag--test { background: #facc15; color: #000; }
.scn__res--idle { background: #1e293b; border: 1px solid #475569; } .scn__res--ok { background: #15803d; } .scn__res--bad { background: #b91c1c; } .scn__res--warn { background: #b45309; }
.scn--area .scn__view { box-shadow: inset 0 0 0 4px #818cf8; }
.scn__manual { display: flex; gap: 8px; padding: 10px 12px; background: #0f172a; }
.scn__manual input { flex: 1; background: #1e293b; color: #fff; border: 1px solid #334155; border-radius: 8px; padding: 11px 12px; font-size: 16px; min-width: 0; text-transform: uppercase; }
.scn__manual button, .scn__btn { background: #4f46e5; color: #fff; border: 0; border-radius: 8px; padding: 11px 16px; font-weight: 700; cursor: pointer; font-size: 15px; }
.scn__btn { width: 100%; margin-top: 10px; } .scn__btn:disabled { opacity: .5; }
.scn__list { padding: 12px; display: grid; gap: 10px; align-content: start; }
.scn__card { background: #1e293b; border-radius: 10px; padding: 12px 14px; }
.scn__card b { font-size: 17px; } .scn__card small { display: block; color: #e2e8f0; }
.scn__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.scn__chips .chip { display: inline-flex; gap: 6px; align-items: center; background: #0f172a; border: 1px solid #334155; border-radius: 999px; padding: 6px 10px; font-size: 14px; }
.scn__chips .chip.in { background: #14532d; border-color: #14532d; }
.scn__hint { color: #e2e8f0; padding: 6px 2px; margin: 0; }
.scn__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #1e293b; border-radius: 10px; padding: 12px 14px; }
.scn__row small { display: block; color: #e2e8f0; }
.scn__step { display: flex; align-items: center; gap: 10px; }
.scn__step button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #4f46e5; color: #fff; font-size: 22px; font-weight: 700; cursor: pointer; }
.scn__step button.m { background: #334155; }
.scn__step span { min-width: 22px; text-align: center; font-size: 20px; font-weight: 700; }
.scn__seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.scn__seg button { background: #1e293b; border: 2px solid #334155; color: #fff; border-radius: 8px; padding: 10px; font-weight: 700; cursor: pointer; }
.scn__seg button.on { border-color: #818cf8; background: #312e81; }
.scn__counts { display: grid; grid-template-columns: repeat(3, 1fr); background: #1e293b; border-radius: 12px; margin-top: 6px; }
.scn__counts div { padding: 10px; text-align: center; } .scn__counts b { display: block; font-size: 24px; } .scn__counts span { font-size: 12px; color: #e2e8f0; }

/* dashboards */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tiles { gap: 10px; } .tile { padding: 12px 14px; } .tile .big { font-size: 24px; } .tile .what { font-size: 14px; } .tile .sub { font-size: 12px; } }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; min-width: 0; }
.tile--live { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.tile .big { display: block; font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tile .big small { font-size: 16px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.tile .what { display: block; font-weight: 600; margin-top: 4px; }
.tile .sub { display: block; font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.tile .up { color: var(--ok); font-weight: 600; }
.tile .cap { margin: 10px 0 6px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ok); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px #dcfce7; }
.tag--live { background: var(--brand); color: #fff; }
/* sales by day: one series, today drawn darker */
.daychart { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; align-items: end; height: 170px; padding-top: 18px; }
.daychart .col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; cursor: default; }
.daychart .col b { display: block; background: #a5b4fc; border-radius: 4px 4px 0 0; min-height: 2px; }
.daychart .col.today b { background: var(--brand); }
.daychart .col:hover b { background: var(--brand-2); }
.daychart .col .tip { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: var(--side); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .1s; z-index: 2; }
.daychart .col:hover .tip, .daychart .col:focus .tip { opacity: 1; }
.dayaxis { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; border-top: 1px solid var(--line); margin-top: 0; padding-top: 6px; font-size: 11.5px; color: var(--ink-2); text-align: center; }
.chartnote { font-size: 12.5px; color: var(--ink-2); margin: 10px 0 0; }
.hbars { display: grid; gap: 10px; }
.hbars .r { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 64px; gap: 12px; align-items: center; font-size: 14px; }
.hbars .r span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbars .track { height: 10px; background: #eef2ff; border-radius: 99px; overflow: hidden; }
.hbars .track i { display: block; height: 100%; background: var(--brand); border-radius: 99px; min-width: 2px; }
.hbars .r.extra .track i { background: #818cf8; }
.hbars .r b { text-align: right; font-variant-numeric: tabular-nums; }
.hbars .sep { border-top: 1px solid var(--line); margin: 2px 0; }
.nextcard { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.nextcard h3 { margin: 0; font-size: 20px; } .nextcard p { margin: 4px 0 0; color: var(--ink-2); }
.minicap { width: 120px; height: 8px; background: #e2e8f0; border-radius: 99px; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 8px; } .minicap i { display: block; height: 100%; background: var(--brand); }

/* seating plans */
.row4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .row4 { grid-template-columns: 1fr 1fr; } }
.stand { overflow: auto; max-height: 70vh; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; padding: 10px; }
.stand-in { position: relative; margin: 0 auto; --sz: 26px; }
.stand .oval { position: absolute; box-sizing: border-box; border-radius: 9999px; background: #9a4a26; border: 3px solid #f8fafc; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.stand .oval .inf { box-sizing: border-box; height: 100%; border-radius: 9999px; background: #2f6e3b; border: 2px solid #ffffff; display: flex; align-items: center; justify-content: center; color: #ffffff; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.stand .oval .sl { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 10px; background: repeating-conic-gradient(#ffffff 0 25%, #111111 0 50%) 0 0 / 5px 5px; }
.stand .blk { position: absolute; width: max-content; display: flex; flex-direction: column; gap: calc(var(--sz) * .12); transform-origin: center; }
.stand .blk h4 { position: relative; margin: 0; height: calc(var(--sz) * 1.1); }
.stand .blk h4 span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; font-size: max(10px, calc(var(--sz) * .55)); color: var(--ink); }
.stand .blk.flip { flex-direction: column-reverse; } .stand .blk.flip .sr { flex-direction: row-reverse; }
.stand .sr { display: flex; gap: calc(var(--sz) * .12); align-items: center; }
.stand .sr b { width: calc(var(--sz) * .95); height: calc(var(--sz) * .92); line-height: 1; display: flex; align-items: center; justify-content: center; overflow: visible; flex: none; font-size: max(9px, calc(var(--sz) * .44)); text-align: center; color: var(--ink-2); }
.stand .st { width: var(--sz); height: calc(var(--sz) * .92); flex: none; font-size: calc(var(--sz) * .38); font-weight: 700; border: 1px solid var(--line-2); border-radius: 5px 5px 2px 2px; background: #fff; color: var(--ink); cursor: pointer; padding: 0; }
.stand .st:hover { border-color: var(--brand); }
.stand .st.off { background: repeating-linear-gradient(45deg, #94a3b8, #94a3b8 2px, #e2e8f0 2px, #e2e8f0 5px); border-color: #64748b; color: transparent; }
.stand .st.aisle { margin-right: calc(var(--sz) * .5); } .stand .flip .st.aisle { margin-right: 0; margin-left: calc(var(--sz) * .5); }
.stand .tiny .st, .stand-in.tiny .st { color: transparent; }
.panel h2 .zb { display: inline-flex; gap: 6px; }
.ptable select { border: 1px solid var(--line-2); border-radius: 6px; padding: 7px 8px; font-size: 14px; background: #fff; max-width: 100%; }
.ptable .opts select { padding: 4px 6px; font-size: 13px; }
.stand-in.tiny .sr b { font-size: calc(var(--sz) * .7); }
.blkpick { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 13px; }
.blkpick label { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; cursor: pointer; }
.holders { display: grid; gap: 10px; }
.holder { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.holder__ph { width: 84px; height: 84px; flex: none; border-radius: 8px; overflow: hidden; background: #f1f5f9; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-2); border: 1px dashed var(--line-2); }
.holder__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.holder__b { flex: 1; min-width: 0; }
.holder__row { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; align-items: center; }
.holder__row input { flex: 1; min-width: 140px; border: 1px solid var(--line-2); border-radius: 6px; padding: 7px 9px; font-size: 14px; }
.holder__row label.btn { cursor: pointer; }
.copyrow { display: flex; gap: 6px; max-width: 640px; }
.copyrow input { flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: 6px; padding: 7px 9px; font-size: 14px; background: #f8fafc; color: var(--ink); }
#clubForm textarea[name=terms] { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.5; }

/* scanner: setup screen first, then the camera full screen */
.scn__setup, .scn__work { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.scn__setup[hidden], .scn__work[hidden] { display: none; }
.scn__setup { overflow-y: auto; background: #0f172a; }
.scn__top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #0f172a; border-bottom: 1px solid #1e293b; }
.scn__top > b { flex: 1; font-size: 18px; }
.scn__what { flex: 1; min-width: 0; } .scn__what b { display: block; font-size: 16px; } .scn__what small { display: block; font-size: 13px; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scn__dot { width: 12px; height: 12px; border-radius: 50%; background: #4ade80; flex: none; } .scn__dot.off { background: #f87171; }
.scn__form { padding: 16px; display: grid; gap: 14px; max-width: 560px; width: 100%; margin: 0 auto; }
.scn__form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.scn__form label[hidden] { display: none; }
.scn__form select, .scn__form input { background: #1e293b; color: #fff; border: 1px solid #475569; border-radius: 10px; padding: 12px; font-size: 16px; width: 100%; }
.scn__lbl { font-weight: 700; font-size: 15px; margin-bottom: -6px; }
.scn__seg--mode button { text-align: left; padding: 12px; } .scn__seg--mode b { display: block; font-size: 16px; } .scn__seg--mode small { display: block; font-weight: 500; font-size: 13px; color: #e2e8f0; margin-top: 2px; }
.scn__msg { background: #1e293b; border-left: 4px solid #818cf8; border-radius: 8px; padding: 10px 12px; font-size: 14px; } .scn__msg.bad { border-left-color: #f87171; } .scn__msg[hidden] { display: none; }
.scn__go { background: #4f46e5; color: #fff; border: 0; border-radius: 12px; padding: 16px; font-size: 18px; font-weight: 800; cursor: pointer; }
.scn__pane { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.scn__pane[hidden] { display: none; }
.scn__pane .scn__view { flex: 1; min-height: 0; }
.scn__res[hidden] { display: none; }
.scn__tabs { border-top: 1px solid #1e293b; }
.scn__tabs button { padding: 14px 8px; font-size: 15px; border-bottom: 0; border-top: 3px solid transparent; } .scn__tabs button.on { border-top-color: #818cf8; }
.scn__tap { display: block; font-size: 12px; margin-top: 6px; }
.scn__undo { background: #fff; color: #000; border: 0; border-radius: 8px; padding: 10px 14px; font-weight: 800; font-size: 15px; cursor: pointer; margin-top: 10px; }
.chip__undo { background: #fff; color: #000; border: 0; border-radius: 999px; padding: 2px 8px; font-weight: 700; font-size: 12px; cursor: pointer; margin-left: 4px; }
.scn__pop { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 14px; background: rgba(0,0,0,.85); }
.scn__pop[hidden] { display: none; }
.scn__popin { width: min(440px, 100%); max-height: 100%; overflow-y: auto; border-radius: 18px; padding: 16px; text-align: center; border: 4px solid #fff; }
.scn__pop--ok .scn__popin { background: #15803d; } .scn__pop--warn .scn__popin { background: #b45309; } .scn__pop--bad .scn__popin { background: #b91c1c; } .scn__pop--idle .scn__popin { background: #1e293b; }
.scn__popres .big { font-size: 30px; font-weight: 800; line-height: 1.1; } .scn__popres .type { font-size: 18px; font-weight: 700; margin-top: 2px; }
.scn__photo { margin: 12px auto 8px; width: min(78vw, 46vh, 340px); aspect-ratio: 1; }
.scn__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; border: 4px solid #fff; display: block; background: #fff; }
.scn__photo span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 14px; border: 4px dashed #fff; font-size: 20px; font-weight: 800; padding: 16px; }
.scn__name { font-size: 26px; font-weight: 800; line-height: 1.15; }
.scn__popin .seat { display: inline-block; margin-top: 8px; font-size: 20px; font-weight: 800; background: #fff; color: #000; padding: 4px 10px; border-radius: 6px; }
.scn__popin p { margin: 8px 0 0; font-size: 15px; }
.scn__popin .flag--test { display: inline-block; background: #facc15; color: #000; font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 4px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; }
.scn__popbtns { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.scn__popbtns .scn__undo { margin-top: 0; }
.scn__close { background: #fff; color: #000; border: 0; border-radius: 12px; padding: 14px 34px; font-size: 18px; font-weight: 800; cursor: pointer; min-width: 160px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 700; text-decoration: underline; cursor: pointer; font-size: inherit; }
