/* ── Clash Display ────────────────────────────────────────────────────────
   --font-heading has referenced "Clash Display" since the design system was
   written, but the font was never actually loaded — base.html only fetched
   Inter and Space Grotesk, so all 47 heading rules silently fell back to
   system sans-serif. The site has never rendered the way its own tokens
   specify. Self-hosted (ITF Free Font License, fontshare.com) rather than
   CDN-linked: no third-party request on every page load, no dependency on
   fontshare staying up, and it keeps working if a CSP is ever tightened.
   font-display:swap so a slow font never blocks text.
   The ?v= is not decoration: polling a not-yet-deployed asset URL let
   Cloudflare cache a 404 against it, and the versioned URL is what routes
   around a poisoned edge entry. Bump it if a font file is ever replaced. */
@font-face {
  font-family: "Clash Display";
  src: url("/static/fonts/ClashDisplay-400.woff2?v=1") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("/static/fonts/ClashDisplay-500.woff2?v=1") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("/static/fonts/ClashDisplay-600.woff2?v=1") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("/static/fonts/ClashDisplay-700.woff2?v=1") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --bg: #080808;
  --bg-elevated: #14101d;
  --bg-card: #120f19;
  --text: #F0F0F0;
  --text-muted: rgba(240, 240, 240, 0.6);
  --text-faint: #6b6b6b;
  --accent: #8B5CF6;
  --accent-strong: #7C3AED;
  --accent-glow: rgba(139, 92, 246, 0.35);
  --surface: rgba(139, 92, 246, 0.05);
  --surface-border: rgba(139, 92, 246, 0.18);
  --rule: rgba(139, 92, 246, 0.22);
  --rule-soft: rgba(139, 92, 246, 0.15);
  --hairline: rgba(139, 92, 246, 0.14);
  --bg-ambient:
    radial-gradient(55% 38% at 88% -8%, rgba(139, 92, 246, 0.16), transparent 65%),
    radial-gradient(45% 32% at -12% 28%, rgba(124, 58, 237, 0.10), transparent 65%),
    radial-gradient(50% 42% at 50% 115%, rgba(139, 92, 246, 0.08), transparent 60%);

  --font-display: "Space Grotesk", sans-serif;
  --font-heading: "Clash Display", sans-serif;
  --font-body: "Inter", sans-serif;

  --space-xs: 0.4rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 6rem;
}

[data-theme="light"] {
  --bg: #F4F3FF;
  --bg-elevated: #FFFFFF;
  --bg-card: #FFFFFF;
  --text: #0A0A12;
  --text-muted: rgba(10, 10, 18, 0.6);
  --text-faint: #999;
  --accent: #7C3AED;
  --accent-strong: #6D28D9;
  --accent-glow: rgba(124, 58, 237, 0.2);
  --surface: rgba(124, 58, 237, 0.04);
  --surface-border: rgba(124, 58, 237, 0.16);
  --rule: rgba(124, 58, 237, 0.2);
  --rule-soft: rgba(124, 58, 237, 0.12);
  --hairline: rgba(124, 58, 237, 0.12);
  --bg-ambient:
    radial-gradient(55% 38% at 88% -8%, rgba(124, 58, 237, 0.10), transparent 65%),
    radial-gradient(45% 32% at -12% 28%, rgba(124, 58, 237, 0.06), transparent 65%),
    radial-gradient(50% 42% at 50% 115%, rgba(124, 58, 237, 0.05), transparent 60%);
}

/* ── Theme fade transition (only active after first paint) ───────────── */
.theme-transitions-ready body,
.theme-transitions-ready .navbar,
.theme-transitions-ready .hf-footer,
.theme-transitions-ready .hf-city-card,
.theme-transitions-ready .hf-coming-row,
.theme-transitions-ready .hf-coming-title,
.theme-transitions-ready .hf-coming-venue,
.theme-transitions-ready .hf-city-name,
.theme-transitions-ready .hf-city-indigenous,
.theme-transitions-ready .hf-search,
.theme-transitions-ready .hf-wordmark,
.theme-transitions-ready .hf-tagline,
.theme-transitions-ready .hf-sub,
.theme-transitions-ready .hf-section-title,
.theme-transitions-ready .hf-featured-panel,
.theme-transitions-ready .hf-featured-title,
.theme-transitions-ready .hf-featured-meta,
.theme-transitions-ready .hf-panel-lineup,
.theme-transitions-ready .hf-panel-desc,
.theme-transitions-ready .hf-btn-secondary,
.theme-transitions-ready .hf-artist-name,
.theme-transitions-ready .hf-artist-meta,
.theme-transitions-ready .hf-view-all,
.theme-transitions-ready .events-filter-strip,
.theme-transitions-ready .events-featured,
.theme-transitions-ready .events-featured-title,
.theme-transitions-ready .events-featured-venue,
.theme-transitions-ready .events-featured-meta,
.theme-transitions-ready .event-card,
.theme-transitions-ready .event-title,
.theme-transitions-ready .event-meta,
.theme-transitions-ready .navbar-links a,
.theme-transitions-ready .hf-sso-btn,
.theme-transitions-ready .hf-form-title,
.theme-transitions-ready .hf-form-sub,
.theme-transitions-ready .theme-toggle,
.theme-transitions-ready .hf-footer-wordmark,
.theme-transitions-ready .hf-footer-wordmark span,
.theme-transitions-ready .hf-footer-nav a,
.theme-transitions-ready .hf-footer-attr,
.theme-transitions-ready .hf-cd-num,
.theme-transitions-ready .hf-cd-label,
.theme-transitions-ready .hf-cd-sep,
.theme-transitions-ready .event-description,
.theme-transitions-ready .event-detail-infosub,
.theme-transitions-ready .source-link {
  transition: background-color 0.7s ease, color 0.7s ease, border-color 0.7s ease;
}

[data-theme="light"] body {
  background: var(--bg);
  color: var(--text);
}

[data-theme="light"] .navbar {
  background: rgba(244, 243, 255, 0.88);
  border-bottom-color: rgba(124, 58, 237, 0.15);
}

[data-theme="light"] .navbar-links a {
  color: #0A0A12;
}

[data-theme="light"] .events-filter-strip {
  background: rgba(244, 243, 255, 0.92);
  border-bottom-color: rgba(124, 58, 237, 0.12);
}

[data-theme="light"] .events-filter-strip input[type="date"] {
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.12);
  color: rgba(10,10,18,.8);
}

[data-theme="light"] .event-card {
  background: #fff;
  border-color: rgba(0,0,0,.08);
}

[data-theme="light"] .event-title { color: #0A0A12; }
[data-theme="light"] .event-meta { color: rgba(10,10,18,.55); }

[data-theme="light"] .events-banner {
  border-bottom-color: rgba(124,58,237,.15);
}

[data-theme="light"] .events-featured {
  background: #fff;
  border-color: rgba(124,58,237,.2);
}

[data-theme="light"] .hf-footer {
  background: #EEEDF8;
  border-top-color: rgba(0,0,0,.08);
}
[data-theme="light"] .hf-footer-wordmark { color: #0A0A12; }
[data-theme="light"] .hf-footer-nav a { color: rgba(10,10,18,.55); }
[data-theme="light"] .hf-footer-nav a:hover { color: #0A0A12; }
[data-theme="light"] .hf-footer-attr { color: rgba(10,10,18,.38); }

/* ── Light mode: homepage city cards ─────────────────────────────────── */
[data-theme="light"] .hf-city-card {
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.08);
}
[data-theme="light"] .hf-city-card:hover { background: rgba(0,0,0,.055); }
[data-theme="light"] .hf-city-name { color: #0A0A12; }
[data-theme="light"] .hf-city-indigenous { color: rgba(10,10,18,.5); }

/* ── Light mode: coming-up rows ──────────────────────────────────────── */
[data-theme="light"] .hf-coming-row {
  border-top-color: rgba(0,0,0,.08);
}
[data-theme="light"] .hf-coming-row:last-child {
  border-bottom-color: rgba(0,0,0,.08);
}
[data-theme="light"] .hf-coming-title { color: #0A0A12; }
[data-theme="light"] .hf-coming-venue { color: rgba(10,10,18,.55); }

/* ── Light mode: general hardcoded whites ────────────────────────────── */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3 { color: #0A0A12; }

[data-theme="light"] .page-subtitle,
[data-theme="light"] .page-subtitle p { color: rgba(10,10,18,.6); }

[data-theme="light"] .dashboard-eyebrow { color: var(--accent); }

[data-theme="light"] .section-eyebrow,
[data-theme="light"] .hf-section-eyebrow { color: rgba(10,10,18,.4); }

[data-theme="light"] .events-banner-title { color: #0A0A12; }
[data-theme="light"] .events-banner-count { color: rgba(10,10,18,.45); }
[data-theme="light"] .events-banner-glow {
  background:
    radial-gradient(ellipse 60% 120% at 20% 50%, rgba(124,58,237,.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at 80% 30%, rgba(124,58,237,.07) 0%, transparent 60%);
}

[data-theme="light"] .events-city-tab { color: rgba(10,10,18,.45); }
[data-theme="light"] .events-city-tab:hover { color: rgba(10,10,18,.85); }
[data-theme="light"] .events-city-tab--active { color: #0A0A12; }
[data-theme="light"] .events-city-count { color: rgba(10,10,18,.35); background: rgba(0,0,0,.06); }
[data-theme="light"] .events-date-tab { color: rgba(10,10,18,.45); }
[data-theme="light"] .events-date-tab:hover { color: rgba(10,10,18,.85); }
[data-theme="light"] .events-date-tab--active { color: #0A0A12; }
[data-theme="light"] .events-filter-divider { background: rgba(0,0,0,.1); }

[data-theme="light"] .events-featured { background: #fff; border-color: rgba(124,58,237,.2); }
[data-theme="light"] .events-featured-title { color: #0A0A12; }
[data-theme="light"] .events-featured-venue { color: rgba(10,10,18,.6); }
[data-theme="light"] .events-featured-meta { color: rgba(10,10,18,.5); }
[data-theme="light"] .events-featured-desc { color: rgba(10,10,18,.4); }
[data-theme="light"] .events-section-label { color: rgba(10,10,18,.3); }

[data-theme="light"] .form-note { color: rgba(10,10,18,.55); }
[data-theme="light"] .filter-label { color: rgba(10,10,18,.5); }

[data-theme="light"] .event-card-date-badge { background: rgba(255,255,255,.9); }
[data-theme="light"] .event-card-date-day { color: #0A0A12; }
[data-theme="light"] .event-card-date-month { color: var(--accent); }

/* ── Light mode: event detail page ──────────────────────────────────── */
[data-theme="light"] .hf-cd-num { color: #0A0A12; }
[data-theme="light"] .hf-cd-label { color: rgba(10,10,18,.45); }
[data-theme="light"] .hf-cd-sep { color: rgba(10,10,18,.25); }
[data-theme="light"] .event-detail-infosub { color: rgba(10,10,18,.5); }
[data-theme="light"] .event-description { color: rgba(10,10,18,.75); }
[data-theme="light"] .source-link { color: rgba(10,10,18,.45); }
[data-theme="light"] .source-link:hover { color: var(--accent); }

/* ── Light mode: SSO buttons ─────────────────────────────────────────── */
[data-theme="light"] .hf-sso-btn {
  background: #fff;
  border-color: rgba(0,0,0,.1);
  color: #0A0A12;
}
[data-theme="light"] .hf-sso-btn:hover {
  background: #f5f4ff;
  border-color: rgba(0,0,0,.18);
  color: #0A0A12;
}
[data-theme="light"] .hf-sso-btn:active { background: #ece9ff; }

/* ── Light mode: auth form panel text ────────────────────────────────── */
[data-theme="light"] .hf-form-title { color: #0A0A12; }
[data-theme="light"] .hf-form-sub { color: rgba(10,10,18,.55); }
[data-theme="light"] .hf-form-fine { color: rgba(10,10,18,.38); }

/* ── Light mode: form inputs & labels ────────────────────────────────── */
[data-theme="light"] .hf-label { color: #0A0A12; }
[data-theme="light"] .hf-input {
  background: #fff;
  border-color: rgba(0,0,0,.15);
  color: #0A0A12;
}
[data-theme="light"] .hf-input::placeholder { color: rgba(10,10,18,.35); }
[data-theme="light"] .hf-input:focus {
  background: #fff;
  border-color: #8B5CF6;
}
[data-theme="light"] select.hf-input option { background: #fff; color: #0A0A12; }
[data-theme="light"] select.hf-input:invalid { color: rgba(10,10,18,.35); }
[data-theme="light"] .hf-select-chevron { color: rgba(10,10,18,.45); }
[data-theme="light"] input[type="date"].hf-input,
[data-theme="light"] input[type="time"].hf-input,
[data-theme="light"] input[type="datetime-local"].hf-input { color-scheme: light; }

/* ── Light mode: auth brand panel ────────────────────────────────────── */
[data-theme="light"] .hf-brand-panel {
  border-right-color: rgba(124,58,237,.15);
}
[data-theme="light"] .hf-brand-scrim {
  background: radial-gradient(70% 60% at 40% 50%, rgba(244,243,255,.4), rgba(244,243,255,.1) 62%, transparent 84%);
}
[data-theme="light"] .hf-brand-wordmark { color: #0A0A12; }
[data-theme="light"] .hf-brand-tagline { color: rgba(10,10,18,.65); }
[data-theme="light"] .hf-brand-sub { color: rgba(10,10,18,.5); }
[data-theme="light"] .hf-brand-footnote { color: rgba(10,10,18,.35); }

/* ── Light mode: homepage hero section ───────────────────────────────── */
[data-theme="light"] .hf-scrim {
  background: radial-gradient(56% 44% at 50% 50%, rgba(244,243,255,.45), rgba(244,243,255,.08) 60%, transparent 82%);
}
[data-theme="light"] .hf-light-rot {
  background: conic-gradient(from 0deg,rgba(139,92,246,.65),rgba(99,52,196,.18),rgba(160,120,255,.6),rgba(99,52,196,.18),rgba(139,92,246,.65));
  opacity: 1;
}
[data-theme="light"] .hf-light-2 {
  background: radial-gradient(circle,rgba(124,58,237,.85),transparent 68%);
}
[data-theme="light"] .hf-light-3 {
  background: radial-gradient(circle,rgba(160,120,255,.72),transparent 70%);
}
[data-theme="light"] .hf-light-5 {
  background: radial-gradient(circle,rgba(150,100,255,.65),transparent 72%);
}
[data-theme="light"] .hf-wordmark { color: #0A0A12; }
[data-theme="light"] .hf-tagline { color: rgba(10,10,18,.7); }
[data-theme="light"] .hf-sub { color: rgba(10,10,18,.6); }
[data-theme="light"] .hf-search {
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.1);
}
[data-theme="light"] .hf-search-icon { color: rgba(10,10,18,.4); }
[data-theme="light"] input[type="text"].hf-search-input,
[data-theme="light"] .hf-search-input { color: #0A0A12; }
[data-theme="light"] .hf-search-input::placeholder { color: rgba(10,10,18,.4); }
[data-theme="light"] .hf-bob { color: rgba(10,10,18,.35); }

/* ── Light mode: homepage chapter links / section titles ─────────────── */
[data-theme="light"] .hf-view-all { color: rgba(10,10,18,.45); }
[data-theme="light"] .hf-empty { color: rgba(10,10,18,.4); }
[data-theme="light"] .hf-rule { background: rgba(124,58,237,.18); }

/* ── Light mode: homepage featured section ───────────────────────────── */
[data-theme="light"] .hf-featured-panel {
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.08);
}
[data-theme="light"] .hf-featured-title { color: #0A0A12; }
[data-theme="light"] .hf-featured-meta { color: rgba(10,10,18,.65); }
[data-theme="light"] .hf-panel-lineup { color: #0A0A12; }
[data-theme="light"] .hf-panel-desc { color: rgba(10,10,18,.55); }
[data-theme="light"] .hf-btn-secondary {
  border-color: rgba(0,0,0,.18);
  color: #0A0A12;
}
[data-theme="light"] .hf-btn-secondary:hover {
  border-color: rgba(0,0,0,.3);
  background: rgba(0,0,0,.04);
  color: #0A0A12;
}

/* ── Light mode: homepage artists section ────────────────────────────── */
[data-theme="light"] .hf-artist-name { color: #0A0A12; }
[data-theme="light"] .hf-artist-meta { color: rgba(10,10,18,.5); }

/* ── Light mode: homepage section headers (hf-section-title uses --text) */
[data-theme="light"] .hf-section-title { color: #0A0A12; }

/* ── Theme toggle button ─────────────────────────────────────────────── */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: rgba(240,240,240,.6);
  cursor: pointer;
  transition: color 150ms, border-color 150ms, background 150ms;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: rgba(240,240,240,.95);
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
}

[data-theme="light"] .theme-toggle {
  border-color: rgba(0,0,0,.12);
  color: rgba(10,10,18,.55);
}
[data-theme="light"] .theme-toggle:hover {
  color: rgba(10,10,18,.9);
  border-color: rgba(0,0,0,.2);
  background: rgba(0,0,0,.04);
}

/* Show moon in dark mode, sun in light mode */
.theme-icon--sun { display: none; }
.theme-icon--moon { display: block; }
[data-theme="light"] .theme-icon--sun { display: block; }
[data-theme="light"] .theme-icon--moon { display: none; }

* {
  box-sizing: border-box;
}

/* Browsers don't inherit font-family into <button> by default — without
   this, every button site-wide silently falls back to the OS default font
   instead of Inter, regardless of any class applied to it. */
button {
  font-family: inherit;
}

body {
  position: relative;
  margin: 0;
  background-color: var(--bg);
  background-image: var(--bg-ambient);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Eyebrow: the small tracked uppercase label used throughout as a
   typographic accent in place of boxed badges — section labels, card
   metadata, form-step indicators. */
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px;
  background: rgba(8, 8, 8, 0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.26);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-weight: 500;
  font-size: 0.78rem;
  /* keep links pinned right now the toggle is a navbar sibling */
  margin-left: auto;
}

/* toggle sits after the link row on desktop */
.navbar > .theme-toggle { margin-left: var(--space-md); }

.navbar-links a {
  position: relative;
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: rgba(240, 240, 240, 0.78);
  padding-bottom: 0.3rem;
  transition: color 200ms ease;
}

.navbar-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 250ms ease;
}

.navbar-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.navbar-links a:hover::after {
  right: 0;
}


/* Festivals (WIP) nav item — deliberately NOT the brand purple: Keys-gold ties
   it to the festival-Keys concept pages, and the dashed WIP chip marks the
   content as unofficial until the quests go live.
   NO BLUR, on purpose: a CSS blur scales with page zoom, so magnification —
   the primary low-vision accommodation — can never sharpen it, and the only
   un-blur trigger we had was :hover, which phones don't have. The chip says
   "work in progress" losslessly; the colour carries the rest. */
.navbar-links a.navbar-festivals {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffb35c;
  transition: color 200ms ease;
}
.navbar-links a.navbar-festivals::after { background: #ffb35c; }
.navbar-links a.navbar-festivals:hover,
.navbar-links a.navbar-festivals:focus-visible { color: #ffc98d; }
.navbar-festivals-wip {
  flex: none;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 5px;
  border: 1px dashed rgba(255, 179, 92, 0.75);
}
/* Gold is unreadable on the light ground — a deep amber that clears AA (4.5:1)
   for the label and 3:1 for the chip border as a non-text UI boundary. */
[data-theme="light"] .navbar-links a.navbar-festivals { color: #7a4a10; }
[data-theme="light"] .navbar-links a.navbar-festivals:hover,
[data-theme="light"] .navbar-links a.navbar-festivals:focus-visible { color: #5c3708; }
[data-theme="light"] .navbar-links a.navbar-festivals::after { background: #7a4a10; }
[data-theme="light"] .navbar-festivals-wip { border-color: rgba(122, 74, 16, 0.8); }

.wordmark {
  font-family: var(--font-body);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.75rem;
  color: var(--text);
  transition: opacity 200ms ease;
}

.wordmark:hover {
  opacity: 0.85;
  text-decoration: none;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 0;
  letter-spacing: -0.02em;
}

h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

/* ── Events page revamp ──────────────────────────────────────────────── */

.events-banner {
  position: relative;
  margin-left: calc(50% - 50vw);
  width: 100vw;
  padding: 3.5rem 2rem 2.5rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(139,92,246,.18);
}

.events-banner-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 120% at 20% 50%, rgba(139,92,246,.22) 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at 80% 30%, rgba(139,92,246,.1) 0%, transparent 60%);
  pointer-events: none;
}

.events-banner-content {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.events-banner-eyebrow {
  font: 500 11px 'Clash Display', sans-serif;
  letter-spacing: .32em;
  color: #8B5CF6;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.events-banner-title {
  font: 900 3.5rem/.9 'Space Grotesk', sans-serif;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 .5rem;
}

.events-banner-count {
  font: 400 13px 'Inter', sans-serif;
  color: rgba(240,240,240,.45);
  margin: 0;
}

.events-banner-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* ── Sticky filter strip ──────────────────────────────────────────────── */

.events-filter-strip {
  position: sticky;
  /* --navbar-h is kept in sync with the real navbar height by base.html
     (text zoom / large-font settings make the navbar taller than 69px) */
  top: var(--navbar-h, 69px);
  z-index: 40;
  margin-left: calc(50% - 50vw);
  width: 100vw;
  background: rgba(8,8,8,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(139,92,246,.14);
}

.events-filter-strip-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.events-filter-strip-inner::-webkit-scrollbar { display: none; }

.events-city-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.events-city-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 1.1rem .9rem;
  font: 500 12px 'Inter', sans-serif;
  letter-spacing: .02em;
  color: rgba(240,240,240,.5);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 150ms, border-color 150ms;
  text-decoration: none;
}
.events-city-tab:hover { color: rgba(240,240,240,.85); }
.events-city-tab--active {
  color: #fff;
  border-bottom-color: #8B5CF6;
}

.events-city-count {
  font-size: 10px;
  color: rgba(240,240,240,.35);
  background: rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 1px 5px;
}
.events-city-tab--active .events-city-count { color: rgba(240,240,240,.6); }

.events-filter-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
  margin: 0 .5rem;
}

.events-date-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.events-date-tab {
  padding: 1.1rem .75rem;
  font: 500 12px 'Inter', sans-serif;
  color: rgba(240,240,240,.5);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 150ms, border-color 150ms;
  text-decoration: none;
}
.events-date-tab:hover { color: rgba(240,240,240,.85); }
.events-date-tab--active {
  color: #fff;
  border-bottom-color: rgba(139,92,246,.7);
}

.events-date-form {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-left: auto;
  flex-shrink: 0;
  padding: .4rem 0;
}
.events-date-form input[type="date"] {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px;
  color: rgba(240,240,240,.7);
  font: 400 12px 'Inter', sans-serif;
  padding: .3rem .5rem;
  width: 130px;
}
.events-date-sep { color: rgba(255,255,255,.3); font-size: 12px; }
.events-date-go {
  font-size: 12px !important;
  padding: .3rem .75rem !important;
}

/* ── Featured event card ──────────────────────────────────────────────── */

.events-featured {
  position: relative;
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(139,92,246,.25);
  margin: 2rem 0 1.5rem;
  min-height: 280px;
  background: var(--bg-card);
  transition: border-color 200ms;
}
.events-featured:hover { border-color: rgba(139,92,246,.5); }

.events-featured-link {
  display: flex;
  width: 100%;
  text-decoration: none;
  color: inherit;
}
.events-featured-link:hover { text-decoration: none; }

.events-featured-img {
  position: relative;
  flex: 0 0 42%;
  overflow: hidden;
}
.events-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.events-featured:hover .events-featured-img img { transform: scale(1.04); }

.events-featured-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(139,92,246,.2), rgba(139,92,246,.05));
}

.events-featured-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(8,8,8,.8));
}

.events-featured-date-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(8,8,8,.85);
  backdrop-filter: blur(4px);
  border-radius: 3px;
  line-height: 1;
}
.events-featured-day {
  font: 700 1.3rem 'Space Grotesk', sans-serif;
  color: #fff;
}
.events-featured-month {
  font: 600 .6rem 'Clash Display', sans-serif;
  letter-spacing: .12em;
  color: #8B5CF6;
  text-transform: uppercase;
}

.events-featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.events-featured-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2.5rem;
  gap: .5rem;
}

.events-featured-eyebrow {
  font: 500 10px 'Clash Display', sans-serif;
  letter-spacing: .3em;
  color: #8B5CF6;
  text-transform: uppercase;
}

.events-featured-title {
  font: 700 1.9rem/1.05 'Space Grotesk', sans-serif;
  letter-spacing: -.02em;
  color: var(--text);
  text-transform: uppercase;
  margin: 0;
}

.events-featured-meta {
  font: 500 13px 'Inter', sans-serif;
  color: rgba(240,240,240,.55);
  margin: 0;
}

.events-featured-venue {
  font: 400 14px 'Inter', sans-serif;
  color: rgba(240,240,240,.7);
  margin: 0;
}

.events-featured-desc {
  font: 400 13px/1.6 'Inter', sans-serif;
  color: rgba(240,240,240,.45);
  margin: .25rem 0 0;
  max-width: 480px;
}

.events-featured-cta {
  font: 600 12px 'Clash Display', sans-serif;
  letter-spacing: .08em;
  color: #8B5CF6;
  text-transform: uppercase;
  margin-top: .5rem;
}

.events-featured-save {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* ── Section label ────────────────────────────────────────────────────── */

.events-section-label {
  font: 500 10px 'Clash Display', sans-serif;
  letter-spacing: .32em;
  color: rgba(240,240,240,.35);
  text-transform: uppercase;
  margin: 2rem 0 1rem;
}

/* ── Empty state ──────────────────────────────────────────────────────── */

.events-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 6rem 2rem;
  text-align: center;
}
.events-empty-icon { color: rgba(139,92,246,.4); }
.events-empty-msg {
  font: 400 15px 'Inter', sans-serif;
  color: rgba(240,240,240,.45);
  margin: 0;
}

/* ── Legacy (kept for compat) ─────────────────────────────────────────── */
.events-page-header {
  align-items: flex-end;
}

.events-page-header h1 {
  font-size: 2.25rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.page-subtitle {
  max-width: 36rem;
  margin: var(--space-xs) 0 0;
  color: #aaaaaa;
  font-size: 0.95rem;
  line-height: 1.5;
}

.view-toggle {
  display: flex;
  gap: 0.25rem;
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 6px;
  padding: 0.2rem;
}

.view-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #888888;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.view-toggle-btn:hover {
  color: var(--text);
}

.view-toggle-btn.active {
  background: var(--accent);
  color: var(--bg);
}

.empty-state {
  color: #aaaaaa;
}

.event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.event-grid.view-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.event-grid.view-grid .event-card-body {
  padding: var(--space-md);
}

.event-card {
  position: relative;
}

.event-card-link {
  display: flex;
  flex-direction: row;
  background: transparent;
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  color: var(--text);
  transition: border-color 250ms ease, transform 250ms ease;
}

.event-card:hover .event-card-link {
  border-color: var(--rule);
  text-decoration: none;
}

.event-grid.view-grid .event-card-link {
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
}

.event-grid.view-grid .event-card:hover .event-card-link {
  box-shadow: 0 0 0 1px var(--accent-glow), 0 12px 32px -12px var(--accent-glow);
}

.event-card-save {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
}

.event-card-image {
  position: relative;
  width: 320px;
  flex-shrink: 0;
  background: #0d0d0d;
  overflow: hidden;
}

.event-grid.view-grid .event-card-image {
  width: 100%;
  height: 220px;
}

.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 300ms ease;
}

.event-card:hover .event-card-image img {
  transform: scale(1.03);
}

.event-card-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a, #241a3d);
}

.event-card-date-row {
  position: absolute;
  bottom: 0.6rem;
  left: 0.6rem;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.event-card-date-badge {
  position: absolute;
  bottom: 0.6rem;
  left: 0.6rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: rgba(8, 8, 8, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.35);
  backdrop-filter: blur(4px);
  border-radius: 2px;
  color: var(--text);
  line-height: 1;
}

.event-card-age-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 8px;
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(4px);
  border-radius: 2px;
  border: 1px solid #D97706;
  color: #D97706;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
}

.event-card-age-badge--all {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.45);
}

.event-card-date-day {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.event-card-date-month {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 1px;
}

.event-card-vinyl-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 13, 13, 0);
  opacity: 0;
  transition: opacity 250ms ease, background 250ms ease;
  pointer-events: none;
}

.event-card:hover .event-card-vinyl-overlay {
  opacity: 1;
  background: rgba(10, 8, 16, 0.6);
}

.event-card-vinyl-overlay .vinyl-svg {
  width: 96px;
  height: 96px;
  color: var(--accent);
  filter: drop-shadow(0 0 18px var(--accent-glow)) drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6));
  animation: vinyl-spin 9s linear infinite;
  animation-play-state: paused;
}

.event-card:hover .event-card-vinyl-overlay .vinyl-svg {
  animation-play-state: running;
}

@keyframes vinyl-spin {
  to {
    transform: rotate(360deg);
  }
}

.event-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
  position: relative;
}

.event-grid.view-grid .event-card-body {
  justify-content: flex-start;
}

.event-card-toprow {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.event-card-date {
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: #aaaaaa;
}

.event-card-view {
  display: none;
  position: absolute;
  right: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--accent);
}

@media (min-width: 800px) {
  .event-grid:not(.view-grid) .event-card-view {
    display: inline-block;
  }

  .event-grid:not(.view-grid) .event-card-body {
    padding-right: 9rem;
  }
}

.event-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
}

.event-grid.view-grid .event-title {
  font-size: 1.3rem;
}

.event-meta {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 var(--space-xs);
}

.event-meta:last-child {
  margin-bottom: 0;
}

.event-featuring {
  font-style: italic;
  color: var(--text-muted);
}

.badge-festival {
  display: inline-block;
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bg);
  background: var(--accent);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
}

/* ── Age restriction badge ──────────────────────────────────────────────── */
.badge-age {
  display: inline-block;
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1C1002;
  background: #D97706;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
}

.badge-age--prominent {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
}

/* Inline (list view): outlined amber */
.badge-age-inline {
  background: transparent;
  border: 1px solid #D97706;
  color: #D97706;
}

/* Coming-up row: compact */
.badge-age-coming {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  vertical-align: middle;
}

/* Hide inline versions in grid mode (overlay container handles those) */
.event-grid.view-grid .badge-age-inline {
  display: none;
}

/* ── Overlay badges container (grid view) ───────────────────────────────── */
.event-card-overlay-badges {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  z-index: 2;
}

.event-grid.view-grid .event-card-overlay-badges {
  display: flex;
}

/* Featured event age badge — absolute inside hero image */
.hf-featured-age-badge {
  position: absolute;
  top: 3.4rem;
  left: 1rem;
  z-index: 3;
}

/* ── Festival badge overlay/inline (now managed by container) ────────────── */
.badge-festival-overlay {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: none;
}

.event-grid.view-grid .badge-festival-overlay {
  display: inline-block;
}

.badge-festival-inline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.event-grid.view-grid .badge-festival-inline {
  display: none;
}

.badge-genre {
  display: inline-block;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--text);
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.5);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin: 0 var(--space-xs) var(--space-xs) 0;
  transition: background 200ms ease, border-color 200ms ease;
}

.genre-badges {
  margin: var(--space-md) 0;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.btn {
  display: inline-block;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  background: transparent;
  transition: background 250ms ease, color 250ms ease, border-color 250ms ease,
    box-shadow 250ms ease, transform 250ms ease;
}

.btn:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 6px 20px -6px var(--accent-glow);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
  transition-duration: 100ms;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 800;
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--bg);
  filter: brightness(1.12);
  box-shadow: 0 8px 24px -6px var(--accent-glow);
}

.back-link {
  display: inline-block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
  transition: color 200ms ease;
}

.event-detail-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 320px;
  overflow: hidden;
  background: #0d0d0d;
}

.event-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1000ms ease;
}

.event-detail-hero:hover img {
  transform: scale(1.05);
}

.event-detail-hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 55%);
}

@media (min-width: 800px) {
  .event-detail-hero {
    height: 460px;
  }
}

.event-detail-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: -4rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .event-detail-shell {
    grid-template-columns: 2fr 1fr;
  }
}

.event-detail-main .back-link {
  color: #cccccc;
}

.event-detail-badges-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.event-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.badge-festival-static {
  position: static;
  display: inline-block;
}

.event-detail-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 var(--space-lg);
}

/* ── Countdown timer ──────────────────────────────────────────────────────── */
.hf-countdown-wrap {
  margin: 0 0 2rem;
}

.hf-countdown-tonight {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.hf-countdown {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.hf-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 5.5rem;
}

.hf-cd-num {
  font-family: var(--font-display);
  font-size: 7.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  transition: none;
}

.hf-cd-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 6px;
}

.hf-cd-sep {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 300;
  line-height: 1;
  color: rgba(255, 255, 255, 0.35);
  padding-top: 1.15rem;
  margin: 0 0.15rem;
  user-select: none;
}

/* Tick flash animation */
@keyframes hf-cd-tick {
  0%   { color: var(--accent); text-shadow: 0 0 24px rgba(139, 92, 246, 0.55); }
  100% { color: #ffffff;        text-shadow: none; }
}

.hf-cd-num--tick {
  animation: hf-cd-tick 600ms ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
  .hf-cd-num--tick { animation: none; }
}

/* Past / static fallback states */
.hf-countdown-past,
.hf-countdown-static {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  font-style: italic;
}

@media (max-width: 600px) {
  .hf-countdown-unit { min-width: 3rem; }
  .hf-cd-num         { font-size: 3.75rem; }
  .hf-cd-sep         { font-size: 2rem; padding-top: 0.55rem; margin: 0 0.1rem; }
  .hf-cd-label       { font-size: 0.5rem; }
}

/* ── End countdown ──────────────────────────────────────────────────────────── */

.event-detail-infogrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  margin-bottom: var(--space-lg);
}

@media (min-width: 560px) {
  .event-detail-infogrid {
    grid-template-columns: 1fr 1fr;
  }
}

.event-detail-infolabel {
  display: block;
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.event-detail-infovalue {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
}

.event-detail-infosub {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: #aaaaaa;
}

.event-detail-section {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(139, 92, 246, 0.15);
  margin-top: var(--space-lg);
}

.event-detail-section h2 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent);
  margin: 0 0 var(--space-md);
}

.event-description {
  font-weight: 400;
  line-height: 1.6;
  color: #dddddd;
  white-space: pre-line;
  margin: 0;
}

.lineup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 560px) {
  .lineup-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0 var(--space-lg);
  }
}

.lineup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.lineup-name {
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.source-link {
  display: inline-block;
  margin-top: var(--space-xl);
  font-size: 0.85rem;
  color: #aaaaaa;
  transition: color 200ms ease;
}

.source-link:hover {
  color: var(--accent);
}

.event-detail-sidebar {
  align-self: start;
}

@media (min-width: 900px) {
  .event-detail-sidebar {
    position: sticky;
    top: var(--space-lg);
  }
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-top: 1px solid var(--rule);
  border-radius: 2px;
  padding: var(--space-lg);
}

.sidebar-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  text-align: center;
  font-size: 1rem;
  padding: 0.9rem;
  margin-bottom: var(--space-lg);
}

.sidebar-section {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.sidebar-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-align: left;
}

.sidebar-btn svg {
  flex-shrink: 0;
}

/* Accommodation: one primary button + a quiet "also on X · Y" line of
   alternative partners. Understated on purpose — reads as neutral options, not
   a stack of BOOK NOW buttons. Shared by the event sidebar and the trip planner. */
.accom-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.accom-alts {
  margin: 0;
  padding-left: 2px;
  font-size: 0.78rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--text-faint);
}

.accom-alts a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.accom-alts a:hover,
.accom-alts a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.sidebar-note {
  margin: var(--space-lg) 0 0;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(139, 92, 246, 0.15);
  font-size: 0.85rem;
  font-style: italic;
  color: #aaaaaa;
  line-height: 1.5;
}

/* Promoter auth/forms */

.auth-form,
.submission-form {
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: var(--space-lg);
}

.submission-form {
  max-width: 560px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.form-field label {
  font-weight: 500;
  font-size: 0.85rem;
  color: #cccccc;
}

.form-row {
  display: flex;
  gap: var(--space-md);
}

.form-row .form-field {
  flex: 1;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.form-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  margin-bottom: var(--space-md);
}

.form-success {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid var(--accent);
  color: var(--text);
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.form-note {
  font-size: 0.85rem;
  color: #aaaaaa;
  margin-top: var(--space-md);
}

.form-note-banner {
  background: rgba(139, 92, 246, 0.07);
  border-left: 2px solid var(--accent);
  border-radius: 0;
  padding: 0.75rem 1rem;
  margin: 0 0 var(--space-md);
  font-size: 0.85rem;
  color: var(--text);
}

/* Promoter dashboard */

.dashboard-header {
  align-items: flex-end;
}

.dashboard-header-actions {
  display: flex;
  gap: var(--space-sm);
}

.dashboard-eyebrow {
  display: block;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.dashboard-header h1 {
  text-transform: none;
  font-size: 1.8rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.stat-card {
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: var(--space-lg);
}

.stat-card-muted {
  border-left-color: #888888;
}

.stat-card-rejected {
  border-left-color: #f87171;
}

.stat-label {
  margin: 0 0 var(--space-xs);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #aaaaaa;
}

.stat-value {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.dashboard-section-title {
  position: relative;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 var(--space-md);
  padding-left: 14px;
}

.dashboard-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.12em;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
}

.dashboard-see-all {
  margin: var(--space-sm) 0 0;
  font-size: 0.9rem;
}

.dashboard-see-all a {
  color: var(--accent);
  text-decoration: none;
}

.dashboard-see-all a:hover {
  text-decoration: underline;
}

.submission-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.submission-thumb {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a, #241a3d);
}

.submission-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.submission-title {
  margin: 0;
  font-weight: 700;
}

.submission-venue {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
  color: #aaaaaa;
}

/* Dashboard / review tables */

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-top: 1px solid var(--rule);
  border-radius: 0;
  overflow: hidden;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.85rem var(--space-md);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  font-size: 0.9rem;
}

.data-table th {
  font-weight: 800;
  color: #cccccc;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr {
  transition: background-color 150ms ease;
}

.data-table tbody tr:hover {
  background-color: rgba(139, 92, 246, 0.08);
}

.status-pill {
  display: inline-block;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.status-pending {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.status-approved {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.status-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 0;
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
}

.review-card-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.btn-reject {
  border-color: #f87171;
  color: #f87171;
}

.btn-reject:hover {
  background: #f87171;
  color: var(--bg);
  box-shadow: 0 6px 20px -6px rgba(248, 113, 113, 0.4);
}

.filter-label {
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--accent);
}

/* Footer */

.site-footer {
  margin-top: var(--space-2xl);
  background: var(--bg-elevated);
  border-top: 1px solid var(--rule);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-lg);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.footer-brand .wordmark {
  font-size: 1.3rem;
}

.footer-tagline {
  margin: var(--space-xs) 0 0;
  font-size: 0.9rem;
  color: #aaaaaa;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #cccccc;
  margin: 0 0 var(--space-md);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: #999999;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 200ms ease;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
  border-top: 1px solid rgba(139, 92, 246, 0.15);
  font-size: 0.8rem;
  color: #777777;
}

.footer-bottom p {
  margin: 0;
}

.footer-note {
  font-style: italic;
}

@media (max-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* Homepage */

.text-accent {
  color: var(--accent);
}

/* Break hero out of the .container max-width so it spans the full viewport,
   same technique used by .event-detail-hero. Content inside stays readable
   via the centered .hero-inner max-width. */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 5rem;
  margin-top: -2rem;
  margin-left: calc(50% - 50vw);
  width: 100vw;
}

/* Vinyl record motif — used as a hover overlay on event cards / Coming Up
   cards (not in the hero), drawn as plain SVG in the violet/dark palette. */
.vinyl-svg {
  display: block;
  color: var(--accent);
}

/* Hero background: canvas-drawn blobs (5 radial gradients on Lissajous
   paths, near-black base) for high contrast against the violet, with a
   fillRect-alpha trail for the smear effect — see static/hero-canvas.js.
   Technique referenced from Magic MCP's "GridGlowBackground" / "Quantum
   Grid Hero" inspiration results (canvas + createRadialGradient glow
   blobs + low-alpha fillRect trail), adapted to this exact spec. */
.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

/* Radial dark scrim sits between the lights and the text — dark at the
   centre (where the wordmark lives) fading transparent at the edges, so
   the blob glow remains visible as atmosphere while text stays legible. */
.hero-canvas-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(60% 52% at 50% 50%, rgba(8, 8, 8, 0.84) 0%, rgba(8, 8, 8, 0.52) 42%, rgba(8, 8, 8, 0.14) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  width: 100%;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  z-index: 1;
  color: var(--text);
  opacity: 0.4;
  animation: hero-bounce 2s ease-in-out infinite;
}

@keyframes hero-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-indicator,
  .event-card-vinyl-overlay .vinyl-svg,
  .coming-up-vinyl-overlay .vinyl-svg {
    animation: none;
  }

  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* Scroll-triggered reveal animations (Intersection Observer adds
   .reveal-visible once an element enters the viewport — see scroll-reveal.js).
   Elements start invisible/offset so the page feels alive as you scroll,
   rather than rendering everything flat on load. */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > .reveal:nth-child(2) {
  transition-delay: 70ms;
}

.reveal-stagger > .reveal:nth-child(3) {
  transition-delay: 140ms;
}

.reveal-stagger > .reveal:nth-child(4) {
  transition-delay: 210ms;
}

.reveal-stagger > .reveal:nth-child(5) {
  transition-delay: 280ms;
}

.reveal-stagger > .reveal:nth-child(6) {
  transition-delay: 350ms;
}

.reveal-stagger > .reveal:nth-child(n + 7) {
  transition-delay: 420ms;
}

/* A soft "chapter break" between sections — a gradient fade rather than a
   hard rule, so the page reads as distinct sections without flat dividers. */
.section-divider {
  height: 1px;
  margin: var(--space-2xl) 0;
  background: var(--rule);
}

.hero-eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-md);
}

.hero-headline {
  font-family: "Inter", sans-serif;
  font-size: clamp(3.5rem, 13vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  margin: 0;
}

.hero-tagline {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--text-muted);
  opacity: 0.8;
  margin: var(--space-md) 0 0;
}

/* Pill search bar: frosted glass container + solid violet Search button.
   Pattern from Magic MCP Hero 1 (bg-[#1c1528] rounded-full + input) adapted
   to vanilla CSS with glassmorphism surface from ui-ux-pro-max guidance. */
.hero-search {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 580px;
  margin: var(--space-xl) auto 0;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.35rem 0.35rem 0.35rem 1.4rem;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.hero-search:focus-within {
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14), 0 16px 40px -16px rgba(139, 92, 246, 0.22);
}

.hero-search-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: rgba(240, 240, 240, 0.45);
  margin-right: 0.65rem;
}

.hero-search input[type="text"] {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.65rem 0;
  font-size: 1rem;
  color: var(--text);
  min-width: 0;
}

.hero-search input[type="text"]::placeholder {
  color: rgba(240, 240, 240, 0.38);
}

.hero-search input[type="text"]:focus {
  box-shadow: none;
}

.hero-search-btn {
  flex-shrink: 0;
  background: var(--accent);
  color: #080808;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: filter 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  white-space: nowrap;
}

.hero-search-btn:hover {
  filter: brightness(1.12);
  box-shadow: 0 4px 16px -4px rgba(139, 92, 246, 0.5);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  margin: 0 0 var(--space-lg);
}

.section-header-text {
  display: block;
}

.section-eyebrow {
  display: block;
  margin: 0 0 var(--space-xs);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0;
}

.section-subtitle {
  margin: var(--space-xs) 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #cccccc;
  transition: color 200ms ease;
}

.view-all-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.about-us {
  max-width: 36rem;
  margin: var(--space-xl) auto 0;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(139, 92, 246, 0.15);
}

/* On its own page (.about-us directly after a .page-header, rather than
   after the homepage hero), the separator/extra top spacing isn't needed —
   the page header already provides that visual break. */
.page-header + .about-us {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.home-slogan {
  font-family: "Clash Display", sans-serif;
  margin: var(--space-sm) 0 0;
  text-align: center;
  color: #999999;
  font-size: 0.9rem;
  font-weight: 400;
}

.about-us p {
  color: #cccccc;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 var(--space-md);
}

.about-us p:last-child {
  margin-bottom: 0;
}

/* Featured Event: a full-bleed editorial spotlight for the soonest upcoming
   event — a magazine-cover moment, not another card in a grid. */
.featured-event {
  margin-top: var(--space-xl);
}

.featured-event-link {
  position: relative;
  display: block;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  color: var(--text);
  transition: border-color 250ms ease, box-shadow 250ms ease;
}

.featured-event-link:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-glow), 0 24px 60px -24px var(--accent-glow);
  text-decoration: none;
}

.featured-event-media {
  position: relative;
  width: 100%;
  height: 520px;
  background: #0d0d0d;
  overflow: hidden;
}

.featured-event-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms ease;
}

.featured-event-link:hover .featured-event-media img {
  transform: scale(1.05);
}

.featured-event-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 6, 14, 0.96) 0%, rgba(8, 6, 14, 0.55) 45%, transparent 78%);
}

.featured-event-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: var(--space-xl);
}

.featured-event-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: "Clash Display", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.featured-event-title {
  font-size: clamp(1.9rem, 4.2vw, 3.25rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 var(--space-sm);
  max-width: 40rem;
}

.featured-event-meta {
  font-size: 1.05rem;
  font-weight: 500;
  color: #dddddd;
  margin: 0 0 var(--space-lg);
}

.featured-event-cta {
  display: inline-flex;
}

@media (max-width: 700px) {
  .featured-event-media {
    height: 380px;
  }

  .featured-event-content {
    padding: var(--space-lg);
  }
}

.explore {
  margin-top: var(--space-xl);
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
}

.explore-card {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--hairline);
  padding: var(--space-md);
  color: var(--text);
  /* No imagery and no off-palette hues — just the dark card surface with a
     violet radial glow, positioned differently per card for variety. */
  background: radial-gradient(circle at 25% 20%, rgba(139, 92, 246, 0.4), transparent 60%), var(--bg-card);
  transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}

.explore-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 60%);
}

.explore-card-festivals {
  background: radial-gradient(circle at 75% 25%, rgba(139, 92, 246, 0.36), transparent 60%), var(--bg-card);
}
.explore-card-genres {
  background: radial-gradient(circle at 30% 75%, rgba(139, 92, 246, 0.32), transparent 60%), var(--bg-card);
}
.explore-card-artists {
  background: radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.38), transparent 60%), var(--bg-card);
}
.explore-card-trip {
  background: radial-gradient(circle at 85% 50%, rgba(139, 92, 246, 0.35), transparent 65%), var(--bg-card);
  grid-column: 1 / -1;
  aspect-ratio: auto;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
}

.explore-card-trip-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.explore-card-trip-arrow {
  position: relative;
  z-index: 1;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  transition: transform 250ms ease;
}

.explore-card-trip:hover .explore-card-trip-arrow {
  transform: translateX(4px);
}

.explore-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-glow), 0 12px 32px -12px var(--accent-glow);
  transform: translateY(-2px);
  text-decoration: none;
}

.explore-eyebrow {
  position: relative;
  z-index: 1;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.explore-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.95rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
}

.coming-up {
  margin-top: var(--space-xl);
}

.coming-up-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.coming-up-card {
  position: relative;
}

.coming-up-card-link {
  display: block;
  color: var(--text);
}

.coming-up-card-link:hover {
  text-decoration: none;
}

.coming-up-save {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
}

.coming-up-image {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin-bottom: var(--space-md);
  background: #0d0d0d;
  transition: border-color 250ms ease, box-shadow 250ms ease;
}

.coming-up-card:hover .coming-up-image {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-glow), 0 16px 40px -16px var(--accent-glow);
}

.coming-up-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(8, 6, 14, 0.75) 0%, transparent 55%);
  pointer-events: none;
}

.coming-up-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

.coming-up-card:hover .coming-up-image img {
  transform: scale(1.05);
}

.coming-up-vinyl-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 8, 16, 0);
  opacity: 0;
  transition: opacity 250ms ease, background 250ms ease;
  pointer-events: none;
}

.coming-up-card:hover .coming-up-vinyl-overlay {
  opacity: 1;
  background: rgba(10, 8, 16, 0.55);
}

.coming-up-vinyl-overlay .vinyl-svg {
  width: 96px;
  height: 96px;
  color: var(--accent);
  filter: drop-shadow(0 0 18px var(--accent-glow)) drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6));
  animation: vinyl-spin 9s linear infinite;
  animation-play-state: paused;
}

.coming-up-card:hover .coming-up-vinyl-overlay .vinyl-svg {
  animation-play-state: running;
}

.coming-up-date {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(4px);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.coming-up-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0 0 var(--space-xs);
  transition: color 200ms ease;
}

.coming-up-card:hover .coming-up-title {
  color: var(--accent);
}

.coming-up-meta {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Simple tag list pages (genres, artists) */

.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tag-list li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.tag-list-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 0.85rem var(--space-md);
  color: var(--text);
  font-weight: 500;
  transition: border-color 200ms ease, color 200ms ease;
}

.tag-list-item:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.tag-list-count {
  color: #888888;
  font-weight: 800;
  font-size: 0.85rem;
}

/* Genres index: a wrapped pill/chip grid (tag-cloud feel) rather than a
   stack of full-width rows — natural width variation from differing text
   lengths already gives it visual rhythm without extra logic. */
.genre-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.genre-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease,
    box-shadow 200ms ease;
}

.genre-pill:hover {
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -8px var(--accent-glow);
  text-decoration: none;
}

.genre-pill-count {
  background: rgba(139, 92, 246, 0.22);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
}

/* Visitor accounts / follow feature */

.navbar-group {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-left: var(--space-md);
  border-left: 1px solid rgba(139, 92, 246, 0.3);
}

.follow-form {
  display: inline-flex;
  flex-shrink: 0;
}

.follow-btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.follow-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

.follow-btn-following {
  background: var(--accent);
  color: var(--bg);
}

.follow-btn-following:hover {
  background: transparent;
  color: var(--accent);
}

.follow-link {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: #888888;
  white-space: nowrap;
}

.follow-link:hover {
  color: var(--accent);
}

.top-artists {
  margin-top: var(--space-xl);
}

.top-artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
}

.top-artist-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: var(--space-md);
  transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}

.top-artist-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-glow), 0 12px 32px -12px var(--accent-glow);
  transform: translateY(-2px);
}

.top-artist-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
}

.top-artist-name:hover {
  color: var(--accent);
}

.top-artist-count {
  font-size: 0.8rem;
  color: #aaaaaa;
  margin-bottom: var(--space-xs);
}

/* Popular Cities: the same city list already computed for the footer,
   surfaced as its own homepage section. */
.popular-cities-section {
  margin-top: var(--space-xl);
}

.popular-cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-md);
}

.popular-city-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: var(--space-lg) var(--space-md);
  color: var(--text);
  text-align: center;
  gap: 0.3rem;
  transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease, color 250ms ease;
}

.popular-city-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-glow), 0 12px 32px -12px var(--accent-glow);
  transform: translateY(-2px);
  text-decoration: none;
}

.popular-city-name {
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--text);
  transition: color 250ms ease;
}

.popular-city-card:hover .popular-city-name {
  color: var(--accent);
}

.popular-city-indigenous {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.followed-events {
  margin-top: var(--space-xl);
}

.follow-teaser {
  margin-top: var(--space-xl);
}

.follow-teaser-text {
  color: #cccccc;
  font-size: 0.95rem;
}

/* Save (wishlist) button */

.save-form {
  display: inline-flex;
}

.save-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.5);
  background: rgba(18, 18, 18, 0.75);
  backdrop-filter: blur(4px);
  color: var(--text);
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.save-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.08);
  text-decoration: none;
}

.save-btn-saved {
  color: var(--accent);
  border-color: var(--accent);
}

.save-btn-link {
  font-size: 0;
}

/* Visitor dashboard */

.dashboard-section {
  margin-top: var(--space-xl);
}

/* Trip planner */

.trip-form-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.trip-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.trip-form .form-field {
  flex: 1;
  min-width: 160px;
  margin-bottom: 0;
}

.trip-form-submit {
  flex-shrink: 0;
}

/* Compact trip form — shown once results exist, replacing the full-height hero */
.trip-compact {
  padding-top: var(--space-lg);
  padding-bottom: 3rem;
}
.trip-compact-title {
  font: 600 clamp(1.6rem, 4vw, 2.2rem)/1.05 'Space Grotesk', sans-serif;
  color: var(--text);
  margin: 0.25rem 0 1.25rem;
}
.trip-compact-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 2.5rem;
}
.trip-compact-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1 1 170px;
  min-width: 0;
}
.trip-compact-field .hf-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}
.trip-compact-form .hf-btn-primary {
  flex: 0 0 auto;
  padding: 14px 28px;
}
@media (max-width: 560px) {
  .trip-compact-field { flex: 1 1 100%; }
  .trip-compact-form .hf-btn-primary { width: 100%; }
}

.trip-plan-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(139, 92, 246, 0.04));
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: 0 0 0 1px var(--accent-glow), 0 16px 40px -16px var(--accent-glow);
}

.trip-plan-title {
  margin: 0 0 var(--space-xs);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trip-plan-subtitle {
  margin: 0 0 var(--space-lg);
  color: #cccccc;
  font-size: 0.95rem;
}

.trip-plan-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-md);
}

.trip-plan-btn {
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
}

/* Events page: date filters + map view entry point */

.events-page-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.date-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin: var(--space-md) 0 var(--space-lg);
}

.date-filter-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.date-filter-link {
  display: inline-block;
  font-weight: 500;
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 999px;
  color: #cccccc;
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
}

.date-filter-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.date-filter-link-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 700;
}

.date-filter-link-active:hover {
  color: var(--bg);
}

/* ── City / metro filter bar ─────────────────────────────────────────────── */
.city-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.city-filter-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-weight: 500;
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #cccccc;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.city-filter-link:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  text-decoration: none;
}

.city-filter-link-active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-weight: 700;
}

.city-filter-link-active:hover {
  color: #ffffff;
}

.city-filter-count {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.6;
}

/* ── Age restriction filter bar ─────────────────────────────────────────── */
.age-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.age-filter-link {
  display: inline-block;
  font-weight: 500;
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: 999px;
  color: #cccccc;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.age-filter-link:hover {
  border-color: #D97706;
  color: #D97706;
  text-decoration: none;
}

.age-filter-link-active {
  background: #D97706;
  border-color: #D97706;
  color: #1C1002;
  font-weight: 700;
}

.age-filter-link-active:hover {
  color: #1C1002;
}

.date-filter-form {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.date-filter-form input[type="date"] {
  width: auto;
  padding: 0.45rem 0.6rem;
  font-size: 0.85rem;
}

.date-filter-form-sep {
  color: #888888;
}

.date-filter-form-submit {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

/* Map view */

.map-container {
  height: 85vh;
  min-height: 560px;
  border-radius: 2px;
  border: 1px solid var(--hairline);
  overflow: hidden;
  margin-top: var(--space-lg);
}

/* Spotify signup payoff — the "here's your scene, already built" reveal. */
.scene-hero-inner {
  text-align: center;
  align-items: center;
}
.scene-count {
  margin: 4px 0 0;
  line-height: 1;
}
.scene-count strong {
  font-size: clamp(64px, 12vw, 120px);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  text-shadow: 0 0 42px var(--accent-glow);
}
.scene-title {
  max-width: 22ch;
  margin: 8px auto 0;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  line-height: 1.15;
  text-wrap: balance;
}
.scene-sub {
  max-width: 46ch;
  margin: 14px auto 0;
  color: var(--text-muted);
}
.scene-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}
@media (prefers-reduced-motion: no-preference) {
  .scene-count strong { animation: sceneCountIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .scene-title { animation: sceneFadeUp 0.6s ease 0.12s both; }
  .scene-sub { animation: sceneFadeUp 0.6s ease 0.2s both; }
  .scene-actions { animation: sceneFadeUp 0.6s ease 0.28s both; }
}
@keyframes sceneCountIn {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes sceneFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Microcopy selling the Spotify signup hook (under the button). */
.hf-sso-hint {
  margin: -4px 0 2px;
  padding-left: 2px;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--text-muted);
}

/* Connect-Spotify card on account settings. */
.settings-spotify-copy {
  max-width: 52ch;
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.settings-spotify-btn { max-width: 300px; }

/* Logged-out map teaser: persistent sign-up CTA floating over the map. The map
   tiles are always dark (CARTO), so the dark glass panel works in both themes. */
.map-teaser-wrap { position: relative; }

.map-teaser-cta {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 1200; /* above Leaflet panes/controls */
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  max-width: min(92%, 640px);
  padding: 13px 16px 13px 20px;
  background: rgba(18, 18, 22, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--accent);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--accent-glow);
  color: #d8d8de;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.35;
}
.map-teaser-cta:hover { border-color: var(--accent-strong); }
.map-teaser-cta-text { flex: 1 1 auto; }
.map-teaser-cta-text strong { color: #fff; font-weight: 600; }
.map-teaser-cta-btn {
  flex: 0 0 auto;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 9px;
  white-space: nowrap;
}
.map-teaser-cta:hover .map-teaser-cta-btn { background: var(--accent-strong); }

@media (max-width: 560px) {
  .map-teaser-cta {
    flex-direction: column;
    gap: 10px;
    bottom: 14px;
    padding: 14px;
    text-align: center;
  }
  .map-teaser-cta-btn { width: 100%; text-align: center; padding: 11px; }
}

/* Map pin popup — a light card in BOTH themes. It floats over the always-dark
   CARTO map, so a white card with black text reads cleanly in dark mode too;
   the violet CTA keeps it on-brand. Selectors are extra-specific because
   Leaflet's own stylesheet loads after this file and would otherwise win. */
.leaflet-popup-content-wrapper {
  background: #ffffff;
  color: #0a0a12;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--accent-glow);
}
.leaflet-popup-tip {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: none;
}
.leaflet-popup-content {
  margin: 14px 30px 14px 18px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(10, 10, 18, 0.62);
}
.leaflet-popup-content strong {
  display: block;
  margin-bottom: 4px;
  color: #0a0a12;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
/* Beat Leaflet's `.leaflet-container a` (same specificity, loaded later). */
.leaflet-popup .leaflet-popup-content a {
  display: inline-block;
  margin-top: 8px;
  color: #7c3aed;
  font-weight: 600;
  text-decoration: none;
}
.leaflet-popup .leaflet-popup-content a:hover {
  color: #6d28d9;
  text-decoration: underline;
}
.leaflet-popup-close-button { color: rgba(10, 10, 18, 0.5) !important; }
.leaflet-popup-close-button:hover { color: #0a0a12 !important; }

.leaflet-control-zoom a {
  background-color: var(--bg-card) !important;
  color: var(--text) !important;
  border-color: rgba(139, 92, 246, 0.4) !important;
}

.leaflet-control-zoom a:hover {
  background-color: var(--accent) !important;
  color: var(--bg) !important;
}

.leaflet-control-attribution {
  background: rgba(26, 26, 26, 0.85) !important;
  color: #aaaaaa !important;
}

.leaflet-control-attribution a {
  color: #cccccc !important;
}

/* Event detail: share feedback */

.share-feedback {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity 200ms ease;
}

.share-feedback-visible {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOME PAGE — HF-PREFIX DESIGN SYSTEM (DC.html spec)
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes hf-d1 {
  0%,100%{transform:translate(0,0) scale(1)}
  25%{transform:translate(340px,170px) scale(1.3)}
  50%{transform:translate(460px,-220px) scale(1.45)}
  75%{transform:translate(140px,-130px) scale(1.12)}
}
@keyframes hf-d2 {
  0%,100%{transform:translate(0,0) scale(1.12)}
  25%{transform:translate(-380px,-150px) scale(.88)}
  50%{transform:translate(-500px,260px) scale(1.35)}
  75%{transform:translate(-160px,170px) scale(1)}
}
@keyframes hf-d3 {
  0%,100%{transform:translate(0,0) scale(1)}
  50%{transform:translate(-300px,-220px) scale(1.28)}
}
@keyframes hf-d4 {
  0%,100%{transform:translate(0,0) scale(1)}
  33%{transform:translate(-160px,90px) scale(1.12)}
  66%{transform:translate(120px,150px) scale(.94)}
}
@keyframes hf-d5 {
  0%,100%{transform:translate(0,0) scale(1.05)}
  50%{transform:translate(260px,60px) scale(.88)}
}
@keyframes hf-pulse {
  0%,100%{opacity:.5}
  50%{opacity:1}
}
@keyframes hf-rot {
  from{transform:rotate(0)}
  to{transform:rotate(360deg)}
}
@keyframes hf-bob {
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(8px)}
}

/* Hero */

.hf-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-left: calc(50% - 50vw);
  width: 100vw;
  /* Reserve room at the bottom for the scroll chevron so tall (logged-out)
     hero content is lifted clear of it instead of colliding. */
  padding-bottom: 84px;
}

/* Land the scroll-to target below the fixed navbar, not under it. */
#hf-featured { scroll-margin-top: 88px; }

.hf-lights {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

[data-light] { will-change: transform; }

.hf-light-rot {
  position: absolute;
  top: -180px; left: 50%;
  width: 840px; height: 840px; margin-left: -420px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,rgba(139,92,246,.22),rgba(99,52,196,.05),rgba(160,120,255,.2),rgba(99,52,196,.05),rgba(139,92,246,.22));
  filter: blur(90px);
  animation: hf-rot 60s linear infinite;
  opacity: .7;
}

.hf-light-1 {
  position: absolute;
  top: -120px; left: 24%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(139,92,246,.55),transparent 68%);
  filter: blur(60px);
  animation: hf-d1 14s ease-in-out infinite, hf-pulse 11s ease-in-out infinite;
}

.hf-light-2 {
  position: absolute;
  bottom: -220px; right: 20%;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(124,58,237,.42),transparent 70%);
  filter: blur(66px);
  animation: hf-d2 17s ease-in-out infinite, hf-pulse 14s ease-in-out infinite 2s;
}

.hf-light-3 {
  position: absolute;
  top: 30%; right: 30%;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(160,120,255,.32),transparent 70%);
  filter: blur(54px);
  animation: hf-d3 19s ease-in-out infinite;
}

.hf-light-4 {
  position: absolute;
  top: 18%; left: 6%;
  width: 440px; height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(110,70,220,.34),transparent 70%);
  filter: blur(60px);
  animation: hf-d4 26s ease-in-out infinite, hf-pulse 9s ease-in-out infinite 1s;
}

.hf-light-5 {
  position: absolute;
  bottom: -40px; left: 40%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(150,100,255,.26),transparent 72%);
  filter: blur(62px);
  animation: hf-d5 24s ease-in-out infinite;
}

.hf-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(56% 44% at 50% 50%,rgba(8,8,8,.8),rgba(8,8,8,.34) 60%,transparent 82%);
  pointer-events: none;
  z-index: 1;
}

.hf-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  padding: 0 32px;
}

.hf-hero-eyebrow {
  font: 500 12px 'Clash Display',sans-serif;
  letter-spacing: .36em;
  color: #8B5CF6;
  text-transform: uppercase;
}

.hf-wordmark {
  font: 900 clamp(80px,16vw,240px)/.86 'Inter',sans-serif;
  letter-spacing: -.035em;
  margin: 26px 0 0;
  color: #F0F0F0;
}

.hf-tagline {
  font: 600 17px 'Clash Display',sans-serif;
  letter-spacing: .42em;
  color: rgba(240,240,240,.82);
  text-transform: uppercase;
  margin: 30px 0 0;
}

.hf-sub {
  font: 400 17px/1.6 'Inter',sans-serif;
  max-width: 520px;
  margin: 14px auto 0;
  color: rgba(240,240,240,.6);
}

.hf-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 600px;
  margin: 36px auto 0;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 46px;
  padding: 9px 9px 9px 24px;
}

.hf-search-icon {
  color: rgba(240,240,240,.4);
  font-size: 16px;
  flex-shrink: 0;
}

/* input[type="text"] selector needed to out-rank the global form input rule */
input[type="text"].hf-search-input,
.hf-search-input {
  flex: 1;
  width: auto;
  background: none;
  border: none;
  border-radius: 0;
  padding: 6px 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  font: 400 15px 'Inter',sans-serif;
  color: #F0F0F0;
  min-width: 0;
}

.hf-search-input::placeholder { color: rgba(240,240,240,.42); }
input[type="text"].hf-search-input:focus,
.hf-search-input:focus { box-shadow: none; border: none; }

.hf-search-btn {
  background: #8B5CF6;
  color: #fff;
  font: 600 13px 'Inter',sans-serif;
  letter-spacing: .04em;
  padding: 13px 28px;
  border-radius: 38px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: filter .2s;
}

.hf-search-btn:hover { filter: brightness(1.12); }

/* ── Hero signup CTA (logged-out) — the glowing purple button that replaces
   the search bar to drive signups ─────────────────────────────────────── */
.hf-hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  max-width: 440px;
  margin: 36px auto 0;
  padding: 18px 40px;
  border-radius: 46px;
  text-decoration: none;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  border: 1px solid rgba(196,181,253,.45);
  box-shadow: 0 0 0 rgba(139,92,246,.6), 0 10px 40px rgba(139,92,246,.35);
  animation: hf-cta-pulse 2.8s ease-in-out infinite;
  transition: transform .18s ease, filter .18s ease;
}
.hf-hero-cta:hover { transform: translateY(-2px); filter: brightness(1.08); }
.hf-hero-cta:active { transform: translateY(0); }
.hf-hero-cta-label { font: 700 19px 'Space Grotesk','Inter',sans-serif; letter-spacing: .01em; }
.hf-hero-cta-sub { font: 500 12.5px 'Inter',sans-serif; color: rgba(255,255,255,.82); }

@keyframes hf-cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139,92,246,.0), 0 10px 40px rgba(139,92,246,.35); }
  50%      { box-shadow: 0 0 34px 4px rgba(139,92,246,.55), 0 10px 44px rgba(139,92,246,.45); }
}
@media (prefers-reduced-motion: reduce) {
  .hf-hero-cta { animation: none; }
}

.hf-hero-cta-login {
  display: block;
  margin: 16px auto 0;
  text-align: center;
  font: 500 13px 'Inter',sans-serif;
  color: rgba(240,240,240,.6);
  text-decoration: none;
}
.hf-hero-cta-login:hover { color: var(--accent); }
[data-theme="light"] .hf-hero-cta-login { color: rgba(10,10,18,.55); }

/* ── Events signup wall (logged-out) ──────────────────────────────────── */
.events-gate {
  position: relative;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 16px;
}
/* Gated events stay in the DOM (crawlers index them) but are clipped, blurred
   and non-interactive behind the veil. */
.events-gate-locked {
  max-height: 300px;
  overflow: hidden;
  filter: blur(6px) saturate(.85);
  opacity: .5;
  pointer-events: none;
  user-select: none;
}
.events-gate-veil {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 16px 8px;
  background: linear-gradient(to bottom, transparent 0%, var(--bg) 62%);
}
.events-gate-card {
  text-align: center;
  max-width: 460px;
  padding: 8px 8px 24px;
}
.events-gate-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #C4B5FD;
  background: rgba(139,92,246,.16);
  border: 1px solid rgba(139,92,246,.4);
  margin-bottom: 14px;
}
.events-gate-title {
  font: 700 22px 'Space Grotesk','Inter',sans-serif;
  color: var(--text);
  margin: 0 0 8px;
}
.events-gate-sub {
  font: 400 14px 'Inter',sans-serif;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 auto 20px;
  max-width: 400px;
}
.events-gate-cta {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 40px;
  text-decoration: none;
  color: #fff;
  font: 700 15px 'Space Grotesk','Inter',sans-serif;
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  border: 1px solid rgba(196,181,253,.45);
  box-shadow: 0 10px 34px rgba(139,92,246,.4);
  transition: transform .18s ease, filter .18s ease;
}
.events-gate-cta:hover { transform: translateY(-2px); filter: brightness(1.08); }
.events-gate-login {
  margin: 14px 0 0;
  font: 500 13px 'Inter',sans-serif;
  color: var(--text-muted);
}
.events-gate-login a { color: var(--accent); text-decoration: none; }
.events-gate-login a:hover { text-decoration: underline; }

.hf-bob {
  position: absolute;
  bottom: 16px;
  left: 50%;
  margin-left: -22px;               /* half the 44px hit area — centers it */
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: rgba(240,240,240,.4);
  text-decoration: none;
  cursor: pointer;
  animation: hf-bob 2.4s ease-in-out infinite;
  user-select: none;
  z-index: 3;
  transition: color .18s;
}
.hf-bob:hover { color: var(--accent); }

/* Chapters */

.hf-rule {
  margin-left: calc(50% - 50vw);
  width: 100vw;
  height: 1px;
  background: rgba(139,92,246,.22);
}

.hf-chapter {
  margin-left: calc(50% - 50vw);
  width: 100vw;
}

.hf-chapter-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 32px;
}

.hf-chapter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 34px;
}

.hf-eyebrow {
  font: 500 13px 'Clash Display',sans-serif;
  letter-spacing: .22em;
  color: #8B5CF6;
  text-transform: uppercase;
}

.hf-view-all {
  font: 500 12px 'Clash Display',sans-serif;
  letter-spacing: .12em;
  color: rgba(240,240,240,.5);
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}

.hf-view-all:hover { color: #8B5CF6; text-decoration: none; }

.hf-section-title {
  font: 700 40px/1.05 'Space Grotesk',sans-serif;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin: 10px 0 34px;
}

.hf-empty {
  color: rgba(240,240,240,.4);
  font: 400 14px 'Inter',sans-serif;
}

/* 01 Featured */

.hf-featured {
  display: grid;
  grid-template-columns: 1.32fr .68fr;
  gap: 28px;
  align-items: stretch;
}

.hf-featured-img {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 420px;
  display: block;
  text-decoration: none;
  background: repeating-linear-gradient(45deg,#141417,#141417 12px,#1b1b21 12px,#1b1b21 24px);
}

.hf-featured-img > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hf-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,transparent 30%,rgba(8,8,8,.85) 100%);
}

.hf-featured-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 80% 12%,rgba(139,92,246,.4),transparent 60%);
}

.hf-featured-badge {
  position: absolute;
  top: 18px; left: 18px;
  background: #8B5CF6;
  color: #fff;
  font: 600 10px 'Clash Display',sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 6px;
}

.hf-featured-copy {
  position: absolute;
  left: 26px; bottom: 24px; right: 26px;
}

.hf-featured-title {
  font: 700 46px/.96 'Space Grotesk',sans-serif;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #F0F0F0;
}

.hf-featured-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 16px 0 0;
  font: 400 14px 'Inter',sans-serif;
  color: rgba(240,240,240,.74);
}

.hf-dot { color: #8B5CF6; }

.hf-featured-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  padding: 34px;
}

.hf-panel-label {
  font: 500 11px 'Clash Display',sans-serif;
  letter-spacing: .2em;
  color: #8B5CF6;
  text-transform: uppercase;
}

.hf-panel-lineup {
  font: 600 20px/1.5 'Inter',sans-serif;
  color: #F0F0F0;
  margin: 14px 0 0;
}

.hf-panel-desc {
  font: 400 14px/1.6 'Inter',sans-serif;
  color: rgba(240,240,240,.58);
  margin: 18px 0 28px;
}

.hf-panel-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hf-btn-primary {
  background: #8B5CF6;
  color: #fff;
  text-align: center;
  font: 600 14px 'Inter',sans-serif;
  padding: 14px;
  border-radius: 9px;
  text-decoration: none;
  display: block;
  transition: filter .2s;
}

.hf-btn-primary:hover { filter: brightness(1.1); text-decoration: none; color: #fff; }

.hf-btn-secondary {
  border: 1px solid rgba(255,255,255,.18);
  color: #F0F0F0;
  text-align: center;
  font: 600 14px 'Inter',sans-serif;
  padding: 14px;
  border-radius: 9px;
  text-decoration: none;
  display: block;
  transition: border-color .2s, background .2s;
}

.hf-btn-secondary:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.05); text-decoration: none; color: #F0F0F0; }

/* 02 Genre tiles */

.hf-genre-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}

.hf-genre-tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 170px;
  display: block;
  text-decoration: none;
  background: repeating-linear-gradient(45deg,#141417,#141417 11px,#1b1b21 11px,#1b1b21 22px);
  transition: transform .2s;
}

.hf-genre-tile:hover { text-decoration: none; transform: translateY(-2px); }

.hf-genre-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,rgba(139,92,246,.32),transparent 60%);
}

/* Genre-specific accent colours */
.hf-genre-tile--house::before            { background: linear-gradient(160deg,rgba(139,92,246,.42),transparent 65%); }
.hf-genre-tile--tech-house::before       { background: linear-gradient(160deg,rgba(6,182,212,.36),transparent 65%); }
.hf-genre-tile--deep-house::before       { background: linear-gradient(160deg,rgba(79,70,229,.44),transparent 65%); }
.hf-genre-tile--techno::before           { background: linear-gradient(160deg,rgba(59,130,246,.38),transparent 65%); }
.hf-genre-tile--melodic-techno::before   { background: linear-gradient(160deg,rgba(99,102,241,.40),transparent 65%); }
.hf-genre-tile--minimal::before          { background: linear-gradient(160deg,rgba(148,163,184,.28),transparent 65%); }
.hf-genre-tile--drum--bass::before,
.hf-genre-tile--drum-bass::before        { background: linear-gradient(160deg,rgba(245,158,11,.36),transparent 65%); }
.hf-genre-tile--bass::before             { background: linear-gradient(160deg,rgba(239,68,68,.34),transparent 65%); }
.hf-genre-tile--disco::before            { background: linear-gradient(160deg,rgba(234,179,8,.34),transparent 65%); }
.hf-genre-tile--garage::before           { background: linear-gradient(160deg,rgba(16,185,129,.34),transparent 65%); }
.hf-genre-tile--trance::before           { background: linear-gradient(160deg,rgba(217,70,239,.36),transparent 65%); }
.hf-genre-tile--club-night::before       { background: linear-gradient(160deg,rgba(139,92,246,.32),transparent 65%); }
.hf-genre-tile--festival::before         { background: linear-gradient(160deg,rgba(251,146,60,.36),transparent 65%); }
.hf-genre-tile--experimental::before     { background: linear-gradient(160deg,rgba(168,85,247,.34),transparent 65%); }
.hf-genre-tile--breaks::before           { background: linear-gradient(160deg,rgba(20,184,166,.34),transparent 65%); }
.hf-genre-tile--jungle::before           { background: linear-gradient(160deg,rgba(132,204,22,.32),transparent 65%); }

.hf-genre-tile-name {
  position: absolute;
  left: 20px;
  bottom: 36px;
  font: 700 24px 'Space Grotesk',sans-serif;
  text-transform: uppercase;
  color: #F0F0F0;
}

.hf-genre-tile-count {
  position: absolute;
  left: 20px;
  bottom: 18px;
  font: 500 12px 'Inter',sans-serif;
  color: rgba(240,240,240,.6);
}

/* 03 Top Artists */

.hf-artists-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.hf-artist {
  text-align: center;
  text-decoration: none;
  display: block;
  cursor: pointer;
}

.hf-artist:hover { text-decoration: none; }

/* Avatar circle — image or gradient fallback */
.hf-artist-avatar {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #8B5CF6, #241638);
  margin-bottom: 12px;
  overflow: hidden;
  /* ring appears on hover via box-shadow (avoids layout shift) */
  box-shadow: 0 0 0 0px #8B5CF6;
  transition: transform .2s ease-out, box-shadow .2s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hf-artist-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Initials fallback — centered bold text in violet gradient circle */
.hf-artist-initials {
  font: 700 clamp(14px, 3vw, 22px) 'Inter', sans-serif;
  color: rgba(255,255,255,.92);
  letter-spacing: .04em;
  user-select: none;
}

/* Hover: scale + violet ring (ui-ux-pro-max: scale-feedback 1.05, duration 150-300ms) */
.hf-artist:hover .hf-artist-avatar {
  transform: scale(1.05);
  box-shadow: 0 0 0 2px #8B5CF6;
}

@media (prefers-reduced-motion: reduce) {
  .hf-artist-avatar { transition: none; }
}

.hf-artist-name {
  font: 600 14px 'Inter',sans-serif;
  color: #F0F0F0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hf-artist-meta {
  font: 400 11px 'Inter',sans-serif;
  color: rgba(240,240,240,.5);
  margin-top: 2px;
}

/* 04 Popular Cities */

.hf-cities-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}

.hf-city-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  padding: 20px 22px;
  text-decoration: none;
  transition: background .2s;
}

.hf-city-card:hover { background: rgba(255,255,255,.055); text-decoration: none; }

.hf-city-name {
  font: 600 18px 'Inter',sans-serif;
  color: #F0F0F0;
}

.hf-city-indigenous {
  font: 400 12px 'Inter',sans-serif;
  color: rgba(240,240,240,.5);
  margin-top: 2px;
}

.hf-city-count {
  font: 500 14px 'Space Grotesk',sans-serif;
  color: #8B5CF6;
}

/* 05 Coming Up */

.hf-coming-list { margin-top: 8px; }

.hf-coming-row {
  display: grid;
  grid-template-columns: 120px 1fr 220px 120px;
  gap: 20px;
  align-items: center;
  padding: 20px 8px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.hf-coming-row:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }

.hf-coming-date {
  font: 500 12px 'Space Grotesk',sans-serif;
  color: #8B5CF6;
  letter-spacing: .08em;
}

.hf-coming-title {
  font: 700 22px 'Space Grotesk',sans-serif;
  text-transform: uppercase;
  color: #F0F0F0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hf-coming-venue {
  font: 400 14px 'Inter',sans-serif;
  color: rgba(240,240,240,.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hf-tickets-btn {
  justify-self: end;
  border: 1px solid rgba(139,92,246,.6);
  color: #8B5CF6;
  font: 600 12px 'Inter',sans-serif;
  padding: 9px 16px;
  border-radius: 7px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
}

.hf-tickets-btn:hover { background: rgba(139,92,246,.1); text-decoration: none; color: #8B5CF6; }

/* Footer — DC.html single-row */

.hf-footer {
  border-top: 1px solid rgba(139,92,246,.26);
  background: rgba(255,255,255,.02);
}

.hf-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.hf-footer-wordmark {
  font: 800 18px 'Inter',sans-serif;
  color: #F0F0F0;
  text-transform: uppercase;
  text-decoration: none;
}

.hf-footer-wordmark:hover { text-decoration: none; opacity: .85; }
.hf-footer-wordmark span { color: #8B5CF6; }

.hf-footer-nav {
  display: flex;
  gap: 24px;
  font: 500 12.5px 'Clash Display',sans-serif;
  color: rgba(240,240,240,.6);
  letter-spacing: .02em;
}

.hf-footer-nav a {
  color: rgba(240,240,240,.6);
  text-decoration: none;
  transition: color .2s;
}

.hf-footer-nav a:hover { color: #8B5CF6; text-decoration: none; }

.hf-footer-attr {
  font: 400 12px 'Inter',sans-serif;
  color: rgba(240,240,240,.42);
  flex-basis: 100%;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(240,240,240,.07);
}

.hf-footer-founder {
  color: rgba(240,240,240,.72);
  font-weight: 500;
  letter-spacing: .01em;
}

[data-theme="light"] .hf-footer-founder { color: rgba(10,10,18,.62); }
[data-theme="light"] .hf-footer-attr { border-top-color: rgba(10,10,18,.08); }

/* Navbar CTA button — Become a Promoter */

.navbar-cta {
  background: #8B5CF6 !important;
  color: #fff !important;
  padding: 9px 16px !important;
  border-radius: 7px;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: none;
  display: inline-flex !important;
  align-items: center;
  line-height: 1;
}

.navbar-cta:hover {
  background: #7C3AED !important;
  color: #fff !important;
  text-decoration: none;
}

.navbar-cta::after { display: none !important; }
.navbar-cta:hover::after { display: none !important; }

/* Reduced-motion: pause all blob animations */

@media (prefers-reduced-motion: reduce) {
  [data-light] { animation: none !important; }
  .hf-bob { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHARED FORM PRIMITIVES — auth + submit event
   ═══════════════════════════════════════════════════════════════════════════ */

/* Base input/select/textarea */
.hf-input {
  width: 100%;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  padding: 14px 16px;
  color: #F0F0F0;
  font: 400 15px 'Inter', sans-serif;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
  display: block;
}
.hf-input::placeholder { color: rgba(240,240,240,.32); }
.hf-input:focus {
  border-color: #8B5CF6;
  box-shadow: 0 0 0 3px rgba(139,92,246,.2);
  background: rgba(139,92,246,.05);
}
.hf-input--error {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.15) !important;
}

textarea.hf-input { resize: vertical; min-height: 120px; line-height: 1.6; }

/* Styled select — hide native arrow, add custom chevron via wrapper */
.hf-select-wrap { position: relative; }
.hf-select-wrap .hf-input { cursor: pointer; padding-right: 40px; }
select.hf-input option { background: #121214; color: #F0F0F0; }
select.hf-input:invalid { color: rgba(240,240,240,.32); }
.hf-select-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(240,240,240,.5);
  font-size: 10px;
  line-height: 1;
}

/* Bare styled select (no wrapper) — draw our own chevron so appearance:none
   doesn't leave it looking like a plain text box. */
select.hf-select {
  cursor: pointer;
  padding-right: 40px;
  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='%239ca3af' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
select.hf-select optgroup { background: #121214; color: rgba(240,240,240,.55); font-style: normal; }
[data-theme="light"] select.hf-select optgroup { background: #fff; color: rgba(10,10,18,.5); }
[data-theme="light"] select.hf-select option { background: #fff; color: #0a0a12; }

/* Timezone tag next to displayed event times (e.g. "21:00 AEST"). Muted and
   subordinate so the time reads first, but the zone is always explicit. */
.event-tz {
  font-size: .72em;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(240,240,240,.5);
  vertical-align: baseline;
}
[data-theme="light"] .event-tz { color: rgba(10,10,18,.5); }

/* Date/time inputs — dark system picker */
input[type="date"].hf-input,
input[type="time"].hf-input,
input[type="datetime-local"].hf-input { color-scheme: dark; }

/* Field label — Clash Display */
.hf-label {
  font: 500 11px 'Clash Display', sans-serif;
  letter-spacing: .16em;
  color: rgba(240,240,240,.6);
  text-transform: uppercase;
  margin-bottom: 9px;
  display: block;
}
.hf-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.hf-label-row .hf-label { margin-bottom: 0; }

/* Inline field error message */
.hf-field-msg {
  font: 400 12px 'Inter', sans-serif;
  margin-top: 6px;
  display: none;
}
.hf-field-msg--error { color: #EF4444; display: block; }
.hf-field-msg--hint { color: rgba(240,240,240,.4); display: block; }

/* Prefix glyph inside input */
.hf-input-wrap { position: relative; }
.hf-input-prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font: 400 15px 'Inter', sans-serif;
  color: rgba(240,240,240,.32);
  pointer-events: none;
  user-select: none;
}
.hf-input-wrap .hf-input { padding-left: 32px; }
.hf-input-wrap--url .hf-input { padding-left: 44px; }

/* Password show/hide toggle */
.hf-pw-toggle {
  cursor: pointer;
  font: 500 10px 'Inter', sans-serif;
  letter-spacing: .1em;
  color: #8B5CF6;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}
.hf-pw-toggle:hover { color: #A78BFA; }

/* Primary CTA button */
.hf-btn-primary {
  width: 100%;
  background: #8B5CF6;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px;
  font: 600 14px 'Inter', sans-serif;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .18s, box-shadow .18s;
  box-shadow: 0 8px 24px rgba(139,92,246,.32);
  min-height: 50px;
}
.hf-btn-primary:hover { background: #7C3AED; box-shadow: 0 10px 30px rgba(139,92,246,.42); }
.hf-btn-primary:focus-visible {
  outline: 2px solid #8B5CF6;
  outline-offset: 3px;
}

/* Ghost / secondary button */
.hf-btn-ghost {
  display: block;
  text-align: center;
  text-decoration: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.16);
  color: #F0F0F0;
  border-radius: 10px;
  padding: 13px;
  font: 600 13px 'Inter', sans-serif;
  cursor: pointer;
  transition: border-color .18s, background .18s;
  min-height: 46px;
  width: 100%;
}
.hf-btn-ghost:hover {
  border-color: rgba(139,92,246,.6);
  background: rgba(139,92,246,.06);
  text-decoration: none;
  color: #F0F0F0;
}
.hf-btn-ghost:focus-visible { outline: 2px solid #8B5CF6; outline-offset: 3px; }

/* ── Date input — dark color-scheme so the native picker matches the theme ── */
.hf-input--date {
  color-scheme: dark;
}
.hf-input--date::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  cursor: pointer;
  opacity: 0.6;
}
.hf-input--date::-webkit-calendar-picker-indicator:hover { opacity: 1; }

/* ── SSO / OAuth buttons ────────────────────────────────────────────────── */
.hf-sso-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.hf-sso-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: #111111;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  color: #F0F0F0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 150ms ease, border-color 150ms ease;
}
.hf-sso-btn:hover {
  background: #1a1a1a;
  border-color: rgba(255,255,255,.18);
  text-decoration: none;
  color: #F0F0F0;
}
.hf-sso-btn:focus-visible {
  outline: 2px solid #8B5CF6;
  outline-offset: 3px;
}
.hf-sso-btn:active { background: #0d0d0d; }

.hf-sso-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Subtle left-border brand accent — keeps dark palette intact */
.hf-sso-btn--google   { border-left: 3px solid #4285F4; }
.hf-sso-btn--spotify  { border-left: 3px solid #1DB954; }
.hf-sso-btn--facebook { border-left: 3px solid #1877F2; }
.hf-sso-btn--instagram { border-left: 3px solid #E1306C; }

/* oauth_error banner (not-configured / failed state) */
.hf-oauth-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 0.8125rem;
  margin-bottom: 20px;
}

/* Labelled divider */
.hf-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 22px;
}
.hf-divider-line { flex: 1; height: 1px; background: rgba(255,255,255,.1); }
.hf-divider-label {
  font: 500 10px 'Clash Display', sans-serif;
  letter-spacing: .2em;
  color: rgba(240,240,240,.4);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Checkbox row */
.hf-checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.hf-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font: 400 13px 'Inter', sans-serif;
  color: rgba(240,240,240,.6);
}
.hf-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
  background: rgba(255,255,255,.035);
  accent-color: #8B5CF6;
  cursor: pointer;
  flex-shrink: 0;
}
.hf-forgot-link {
  font: 500 13px 'Inter', sans-serif;
  color: #8B5CF6;
  text-decoration: none;
}
.hf-forgot-link:hover { color: #A78BFA; }

/* ═══════════════════════════════════════════════════════════════════════════
   AUTH SPLIT LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */

/* Break out of .container to fill viewport width */
.hf-auth-wrap {
  margin-left: calc(50% - 50vw);
  width: 100vw;
  min-height: calc(100vh - 57px);
  display: flex;
}

/* Brand panel — left 65% */
.hf-brand-panel {
  position: relative;
  flex: 0 0 65%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 46px;
  border-right: 1px solid rgba(255,255,255,.07);
}

.hf-brand-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 40% 50%, rgba(8,8,8,.7), rgba(8,8,8,.3) 62%, transparent 84%);
  pointer-events: none;
  z-index: 1;
}

.hf-brand-eyebrow {
  position: relative;
  z-index: 2;
  font: 500 11px 'Clash Display', sans-serif;
  letter-spacing: .32em;
  color: #8B5CF6;
  text-transform: uppercase;
}

.hf-brand-copy { position: relative; z-index: 2; }

.hf-brand-wordmark {
  font: 900 64px/.9 'Inter', sans-serif;
  letter-spacing: -.03em;
  color: #F0F0F0;
}

.hf-brand-tagline {
  font: 600 13px 'Clash Display', sans-serif;
  letter-spacing: .4em;
  color: rgba(240,240,240,.8);
  text-transform: uppercase;
  margin: 22px 0 0;
}

.hf-brand-sub {
  font: 400 15px/1.65 'Inter', sans-serif;
  color: rgba(240,240,240,.58);
  max-width: 300px;
  margin: 16px 0 0;
}

.hf-brand-footnote {
  position: relative;
  z-index: 2;
  font: 400 11.5px 'Inter', sans-serif;
  letter-spacing: .04em;
  color: rgba(240,240,240,.4);
}

/* Form panel — right flex:1 */
.hf-form-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px 48px 48px;
  overflow: auto;
}

.hf-form-inner {
  width: 100%;
  max-width: 392px;
  margin: 0;
}

.hf-form-eyebrow {
  font: 500 11px 'Clash Display', sans-serif;
  letter-spacing: .22em;
  color: #8B5CF6;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hf-form-title {
  font: 700 34px/1 'Space Grotesk', sans-serif;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #F0F0F0;
}

.hf-form-sub {
  font: 400 14px/1.5 'Inter', sans-serif;
  color: rgba(240,240,240,.55);
  margin: 12px 0 30px;
}

.hf-form-field { margin-bottom: 18px; }
.hf-form-field:last-of-type { margin-bottom: 26px; }

.hf-form-fine {
  font: 400 11px/1.5 'Inter', sans-serif;
  color: rgba(240,240,240,.38);
  margin: 14px 0 0;
  text-align: center;
}

/* Server error banner */
.hf-form-server-error {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: 8px;
  padding: 10px 14px;
  font: 400 13px 'Inter', sans-serif;
  color: #EF4444;
  margin-bottom: 20px;
}

/* Responsive: collapse to single column below 860px */
@media (max-width: 860px) {
  .hf-auth-wrap { flex-direction: column; min-height: auto; }
  .hf-brand-panel {
    flex: none;
    padding: 36px 24px 30px;
    min-height: 180px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .hf-brand-wordmark { font-size: 40px; }
  .hf-brand-sub { display: none; }
  .hf-brand-footnote { display: none; }
  .hf-form-panel { padding: 36px 24px; }
  .hf-form-inner { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SUBMIT EVENT — EDITORIAL FORM
   ═══════════════════════════════════════════════════════════════════════════ */

.hf-submit-wrap {
  margin-left: calc(50% - 50vw);
  width: 100vw;
}

/* Header band */
.hf-submit-header {
  position: relative;
  overflow: hidden;
  padding: 54px 64px 40px;
  border-bottom: 1px solid rgba(139,92,246,.22);
}

.hf-submit-header-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(8,8,8,.5));
  pointer-events: none;
}

.hf-submit-header-inner {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.hf-submit-eyebrow {
  font: 500 12px 'Clash Display', sans-serif;
  letter-spacing: .28em;
  color: #8B5CF6;
  text-transform: uppercase;
}

.hf-submit-title {
  font: 700 52px/.98 'Space Grotesk', sans-serif;
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: #F0F0F0;
  margin: 18px 0 0;
}

.hf-submit-intro {
  font: 400 15px/1.6 'Inter', sans-serif;
  color: rgba(240,240,240,.6);
  max-width: 520px;
  margin: 16px 0 0;
}

.hf-submit-meta {
  font: 500 11px 'Clash Display', sans-serif;
  letter-spacing: .14em;
  color: rgba(240,240,240,.5);
  text-transform: uppercase;
  text-align: right;
  line-height: 2;
  flex-shrink: 0;
}
.hf-submit-meta .dot { color: #8B5CF6; }

/* Form body */
.hf-submit-body {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 64px 56px;
}

/* Section divider */
.hf-section-rule { height: 1px; background: rgba(255,255,255,.08); }

/* Editorial section grid: 200px left column + 1fr right */
.hf-section-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding: 40px 0;
}
.hf-section-grid:first-child { padding-top: 0; }

.hf-section-label {
  font: 500 12px 'Clash Display', sans-serif;
  letter-spacing: .2em;
  color: #8B5CF6;
  text-transform: uppercase;
}

.hf-section-helper {
  font: 400 13px/1.55 'Inter', sans-serif;
  color: rgba(240,240,240,.45);
  margin: 12px 0 0;
}

/* 2-col field rows within section */
.hf-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}
.hf-field-row--wide { grid-template-columns: 1.2fr 1fr; }

/* Large event name input */
.hf-input--large {
  padding: 15px 18px;
  font: 500 16px 'Inter', sans-serif;
}

/* Drag-and-drop upload zone */
.hf-upload-zone {
  position: relative;
  border: 1.5px dashed rgba(139,92,246,.4);
  border-radius: 12px;
  background: rgba(139,92,246,.04);
  padding: 34px;
  display: flex;
  align-items: center;
  gap: 22px;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.hf-upload-zone:hover,
.hf-upload-zone--dragover {
  border-color: rgba(139,92,246,.75);
  background: rgba(139,92,246,.08);
}
.hf-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.hf-upload-thumb {
  flex: 0 0 78px;
  height: 78px;
  border-radius: 10px;
  background: repeating-linear-gradient(45deg, #15151a, #15151a 9px, #1c1c22 9px, #1c1c22 18px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(139,92,246,.7);
  font-size: 22px;
  overflow: hidden;
  flex-shrink: 0;
}

.hf-upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: none;
}

.hf-upload-main {
  font: 600 15px 'Inter', sans-serif;
  color: #F0F0F0;
}
.hf-upload-main .browse { color: #8B5CF6; }
.hf-upload-hint {
  font: 400 13px 'Inter', sans-serif;
  color: rgba(240,240,240,.5);
  margin-top: 5px;
}
.hf-upload-error {
  font: 400 12px 'Inter', sans-serif;
  color: #EF4444;
  margin-top: 6px;
  display: none;
}

/* Actions row */
.hf-submit-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}

.hf-submit-reassurance {
  font: 400 13px/1.5 'Inter', sans-serif;
  color: rgba(240,240,240,.45);
  max-width: 360px;
}

.hf-submit-btns {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hf-btn-ghost-sm {
  background: transparent;
  border: 1px solid rgba(255,255,255,.16);
  color: #F0F0F0;
  border-radius: 10px;
  padding: 14px 26px;
  font: 600 14px 'Inter', sans-serif;
  cursor: pointer;
  transition: border-color .18s, background .18s;
  white-space: nowrap;
}
.hf-btn-ghost-sm:hover {
  border-color: rgba(139,92,246,.6);
  background: rgba(139,92,246,.06);
}

.hf-btn-primary-sm {
  background: #8B5CF6;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  font: 600 14px 'Inter', sans-serif;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .18s, box-shadow .18s;
  box-shadow: 0 8px 24px rgba(139,92,246,.32);
  white-space: nowrap;
}
.hf-btn-primary-sm:hover { background: #7C3AED; box-shadow: 0 10px 30px rgba(139,92,246,.42); }

/* Submit success banner */
.hf-submit-success {
  background: rgba(139,92,246,.1);
  border: 1px solid rgba(139,92,246,.3);
  border-radius: 10px;
  padding: 18px 22px;
  font: 400 15px/1.6 'Inter', sans-serif;
  color: #F0F0F0;
  margin: 48px auto;
  max-width: 600px;
  text-align: center;
}
.hf-submit-success a { color: #8B5CF6; }

/* Responsive — submit form */
@media (max-width: 860px) {
  .hf-submit-header { padding: 32px 24px 28px; }
  .hf-submit-body { padding: 32px 24px 40px; }
  .hf-section-grid { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
  .hf-field-row,
  .hf-field-row--wide { grid-template-columns: 1fr; gap: 0; }
  .hf-field-row > div + div,
  .hf-field-row--wide > div + div { margin-top: 18px; }
  .hf-submit-title { font-size: 36px; }
  .hf-submit-meta { text-align: left; }
  .hf-submit-actions { flex-direction: column; align-items: stretch; }
  .hf-submit-btns { flex-direction: column; }
  .hf-btn-ghost-sm,
  .hf-btn-primary-sm { width: 100%; text-align: center; }
}

/* ── Mobile navbar ──────────────────────────────────────────────────────── */
.navbar-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 60;
}
.navbar-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.navbar-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-burger.is-open span:nth-child(2) { opacity: 0; }
.navbar-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile navbar: wordmark row + horizontally scrollable link strip (no burger) */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    padding: 12px 20px 0;
    background: rgba(8, 8, 8, 0.92);
  }
  .navbar-burger { display: none; }

  .navbar-links {
    flex-basis: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    margin: 8px -20px 0;
    padding: 0 20px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .navbar-links::-webkit-scrollbar { display: none; }

  .navbar-links a {
    font-size: 15px;
    white-space: nowrap;
    flex-shrink: 0;
    padding-bottom: 0;
  }

  /* flatten the grouping spans so every link sits in the scroll row */
  .navbar-group { display: contents; }

  /* theme toggle lives on the wordmark row, out of the scroll strip */
  .theme-toggle {
    position: absolute;
    top: 11px;
    right: 20px;
  }

  .navbar-cta {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 999px;
  }

  /* sticky filter strip sits below the two-row navbar */
  .events-filter-strip { top: var(--navbar-h, 100px); }

  /* scroll hint: chevron + fade at the right edge of the link strip,
     hidden once the strip is scrolled to the end */
  .navbar::after {
    content: "\203A";
    position: absolute;
    right: 0;
    bottom: 11.5px;
    width: 56px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 14px;
    font: 600 24px/1 var(--font-heading), sans-serif;
    color: #A78BFA;
    background: linear-gradient(to right, rgba(8,8,8,0), rgba(8,8,8,.95) 55%);
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .navbar.nav-strip-end::after { opacity: 0; }

  [data-theme="light"] .navbar::after {
    color: #7C3AED;
    background: linear-gradient(to right, rgba(244,243,255,0), rgba(244,243,255,.95) 55%);
  }
}

/* ── Events country chooser ─────────────────────────────────────────── */
.country-select-hero {
  position: relative;
  overflow: hidden;
  margin-left: calc(50% - 50vw);
  width: 100vw;
}

.country-select {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md);
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.country-select-head { text-align: center; margin-bottom: var(--space-xl); }

.country-select-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: 0.01em;
  margin: var(--space-sm) 0;
  color: var(--text);
}

.country-select-sub { color: var(--text-muted); font-size: 1.05rem; margin: 0; }

.country-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.country-select-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-xl) var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

/* Country silhouette watermark — a faint outline of each country on its own
   card, sitting behind the text. */
.country-select-card > :not(.country-select-map) { position: relative; z-index: 1; }
.country-select-map {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  height: 78%;
  width: auto;
  color: var(--accent);
  opacity: .14;
  pointer-events: none;
  z-index: 0;
  transition: opacity .25s ease, transform .25s ease;
}
.country-select-card:hover .country-select-map,
.country-select-card:focus-visible .country-select-map {
  opacity: .22;
  transform: translateY(-50%) scale(1.04);
}

.country-select-card:hover,
.country-select-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.country-select-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.country-select-name {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--text);
}

.country-select-cities {
  color: var(--text-muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.country-select-count {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--space-sm);
}

.country-select-cta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: var(--space-md);
  transition: color .25s ease;
}

.country-select-card:hover .country-select-cta { color: var(--text); }

@media (max-width: 720px) {
  .country-select-grid { grid-template-columns: 1fr; }
  .country-select-card { padding: var(--space-lg); }
}

/* Country switch pill in the events banner */
.events-country-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-left: 0.75em;
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(139, 92, 246, 0.55);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.16);
  color: var(--accent);
  text-decoration: none;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.events-country-switch:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

/* ═══ ACCOUNT: dashboard glow-up ══════════════════════════════════════════ */

/* Profile hero — full-bleed gradient header, avatar + handle + chips + stats */

.profile-hero {
  position: relative;
  overflow: hidden;
  margin-left: calc(50% - 50vw);
  width: 100vw;
  margin-top: -2rem; /* cancel .container padding so the glow meets the navbar */
  margin-bottom: var(--space-lg);
}

.profile-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 75% at 50% -15%, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.06) 55%, transparent 75%);
  pointer-events: none;
}

/* Wide container variant — pages that should use the full viewport width */
.container--wide {
  max-width: 1560px;
}

@media (min-width: 1280px) {
  .container--wide .event-grid.view-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.profile-hero-inner {
  position: relative;
  max-width: 1560px;
  margin: 0 auto;
  padding: var(--space-lg) 2rem var(--space-lg);
}

.profile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.profile-topbar .dashboard-eyebrow { margin-bottom: 0; }

.profile-identity .profile-topbar-actions { margin-left: auto; }

.profile-topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.keys-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.75rem;
  border: 1.5px solid rgba(139, 92, 246, 0.4);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.16);
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(139, 92, 246, 0.22);
  transition: border-color .25s ease, background .25s ease, transform .18s ease, box-shadow .25s ease;
}

.keys-pill svg { color: var(--accent); width: 34px; height: 34px; }

.keys-pill:hover {
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.26);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.38);
}

.profile-gear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--surface-border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  transition: color .25s ease, border-color .25s ease, transform .4s ease;
}

.profile-gear:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: rotate(45deg);
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.profile-avatar {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--accent), var(--accent-strong));
  box-shadow: 0 8px 28px var(--accent-glow);
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 700;
  color: #fff;
}

.profile-avatar--img {
  object-fit: cover;
  border: 2px solid rgba(139, 92, 246, 0.55);
}

.profile-bio {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 44ch;
}

.profile-chip--link {
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.profile-chip--link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.profile-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.profile-genre {
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.profile-handle {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.profile-chip--accent {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.profile-stats {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.profile-stat strong {
  color: var(--text);
  font-weight: 800;
  margin-right: 0.3rem;
}

.profile-stat-sep {
  width: 1px;
  height: 16px;
  background: var(--surface-border);
}

.profile-edit-btn {
  display: block;
  width: 100%;
  max-width: 480px;
  padding: 0.7rem;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: border-color .25s ease, background .25s ease;
}

.profile-edit-btn:hover {
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.1);
}

@media (max-width: 640px) {
  .profile-avatar { width: 68px; height: 68px; font-size: 1.9rem; }
  .profile-name { font-size: 1.5rem; }
  .profile-edit-btn { max-width: none; }
  /* Keys pill + gear sit DIRECTLY under the name, aligned with the text
     column (avatar 68px + the row's gap), not floating in their own
     centered band. Pill compacts to name-scale. */
  .profile-identity { flex-wrap: wrap; row-gap: 0.55rem; }
  .profile-identity .profile-topbar-actions {
    flex-basis: 100%;
    justify-content: flex-start;
    margin-left: calc(68px + var(--space-md));
  }
  .keys-pill {
    padding: 0.42rem 1.05rem;
    font-size: 1.35rem;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.18);
  }
  .keys-pill svg { width: 19px; height: 19px; }
  .profile-gear svg { width: 24px; height: 24px; }
}

[data-theme="light"] .profile-hero-glow {
  background: radial-gradient(ellipse 90% 75% at 50% -15%, rgba(139, 92, 246, 0.18), rgba(139, 92, 246, 0.04) 55%, transparent 75%);
}
[data-theme="light"] .keys-pill { background: rgba(139, 92, 246, 0.08); }
[data-theme="light"] .profile-avatar { box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3); }

.dashboard-homecity {
  margin: var(--space-xs) 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Dashboard: Connect-Spotify nudge strip ───────────────────────────── */
.dashboard-spotify-strip {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0 0;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--rule-soft);
  border-left: 3px solid #1DB954;
  border-radius: 12px;
  overflow: hidden;
}

.dashboard-spotify-strip-glow {
  position: absolute;
  inset: 0 auto 0 0;
  width: 200px;
  background: radial-gradient(circle at left center, rgba(29, 185, 84, 0.16), transparent 72%);
  pointer-events: none;
}

.dashboard-spotify-strip-icon {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
}

.dashboard-spotify-strip-copy {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dashboard-spotify-strip-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.dashboard-spotify-strip-sub {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.dashboard-spotify-strip-cta {
  position: relative;
  flex: 0 0 auto;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  background: #1DB954;
  color: #06200f;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.dashboard-spotify-strip-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(29, 185, 84, 0.35);
}

.dashboard-spotify-strip-dismiss {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}

.dashboard-spotify-strip-dismiss:hover {
  color: var(--text);
  background: var(--hairline);
}

@media (max-width: 640px) {
  .dashboard-spotify-strip { flex-wrap: wrap; padding-right: 2.75rem; }
  .dashboard-spotify-strip-cta { flex: 1 1 100%; margin-top: 2px; text-align: center; }
  .dashboard-spotify-strip-dismiss { position: absolute; top: 8px; right: 8px; }
}

.dashboard-nextup {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
  padding: var(--space-lg);
  background: linear-gradient(120deg, rgba(139, 92, 246, 0.16), rgba(139, 92, 246, 0.04) 60%), var(--bg-card);
  border: 1px solid var(--rule-soft);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .25s ease, transform .25s ease;
}

.dashboard-nextup:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.dashboard-nextup-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 92px;
  text-align: center;
}

.dashboard-nextup-num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.dashboard-nextup-unit {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.dashboard-nextup-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.dashboard-nextup-eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.dashboard-nextup-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
}

.dashboard-nextup-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dashboard-nextup-cta {
  margin-left: auto;
  font-size: 1.5rem;
  color: var(--accent);
}

@media (max-width: 640px) {
  .dashboard-nextup { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
  .dashboard-nextup-count { flex-direction: row; gap: 0.5rem; align-items: baseline; min-width: 0; }
  .dashboard-nextup-cta { display: none; }
}

.stat-card-keys {
  display: block;
  text-decoration: none;
  color: var(--text);
  border-left-color: var(--accent);
  background: linear-gradient(150deg, rgba(139, 92, 246, 0.18), rgba(139, 92, 246, 0.03) 70%), var(--bg-card);
  transition: transform .25s ease, box-shadow .25s ease;
}

.stat-card-keys:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.18);
}

.stat-card-keys-cta {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

/* ═══ ACCOUNT: settings ═══════════════════════════════════════════════════ */

.settings-shell {
  max-width: 640px;
  margin: 0 auto;
}

.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.settings-card .hf-form-field { margin-bottom: var(--space-md); }
.settings-card .hf-form-field:last-child { margin-bottom: 0; }

.settings-card .hf-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.settings-success {
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: 8px;
  background: rgba(74, 222, 128, 0.08);
  color: #4ade80;
  font-size: 0.9rem;
}

.settings-save {
  width: 100%;
}

.settings-card-lede {
  margin: calc(-1 * var(--space-xs)) 0 var(--space-md);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Email alert preferences */
.settings-email-prefs {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-email-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  cursor: pointer;
}

.settings-email-row input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.settings-email-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-email-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.settings-email-sub {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.settings-email-row--pause {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--hairline);
}

/* Avatar uploader */
.settings-avatar-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.settings-avatar-preview {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(139, 92, 246, 0.55);
}

.settings-avatar-preview--letter {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--accent), var(--accent-strong));
  border: none;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.settings-avatar-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  min-width: 0;
}

.settings-avatar-btn {
  cursor: pointer;
}

.settings-avatar-remove {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
}

.hf-textarea {
  resize: vertical;
  min-height: 3.4rem;
  line-height: 1.5;
  font-family: inherit;
}

/* Genre chips — checkboxes styled as toggle pills */
.settings-genre-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.settings-genre-chip {
  cursor: pointer;
}

.settings-genre-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings-genre-chip span {
  display: inline-block;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.settings-genre-chip:hover span {
  border-color: var(--accent);
  color: var(--text);
}

.settings-genre-chip input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.settings-genre-chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ═══ ACCOUNT: Keys wallet ════════════════════════════════════════════════ */

.keys-shell {
  max-width: 860px;
  margin: 0 auto;
}

/* Full-page animated lights behind the whole wallet.
   z-index -1 paints above the canvas background (html has none, so body's
   propagates) but below all content — no z-index juggling needed elsewhere. */
.keys-page-lights {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.keys-page-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 62% at 50% 40%, rgba(8, 8, 8, 0.6), rgba(8, 8, 8, 0.28) 58%, transparent 85%);
}

.keys-balance-card {
  position: relative;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  margin: var(--space-lg) 0;
}

.keys-balance-label {
  position: relative;
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.keys-balance-value {
  position: relative;
  display: block;
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--text);
  text-shadow: 0 0 48px var(--accent-glow);
}

.keys-balance-unit {
  position: relative;
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.keys-balance-sub {
  position: relative;
  margin: var(--space-sm) 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.keys-balance-desc {
  position: relative;
  max-width: 540px;
  margin: var(--space-md) auto 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.keys-balance-desc strong {
  color: var(--text);
  font-weight: 600;
}

.keys-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

/* Glassy cards so the page lights read through */
.keys-shell .settings-card {
  background: color-mix(in srgb, var(--bg-card) 72%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

@media (max-width: 720px) {
  .keys-columns { grid-template-columns: 1fr; }
}

.keys-rate-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.keys-rate-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.9rem;
}

.keys-rate-list li:last-child { border-bottom: none; }

.keys-rate-action { color: var(--text-muted); }

.keys-rate-amount {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.keys-rate-amount small {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-muted);
}

.keys-fine {
  margin: var(--space-md) 0 0;
  font-size: 0.78rem;
  color: var(--text-faint);
}

.keys-history {
  list-style: none;
  margin: 0;
  padding: 0;
}

.keys-history-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.9rem;
}

.keys-history-row:last-child { border-bottom: none; }

.keys-history-reason { min-width: 0; }

.keys-history-date {
  margin-left: auto;
  color: var(--text-faint);
  font-size: 0.8rem;
  white-space: nowrap;
}

.keys-history-amount {
  font-family: var(--font-heading);
  font-weight: 600;
  min-width: 3.5em;
  text-align: right;
}

.keys-history-amount--earn { color: #4ade80; }
.keys-history-amount--spend { color: #f87171; }

/* Light theme */
[data-theme="light"] .dashboard-nextup {
  background: linear-gradient(120deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.02) 60%), var(--bg-card);
}
[data-theme="light"] .stat-card-keys {
  background: linear-gradient(150deg, rgba(139, 92, 246, 0.12), rgba(139, 92, 246, 0.02) 70%), var(--bg-card);
}
[data-theme="light"] .settings-success {
  color: #15803d;
  border-color: rgba(21, 128, 61, 0.35);
  background: rgba(21, 128, 61, 0.07);
}
[data-theme="light"] .keys-history-amount--earn { color: #15803d; }
[data-theme="light"] .keys-history-amount--spend { color: #b91c1c; }
[data-theme="light"] .keys-page-scrim {
  background: radial-gradient(85% 70% at 50% 42%, rgba(244, 243, 255, 0.78), rgba(244, 243, 255, 0.5) 58%, rgba(244, 243, 255, 0.16) 88%);
}
[data-theme="light"] .keys-page-lights .hf-lights {
  opacity: 0.55;
}
[data-theme="light"] .keys-balance-value {
  text-shadow: 0 0 48px rgba(139, 92, 246, 0.25);
}

/* ═══ ARTISTS DIRECTORY ══════════════════════════════════════════════════ */

.artists-sub {
  margin: var(--space-xs) 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.artists-toolbar {
  position: relative;
  margin: var(--space-md) 0 var(--space-lg);
}

.artists-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  pointer-events: none;
}

.artists-search {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}

.artists-search:focus {
  outline: none;
  border-color: var(--accent);
}

.artists-shelf-title {
  margin-top: var(--space-lg);
}

.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.artist-grid[hidden],
.artist-card[hidden] {
  display: none;
}

.artist-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--rule-soft);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.artist-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.artist-card-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
}

.artist-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artist-card-letter {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(139, 92, 246, 0.4), transparent 60%),
    radial-gradient(circle at 75% 80%, rgba(124, 58, 237, 0.3), transparent 55%),
    var(--bg-card);
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.artist-card-count {
  position: absolute;
  bottom: 0.55rem;
  left: 0.55rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.artist-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 0.75rem 0.85rem 0.9rem;
}

.artist-card-name {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.25;
  color: var(--text);
}

.artist-card-spotify {
  display: inline-flex;
  color: var(--text-faint);
  transition: color 0.15s ease;
}

.artist-card-spotify:hover { color: #1db954; }

.artist-card-genres {
  color: var(--text-muted);
  font-size: 0.76rem;
  text-transform: capitalize;
}

.artist-card-genres--none {
  color: var(--text-faint);
  text-transform: none;
}

.artist-card-body .follow-form,
.artist-card-body .follow-link {
  margin-top: 0.35rem;
}

[data-theme="light"] .artist-card-letter {
  color: rgba(10, 10, 18, 0.55);
}

/* ═══════════════════════════════════════════════════════════════════════
   Mobile layout — phones (390px-class viewports)
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .event-grid.view-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  /* Event card grids: single column */
  .event-grid.view-grid { grid-template-columns: 1fr; }

  /* List-view event cards: stack image above body instead of 320px side-by-side */
  .event-grid:not(.view-grid) .event-card-link { flex-direction: column; }
  .event-grid:not(.view-grid) .event-card-image { width: 100%; height: 210px; }

  /* Artists page: two cards across instead of one giant column */
  .artist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
  .artist-card-letter { font-size: 2.2rem; }

  /* Page headers (map etc.): keep the action button on one line */
  .page-header { flex-wrap: wrap; }
  .page-header .btn { white-space: nowrap; }

  /* Featured "Next Up" card: image on top, copy below */
  .events-featured-link { flex-direction: column; }
  .events-featured-img { flex: none; height: 200px; }
  .events-featured-scrim { background: linear-gradient(to bottom, transparent 55%, rgba(8,8,8,.7)); }
  .events-featured-body { padding: 1.25rem 1.25rem 1.5rem; }
  .events-featured-title { font-size: 1.5rem; }

  /* Events banner: stack title above the Map View / toggle row */
  .events-banner { padding: 2.5rem 1.25rem 1.75rem; }
  .events-banner-content { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .events-banner-title { font-size: 2.4rem; }

  /* Filter strip: left-align so the scroll start isn't clipped off-screen,
     and pin under the shorter mobile navbar */
  .events-filter-strip-inner { justify-content: flex-start; padding: 0 1rem; }

  /* Homepage hero: tighter gutters, smaller search button */
  .hf-hero-inner { padding: 0 20px; }
  .hf-search { gap: 8px; padding: 8px 8px 8px 16px; }
  .hf-search-btn { padding: 12px 18px; }

  /* Homepage chapter grids */
  .hf-artists-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .hf-cities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hf-city-card { padding: 14px 16px; }
  .hf-city-name { font-size: 16px; }

  /* Coming-up / In-your-area rows: stack date, title, venue with the button
     alongside instead of the 4-column desktop track */
  .hf-coming-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "date  btn"
      "title btn"
      "venue btn";
    gap: 3px 14px;
    padding: 16px 4px;
  }
  .hf-coming-date { grid-area: date; }
  .hf-coming-title { grid-area: title; white-space: normal; font-size: 17px; line-height: 1.3; }
  .hf-coming-venue { grid-area: venue; white-space: normal; }
  .hf-coming-row .hf-tickets-btn { grid-area: btn; align-self: center; }
}

/* Full-bleed page openers: cancel the .container top padding so they meet
   the navbar with no dead band (same fix as .profile-hero / .hero). */
.hf-hero,
.events-banner,
.event-detail-hero,
.hf-auth-wrap,
.hf-submit-wrap,
.country-select-hero {
  margin-top: -2rem;
}

.hf-auth-wrap {
  min-height: calc(100vh - 69px + 2rem);
}

@media (max-width: 768px) {
  .hf-auth-wrap { min-height: calc(100vh - 100px + 2rem); }
}

/* Featured card: stack image over lineup panel on narrow screens */
@media (max-width: 900px) {
  .hf-featured {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hf-featured-img { min-height: 320px; }
  .hf-featured-title { font-size: clamp(26px, 8vw, 40px); }
  .hf-featured-copy { left: 18px; right: 18px; bottom: 18px; }
  .hf-featured-meta { flex-wrap: wrap; gap: 8px 14px; }
  .hf-featured-panel { padding: 24px; justify-content: flex-start; }
  .hf-panel-lineup { font-size: 17px; }
}

/* POST-based logout (CSRF-safe) styled to match the links it replaced. */
.navbar-logout { display: inline-block; margin: 0; padding: 0; }
.navbar-links button.linklike {
  position: relative;
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: rgba(240, 240, 240, 0.78);
  padding: 0 0 0.3rem;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 200ms ease;
}
.navbar-links button.linklike::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 250ms ease;
}
.navbar-links button.linklike:hover { color: var(--text); }
.navbar-links button.linklike:hover::after { right: 0; }
[data-theme="light"] .navbar-links button.linklike { color: #0A0A12; }

/* Logout in a footer form-note: render the submit button as an inline text link. */
.form-note.logout-note { margin-top: var(--space-md); }
.form-note button.linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
}

/* ── First-visit welcome modal ───────────────────────────────────────────── */
.hf-welcome {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.hf-welcome.is-open { opacity: 1; visibility: visible; }

.hf-welcome-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4,4,8,.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
[data-theme="light"] .hf-welcome-backdrop { background: rgba(20,16,40,.4); }

.hf-welcome-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 20px;
  overflow: hidden;                 /* the photo must be clipped by the radius */
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 30px 80px rgba(0,0,0,.65);
  transform: translateY(14px) scale(.985);
  transition: transform .4s cubic-bezier(.2,.9,.3,1);
}
.hf-welcome.is-open .hf-welcome-card { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hf-welcome-card { transition: none; transform: none; }
}

/* The photograph is the modal. Positioned so the crowd sits in the upper half
   and the near-black lower half is where the copy lands. */
.hf-welcome-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 50% 38%;   /* crowd mid-frame; dark floor falls under the copy */
}

/* Contrast comes from here, not from the photo. Bottom-weighted so the text
   half is effectively opaque: a pure-white pixel under .94 composites to
   about #262626, which is 13.9:1 against #FFFFFF — AA holds for ANY image we
   swap in, which is the point of doing it this way rather than tinting. */
.hf-welcome-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(8,8,8,.30) 0%,
    rgba(8,8,8,.72) 42%,
    rgba(8,8,8,.94) 68%,
    rgba(8,8,8,.97) 100%);
}

/* The one colour on the modal. A door stamp, rotated, bleeding off the edge —
   the artefact that says you already got in. */
.hf-welcome-stamp {
  position: absolute;
  top: 26px;
  left: 22px;
  z-index: 2;
  font: 700 13px/1.05 var(--font-heading);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #C4B5FD;
  padding: 9px 11px;
  border: 2px solid #8B5CF6;
  border-radius: 3px;
  transform: rotate(-7deg);
  opacity: .92;
  mix-blend-mode: screen;           /* ink sitting ON the photo, not over it */
}

.hf-welcome-body {
  position: relative;
  z-index: 1;
  padding: 26px 24px 24px;
  text-align: left;                 /* a flyer, not a centred dialog */
}

.hf-welcome-x {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(8,8,8,.55);
  color: #FFFFFF;
  backdrop-filter: blur(6px);
}
.hf-welcome-x:hover { background: rgba(8,8,8,.8); }

.hf-welcome-eyebrow {
  display: block;
  font: 700 11px var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #C4B5FD;                   /* 8.9:1 on the scrim — solid, no alpha */
  margin-bottom: 10px;
}

.hf-welcome-title {
  font: 700 clamp(30px, 8.5vw, 42px)/0.98 var(--font-heading);
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0 0 12px;
  text-wrap: balance;
}

.hf-welcome-sub {
  font: 400 15px/1.5 var(--font-body);
  color: #D9D4E8;                   /* solid hex, not rgba — 11.2:1 */
  margin: 0 0 20px;
  max-width: 34ch;
}

/* Sign-up buttons inside the modal. Deliberately restrained: the reference
   this is modelled on has ONE action, and every button added is chrome the
   design was trying to strip. Two providers, then email — not a wall of
   options. Solid fills, no glass, so they read as doors not widgets. */
.hf-welcome-sso {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.hf-welcome-sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 4px;
  background: #FFFFFF;
  color: #14101D;                   /* 16.9:1 — near-black on white */
  font: 600 15px var(--font-body);
  text-decoration: none;
  border: none;
  transition: background .2s ease;
}
.hf-welcome-sso-btn:hover { background: #E8E5F0; }
.hf-welcome-sso-btn:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.hf-welcome-sso-btn svg { width: 19px; height: 19px; flex: none; }

/* Spotify leads because it's the one that arrives knowing your artists.
   #1DB954 with white fails AA (2.5:1), so the label is near-black instead —
   which is also how Spotify's own brand guidance renders it. */
.hf-welcome-sso-btn--spotify { background: #1DB954; color: #0A0A0A; }
.hf-welcome-sso-btn--spotify:hover { background: #1ED760; }

.hf-welcome-cta {
  display: block;
  width: 100%;
  padding: 16px 18px;
  border-radius: 4px;               /* a bar, not a pill */
  /* --accent (#8B5CF6) with white gives 4.23:1 — under the 4.5 needed for a
     16px bold label, since WCAG "large text" starts at 18.66px bold. Using
     --accent-strong instead: 5.70:1, same violet family, passes properly.
     Fixing it by calling the label "large" would have been a lie. */
  background: #7C3AED;
  color: #FFFFFF;
  font: 700 16px var(--font-display);
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  min-height: 44px;
  transition: background .2s ease;
}
.hf-welcome-cta:hover { background: #6D28D9; }
.hf-welcome-cta:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }

.hf-welcome-dismiss {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  font: 500 14px var(--font-body);
  color: #B9B3C7;
}
.hf-welcome-dismiss:hover { color: #FFFFFF; }

.hf-welcome-login {
  margin: 6px 0 0;
  font: 400 13px var(--font-body);
  color: #B9B3C7;
}
.hf-welcome-login a { color: #C4B5FD; text-decoration: underline; }
.hf-welcome-login a:hover { color: #FFFFFF; }

@media (prefers-reduced-motion: reduce) {
  .hf-welcome { transition: opacity .2s ease, visibility .2s ease; }
  .hf-welcome-card { transform: none; transition: none; }
  .hf-welcome.is-open .hf-welcome-card { transform: none; }
}

/* ── Post-signup invite prompt ───────────────────────────────────────────── */
.hf-invite {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.hf-invite.is-open { opacity: 1; visibility: visible; }

.hf-invite-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4,4,8,.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
[data-theme="light"] .hf-invite-backdrop { background: rgba(20,16,40,.4); }

.hf-invite-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 448px;
  background: var(--bg-elevated);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 34px 32px 28px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(139,92,246,.12);
  transform: translateY(16px) scale(.97);
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
  overflow: hidden;
}
.hf-invite.is-open .hf-invite-card { transform: translateY(0) scale(1); }

.hf-invite-glow {
  position: absolute;
  top: -42%;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(139,92,246,.32), transparent 65%);
}

.hf-invite-x {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: background .18s, color .18s;
}
.hf-invite-x:hover { background: rgba(139,92,246,.16); color: var(--text); }

.hf-invite-badge {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  margin: 6px auto 16px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  box-shadow: 0 10px 30px rgba(139,92,246,.4);
}

.hf-invite-eyebrow {
  position: relative;
  z-index: 1;
  display: inline-block;
  font: 600 12px var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.hf-invite-title {
  position: relative;
  z-index: 1;
  font: 700 clamp(24px,5vw,30px)/1.05 var(--font-display);
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 12px;
  text-wrap: balance;
}
.hf-invite-sub {
  position: relative;
  z-index: 1;
  font: 400 15px var(--font-body);
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 auto 22px;
  max-width: 36ch;
}
.hf-invite-sub strong { color: var(--text); font-weight: 600; }

.hf-invite-linkrow {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.hf-invite-link {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font: 400 14px var(--font-body);
  outline: none;
}
.hf-invite-link:focus { border-color: rgba(139,92,246,.6); }
.hf-invite-copy {
  flex: 0 0 auto;
  white-space: nowrap;
  border: 1px solid rgba(196,181,253,.45);
  border-radius: 12px;
  padding: 12px 18px;
  color: #fff;
  cursor: pointer;
  font: 600 14px var(--font-body);
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  transition: filter .18s, background .18s, border-color .18s;
}
.hf-invite-copy:hover { filter: brightness(1.08); }
.hf-invite-copy.is-copied { background: #22C55E; border-color: #22C55E; }

.hf-invite-share {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  justify-content: center;
}
.hf-invite-sharebtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font: 600 13.5px var(--font-body);
  transition: background .18s, border-color .18s;
}
.hf-invite-sharebtn:hover { background: rgba(139,92,246,.12); border-color: rgba(139,92,246,.4); }
.hf-invite-sharebtn--wa svg { color: #25D366; }

.hf-invite-dismiss {
  position: relative;
  z-index: 1;
  display: block;
  margin: 20px auto 0;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font: 500 13.5px var(--font-body);
  color: var(--text-muted);
  transition: color .18s;
}
.hf-invite-dismiss:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .hf-invite { transition: opacity .2s ease, visibility .2s ease; }
  .hf-invite-card { transform: none; transition: none; }
  .hf-invite.is-open .hf-invite-card { transform: none; }
}

/* ── App tab bar — installed-PWA-only bottom navigation ─────────────────────
   Rendered on every page but display:none in the browser; the standalone
   media query (true only when launched from the home-screen icon) turns it
   into a Spotify-style fixed bottom bar. Tokens keep it theme-aware. */
.app-tabbar { display: none; }

.app-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0 2px;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.app-tab svg { width: 23px; height: 23px; }

.app-tab.is-active {
  color: var(--accent);
  background: rgba(139, 92, 246, 0.15);
}

.app-tab {
  border-radius: 18px;
  margin: 0 2px;
}

/* Work-in-progress tab: a gold dot above the icon. The top navbar uses a
   dashed "WIP" chip, but a 5-up bottom bar has no room for one, and colouring
   the whole tab gold would read as permanently-active against the purple
   active state. The dot is decorative, so the honest signal is in the label
   text for screen readers. */
.app-tab--wip { position: relative; }
.app-tab--wip::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  margin-left: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffb35c;
}
[data-theme="light"] .app-tab--wip::after { background: #7a4a10; }
/* Five tabs is the max a bottom bar stays legible at; tighten the label so
   "Festivals" doesn't wrap or clip at 390px. */
.app-tabbar .app-tab { min-width: 0; }
.app-tab span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (display-mode: standalone) {
  .app-tabbar {
    display: flex;
    position: fixed;
    left: 14px;
    right: 14px;
    /* floating island: detached from the screen edge, riding above the
       home indicator */
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 900; /* above content (navbar 50), below modals (1000+) */
    background: var(--bg-elevated);
    border: 1px solid var(--surface-border);
    border-radius: 26px;
    padding: 7px 8px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55), 0 2px 10px rgba(139, 92, 246, 0.10);
  }

  /* keep page content + any sticky bottom UI clear of the floating bar */
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

  /* apps don't have web footers — the tab bar replaces it */
  .hf-footer { display: none; }

  /* the bottom tabs make the top navbar redundant in app mode — hide it for
     a full-bleed native feel. EXCEPTION: the promoter navbar stays, it holds
     the promoter's only logout. */
  .navbar:not(.navbar--promoter) { display: none; }
  .navbar--promoter { padding-top: calc(22px + env(safe-area-inset-top, 0px)); }

  /* with the navbar gone, keep page content clear of the translucent
     status bar / notch */
  body { padding-top: env(safe-area-inset-top, 0px); }
}

/* ── Dashboard: Weekenders row — quiet entry point (the app tabs don't carry
   Weekenders, so the dashboard is its home). Subtler than the next-up card. */
.dashboard-weekender {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--rule-soft);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .25s ease, transform .25s ease;
}

.dashboard-weekender:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.dashboard-weekender-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--accent);
}

.dashboard-weekender-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dashboard-weekender-title {
  font-weight: 650;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.dashboard-weekender-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.dashboard-weekender-cta {
  margin-left: auto;
  color: var(--accent);
  font-size: 1.15rem;
}

/* ── Settings: push notifications ── */
.settings-push-status {
  margin: 0 0 var(--space-md);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.settings-push-btn { width: auto; }

.settings-push-off {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ═══ App-mode layout pass — installed PWA, phone widths ════════════════════
   Platform-app structural language (Instagram/TikTok-era): slim header
   instead of the marketing hero, content-first feed with tight rhythm,
   media-forward cards, press feedback, translucent chrome. Brand system
   (charcoal + violet, Inter/Clash/Grotesk) unchanged — this is layout, not
   identity. Scoped to standalone so the browser website is untouched. */
@media (display-mode: standalone) and (max-width: 760px) {

  /* ── Global rhythm: app-density spacing ── */
  .container { padding: 12px 16px 24px; }
  .hf-chapter-inner { padding: 26px 16px; }

  /* ── Home: 92vh brand hero → slim app header (logo row + search) ── */
  .hf-hero {
    min-height: 0;
    display: block;           /* kill the flex centering — header, not billboard */
    padding: 16px 0 18px;
    text-align: left;
  }
  .hf-hero-inner { padding: 0 16px; max-width: none; }
  .hf-hero-eyebrow, .hf-tagline, .hf-sub, .hf-bob, .hf-scrim { display: none; }
  .hf-wordmark {
    font-size: 30px;
    line-height: 1;
    margin: 0 0 14px;
    letter-spacing: -.02em;
  }
  .hf-wordmark br { display: none; }  /* "HOUSE FINDER" on one line, IG-style */
  .hf-lights { opacity: .5; }         /* keep a breath of the brand glow */
  .hf-search { margin: 0; max-width: none; }
  /* logged-out: compact the signup CTA into the header flow */
  .hf-hero-cta { margin: 4px 0 0; }
  .hf-hero-cta-login { margin-top: 10px; }

  /* ── Events: shout-banner → app screen title ── */
  .events-banner { padding: 14px 16px 10px; }
  .events-banner-title { font-size: 1.6rem; letter-spacing: -.02em; }
  .events-banner-count { font-size: 12px; }
  /* navbar is hidden in app mode — stick the filter strip to the very top */
  .events-filter-strip { top: env(safe-area-inset-top, 0px); }

  /* ── Feed: media-first cards, tighter gaps ── */
  .event-grid { gap: 14px; }
  .event-grid.view-grid .event-card-link {
    border-radius: 16px;
    overflow: hidden;
  }
  .event-grid.view-grid .event-card-image { height: 235px; }

  /* ── Chrome: translucent, blurred tab bar (native feel) ── */
  .app-tabbar {
    background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  /* ── Press feedback: cards + tabs + buttons respond to touch ── */
  @media (prefers-reduced-motion: no-preference) {
    .event-card-link, .dashboard-nextup, .dashboard-weekender, .accom-block .btn,
    .btn, .hf-btn-primary, .trip-plan-btn {
      transition: transform 160ms ease, border-color 250ms ease, box-shadow 250ms ease;
    }
    .event-card-link:active, .dashboard-nextup:active, .dashboard-weekender:active {
      transform: scale(.98);
    }
    .btn:active, .hf-btn-primary:active, .trip-plan-btn:active { transform: scale(.97); }
    .app-tab:active svg { transform: scale(.88); transition: transform 120ms ease; }
  }
}

/* ── App-tester fixes: cards, map, sticky ticket CTA ───────────────────── */

/* Poster crops: flyers carry their headline top-centre — crop from the top,
   and clamp shouting titles so cards keep feed rhythm. */
.event-card-image img { object-position: center top; }
.event-card .event-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-grid.view-grid .event-card .event-title { -webkit-line-clamp: 3; }

/* Map: violet cluster styling instead of Leaflet's default green/orange. */
/* !important: MarkerCluster.Default.css loads at end-of-body (after this
   sheet) so equal-specificity rules lose the cascade — verified live. */
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large {
  background: rgba(139, 92, 246, 0.35) !important;
}
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div {
  background: rgba(124, 58, 237, 0.85) !important;
  color: #fff !important;
  font-family: var(--font-body) !important;
  font-weight: 700;
}

/* Event page: sticky ticket CTA — hidden on the website, pinned above the
   island tab bar in app mode (Dice's always-at-the-thumb buy pattern). */
.event-sticky-cta { display: none; }

@media (display-mode: standalone) and (max-width: 760px) {
  .event-sticky-cta {
    display: block;
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px)); /* clears the island */
    z-index: 890; /* under the tab bar, over content */
  }
  .event-sticky-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 0;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 4px 18px rgba(139, 92, 246, 0.35);
  }
  /* keep page content clear of bar + island */
  body:has(.event-sticky-cta) { padding-bottom: calc(170px + env(safe-area-inset-bottom, 0px)); }

  /* Map teaser banner: dock it above the island instead of colliding with it */
  .map-teaser-cta { bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ── Signup: terms checkbox row ── */
.hf-terms-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: var(--space-md) 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  cursor: pointer;
}
.hf-terms-row input[type="checkbox"] {
  margin-top: 2px;
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.hf-terms-row a { color: var(--accent); text-decoration: none; }
.hf-terms-row a:hover { text-decoration: underline; }

/* ── Legal pages (/terms, /privacy) ── */
.legal-page { max-width: 720px; margin: 0 auto; }
.legal-page h1 { margin-bottom: 4px; }
.legal-updated { color: var(--text-faint); font-size: 0.85rem; margin: 0 0 var(--space-lg); }
.legal-page h2 {
  font-size: 1.05rem;
  margin: var(--space-lg) 0 var(--space-sm);
  color: var(--text);
}
.legal-page p, .legal-page li { color: var(--text-muted); line-height: 1.7; font-size: 0.95rem; }
.legal-page ul { padding-left: 1.2rem; }
.legal-page a { color: var(--accent); }
.legal-note {
  margin-top: var(--space-xl);
  padding: var(--space-md);
  border: 1px solid var(--rule-soft);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* Signup: email-alerts consent disclosure (AU Spam Act hardening — makes the
   account-relationship consent explicit at the point of signup). */
.hf-consent-note {
  margin: var(--space-md) 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-faint);
}

/* Legal pages: disclosure tables */
.legal-table { width: 100%; border-collapse: collapse; margin: var(--space-md) 0; font-size: 0.9rem; }
.legal-table th, .legal-table td {
  text-align: left; padding: 9px 12px; border: 1px solid var(--rule-soft);
  color: var(--text-muted); line-height: 1.5; vertical-align: top;
}
.legal-table th { color: var(--text); font-weight: 650; background: var(--surface); }
.legal-table code { font-size: 0.82em; color: var(--accent); }
@media (max-width: 640px) { .legal-table { display: block; overflow-x: auto; } }

/* Affiliate disclosure — required where the recommendation appears (FTA/ACL) */
.affiliate-note {
  margin: var(--space-sm) 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-faint);
}

/* Honeypot field on the signup form (templates/account_register.html).
   Positioned off-screen rather than display:none or visibility:hidden —
   some bots specifically skip fields hidden those two ways, which would
   defeat the trap. Kept out of the layout so it can't shift anything. */
.hf-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
