/* ============================================================
   GIGTIX — STYLES.CSS  v2 — Polished
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── A11y: respect OS motion setting ──────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── A11y: consistent focus ring on keyboard nav only ─────── */
*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ── Inline SVG icons — scale with font-size, tint with color ─ */
.icon {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  vertical-align: -0.15em;
  flex-shrink: 0;
  display: inline-block;
}

/* ── Logo wordmark — sized by HEIGHT only so width can breathe ─ */
.logo-wordmark {
  display: block;
  height: 1.35rem;
  width: auto;
  overflow: visible; /* Syne italic descenders must not clip */
}
@media (max-width: 780px) { .logo-wordmark { height: 1.2rem; } }
@media (max-width: 480px) { .logo-wordmark { height: 1.1rem; } }

/* ============================================================
   SPARK — Modern polish layer (CSS 2025)
   Uses: @property, @starting-style, animation-timeline: scroll(),
   text-wrap: balance/pretty, content-visibility, color-mix(),
   view-transition-name, :has().  All motion is gated on
   prefers-reduced-motion above.
   ============================================================ */

/* Animated custom property for gradient accents */
@property --spark-hue {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* Balance all headings — no more orphan words */
h1, h2, h3, .hero-title, .event-title, .page-header h1 { text-wrap: balance; }
p, .hero-sub, .event-subtitle, .event-desc { text-wrap: pretty; }

/* Grain noise overlay — faint, performance-friendly SVG data-URI */
.spark-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Hero aurora — subtle animated gradient behind hero content */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, color-mix(in oklab, var(--accent) 22%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 80% 70%, color-mix(in oklab, var(--lime) 28%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 100%, color-mix(in oklab, var(--accent) 18%, transparent) 0%, transparent 60%);
  filter: blur(30px);
  opacity: 0.8;
  z-index: 0;
  animation: spark-aurora 18s ease-in-out infinite;
  pointer-events: none;
}
@keyframes spark-aurora {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1);     opacity: 0.8; }
  50%      { transform: translate3d(3%, -2%, 0) scale(1.06); opacity: 1;   }
}

/* Gradient-filled emphasis text — used on <em> inside hero title */
.hero-title em {
  background: linear-gradient(120deg, var(--accent) 0%, var(--lime) 50%, var(--accent) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: spark-gradient 8s linear infinite;
  font-style: normal;
}
@keyframes spark-gradient {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Nav glass blur on scroll (JS toggles .is-scrolled) */
.nav { transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease; }
.nav.is-scrolled {
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 0 var(--border);
}

/* Card hover lift + accent-ring glow */
.event-card,
.ec-card,
.cat-block { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease; }
@media (hover: hover) {
  .event-card:hover,
  .ec-card:hover,
  .cat-block:hover {
    transform: translateY(-3px);
    box-shadow:
      0 12px 32px -8px color-mix(in oklab, var(--ink) 18%, transparent),
      0 0 0 2px color-mix(in oklab, var(--accent) 35%, transparent);
  }
}

/* Chip press feedback */
.bq-chip, .sb-chip, .hd-chip, .hero-tag, .view-toggle__btn {
  transition: transform 0.1s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.bq-chip:active, .sb-chip:active, .hd-chip:active, .hero-tag:active { transform: scale(0.96); }

/* Scroll-driven section reveal (Chrome 115+, Safari 26+, FF graceful) */
@supports (animation-timeline: view()) {
  .spark-reveal {
    animation: spark-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
  @keyframes spark-fade {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none;              }
  }
}

/* Intersection-Observer fallback for browsers without timeline (wired by JS) */
.spark-reveal { }
.spark-reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.6s ease;
}

/* Content-visibility perf on long grids — offscreen cards skip layout/paint */
.ev-grid-browse { content-visibility: auto; contain-intrinsic-size: 1200px 400px; }

/* Shimmer skeleton loading state */
.skeleton {
  background: linear-gradient(90deg, var(--bg-3) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
  background-size: 200% 100%;
  animation: spark-shimmer 1.4s ease-in-out infinite;
  border-radius: var(--r, 8px);
  color: transparent;
}
@keyframes spark-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* @starting-style: mobile filter sheet slides in with depth (Chrome 117+) */
@supports (transition-behavior: allow-discrete) {
  @starting-style {
    .sidebar.open {
      transform: translateY(100%);
      opacity: 0.85;
    }
  }
}

/* View Transitions API — browse card → event hero (browsers with support) */
@supports (view-transition-name: none) {
  .event-card { view-transition-name: event-card; }
  .event-hero { view-transition-name: event-hero; }
}
::view-transition-old(event-card),
::view-transition-new(event-card) { animation-duration: 0.35s; }

/* Reset spark motion for users with reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero-title em,
  .skeleton { animation: none !important; }
  .spark-reveal { opacity: 1 !important; transform: none !important; }
}

:root {
  --bg:        #f5f2ee;
  --bg-2:      #ffffff;
  --bg-3:      #f0ece6;
  --bg-4:      #e8e3dc;
  --ink:       #0f0d0b;
  --ink-2:     #2a2520;
  --ink-3:     #5a5550;
  --ink-4:     #9a9590;
  --border:    #ddd8d0;
  --border-2:  #ccc8c0;
  --accent:    #ff3c00;
  --accent-h:  #e83400;
  --lime:      #b8f000;
  --lime-h:    #a4d800;
  --green:     #00b050;
  --red:       #e03000;
  --gold:      #d4a000;
  --font-disp: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --r:         8px;
  --r-lg:      14px;
  --r-xl:      18px;
  --sh:        0 2px 12px rgba(0,0,0,0.07);
  --sh-lg:     0 8px 40px rgba(0,0,0,0.12);
  --stamp:     6px 6px 0 var(--ink);
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; }
input, select, textarea { font-family: var(--font-body); }

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-3); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0 2rem; height: 60px;
  background: var(--bg-2);
  border-bottom: 2px solid var(--ink);
}
.nav-logo { font-family: var(--font-disp); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em; color: var(--ink); flex-shrink: 0; }
.nav-logo .dot { color: var(--accent); }
.nav-links { display: flex; gap: 0; margin-left: 1rem; }
.nav-links a { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.01em; text-transform: uppercase; color: var(--ink-3); padding: 0.3rem 0.7rem; border-radius: 4px; transition: all 0.15s; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); background: var(--bg-3); }
.nav-links a.active { color: var(--ink); background: var(--lime); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.nav-cta { background: var(--accent); color: #fff; border: 2px solid var(--accent); padding: 0.45rem 1.1rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; border-radius: var(--r); transition: all 0.15s; white-space: nowrap; }
.nav-cta:hover { background: var(--accent-h); border-color: var(--accent-h); }
.nav-login { background: transparent; color: var(--ink); border: 2px solid var(--border-2); padding: 0.4rem 0.9rem; font-size: 0.78rem; font-weight: 600; border-radius: var(--r); transition: all 0.15s; }
.nav-login:hover { border-color: var(--ink); }
.nav-secure { font-size: 0.78rem; color: var(--ink-4); margin-left: auto; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero { padding: 5rem 2rem 3.5rem; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero-grain { position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"); pointer-events: none; }
.hero-inner { max-width: 1160px; margin: 0 auto; position: relative; z-index: 1; }
.hero-pill { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--lime); color: var(--ink); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.28rem 0.75rem; border-radius: 100px; margin-bottom: 1.2rem; max-width: 100%; white-space: normal; }
.hero-title { font-family: var(--font-disp); font-weight: 800; font-size: clamp(2.4rem, 7vw, 7rem); letter-spacing: -0.045em; line-height: 0.9; margin-bottom: 1.2rem; }
.hero-title em { color: var(--lime); font-style: normal; }
.hero-sub { font-size: 1rem; color: rgba(255,255,255,0.55); max-width: 420px; margin-bottom: 2.5rem; line-height: 1.6; }

.hero-search { display: flex; max-width: 820px; background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 3px solid var(--lime); box-shadow: var(--stamp); }
.hs-field { flex: 1; padding: 0.85rem 1.1rem; border-right: 2px solid var(--border); }
.hs-field:last-of-type { border-right: none; }
.hs-field label { display: block; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 2px; font-family: var(--font-mono); }
.hs-field input, .hs-field select { background: none; border: none; outline: none; font-size: 0.88rem; font-weight: 500; color: var(--ink); width: 100%; }
.hs-field select option { background: #fff; }
.hs-btn { background: var(--accent); color: #fff; border: none; padding: 0 1.8rem; font-family: var(--font-disp); font-size: 1.1rem; letter-spacing: 0.04em; transition: background 0.15s; white-space: nowrap; flex-shrink: 0; }
.hs-btn:hover { background: var(--accent-h); }

.hero-stats { display: flex; gap: 2.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.h-stat .num { font-family: var(--font-disp); font-size: 1.9rem; font-weight: 800; color: var(--lime); line-height: 1; }
.h-stat .lbl { font-size: 0.72rem; color: rgba(255,255,255,0.45); margin-top: 2px; }

/* ── FEATURED STRIP ──────────────────────────────────────── */
.featured-strip { padding: 2.5rem 2rem; background: var(--bg-2); border-bottom: 2px solid var(--border); }
.featured-strip-inner { max-width: 1160px; margin: 0 auto; }
.section-hd { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-tag { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-4); font-family: var(--font-mono); display: block; margin-bottom: 0.25rem; }
.section-hd h2 { font-family: var(--font-disp); font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.see-all { margin-left: auto; font-size: 0.8rem; font-weight: 600; color: var(--ink-3); padding-bottom: 1px; border-bottom: 2px solid var(--border-2); transition: all 0.15s; white-space: nowrap; }
.see-all:hover { color: var(--ink); border-color: var(--accent); }
.ev-grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.ev-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }

/* ── EVENT CARD ──────────────────────────────────────────── */
.event-card { background: var(--bg-2); border: 2px solid var(--ink); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; display: flex; flex-direction: column; animation: fadeUp 0.35s ease both; }
.event-card:hover { transform: translateY(-4px) translateX(-2px); box-shadow: var(--stamp); }
.event-card:nth-child(2) { animation-delay: 0.05s; }
.event-card:nth-child(3) { animation-delay: 0.10s; }
.event-card:nth-child(4) { animation-delay: 0.15s; }
.ec-poster { height: 160px; position: relative; display: flex; align-items: flex-end; padding: 0.7rem; flex-shrink: 0; overflow: hidden; }
.ec-poster-bg { position: absolute; inset: 0; z-index: 0; }
.ec-poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform 0.4s ease; }
.event-card:hover .ec-poster-img { transform: scale(1.04); }
.ec-featured-badge { position: relative; z-index: 2; }
.ec-cat { position: relative; z-index: 1; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(0,0,0,0.5); color: rgba(255,255,255,0.9); padding: 2px 7px; border-radius: 4px; backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.15); }
.ec-featured-badge { position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2; background: var(--lime); color: var(--ink); font-size: 0.55rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; }
.ec-sold-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; z-index: 3; }
.ec-sold-label { background: var(--accent); color: #fff; font-family: var(--font-disp); font-size: 1.3rem; letter-spacing: 0.1em; padding: 0.2rem 0.9rem; border-radius: var(--r); transform: rotate(-8deg); }
.ec-body { padding: 0.85rem 0.95rem 0.95rem; flex: 1; display: flex; flex-direction: column; }
.ec-title { font-family: var(--font-disp); font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 2px; }
.ec-sub { font-size: 0.72rem; color: var(--ink-3); margin-bottom: 0.55rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-meta { font-size: 0.72rem; color: var(--ink-4); line-height: 1.6; flex: 1; }
.ec-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 0.65rem; padding-top: 0.65rem; border-top: 1px solid var(--border); }
.ec-price { font-family: var(--font-disp); font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.ec-price-from { font-size: 0.6rem; font-weight: 500; color: var(--ink-4); display: block; margin-bottom: 1px; }
.ec-avail { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 7px; border-radius: 4px; white-space: nowrap; }
.ec-avail.few { background: rgba(255,60,0,0.1); color: var(--accent); }
.ec-avail.ok { background: rgba(0,176,80,0.1); color: var(--green); }
.ec-avail.sold { background: rgba(0,0,0,0.06); color: var(--ink-4); }

/* ── CATEGORY BLOCKS ─────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.cat-block { border: 2.5px solid var(--ink); border-radius: var(--r-xl); padding: 1.8rem; color: #fff; display: flex; flex-direction: column; justify-content: space-between; min-height: 160px; transition: transform 0.15s, box-shadow 0.15s; cursor: pointer; text-decoration: none; }
.cat-block:hover { transform: translateY(-4px) translateX(-2px); box-shadow: var(--stamp); }
.cat-block-icon { font-size: 2.2rem; }
.cat-block h3 { font-family: var(--font-disp); font-size: 1.55rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.cat-block p { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 3px; }

/* ── PROMO BANNER ────────────────────────────────────────── */
.promo-banner { background: var(--lime); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.promo-banner-inner { max-width: 1160px; margin: 0 auto; padding: 2.5rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.promo-banner h2 { font-family: var(--font-disp); font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 0.35rem 0 0.5rem; }
.promo-banner p { font-size: 0.88rem; color: var(--ink-3); max-width: 440px; }
.promo-banner-actions { display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; flex-shrink: 0; }

/* ── SECTION WRAPPER ─────────────────────────────────────── */
.section-wrap { padding: 3rem 2rem; max-width: 1160px; margin: 0 auto; }

/* ── BROWSE ──────────────────────────────────────────────── */
.browse-layout { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 60px); }
.sidebar { padding: 1.5rem 1.2rem; border-right: 2px solid var(--border); background: var(--bg-2); position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; }
.sb-title { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-4); font-family: var(--font-mono); margin-bottom: 1.2rem; }
.sb-group { margin-bottom: 1.3rem; }
.sb-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.45rem; display: block; }
.sb-input { width: 100%; background: var(--bg-3); border: 2px solid var(--border); color: var(--ink); padding: 0.5rem 0.7rem; border-radius: var(--r); font-size: 0.85rem; outline: none; transition: border-color 0.15s; }
.sb-input:focus { border-color: var(--ink); }
.sb-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.sb-chip { font-size: 0.72rem; font-weight: 600; padding: 0.28rem 0.65rem; border: 2px solid var(--border); border-radius: 100px; cursor: pointer; transition: all 0.15s; background: var(--bg-2); color: var(--ink-3); user-select: none; }
.sb-chip:hover { border-color: var(--ink); color: var(--ink); }
.sb-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.sb-price-row { display: flex; gap: 0.4rem; align-items: center; }
.sb-price-row .sb-input { flex: 1; }
.sb-sep { color: var(--ink-4); font-size: 0.8rem; flex-shrink: 0; }
.sb-date-chips { margin-bottom: 0.5rem; }
.sb-date-from { margin-top: 0.35rem; }
.sb-apply { width: 100%; background: var(--ink); color: #fff; border: none; padding: 0.62rem; border-radius: var(--r); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em; margin-top: 0.5rem; transition: background 0.15s; }
.sb-apply:hover { background: var(--accent); }
.sb-reset { background: none; color: var(--ink-4); border: 2px solid var(--border); padding: 0.55rem 0.9rem; border-radius: var(--r); font-size: 0.78rem; font-weight: 600; transition: all 0.15s; cursor: pointer; }
.sb-reset:hover { border-color: var(--border-2); color: var(--ink-3); }
.sb-hd { display: none; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 1rem; }
.sb-close { background: none; border: none; font-size: 1.15rem; color: var(--ink-3); cursor: pointer; padding: 0.3rem 0.5rem; border-radius: var(--r); line-height: 1; }
.sb-close:hover { background: var(--bg-3); color: var(--ink); }
.sb-drag-handle { display: none; width: 40px; height: 4px; border-radius: 100px; background: var(--border-2, rgba(26,17,8,0.25)); margin: 0.4rem auto 0.9rem; }
.sb-footer { display: flex; gap: 0.6rem; margin-top: 0.8rem; align-items: stretch; }
.sb-footer .sb-reset { flex: 0 0 auto; }
.sb-apply-cta { flex: 1; background: var(--ink); color: #fff; border: none; padding: 0.75rem 1rem; border-radius: var(--r); font-weight: 700; font-size: 0.88rem; letter-spacing: 0.01em; cursor: pointer; transition: background 0.15s; font-family: inherit; }
.sb-apply-cta:hover { background: var(--accent); }

/* Mobile-only filter trigger — compact pill, not full-width bar */
.mobile-filter-btn { display: none; align-items: center; gap: 0.5rem; background: transparent; border: 1.5px solid var(--border); border-radius: 100px; padding: 0.5rem 1rem; font-weight: 600; font-size: 0.8rem; color: var(--ink); cursor: pointer; margin-bottom: 0.85rem; font-family: inherit; align-self: flex-start; }
.mobile-filter-btn:hover { border-color: var(--ink); }
.mobile-filter-btn:active { transform: scale(0.97); }
.mfb-icon { font-size: 0.95rem; line-height: 1; }
.mfb-label { flex: 0 0 auto; }
.mfb-count { background: var(--ink); color: #fff; border-radius: 100px; font-size: 0.68rem; font-weight: 700; padding: 0.15rem 0.5rem; min-width: 1.2rem; text-align: center; font-family: var(--font-mono, inherit); line-height: 1; }

/* Backdrop (only active when sheet is open, CSS transitioned) */
.filter-backdrop { position: fixed; inset: 0; background: rgba(26,17,8,0.5); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 998; }
.filter-backdrop.open { opacity: 1; pointer-events: auto; }
.browse-main { padding: 1.5rem 1.8rem; overflow: hidden; }

/* Hero search above the events grid — reuses the homepage .hero-search
   / .hs-field / .hs-btn classes for visual consistency.  Only adds new
   rules for the browse-specific date chip row below the search. */
.browse-hero { margin-bottom: 1.4rem; }
.browse-hero .hero-search { max-width: 820px; margin: 0 auto; }
.browse-hero .hs-btn { font-size: 0.95rem; padding: 0 1.4rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.browse-hero .hs-btn.is-loading { opacity: 0.65; pointer-events: none; }
.bq-dates { display: flex; gap: 0.42rem; flex-wrap: wrap; justify-content: center; margin-top: 1rem; max-width: 820px; margin-left: auto; margin-right: auto; }
.bq-chip { flex-shrink: 0; padding: 0.55rem 1.05rem; border-radius: 100px; background: var(--bg-2); border: 1.5px solid var(--border); font-size: 0.78rem; font-weight: 600; color: var(--ink-3); cursor: pointer; font-family: inherit; transition: all 0.15s; white-space: nowrap; }
.bq-chip:hover { border-color: var(--ink); color: var(--ink); }
.bq-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Popular searches chip row under the hero */
.bq-suggestions { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center; margin-top: 0.7rem; max-width: 820px; margin-left: auto; margin-right: auto; }
.bq-suggestions__label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); font-family: var(--font-mono); align-self: center; margin-right: 0.25rem; }
.bq-suggest { background: none; border: none; padding: 0.35rem 0.75rem; border-radius: 100px; font-size: 0.78rem; font-weight: 600; color: var(--ink-3); cursor: pointer; font-family: inherit; transition: color 0.15s, background 0.15s; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-2); text-decoration-thickness: 1px; }
.bq-suggest:hover { color: var(--ink); background: var(--bg-3); text-decoration-color: var(--ink); }

/* List / Map view toggle above the events grid */
.view-toggle { display: inline-flex; background: var(--bg-2); border: 1.5px solid var(--border); border-radius: 100px; padding: 3px; gap: 2px; }
.view-toggle__btn { display: inline-flex; align-items: center; gap: 0.4rem; background: none; border: none; padding: 0.45rem 0.85rem; border-radius: 100px; font-size: 0.78rem; font-weight: 600; color: var(--ink-3); cursor: pointer; font-family: inherit; transition: all 0.15s; }
.view-toggle__btn:hover { color: var(--ink); }
.view-toggle__btn.is-active { background: var(--ink); color: #fff; }
.view-toggle__btn .icon { font-size: 0.95rem; }

/* Browse map container (Leaflet lazy-loaded) */
#browseMap { width: 100%; height: 560px; border-radius: var(--r-lg); border: 1.5px solid var(--border); background: var(--bg-3); display: none; }
#browseMap.is-active { display: block; }
.leaflet-popup-content-wrapper { font-family: var(--font-body); border-radius: var(--r-lg); }
.leaflet-popup-content { margin: 0.6rem 0.8rem; line-height: 1.4; font-size: 0.82rem; }
.leaflet-popup-content .lpop-t { font-family: var(--font-disp); font-weight: 800; font-size: 0.88rem; color: var(--ink); margin-bottom: 2px; }
.leaflet-popup-content .lpop-s { color: var(--ink-3); font-size: 0.74rem; }
.leaflet-popup-content a { color: var(--accent); font-weight: 700; font-size: 0.78rem; display: inline-block; margin-top: 0.3rem; }
@media (max-width: 780px) {
  #browseMap { height: 420px; border-radius: 12px; }
  .bq-suggestions { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: 0.2rem; }
  .bq-suggestions::-webkit-scrollbar { display: none; }
  .bq-suggestions__label { display: none; }
}

.browse-hd { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 1.2rem; gap: 1rem; flex-wrap: wrap; }
.browse-hd h1 { font-family: var(--font-disp); font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; }
.browse-count { font-size: 0.78rem; color: var(--ink-4); margin-top: 2px; }
.sort-bar { display: flex; align-items: center; gap: 0.5rem; }
.sort-lbl { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); font-family: var(--font-mono); }
.sort-select { background: var(--bg-2); border: 2px solid var(--border); color: var(--ink); padding: 0.4rem 0.65rem; border-radius: var(--r); font-size: 0.82rem; font-weight: 500; outline: none; cursor: pointer; }
.ev-grid-browse { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px,1fr)); gap: 1rem; }
.no-results { grid-column: 1/-1; text-align: center; padding: 4rem 2rem; color: var(--ink-4); }
.no-results span { font-size: 2rem; display: block; margin-bottom: 0.7rem; }

/* ── EVENT DETAIL ────────────────────────────────────────── */
.event-detail-page { max-width: 1160px; margin: 0 auto; padding: 1.8rem 2rem 4rem; }
.back-link { font-size: 0.82rem; font-weight: 600; color: var(--ink-3); display: inline-flex; align-items: center; gap: 0.35rem; margin-bottom: 1.4rem; transition: color 0.15s; }
.back-link:hover { color: var(--accent); }
.ed-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.ed-hero { border-radius: var(--r-xl); overflow: hidden; height: 320px; position: relative; border: 3px solid var(--ink); box-shadow: var(--stamp); margin-bottom: 1.5rem; }
.ed-hero-bg { position: absolute; inset: 0; z-index: 0; }
.ed-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ed-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.05) 55%); padding: 1.4rem; display: flex; flex-direction: column; justify-content: flex-end; z-index: 2; }
.ed-genre { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--lime); color: var(--ink); padding: 2px 9px; border-radius: 4px; width: fit-content; margin-bottom: 0.5rem; }
.ed-title { font-family: var(--font-disp); font-size: 2.6rem; font-weight: 800; color: #fff; line-height: 0.95; letter-spacing: -0.04em; }
.ed-subtitle { font-size: 0.92rem; color: rgba(255,255,255,0.65); margin-top: 0.35rem; }
.ed-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.3rem; }
.ed-chip { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--bg-2); border: 2px solid var(--border); padding: 0.38rem 0.75rem; border-radius: var(--r); font-size: 0.8rem; font-weight: 500; }
.ed-desc { font-size: 0.9rem; color: var(--ink-2); line-height: 1.75; margin-bottom: 1.4rem; }
.ed-promoter { display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 1rem; background: var(--bg-3); border: 2px solid var(--border); border-radius: var(--r); }
.ed-promo-av { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 0.82rem; flex-shrink: 0; }
.ed-promo-lbl { font-size: 0.65rem; color: var(--ink-4); }
.ed-promo-name { font-size: 0.88rem; font-weight: 600; }

/* Ticket panel */
.ticket-panel { background: var(--bg-2); border: 3px solid var(--ink); border-radius: var(--r-xl); box-shadow: var(--stamp); overflow: hidden; position: sticky; top: 76px; }
.tp-head { padding: 1.1rem 1.3rem; background: var(--ink); color: #fff; }
.tp-head h3 { font-family: var(--font-disp); font-size: 1.2rem; font-weight: 700; }
.tp-head p { font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-top: 1px; }
.tp-tiers { padding: 1rem 1.2rem 0; }
.tier-row { padding: 0.85rem; border: 2px solid var(--border); border-radius: var(--r); margin-bottom: 0.6rem; cursor: pointer; transition: all 0.15s; }
.tier-row:hover:not(.sold-out) { border-color: var(--ink-3); }
.tier-row.selected { border-color: var(--accent); background: rgba(255,60,0,0.03); }
.tier-row.sold-out { opacity: 0.5; cursor: not-allowed; }
.tier-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.tier-name { font-weight: 700; font-size: 0.88rem; }
.tier-price { font-family: var(--font-disp); font-size: 1.25rem; font-weight: 800; flex-shrink: 0; }
.tier-desc { font-size: 0.72rem; color: var(--ink-4); margin-top: 2px; }
.tier-avail-row { display: flex; align-items: center; justify-content: space-between; margin-top: 0.45rem; }
.tier-avail-label { font-size: 0.68rem; font-weight: 700; }
.tier-avail-label.few { color: var(--accent); }
.tier-avail-label.ok { color: var(--green); }
.tier-avail-label.gone { color: var(--ink-4); }
.tier-bar-wrap { flex: 1; height: 4px; background: var(--bg-4); border-radius: 2px; margin-left: 0.7rem; overflow: hidden; }
.tier-bar-fill { height: 100%; border-radius: 2px; }
.tier-bar-fill.few { background: var(--accent); }
.tier-bar-fill.ok { background: var(--green); }
.tier-bar-fill.gone { background: var(--border-2); }
.tier-qty { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.65rem; padding-top: 0.65rem; border-top: 1px solid var(--border); }
.qty-btn { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); background: var(--bg-3); font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; transition: all 0.15s; flex-shrink: 0; }
.qty-btn:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.qty-num { font-family: var(--font-disp); font-size: 1.1rem; font-weight: 700; min-width: 1.5rem; text-align: center; }
.qty-hint { font-size: 0.7rem; color: var(--ink-4); margin-left: auto; }
.tp-summary { padding: 0.9rem 1.2rem; background: var(--bg-3); border-top: 2px solid var(--border); min-height: 80px; }
.tp-line { display: flex; justify-content: space-between; font-size: 0.82rem; padding: 0.25rem 0; color: var(--ink-3); }
.tp-line.total { font-family: var(--font-disp); font-size: 1.35rem; font-weight: 800; color: var(--ink); padding-top: 0.55rem; margin-top: 0.3rem; border-top: 2px solid var(--border-2); }
.tp-empty { font-size: 0.82rem; color: var(--ink-4); text-align: center; padding: 0.8rem 0; }
.tp-actions { padding: 0.9rem 1.2rem 1.1rem; }
.tp-cta { width: 100%; background: var(--accent); color: #fff; border: 3px solid var(--accent); padding: 0.9rem; font-family: var(--font-disp); font-size: 1.25rem; letter-spacing: 0.04em; border-radius: var(--r); transition: all 0.15s; box-shadow: 4px 4px 0 var(--ink); }
.tp-cta:hover { background: var(--ink); border-color: var(--ink); box-shadow: none; transform: translate(4px,4px); }
.tp-cta:disabled { background: var(--border-2); border-color: var(--border-2); color: var(--ink-4); box-shadow: none; transform: none; cursor: not-allowed; }
.tp-trust { font-size: 0.68rem; color: var(--ink-4); text-align: center; margin-top: 0.55rem; }

/* ── CHECKOUT ────────────────────────────────────────────── */
.checkout-page { max-width: 1040px; margin: 0 auto; padding: 2rem 2rem 4rem; }
.checkout-title { font-family: var(--font-disp); font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 1.6rem; }
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.8rem; }
.co-section { background: var(--bg-2); border: 2px solid var(--border); border-radius: var(--r-lg); padding: 1.4rem; margin-bottom: 0.9rem; }
.co-section h3 { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-4); font-family: var(--font-mono); margin-bottom: 1rem; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.fg { margin-bottom: 0.85rem; }
.fg:last-child { margin-bottom: 0; }
.fg label { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.32rem; }
.fi { width: 100%; background: var(--bg-3); border: 2px solid var(--border); color: var(--ink); padding: 0.58rem 0.75rem; border-radius: var(--r); font-size: 0.88rem; outline: none; transition: border-color 0.15s; -webkit-appearance: none; }
.fi:focus { border-color: var(--ink); background: #fff; }
.fi.err { border-color: var(--accent); }
.fi-hint { font-size: 0.68rem; color: var(--ink-4); margin-top: 3px; display: block; }
.card-brands { display: flex; gap: 0.4rem; margin-bottom: 0.85rem; flex-wrap: wrap; }
.card-brand { font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; background: var(--bg-3); border: 2px solid var(--border); padding: 2px 8px; border-radius: 4px; color: var(--ink-3); }
.terms-row { display: flex; align-items: flex-start; gap: 0.5rem; margin: 1rem 0; font-size: 0.82rem; color: var(--ink-3); }
.terms-row input { accent-color: var(--accent); margin-top: 3px; flex-shrink: 0; }
.terms-row a { color: var(--accent); text-decoration: underline; }
.pay-btn { width: 100%; background: var(--accent); color: #fff; border: 3px solid var(--accent); padding: 0.95rem; font-family: var(--font-disp); font-size: 1.35rem; letter-spacing: 0.04em; border-radius: var(--r); transition: all 0.15s; box-shadow: 4px 4px 0 var(--ink); }
.pay-btn:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); box-shadow: none; transform: translate(4px,4px); }
.pay-btn:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.security-row { display: flex; gap: 1rem; justify-content: center; margin-top: 0.6rem; font-size: 0.68rem; color: var(--ink-4); flex-wrap: wrap; }
.order-box { background: var(--bg-2); border: 3px solid var(--ink); border-radius: var(--r-xl); box-shadow: var(--stamp); position: sticky; top: 76px; overflow: hidden; }
.ob-head { padding: 1rem 1.2rem; background: var(--ink); color: #fff; }
.ob-head h3 { font-family: var(--font-disp); font-size: 1.1rem; }
.ob-body { padding: 1.1rem 1.2rem; }
.ob-event { margin-bottom: 0.9rem; padding-bottom: 0.9rem; border-bottom: 2px solid var(--border); }
.ob-event h4 { font-family: var(--font-disp); font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }
.ob-event p { font-size: 0.75rem; color: var(--ink-4); line-height: 1.6; margin-top: 2px; }
.ob-line { display: flex; justify-content: space-between; font-size: 0.83rem; padding: 0.28rem 0; color: var(--ink-3); }
.ob-line.total { font-family: var(--font-disp); font-size: 1.35rem; font-weight: 800; color: var(--ink); padding-top: 0.65rem; margin-top: 0.3rem; border-top: 2px solid var(--border); }
.ob-guarantee { display: flex; gap: 0.65rem; align-items: flex-start; background: rgba(0,176,80,0.06); border: 2px solid rgba(0,176,80,0.18); border-radius: var(--r); padding: 0.75rem; margin-top: 0.9rem; }
.ob-g-icon { font-size: 1.25rem; flex-shrink: 0; }
.ob-g-text strong { font-size: 0.8rem; display: block; }
.ob-g-text p { font-size: 0.7rem; color: var(--ink-4); }

/* ── E-TICKET ────────────────────────────────────────────── */
.eticket-page { max-width: 540px; margin: 0 auto; padding: 2rem 1rem 4rem; }
.et-header { text-align: center; margin-bottom: 1.4rem; }
.et-header h1 { font-family: var(--font-disp); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.et-header p { font-size: 0.8rem; color: var(--ink-4); margin-top: 0.3rem; }
.eticket-card { background: var(--bg-2); border: 3px solid var(--ink); border-radius: var(--r-xl); overflow: hidden; box-shadow: 8px 8px 0 var(--ink); }
.et-poster { height: 180px; position: relative; }
.et-poster-bg { position: absolute; inset: 0; }
.et-poster-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.1) 55%); padding: 1.2rem; display: flex; flex-direction: column; justify-content: flex-end; }
.et-event-name { font-family: var(--font-disp); font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.et-event-sub { color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-top: 3px; }
.et-body { padding: 1.3rem 1.4rem; }
.et-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 1.2rem; }
.et-info { background: var(--bg-3); border-radius: var(--r); padding: 0.65rem 0.85rem; }
.et-info-lbl { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); font-family: var(--font-mono); }
.et-info-val { font-size: 0.9rem; font-weight: 700; margin-top: 2px; }
.et-tear { border: none; border-top: 3px dashed var(--border-2); margin: 0 -1.4rem 1.2rem; position: relative; }
.et-tear::before, .et-tear::after { content: ''; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 3px solid var(--ink); }
.et-tear::before { left: -13px; }
.et-tear::after { right: -13px; }
.et-qr-section { text-align: center; }
.et-qr-lbl { font-size: 0.68rem; color: var(--ink-4); margin-bottom: 0.5rem; }
.et-qr-frame { display: inline-block; padding: 0.85rem; background: #fff; border: 3px solid var(--ink); border-radius: var(--r); margin-bottom: 0.6rem; }
.et-ref { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 700; }
.et-holder { font-size: 0.75rem; color: var(--ink-4); margin-top: 2px; }
.et-actions { display: flex; gap: 0.7rem; justify-content: center; margin-top: 1.4rem; flex-wrap: wrap; }

/* ── CREATE EVENT ────────────────────────────────────────── */
.create-page { max-width: 800px; margin: 0 auto; padding: 2rem 2rem 4rem; }
.page-title { font-family: var(--font-disp); font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 0.3rem; }
.page-sub { color: var(--ink-3); font-size: 0.88rem; margin-bottom: 2rem; }
.create-card { background: var(--bg-2); border: 2px solid var(--border); border-radius: var(--r-lg); padding: 1.6rem; margin-bottom: 1.1rem; }
.create-card-title { font-family: var(--font-disp); font-size: 1.05rem; font-weight: 700; margin-bottom: 1.2rem; padding-bottom: 0.65rem; border-bottom: 2px solid var(--border); display: flex; align-items: center; gap: 0.5rem; }
.create-card-title span { font-size: 1.1rem; }
.form-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.9rem; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.textarea-fi { width: 100%; background: var(--bg-3); border: 2px solid var(--border); color: var(--ink); padding: 0.65rem 0.75rem; border-radius: var(--r); font-size: 0.88rem; outline: none; resize: vertical; min-height: 95px; font-family: var(--font-body); transition: border-color 0.15s; }
.textarea-fi:focus { border-color: var(--ink); background: #fff; }
.tiers-table { width: 100%; border-collapse: collapse; margin-bottom: 0.5rem; }
.tiers-table th { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); font-family: var(--font-mono); padding: 0 0.5rem 0.5rem; text-align: left; }
.tiers-table td { padding: 0.3rem 0.4rem; }
.fi-sm { width: 100%; background: var(--bg-3); border: 2px solid var(--border-2); color: var(--ink); padding: 0.4rem 0.55rem; border-radius: 6px; font-size: 0.82rem; outline: none; transition: border-color 0.15s; }
.fi-sm:focus { border-color: var(--ink); background: #fff; }
.tier-del { background: none; border: 2px solid var(--border-2); width: 28px; height: 28px; border-radius: 50%; color: var(--ink-4); font-size: 0.9rem; display: flex; align-items: center; justify-content: center; transition: all 0.15s; flex-shrink: 0; }
.tier-del:hover { border-color: var(--accent); color: var(--accent); }
.add-tier-btn { background: none; border: 2px dashed var(--border-2); width: 100%; padding: 0.6rem; border-radius: var(--r); font-size: 0.8rem; font-weight: 600; color: var(--ink-3); transition: all 0.15s; margin-top: 0.2rem; }
.add-tier-btn:hover { border-color: var(--ink); color: var(--ink); }
.upload-zone { border: 3px dashed var(--border-2); border-radius: var(--r-lg); padding: 2.2rem; text-align: center; cursor: pointer; transition: all 0.15s; background: var(--bg-3); }
.upload-zone:hover { border-color: var(--accent); background: rgba(255,60,0,0.02); }
.upload-zone .uz-icon { font-size: 2.2rem; margin-bottom: 0.45rem; }
.upload-zone p { font-weight: 600; margin-bottom: 0.2rem; font-size: 0.9rem; }
.upload-zone small { color: var(--ink-4); font-size: 0.72rem; }
.fee-info { background: rgba(184,240,0,0.14); border: 2px solid rgba(184,240,0,0.5); border-radius: var(--r); padding: 1rem 1.2rem; margin-bottom: 1.1rem; display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; font-size: 0.85rem; }
.fee-info strong { display: block; font-weight: 700; margin-bottom: 2px; }
.fee-info span { color: var(--ink-3); font-size: 0.8rem; }
.create-actions { display: flex; gap: 0.8rem; justify-content: flex-end; padding-top: 0.3rem; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.58rem 1.3rem; border-radius: var(--r); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em; border: 2px solid; transition: all 0.15s; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ink:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border-2); }
.btn-outline:hover { border-color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-h); border-color: var(--accent-h); }
.btn-lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn-lime:hover { background: var(--lime-h); border-color: var(--lime-h); }
.btn-sm { padding: 0.35rem 0.8rem; font-size: 0.75rem; }
.btn-full { width: 100%; }
.btn-stamp { box-shadow: 4px 4px 0 var(--ink); }
.btn-stamp:hover { box-shadow: none; transform: translate(4px,4px); }

/* ── DASHBOARD SHARED ────────────────────────────────────── */
.dash-body { background: var(--bg); }
.dash-login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--ink); }
.dash-login-box { background: var(--bg-2); border: 3px solid var(--lime); border-radius: var(--r-xl); padding: 2.2rem; width: 100%; max-width: 400px; box-shadow: 8px 8px 0 var(--lime); }
.dash-login-box .logo { font-family: var(--font-disp); font-size: 1.4rem; font-weight: 800; margin-bottom: 0.2rem; }
.dash-login-box .logo .dot { color: var(--accent); }
.dash-login-box h2 { font-family: var(--font-disp); font-size: 1.4rem; font-weight: 800; margin: 0.4rem 0 0.2rem; }
.dash-login-box p { font-size: 0.82rem; color: var(--ink-3); margin-bottom: 1.3rem; }
.login-err { color: var(--accent); font-size: 0.78rem; min-height: 1em; margin: 0.3rem 0; }
.dash-demo { font-size: 0.68rem; color: var(--ink-4); text-align: center; margin-top: 0.75rem; }
.dash-wrap { display: flex; min-height: 100vh; }
.dash-sidebar { width: 220px; flex-shrink: 0; background: var(--ink); color: #fff; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.dash-logo { font-family: var(--font-disp); font-size: 1.25rem; font-weight: 800; padding: 1.2rem 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.08); letter-spacing: -0.02em; }
.dash-logo .dot { color: var(--lime); }
.dash-nav { flex: 1; padding: 0.9rem 0.7rem; display: flex; flex-direction: column; gap: 1px; }
.dash-nav-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.75rem; font-size: 0.83rem; font-weight: 500; color: rgba(255,255,255,0.5); border-radius: var(--r); cursor: pointer; transition: all 0.15s; }
.dash-nav-item:hover { color: #fff; background: rgba(255,255,255,0.07); }
.dash-nav-item.active { color: var(--ink); background: var(--lime); }
.dash-nav-item .ni { font-size: 0.95rem; flex-shrink: 0; }
.dash-foot { padding: 0.8rem 0.7rem; border-top: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; gap: 1px; }
.dash-user-label { font-size: 0.7rem; color: rgba(255,255,255,0.35); padding: 0 0.75rem 0.4rem; }
.dash-main { flex: 1; padding: 1.8rem 2rem; overflow: auto; background: var(--bg); }
.dash-page-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; gap: 1rem; flex-wrap: wrap; }
.dash-page-hd h1 { font-family: var(--font-disp); font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; }
.dash-section { display: none; }
.dash-section.active { display: block; }
.kpi-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.9rem; margin-bottom: 1.3rem; }
.kpi { background: var(--bg-2); border: 2px solid var(--border); border-radius: var(--r-lg); padding: 1.1rem 1.2rem; }
.kpi-lbl { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); font-family: var(--font-mono); margin-bottom: 0.35rem; }
.kpi-val { font-family: var(--font-disp); font-size: 1.9rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.kpi-val.warn { color: var(--accent); }
.kpi-delta { font-size: 0.72rem; margin-top: 0.3rem; font-weight: 600; color: var(--ink-4); }
.kpi-delta.up { color: var(--green); }
.kpi-delta.warn { color: var(--gold); }
.dash-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-bottom: 0.9rem; }
.dash-card { background: var(--bg-2); border: 2px solid var(--border); border-radius: var(--r-lg); padding: 1.2rem; margin-bottom: 0.9rem; }
.dash-card-hd { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); font-family: var(--font-mono); margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: center; }
.dtable { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.dtable th { text-align: left; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); padding: 0.35rem 0.5rem; border-bottom: 2px solid var(--border); white-space: nowrap; }
.dtable td { padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--border); color: var(--ink-2); vertical-align: middle; }
.dtable tr:last-child td { border-bottom: none; }
.dtable tr:hover td { background: var(--bg-3); }
.dtable code { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-4); }
.cap-bar { display: inline-flex; align-items: center; gap: 0.4rem; }
.cap-bar-track { width: 60px; height: 5px; background: var(--bg-4); border-radius: 3px; overflow: hidden; }
.cap-bar-fill { height: 100%; border-radius: 3px; }
.cap-bar-fill.hi { background: var(--accent); }
.cap-bar-fill.mid { background: var(--gold); }
.cap-bar-fill.lo { background: var(--green); }
.status-pill { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 7px; border-radius: 100px; white-space: nowrap; }
.s-confirmed,.s-delivered,.s-live,.s-verified { background: rgba(0,176,80,0.1); color: var(--green); }
.s-refunded,.s-suspended { background: rgba(255,60,0,0.1); color: var(--accent); }
.s-pending,.s-draft { background: rgba(212,160,0,0.12); color: var(--gold); }
.ab-btn { background: var(--bg-3); border: 2px solid var(--border); color: var(--ink-3); padding: 2px 9px; border-radius: 4px; font-size: 0.72rem; font-weight: 600; margin-right: 3px; transition: all 0.15s; }
.ab-btn:hover { border-color: var(--ink); color: var(--ink); }
.ab-btn.approve { color: var(--green); border-color: rgba(0,176,80,0.3); }
.ab-btn.reject { color: var(--accent); border-color: rgba(255,60,0,0.3); }
.rev-chart { display: flex; align-items: flex-end; gap: 0.5rem; height: 130px; }
.rc-col { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.rc-val { font-family: var(--font-mono); font-size: 0.58rem; color: var(--ink-4); white-space: nowrap; }
.rc-bar { width: 100%; border-radius: 4px 4px 0 0; min-height: 4px; transition: height 0.5s ease; }
.rc-lbl { font-size: 0.62rem; color: var(--ink-4); white-space: nowrap; }
.event-row { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.1rem; background: var(--bg-2); border: 2px solid var(--border); border-radius: var(--r-lg); margin-bottom: 0.7rem; transition: border-color 0.15s; }
.event-row:hover { border-color: var(--border-2); }
.event-row-thumb { width: 48px; height: 48px; border-radius: var(--r); border: 2px solid var(--border); flex-shrink: 0; }
.event-row-info { flex: 1; min-width: 0; }
.event-row-info h4 { font-family: var(--font-disp); font-size: 0.97rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-row-info p { font-size: 0.72rem; color: var(--ink-4); margin-top: 2px; }
.event-row-cap { flex-shrink: 0; }
.event-row-rev { text-align: right; flex-shrink: 0; }
.event-row-rev strong { font-family: var(--font-disp); font-size: 1.2rem; font-weight: 800; display: block; }
.event-row-rev span { font-size: 0.68rem; color: var(--ink-4); }
.featured-slot { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0.9rem; background: var(--bg-3); border: 2px solid var(--border); border-radius: var(--r); margin-bottom: 0.5rem; }
.featured-slot-num { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-4); min-width: 1.2rem; }
.featured-slot-thumb { width: 30px; height: 30px; border-radius: 5px; border: 2px solid var(--border); flex-shrink: 0; }
.featured-slot-info { flex: 1; min-width: 0; }
.featured-slot-info strong { font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.featured-slot-info span { font-size: 0.7rem; color: var(--ink-4); }

/* ── MODAL ───────────────────────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 500; background: rgba(15,13,11,0.65); backdrop-filter: blur(4px); align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.open { display: flex; }
.modal { background: var(--bg-2); border: 3px solid var(--ink); border-radius: var(--r-xl); padding: 2rem; max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: 8px 8px 0 var(--ink); }
.modal-close { position: absolute; top: 0.9rem; right: 0.9rem; background: var(--bg-3); border: 2px solid var(--border); width: 30px; height: 30px; border-radius: 50%; color: var(--ink-3); font-size: 0.95rem; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.modal-close:hover { border-color: var(--ink); color: var(--ink); }
.modal-success { text-align: center; padding: 0.5rem; }
.modal-success .icon { font-size: 3.2rem; display: block; margin-bottom: 0.9rem; }
.modal-success h2 { font-family: var(--font-disp); font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.4rem; }
.modal-success p { font-size: 0.85rem; color: var(--ink-3); margin-bottom: 0.4rem; }
.modal-success .ref { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-4); }
.modal-success-actions { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer { background: var(--ink); color: rgba(255,255,255,0.5); padding: 2.5rem 2rem 1.5rem; border-top: 3px solid var(--ink); }
.footer-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 1.8rem; }
.footer-brand .logo { font-family: var(--font-disp); font-size: 1.3rem; font-weight: 800; color: #fff; }
.footer-brand .logo .dot { color: var(--lime); }
.footer-brand p { font-size: 0.78rem; margin-top: 0.45rem; color: rgba(255,255,255,0.35); line-height: 1.55; max-width: 200px; }
.footer-col h4 { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 0.7rem; font-family: var(--font-mono); }
.footer-col a { display: block; font-size: 0.82rem; margin-bottom: 0.35rem; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 1.2rem; display: flex; justify-content: space-between; font-size: 0.72rem; max-width: 1160px; margin: 0 auto; flex-wrap: wrap; gap: 0.5rem; }

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeUp { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }
@keyframes spin { to { transform:rotate(360deg); } }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ev-grid-4 { grid-template-columns: repeat(3,1fr); }
  .kpi-row { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 960px) {
  .ev-grid-4 { grid-template-columns: repeat(2,1fr); }
  .browse-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: none; border-bottom: 2px solid var(--border); }
  .ed-layout { grid-template-columns: 1fr; }
  .ticket-panel { position: static; }
  .checkout-layout { grid-template-columns: 1fr; }
  .order-box { position: static; }
  .cat-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .form-3 { grid-template-columns: 1fr 1fr; }
  .dash-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding: 3rem 1.5rem 2.5rem; }
  .hero-search { flex-direction: column; }
  .hs-field { border-right: none; border-bottom: 2px solid var(--border); }
  .hero-stats { gap: 1.5rem; }
  .ev-grid-4, .ev-grid-3 { grid-template-columns: repeat(2,1fr); }
  .cat-grid { grid-template-columns: 1fr; }
  .featured-strip, .section-wrap { padding: 2rem 1.5rem; }
  .promo-banner-inner { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .form-2, .form-3 { grid-template-columns: 1fr; }
  .checkout-page, .create-page, .eticket-page, .event-detail-page { padding: 1.5rem 1rem 3rem; }
}
@media (max-width: 480px) {
  .ev-grid-4, .ev-grid-3 { grid-template-columns: 1fr; }
  .dash-wrap { flex-direction: column; }
  .dash-sidebar { width: 100%; height: auto; position: static; }
  .dash-nav { flex-direction: row; flex-wrap: wrap; gap: 0.3rem; padding: 0.6rem; }
  .dash-nav-item { font-size: 0.75rem; padding: 0.4rem 0.6rem; }
  .dash-foot { flex-direction: row; padding: 0.5rem; }
}

/* ── SHOWDAY POLISH — NEW RULES ONLY ─────────────────────── */

/* Hero category tags */
.hero-tags { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.hero-tag { display: inline-flex; align-items: center; gap: 0.3rem; background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.7); font-size: 0.78rem; font-weight: 500; padding: 0.3rem 0.8rem; border-radius: 100px; transition: all 0.15s; text-decoration: none; }
.hero-tag:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* Category color classes — must override background */
.cat-music   { background: linear-gradient(135deg, #1a0533 0%, #4a0d8f 100%) !important; }
.cat-sport   { background: linear-gradient(135deg, #00205b 0%, #0047cc 100%) !important; }
.cat-theatre { background: linear-gradient(135deg, #2d1b00 0%, #b85e00 100%) !important; }
.cat-block-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.cat-arrow { font-size: 1.1rem; opacity: 0.45; transition: all 0.15s; }
.cat-block:hover .cat-arrow { opacity: 1; transform: translateX(3px); }

/* Mobile hero fix */
@media (max-width: 720px) {
  .hero-title { font-size: clamp(2.2rem, 9.5vw, 3.2rem) !important; }
  .hero-pill { font-size: 0.6rem !important; white-space: normal !important; }
  .hero-search { flex-direction: column !important; }
  .hs-field { border-right: none !important; border-bottom: 1.5px solid var(--border) !important; max-width: 100% !important; }
  .hs-btn { padding: 0.85rem !important; }
  .hero-stats { gap: 1.5rem !important; }
  .h-stat .num { font-size: 1.5rem !important; }
  .cat-block { min-height: 130px !important; }
  .cat-grid { grid-template-columns: 1fr !important; gap: 0.75rem !important; }
}


/* ═══════════════════════════════════════════════════════════
   SHOWDAY — Mobile & Centering Overhaul (Apr 2026)
   ═══════════════════════════════════════════════════════════ */

/* ── Global centering ──────────────────────────────────────── */
.section-wrap, .featured-strip-inner, .promo-banner-inner {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.section-hd { text-align: left; }

/* ── Featured events grid ──────────────────────────────────── */
.ev-grid-featured {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

/* ── Event cards — better mobile stacking ──────────────────── */
.event-card {
  border-radius: 14px;
  overflow: hidden;
}

/* ── Promo banner centering ────────────────────────────────── */
.promo-banner { padding: 0 1.5rem; }
.promo-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* ── Nav mobile ────────────────────────────────────────────── */
@media (max-width: 720px) {
  .nav { padding: 0 1rem; }
  .nav-right { gap: 0.4rem; }
  .nav-cta { padding: 0.45rem 0.8rem; font-size: 0.72rem; }
  .nav-login { font-size: 0.72rem; padding: 0.4rem 0.6rem; }
}

/* ── Hero — fully centred on all screens ───────────────────── */
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.hero-sub {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-search {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.hero-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hero-stats {
  display: flex;
  justify-content: center;
}

/* ── Featured strip centering ──────────────────────────────── */
.featured-strip {
  padding: 0 1.5rem;
}

/* ── Tablet (720–960px) ────────────────────────────────────── */
@media (max-width: 960px) {
  .ev-grid-featured { grid-template-columns: repeat(2, 1fr); }
  .promo-banner-inner { flex-direction: column; text-align: center; }
  .promo-banner-actions { justify-content: center; }
  .vp-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile (720px and below) ──────────────────────────────── */
@media (max-width: 720px) {
  /* Hero */
  .hero { padding: 2.5rem 1rem 2rem; }
  .hero-pill { font-size: 0.58rem; padding: 5px 10px; }
  .hero-title { font-size: clamp(2rem, 9vw, 3rem); }
  .hero-sub { font-size: 0.88rem; margin-bottom: 1.5rem; }
  .hero-search { flex-direction: column; border-radius: 14px; }
  .hs-field { border-right: none; border-bottom: 1.5px solid var(--border); }
  .hs-btn { border-radius: 0 0 12px 12px; }
  .hero-stats { gap: 1.25rem; flex-wrap: wrap; }
  .h-stat .num { font-size: 1.4rem; }

  /* Sections */
  .section-wrap, .featured-strip { padding: 0 1rem; }
  .section-wrap { padding-top: 2rem; padding-bottom: 0.5rem; }
  .section-hd { flex-direction: column; gap: 0.3rem; align-items: flex-start; }
  .section-hd h2 { font-size: 1.3rem; }
  .see-all { font-size: 0.75rem; }

  /* Event grid */
  .ev-grid-featured { grid-template-columns: 1fr; gap: 0.75rem; }

  /* Venue + promoter grids on homepage */
  .vp-grid { grid-template-columns: 1fr; gap: 0.75rem; }

  /* Categories */
  .cat-grid { grid-template-columns: 1fr; gap: 0.6rem; }
  .cat-block { min-height: 100px; padding: 1rem; }

  /* Promo banner */
  .promo-banner { padding: 0 1rem; }
  .promo-banner-inner {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }
  .promo-banner h2 { font-size: 1.5rem; }
  .promo-banner-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  .promo-banner-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  .footer-col { text-align: center; }
  .footer-brand { text-align: center; }
  .footer-bottom {
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
  }
}

/* ── Small phones (480px and below) ────────────────────────── */
@media (max-width: 480px) {
  .hero { padding: 2rem 0.75rem 1.5rem; }
  .hero-title { font-size: clamp(1.75rem, 8.5vw, 2.5rem); }
  .hero-sub { font-size: 0.82rem; }
  .hero-tags { gap: 0.35rem; }
  .hero-tag { font-size: 0.7rem; padding: 0.35rem 0.7rem; }

  .section-wrap { padding: 0 0.75rem; }
  .section-hd h2 { font-size: 1.15rem; }

  /* Event cards tighter */
  .ec-body { padding: 0.75rem; }
  .ec-title { font-size: 0.9rem; }
  .ec-meta { font-size: 0.72rem; }

  /* Nav */
  .nav { padding: 0 0.75rem; height: 52px; }
  .nav-logo span { font-size: 1.05rem; }
  .nav-cta { padding: 0.4rem 0.65rem; font-size: 0.68rem; }
}

/* ── Browse page mobile ────────────────────────────────────── */
@media (max-width: 780px) {
  .browse-layout { grid-template-columns: 1fr; padding: 1rem; }

  /* Sidebar becomes a bottom sheet: the whole sheet scrolls,
     header and footer use position:sticky to stay in view. */
  .sidebar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    top: auto;
    max-height: 88vh;
    height: auto;
    border-right: none;
    border-top: 1.5px solid var(--border);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -16px 40px rgba(26,17,8,0.22);
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    padding: 0 0 calc(0.5rem + env(safe-area-inset-bottom, 0)) 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar.open { transform: translateY(0); }

  .sidebar .sb-drag-handle { display: block; margin: 0.55rem auto 0.35rem; }

  /* Sticky header with close button — always on top of the scroll region */
  .sidebar .sb-hd {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--bg-2);
    padding: 0.4rem 1.15rem 0.7rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.9rem;
  }
  .sidebar .sb-title { margin-bottom: 0; font-size: 0.92rem; letter-spacing: 0.14em; }
  .sidebar .sb-close { font-size: 1.4rem; padding: 0.4rem 0.65rem; margin: -0.15rem -0.35rem -0.15rem 0; min-width: 44px; min-height: 44px; }

  .sidebar .sb-group { padding: 0 1.15rem; }
  .sidebar .sb-group:last-of-type { padding-bottom: 0.5rem; }

  /* Sticky footer with Reset + primary Apply — always reachable */
  .sidebar .sb-footer {
    position: sticky;
    bottom: 0;
    z-index: 3;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 0.75rem 1.15rem;
    margin-top: 0.5rem;
    gap: 0.6rem;
  }
  .sidebar .sb-apply-cta { padding: 0.85rem 1rem; font-size: 0.92rem; }

  .mobile-filter-btn { display: inline-flex; }
  .browse-header { flex-direction: column; align-items: flex-start; }

  /* When sheet is open, lock body scroll via class added by JS */
  body.filter-open { overflow: hidden; }
}

/* ── Event detail page mobile ──────────────────────────────── */
@media (max-width: 780px) {
  .page-wrap { grid-template-columns: 1fr; padding: 1rem; gap: 1.5rem; }
  .event-hero { height: 240px; }
  .hero-content { padding: 1.25rem; }
  .meta-strip { flex-direction: column; gap: 0.75rem; }
}

/* ── Venue + Promoter detail pages mobile ──────────────────── */
@media (max-width: 780px) {
  .venue-hero, .promoter-hero { height: 220px; }
  .hero-content { flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 1.25rem; }
  .venue-name, .promoter-name { font-size: 1.6rem; }
  .stats-bar { padding: 1rem; gap: 1.25rem; }
  .info-card { margin-bottom: 0.75rem; }
  .events-grid { gap: 0.6rem; }
  .event-card { padding: 0.85rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ── Ticket page mobile ───────────────────────────────────── */
@media (max-width: 480px) {
  .ticket-wrap { padding: 0 0.5rem; margin: 1rem auto; }
  .ticket { border-radius: 16px; }
  .ticket-header { padding: 1rem; }
  .ticket-event { padding: 1rem 1rem 0; }
  .ticket-event h2 { font-size: 1.1rem; }
  .ticket-meta { padding: 0.75rem 1rem; gap: 0.6rem; }
  .qr-section { padding: 1rem; }
  .ticket-buyer { padding: 1rem; flex-direction: column; gap: 0.75rem; }
  .actions { flex-direction: column; gap: 0.5rem; }
  .action-btn { width: 100%; text-align: center; justify-content: center; }
}

/* ── Promoter offer page mobile ────────────────────────────── */
@media (max-width: 720px) {
  .feat-grid { grid-template-columns: 1fr; }
  .also-grid { grid-template-columns: 1fr; }
  .demo-inner { grid-template-columns: 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { display: flex; flex-wrap: wrap; gap: 2px; padding: 0.5rem; border-right: none; border-bottom: 1px solid var(--border, rgba(26,17,8,0.12)); }
  .dash-nav-item { padding: 0.4rem 0.6rem; font-size: 0.7rem; }
  .dash-main { padding: 1rem; }
  .mock-kpi-row { grid-template-columns: repeat(2, 1fr); }
  .mock-form-row { grid-template-columns: 1fr; }
  .rate-card { padding: 1.5rem 2rem; }
  .rate-num { font-size: 3.5rem; }
  .cta-section h2 { font-size: 1.5rem; }
}

/* ── Checkout page mobile ──────────────────────────────────── */
@media (max-width: 600px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}

/* ── Fix: event card price font ────────────────────────────── */
.ec-price { font-family: 'JetBrains Mono', monospace !important; font-weight: 700 !important; font-style: normal !important; }
.tier-price { font-family: 'JetBrains Mono', monospace !important; font-weight: 700 !important; }
.qty-num { font-family: 'JetBrains Mono', monospace !important; }

/* ── Fix: promoter-offer nav on mobile ─────────────────────── */
@media (max-width: 720px) {
  .nav > div:not(.nav-logo):not(.nav-right) { display: none; }
  .nav .nav-link { display: none; }
}
@media (max-width: 480px) {
  .nav .nav-cta { font-size: 0.7rem; padding: 0.4rem 0.8rem; }
}

/* ── Quick filters: mobile only ────────────────────────────── */
.quick-filters { display: none; }
@media (max-width: 780px) {
  .quick-filters {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0 0;
  }
  .qf-row {
    display: flex;
    gap: 0.3rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0;
  }
  .qf-label {
    font-size: 0.55rem;
    padding: 0.35rem 0.4rem;
  }
  .qf-pill {
    padding: 0.4rem 0.9rem;
    font-size: 0.72rem;
    border-radius: 20px;
    border-width: 1.5px;
  }
}

/* ── Browse page mobile overhaul ───────────────────────────── */
@media (max-width: 780px) {
  .browse-main { padding: 0 !important; }
  .browse-hd { flex-direction: column; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.85rem; }
  .browse-hd h1 { font-size: 1.3rem; }
  .sort-bar { width: 100%; justify-content: space-between; }
  .sort-select { flex: 1; max-width: 220px; }
  .browse-count { font-size: 0.75rem; }

  .ev-grid-browse { grid-template-columns: 1fr; gap: 0.75rem; }
  .event-card { border-radius: 14px; overflow: hidden; }
  .ec-body { padding: 0.85rem; }
  .ec-title { font-size: 0.92rem; white-space: normal; word-break: break-word; }
  .ec-price { font-size: 0.85rem; }
  .ec-meta { font-size: 0.75rem; }

  /* Hero on mobile: homepage already stacks the split search into a column
     via existing rules at ~514/554/656.  Only the date chip row below
     needs a horizontal-scroll treatment here. */
  .browse-hero { margin-bottom: 1rem; }
  .bq-dates { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; justify-content: flex-start; padding: 0 0.15rem 0.3rem; margin-top: 0.85rem; }
  .bq-dates::-webkit-scrollbar { display: none; }
  .bq-chip { padding: 0.48rem 0.95rem; font-size: 0.78rem; }
}

/* ── Nav mobile tighter ────────────────────────────────────── */
@media (max-width: 480px) {
  .nav {
    padding: 0 0.6rem !important;
    gap: 0.3rem !important;
  }
  .nav-logo span {
    font-size: 1rem !important;
  }
  .nav-logo svg:not(.logo-wordmark) {
    width: 24px !important;
    height: 24px !important;
  }
  .nav-right {
    gap: 0.3rem !important;
  }
  .nav-login {
    font-size: 0.65rem !important;
    padding: 0.35rem 0.5rem !important;
  }
  .nav-cta {
    font-size: 0.65rem !important;
    padding: 0.35rem 0.6rem !important;
  }
}

/* ── Footer: left-aligned ──────────────────────────────────── */
.footer-inner { text-align: left !important; }
.footer-col { text-align: left !important; }
.footer-brand { text-align: left !important; }
.footer-bottom { text-align: left !important; }
@media (max-width: 720px) {
  .footer-inner { text-align: left !important; }
  .footer-col { text-align: left !important; }
  .footer-brand { text-align: left !important; }
  .footer-bottom { text-align: left !important; flex-direction: column !important; }
}
