/* ===========================================================================
   Sceney — design system
   Palette : deep plum ink · vivid rose · electric indigo · ticket gold
   Type    : Bricolage Grotesque (display) · Inter (UI/body)
   Signature: listing cards rendered as perforated ticket stubs
   ======================================================================== */

:root {
  --ink: #1d1526;
  --ink-soft: #322843;
  --paper: #f5f2f8;
  --card: #ffffff;
  --primary: #e6355c;
  --primary-dark: #c11d45;
  --indigo: #4f46e5;
  --indigo-soft: #eef0ff;
  --gold: #f2b23e;
  --line: #e7e2ee;
  --muted: #6d6580;
  --ok: #167a5b;
  --shadow: 0 1px 2px rgba(29, 21, 38, .05), 0 12px 30px -18px rgba(29, 21, 38, .35);
  --radius: 16px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  font-feature-settings: 'cv05' 1, 'ss01' 1;
}

h1, h2, h3, .display {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

a { color: inherit; }
button { font-family: inherit; }
img { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 10px 18px; font-size: 15px; font-weight: 600;
  cursor: pointer; background: var(--card); color: var(--ink);
  border-color: var(--line); transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 8px 20px -10px var(--primary); }
.btn.primary:hover { background: var(--primary-dark); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(29,21,38,.05); }
.btn.small { padding: 7px 13px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* --- top nav ------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245,242,248,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 64px; max-width: 100%; }
.logo {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: 25px; letter-spacing: -0.04em; cursor: pointer; color: var(--ink);
  display: inline-flex; align-items: center; gap: 7px;
}
.logo .dot { color: var(--primary); }
.logo-mark { height: 28px; width: 28px; border-radius: 8px; display: block; }
.nav-spacer { flex: 1; min-width: 0; }
.nav-links {
  display: flex; align-items: center; gap: 4px; min-width: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  text-decoration: none; padding: 8px 12px; border-radius: 999px;
  font-weight: 600; font-size: 14.5px; color: var(--ink-soft); cursor: pointer;
  white-space: nowrap; flex: none;
}
.nav-links a:hover { background: rgba(29,21,38,.05); }
.nav-links a.active { color: var(--primary); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--indigo);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px;
  cursor: pointer; user-select: none; flex: none;
}
.account-menu-wrap { position: relative; flex: none; }
.account-menu {
  position: absolute; top: 44px; right: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); min-width: 170px; padding: 6px; z-index: 50;
}
.account-menu a {
  display: block; padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 600;
  color: var(--ink-soft); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.account-menu a:hover { background: var(--paper); }

/* --- mobile hamburger nav ------------------------------------------------ */
.nav-toggle {
  display: none; flex: none; width: 34px; height: 34px; border: none; background: transparent;
  cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .18s ease, opacity .18s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Sceney+ upsell banner ----------------------------------------------- */
.plus-banner {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(90deg, #4f46e5, #e6355c); color: #fff; padding: 9px 20px;
  font-size: 13.5px; font-weight: 600; text-align: center;
}
.plus-banner .btn { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.35); }
.plus-banner .btn:hover { background: rgba(255,255,255,.28); }
.plus-banner-x { background: none; border: none; color: #fff; opacity: .8; font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px; }
.plus-banner-x:hover { opacity: 1; }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 64px);
    background: var(--paper); flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px 18px; overflow-y: auto; z-index: 39;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%; padding: 14px 10px; font-size: 16px; border-bottom: 1px solid var(--line);
    border-radius: 0; text-align: left;
  }
  .plus-banner { font-size: 12.5px; padding: 8px 14px; }

  /* Overflow guard: flex/grid children default to min-width:auto, sized to
     their content's intrinsic width — a long title, note, or button label
     that can't shrink forces its whole row (and the page) wider than the
     viewport even with overflow-x:hidden set. Letting these shrink and wrap
     is what actually stops the sideways scroll. */
  .wrap, main, .nav .wrap, .toolbar, .toolbar-right, .verify-banner .wrap,
  .plus-banner, .stub, .stub .main, .stub .side, .seller-line,
  .missing-event-cta, .page-head, .stub-actions, .event-card, .owned,
  .two-col, .price-trend-card, .card-panel, .admin-section {
    min-width: 0; max-width: 100%;
  }
  h1, h2, h3, p, .title, .venue, .notes, .seat, .seller, .sub, .txt, a, .btn {
    overflow-wrap: anywhere;
  }
}

/* --- verify banner ------------------------------------------------------ */
.verify-banner {
  background: linear-gradient(90deg, #2a1030, var(--ink));
  color: #fff;
}
.verify-banner .wrap { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.verify-banner b { font-weight: 700; }
.verify-banner .txt { flex: 1; font-size: 14.5px; min-width: 200px; }

/* --- hero (landing) ----------------------------------------------------- */
.hero { padding: 72px 0 48px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px;
  color: var(--indigo); background: var(--indigo-soft); padding: 6px 12px; border-radius: 999px;
  letter-spacing: .01em;
}
.hero h1 { font-size: clamp(40px, 7vw, 74px); margin: 20px 0 0; max-width: 12ch; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 46ch; margin: 20px 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.how { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 26px; }
.how .step { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; color: var(--ink-soft); }
.how .step .n { color: var(--primary); font-weight: 800; font-family: 'Bricolage Grotesque', sans-serif; }

/* Decorative stacked ticket in the hero */
.hero-art { position: relative; height: 340px; }
.hero-art .tk {
  position: absolute; left: 50%; top: 50%; width: 300px; height: 168px;
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-art .tk.a { transform: translate(-50%,-50%) rotate(-8deg) translateY(-26px); }
.hero-art .tk.b { transform: translate(-50%,-50%) rotate(4deg); }
.hero-art .tk.c { transform: translate(-50%,-50%) rotate(-2deg) translateY(30px); z-index: 2; }
.hero-art .tk .body { padding: 18px 20px; }
.hero-art .tk .k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero-art .tk .t { font-family: 'Bricolage Grotesque',sans-serif; font-weight: 800; font-size: 20px; margin-top: 4px; }
.hero-art .tk .p { color: var(--primary); font-weight: 800; font-size: 22px; position: absolute; right: 20px; bottom: 16px; }

/* --- page headers ------------------------------------------------------- */
.page { padding: 36px 0 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); }
.page-head .sub { color: var(--muted); margin-top: 6px; }

/* --- filter chips ------------------------------------------------------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip {
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft);
  padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* --- event cards -------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.event-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; box-shadow: var(--shadow);
  transition: transform .1s ease, box-shadow .15s ease; display: flex; flex-direction: column;
}
.event-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(29,21,38,.5); }
.event-card .banner {
  height: 96px; position: relative; display: flex; align-items: flex-end; padding: 12px 16px;
}
.event-card .banner .cat {
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,.22); padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(2px);
}
.event-card .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.event-card .when { font-size: 13px; font-weight: 600; color: var(--indigo); }
.event-card .title { font-size: 19px; }
.event-card .venue { font-size: 14px; color: var(--muted); }
.event-card .foot {
  margin-top: auto; padding-top: 12px; display: flex; align-items: baseline; justify-content: space-between;
  border-top: 1px solid var(--line);
}
.event-card .from { font-size: 12.5px; color: var(--muted); }
.event-card .price { font-weight: 800; font-size: 20px; font-family: 'Bricolage Grotesque',sans-serif; }
.event-card .soldout { font-size: 13px; font-weight: 700; color: var(--muted); }

/* --- ticket stub (the signature) --------------------------------------- */
.stub {
  display: grid; grid-template-columns: 1fr 172px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; position: relative;
}
.stub .main { padding: 20px 22px; }
.stub .main .seller { font-size: 12.5px; color: var(--muted); }
.stub .main .seat { font-size: 18px; font-weight: 700; margin: 3px 0 8px; }
.stub .main .notes { font-size: 14px; color: var(--ink-soft); max-width: 52ch; }
.stub .main .tags { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.stub .tag { font-size: 12px; font-weight: 600; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
/* perforation between main and stub */
.stub .perf {
  position: absolute; top: 0; bottom: 0; right: 172px; width: 0;
  border-left: 2px dashed var(--line);
}
.stub .perf::before, .stub .perf::after {
  content: ''; position: absolute; left: -9px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--paper); border: 1px solid var(--line);
}
.stub .perf::before { top: -9px; }
.stub .perf::after { bottom: -9px; }
.stub .side {
  background: linear-gradient(160deg, #fff, var(--indigo-soft));
  padding: 20px 18px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; gap: 4px;
}
.stub .side .ea { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stub .side .amt { font-family: 'Bricolage Grotesque',sans-serif; font-weight: 800; font-size: 30px; }
.stub .side .qty { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.stubs { display: flex; flex-direction: column; gap: 14px; }

/* event detail header */
.detail-hero { border-radius: var(--radius); padding: 30px; color: #fff; margin-bottom: 26px; position: relative; overflow: hidden; }
.detail-hero .cat { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.detail-hero h1 { font-size: clamp(28px, 4vw, 44px); margin: 8px 0 10px; }
.detail-hero .meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; opacity: .95; }
.detail-hero .desc { margin-top: 14px; max-width: 62ch; opacity: .92; font-size: 15px; }

/* --- forms -------------------------------------------------------------- */
.card-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-soft);
}
.field textarea { resize: vertical; min-height: 76px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* --- modal -------------------------------------------------------------- */
.overlay {
  position: fixed; inset: 0; background: rgba(29,21,38,.5); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 20px; z-index: 60;
}
.modal { background: var(--card); border-radius: 22px; width: 100%; max-width: 440px; padding: 30px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); max-height: 90vh; overflow-y: auto; }
.modal h2 { font-size: 26px; }
.modal .sub { color: var(--muted); margin: 6px 0 20px; font-size: 14.5px; }
.modal .switch { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.modal .switch b { color: var(--primary); cursor: pointer; }
.modal-close { float: right; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--muted); line-height: 1; }

/* dev code hint */
.devcode {
  background: #fff8e8; border: 1px dashed var(--gold); color: #7a5a12;
  padding: 12px 14px; border-radius: 12px; font-size: 13.5px; margin-bottom: 16px;
}
.devcode b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 17px; letter-spacing: .12em; color: var(--ink); }

/* code inputs */
.code-inputs { display: flex; gap: 8px; justify-content: center; margin: 8px 0 18px; }
.code-inputs input {
  width: 46px; height: 56px; text-align: center; font-size: 24px; font-weight: 700;
  border: 1px solid var(--line); border-radius: 12px; font-family: 'Bricolage Grotesque',sans-serif;
}
.code-inputs input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-soft); }

/* --- checkout summary --------------------------------------------------- */
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-weight: 800; font-size: 19px; font-family: 'Bricolage Grotesque',sans-serif; }
.paynote { font-size: 12.5px; color: var(--muted); margin-top: 14px; text-align: center; }

/* --- toast -------------------------------------------------------------- */
.toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.6); animation: pop .25s ease;
}
.toast.err { background: var(--primary-dark); }
.toast.ok { background: var(--ok); }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- empty / error states ---------------------------------------------- */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 10px; }
.empty h3 { color: var(--ink); font-size: 22px; margin-bottom: 6px; }

/* --- owned ticket card -------------------------------------------------- */
.owned { display: grid; grid-template-columns: 8px 1fr auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.owned .rail { background: var(--indigo); }
.owned .info { padding: 18px 20px; }
.owned .info .when { font-size: 13px; color: var(--indigo); font-weight: 600; }
.owned .info .t { font-size: 19px; font-weight: 700; margin: 2px 0; }
.owned .info .m { font-size: 13.5px; color: var(--muted); }
.owned .qr { padding: 18px 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-left: 1px dashed var(--line); }
.owned .qr .code { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; letter-spacing: .12em; font-size: 15px; }
.owned .qr .lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

.section-label { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 34px 0 14px; }

.missing-event-cta {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 36px 0 10px; padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius);
  color: var(--muted); font-size: 14.5px; flex-wrap: wrap; text-align: center;
}

/* --- responsive --------------------------------------------------------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero { padding: 44px 0 32px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 24px; }
  .page { padding: 26px 0 70px; }
  .grid { gap: 22px; }
  .nav .wrap { gap: 8px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 8px; font-size: 13.5px; }
  .stub { grid-template-columns: 1fr; }
  .stub .perf { display: none; }
  .stub .side { border-top: 2px dashed var(--line); flex-direction: row; justify-content: space-between; }
  .two-col { grid-template-columns: 1fr; }
  .owned { grid-template-columns: 6px 1fr; }
  .owned .qr { display: none; }
  .modal { padding: 22px 18px; }
  .code-inputs { gap: 5px; }
  .code-inputs input { width: 38px; height: 48px; font-size: 20px; }

  /* Scale down oversized card/banner proportions on phones */
  .event-card .banner { height: 68px; padding: 10px 14px; }
  .event-card .banner .cat { font-size: 10.5px; padding: 3px 8px; }
  .event-card .body { padding: 14px; gap: 4px; }
  .event-card .title { font-size: 17px; }
  .event-card .venue { font-size: 13px; }
  .event-card .price { font-size: 18px; }
  .mini-rating { font-size: 10.5px; padding: 3px 8px; }
  .page-head { margin-bottom: 18px; }
  .chip { padding: 6px 12px; font-size: 12.5px; }
  .detail-hero { padding: 20px; }
  .plus-hero { padding: 26px 20px; }
  .card-panel { padding: 18px; }
  .search-input { min-width: 0; width: 100%; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-right { justify-content: space-between; }
  .admin-table { font-size: 12px; }
}

@media (max-width: 400px) {
  .wrap { padding: 0 24px; }
  .modal { padding: 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ===========================================================================
   Additions for: ratings · sort · offers · reviews · Sceney+ · payouts
   ======================================================================== */

/* toolbar (filter chips + sort) */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.search-input {
  font-family: inherit; font-size: 14px; padding: 9px 14px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--card); color: var(--ink); min-width: 220px;
}
.search-input:focus { outline: 2px solid var(--indigo); outline-offset: 1px; }
.toolbar .chips { margin-bottom: 0; }
.toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sortbox { font-size: 12.5px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.sortbox select {
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: var(--card); cursor: pointer;
}
.sortbox select:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-soft); }

/* rating chips */
.rating { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; color: #b8860b; white-space: nowrap; }
.rating[role="button"] { cursor: pointer; }
.rating[role="button"]:hover { text-decoration: underline; }
.rating .rc { color: var(--muted); font-weight: 500; }
.rating.none { color: var(--muted); font-weight: 500; }
.mini-rating { position: absolute; top: 12px; right: 12px; font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(0,0,0,.28); padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(2px); }

/* stub actions */
.stub-actions { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: 2px; }
.stub-actions .btn { width: 100%; }
.stub .main .seller b { font-weight: 700; }
.seller-line { font-size: 14px; color: var(--muted); margin-top: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* payout onboarding card */
.payout-card { text-align: center; }
.payout-card .payout-icon { font-size: 44px; }
.payout-card h2 { font-size: 24px; margin: 8px 0 10px; }
.payout-card p { color: var(--muted); max-width: 48ch; margin: 0 auto 16px; }
.ticks { list-style: none; padding: 0; margin: 0 auto 20px; max-width: 42ch; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; font-size: 14px; color: var(--ink-soft); }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 800; }

/* offers */
.section-label .count { color: var(--primary); font-weight: 800; margin-left: 6px; }
.offer-card { display: grid; grid-template-columns: 8px 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 12px; }
.offer-card .rail { background: var(--indigo); }
.offer-body { padding: 16px 18px; }
.offer-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.offer-top .when { font-size: 12.5px; color: var(--indigo); font-weight: 600; }
.offer-top .t { font-size: 18px; font-weight: 700; margin: 1px 0; }
.offer-top .m { font-size: 13.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.offer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.offer-price { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 24px; }
.offer-price .per { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; color: var(--muted); }
.offer-price .offer-total { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-left: 8px; }
.offer-actions { display: flex; gap: 8px; }

/* badges */
.badge { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; height: fit-content; }
.badge.pending { background: #fff5e6; color: #a4670a; border-color: #f6d9a8; }
.badge.accepted { background: #e8f7f0; color: var(--ok); border-color: #b7e6d1; }
.badge.declined { background: #fdeaef; color: var(--primary-dark); border-color: #f6c9d6; }

/* review prompts */
.review-prompts { display: flex; flex-direction: column; gap: 10px; }
.review-prompt { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(100deg,#fff8e8,#fff); border: 1px solid #f0dfae; border-radius: 14px; padding: 14px 16px; }
.review-prompt .m { font-size: 14.5px; }
.review-prompt .muted { display: flex; gap: 6px; align-items: center; margin-top: 2px; }

/* stars input */
.stars-input { display: flex; gap: 6px; justify-content: center; font-size: 40px; margin: 6px 0 14px; }
.stars-input .star { color: var(--line); cursor: pointer; transition: color .1s, transform .1s; }
.stars-input .star:hover { transform: scale(1.12); }
.stars-input .star.on { color: var(--gold); }

/* seller profile modal */
.modal.wide { max-width: 520px; }
.profile-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.avatar.big { width: 54px; height: 54px; font-size: 20px; }
.profile-head h2 { font-size: 22px; }
.plus-tag { font-size: 12px; color: var(--gold); font-weight: 700; }
.profile-rating { color: #b8860b; font-weight: 700; font-size: 14px; margin-top: 2px; }
.reviews-list { display: flex; flex-direction: column; gap: 12px; max-height: 50vh; overflow-y: auto; }
.review { border-top: 1px solid var(--line); padding-top: 12px; }
.review-top { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.rstars { color: var(--gold); letter-spacing: 1px; }
.rstars .dim { color: var(--line); }
.review-body { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }

/* Sceney+ */
.plus-pill { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px !important; font-weight: 700 !important; font-size: 13px !important; color: var(--indigo) !important; }
.plus-pill.on { background: linear-gradient(120deg,#fff4d6,#ffe9c2); border-color: var(--gold); color: #9a6a00 !important; }
.plus-hero { border-radius: var(--radius); padding: 40px; text-align: center; margin-bottom: 30px; background: linear-gradient(150deg,#241a33,#3a2350); color: #fff; }
.plus-hero.on { background: linear-gradient(150deg,#1d1526,#4f46e5); }
.plus-hero .plus-badge { display: inline-block; font-weight: 800; letter-spacing: .04em; color: var(--gold); margin-bottom: 10px; }
.plus-hero h1 { font-size: clamp(28px,5vw,42px); }
.plus-hero p { color: rgba(255,255,255,.85); max-width: 46ch; margin: 12px auto 0; }
.plus-price { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 46px; margin: 18px 0 16px; }
.plus-price span { font-size: 17px; font-weight: 600; color: rgba(255,255,255,.7); font-family: 'Inter', sans-serif; }
.plus-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; }
.plus-features .feat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.plus-features .fi { font-size: 28px; }
.plus-features b { display: block; margin: 8px 0 4px; font-size: 16px; }
.plus-features span { font-size: 13.5px; color: var(--muted); }

@media (max-width: 560px) {
  .offer-bottom { flex-direction: column; align-items: flex-start; }
  .toolbar { gap: 10px; }
  .toolbar-right { width: 100%; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 22px 0 40px; margin-top: 40px; text-align: center; font-size: 13.5px; color: var(--muted); }
.site-footer a { color: var(--indigo); font-weight: 600; }

/* Escrow / verification */
.escrow-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.escrow-badge.held { background: #fff4d6; color: #9a6a00; }
.escrow-badge.released { background: #e3f5ec; color: var(--ok); }
.escrow-badge.flagged { background: #fde3e8; color: var(--primary-dark); }
.escrow-badge.refunded { background: var(--line); color: var(--muted); }
.ticket-verify-actions { display: flex; gap: 8px; margin-top: 10px; }

/* Seller dashboard */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 14px; margin-bottom: 24px; }
.stat-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.stat-tile .lbl { font-size: 12.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.stat-tile .val { font-family: 'Bricolage Grotesque', sans-serif; font-size: 28px; font-weight: 800; margin-top: 4px; }
.sale-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.sale-row:first-child { border-top: none; }

/* Admin */
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.admin-table input, .admin-table select { font-size: 13px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; width: 100%; }
.admin-section { overflow-x: auto; margin-bottom: 34px; }

/* Event detail layout + Sceney+ price trend teaser */
.event-layout { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; margin-top: 18px; }
.event-layout > aside { position: sticky; top: 84px; }
.price-trend-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); overflow: hidden; }
.price-trend-card h3 { font-size: 14.5px; margin: 0 0 12px; }
.price-trend-locked .price-trend-body { filter: blur(6px); user-select: none; }
.price-trend-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 16px; background: rgba(255,255,255,.65); }
@media (max-width: 780px) {
  .event-layout { grid-template-columns: 1fr; }
  .event-layout > aside { position: static; }
}

/* Landing */
.qbar { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 18px 0 6px; }
.qbar span { font-size: 14.5px; color: var(--ink-soft); font-weight: 600; }
.eyebrow.tag { display: inline-block; background: var(--indigo-soft); color: var(--indigo); font-weight: 700; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; margin-bottom: 10px; }
