/* ==========================================================================
   TicketScout — site stylesheet
   One stylesheet for every page. Sections:
     1. Fonts           5. Header & footer      9.  Event detail
     2. Tokens          6. Home                 10. Group, alerts, profile
     3. Base            7. Event cards & lists  11. Modals
     4. Components      8. Search               12. Document pages
   ========================================================================== */

/* 1. Fonts ----------------------------------------------------------------
   Montserrat (text) and Barlow Condensed (display), both SIL Open Font
   License 1.1 - see ../fonts/OFL-*.txt. Latin subset, self-hosted. */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  /* SemiBold also serves 700–900 so bold text never falls back to faux-bold. */
  font-family: "Montserrat";
  src: url("../fonts/montserrat-600.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 2. Tokens --------------------------------------------------------------- */
:root {
  color-scheme: dark;

  --font-sans: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;

  --bg: #0b0c0e;
  --surface: #111316;
  --surface-2: #16191d;
  --surface-3: #1d2126;
  --line: #22262c;
  --line-strong: #30353c;

  --text: #f3f1ec;
  --text-2: #a9aeb5;
  --text-3: #70767e;

  --accent: #e3b341;
  --accent-hover: #edc25d;
  --on-accent: #0b0c0e;

  --positive: #3dbe8b;
  --negative: #e5675a;
  --caution: #e3b341;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;

  --container: 1200px;
  --gutter: 32px;
  --header-h: 64px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-pop: 0 24px 64px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .4);
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
}

/* 3. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-synthesis: none;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Page-wide backdrop: a warm light falling from the top, a cool slate pool
   low right, over a charcoal-to-black fade. Fixed, so it doesn't repaint on scroll. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(227, 179, 65, .09), transparent 70%),
    radial-gradient(ellipse 55% 45% at 100% 100%, rgba(74, 107, 138, .12), transparent 70%),
    radial-gradient(ellipse 45% 40% at 0% 60%, rgba(79, 143, 139, .06), transparent 70%),
    linear-gradient(180deg, #16191e 0%, #0e1013 45%, #0b0c0e 100%);
}

h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.2; letter-spacing: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { display: block; flex-shrink: 0; }
strong, b { font-weight: 500; }
em { font-style: normal; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(227, 179, 65, .3); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums lining-nums; }
.muted { color: var(--text-2); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 300;
  padding: 10px 16px; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent); font-weight: 500; font-size: 14px;
  transition: top .15s var(--ease);
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: block;
  font-size: 11px; font-weight: 500; line-height: 1.4;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow--accent { color: var(--accent); }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: .95;
}

/* 4. Components ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: var(--radius); border: 1px solid transparent;
  font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--secondary { background: var(--surface-2); border-color: var(--line-strong); color: var(--text); }
.btn--secondary:hover { background: var(--surface-3); border-color: #3c424a; }
.btn--ghost { color: var(--text-2); }
.btn--ghost:hover { color: var(--text); background: var(--surface-2); }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn--lg { height: 52px; padding: 0 24px; font-size: 15px; }
.btn--block { width: 100%; }
.btn.is-active { background: rgba(61, 190, 139, .12); border-color: rgba(61, 190, 139, .45); color: var(--positive); }

.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius);
  color: var(--text-2); border: 1px solid var(--line-strong); background: var(--surface);
  transition: color .15s var(--ease), border-color .15s var(--ease), background-color .15s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: #3c424a; background: var(--surface-2); }
.icon-btn.is-active { color: var(--positive); border-color: rgba(61, 190, 139, .45); background: rgba(61, 190, 139, .1); }
.icon-btn--sm { width: 32px; height: 32px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: 4px;
  font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; line-height: 1;
  background: var(--surface-3); color: var(--text-2);
}
.badge--positive { background: rgba(61, 190, 139, .12); color: var(--positive); }
.badge--accent { background: rgba(227, 179, 65, .12); color: var(--accent); }

.deal {
  display: inline-flex; align-items: baseline; gap: 2px;
  padding: 3px 7px; border-radius: 4px;
  font-size: 12px; font-weight: 500; line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.deal small { font-size: 10px; opacity: .7; }
.deal--hi { background: rgba(61, 190, 139, .12); color: var(--positive); }
.deal--mid { background: rgba(227, 179, 65, .12); color: var(--caution); }
.deal--lo { background: rgba(229, 103, 90, .12); color: var(--negative); }

.field { display: grid; gap: 8px; }
.field + .field { margin-top: 16px; }
.field > label, .field__label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.input, .select {
  width: 100%; height: 44px; padding: 0 14px;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 15px; color: var(--text);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.input::placeholder { color: var(--text-3); }
.input:hover, .select:hover { border-color: #3c424a; }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(227, 179, 65, .18); }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a9aeb5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.select option { background: var(--surface-2); color: var(--text); }

.segmented { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.segmented button {
  height: 34px; padding: 0 14px; border-radius: 6px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }

.empty {
  padding: 64px 24px; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
}
.empty__icon { display: inline-flex; color: var(--text-3); margin-bottom: 16px; }
.empty h3 { font-size: 17px; margin-bottom: 8px; }
.empty p { color: var(--text-2); font-size: 14px; max-width: 420px; margin: 0 auto; }
.empty .btn { margin-top: 24px; }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 13px; line-height: 1.55; color: var(--text-2);
}
.notice svg { color: var(--text-3); margin-top: 1px; }

.skeleton {
  position: relative; overflow: hidden;
  background: var(--surface-2); border-radius: 4px;
}
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .04), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* 5. Header & footer ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 12, 14, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; gap: 32px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--text); }
.brand__mark { color: var(--accent); }
.brand__word { font-size: 14px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; line-height: 1; }
.brand__word span { font-weight: 300; }

.header-search { position: relative; flex: 1; max-width: 440px; }
.header-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.header-search .input { height: 40px; padding-left: 40px; font-size: 14px; background: var(--surface); }

.header-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link[aria-current="page"] { color: var(--text); }
.nav-count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--positive); color: var(--on-accent);
  font-size: 11px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums;
}
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-3); border: 1px solid var(--line-strong);
  font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--text);
  margin-left: 8px;
}
.avatar:hover { border-color: var(--text-3); }
.avatar--lg { width: 64px; height: 64px; font-size: 20px; margin-left: 0; }

.cat-tabs { border-top: 1px solid var(--line); }
.cat-tabs__inner { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.cat-tabs__inner::-webkit-scrollbar { display: none; }
.cat-tab {
  position: relative; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; font-size: 13px; font-weight: 500; color: var(--text-2);
  transition: color .15s var(--ease);
}
.cat-tab:hover { color: var(--text); }
.cat-tab__count { color: var(--text-3); font-variant-numeric: tabular-nums; font-weight: 400; }
.cat-tab[aria-current="page"] { color: var(--text); }
.cat-tab[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent);
}

@media (max-width: 900px) {
  .nav-link__label { display: none; }
  .nav-link { width: 40px; padding: 0; justify-content: center; }
  .nav-count { position: absolute; top: 3px; right: 1px; min-width: 16px; height: 16px; font-size: 10px; }
}
@media (max-width: 720px) {
  .site-header__bar { flex-wrap: wrap; height: auto; padding-block: 12px; row-gap: 12px; column-gap: 12px; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .cat-tabs__inner { gap: 22px; }
}

.site-footer { margin-top: 120px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding: 64px 0 48px; }
.footer-about p { margin-top: 16px; max-width: 340px; font-size: 14px; color: var(--text-2); }
.footer-col h4 { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a, .footer-col button { font-size: 14px; color: var(--text-2); transition: color .15s var(--ease); text-align: left; }
.footer-col a:hover, .footer-col button:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 24px 0 40px; border-top: 1px solid var(--line);
  font-size: 12px; line-height: 1.6; color: var(--text-3);
}
.footer-bottom p { max-width: 720px; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-about { grid-column: 1 / -1; }
}

/* 6. Home ------------------------------------------------------------------ */
.hero { position: relative; padding: 112px 0 96px; border-bottom: 1px solid var(--line); text-align: center; overflow: hidden; }
/* A soft spotlight behind the headline. */
.hero::before {
  content: ""; position: absolute; left: 50%; top: -20%; width: min(1100px, 120%); height: 90%;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(227, 179, 65, .10), transparent 65%);
}
.hero > .container { position: relative; }
.hero__title { font-size: clamp(52px, 8.4vw, 112px); max-width: 14ch; margin: 20px auto 0; }
.hero__title em { color: var(--accent); }
.hero__lede { max-width: 560px; margin: 28px auto 0; font-size: 17px; line-height: 1.65; color: var(--text-2); }

.search-field { position: relative; display: flex; gap: 8px; max-width: 640px; margin: 40px auto 0; text-align: left; }
.search-field__input { position: relative; flex: 1; }
.search-field__input svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search-field .input { height: 52px; padding-left: 50px; font-size: 16px; background: var(--surface); }

.hero__stats { display: flex; flex-wrap: wrap; justify-content: center; max-width: 760px; margin: 64px auto 0; border-top: 1px solid var(--line); }
.stat { flex: 1 1 0; padding: 28px 24px 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__value { font-family: var(--font-display); font-weight: 700; font-size: 36px; line-height: 1; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 8px; font-size: 13px; color: var(--text-2); }
@media (max-width: 720px) {
  .hero { padding: 64px 0 56px; }
  .search-field { flex-direction: column; }
  .search-field .btn { width: 100%; }
  .hero__stats { margin-top: 48px; }
  .stat, .stat + .stat { padding: 20px 0 0; border-left: 0; flex: 1 1 100%; }
}

.section { padding-top: 88px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-display); font-weight: 700; font-size: 36px; text-transform: uppercase; line-height: 1; margin-top: 10px; }
.section-head p { color: var(--text-2); font-size: 14px; margin-top: 10px; }
.section-head--center { justify-content: center; text-align: center; }
.steps--center .step { text-align: center; padding: 32px 32px 0; }
.steps--center .step p { margin-left: auto; margin-right: auto; }
@media (max-width: 820px) {
  .steps--center .step, .steps--center .step + .step { padding: 28px 0; }
}
.section-foot { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; color: var(--text-3); font-size: 13px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.step { padding: 32px 32px 0 0; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
.step__num { font-size: 12px; font-weight: 500; color: var(--accent); letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 18px; margin-top: 20px; }
.step p { margin-top: 10px; font-size: 14px; color: var(--text-2); max-width: 320px; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
}

/* 7. Event cards & lists --------------------------------------------------- */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 24px; }

.event-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.event-card:hover { border-color: var(--line-strong); }
.event-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.event-card:hover .event-card__media img { transform: scale(1.03); }
.event-card__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.event-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.event-card__title { margin-top: 10px; font-size: 16px; line-height: 1.35; }
.event-card__title .card-link { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: 100%; }
.event-card__venue { margin-top: 6px; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; }
.event-card__foot .icon-btn { position: relative; z-index: 2; }

/* Whole-card click target without nesting interactive elements. */
.card-link { text-align: left; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-link:focus-visible { outline: none; }
.event-card:has(.card-link:focus-visible), .row-card:has(.card-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.price-label { display: block; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.price-value { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 20px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }

.event-card--skeleton .skeleton--media { aspect-ratio: 16 / 9; border-radius: 0; }
.skeleton--line { height: 12px; margin-top: 12px; }
.skeleton--short { width: 40%; margin-top: 0; }
.skeleton--title { width: 85%; height: 16px; }
.skeleton--mid { width: 60%; }
.skeleton--price { width: 30%; height: 20px; margin-top: 28px; }
.skeleton--hero { width: 60%; height: 56px; margin-top: 20px; }

.row-list { display: grid; gap: 12px; }
.row-card {
  position: relative; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 24px;
  padding: 18px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.row-card:hover { border-color: var(--line-strong); background: #13161a; }
.row-card__title { font-size: 16px; line-height: 1.35; }
.row-card__sub { margin-top: 4px; font-size: 13px; color: var(--text-2); }
.row-card__end { display: flex; align-items: center; gap: 24px; text-align: right; }
.row-card__end .icon-btn { position: relative; z-index: 2; }
.row-card__end .price-value { justify-content: flex-end; }

.date-block { text-align: center; padding: 8px 0; border-right: 1px solid var(--line); }
.date-block__mon { font-size: 11px; font-weight: 500; letter-spacing: .12em; color: var(--accent); }
.date-block__day { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1; margin-top: 2px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .row-card { grid-template-columns: 52px 1fr; gap: 16px; padding: 16px; }
  .row-card__end { grid-column: 1 / -1; justify-content: space-between; text-align: left; border-top: 1px solid var(--line); padding-top: 14px; }
  .row-card__end .price-value { justify-content: flex-start; }
}

/* 8. Search & page headers ------------------------------------------------- */
.page-head { padding: 56px 0 40px; }
.page-head h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 5vw, 60px); text-transform: uppercase; line-height: .95; margin-top: 12px; }
.page-head p { margin-top: 14px; color: var(--text-2); font-size: 15px; }
.page-head .breadcrumbs + h1 { margin-top: 24px; }
.event-hero__kicker { margin-top: 32px; }

.breadcrumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }
.breadcrumbs button { color: var(--text-2); transition: color .15s var(--ease); }
.breadcrumbs button:hover { color: var(--text); }
.breadcrumbs [aria-current] { color: var(--text-3); max-width: 46ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.toolbar { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; padding: 20px 0; margin-bottom: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toolbar .field { min-width: 180px; flex: 0 1 220px; }
.toolbar .field + .field { margin-top: 0; }
@media (max-width: 640px) {
  .page-head { padding: 40px 0 28px; }
  .toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .toolbar .field { min-width: 0; }
  .toolbar .field:last-child { grid-column: 1 / -1; }
}

/* 9. Event detail ---------------------------------------------------------- */
.event-hero { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; padding: 40px 0 48px; border-bottom: 1px solid var(--line); }
.event-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 5vw, 64px); text-transform: uppercase; line-height: .95; margin-top: 16px; max-width: 18ch; }
.event-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 24px; font-size: 14px; color: var(--text-2); }
.event-meta__item { display: inline-flex; align-items: center; gap: 8px; }
.event-meta__item svg { color: var(--text-3); }
.event-hero__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

.price-summary { min-width: 280px; padding: 24px; }
.price-summary__value { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1; margin-top: 10px; font-variant-numeric: tabular-nums; }
.price-summary__src { margin-top: 10px; font-size: 13px; color: var(--text-2); }
.price-summary .btn { margin-top: 20px; }
.price-summary .btn + .btn { margin-top: 8px; }
@media (max-width: 880px) {
  .event-hero { grid-template-columns: 1fr; gap: 32px; }
  .price-summary { min-width: 0; }
}

.event-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 24px; align-items: start; margin-top: 40px; }
@media (max-width: 960px) { .event-layout { grid-template-columns: 1fr; } }

.card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.card__head h2 { font-size: 15px; }
.card__head p { font-size: 13px; color: var(--text-3); }
.card__body { padding: 24px; }

.seatmap { width: 100%; height: auto; max-width: 560px; margin: 0 auto; }
.seat-section {
  cursor: pointer; stroke: var(--surface); stroke-width: 1.5;
  transition: opacity .2s var(--ease), filter .2s var(--ease);
}
.seat-section:hover { filter: brightness(1.18); }
.seat-section:focus { outline: none; }
.seat-section:focus-visible { stroke: var(--accent); stroke-width: 2.5; }
.seatmap.has-selection .seat-section { opacity: .38; }
.seatmap.has-selection .seat-section.is-selected { opacity: 1; stroke: var(--text); stroke-width: 2.5; }
.stage-block { fill: var(--surface-3); stroke: var(--line-strong); stroke-width: 1; }
.stage-text { font-family: var(--font-sans); font-weight: 500; font-size: 11px; letter-spacing: .2em; fill: var(--text-3); text-anchor: middle; }

.legend { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 20px 24px; border-top: 1px solid var(--line); }
.legend__item { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.legend__swatch { width: 10px; height: 10px; border-radius: 2px; }
.legend__range { color: var(--text-3); font-variant-numeric: tabular-nums; }
.map-note { padding: 0 24px 20px; font-size: 12px; color: var(--text-3); }

.panel { position: sticky; top: calc(var(--header-h) + 64px); }
.panel-empty { padding: 56px 32px; text-align: center; }
.panel-empty svg { margin: 0 auto 16px; color: var(--text-3); }
.panel-empty h3 { font-size: 16px; }
.panel-empty p { margin: 8px auto 0; max-width: 280px; font-size: 14px; color: var(--text-2); }

.panel__top { padding: 24px; border-bottom: 1px solid var(--line); }
.panel__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.panel__title h3 { font-family: var(--font-display); font-weight: 700; font-size: 32px; text-transform: uppercase; line-height: 1; }
.panel__tier { margin-top: 8px; font-size: 13px; color: var(--text-2); }
.score-meter { margin-top: 20px; }
.score-meter__row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); }
.score-meter__track { height: 4px; margin-top: 8px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.score-meter__fill { height: 100%; border-radius: 2px; }

.trend { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.trend__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.trend__signal { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; }
.trend__signal--down { color: var(--positive); }
.trend__signal--up { color: var(--negative); }
.trend__signal--flat { color: var(--text-2); }
.sparkline { width: 100%; height: auto; }
.trend__note { margin-top: 12px; font-size: 12px; color: var(--text-3); line-height: 1.5; }

.offers { padding: 8px 24px; }
.offer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; }
.offer + .offer { border-top: 1px solid var(--line); }
.offer__name { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.offer__fees { margin-top: 4px; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.offer__price { font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.panel__actions { display: grid; gap: 8px; padding: 0 24px 24px; }
.panel__fineprint { padding: 16px 24px 24px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.55; color: var(--text-3); }
.credit-hint { font-size: 12px; color: var(--text-3); text-align: center; }
.credit-hint button { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }

.venue { margin-top: 24px; overflow: hidden; }
.venue__photo { width: 100%; height: 360px; object-fit: cover; background: var(--surface-2); }
.venue__map { width: 100%; height: 360px; border: 0; display: block; background: var(--surface-2); }
.venue__body { padding: 28px; border-top: 1px solid var(--line); }
.venue__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.venue__name { font-family: var(--font-display); font-weight: 700; font-size: 32px; text-transform: uppercase; line-height: 1; margin-top: 10px; }
.venue__address { margin-top: 10px; font-size: 14px; color: var(--text-2); }
.venue__links { display: flex; gap: 8px; flex-wrap: wrap; }
.venue__details { margin-top: 24px; border-top: 1px solid var(--line); }
.venue__detail { border-bottom: 1px solid var(--line); }
.venue__detail summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; cursor: pointer; list-style: none;
  font-size: 14px; font-weight: 500;
}
.venue__detail summary::-webkit-details-marker { display: none; }
.venue__detail summary svg { color: var(--text-3); transition: transform .2s var(--ease); }
.venue__detail[open] summary svg { transform: rotate(45deg); }
.venue__detail p { padding: 0 0 20px; max-width: 760px; font-size: 14px; line-height: 1.7; color: var(--text-2); }
@media (max-width: 760px) {
  .venue__photo, .venue__map { height: 240px; }
}

/* 10. Group, alerts, profile ---------------------------------------------- */
.invite { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 24px; }
.invite__code { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: .08em; margin-top: 8px; color: var(--accent); }

.members { margin-top: 16px; overflow: hidden; }
.member-row { display: grid; grid-template-columns: 1.1fr 2fr 120px; gap: 20px; align-items: center; padding: 16px 24px; }
.member-row + .member-row { border-top: 1px solid var(--line); }
.member-row--head > :last-child { text-align: right; }
.member-row--head { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); padding-top: 14px; padding-bottom: 14px; background: var(--surface-2); }
.member-row__name { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.member-row__price { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.member-row .select { height: 40px; font-size: 14px; }
@media (max-width: 640px) {
  .member-row { grid-template-columns: 1fr auto; }
  .member-row__pick { grid-column: 1 / -1; order: 3; }
  .member-row--head { display: none; }
}

.total { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 16px; padding: 24px; }
.total__value { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.page-note { margin-top: 20px; font-size: 13px; color: var(--text-3); }

.status { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 4px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.status--drop { background: rgba(61, 190, 139, .12); color: var(--positive); }
.status--up { background: rgba(229, 103, 90, .12); color: var(--negative); }
.status--flat { background: var(--surface-3); color: var(--text-2); }
.alert-prices { display: flex; gap: 28px; align-items: center; }
.alert-prices .price-value { font-size: 16px; }
.price-value--drop { color: var(--positive); }
.price-value--up { color: var(--negative); }
.actions-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; font-size: 13px; color: var(--text-3); }

.profile { display: grid; grid-template-columns: auto 1fr; gap: 28px; padding: 28px; }
.profile__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.profile__fields .field + .field { margin-top: 0; }
.profile__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; font-size: 13px; color: var(--text-3); }
@media (max-width: 720px) {
  .profile { grid-template-columns: 1fr; }
  .profile__fields { grid-template-columns: 1fr; }
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.stack-card .eyebrow + h3 { margin-top: 10px; }
.balance-note { margin-top: 8px; font-size: 13px; color: var(--text-3); }
.input--code { text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.stack-card { padding: 28px; }
.stack-card h3 { font-size: 16px; }
.stack-card > p { margin-top: 8px; font-size: 14px; color: var(--text-2); }
.balance { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; margin-top: 20px; font-variant-numeric: tabular-nums; }
.copy-field { display: flex; gap: 8px; margin-top: 20px; }
.copy-field__value {
  flex: 1; display: flex; align-items: center; height: 40px; padding: 0 14px; min-width: 0;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 14px; font-weight: 500; letter-spacing: .08em; color: var(--accent);
}
.list-plain { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line); }
.list-plain li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.list-plain li span { color: var(--text-3); font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 6px 0 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 13px; font-weight: 500;
}
.chip button { display: inline-flex; padding: 4px; border-radius: 4px; color: var(--text-3); }
.chip button:hover { color: var(--text); background: var(--surface-3); }
.tag-you { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 3px; background: rgba(227, 179, 65, .14); color: var(--accent); font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }

/* 11. Modals --------------------------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(5, 6, 8, .72);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: fade-in .18s var(--ease) both;
}
.modal {
  position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 40px); overflow-y: auto;
  padding: 32px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  animation: rise-in .22s var(--ease) both;
}
.modal--wide { max-width: 720px; padding: 16px; }
.modal__close { position: absolute; top: 16px; right: 16px; }
.modal__title { font-size: 20px; padding-right: 40px; }
.modal__text { margin-top: 10px; font-size: 14px; color: var(--text-2); }
.modal__form { margin-top: 24px; }
.modal__actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 28px; }
.modal__note { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.55; color: var(--text-3); }
.modal img { width: 100%; max-height: 70vh; object-fit: contain; border-radius: var(--radius); }
@keyframes fade-in { from { opacity: 0; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px) scale(.99); } }

/* 12. Document pages ------------------------------------------------------- */
.doc { max-width: 760px; padding: 72px 0 0; }
.doc h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 6vw, 72px); text-transform: uppercase; line-height: .95; margin-top: 16px; }
.doc__lede { margin-top: 24px; font-size: 18px; line-height: 1.65; color: var(--text-2); }
.doc__meta { margin-top: 16px; font-size: 13px; color: var(--text-3); }
.doc__summary { margin-top: 40px; padding: 24px; font-size: 14px; line-height: 1.65; color: var(--text-2); }
.doc__summary strong { color: var(--text); }
.doc section { margin-top: 56px; }
.doc h2 { font-size: 20px; margin-bottom: 16px; }
.doc p, .doc li { font-size: 15px; line-height: 1.75; color: var(--text-2); }
.doc p + p { margin-top: 16px; }
.doc ul { margin: 16px 0 0; padding-left: 20px; }
.doc li + li { margin-top: 10px; }
.doc li strong { color: var(--text); }
.doc a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: text-decoration-color .15s var(--ease); }
.doc a:hover { text-decoration-color: var(--accent); }
.doc .steps { margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* 13. Category browsing ------------------------------------------------------ */
.genre-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 32px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.genre-tabs button {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 13px; font-weight: 500; color: var(--text-2);
  transition: color .15s var(--ease), border-color .15s var(--ease), background-color .15s var(--ease);
}
.genre-tabs button:hover { color: var(--text); border-color: #3c424a; }
.genre-tabs button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.genre-tabs__count { font-weight: 400; color: var(--text-3); font-variant-numeric: tabular-nums; }
.genre-tabs button[aria-pressed="true"] .genre-tabs__count { color: var(--text-3); }
@media (max-width: 640px) {
  .genre-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
  .genre-tabs::-webkit-scrollbar { display: none; }
  .genre-tabs button { flex-shrink: 0; }
}

.genre-section { padding-top: 48px; }
.genre-section__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.genre-section__head h2 { font-family: var(--font-display); font-weight: 700; font-size: 30px; text-transform: uppercase; line-height: 1; }
.genre-section__count { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.genre-section__head .btn { margin-left: auto; }

.event-card__dates {
  position: absolute; left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 4px;
  background: rgba(11, 12, 14, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 11px; font-weight: 500; letter-spacing: .04em; color: var(--text);
}

.more-dates { margin-top: 32px; }
.more-dates__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.date-chip {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); font-size: 13px; font-weight: 500; color: var(--text-2);
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
button.date-chip:hover { color: var(--text); border-color: #3c424a; }
.date-chip[aria-current="true"] { border-color: var(--accent); color: var(--accent); }
.date-chip--more { color: var(--text-3); }
