/* ==========================================================================
   TicketsForYou — premium dark theme
   Refined palette (champagne gold on near-black), Inter type scale,
   soft borders, layered depth. Same class names throughout.
   ========================================================================== */
:root {
  --bg:          #08090b;
  --panel:       #0c0e11;
  --panel-2:     #101319;
  --panel-3:     #161a20;
  --border:      rgba(255,255,255,.07);
  --border-mid:  rgba(255,255,255,.13);
  --text:        #f2f4f7;
  --muted:       #8b95a3;
  --gold:        #f0b429;
  --gold-bright: #ffd97a;
  --gold-dim:    rgba(240,180,41,.45);
  --gold-tint:   rgba(240,180,41,.09);
  --green:       #4ade80;
  --red:         #f87171;
  --blue:        #7aa2f7;
  --radius:      16px;
  --radius-sm:   11px;
  --shadow:      0 18px 50px rgba(0,0,0,.55);
  --shadow-sm:   0 2px 12px rgba(0,0,0,.35);
  --ease:        cubic-bezier(.4,0,.2,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  background-image: radial-gradient(760px 340px at 50% -60px, rgba(240,180,41,.09), transparent 70%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px; line-height: 1.6; letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--gold); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--gold-bright); text-decoration: none; }
h1, h2, h3 { margin: 0 0 .45em; line-height: 1.15; letter-spacing: -.022em; font-weight: 650; }
h1 { font-size: 30px; }
h2 { font-size: 23px; }
h3 { font-size: 17px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
::selection { background: var(--gold-dim); color: #14100a; }

/* ---------- layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10,11,14,.72); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { font-weight: 700; letter-spacing: -.02em; font-size: 19px; color: var(--text); display: flex; align-items: center; gap: 11px; }
.brand-logo { height: 34px; width: 34px; border-radius: 9px; object-fit: cover; }
.brand b { color: var(--gold); font-weight: 700; }
.nav { display: flex; gap: 7px; margin-left: auto; align-items: center; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  border: 1px solid var(--border-mid); background: var(--panel-2); color: var(--text);
  padding: 9px 16px; border-radius: var(--radius-sm); cursor: pointer;
  font-weight: 550; font-size: 14px; letter-spacing: -.01em; white-space: nowrap;
  transition: background .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease), box-shadow .16s var(--ease);
}
.btn:hover { background: var(--panel-3); border-color: var(--gold-dim); }
.btn:active { transform: translateY(1px); }
.btn.gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #17120a; border-color: transparent; font-weight: 650;
  box-shadow: 0 1px 2px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn.gold:hover { background: linear-gradient(180deg, #f3ddb2, var(--gold-bright)); box-shadow: 0 4px 16px rgba(217,183,117,.25); }
.btn.ghost { background: transparent; border-color: var(--border); }
.btn.ghost:hover { background: rgba(255,255,255,.04); border-color: var(--border-mid); }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 9px; }
.btn.danger { color: var(--red); border-color: rgba(248,113,113,.3); background: transparent; }
.btn.danger:hover { background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.5); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }

/* ---------- cards / panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.grid { display: grid; gap: 20px; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); }

.card {
  background: linear-gradient(180deg, var(--panel), #101216);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.card .body { padding: 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card .thumb { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: var(--panel-2);
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 32px; }
.card .thumb .thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease); }
.card:hover .thumb .thumb-img { transform: scale(1.04); }
.card h3 { font-size: 17px; margin: 0; }
.price { font-size: 21px; font-weight: 650; color: var(--gold); letter-spacing: -.02em; }
.meta { color: var(--muted); font-size: 13.5px; }

/* ---------- hero + search (Direction 3) ---------- */
.hero { padding: 54px 0 34px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 46px); }
.hero p { color: var(--muted); font-size: 17px; max-width: 640px; }
.hero .cta { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

.hero-search { padding: 62px 0 8px; text-align: center; }
.hero-search h1 { font-size: clamp(31px, 4.6vw, 50px); letter-spacing: -.04em; font-weight: 700; margin: 0 0 14px; line-height: 1.08; }
.hero-search h1 span { background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-search p { color: var(--muted); font-size: 17px; margin: 0 auto 30px; max-width: 530px; }
.bigsearch { max-width: 570px; margin: 0 auto; display: flex; gap: 8px;
  background: var(--panel-2); border: 1px solid var(--border-mid); padding: 8px; border-radius: 15px; }
.bigsearch input { flex: 1; background: transparent; border: 0; color: var(--text); font: inherit; font-size: 15px; padding: 10px 14px; }
.bigsearch input:focus { outline: none; box-shadow: none; background: transparent; border: 0; }
.bigsearch button { background: var(--gold); color: #1a1305; border: 0; border-radius: 10px;
  padding: 11px 24px; font: inherit; font-weight: 650; cursor: pointer; transition: .15s var(--ease); }
.bigsearch button:hover { background: var(--gold-bright); }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 15px; overflow: hidden; margin: 44px 0 8px; }
.trust-strip > div { background: var(--panel); padding: 21px 14px; text-align: center; }
.trust-strip b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.trust-strip span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; }

.sec-row { display: flex; align-items: baseline; gap: 12px; margin: 46px 0 16px; }
.sec-row h2 { margin: 0; font-size: 21px; letter-spacing: -.03em; }
.sec-row .count { color: var(--muted); font-size: 13.5px; margin-left: auto; }

/* date block used on artist/date rows */
.datebox { background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: 11px;
  width: 64px; height: 64px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.datebox .d { font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.datebox .m { font-size: 10.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }

/* ---------- event tiles + event page ---------- */
.event-tile { cursor: pointer; }
.event-tile:hover { border-color: var(--gold-dim); transform: translateY(-4px); box-shadow: var(--shadow); }
.event-tile .body { align-items: center; text-align: center; }
.tile-cta { margin-top: auto; padding-top: 10px; }
.event-hero { display: flex; gap: 20px; align-items: center; margin-bottom: 10px; }
.event-hero-img { width: 190px; height: 107px; border-radius: 13px; border: 1px solid var(--border);
  background: var(--panel-2) center/cover; flex: none; box-shadow: var(--shadow-sm); }
.event-hero h1 { font-size: clamp(24px, 3.6vw, 34px); margin: 0 0 5px; }
.event-layout { display: flex; gap: 26px; align-items: flex-start; }
.event-map-col { flex: 1.6; min-width: 0; position: sticky; top: 84px; }
.event-stock-col { flex: 1; min-width: 300px; }
@media (max-width: 880px) {
  .event-layout { flex-direction: column-reverse; }
  .event-map-col { position: static; width: 100%; }
  .event-stock-col { min-width: 0; }
}
.stock-list { display: flex; flex-direction: column; gap: 10px; }
.stock-item { display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 15px 17px; border: 1px solid var(--border); border-radius: 13px; background: var(--panel);
  cursor: pointer; transition: border-color .16s var(--ease), background .16s var(--ease); }
.stock-item:hover { border-color: var(--border-mid); background: var(--panel-2); }
.stock-item.selected { border-color: var(--gold-dim); background: var(--gold-tint); }
.si-sec { font-weight: 600; letter-spacing: -.01em; }
.si-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; white-space: nowrap; }
.si-btns { display: flex; gap: 7px; }
.seatmap-panel { padding: 15px 17px; margin-bottom: 10px; }
.seatmap-panel summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.seatmap-panel summary::-webkit-details-marker { display: none; }
.seatmap-panel summary::before { content: '▸'; color: var(--gold); transition: transform .2s var(--ease); display: inline-block; }
.seatmap-panel[open] summary::before { transform: rotate(90deg); }
.seatmap-panel summary .count { color: var(--muted); font-weight: 400; font-size: 13px; }
.seatmap-panel img.seatmap { margin-top: 14px; }
@media (max-width: 540px) { .event-hero-img { width: 116px; height: 66px; } }

/* ---------- filter bar ---------- */
.filterbar { display: flex; gap: 11px; margin-top: 18px; flex-wrap: wrap; }
.filterbar #fSearch { flex: 2; min-width: 220px; }
.filterbar select { flex: 1; min-width: 140px; width: auto; }
.section-head { display: flex; align-items: center; gap: 11px; margin: 28px 0 13px; }
.section-head h3 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.section-head .count { color: var(--muted); font-size: 13px; }

/* ---------- gallery + seat map ---------- */
.badges { display: flex; gap: 7px; flex-wrap: wrap; }
.hero-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 13px; border: 1px solid var(--border); background: var(--panel-2); }
.thumbs { display: flex; gap: 9px; margin-top: 11px; flex-wrap: wrap; }
.thumbs img { width: 66px; height: 49px; object-fit: cover; border-radius: 9px; border: 2px solid var(--border); cursor: pointer; transition: border-color .15s var(--ease); }
.thumbs img:hover { border-color: var(--border-mid); }
.thumbs img.active { border-color: var(--gold); }
.seatmap { width: 100%; border-radius: 13px; border: 1px solid var(--border); background: #fff; margin-top: 4px; }

/* ---------- staff uploader ---------- */
.uploader { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 8px; }
.uploader .up-thumb { position: relative; width: 92px; height: 60px; border-radius: 9px; border: 1px solid var(--border); background: var(--panel-2) center/cover; }
.uploader .up-thumb .rm { position: absolute; top: -7px; right: -7px; background: var(--red); color: #fff; border-radius: 50%; width: 19px; height: 19px; font-size: 12px; line-height: 19px; text-align: center; cursor: pointer; border: none; }
.uploader .up-thumb .adj { position: absolute; bottom: 3px; right: 3px; background: rgba(0,0,0,.75); color: var(--gold);
  border: none; border-radius: 6px; font-size: 10px; padding: 2px 6px; cursor: pointer; }
.filelabel { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 1px dashed var(--border-mid); border-radius: var(--radius-sm); cursor: pointer; color: var(--muted); font-size: 13px; transition: .15s var(--ease); }
.filelabel:hover { border-color: var(--gold-dim); color: var(--text); background: rgba(255,255,255,.03); }
.filelabel input { display: none; }
.cropframe { position: relative; overflow: hidden; border: 2px solid var(--gold); border-radius: var(--radius-sm);
  background: var(--panel-2); margin: 10px auto; touch-action: none; cursor: grab; max-width: 100%; }
.cropframe:active { cursor: grabbing; }
.cropframe img { position: absolute; top: 0; left: 0; transform-origin: 0 0; user-select: none; pointer-events: none; }

/* ---------- messaging ---------- */
.nav-badge { display: inline-block; min-width: 17px; height: 17px; line-height: 17px; padding: 0 5px;
  border-radius: 9px; background: var(--red); color: #180a0a; font-size: 11px; font-weight: 700; text-align: center; vertical-align: middle; }
.chat { display: flex; flex-direction: column; gap: 9px; max-height: 48vh; overflow-y: auto; padding: 15px; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; word-wrap: break-word; }
.bubble.them { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.bubble.me { align-self: flex-end; background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #17120a; border-bottom-right-radius: 5px; }
.bubble .when { display: block; font-size: 10.5px; opacity: .65; margin-top: 4px; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin: 10px 0 24px; flex-wrap: wrap; }
.tab { padding: 11px 16px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 550; font-size: 14.5px; transition: color .15s var(--ease); }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--gold); }

/* ---------- pills ---------- */
.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  letter-spacing: .01em; border: 1px solid var(--border-mid); color: var(--muted); background: rgba(255,255,255,.03); }
.pill.new { color: #f0cd8f; border-color: rgba(217,183,117,.3); background: rgba(217,183,117,.09); }
.pill.assigned, .pill.sourcing { color: var(--blue); border-color: rgba(122,162,247,.3); background: rgba(122,162,247,.09); }
.pill.quoted { color: #c4a7f7; border-color: rgba(196,167,247,.3); background: rgba(196,167,247,.09); }
.pill.won, .pill.paid, .pill.fulfilled { color: var(--green); border-color: rgba(74,222,128,.28); background: rgba(74,222,128,.09); }
.pill.lost, .pill.cancelled { color: var(--red); border-color: rgba(248,113,113,.28); background: rgba(248,113,113,.09); }
.pill.public { color: var(--green); border-color: rgba(74,222,128,.28); background: rgba(74,222,128,.09); }
.pill.private { color: #f0cd8f; border-color: rgba(217,183,117,.3); background: rgba(217,183,117,.09); }
.pill.pending { color: #f0cd8f; border-color: rgba(217,183,117,.3); background: rgba(217,183,117,.09); }
.pill.verified { color: var(--green); border-color: rgba(74,222,128,.28); background: rgba(74,222,128,.09); }

/* ---------- forms ---------- */
label { display: block; font-size: 12px; color: var(--muted); margin: 16px 0 6px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em; }
input, select, textarea {
  width: 100%; background: var(--panel-2); border: 1px solid var(--border-mid); color: var(--text);
  padding: 11px 14px; border-radius: var(--radius-sm); font: inherit; letter-spacing: -.005em;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
}
input::placeholder, textarea::placeholder { color: #5f6773; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold-dim); background: var(--panel-3);
  box-shadow: 0 0 0 3px var(--gold-tint);
}
textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.row { display: flex; gap: 13px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 140px; }
.check { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; }
.check input { width: auto; margin-top: 3px; }
.check span { font-size: 13.5px; color: var(--muted); text-transform: none; letter-spacing: normal; }

/* ---------- modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(5,6,8,.72); backdrop-filter: blur(4px); display: flex;
  align-items: flex-start; justify-content: center; padding: 40px 18px; z-index: 50; overflow: hidden; }
/* the popup itself scrolls — one scrollbar, inside the box, and it never runs off screen */
.modal { background: var(--panel); border: 1px solid var(--border-mid); border-radius: var(--radius);
  width: 100%; max-width: 490px; padding: 30px; box-shadow: var(--shadow);
  max-height: calc(100vh - 80px); overflow-y: auto; overscroll-behavior: contain;
  animation: modalIn .22s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.modal.wide { max-width: 740px; }
.modal h2 { font-size: 21px; }
/* stays put while the body of the popup scrolls under it */
.modal .x { float: right; position: sticky; top: -4px; z-index: 3; cursor: pointer; color: var(--muted);
  font-size: 24px; line-height: 1; transition: color .15s var(--ease); }
.modal .x:hover { color: var(--text); }
.modal::-webkit-scrollbar { width: 11px; }
.modal::-webkit-scrollbar-track { background: transparent; }
.modal::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 8px;
  border: 3px solid var(--panel); background-clip: padding-box; }
.modal::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.3); background-clip: padding-box; border: 3px solid var(--panel); }
.modal { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.22) transparent; }
@media (max-width: 640px) {
  .overlay { padding: 16px 12px; }
  .modal { max-height: calc(100vh - 32px); padding: 22px 18px; }
}

/* ---------- table ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
tbody tr:last-child td { border-bottom: none; }
th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
tbody tr { transition: background .14s var(--ease); }
tbody tr:hover td { background: rgba(255,255,255,.025); }
.table-wrap { overflow-x: auto; }

/* ---------- footer ---------- */
.site-footer { margin-top: 72px; border-top: 1px solid var(--border); background: rgba(255,255,255,.012); }
.site-footer .wrap { padding-top: 32px; padding-bottom: 40px; display: flex; gap: 24px;
  align-items: center; justify-content: space-between; flex-wrap: wrap; }
.site-footer .fbrand { font-weight: 650; letter-spacing: -.02em; }
.site-footer .fbrand b { color: var(--gold); }
.site-footer .ftrust { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.site-footer .ftrust span { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- misc ---------- */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: var(--panel-2); border: 1px solid var(--border-mid); color: var(--text);
  padding: 13px 20px; border-radius: var(--radius-sm); box-shadow: var(--shadow); z-index: 100; max-width: 90vw;
  animation: modalIn .2s var(--ease); font-size: 14px; }
.empty { text-align: center; color: var(--muted); padding: 60px 22px; font-size: 14.5px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px,1fr)); gap: 14px; margin-bottom: 26px; }
.stat { background: linear-gradient(180deg, var(--panel), #101216); border: 1px solid var(--border);
  border-radius: 13px; padding: 17px 18px; transition: border-color .16s var(--ease); }
.stat:hover { border-color: var(--border-mid); }
/* stat cards are shortcuts — click one and you land on what it counts */
.stat[data-go] { cursor: pointer; position: relative; }
.stat[data-go]:hover { border-color: var(--gold-dim); transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.4); }
.stat[data-go]:active { transform: translateY(0); }
.stat[data-go]::after { content: '→'; position: absolute; top: 11px; right: 13px;
  color: var(--muted); font-size: 13px; opacity: 0; transition: opacity .16s var(--ease), transform .16s var(--ease); }
.stat[data-go]:hover::after { opacity: .85; transform: translateX(2px); }
.stat .n { font-size: 25px; font-weight: 650; letter-spacing: -.03em; }
.stat .l { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; margin-top: 3px; }
.stat.warn { border-color: var(--gold-dim); background: linear-gradient(180deg, rgba(217,183,117,.06), #101216); }
.divider { height: 1px; background: var(--border); margin: 22px 0; }
.err { color: var(--red); font-size: 13px; margin-top: 9px; min-height: 16px; }
.notes { display: flex; flex-direction: column; gap: 9px; margin: 12px 0; }
.note { background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; }
.note .who { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
#modalRoot2 .overlay { z-index: 60; }

/* ---------- scrollbars ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.18); }

/* ================= MOBILE ================= */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topbar .wrap { height: auto; min-height: 58px; flex-wrap: wrap; gap: 9px; padding-top: 10px; padding-bottom: 10px; }
  .brand { font-size: 17px; }
  .nav { margin-left: auto; gap: 6px; row-gap: 7px; justify-content: flex-end; }
  .nav .btn { padding: 7px 11px; font-size: 12.5px; }
  input, select, textarea { font-size: 16px; }
  .overlay { padding: 18px 12px; align-items: flex-start; }
  .modal { padding: 24px 19px; }
  .modal.wide { max-width: 100%; }
  h1 { font-size: 25px; }
  h2 { font-size: 21px; }
  .stat-grid { grid-template-columns: repeat(auto-fill, minmax(46%, 1fr)); gap: 11px; }
  .stat .n { font-size: 21px; }
  .grid.cards { grid-template-columns: 1fr; }
  .cropframe { max-width: 100%; }
  .hero-img { max-height: 46vh; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tab { white-space: nowrap; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* date rows on the artist page behave like links */
.stock-item[data-date] { cursor: pointer; }

/* ---------- presale codes (own section, deliberately distinct from tickets) ---------- */
.codes-head { text-align: center; padding: 26px 0 4px; }
.codes-head .kicker { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-dim);
  background: var(--gold-tint); padding: 6px 13px; border-radius: 999px; }
.codes-head h1 { font-size: clamp(27px, 4.4vw, 42px); margin: 15px 0 8px; letter-spacing: -.03em; }
.codes-head p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.code-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 26px 0 30px; }
.code-rules > div { background: var(--panel-2); border: 1px solid var(--border); border-radius: 13px; padding: 15px 17px; }
.code-rules b { display: block; font-size: 14px; margin-bottom: 4px; }
.code-rules span { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.code-card { border-color: var(--border-mid); background:
  linear-gradient(160deg, rgba(240,180,41,.055), transparent 55%), var(--panel); }
.code-card:hover { border-color: var(--gold-dim); transform: translateY(-3px); box-shadow: var(--shadow); }
.code-card .body { padding: 18px; }
.code-card h3 { margin: 11px 0 3px; }
.code-top { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.code-chip { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-tint); border: 1px solid var(--gold-dim);
  padding: 4px 9px; border-radius: 7px; }
.code-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-top: 15px; padding-top: 14px; border-top: 1px dashed var(--border-mid); }

/* segmented toggle (tickets vs code in the sell popup) */
.seg { display: inline-flex; background: var(--panel-3); border: 1px solid var(--border);
  border-radius: 11px; padding: 3px; gap: 3px; }
.seg button { background: transparent; border: 0; color: var(--muted); font: inherit; font-size: 13px;
  font-weight: 600; padding: 8px 15px; border-radius: 8px; cursor: pointer; transition: all .15s var(--ease); }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--gold); color: #191307; }
