:root {
  --bg: #FFFFFF; --page: #F4F5F8; --ink: #111216; --muted: #5E6170; --line: #E2E4EA; --card: #FFFFFF;
  --brand: #2D3BFF; --brand-ink: #FFFFFF; --brand-soft: #EEF0FF; --good: #0E8A4A; --bad: #C8322B; --warn: #9A6A00;
  --seat-open: #2D3BFF; --seat-sold: #D3D6DE; --seat-pick: #FF6A00;
  --fr-ink: #0B0B0F; --fr-accent: #D4FF3A;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--ink); }
body { font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(26px, 5vw, 40px); line-height: 1.08; }
h2 { font-size: 22px; }
h3 { font-size: 16px; }
.muted { color: var(--muted); }

.demo-banner { background: #111216; color: #C9CBD4; font-size: 12px; text-align: center; padding: 6px 12px; }
.top { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 17px; }
.logo-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 13px; letter-spacing: .02em; }
.nav { display: flex; gap: 6px; }
.nav a { color: var(--muted); font-weight: 600; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.nav a.on { color: var(--ink); background: var(--page); }
.pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; margin-left: 4px; }
main { padding-top: 24px; padding-bottom: 48px; min-height: 70vh; outline: none; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13px; padding-top: 18px; padding-bottom: 32px; border-top: 1px solid var(--line); }
.verified-by b, .fr-word { font-weight: 900; letter-spacing: -0.02em; color: var(--fr-ink); }
.verified-by i, .fr-word i { font-style: normal; background: var(--fr-ink); color: var(--fr-accent); padding: 0 3px; border-radius: 3px; margin-left: 1px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 10px; border: 1px solid var(--line);
       background: var(--bg); font-weight: 700; cursor: pointer; text-align: center; }
.btn:hover { border-color: #C8CBD5; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.fr { background: var(--fr-ink); border-color: var(--fr-ink); color: #fff; }
.btn.fr .fr-word { color: #fff; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 32px 0 14px; }

/* Shows */
.hero { position: relative; border-radius: 20px; overflow: hidden; min-height: 260px; display: flex; align-items: flex-end; color: #fff;
        background: #222 center / cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.78)); }
.hero > * { position: relative; z-index: 1; }
.hero-body { padding: 24px; }
.hero .tag { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; background: rgba(255,255,255,.18);
             backdrop-filter: blur(8px); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.show-card { overflow: hidden; display: flex; flex-direction: column; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.show-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(17,18,22,.08); }
.show-card .img { aspect-ratio: 16/10; background: #ddd center / cover; position: relative; }
.date-chip { position: absolute; left: 12px; top: 12px; background: #fff; border-radius: 10px; padding: 6px 10px; text-align: center; line-height: 1.1; }
.date-chip b { display: block; font-size: 20px; }
.date-chip span { font-size: 11px; font-weight: 800; color: var(--bad); letter-spacing: .06em; }
.show-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.show-card .meta { display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; }
.show-card .meta b { white-space: nowrap; }
.badge { white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.badge.draw { background: #FFF2E0; color: var(--warn); }
.badge.early { background: #111216; color: var(--fr-accent); }
.store-strip { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.store-tile { color: #fff; border-radius: var(--radius); aspect-ratio: 1; background: #333 center / cover; position: relative; overflow: hidden; display: flex; align-items: flex-end; }
.store-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.75)); }
.store-tile span { position: relative; z-index: 1; padding: 12px; font-weight: 800; }

/* Show page */
.show-layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) 340px; margin-top: 20px; align-items: start; }
@media (max-width: 860px) { .show-layout { grid-template-columns: 1fr; } }
.map-card { padding: 16px; }
.venue-map { width: 100%; height: auto; display: block; }
.venue-map .sec { cursor: pointer; stroke: #fff; stroke-width: 3; transition: opacity .15s; }
.venue-map .sec.soldout { cursor: not-allowed; fill: var(--seat-sold) !important; }
.venue-map .sec.sel { stroke: var(--ink); stroke-width: 4; }
.venue-map .sec:hover:not(.soldout) { opacity: .85; }
.venue-map text { pointer-events: none; font-size: 11px; font-weight: 700; fill: #fff; text-anchor: middle; }
.venue-map text.price { font-size: 10px; font-weight: 600; opacity: .9; }
.venue-map .stage { fill: #111216; }
.venue-map .stage-label { fill: #fff; font-size: 12px; letter-spacing: .2em; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 6px; }
.seat-panel { padding: 16px; margin-top: 16px; }
.seat-rows { display: grid; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.seat-row { display: flex; align-items: center; gap: 5px; }
.seat-row .rl { width: 22px; font-size: 12px; font-weight: 700; color: var(--muted); flex: none; }
.seat { width: 24px; height: 24px; border-radius: 6px 6px 9px 9px; border: 0; background: var(--seat-open); color: #fff; font-size: 10px; font-weight: 700; cursor: pointer; flex: none; padding: 0; }
.seat:disabled { background: var(--seat-sold); color: transparent; cursor: not-allowed; }
.seat.pick { background: var(--seat-pick); }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 18px; cursor: pointer; }
.summary { padding: 18px; position: sticky; top: 76px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
.summary .line.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 800; font-size: 16px; }
.summary .seatline { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 18px; }
.note { font-size: 13px; color: var(--muted); }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); font-size: 14px; }
.notice.warn { background: #FFF6E5; color: #6B4A00; }
.notice.bad { background: #FDECEA; color: #8E211B; }
.notice.dark { background: #111216; color: #E9EAF0; }

/* Band store */
.band-hero { min-height: 340px; }
.band-hero h1 { font-size: clamp(32px, 7vw, 58px); }
.products { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.product { overflow: hidden; cursor: pointer; text-align: left; padding: 0; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); }
.product .img { aspect-ratio: 1; background: #eee center / cover; }
.product .body { padding: 12px 14px 14px; }
.sheet-backdrop { position: fixed; inset: 0; background: rgba(17,18,22,.45); z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 700px) { .sheet-backdrop { align-items: center; } }
.sheet { background: #fff; width: min(720px, 100%); max-height: 92vh; overflow: auto; border-radius: 20px 20px 0 0; display: grid; grid-template-columns: 1fr; }
@media (min-width: 700px) { .sheet { border-radius: 20px; grid-template-columns: 1fr 1fr; } }
.sheet .img { aspect-ratio: 1; background: #eee center / cover; }
.sheet .body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes button { min-width: 48px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; cursor: pointer; }
.sizes button.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.cart-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line .thumb { width: 56px; height: 56px; border-radius: 10px; background: #eee center / cover; }

/* Checkout */
.checkout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; margin-top: 8px; }
@media (max-width: 860px) { .checkout { grid-template-columns: 1fr; } .checkout .summary { position: static; order: -1; } }
.steps { display: flex; gap: 8px; margin: 0 0 18px; }
.steps div { flex: 1; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 8px; border-top: 4px solid var(--line); }
.steps div.on { color: var(--ink); border-color: var(--brand); }
.steps div.done { color: var(--good); border-color: var(--good); }
.panel { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.verify { display: grid; gap: 18px; grid-template-columns: 200px 1fr; align-items: center; }
@media (max-width: 600px) { .verify { grid-template-columns: 1fr; } .verify .qr { display: none; } }
.qr { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.qr svg { width: 100%; height: auto; display: block; }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; display: inline-block; vertical-align: -4px; }
@keyframes spin { to { transform: rotate(360deg); } }
#payment-element { min-height: 120px; }
.ticket { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 16px; border: 1px dashed #C8CBD5; border-radius: 14px; background: #fff; }
.ticket .bar { width: 120px; height: 54px; }
.ok-head { display: flex; align-items: center; gap: 12px; }
.ok-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--good); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 900; flex: none; }
.stubs { display: flex; align-items: center; gap: 10px; background: #111216; color: #fff; border-radius: 12px; padding: 12px 14px; }
.stubs b { color: var(--fr-accent); font-size: 18px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px;
         font-weight: 600; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 50; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; }
@media (max-width: 600px) {
  .nav a { padding: 8px 6px; font-size: 14px; }
  .logo span:last-child { display: none; }
  .hero-body { padding: 18px; }
}
