:root {
  color-scheme: dark;
  --lo-red: #e10600;
  --lo-red-dark: #a10400;
  --lo-purple: #b026ff;
  --lo-blue: #4fc3ff;
  --lo-black: #0a0a0d;
  --lo-black-2: #111116;
  --lo-text: #f2f2f5;
  --lo-text-dim: #9a9aa4;
  --lo-text-faint: #55555c;
  --lo-panel: rgba(22, 22, 28, 0.72);
  --lo-surface: rgba(255, 255, 255, 0.06);
  --lo-surface-strong: rgba(255, 255, 255, 0.1);
  --lo-border: rgba(255, 255, 255, 0.1);
  --lo-glow: 0 0 32px rgba(225, 6, 0, 0.35);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* overflow-x on <body> alone does not stop sideways scrolling on phones —
   the viewport still scrolls. Setting it on <html> too (with `clip` where
   supported, which unlike `hidden` doesn't create a scroll container) does. */
html {
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--lo-black);
  color: var(--lo-text);
  font-family: "Titillium Web", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  transition: background 0.35s var(--ease-out), backdrop-filter 0.35s var(--ease-out), padding 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  background: rgba(10, 10, 13, 0.82);
  backdrop-filter: blur(14px);
  padding: 14px 32px;
  border-bottom-color: var(--lo-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lo-red);
  box-shadow: 0 0 12px var(--lo-red);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--lo-text-dim);
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--lo-text);
}

.nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lo-red), var(--lo-red-dark));
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: var(--lo-glow);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(225, 6, 0, 0.5);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, rgba(225, 6, 0, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(10, 10, 13, 0.55) 0%, rgba(10, 10, 13, 0.55) 40%, rgba(10, 10, 13, 0.96) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 0 24px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--lo-border);
  background: var(--lo-surface);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lo-text-dim);
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out) 0.1s forwards;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05;
  margin: 24px 0 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.25s forwards;
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--lo-red) 0%, #ff6a3d 50%, var(--lo-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: shimmer 6s linear infinite;
}

.hero p.lead {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--lo-text-dim);
  max-width: 560px;
  margin: 0 auto 34px;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.4s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.55s forwards;
}

/* .btn sits on <a> and <button> alike. A <button> doesn't inherit text
   colour or font and carries a UA border — on iOS Safari that renders the
   label system-blue, on desktop Chrome dark grey with a grey outline — so
   the base sets all of it explicitly. Variants override border/colour. */
.btn {
  padding: 15px 30px;
  border-radius: 999px;
  border: 0;
  color: var(--lo-text);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--lo-red), var(--lo-red-dark));
  color: #fff;
  box-shadow: var(--lo-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(225, 6, 0, 0.55);
}

/* Missing entirely before this fix: "Continue to payment" always rendered
   fully solid/clickable-looking even while genuinely disabled=true (no
   duration picked yet) — compounding the missing .duration-card.is-selected
   style above, since a user had no visual way to tell a duration choice had
   registered OR that the button in front of them wasn't live yet. */
.btn:focus-visible {
  outline: 2px solid var(--lo-red);
  outline-offset: 3px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none !important;
}

.btn-ghost {
  background: var(--lo-surface);
  border: 1px solid var(--lo-border);
}

.btn-ghost:hover {
  background: var(--lo-surface-strong);
  transform: translateY(-3px);
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--lo-text-faint);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.8s forwards;
}

.scroll-cue .line {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--lo-text-faint), transparent);
  animation: pulse-line 2s ease-in-out infinite;
}

/* ---------- Sections ---------- */

.section {
  padding: 110px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  color: var(--lo-red);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: 12px 0 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--lo-text-dim);
  font-size: 1.02rem;
}

/* Progressive enhancement: content is visible by default. Only once JS has
   confirmed it can run (the "js" class below, added synchronously before
   paint) does .reveal start hidden and wait for IntersectionObserver — so a
   JS failure, slow script, or a screenshot tool that freezes the viewport
   never leaves real content permanently blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* ---------- Event cards ---------- */

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.event-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--lo-panel);
  border: 1px solid var(--lo-border);
  backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease, box-shadow 0.35s ease;
}

.event-card:hover {
  transform: translateY(-8px);
  border-color: rgba(225, 6, 0, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.event-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1a1a22, #0a0a0d);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lo-text-faint);
  font-size: 0.85rem;
  overflow: hidden;
}

.event-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.event-card:hover .event-card-media img {
  transform: scale(1.06);
}

.event-card-body {
  padding: 20px 22px 24px;
}

.event-card-date {
  font-size: 0.78rem;
  color: var(--lo-red);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event-card-body h3 {
  margin: 8px 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
}

.event-card-body p {
  color: var(--lo-text-dim);
  font-size: 0.9rem;
  margin: 0 0 16px;
}

.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--lo-text-dim);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--lo-text-dim);
  border: 1px dashed var(--lo-border);
  border-radius: 18px;
}

/* ---------- Feature strip ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 28px 24px;
  border-radius: 16px;
  background: var(--lo-surface);
  border: 1px solid var(--lo-border);
  transition: transform 0.3s var(--ease-out), background 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  background: var(--lo-surface-strong);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--lo-red), var(--lo-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 16px;
}

.icon-lo {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.feature-card p {
  color: var(--lo-text-dim);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* ---------- Rig gallery ---------- */

.rig-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 90px;
  gap: 12px;
}

.rig-gallery a {
  grid-column: span 2;
  grid-row: span 2;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--lo-border);
}

.rig-gallery a:nth-child(1) {
  grid-column: span 4;
  grid-row: span 3;
}

.rig-gallery a:nth-child(4) {
  grid-column: span 3;
  grid-row: span 2;
}

.rig-gallery a:nth-child(5) {
  grid-column: span 3;
  grid-row: span 2;
}

.rig-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out), filter 0.5s ease;
  filter: brightness(0.88);
}

.rig-gallery a:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

@media (max-width: 720px) {
  .rig-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
  }
  .rig-gallery a,
  .rig-gallery a:nth-child(1),
  .rig-gallery a:nth-child(4),
  .rig-gallery a:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* ---------- Event detail page (its own layout — not the browse-grid card) ---------- */

.event-hero-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 160px);
  gap: 8px;
  max-width: 1180px;
  margin: 96px auto 0;
  padding: 0 24px;
}

.event-hero-gallery .main-shot {
  grid-row: span 2;
  border-radius: 16px;
  overflow: hidden;
}

.event-hero-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-hero-gallery .thumb {
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 860px) {
  .event-hero-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 220px;
    margin-top: 84px;
  }
  .event-hero-gallery .thumb {
    display: none;
  }
}

.event-detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 100px;
}

@media (max-width: 960px) {
  .event-detail-layout {
    grid-template-columns: 1fr;
  }
}

.event-title-block h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  margin: 0 0 10px;
}

.event-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--lo-text-dim);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.event-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.facts-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.fact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: var(--lo-surface);
  border: 1px solid var(--lo-border);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--lo-text-dim);
}

.fact-item .icon-lo {
  color: var(--lo-red);
  flex-shrink: 0;
}

.detail-section {
  margin-bottom: 36px;
}

.detail-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.sponsor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.sponsor-row img {
  height: 36px;
  object-fit: contain;
  filter: grayscale(0.3);
}

/* ---------- Sticky booking sidebar ---------- */

.booking-sidebar {
  position: sticky;
  top: 96px;
}

.booking-card {
  background: var(--lo-panel);
  border: 1px solid var(--lo-border);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.booking-card h2 {
  font-size: 1.05rem;
  margin: 0 0 4px;
}

.booking-card .booking-hint {
  color: var(--lo-text-dim);
  font-size: 0.8rem;
  margin: 0 0 18px;
}

.line-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--lo-border);
}

.line-item:last-of-type {
  border-bottom: none;
}

.line-item-info strong {
  display: block;
  font-size: 0.9rem;
}

.line-item-info span {
  font-size: 0.78rem;
  color: var(--lo-text-dim);
}

.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stepper button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--lo-border);
  background: var(--lo-surface);
  color: var(--lo-text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.stepper button:hover {
  background: var(--lo-surface-strong);
}

.stepper button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.stepper .qty-value {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.slot-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.slot-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--lo-red);
}

.sold-out-tag {
  font-size: 0.75rem;
  color: var(--lo-text-faint);
  font-weight: 600;
  text-transform: uppercase;
}

.booking-summary {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--lo-border);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--lo-text-dim);
  margin-bottom: 8px;
}

.summary-line.total {
  color: var(--lo-text);
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 10px;
}

/* ---------- Forms & dashboards ---------- */

.page-head {
  padding: 140px 0 40px;
}

.page-head h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 8px;
}

.page-head p {
  color: var(--lo-text-dim);
  margin: 0;
}

.panel {
  background: var(--lo-panel);
  border: 1px solid var(--lo-border);
  border-radius: 18px;
  padding: 28px;
  backdrop-filter: blur(10px);
  margin-bottom: 24px;
}

.panel h2 {
  font-size: 1.15rem;
  margin: 0 0 4px;
}

.panel .panel-hint {
  color: var(--lo-text-dim);
  font-size: 0.85rem;
  margin: 0 0 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.8rem;
  color: var(--lo-text-dim);
  font-weight: 600;
}

.form-control {
  background: var(--lo-surface);
  border: 1px solid var(--lo-border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--lo-text);
  font-family: inherit;
  font-size: 0.92rem;
  width: 100%;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--lo-red);
  background: var(--lo-surface-strong);
}

textarea.form-control {
  resize: vertical;
}

/* Native controls default to the OS/browser light theme regardless of page
   CSS — color-scheme is what actually fixes the dropdown panel and date
   picker popup colors, not just the closed-state background. */
select.form-control,
input[type="date"].form-control,
input[type="datetime-local"].form-control,
input[type="time"].form-control {
  color-scheme: dark;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239a9aa4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 38px;
}

input[type="datetime-local"].form-control::-webkit-calendar-picker-indicator,
input[type="date"].form-control::-webkit-calendar-picker-indicator,
input[type="time"].form-control::-webkit-calendar-picker-indicator {
  filter: invert(0.6);
  cursor: pointer;
}

input[type="file"].form-control {
  padding: 8px;
}

input[type="file"].form-control::file-selector-button,
input[type="file"].form-control::-webkit-file-upload-button {
  background: var(--lo-surface-strong);
  color: var(--lo-text);
  border: 1px solid var(--lo-border);
  border-radius: 6px;
  padding: 8px 14px;
  margin-right: 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  transition: background 0.2s ease;
}

input[type="file"].form-control::file-selector-button:hover,
input[type="file"].form-control::-webkit-file-upload-button:hover {
  background: var(--lo-red);
  border-color: var(--lo-red);
}

/* Custom select — replaces the native dropdown's open-state UI, which no
   browser lets page CSS reach. The real <select> stays in the DOM (hidden,
   not removed) so form submission works exactly as before. */
.lo-select {
  position: relative;
}

/* Visually hidden, not display:none — a display:none form control can't be
   focused, and browsers throw ("not focusable") + abort submission entirely
   when native HTML5 validation tries to focus a required field that fails
   validation. This keeps the element focusable while being fully invisible. */
.lo-select select.form-control {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}

.lo-select-trigger {
  width: 100%;
  text-align: left;
  background: var(--lo-surface);
  border: 1px solid var(--lo-border);
  border-radius: 8px;
  padding: 11px 38px 11px 14px;
  color: var(--lo-text);
  font-family: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.lo-select-trigger::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-65%) rotate(45deg);
  border-right: 2px solid var(--lo-text-dim);
  border-bottom: 2px solid var(--lo-text-dim);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.lo-select.is-open .lo-select-trigger::after {
  transform: translateY(-35%) rotate(225deg);
}

.lo-select.is-open .lo-select-trigger {
  border-color: var(--lo-red);
  background: var(--lo-surface-strong);
}

.lo-select-list {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: #15151b;
  border: 1px solid var(--lo-border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  z-index: var(--lo-z-dropdown, 100);
  padding: 6px;
}

.lo-select.is-open .lo-select-list {
  display: block;
}

.lo-select-option {
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--lo-text-dim);
  cursor: pointer;
}

.lo-select-option:hover {
  background: var(--lo-surface-strong);
  color: var(--lo-text);
}

.lo-select-option.is-selected {
  background: rgba(225, 6, 0, 0.15);
  color: var(--lo-text);
}

.formset-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.remove-row-btn {
  background: transparent;
  border: 1px solid var(--lo-border);
  color: var(--lo-text-dim);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.remove-row-btn:hover {
  border-color: #ff5252;
  color: #ff5252;
}

.add-row-btn {
  background: transparent;
  border: 1px dashed var(--lo-border);
  color: var(--lo-text-dim);
  border-radius: 10px;
  padding: 12px;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.add-row-btn:hover {
  border-color: var(--lo-red);
  color: var(--lo-red);
}

.map-picker {
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--lo-border);
  margin-bottom: 16px;
}

.map-picker-hint {
  font-size: 0.78rem;
  color: var(--lo-text-faint);
  margin: -8px 0 16px;
}

.formset-row {
  border: 1px dashed var(--lo-border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 14px;
  position: relative;
}

.formset-row-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lo-text-faint);
  margin-bottom: 12px;
}

.errorlist {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  color: var(--lo-danger, #ff5252);
  font-size: 0.8rem;
}

.btn-submit {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

/* A table wider than a phone scrolls inside this wrapper rather than
   stretching the page. The wrapper needs its own definite width (100% of a
   parent that is itself constrained) — styling the surrounding .panel isn't
   enough, because a content-sized block just grows to fit the table. */
.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.table-scroll .dashboard-table {
  min-width: 560px;
}

.dashboard-table th, .dashboard-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--lo-border);
  font-size: 0.9rem;
}

.dashboard-table th {
  color: var(--lo-text-dim);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-pill.draft { background: rgba(255, 212, 0, 0.15); color: var(--lo-yellow, #ffd400); }
.status-pill.published { background: rgba(0, 230, 118, 0.15); color: #00e676; }
.status-pill.cancelled { background: rgba(255, 82, 82, 0.15); color: #ff5252; }
.status-pill.completed { background: rgba(255,255,255,0.1); color: var(--lo-text-dim); }

.alert {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.alert-success { background: rgba(0, 230, 118, 0.12); border: 1px solid rgba(0, 230, 118, 0.3); color: #00e676; }
.alert-error { background: rgba(255, 82, 82, 0.12); border: 1px solid rgba(255, 82, 82, 0.3); color: #ff5252; }

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 40px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
}

/* The login/register heading is an <h1>: it is the page's actual subject,
   and these two pages previously had no h1 at all, so a screen reader
   landed on a form with nothing naming it. Sized to match the old h2 so
   nothing moves visually. */
.auth-title {
  font-size: 1.5rem;
  margin: 0 0 4px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--lo-border);
  padding: 40px 0;
  text-align: center;
  color: var(--lo-text-faint);
  font-size: 0.85rem;
}

/* ---------- Animations ---------- */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

@keyframes pulse-line {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 720px) {
  .site-nav {
    padding: 16px 20px;
  }
  .nav-links {
    display: none;
  }
  .section {
    padding: 72px 0;
  }
}

/* ---------- Dashboard application shell (left sidebar) ---------- */

.dashboard-shell {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-height: calc(100vh - 73px);
  margin-top: 73px;
}

.dashboard-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 73px;
  height: calc(100vh - 73px);
  overflow-y: auto;
  padding: 28px 16px;
  border-right: 1px solid var(--lo-border);
  background: var(--lo-black-2);
}

.dashboard-sidebar-section {
  margin-bottom: 24px;
}

.dashboard-sidebar-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lo-text-faint);
  padding: 0 12px;
  margin-bottom: 8px;
}

.dashboard-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lo-text-dim);
  margin-bottom: 2px;
}

.dashboard-nav-link:hover {
  background: var(--lo-surface);
  color: var(--lo-text);
}

.dashboard-nav-link.is-active {
  background: rgba(225, 6, 0, 0.14);
  color: var(--lo-text);
}

.dashboard-nav-link .icon-lo {
  flex-shrink: 0;
  color: var(--lo-text-faint);
}

.dashboard-nav-link.is-active .icon-lo,
.dashboard-nav-link:hover .icon-lo {
  color: var(--lo-red);
}

.dashboard-main {
  flex: 1;
  min-width: 0;
  padding: 32px 40px 80px;
}

@media (max-width: 900px) {
  .dashboard-shell {
    flex-direction: column;
    margin-top: 0;
  }
  .dashboard-sidebar {
    width: 100%;
    position: static;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 88px 16px 16px;
    border-right: none;
    border-bottom: 1px solid var(--lo-border);
  }
  .dashboard-sidebar-section {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
  }
  .dashboard-sidebar-label {
    display: none;
  }
  .dashboard-main {
    padding: 24px 20px 60px;
    /* The shell switches to a column here, so this becomes a cross-axis flex
       item — where min-width:0 does nothing and the flex line grows to the
       widest content (a table), pushing the whole page sideways. A percentage
       cap resolves against the shell's definite width and stops that. */
    width: 100%;
    max-width: 100%;
  }
}

/* ── Checkout modal + booking-panel states ─────────────────────────────
   Attendee details are collected on "Proceed to checkout" rather than
   sitting in the sidebar before anything is selected. */

.lo-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Author styles beat the UA stylesheet, so the `display: flex` above would
   otherwise defeat the `hidden` attribute and leave a full-viewport overlay
   silently swallowing every click on the page behind it. */
.lo-modal[hidden] {
  display: none;
}

.lo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.lo-modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--lo-surface);
  border: 1px solid var(--lo-border);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.lo-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--lo-border);
}

.lo-modal-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.lo-modal-close {
  background: none;
  border: none;
  color: var(--lo-text-dim);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.lo-modal-close:hover {
  color: var(--lo-text);
}

.lo-modal-body {
  padding: 18px 22px;
}

.lo-modal-section + .lo-modal-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--lo-border);
}

.lo-modal-section h4 {
  margin: 0 0 10px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lo-text-dim);
}

.lo-order-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lo-order-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  padding: 7px 0;
  border-bottom: 1px solid var(--lo-border);
}

.lo-order-lines li:last-child {
  border-bottom: none;
}

.lo-modal-foot {
  display: flex;
  gap: 10px;
  padding: 16px 22px 20px;
  border-top: 1px solid var(--lo-border);
}

.lo-modal-foot .btn {
  flex: 1;
  justify-content: center;
}

.field-hint {
  font-size: 0.75rem;
  color: var(--lo-text-dim);
  margin: 6px 0 0;
}

/* ---------- Per-attendee fields at checkout ---------- */

.attendee-heading {
  margin: 0 0 12px;
}

.attendee-row + .attendee-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--lo-border);
}

.attendee-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

/* A driver name is not the same kind of field as a guest name — one is
   required and drives what happens at the venue, the other is a
   convenience. The badge says which, so the asterisk isn't the only clue. */
.attendee-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--lo-text-dim);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

.attendee-badge.is-driver {
  background: rgba(225, 6, 0, 0.16);
  color: #ff6b66;
}

.field-note {
  color: var(--lo-text-dim);
  font-weight: 400;
}

.ticket-holder {
  margin: 6px 0 0;
  font-weight: 600;
}

.ticket-holder.is-unassigned {
  color: var(--lo-text-dim);
  font-weight: 400;
  font-style: italic;
}

.booking-empty {
  color: var(--lo-text-dim);
  font-size: 0.85rem;
  padding: 14px 0 4px;
}

.unavailable-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--lo-border);
}

.unavailable-heading {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lo-text-dim);
}

.unavailable-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--lo-text-dim);
  padding: 6px 0;
  opacity: 0.75;
}

@media (max-width: 560px) {
  .lo-modal {
    padding: 0;
    align-items: flex-end;
  }
  .lo-modal-card {
    max-width: none;
    border-radius: 16px 16px 0 0;
    max-height: 92vh;
  }
}

/* ── Signed-in app header ──────────────────────────────────────────────
   Deliberately not the public .site-nav: inside the app, navigation lives
   in the sidebar, so this is just identity + a way back to the dashboard.
   Height is pinned to 73px because .dashboard-shell/.dashboard-sidebar
   offset against exactly that. */

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 73px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  background: var(--lo-black-2);
  border-bottom: 1px solid var(--lo-border);
}

.app-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--lo-text);
  text-decoration: none;
}

.app-header-user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
  min-width: 0;
}

.app-header-role {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lo-red);
}

.app-header-name {
  font-size: 0.82rem;
  color: var(--lo-text-dim);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .app-header {
    padding: 0 16px;
  }
  .app-header .brand span:last-child {
    display: none;
  }
}

/* Event card: honest placeholder when a host uploaded no artwork, plus the
   passes-sold progress strip. */
.event-card-noimage {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a22 0%, #0f0f14 100%);
  border-bottom: 1px solid var(--lo-border);
}

.event-card-noimage span {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--lo-text-faint);
  text-transform: uppercase;
}

.event-card-sold { margin: 12px 0 4px; }

.event-card-sold-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--lo-surface);
  overflow: hidden;
}

.event-card-sold-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--lo-red), #ff6a3d);
  border-radius: 999px;
}

.event-card-sold-text {
  margin-top: 6px;
  font-size: 0.74rem;
  color: var(--lo-text-dim);
}

/* Center card: Open now / Opens H:MM badge over the media, in place of the
   event card's sold-progress bar (a center has no sell-through to show). */
.center-card-status {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.center-card-status.is-open {
  background: rgba(47, 214, 123, 0.12);
  color: #2fd67b;
  border: 1px solid rgba(47, 214, 123, 0.45);
}

.center-card-status.is-closed {
  background: var(--lo-surface);
  color: var(--lo-text-faint);
  border: 1px solid var(--lo-border);
}

/* Rig picker on the center detail page. */
.rig-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
}

/* Small on/off switch, built from a checkbox + two spans rather than a new
   component library — same visual language (--lo-red accent) as the rest
   of the site's controls. */
.group-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--lo-text-dim);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.group-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.group-toggle-track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--lo-surface);
  border: 1px solid var(--lo-border);
  transition: background 0.2s var(--ease-out);
  flex-shrink: 0;
}

.group-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--lo-text-dim);
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.group-toggle input:checked + .group-toggle-track {
  background: linear-gradient(135deg, var(--lo-red), var(--lo-red-dark));
  border-color: var(--lo-red);
}

.group-toggle input:checked + .group-toggle-track .group-toggle-thumb {
  transform: translateX(18px);
  background: #fff;
}

/* Narrower columns and much tighter padding than the first pass — the
   original card read as mostly empty space above the rig name. */
.rig-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.rig-picker-card {
  /* The whole card is the tap target, opening the rig modal (or, in group
     mode, toggling selection) — no separate button inside it. */
  position: relative;
  display: block;
  width: 100%;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  background: var(--lo-panel);
  border: 1px solid var(--lo-border);
  border-radius: 14px;
  padding: 10px 10px 14px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.rig-picker-card:hover:not(.is-selected) {
  border-color: rgba(225, 6, 0, 0.4);
  transform: translateY(-4px);
}

.rig-picker-card.is-selected {
  border-color: var(--lo-red);
  background: var(--lo-surface-strong);
}

.rig-picker-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--lo-border);
  background: var(--lo-surface);
  font-size: 0.7rem;
  line-height: 18px;
  color: transparent;
  opacity: 0;
  transition: opacity 0.2s var(--ease-out);
}

/* Only shown at all once group mode is on (toggled via a class on the
   grid), and only filled in once a card is actually selected. */
.rig-picker-grid.is-group-mode .rig-picker-check {
  opacity: 1;
}

.rig-picker-card.is-selected .rig-picker-check {
  background: linear-gradient(135deg, var(--lo-red), var(--lo-red-dark));
  border-color: var(--lo-red);
  color: #fff;
}

/* A previous pass tried to crop the source PNGs' transparent margin by
   combining a short frame with a scale-up transform on the image — that
   double-cropped it, cutting the wheel off the top and the pedals off the
   bottom. The frame is now sized to comfortably fit the WHOLE image at a
   modest width instead, no transform, nothing clipped. */
.rig-picker-vector-frame {
  width: 100%;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.rig-picker-vector {
  width: 100%;
  max-width: 104px;
  /* The vector art is black line-work on a transparent background — invert
     it to render as light lines on this dark UI, matching every other
     icon/illustration on the site. */
  filter: invert(1) brightness(1.8);
  opacity: 0.92;
}

.rig-picker-card h4 {
  margin: 0;
  font-size: 0.92rem;
}

/* Sticky bar shown once a rig is selected in group mode. */
.group-bar {
  position: sticky;
  bottom: 16px;
  z-index: 50;
  max-width: 420px;
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--lo-black-2);
  border: 1px solid var(--lo-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.group-bar[hidden] {
  display: none;
}

.rig-availability-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--lo-border);
  text-align: left;
}

.rig-availability-panel[hidden] {
  display: none;
}

.slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.slot-btn {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--lo-border);
  background: var(--lo-surface);
  color: var(--lo-text);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.slot-btn:hover:not(:disabled):not(.is-selected) {
  border-color: var(--lo-red);
  background: var(--lo-surface-strong);
}

.slot-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.slot-btn.is-selected {
  border-color: var(--lo-red);
  background: linear-gradient(135deg, var(--lo-red), var(--lo-red-dark));
}

.slot-legend {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--lo-text-dim);
  margin-top: 10px;
}

.slot-legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}

/* Duration popup, shown after a free start time is picked. */
.duration-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.duration-popup[hidden] {
  display: none;
}

.duration-popup-card {
  background: var(--lo-black-2);
  border: 1px solid var(--lo-border);
  border-radius: 18px;
  padding: 28px;
  max-width: 420px;
  width: 100%;
}

/* The rig flow's shared popup — mobile-view sized (narrow, tall,
   scrollable) regardless of viewport, since the whole game-details ->
   availability -> duration -> booking-form flow lives in here now. */
.rig-modal-card {
  position: relative;
  max-width: 420px;
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.rig-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--lo-border);
  background: var(--lo-surface);
  color: var(--lo-text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.rig-modal-close:hover {
  border-color: var(--lo-red);
}

/* Center detail page media section. */
/* Bento layout: the first item runs twice as wide/tall as the rest, so the
   gallery reads as a designed collage rather than a uniform photo-dump
   grid. Falls back to a plain grid below 720px, where there's no room for
   an item to meaningfully span two columns. */
.center-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;
  gap: 12px;
  margin-top: 20px;
}

.center-gallery-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--lo-border);
  background: var(--lo-black-2);
  transition: transform 0.4s var(--ease-out);
}

.center-gallery-item:hover {
  transform: scale(1.03);
}

.center-gallery-item.is-featured {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 720px) {
  .center-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 130px;
  }

  .center-gallery-item.is-featured {
    grid-column: span 2;
    grid-row: span 1;
  }
}

.duration-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
}

.duration-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--lo-border);
  background: var(--lo-surface);
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.duration-card:hover:not(.is-disabled):not(.is-selected) {
  border-color: var(--lo-red);
  background: var(--lo-surface-strong);
}

.duration-card.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Missing entirely before this fix: center_booking.js's click handler was
   already adding/removing this class correctly (and enabling "Continue to
   payment"), but with no visual rule for it a click gave zero feedback —
   the red border a user saw was only ever :hover above, which vanishes the
   moment the mouse moves off the card, making a real selection look like it
   never happened. Same solid-fill treatment as .slot-btn.is-selected. */
.duration-card.is-selected {
  border-color: var(--lo-red);
  background: linear-gradient(135deg, var(--lo-red), var(--lo-red-dark));
}

.duration-card.is-selected span,
.duration-card.is-selected strong {
  color: #fff;
}

.duration-card > span { white-space: nowrap; }
.duration-card strong { text-align: right; }
.duration-card-breakdown {
  display: block;
  opacity: 0.6;
  font-weight: 400;
  font-size: 0.82rem;
}

.duration-card s {
  opacity: 0.55;
  font-weight: 400;
  margin-right: 4px;
}

/* Today's price offer + the weekly offer list (set per center, per weekday
   on SRA's Pricing page), above the rig picker. */
.offer-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 16px;
  margin: 8px 0 28px;
}
.offer-panel.is-single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) {
  .offer-panel { grid-template-columns: minmax(0, 1fr); }
}
.offer-today,
.offer-week {
  border-radius: 16px;
  border: 1px solid var(--lo-border);
  background: var(--lo-surface);
  padding: 20px 22px;
}
.offer-today.has-offer {
  border-color: rgba(225, 6, 0, 0.7);
  background: linear-gradient(135deg, rgba(225, 6, 0, 0.28), rgba(225, 6, 0, 0.06) 70%);
  box-shadow: 0 0 32px rgba(225, 6, 0, 0.18);
}
.offer-eyebrow,
.offer-week-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lo-text-dim);
}
.offer-today.has-offer .offer-eyebrow { color: #ff6b66; }
.offer-headline {
  margin: 8px 0 14px;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--lo-text);
}
.offer-sub { margin: 0; color: var(--lo-text-dim); font-size: 1rem; }
.offer-note-foot { margin-top: 12px; font-size: 0.92rem; }
.offer-sub strong { color: var(--lo-text); }
.offer-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.offer-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--lo-border);
  font-size: 0.95rem;
  color: var(--lo-text);
}
.offer-chip s { opacity: 0.55; margin: 0 2px; }
.offer-week ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.offer-week li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 1.02rem;
  color: var(--lo-text);
}
.offer-week li.is-today { background: rgba(225, 6, 0, 0.16); border: 1px solid rgba(225, 6, 0, 0.5); }
.offer-day {
  flex: 0 0 auto;
  min-width: 46px;
  padding: 4px 0;
  border-radius: 8px;
  background: var(--lo-surface-strong);
  text-align: center;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.offer-week-label { flex: 1 1 auto; min-width: 0; }
.offer-tag {
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--lo-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.offer-note {
  margin: 8px 0 0;
  color: var(--lo-text-dim);
  font-size: 0.88rem;
}

/* Empty states are customer-facing copy on a production site — a heading,
   an explanation and a way forward, never an instruction aimed at staff. */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--lo-text-dim);
}

.empty-state .empty-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--lo-text);
}

.empty-state p {
  margin: 0 auto 20px;
  max-width: 420px;
  line-height: 1.7;
}

/* ---------- Booking confirmation ---------- */

.confirm-head {
  text-align: center;
  padding: 120px 24px 40px;
}

/* The Lottie renders INTO this box; the static SVG sits inside it as the
   fallback and is only removed once the animation confirms it loaded. */
.confirm-mark {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}

.confirm-mark.is-animated .confirm-fallback {
  display: none;
}

.confirm-title {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
}

.confirm-sub {
  margin: 0 0 28px;
  color: var(--lo-text-dim);
}

.confirm-sub a {
  color: var(--lo-red);
}

.confirm-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  max-width: 760px;
  margin: 0 auto 20px;
}

.confirm-fact {
  background: var(--lo-panel);
  border: 1px solid var(--lo-border);
  border-radius: 14px;
  padding: 16px;
}

.confirm-fact-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lo-text-dim);
  margin-bottom: 6px;
}

.confirm-fact-value {
  font-weight: 700;
  font-size: 0.98rem;
}

.confirm-note {
  color: var(--lo-text-dim);
  font-size: 0.88rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- Payment step ---------- */

.pay-shell {
  padding: 120px 24px 60px;
  display: flex;
  justify-content: center;
}

/* .site-nav is position:fixed (see the Nav section above) — sitting
   outside document flow, it overlaps whatever the page renders at the very
   top unless that page reserves room for it. .confirm-head/.pay-shell
   already do this at 120px; this is the same value for any other
   base.html page whose content doesn't start with a full-bleed hero image
   (a hero is fine sitting under the transparent floating nav on purpose —
   see .event-hero-gallery). Centers' detail page hit exactly this bug: an
   ad hoc 32px inline padding-top left its <h1> rendering underneath the
   nav bar instead of below it. */
.page-with-nav-offset {
  padding-top: 120px;
}

.pay-card {
  width: 100%;
  max-width: 480px;
  padding: 28px;
}

.pay-eyebrow {
  color: var(--lo-red);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pay-title {
  margin: 8px 0 20px;
  font-size: 1.4rem;
}

/* Loud on purpose — nobody should believe a real payment was taken when the
   deployment is on test keys, or vice versa. */
.pay-testbanner {
  background: rgba(255, 212, 0, 0.14);
  border: 1px solid rgba(255, 212, 0, 0.5);
  color: #ffd400;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.pay-lines {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.pay-lines li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--lo-border);
  font-size: 0.92rem;
}

.pay-holder {
  display: block;
  color: var(--lo-text-dim);
  font-style: normal;
  font-size: 0.8rem;
  margin-top: 2px;
}

.pay-amount {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pay-totals {
  margin-bottom: 22px;
}

.pay-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.92rem;
}

.pay-row.is-discount {
  color: #00e676;
}

.pay-row.is-total {
  border-top: 1px solid var(--lo-border);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 1.15rem;
  font-weight: 800;
}

.pay-btn {
  width: 100%;
  justify-content: center;
}

.pay-note {
  margin: 14px 0 0;
  color: var(--lo-text-dim);
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
}

.pay-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--lo-text-dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pay-or::before, .pay-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--lo-border);
}


/* ============================================================
   Mobile / touch polish
   ============================================================ */

/* Long unbreakable strings (uploaded filenames in Django's "Currently: …"
   file-input link, emails, slugs) used to widen the whole page — the event
   editor was 650px wide on a 390px phone. */
.dashboard-main,
.container,
.panel,
.form-field {
  min-width: 0;
  overflow-wrap: anywhere;
}

.form-field a {
  word-break: break-all;
}

/* Round icon buttons must stay round: never flex-shrunk, never given a
   default button padding, always square. */
.rig-modal-close,
.rig-picker-check,
.brand-dot,
.group-toggle-thumb {
  flex: none;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
}

.rig-modal-close {
  padding: 0;
  min-width: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-appearance: none;
  appearance: none;
}

.rig-picker-check {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

/* The picker card's hardware lines (screen / wheel / console). */
.rig-picker-specs {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--lo-text-dim);
}

@media (hover: none) and (pointer: coarse) {
  /* Touch: no grey tap flash, no long-press callout, no accidental text
     selection on things that are buttons in spirit. Form fields and table
     text stay selectable. */
  a, button, label, summary, .btn, .status-pill, .nav-links, .app-header,
  .dashboard-sidebar, .dashboard-nav-link, .event-card, .center-card, .feature-card,
  .rig-picker-card, .slot-btn, .duration-card, .group-toggle, .group-bar,
  .duration-popup-card h3, .duration-popup-card h4, .lo-modal-head {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }

  input, textarea, select, [contenteditable] {
    -webkit-user-select: text;
    user-select: text;
  }

  /* No double-tap-to-zoom delay on controls. */
  a, button, label, input, select, textarea, .btn, .rig-picker-card, .slot-btn, .duration-card {
    touch-action: manipulation;
  }

  /* Bigger close target. */
  .rig-modal-close {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

/* Background page must not scroll under an open popup. */
body:has(.duration-popup:not([hidden])),
body:has(.lo-modal:not([hidden])) {
  overflow: hidden;
}

.duration-popup,
.lo-modal-card {
  overscroll-behavior: contain;
}

.lo-modal-card {
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
}

/* A scrolling table inside the page must not hijack vertical swipes or chain
   its scroll into the page. */
.table-scroll {
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

/* Phone: dashboard tables become stacked cards (label on the left, value on
   the right) instead of a 560–870px-wide table hidden in a sideways scroller. */
@media (max-width: 640px) {
  .table-scroll .dashboard-table.stack-mobile {
    min-width: 0;
  }

  .stack-mobile,
  .stack-mobile tbody,
  .stack-mobile tr,
  .stack-mobile td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .stack-mobile {
    padding: 12px;
  }

  .stack-mobile thead {
    display: none;
  }

  .stack-mobile tr {
    border: 1px solid var(--lo-border);
    border-radius: 12px;
    margin: 0 0 12px;
    padding: 4px 14px;
    background: var(--lo-surface);
  }

  .stack-mobile tr:last-child {
    margin-bottom: 0;
  }

  .stack-mobile td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    text-align: right;
    border-bottom: 1px solid var(--lo-border);
  }

  .stack-mobile td:last-child {
    border-bottom: 0;
  }

  .stack-mobile td[data-label]::before {
    content: attr(data-label);
    flex-shrink: 0;
    text-align: left;
    color: var(--lo-text-dim);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .stack-mobile td.row-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal !important;
  }

  .stack-mobile td.row-actions form {
    display: inline-block;
  }
}

/* Phone navbar: keep the sign-in links visible —
   this used to hide every link, leaving no way to log in from the nav. */
@media (max-width: 720px) {
  .nav-links {
    display: flex;
    gap: 18px;
    font-size: 0.88rem;
  }
}

/* Red-outlined button: transparent fill, red border; fills in on hover. */
.btn-outline-red {
  color: #fff;
  background: transparent;
  border: 2px solid var(--lo-red);
}

.btn-outline-red:hover {
  background: rgba(225, 6, 0, 0.16);
  transform: translateY(-3px);
  box-shadow: 0 6px 28px rgba(225, 6, 0, 0.35);
}

/* ── Center page: header layout ── */
.center-hero {
  margin-bottom: 36px;
}
.center-meta {
  align-items: center;
  row-gap: 10px;
  margin-bottom: 18px;
}
.center-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.center-meta-status {
  position: static;
  display: inline-flex;
  align-items: center;
}
/* The address doubles as the Google Maps link (replaces the old
   "Get directions" button). */
.center-address-link {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.center-address-link:hover,
.center-address-link:focus-visible {
  color: var(--lo-red);
  text-decoration-color: var(--lo-red);
}

/* ── Rig picker: pod photo as the card picture ── */
.rig-picker-photo {
  width: 100%;
  height: 150px;
  margin-bottom: 12px;
  border-radius: 10px;
  background-color: var(--lo-black-2);
  background-size: cover;
  /* Pod photos are taken from behind the seat: frame the screens + wheel. */
  background-position: center 30%;
}
.rig-picker-card.has-photo {
  padding-top: 12px;
}

/* ── Rig booking popup: pod photo on top ── */
.rig-modal-photo {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 12px;
  /* Starts below the × close button instead of running under it. */
  margin: 40px 0 16px;
  border: 1px solid var(--lo-border);
}
.rig-modal-photo[hidden] {
  display: none;
}
.rig-modal-subtitle {
  color: var(--lo-text-dim);
  margin-top: -8px;
}

/* ── Gallery: clickable photos + full-screen viewer ── */
.center-gallery-open {
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
}
.center-gallery-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.center-gallery-open:focus-visible {
  outline: 2px solid var(--lo-red);
  outline-offset: 2px;
}
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.9);
}
.gallery-lightbox[hidden] {
  display: none;
}
.gallery-lightbox-figure {
  margin: 0;
  max-width: min(1200px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.gallery-lightbox-figure img {
  max-width: 100%;
  max-height: 82vh;
  max-height: 82dvh;
  object-fit: contain;
  border-radius: 12px;
}
.gallery-lightbox-figure figcaption {
  color: var(--lo-text-dim);
  font-size: 0.95rem;
  text-align: center;
}
.gallery-lightbox-close,
.gallery-lightbox-nav {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--lo-border);
  background: rgba(20, 20, 26, 0.85);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  font-family: inherit;
  line-height: 1;
}
.gallery-lightbox-nav {
  width: 48px;
  height: 48px;
  font-size: 2rem;
  padding-bottom: 4px;
}
.gallery-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
}
.gallery-lightbox-nav:hover,
.gallery-lightbox-close:hover {
  border-color: var(--lo-red);
}
@media (max-width: 720px) {
  .gallery-lightbox { padding: 12px; gap: 0; }
  .gallery-lightbox-nav {
    position: absolute;
    bottom: 22px;
  }
  .gallery-lightbox-nav.is-prev { left: calc(50% - 60px); }
  .gallery-lightbox-nav.is-next { right: calc(50% - 60px); }
  .gallery-lightbox-figure img { max-height: 72vh; max-height: 72dvh; }
  .rig-picker-photo { height: 120px; }
}

/* Booking popup: room for the shared time picker. */
.rig-modal-card.lo-booking { max-width: 480px; }
.rig-duration-section { margin-top: 22px; }
.rig-duration-section #reserveForm { margin-top: 16px; }

/* ── Rig cards with a photo: the photo IS the card, details on frosted glass ── */
.rig-picker-card.has-photo {
  padding: 0;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}
.rig-picker-card.has-photo .rig-picker-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  z-index: -1;
  transition: transform 0.6s var(--ease-out, ease);
}
.rig-picker-card.has-photo:hover .rig-picker-photo { transform: scale(1.05); }
.rig-picker-card.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}
.rig-picker-card.has-photo .rig-picker-info {
  margin: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(14, 14, 18, 0.42);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.rig-picker-card.has-photo .rig-picker-info h4 { font-size: 1.05rem; color: #fff; }
.rig-picker-card.has-photo .rig-picker-specs { color: rgba(255, 255, 255, 0.82); margin-top: 6px; }
.rig-picker-card.has-photo .rig-picker-check { z-index: 2; }
.rig-picker-card.has-photo.is-selected { box-shadow: 0 0 0 2px var(--lo-red), 0 12px 30px rgba(225, 6, 0, 0.3); }

/* ── Booking popup: photo full-bleed across the top ── */
.rig-modal-card.lo-booking { --pad: 28px; padding: var(--pad); }
.rig-modal-card.lo-booking .rig-modal-photo {
  width: calc(100% + 2 * var(--pad));
  max-width: none;
  /* The whole photo at its own shape — never cropped. */
  height: auto;
  object-fit: contain;
  margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 20px;
  border: 0;
  border-radius: 0;
}
.rig-modal-card.lo-booking .rig-modal-close {
  z-index: 3;
  background: rgba(10, 10, 14, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
@media (max-width: 480px) {
  .rig-modal-card.lo-booking { --pad: 20px; }
  .rig-picker-card.has-photo { min-height: 260px; }
}

/* ---------- Generic horizontal carousel (landing page: tournaments + events) ---------- */
.lo-carousel { position: relative; }
.lo-carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: 4px;
  padding: 4px 4px 14px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.lo-carousel-track::-webkit-scrollbar { display: none; }
.lo-carousel-item { flex: 0 0 300px; scroll-snap-align: start; }
.lo-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--lo-border);
  background: rgba(10, 10, 13, 0.85); backdrop-filter: blur(6px); color: var(--lo-text);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  font-size: 20px; line-height: 1; z-index: 2; transition: background 0.2s ease, border-color 0.2s ease;
}
.lo-carousel-arrow:hover { background: var(--lo-red); border-color: transparent; }
.lo-carousel-arrow.is-prev { left: -14px; }
.lo-carousel-arrow.is-next { right: -14px; }
.lo-carousel-arrow[hidden] { display: none; }
@media (max-width: 640px) { .lo-carousel-arrow { display: none; } }

/* Tournament card: center-based multiplayer events (events/landing.html) */
.tournament-card .event-card-media { aspect-ratio: 16 / 10; }
.tournament-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: rgba(225, 6, 0, 0.85); color: #fff;
}
.tournament-center {
  display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--lo-red); margin-bottom: 4px;
}
