/* SpareSeat: ticket-stub design system
   Stage indigo + rani pink + marigold. Display: Big Shoulders Display. Text: Figtree. */

:root {
  --stage: #241848;
  --stage-2: #322262;
  --ink: #1f1640;
  --ink-2: #4a4366;
  --muted: #6d6789;
  --paper: #f5f4f9;
  --card: #ffffff;
  --line: #e3e0ec;
  --line-2: #cfcade;
  --rani: #e0306b;
  --rani-dark: #b81f54;
  --rani-soft: #fde7ef;
  --marigold: #f4a51c;
  --marigold-soft: #fff3d9;
  --teal: #0f8f7e;
  --teal-soft: #ddf3ef;
  --danger: #c62a2a;
  --danger-soft: #fdeaea;
  --radius: 14px;
  --radius-sm: 9px;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --text: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.display { font-family: var(--display); font-weight: 800; letter-spacing: .005em; }
.nowrap { white-space: nowrap; }
.stack > * + * { margin-top: 14px; }

/* ---------- Header ---------- */
.demo-bar { background: var(--marigold); color: var(--ink); font-size: .85rem; text-align: center; padding: 6px var(--gutter); }
.demo-bar a { font-weight: 700; }
.site-header { background: var(--stage); color: #fff; position: sticky; top: 0; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: .01em; }
.logo svg { width: 30px; height: 30px; }
.header-search { flex: 1; max-width: 420px; position: relative; }
.header-search input { width: 100%; border: 0; border-radius: 999px; padding: 9px 16px 9px 40px; background: rgba(255,255,255,.12); color: #fff; }
.header-search input::placeholder { color: rgba(255,255,255,.65); }
.header-search input:focus { background: #fff; color: var(--ink); outline: none; }
.header-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; opacity: .7; pointer-events: none; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a, .nav button.linklike { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: rgba(255,255,255,.88); background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav button.linklike:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav a.active { color: #fff; background: rgba(255,255,255,.14); }
.nav .btn { color: #fff; }
.nav a.btn-primary, .nav a.btn-primary:hover { background: var(--rani); color: #fff; }
.nav a.btn-primary:hover { background: var(--rani-dark); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }
.badge-dot { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--rani); color: #fff; font-size: .72rem; font-weight: 700; margin-left: 4px; }

@media (max-width: 860px) {
  .header-search { display: none; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--stage); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; gap: 2px; border-top: 1px solid rgba(255,255,255,.1); }
  .nav.open { display: flex; }
  .nav a, .nav button.linklike { padding: 12px; text-align: left; }
  .nav form { display: block; }
  .nav .btn { margin-top: 6px; justify-content: center; }
}

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; border: 2px solid transparent; border-radius: 999px; padding: 10px 20px; font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer; line-height: 1.2; transition: background-color .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--rani); color: #fff; }
.btn-primary:hover { background: var(--rani-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--stage-2); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: #0b7466; }
.btn-danger { background: transparent; color: var(--danger); border-color: #efc3c3; }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { padding: 7px 14px; font-size: .88rem; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linklike { background: none; border: 0; padding: 0; color: var(--rani-dark); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.field { display: block; margin-bottom: 16px; }
.field > span, .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .opt { color: var(--muted); font-weight: 400; }
.input, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; padding: 11px 13px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--stage-2); box-shadow: 0 0 0 3px rgba(50,34,98,.14); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.error-text { color: var(--danger); font-size: .85rem; margin-top: 6px; display: block; }
.hint { color: var(--muted); font-size: .85rem; margin-top: 6px; display: block; }
.prefix { position: relative; }
.prefix > b { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.prefix > input { padding-left: 30px !important; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--rani); flex-shrink: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.radio-cards { display: grid; gap: 10px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: 12px 14px; cursor: pointer; background: #fff; }
.radio-card input { accent-color: var(--rani); margin-top: 4px; }
.radio-card:has(input:checked) { border-color: var(--rani); background: var(--rani-soft); }
.radio-card strong { display: block; font-size: .95rem; }
.radio-card small { color: var(--muted); }

/* ---------- Flash ---------- */
.flash { margin: 16px auto 0; display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 500; }
.flash-ok { background: var(--teal-soft); color: #0a5c51; }
.flash-error { background: var(--danger-soft); color: #8e1d1d; }

/* ---------- Ticket stub primitives ---------- */
/* Horizontal perforation: notches on the left and right edges at --cut from the top. */
.stub-h {
  --notch: 10px;
  -webkit-mask: radial-gradient(circle var(--notch) at 0 var(--cut), #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% var(--cut), #0000 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle var(--notch) at 0 var(--cut), #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% var(--cut), #0000 97%, #000) right / 51% 100% no-repeat;
}
/* Vertical perforation: notches on the top and bottom edges at --cut from the left. */
.stub-v {
  --notch: 10px;
  -webkit-mask: radial-gradient(circle var(--notch) at var(--cut) 0, #0000 97%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at var(--cut) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at var(--cut) 0, #0000 97%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at var(--cut) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
}
.perf-x { border-top: 2px dashed var(--line-2); }
.perf-y { border-left: 2px dashed var(--line-2); }

/* ---------- Poster art (generated per event) ---------- */
.poster {
  --h: 320;
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(120% 90% at 85% 10%, hsl(calc(var(--h) + 30) 95% 62% / .85), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, hsl(calc(var(--h) - 40) 90% 45% / .9), transparent 60%),
    linear-gradient(150deg, hsl(var(--h) 65% 30%), hsl(calc(var(--h) + 60) 60% 14%));
}
.poster::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px); pointer-events: none; }
.poster-word { position: absolute; left: 14px; right: 14px; bottom: 6px; font-family: var(--display); font-weight: 900; font-size: 3.4rem; line-height: .86; letter-spacing: -.01em; text-transform: uppercase; color: rgba(255,255,255,.92); text-shadow: 0 2px 24px rgba(0,0,0,.25); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.poster-icon { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; backdrop-filter: blur(4px); }
.poster-icon svg { width: 18px; height: 18px; }
.poster-flag { position: absolute; top: 12px; left: 12px; background: var(--marigold); color: var(--ink); font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; z-index: 1; }

/* ---------- Event card ---------- */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.event-card { --cut: 158px; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); text-decoration: none; transition: transform .18s ease; }
.event-card:hover { transform: translateY(-3px); }
.event-card .poster { height: var(--cut); border-radius: var(--radius) var(--radius) 0 0; }
.event-card-body { padding: 14px 16px 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.event-card-date { display: flex; gap: 8px; align-items: baseline; color: var(--rani-dark); font-weight: 700; font-size: .85rem; }
.event-card h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.25; }
.event-card .where { color: var(--muted); font-size: .9rem; }
.event-card-foot { margin: 10px 16px 0; padding: 11px 0 13px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.event-card-foot .count { font-weight: 600; font-size: .9rem; }
.event-card-foot .price { font-family: var(--display); font-weight: 800; font-size: 1.35rem; }
.event-card-foot .price small { font-family: var(--text); font-weight: 500; font-size: .75rem; color: var(--muted); margin-right: 3px; }
.event-card.no-tickets .count { color: var(--muted); font-weight: 500; }

/* ---------- Hero ---------- */
.hero { background: var(--stage); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 0%, rgba(224,48,107,.35), transparent 60%), radial-gradient(40% 60% at 10% 100%, rgba(244,165,28,.18), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 7vw, 5.6rem); line-height: .92; letter-spacing: -.005em; text-transform: uppercase; max-width: 11ch; }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 46ch; margin: 22px 0 28px; }
.hero-search { --cut: calc(100% - 168px); display: flex; background: #fff; color: var(--ink); border-radius: var(--radius); max-width: 640px; }
.hero-search .fields { flex: 1; display: grid; grid-template-columns: 1.4fr 1fr; min-width: 0; }
.hero-search label { display: block; padding: 12px 18px; min-width: 0; }
.hero-search label + label { border-left: 1px solid var(--line); }
.hero-search label span { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); }
.hero-search input, .hero-search select { width: 100%; border: 0; padding: 2px 0; background: transparent; font-weight: 600; font-size: 1rem; outline: none; text-overflow: ellipsis; }
.hero-search .go { width: 168px; flex-shrink: 0; display: grid; place-items: center; padding: 12px; }
.hero-search .go .btn { width: 100%; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); }
.chip svg { width: 16px; height: 16px; }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.hero .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #fff; }
.hero .chip:hover { background: rgba(255,255,255,.16); }

.fan { position: relative; height: 420px; }
.fan-ticket { --cut: calc(100% - 92px); position: absolute; left: 50%; top: 50%; width: 340px; display: flex; background: #fff; color: var(--ink); border-radius: var(--radius); text-decoration: none; box-shadow: none; transform-origin: 50% 120%; }
.fan-ticket .poster { width: 96px; flex-shrink: 0; border-radius: var(--radius) 0 0 var(--radius); }
.fan-ticket .poster-word { display: none; }
.fan-ticket .poster-icon { top: 50%; left: 50%; right: auto; transform: translate(-50%, -50%); width: 52px; height: 52px; }
.fan-ticket .poster-icon svg { width: 26px; height: 26px; }
.fan-ticket .fan-body { flex: 1; padding: 14px 14px 14px 16px; min-width: 0; }
.fan-ticket .fan-body strong { display: block; font-size: 1rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fan-ticket .fan-body span { display: block; color: var(--muted); font-size: .85rem; }
.fan-ticket .fan-price { width: 92px; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 10px 6px; }
.fan-ticket .fan-price b { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1; }
.fan-ticket .fan-price small { font-size: .72rem; color: var(--muted); text-align: center; line-height: 1.2; margin-top: 4px; }
.fan-ticket:nth-child(1) { transform: translate(-50%, -50%) translate(-24px, -118px) rotate(-7deg); }
.fan-ticket:nth-child(2) { transform: translate(-50%, -50%) translate(18px, -6px) rotate(3deg); z-index: 2; }
.fan-ticket:nth-child(3) { transform: translate(-50%, -50%) translate(-8px, 112px) rotate(-2deg); z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .fan-ticket { animation: deal .7s cubic-bezier(.2,.8,.2,1) both; }
  .fan-ticket:nth-child(2) { animation-delay: .12s; }
  .fan-ticket:nth-child(3) { animation-delay: .24s; }
  @keyframes deal { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
}
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 52px; }
  .fan { display: none; }
}
@media (max-width: 640px) {
  .hero-search { flex-direction: column; -webkit-mask: none; mask: none; }
  .hero-search .fields { grid-template-columns: 1fr; }
  .hero-search label + label { border-left: 0; border-top: 1px solid var(--line); }
  .hero-search .go { width: auto; border-left: 0 !important; border-top: 2px dashed var(--line-2); }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.6rem); text-transform: uppercase; letter-spacing: .005em; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }
.section-head a { font-weight: 700; color: var(--rani-dark); text-decoration: none; white-space: nowrap; }
.section-head a:hover { text-decoration: underline; }

.pulse-line { background: #fff; border-bottom: 1px solid var(--line); }
.pulse-line .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 1.02rem; }
.pulse-line strong { font-family: var(--display); font-weight: 800; font-size: 1.5rem; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); flex-shrink: 0; }

.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 270px); gap: 20px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }

.week-list { display: grid; gap: 12px; }
.week-row { --cut: 92px; display: flex; align-items: stretch; background: #fff; border-radius: var(--radius); text-decoration: none; }
.date-stub { width: 92px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 6px; }
.date-stub .d { font-family: var(--display); font-weight: 800; font-size: 2.3rem; line-height: .9; }
.date-stub .m { font-weight: 700; font-size: .85rem; color: var(--rani-dark); }
.date-stub .w { font-size: .78rem; color: var(--muted); }
.week-row .info { flex: 1; padding: 14px 18px; min-width: 0; }
.week-row .info strong { display: block; font-size: 1.05rem; }
.week-row .info span { color: var(--muted); font-size: .9rem; }
.week-row .right { padding: 14px 18px; text-align: right; display: flex; flex-direction: column; justify-content: center; }
.week-row .right b { font-family: var(--display); font-size: 1.35rem; font-weight: 800; }
.week-row .right span { font-size: .85rem; color: var(--muted); }
@media (max-width: 560px) { .week-row .right { display: none; } }

.city-cloud { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.city-cloud a { text-decoration: none; display: inline-flex; align-items: baseline; gap: 8px; padding: 4px 0; }
.city-cloud a .name { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.6rem); text-transform: uppercase; line-height: 1.05; transition: color .15s; }
.city-cloud a:hover .name { color: var(--rani); }
.city-cloud a .n { font-size: .85rem; color: var(--muted); font-weight: 600; }

.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.how-col { background: #fff; border-radius: var(--radius); padding: 28px; }
.how-col h3 { font-family: var(--display); font-weight: 800; font-size: 1.8rem; text-transform: uppercase; margin-bottom: 18px; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 18px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 800; font-size: 1.5rem; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--rani-soft); color: var(--rani-dark); }
.steps li strong { display: block; margin-bottom: 2px; }
.steps li p { margin: 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 760px) { .how-grid { grid-template-columns: 1fr; } }

.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--ink); color: #fff; border-radius: var(--radius); overflow: hidden; }
.promise { padding: 28px; }
.promise + .promise { border-left: 2px dashed rgba(255,255,255,.18); }
.promise svg { width: 30px; height: 30px; color: var(--marigold); margin-bottom: 14px; }
.promise h3 { font-size: 1.15rem; margin-bottom: 8px; }
.promise p { color: rgba(255,255,255,.75); margin: 0; font-size: .95rem; }
@media (max-width: 860px) { .promises { grid-template-columns: 1fr; } .promise + .promise { border-left: 0; border-top: 2px dashed rgba(255,255,255,.18); } }

.sell-band { --cut: calc(100% - 260px); background: var(--rani); color: #fff; border-radius: var(--radius); display: flex; align-items: center; }
.sell-band .copy { flex: 1; padding: 34px 36px; }
.sell-band h2 { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; line-height: .95; }
.sell-band p { margin: 10px 0 0; color: rgba(255,255,255,.88); max-width: 52ch; }
.sell-band .act { width: 260px; flex-shrink: 0; display: grid; place-items: center; padding: 24px; border-left: 2px dashed rgba(255,255,255,.4); align-self: stretch; }
@media (max-width: 760px) {
  .sell-band { flex-direction: column; align-items: stretch; -webkit-mask: none; mask: none; }
  .sell-band .act { width: auto; border-left: 0; border-top: 2px dashed rgba(255,255,255,.4); }
}

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: #fff; border-radius: var(--radius-sm); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--display); font-size: 1.6rem; line-height: 1; color: var(--rani); }
.faq details[open] summary::after { content: '\2013'; }
.faq details p { color: var(--ink-2); margin: 0 0 16px; }

/* ---------- Browse page ---------- */
.page-head { background: var(--stage); color: #fff; padding: 40px 0 34px; }
.page-head h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; line-height: .95; }
.page-head p { color: rgba(255,255,255,.78); margin: 10px 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; background: #fff; border-radius: var(--radius); padding: 16px; margin-top: -22px; position: relative; }
.filters .field { margin: 0; flex: 1 1 160px; }
.filters .field.q { flex: 2 1 240px; }
.filters .check { align-self: center; padding: 0 6px; }
.results-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 24px 0 16px; flex-wrap: wrap; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.empty { background: #fff; border-radius: var(--radius); padding: 40px 28px; text-align: center; }
.empty h3 { font-family: var(--display); font-weight: 800; font-size: 1.8rem; text-transform: uppercase; margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 52ch; margin: 0 auto 18px; }

/* ---------- Event page ---------- */
.event-hero { background: var(--stage); color: #fff; }
.event-hero .wrap { display: grid; grid-template-columns: 300px 1fr; gap: 36px; padding-top: 36px; padding-bottom: 36px; align-items: center; }
.event-hero .poster { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.event-hero .poster-word { font-size: 4.2rem; -webkit-line-clamp: 4; }
.crumbs { font-size: .88rem; color: rgba(255,255,255,.65); margin-bottom: 12px; }
.crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.event-hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2.4rem, 5vw, 4rem); text-transform: uppercase; line-height: .93; }
.event-hero .performer { font-size: 1.1rem; color: rgba(255,255,255,.85); margin-top: 10px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 22px 0; }
.fact { display: flex; gap: 10px; align-items: flex-start; }
.fact svg { width: 20px; height: 20px; color: var(--marigold); flex-shrink: 0; margin-top: 2px; }
.fact b { display: block; }
.fact span { color: rgba(255,255,255,.7); font-size: .9rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.tag svg { width: 14px; height: 14px; }
.tag-gold { background: var(--marigold); color: var(--ink); }
.tag-teal { background: var(--teal-soft); color: #0a5c51; }
.tag-warn { background: #fff0d6; color: #7a4b00; }
.tag-dim { background: rgba(255,255,255,.14); color: #fff; }
.tag-rani { background: var(--rani-soft); color: var(--rani-dark); }
.tag-grey { background: #ecebf2; color: var(--ink-2); }
.supply-strip { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.supply-strip .num { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; }
.supply-strip .lbl { color: rgba(255,255,255,.7); font-size: .88rem; }
.event-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.event-actions form { display: contents; }
.event-hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.event-hero .btn-ghost:hover { border-color: #fff; }
@media (max-width: 820px) {
  .event-hero .wrap { grid-template-columns: 1fr; }
  .event-hero .poster { aspect-ratio: 16 / 7; }
  .event-hero .poster-word { font-size: 3rem; -webkit-line-clamp: 2; }
}

.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .layout-2 { grid-template-columns: 1fr; } }
.panel { background: #fff; border-radius: var(--radius); padding: 22px; }
.panel h2, .panel h3 { font-size: 1.15rem; margin-bottom: 12px; }
.panel-title { font-family: var(--display); font-weight: 800; font-size: 1.6rem !important; text-transform: uppercase; }
.sticky { position: sticky; top: 84px; }

.listing-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.listing-toolbar h2 { font-family: var(--display); font-weight: 800; font-size: 2rem; text-transform: uppercase; }
.listing-toolbar select { width: auto; }
.listing { --cut: calc(100% - 200px); display: flex; background: #fff; border-radius: var(--radius); margin-bottom: 12px; }
.listing .main { flex: 1; padding: 16px 20px; min-width: 0; }
.listing .tier { font-weight: 700; font-size: 1.08rem; }
.listing .seat { color: var(--muted); font-size: .9rem; }
.listing .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: .88rem; color: var(--ink-2); }
.listing .meta span { display: inline-flex; align-items: center; gap: 6px; }
.listing .meta svg { width: 15px; height: 15px; color: var(--muted); }
.listing .note { margin: 10px 0 0; font-size: .9rem; color: var(--ink-2); font-style: italic; }
.listing .buy { width: 200px; flex-shrink: 0; padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.listing .price { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; }
.listing .price small { font-family: var(--text); font-size: .78rem; color: var(--muted); font-weight: 500; }
.listing .face { font-size: .8rem; color: var(--muted); }
.listing .face.below { color: var(--teal); font-weight: 600; }
.listing .buy form { display: flex; gap: 6px; }
.listing .buy select { border: 1.5px solid var(--line-2); border-radius: 999px; padding: 6px 8px; background: #fff; font-weight: 600; }
.listing .buy .btn { flex: 1; }
.listing.mine { outline: 2px solid var(--marigold); }
.listing[hidden] { display: none; }
@media (max-width: 640px) {
  .listing { --cut: calc(100% - 128px); flex-direction: column; }
  .listing.stub-v { -webkit-mask: none; mask: none; }
  .listing .buy { width: auto; border-left: 0 !important; border-top: 2px dashed var(--line-2); flex-direction: row; align-items: center; flex-wrap: wrap; }
  .listing .buy form { flex: 1 1 100%; }
}
.seller-line { display: inline-flex; align-items: center; gap: 8px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .72rem; font-weight: 700; color: #fff; background: var(--stage-2); flex-shrink: 0; }
.stars { color: var(--marigold); letter-spacing: 1px; }
.verified { color: var(--teal); display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }
.verified svg { width: 15px; height: 15px; }

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.info-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .93rem; color: var(--ink-2); }
.info-list svg { width: 20px; height: 20px; color: var(--teal); margin-top: 1px; }

/* ---------- Sell form ---------- */
.form-step { background: #fff; border-radius: var(--radius); padding: 24px; margin-bottom: 18px; }
.form-step > h2 { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; margin-bottom: 18px; }
.form-step > h2 .n { font-family: var(--display); font-weight: 800; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 1.15rem; flex-shrink: 0; }
.mode-switch { display: inline-flex; background: var(--paper); border-radius: 999px; padding: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.mode-switch label { padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .92rem; }
.mode-switch input { position: absolute; opacity: 0; pointer-events: none; }
.mode-switch label:has(input:checked) { background: #fff; box-shadow: 0 1px 0 var(--line-2); }
.mode-switch label:has(input:focus-visible) { outline: 3px solid var(--marigold); }
.picked-event { display: flex; gap: 14px; align-items: center; background: var(--paper); border-radius: var(--radius-sm); padding: 12px; margin-top: 4px; }
.picked-event .poster { width: 64px; height: 64px; border-radius: 10px; flex-shrink: 0; }
.picked-event .poster-word { font-size: 1.3rem; left: 6px; right: 6px; bottom: 4px; }
.summary-ticket { --cut: 64%; background: #fff; border-radius: var(--radius); }
.summary-ticket .top { padding: 20px 22px; }
.summary-ticket .bottom { padding: 18px 22px 22px; }
.summary-ticket .big { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; }
.cap-meter { height: 8px; border-radius: 999px; background: var(--paper); margin: 12px 0 6px; overflow: hidden; }
.cap-meter i { display: block; height: 100%; width: 0; background: var(--teal); border-radius: 999px; transition: width .2s, background-color .2s; }
.cap-meter.over i { background: var(--danger); }
.row-between { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.row-between + .row-between { margin-top: 8px; }
.total-row { border-top: 2px dashed var(--line-2); margin-top: 12px; padding-top: 12px; font-weight: 700; }

/* ---------- Checkout & order ---------- */
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.order-head h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 4vw, 2.8rem); text-transform: uppercase; line-height: .95; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-awaiting_payment, .status-paid { background: var(--marigold-soft); color: #7a4b00; }
.status-transferred { background: #e6e9ff; color: #2c3a9e; }
.status-completed { background: var(--teal-soft); color: #0a5c51; }
.status-disputed { background: var(--danger-soft); color: #8e1d1d; }
.status-cancelled, .status-expired, .status-refunded { background: #ecebf2; color: var(--ink-2); }

.ticket-card { --cut: 120px; background: #fff; border-radius: var(--radius); display: flex; }
.ticket-card .poster { width: 120px; flex-shrink: 0; border-radius: var(--radius) 0 0 var(--radius); min-height: 150px; }
.ticket-card .poster-word { font-size: 2.1rem; left: 10px; right: 10px; }
.ticket-card .body { padding: 18px 20px; flex: 1; min-width: 0; }
.ticket-card h2 { font-size: 1.25rem; margin-bottom: 4px; }
.ticket-card .muted { font-size: .92rem; }
@media (max-width: 520px) { .ticket-card .poster { width: 90px; } .ticket-card { --cut: 90px; } }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 20px 34px; }
.timeline li::before { content: ''; position: absolute; left: 9px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .dot { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; display: grid; place-items: center; }
.timeline li.done .dot { background: var(--teal); border-color: var(--teal); color: #fff; }
.timeline li.done .dot svg { width: 12px; height: 12px; }
.timeline li.current .dot { border-color: var(--rani); box-shadow: 0 0 0 4px var(--rani-soft); }
.timeline li.failed .dot { background: var(--ink-2); border-color: var(--ink-2); }
.timeline strong { display: block; }
.timeline span { color: var(--muted); font-size: .88rem; }

.action-box { border-radius: var(--radius); padding: 22px; background: var(--marigold-soft); border: 2px solid #f6d48f; }
.action-box.calm { background: #fff; border-color: var(--line); }
.action-box h2 { font-size: 1.25rem; margin-bottom: 8px; }
.action-box p { color: var(--ink-2); }
.action-box .btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.countdown { font-family: var(--display); font-weight: 800; font-size: 1.4rem; }

.contact-card { display: grid; gap: 6px; font-size: .95rem; }
.contact-card a { color: var(--rani-dark); font-weight: 600; }

.thread { display: grid; gap: 10px; margin-bottom: 14px; max-height: 420px; overflow-y: auto; }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 14px; background: var(--paper); font-size: .95rem; }
.msg.me { margin-left: auto; background: var(--rani-soft); }
.msg .who { font-size: .76rem; color: var(--muted); display: block; margin-bottom: 2px; }
.msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.thread-form { display: flex; gap: 8px; }
.thread-form textarea { flex: 1; min-height: 48px; height: 48px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 12px; resize: vertical; }

.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-input input { position: absolute; opacity: 0; }
.rating-input label { font-size: 2rem; color: var(--line-2); cursor: pointer; line-height: 1; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--marigold); }
.rating-input input:focus-visible + label { outline: 3px solid var(--marigold); border-radius: 4px; }

/* ---------- Account & admin ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 12px 16px; text-decoration: none; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a.active { color: var(--ink); border-bottom-color: var(--rani); }
.rows { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; background: #fff; border-radius: var(--radius-sm); padding: 14px 18px; text-decoration: none; }
a.row:hover { outline: 2px solid var(--line-2); }
.row strong { display: block; }
.row .muted { font-size: .88rem; }
.row .end { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.row .amount { font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 24px; }
.kpi { background: #fff; border-radius: var(--radius-sm); padding: 16px 18px; }
.kpi b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1.05; }
.kpi span { color: var(--muted); font-size: .88rem; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; color: var(--muted); font-size: .82rem; background: #faf9fc; }
tr:last-child td { border-bottom: 0; }
td form { display: inline; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px var(--gutter); }
.auth-card { --cut: 0; width: 100%; max-width: 440px; background: #fff; border-radius: var(--radius); padding: 32px; }
.auth-card h1 { font-family: var(--display); font-weight: 900; font-size: 2.6rem; text-transform: uppercase; line-height: .95; margin-bottom: 8px; }
.auth-card > p { color: var(--muted); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 22px 0; }
.divider::before, .divider::after { content: ''; flex: 1; border-top: 2px dashed var(--line-2); }
.demo-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-buttons form { display: contents; }

/* ---------- Prose pages ---------- */
.prose { max-width: 720px; }
.prose h2 { font-family: var(--display); font-weight: 800; font-size: 1.9rem; text-transform: uppercase; margin: 36px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); margin-top: 72px; padding: 44px 0 32px; font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .logo { color: #fff; margin-bottom: 10px; }
.site-footer .fine { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; font-size: .82rem; color: rgba(255,255,255,.55); }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Suggest dropdown ---------- */
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; color: var(--ink); border-radius: var(--radius-sm); box-shadow: 0 12px 32px rgba(31,22,64,.18); overflow: hidden; z-index: 60; }
.suggest a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; text-decoration: none; font-size: .92rem; }
.suggest a:hover, .suggest a.active { background: var(--paper); }
.suggest a span { color: var(--muted); font-size: .82rem; white-space: nowrap; }

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