/* ═══════════════════════════════════════════════════════════════════════
   RAAD Records — Design System
   Black + Blue + White · Satoshi + Aux Mono + Adobe Naskh (Arabic)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── RAAD type system (self-hosted from the official brand fonts) ─────────
   Satoshi   — English headings + body (the typeface in the brand identity poster).
   Aux Mono  — booking/ticket reference codes only (the brand's release-number mono).
   Adobe Naskh Medium — Arabic text. All self-hosted to satisfy CSP font-src 'self'. */
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Variable.woff2') format('woff2-variations'),
       url('../fonts/Satoshi-Variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face { font-family:'Satoshi'; src:url('../fonts/Satoshi-Regular.woff2') format('woff2'); font-weight:400; font-display:swap; }
@font-face { font-family:'Satoshi'; src:url('../fonts/Satoshi-Medium.woff2')  format('woff2'); font-weight:500; font-display:swap; }
@font-face { font-family:'Satoshi'; src:url('../fonts/Satoshi-Bold.woff2')    format('woff2'); font-weight:700; font-display:swap; }
@font-face { font-family:'Satoshi'; src:url('../fonts/Satoshi-Black.woff2')   format('woff2'); font-weight:900; font-display:swap; }

@font-face { font-family:'Aux Mono'; src:url('../fonts/AuxMono-Regular.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }

@font-face { font-family:'Adobe Naskh'; src:url('../fonts/AdobeNaskh-Medium.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; }

:root {
  /* Surfaces — 4-level elevation */
  --surface-0: #000000;
  --surface-1: #0D0D0F;
  --surface-2: #161617;
  --surface-3: #1B1C1C;

  /* Purple scale */
  --purple-50:  #EAF2FF;
  --purple-300: #9DC4FF;
  --purple-400: #6EA7FF;
  --purple-500: #3B82F0;
  --purple-600: #1267D6;
  --purple-700: #0A3885;
  --purple-900: #04162E;

  /* Neutrals */
  --text-hi:   #F1F1F1;
  --text-mid:  #A7AEB5;
  /* WCAG AA: #8A949C ≥4.9:1 on surface-0 down to 4.93:1 on surface-3 — clears
     the 4.5:1 normal-text bar everywhere. (#6A7D8A was ~3.6:1, AA-fail.) */
  --text-lo:   #8A949C;
  --border:    #2A2A2C;
  --border-hi: #4C4B4C;

  /* Semantic — status only */
  --success: #34D399;
  --error:   #F87171;
  --warning: #FBBF24;

  /* Radii */
  --r-sm: 0.5rem;
  --r-md: 0.875rem;
  --r-lg: 1.25rem;
  --r-xl: 1.75rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.02);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.55);
  --shadow-purple: 0 8px 32px rgba(18, 103, 214,.20);

  /* Legacy aliases — keep ~22 inherited templates working */
  --bg-base:    var(--surface-0);
  --bg-card:    var(--surface-1);
  --bg-sidebar: var(--surface-0);
  --purple:     var(--purple-600);
  --bright:     var(--purple-400);
  --gold:       var(--purple-400);
  --text:       var(--text-hi);
  --muted:      var(--text-lo);

  /* Z-index scale */
  --z-ambient: 0;
  --z-content: 10;
  --z-overlay: 20;
  --z-sidebar: 30;
  --z-modal: 40;
  --z-flash: 50;
  --z-scanner: 100;
}

/* ── Base ───────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Satoshi', sans-serif;
  /* RAAD blue fading into black, with a whisper of off-white light at the very
     top so the page never reads as a flat black void. Blue + white + black,
     faded — the brand colours used as a calm field rather than a spotlight.
     Fixed so it stays put while content scrolls over it. */
  background:
    radial-gradient(ellipse 70% 30% at 50% -6%,  rgba(241,241,241,.05) 0%, transparent 60%),
    radial-gradient(ellipse 120% 52% at 50% -8%, rgba(18, 103, 214,.20)  0%, transparent 60%),
    radial-gradient(ellipse 140% 60% at 50% 112%, rgba(10, 56, 133,.26) 0%, transparent 62%),
    linear-gradient(180deg, #050d1c 0%, #02060f 44%, var(--surface-0) 80%);
  background-attachment: fixed;
  color: var(--text-hi);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Page-load fade — pure CSS so it runs even when JS is unavailable */
body { animation: fade-in .4s ease both; }

::selection { background: var(--purple-600); color: #fff; }

/* ── Ambient background — global art layer ──────────────────────────────
   Fixed behind all content: a drifting purple aurora, a film-grain
   texture, and a static spotlight vignette. Injected once in base.html as
   <div class="raad-ambient" aria-hidden="true">; pointer-events:none. */
.raad-ambient {
  position: fixed;
  inset: 0;
  z-index: var(--z-ambient);
  pointer-events: none;
  overflow: hidden;
  /* Spotlight vignette — darkens edges, keeps centre open so aurora shows below */
  background: radial-gradient(ellipse 90% 70% at 50% 28%,
              transparent 48%, rgba(0,0,0,.42) 100%);
}
body:not(.ambient) .raad-ambient { display: none; }

/* Controlled studio glow — a top spotlight + a deep floor wash, not a
   four-blob nightclub aurora. Lower opacity, slower drift: the brand reads
   "controlled studio glow", precise rather than ambient. */
.raad-ambient::before {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(58% 44% at 50% -8%, rgba(18, 103, 214,.30) 0%, transparent 62%),
    radial-gradient(46% 38% at 84% 6%,  rgba(110, 167, 255,.11) 0%, transparent 60%),
    radial-gradient(72% 56% at 28% 110%, rgba(10, 56, 133,.30) 0%, transparent 64%);
  animation: aurora-drift 46s ease-in-out infinite alternate;
}

/* Film grain — fractal-noise texture, subtly jittered */
.raad-ambient::after {
  content: "";
  position: absolute;
  inset: -40%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .035;
  animation: grain-shift 6s steps(8) infinite;
}

/* ── Typography ─────────────────────────────────────────────────────── */
.font-heading, h1, h2, h3 { font-family: 'Satoshi', sans-serif; }

.display {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 6.2vw, 4.5rem);
  line-height: 1.0;
  letter-spacing: -0.005em;
  color: var(--text-hi);
}

/* Hero heading — one-time left-to-right clip-path wipe on load */
.display-art {
  animation: fade-in .6s ease both;
}
@supports (clip-path: inset(0 100% 0 0)) {
  .display-art {
    animation: hero-reveal 1.1s cubic-bezier(.22,.61,.36,1) both;
  }
}

.page-title {
  font-family: 'Satoshi', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-hi);
  letter-spacing: -0.005em;
}

/* Display size steps — between .page-title (1.875rem) and .display (clamp 2.5–4.25rem).
   Use for status heroes, ceremonial moments shy of a full page hero. */
.display-md {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.005em;
  color: var(--text-hi);
}
.display-sm {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.016em;
  color: var(--text-hi);
}

.eyebrow {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--purple-400);
}

.booking-ref {
  font-family: 'Aux Mono', monospace;
  font-size: 0.85rem;
  color: var(--purple-300);
  letter-spacing: 0.06em;
}

/* ── Cards ──────────────────────────────────────────────────────────── */
.raad-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.raad-card-glow {
  box-shadow: var(--shadow-md), var(--shadow-purple);
}

/* Ceremonial card — used sparingly for the one moment that must land:
   the confirmed QR ticket, the total-amount strip on register, etc.
   Inset purple glow + lifted shadow + thin amethyst border. */
.raad-card--ceremonial {
  background: var(--surface-1);
  border: 1px solid rgba(110, 167, 255, .20);
  border-radius: var(--r-xl);
  box-shadow:
    inset 0 0 60px rgba(110, 167, 255, .04),
    0 24px 56px rgba(0, 0, 0, .50);
}

/* Interactive card — hover lift */
.raad-card--interactive {
  position: relative;
  transition: transform .25s cubic-bezier(.22,.61,.36,1),
              border-color .25s ease,
              box-shadow .25s ease;
  will-change: transform;
}
.raad-card--interactive:hover {
  transform: translateY(-3px);
  border-color: var(--border-hi);
  box-shadow: var(--shadow-lg);
}

/* Cursor-reactive glow — a soft highlight tracking the pointer.
   --mx/--my are set per-card by motion.js (fine-pointer devices only). */
.raad-card--interactive::before,
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
              rgba(110, 167, 255,.16), transparent 64%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: 0;
}
.raad-card--interactive:hover::before,
.stat-card:hover::before { opacity: 1; }

/* Glassmorphism — sticky / floating surfaces */
.raad-glass {
  background: rgba(12,12,18,.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.06);
}

/* ── Stat cards ─────────────────────────────────────────────────────── */
.stat-card {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  transition: transform .25s cubic-bezier(.22,.61,.36,1),
              border-color .25s ease, box-shadow .25s ease;
}
.stat-card > * { position: relative; z-index: 1; }
.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hi);
  box-shadow: var(--shadow-lg);
}

.stat-value {
  font-family: 'Satoshi', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-hi);
  line-height: 1;
  letter-spacing: 0;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-lo);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ── Buttons ──────────────────────────────────────────────────────────
   Flat solid blue — matches the brand poster's "Primary Button" exactly:
   no gradient, no sheen, just the brand blue with a clean lift on hover. */
.btn-primary,
.btn-gold {                       /* gold shim → identical to primary */
  background: var(--purple-600);
  color: #fff;
  font-family: 'Satoshi', sans-serif;
  font-weight: 600;
  border-radius: var(--r-md);
  padding: 0.7rem 1.4rem;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(18, 103, 214,.24);
  transition: background .2s ease, transform .18s ease, box-shadow .25s ease;
}
.btn-primary:hover,
.btn-gold:hover {
  background: var(--purple-500);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(18, 103, 214,.34);
}
.btn-primary:active,
.btn-gold:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text-mid);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.625rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.btn-ghost:hover {
  color: var(--text-hi);
  border-color: var(--border-hi);
  background: rgba(255,255,255,.03);
}

.btn-danger {
  background: rgba(248,113,113,.12);
  color: #fca5a5;
  border: 1px solid rgba(248,113,113,.28);
  font-family: 'Satoshi', sans-serif;
  font-weight: 600;
  border-radius: var(--r-md);
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background .2s ease, transform .18s ease;
}
.btn-danger:hover { background: rgba(248,113,113,.2); transform: translateY(-1px); }

/* ── Inputs ─────────────────────────────────────────────────────────── */
.raad-input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.8rem 1rem;
  color: var(--text-hi);
  font-size: 0.9rem;
  width: 100%;
  outline: none;
  font-family: 'Satoshi', sans-serif;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.raad-input:focus {
  border-color: var(--purple-500);
  background: var(--surface-1);
  box-shadow: 0 0 0 4px rgba(59, 130, 240,.14);
}
.raad-input::placeholder { color: var(--text-lo); }
select.raad-input option { background: var(--surface-2); }

/* Icon inputs (e.g. login/forgot/reset): tailwind.css loads before this file, so
   the `padding` shorthand above would otherwise clobber a `pl-11`/`pr-11` utility and the
   value/placeholder would sit under the leading/trailing icon. These higher-specificity
   rules restore the padding so text clears both icons. */
.raad-input.pl-11 { padding-left: 2.75rem; }
.raad-input.pr-11 { padding-right: 2.75rem; }

/* `right-3.5` is absent from the compiled tailwind.css (never scanned); pin the
   password-toggle button position here so it sits inside the input. */
#togglePassword { right: 0.875rem; }

/* Native date/time pickers — opt into dark UI and tint the icon */
input[type="date"], input[type="time"], input[type="datetime-local"] {
  color-scheme: dark;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(0.65);
  cursor: pointer;
  opacity: 0.8;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Keep autofilled inputs on-theme (Chrome forces a light bg otherwise) */
.raad-input:-webkit-autofill,
.raad-input:-webkit-autofill:hover,
.raad-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-hi);
  -webkit-box-shadow: 0 0 0 1000px var(--surface-2) inset;
  caret-color: var(--text-hi);
  transition: background-color 9999s ease;
}

/* ── Tables ─────────────────────────────────────────────────────────── */
.raad-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.raad-table th {
  background: rgba(59, 130, 240,.06);
  color: var(--text-lo);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.raad-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(33,31,51,.6);
  color: var(--text-hi);
  vertical-align: middle;
}
.raad-table tr:last-child td { border-bottom: none; }
.raad-table tbody tr { transition: background .15s ease; }
.raad-table tbody tr:hover { background: rgba(59, 130, 240,.05); }

/* ── Status badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-yellow  { background: rgba(251,191,36,.14); color: #fcd34d; }
.badge-blue    { background: rgba(96,165,250,.14); color: #93c5fd; }
.badge-green   { background: rgba(52,211,153,.14); color: #6ee7b7; }
.badge-purple  { background: rgba(59, 130, 240,.18); color: var(--purple-300); }
.badge-red     { background: rgba(248,113,113,.14); color: #fca5a5; }
.badge-gray    { background: rgba(107,114,128,.14); color: #9ca3af; }

/* ── Divider ────────────────────────────────────────────────────────── */
.raad-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  border: none;
}

/* ── Rail — vertical timeline used on booking_status.html ────────────────
   Continuous purple-fade line on the left, dot markers per step, optional
   time stamp in Aux Mono. Active steps get filled dots + brighter
   text; inactive stay muted. Reduced-motion respected via the global rule. */
.raad-rail {
  position: relative;
  padding-left: 1.5rem;
  margin: 0;
  list-style: none;
}
.raad-rail::before {
  content: "";
  position: absolute;
  left: 0.4375rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(180deg,
              rgba(110, 167, 255, .35) 0%,
              var(--border) 40%,
              var(--border) 60%,
              rgba(110, 167, 255, .35) 100%);
}
.raad-rail__item {
  position: relative;
  padding: 0.5rem 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}
.raad-rail__item::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.875rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid var(--border);
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.raad-rail__item--active::before {
  background: var(--purple-400);
  border-color: var(--purple-400);
  box-shadow: 0 0 0 4px rgba(110, 167, 255, .12);
}
.raad-rail__item--current::before {
  background: var(--purple-400);
  border-color: var(--purple-400);
  box-shadow: 0 0 0 4px rgba(110, 167, 255, .18), 0 0 12px rgba(110, 167, 255, .35);
}
.raad-rail__label {
  color: var(--text-lo);
}
.raad-rail__item--active .raad-rail__label,
.raad-rail__item--current .raad-rail__label {
  color: var(--text-hi);
}
.raad-rail__time {
  font-family: 'Aux Mono', monospace;
  font-size: 0.6875rem;
  color: var(--text-lo);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* ── Animated link underline ────────────────────────────────────────── */
.raad-link {
  position: relative;
  text-decoration: none;
}
.raad-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}
.raad-link:hover::after { transform: scaleX(1); }

/* ── Scroll reveal ──────────────────────────────────────────────────────
   Gated behind .raad-js — if JavaScript fails to load, .reveal content stays
   fully visible instead of being stuck at opacity:0. */
.raad-js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s cubic-bezier(.22,.61,.36,1),
              transform .55s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.raad-js .reveal.reveal--in {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile nav drawer ──────────────────────────────────────────────── */
#raad-nav-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
#raad-nav-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}
#raad-nav-toggle { transition: opacity .2s ease; }
#raad-nav-toggle.hide {
  opacity: 0;
  pointer-events: none;
}

/* ── Skeleton shimmer ───────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(100deg,
    var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: var(--r-sm);
}

/* ── Keyframes ──────────────────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  to { background-position: -200% 0; }
}
@keyframes aurora-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(4%, -3%, 0) scale(1.14); }
}
@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-3%, -4%); }
  20% { transform: translate(-5%, 3%); }
  30% { transform: translate(4%, -5%); }
  40% { transform: translate(-4%, 6%); }
  50% { transform: translate(-6%, -2%); }
  60% { transform: translate(5%, 4%); }
  70% { transform: translate(-3%, 5%); }
  80% { transform: translate(6%, -3%); }
  90% { transform: translate(-5%, -5%); }
}
@keyframes hero-reveal {
  from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateY(12px); }
  to   { opacity: 1; clip-path: inset(0 0 0 0);   transform: translateY(0); }
}

.anim-fade-up { animation: fade-up .7s cubic-bezier(.22,.61,.36,1) both; }
.anim-fade-in { animation: fade-in .6s ease both; }

/* ── Scanner fullscreen ─────────────────────────────────────────────── */
.scanner-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  z-index: var(--z-scanner);
}
.scan-result-success { background: rgba(52,211,153,.96);  color: #042016; }
.scan-result-error   { background: rgba(248,113,113,.96); color: #2a0606; }

/* ── Scrollbar ──────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--surface-0); }
::-webkit-scrollbar-thumb {
  background: var(--border-hi);
  border-radius: 4px;
  border: 2px solid var(--surface-0);
}
::-webkit-scrollbar-thumb:hover { background: var(--purple-700); }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Drop the sidebar offset and clear the fixed top-left hamburger (top:1rem +
     2.75rem tall) so it can't overlap the page heading on admin/staff pages. */
  .ml-60 { margin-left: 0 !important; padding-top: 4.5rem !important; }
  aside { transform: translateX(-100%); transition: transform .3s ease; }
  aside.open { transform: translateX(0); }
}

/* ── Landing-page utilities ─────────────────────────────────────────── */

/* Horizontal scroll-snap rail — used by the past-moments gallery */
.scroll-snap-rail {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 1.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: .5rem;
}
.scroll-snap-rail::-webkit-scrollbar { height: 0; width: 0; }
.scroll-snap-rail > * { scroll-snap-align: start; flex: 0 0 auto; }

/* Subtle on-scroll image float */
.parallax-img {
  will-change: transform;
  transition: transform .08s linear;
}

/* Slow bounce for the hero scroll-down chevron */
@keyframes chevron-bounce {
  0%, 100% { transform: translateY(0); opacity: .55; }
  50%      { transform: translateY(6px); opacity: 1; }
}
.scroll-cue {
  animation: chevron-bounce 2.4s ease-in-out infinite;
}

/* Soft purple frame for the about image */
.landing-frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(110, 167, 255, .22);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, .55),
    inset 0 0 0 1px rgba(255, 255, 255, .03);
}
.landing-frame::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(160deg, transparent 60%, rgba(18, 103, 214, .14));
}

/* ── Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .raad-js .reveal { opacity: 1; transform: none; filter: none; }
  .raad-card--interactive:hover,
  .stat-card:hover,
  .btn-primary:hover,
  .btn-gold:hover { transform: none; }
  /* Aurora settles to a static frame; grain texture stays but stops jittering */
  .raad-ambient::before { animation: none; transform: translate3d(2%, -1.5%, 0) scale(1.07); }
  .raad-ambient::after  { animation: none; }
  .parallax-img { transform: none !important; }
  .scroll-cue { animation: none; opacity: .7; }
}

/* ── Focus-visible ──────────────────────────────────────────────────────
   Keyboard-only focus ring. Mouse clicks don't trigger :focus-visible, so
   pointer users never see this — only keyboard navigators do. */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--purple-400);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
/* Inputs already glow on focus via box-shadow; tighten the outline offset */
.raad-input:focus-visible { outline-offset: 0; }

/* Visually-hidden helper — accessible to screen readers only */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Print ──────────────────────────────────────────────────────────────
   Optimized for the booking/ticket page: white paper, dark text, no chrome
   or action controls. Add `class="no-print"` to anything that shouldn't
   appear on the printed page. */
@media print {
  body {
    background: #ffffff !important;
    color: #111111 !important;
    animation: none !important;
    opacity: 1 !important;
  }
  main { padding: 0 !important; margin: 0 !important; }

  /* Hide all interactive / navigational chrome */
  aside,
  .raad-ambient,
  #raad-nav-toggle, #raad-nav-backdrop,
  #flash-container,
  .no-print,
  button, input[type="file"] {
    display: none !important;
  }

  /* Landing page: print only the events list, hide the marketing sections */
  #about, #moments, #why, #cta, .scroll-cue { display: none !important; }

  /* Cards: white with light border so they don't print as dark blocks */
  .raad-card, .raad-card--ceremonial, .raad-glass, .stat-card {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    box-shadow: none !important;
    color: #111111 !important;
    backdrop-filter: none !important;
  }

  /* Rail prints as a simple list, no purple gradient */
  .raad-rail::before { background: #d1d5db !important; }
  .raad-rail__item::before {
    background: #0A3885 !important;
    border-color: #0A3885 !important;
    box-shadow: none !important;
  }
  .raad-rail__label { color: #111111 !important; }
  .raad-rail__time { color: #6b7280 !important; }

  /* Force on-paper-readable colors */
  .text-raad-text, .text-raad-mid, .text-raad-muted,
  .eyebrow, .page-title, .display { color: #111111 !important; }
  .booking-ref, .text-raad-bright, .text-raad-purple, .text-raad-gold {
    color: #0A3885 !important;
  }

  /* Hide motion artifacts entirely on paper */
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* text-raad-muted compiles to #6A7D8A in tailwind.css — 4.23:1 on the input/
   card2 surfaces its labels sit on (AA fail). Align the utility with --text-lo,
   which was already bumped to #8A949C for exactly this reason (see :root).
   This sheet loads after tailwind.css, so it wins at equal specificity. */
.text-raad-muted { color: var(--text-lo); }

/* Scanner top/bottom-bar controls: 44px minimum touch target (WCAG 2.5.8)
   for fast gloved taps in a dark venue, without growing the bar visually.
   The .hidden re-assert keeps Tailwind's JS show/hide toggle working (both
   selectors are single-class; this sheet loads last and would otherwise
   force the torch button visible before camera capability is known). */
.raad-scan-ctl { display: inline-flex; align-items: center; min-height: 44px; }
.raad-scan-ctl.hidden { display: none; }

/* Keyboard focus on the visually-hidden (sr-only) payment radios in door-add:
   surface the ring on the styled label so the focused option is visible. */
label:has(> input[type="radio"].sr-only:focus-visible) {
  outline: 2px solid var(--purple-400);
  outline-offset: 2px;
}

/* ── Scanner result overlay states ──────────────────────────────────── */
/* The full-screen pass/fail flash (~95%) + the disc behind the result icon
   (~30%). Defined as semantic classes rather than Tailwind `bg-[var(--x)]/NN`
   utilities because Tailwind cannot apply an opacity modifier to an arbitrary
   var() color — those compile to nothing, leaving the overlay transparent over
   the live camera. color-mix keeps the design-token vars as the single source of
   truth; the plain var() line before it is the fallback for any browser without
   color-mix. Keep the state names in sync with scan.html showResult(). */
.raad-scan-overlay--success { background-color: var(--success);    background-color: color-mix(in srgb, var(--success) 95%, transparent); }
.raad-scan-overlay--warning { background-color: var(--warning);    background-color: color-mix(in srgb, var(--warning) 95%, transparent); }
.raad-scan-overlay--error   { background-color: var(--error);      background-color: color-mix(in srgb, var(--error) 95%, transparent); }
.raad-scan-overlay--offline { background-color: var(--purple-600); background-color: color-mix(in srgb, var(--purple-600) 95%, transparent); }

/* The success/warning/error fills are LIGHT — the template's text-white
   utilities land at 1.7–2.8:1 on them (WCAG fail on the one screen door staff
   must read fast in a dark venue). Force dark on-color ink per state; the
   offline overlay is dark purple, so white stays correct there. */
.raad-scan-overlay--success #result-icon-inner, .raad-scan-overlay--success #result-name,
.raad-scan-overlay--success #result-msg, .raad-scan-overlay--success #result-meta,
.raad-scan-overlay--success #result-ref { color: #042016; }
.raad-scan-overlay--warning #result-icon-inner, .raad-scan-overlay--warning #result-name,
.raad-scan-overlay--warning #result-msg, .raad-scan-overlay--warning #result-meta,
.raad-scan-overlay--warning #result-ref { color: #241a02; }
.raad-scan-overlay--error #result-icon-inner, .raad-scan-overlay--error #result-name,
.raad-scan-overlay--error #result-msg, .raad-scan-overlay--error #result-meta,
.raad-scan-overlay--error #result-ref { color: #2a0606; }

.raad-scan-disc--success { background-color: var(--success);    background-color: color-mix(in srgb, var(--success) 30%, transparent); }
.raad-scan-disc--warning { background-color: var(--warning);    background-color: color-mix(in srgb, var(--warning) 30%, transparent); }
.raad-scan-disc--error   { background-color: var(--error);      background-color: color-mix(in srgb, var(--error) 30%, transparent); }
.raad-scan-disc--offline { background-color: var(--purple-600); background-color: color-mix(in srgb, var(--purple-600) 30%, transparent); }

/* ═══════════════════════════════════════════════════════════════════════
   RAAD RECORDS — Editorial / music-label layer
   A record-label catalogue voice on top of the base system: poster-weight
   display type, a monospaced structural signature (dates, indices, kickers),
   a tagline marquee, and a ruled release index. High contrast, sharp, precise
   — "Sound That Moves Culture". Added after the base so it wins the cascade.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Structural label signature ─────────────────────────────────────────
   Small Satoshi caps for section kickers, dates, and coordinates — the
   label style used throughout the brand poster (e.g. "LATEST RELEASE"). */
.raad-meta {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-lo);
}
.raad-meta--bright { color: var(--purple-400); }

/* ── Section display ────────────────────────────────────────────────────
   A clean, confident heading — Satoshi, the brand English typeface.
   Used for section + featured-event titles. Quiet, not poster-loud. */
.raad-poster-sm {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--text-hi);
}

/* ── Event card (the brand poster's "App Card" — image banner + body) ─────
   A rounded dark card: cover/placeholder banner on top, then a body with a
   small label, the event title, date·venue, and a primary action with the
   price. Used both for the featured event (large) and the grid (.raad-evgrid). */
.raad-evcard {
  display: flex;
  flex-direction: column;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .3s ease, transform .3s cubic-bezier(.22,.61,.36,1);
}
.raad-evcard:hover { border-color: var(--border-hi); transform: translateY(-3px); }
.raad-evcard__media {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(18,103,214,.28), transparent 58%),
    linear-gradient(150deg, #14213a, #0b0b0f);
}
.raad-evcard__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(.22,.61,.36,1);
}
.raad-evcard:hover .raad-evcard__media img { transform: scale(1.04); }
/* small status chip in the banner corner */
.raad-evcard__chip {
  position: absolute;
  top: .85rem; left: .85rem;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .32rem .7rem;
  border-radius: 9999px;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  font-family: 'Satoshi', sans-serif;
  font-size: .62rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-hi);
}
.raad-evcard__chip .raad-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--success); }
.raad-evcard__body { padding: 1.25rem 1.35rem 1.35rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.raad-evcard__title {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-hi);
}
.raad-evcard__meta {
  font-family: 'Satoshi', sans-serif;
  font-size: .8rem;
  color: var(--text-mid);
  display: flex; flex-wrap: wrap; gap: .3rem .9rem;
}
.raad-evcard__foot {
  margin-top: auto;
  padding-top: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

/* ── Event bar (compact banner header for register / booking pages) ───────
   The same app-card media treatment as a slim header strip, so the booking
   flow stays anchored to its event with continuity from the home cards. */
.raad-eventbar {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  min-height: 8.5rem;
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(18,103,214,.30), transparent 56%),
    linear-gradient(150deg, #14213a, #0b0b0f);
}
.raad-eventbar__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.raad-eventbar__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(0,0,0,.55) 72%, rgba(0,0,0,.9));
}
.raad-eventbar__glyph {
  position: absolute;
  right: -1.5rem; top: 50%;
  width: 9rem; transform: translateY(-50%);
  opacity: .06;
  pointer-events: none;
}
.raad-eventbar__body { position: relative; padding: 1.25rem 1.4rem; }

/* ── Selectable card (guest type / payment method radios) ─────────────────
   Rounded card with a solid-blue checked state. Uses :has() so the whole
   label highlights when its radio is selected — replaces the arbitrary
   Tailwind opacity utilities that silently failed to compile. */
.raad-select {
  display: block;
  padding: 1.1rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.raad-select:hover { border-color: var(--border-hi); }
.raad-select:has(input:checked) {
  border-color: var(--purple-600);
  background: rgba(18, 103, 214, .10);
  box-shadow: inset 0 0 0 1px var(--purple-600);
}

/* Brand-blue tint (status hero disc, etc.). A reliable class because Tailwind
   arbitrary opacity on the custom `raad-purple` colour (e.g. bg-raad-purple/12)
   does not compile in this committed build. */
.raad-tint-brand { background: rgba(18, 103, 214, .12); border-color: rgba(18, 103, 214, .32); }

/* ── Arabic ──────────────────────────────────────────────────────────────
   The brand's Arabic face (Adobe Naskh Medium, from the font pack). Applied
   to anything tagged lang="ar" or .raad-ar; sets RTL + a touch more leading
   since Arabic letterforms sit taller. */
[lang="ar"], .raad-ar {
  font-family: 'Adobe Naskh', 'Satoshi', sans-serif;
  direction: rtl;
  line-height: 1.5;
}

/* ── Landing top nav (reference web-hero header) ─────────────────────────
   Logo left, a few links + a primary action right. Transparent over the
   hero, hairline divider underneath. */
.raad-topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.raad-topnav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.raad-navlink {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  transition: color .2s ease;
}
.raad-navlink:hover { color: var(--text-hi); }
@media (max-width: 768px) {
  .raad-topnav__links { gap: 1.1rem; }
  .raad-navlink--hide-sm { display: none; }
}

/* ── Hero brand symbol (the glowing mark from the reference web hero) ─────
   A blue rounded tile carrying the white RAAD glyph, lit by a controlled
   studio glow behind it. Built from an inline SVG (blue tile + white glyph),
   so no extra asset is needed. */
/* Hidden on mobile by design: with no second grid column, a large decorative
   mark below the CTA just orphans the action and pushes content down. It only
   appears at md+, where it fills the hero's right column. */
.raad-symbol { display: none; }
@media (min-width: 768px) {
  .raad-symbol {
    position: relative;
    display: grid;
    place-items: center;
    isolation: isolate;
  }
}
.raad-symbol::before {            /* studio glow */
  content: "";
  position: absolute;
  inset: -18%;
  z-index: -1;
  background:
    radial-gradient(50% 50% at 50% 42%, rgba(18, 103, 214,.55) 0%, transparent 70%),
    radial-gradient(60% 60% at 50% 60%, rgba(110, 167, 255,.22) 0%, transparent 72%);
  filter: blur(6px);
  animation: raad-symbol-pulse 6s ease-in-out infinite alternate;
}
.raad-symbol__tile {
  width: 100%;
  height: auto;
  border-radius: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: 0 30px 80px rgba(2, 14, 38, .6), 0 0 0 1px rgba(110,167,255,.10);
}
@keyframes raad-symbol-pulse {
  from { opacity: .8;  transform: scale(.99); }
  to   { opacity: 1;   transform: scale(1.02); }
}

/* ── Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .raad-feature:hover .raad-feature__art,
  .raad-feature:hover { transform: none; }
  .raad-symbol::before { animation: none; }
}
