/**
 * ALMIGEERBI VIP Launch — Design System
 * Brand-owned luxury launch aesthetic. Not an Apple clone.
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Noto+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand */
  --brand-red: #c41e3a;
  --brand-red-bright: #e0243f;
  --brand-red-deep: #8b1528;
  --brand-red-glow: rgba(196, 30, 58, 0.35);

  /* Neutrals */
  --black: #0a0a0b;
  --black-elevated: #121214;
  --white: #ffffff;
  --off-white: #f5f5f7;
  --titanium: #8e8e93;
  --titanium-light: #c7c7cc;
  --titanium-dark: #48484a;
  --titanium-surface: #1c1c1e;

  /* Surfaces */
  --surface-0: #000000;
  --surface-1: #0a0a0b;
  --surface-2: #141416;
  --surface-glass: rgba(255, 255, 255, 0.06);
  --surface-glass-strong: rgba(255, 255, 255, 0.1);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.08);

  /* Text */
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-muted: #636366;
  --text-on-red: #ffffff;
  --text-inverse: #0a0a0b;

  /* Typography */
  --font-en: 'Outfit', system-ui, sans-serif;
  --font-ar: 'Noto Sans Arabic', 'Outfit', sans-serif;
  --font: var(--font-en);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 6rem;
  --space-16: 8rem;

  /* Radii */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-2xl: 2.25rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glass: 0 8px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --shadow-red: 0 8px 28px var(--brand-red-glow);
  --shadow-pass: 0 24px 64px rgba(0, 0, 0, 0.55);

  /* Motion — luxury curves */
  --ease-luxury: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 560ms;
  --dur-cinematic: 900ms;

  /* Layout */
  --nav-h: 4.5rem;
  --max-w: 72rem;
  --max-w-narrow: 28rem;
}

[dir="rtl"] {
  --font: var(--font-ar);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--surface-0);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Atmosphere */
.bg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(196, 30, 58, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(142, 142, 147, 0.06), transparent 50%),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(196, 30, 58, 0.08), transparent 45%),
    var(--surface-0);
}

/* Typography */
.display {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.display-sm {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}

.headline {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--titanium);
}

.body-lg {
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.muted {
  color: var(--text-muted);
}

/* Glass */
.glass {
  background: var(--surface-glass);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
  border-radius: var(--radius-xl);
}

.glass-strong {
  background: var(--surface-glass-strong);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
  border-radius: var(--radius-xl);
}

.glass-reflect::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 42%, transparent 100%);
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-luxury),
    box-shadow var(--dur-base) var(--ease-smooth),
    background var(--dur-base) var(--ease-smooth);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-red-bright), var(--brand-red-deep));
  color: var(--text-on-red);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  box-shadow: 0 12px 36px rgba(196, 30, 58, 0.5);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-ghost:hover {
  background: var(--surface-glass);
  border-color: var(--titanium-light);
}

.btn-secondary {
  background: var(--white);
  color: var(--text-inverse);
}

.btn-secondary:hover {
  background: var(--off-white);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.0625rem;
}

/* Form */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.field input,
.field select {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-smooth),
    box-shadow var(--dur-fast) var(--ease-smooth);
}

.field input:focus,
.field select:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px var(--brand-red-glow);
}

.field select option {
  background: var(--surface-2);
  color: var(--text-primary);
}

/* Color swatches (finish picker) */
.color-swatch-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.color-swatch {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-smooth),
    background var(--dur-fast) var(--ease-smooth),
    box-shadow var(--dur-fast) var(--ease-smooth);
}

.color-swatch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.color-swatch-dot {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--swatch, #888);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.35);
}

.color-swatch-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.2;
}

.color-swatch:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.color-swatch.is-selected,
.color-swatch:has(input:checked) {
  border-color: var(--brand-red-bright);
  box-shadow: 0 0 0 2px var(--brand-red-glow);
  background: rgba(196, 30, 58, 0.1);
}

.color-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.color-chip .color-swatch-dot {
  width: 0.95rem;
  height: 0.95rem;
}

@media (max-width: 380px) {
  .color-swatch-list {
    grid-template-columns: 1fr;
  }
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-inline: clamp(1rem, 4vw, 3rem);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  min-width: 0;
}

.nav-brand img {
  height: 2.85rem;
  width: auto;
  max-width: 10.5rem;
  display: block;
  object-fit: contain;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.nav-link {
  padding: 0.5rem 0.9rem;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.nav-inline-form {
  display: inline;
  margin: 0;
}

.nav-mobile-bar {
  display: none;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-burger {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  background: var(--surface-glass);
  color: var(--text-primary);
  cursor: pointer;
  padding: 0;
}

.nav-burger-lines {
  width: 1.15rem;
  height: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-burger-lines i {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease-luxury),
    opacity var(--dur-fast) var(--ease-smooth);
  transform-origin: center;
}

.nav-burger-lines.is-open i:nth-child(1) {
  transform: translateY(0.325rem) rotate(45deg);
}
.nav-burger-lines.is-open i:nth-child(2) {
  opacity: 0;
}
.nav-burger-lines.is-open i:nth-child(3) {
  transform: translateY(-0.325rem) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-drawer {
  position: fixed;
  top: 0;
  inset-inline-end: 0;
  z-index: 120;
  width: min(19.5rem, 88vw);
  height: 100dvh;
  height: 100vh;
  padding: 0;
  background:
    radial-gradient(ellipse 90% 40% at 100% 0%, rgba(196, 30, 58, 0.22), transparent 55%),
    linear-gradient(180deg, #161618 0%, #0a0a0b 55%, #050506 100%);
  border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -20px 0 56px rgba(0, 0, 0, 0.55);
  transform: translateX(110%);
  transition: transform var(--dur-base) var(--ease-luxury);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

[dir="rtl"] .nav-drawer {
  transform: translateX(-110%);
  box-shadow: 20px 0 56px rgba(0, 0, 0, 0.55);
  background:
    radial-gradient(ellipse 90% 40% at 0% 0%, rgba(196, 30, 58, 0.22), transparent 55%),
    linear-gradient(180deg, #161618 0%, #0a0a0b 55%, #050506 100%);
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.35rem 1.25rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.nav-drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.nav-drawer-brand img {
  height: 2.15rem;
  width: auto;
  max-width: 7.5rem;
  object-fit: contain;
}

.nav-drawer-brand .eyebrow {
  margin: 0;
  letter-spacing: 0.14em;
}

.nav-drawer-close {
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-smooth),
    border-color var(--dur-fast) var(--ease-smooth);
}

.nav-drawer-close:hover {
  background: rgba(196, 30, 58, 0.2);
  border-color: rgba(224, 36, 63, 0.45);
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.15rem 1rem 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

.nav-drawer-link,
.nav-drawer-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.05rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-primary);
  text-decoration: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-smooth),
    border-color var(--dur-fast) var(--ease-smooth),
    transform var(--dur-fast) var(--ease-luxury);
}

.nav-drawer-link:hover,
.nav-drawer-btn:hover,
.nav-drawer-link:active,
.nav-drawer-btn:active {
  background: rgba(196, 30, 58, 0.16);
  border-color: rgba(224, 36, 63, 0.35);
  transform: translateY(-1px);
}

.nav-drawer-link.is-danger,
.nav-drawer-btn.is-danger {
  color: #ff8a97;
  margin-top: 0.35rem;
}

.nav-drawer-footer {
  padding: 0.85rem 1.15rem 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.nav-drawer form {
  margin: 0;
}

body.nav-lock {
  overflow: hidden;
}

[x-cloak] {
  display: none !important;
}

.lang-toggle {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: var(--radius-full);
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
}

.lang-toggle button {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-smooth);
}

.lang-toggle button.active {
  background: var(--brand-red);
  color: white;
}

.lang-toggle-compact button {
  padding: 0.35rem 0.55rem;
}

/* Layout helpers */
.container {
  width: min(100% - 2.5rem, var(--max-w));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-12);
}

.section-sm {
  padding-block: var(--space-8);
}

/* Countdown */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.countdown-cell {
  text-align: center;
  padding: 1.25rem 0.75rem;
  position: relative;
  overflow: hidden;
}

.countdown-cell .num {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, var(--titanium-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.countdown-cell .lbl {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--titanium);
  margin-top: 0.35rem;
}

/* Stats / scarcity */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-card {
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card .value {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-card .value.accent {
  color: var(--brand-red-bright);
}

.stat-card .label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

.scarcity-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  flex-wrap: wrap;
}

.scarcity-bar .meter {
  flex: 1;
  min-width: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.scarcity-bar .meter > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-red-deep), var(--brand-red-bright));
  border-radius: inherit;
  transition: width var(--dur-slow) var(--ease-luxury);
}

/* VIP Pass — Wallet inspired */
.vip-pass {
  width: min(100%, 22rem);
  aspect-ratio: 10 / 16;
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(196, 30, 58, 0.25) 0%, transparent 40%),
    linear-gradient(180deg, #1a1a1c 0%, #0d0d0f 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-pass);
}

.vip-pass::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.15) 0%, transparent 35%);
  pointer-events: none;
}

.vip-pass .pass-logo {
  height: 3.25rem;
  width: auto;
  max-width: 8.5rem;
  object-fit: contain;
  align-self: flex-start;
}

.vip-pass .pass-title {
  margin-top: 1.25rem;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--titanium-light);
}

.vip-pass .pass-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.vip-pass .pass-meta {
  margin-top: auto;
  display: grid;
  gap: 0.75rem;
}

.vip-pass .pass-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
}

.vip-pass .pass-row span:first-child {
  color: var(--titanium);
}

.vip-pass .pass-qr {
  margin-top: 1rem;
  align-self: center;
  width: 7.5rem;
  height: 7.5rem;
  background: white;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  padding: 0.5rem;
}

.vip-pass .pass-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(196, 30, 58, 0.2);
  color: var(--brand-red-bright);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
}

/* Video placeholder */
.video-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at center, rgba(196, 30, 58, 0.15), transparent 60%),
    linear-gradient(180deg, #121214 0%, #050505 100%);
  border-block: 1px solid var(--border-subtle);
}

.video-placeholder .rim {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px rgba(196, 30, 58, 0.12);
  pointer-events: none;
}

.video-placeholder .play-affordance {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.video-placeholder .play-ring {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  transition: transform var(--dur-base) var(--ease-luxury),
    border-color var(--dur-base) var(--ease-smooth);
}

.video-placeholder:hover .play-ring {
  transform: scale(1.06);
  border-color: var(--brand-red-bright);
}

.video-placeholder .play-ring::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
  margin-inline-start: 4px;
}

.video-placeholder .caption {
  position: absolute;
  bottom: 1.5rem;
  inset-inline: 0;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--titanium);
}

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s var(--ease-smooth) infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Animations */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 var(--brand-red-glow); }
  50% { box-shadow: 0 0 24px 4px var(--brand-red-glow); }
}

.anim-fade-up {
  animation: fade-up var(--dur-cinematic) var(--ease-out-expo) both;
}

.anim-fade-in {
  animation: fade-in var(--dur-slow) var(--ease-smooth) both;
}

.anim-scale-in {
  animation: scale-in var(--dur-slow) var(--ease-luxury) both;
}

.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 320ms; }
.delay-4 { animation-delay: 440ms; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Staff / dashboard chrome */
.dash-shell {
  display: grid;
  grid-template-columns: 15rem 1fr;
  min-height: 100vh;
}

.dash-sidebar {
  background: var(--surface-1);
  border-inline-end: 1px solid var(--border-subtle);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dash-sidebar a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--dur-fast) var(--ease-smooth);
}

.dash-sidebar a:hover,
.dash-sidebar a.active {
  background: rgba(196, 30, 58, 0.15);
  color: var(--text-primary);
}

.dash-main {
  padding: 1.75rem 2rem;
  background: var(--surface-0);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem;
}

.kpi {
  padding: 1.25rem;
}

.kpi .kpi-label {
  font-size: 0.75rem;
  color: var(--titanium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.kpi .kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 0.35rem;
  font-variant-numeric: tabular-nums;
}

/* Check-in */
.checkin-stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.scan-frame {
  width: min(100%, 28rem);
  aspect-ratio: 1;
  border-radius: var(--radius-2xl);
  border: 2px dashed rgba(196, 30, 58, 0.45);
  display: grid;
  place-items: center;
  background: rgba(196, 30, 58, 0.05);
  position: relative;
}

.scan-frame::before {
  content: '';
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
}

/* Responsive */
@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .nav-mobile-bar {
    display: flex;
  }

  .nav-brand img {
    height: 2.35rem;
    max-width: 8rem;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 4rem;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .countdown-grid {
    gap: 0.4rem;
  }

  .countdown-cell {
    padding: 0.85rem 0.35rem;
  }

  .countdown-cell .lbl {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }

  .page-center {
    padding: calc(var(--nav-h) + 1.25rem) 1rem 5.5rem;
  }

  .btn-lg {
    padding: 0.95rem 1.5rem;
    width: 100%;
    max-width: 20rem;
  }

  .section {
    padding-block: var(--space-8);
  }

  .container {
    width: min(100% - 1.5rem, var(--max-w));
  }

  .vip-pass {
    width: min(100%, 20rem);
    padding: 1.15rem;
  }

  .assistant-fab-root {
    inset-inline-end: 0.85rem;
    bottom: 0.85rem;
  }

  .assistant-fab {
    padding: 0.75rem 1rem;
    font-size: 0.78rem;
  }

  .assistant-drawer {
    width: min(22rem, calc(100vw - 1.5rem));
  }

  .dash-shell {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    flex-direction: row;
    overflow-x: auto;
    border-inline-end: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}

@media (max-width: 380px) {
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.gap-4 { gap: var(--space-4); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.input {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  outline: none;
  width: 100%;
}
.input:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px var(--brand-red-glow);
}
.errorlist { color: var(--brand-red-bright); font-size: 0.8125rem; list-style: none; margin-top: 0.25rem; }
.messages { list-style: none; margin: 1rem 0; }
.messages li { padding: 0.75rem 1rem; border-radius: var(--radius-md); background: rgba(196,30,58,.15); }

.page-center {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: calc(var(--nav-h) + 2rem) 1.25rem 3rem;
  margin-inline: auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}
.card-center {
  margin-inline: auto;
  width: 100%;
  box-sizing: border-box;
}
[dir="rtl"] .field label,
[dir="rtl"] .field input,
[dir="rtl"] .field select {
  text-align: start;
}
.text-end { text-align: end; }

/* ── Launch Assistant chat ── */
.assistant-fab-root {
  position: fixed;
  inset-inline-end: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
}
.assistant-fab {
  border: 1px solid var(--border-glass);
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-deep));
  color: var(--text-on-red);
  border-radius: var(--radius-full);
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-red);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-luxury), box-shadow var(--dur-base) var(--ease-smooth);
}
.assistant-fab:hover { transform: translateY(-2px); }
.assistant-drawer {
  position: absolute;
  inset-inline-end: 0;
  bottom: calc(100% + 0.75rem);
  width: min(22rem, calc(100vw - 2rem));
  max-height: min(70vh, 32rem);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-pass);
}
.assistant-drawer[hidden] { display: none !important; }
.assistant-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.assistant-messages {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 10rem;
  max-height: 18rem;
  padding: 0.25rem 0;
}
.assistant-page .assistant-messages { max-height: 50vh; min-height: 16rem; }
.assistant-bubble {
  max-width: 92%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.assistant-bubble.user {
  align-self: flex-end;
  background: rgba(196, 30, 58, 0.25);
  border: 1px solid rgba(196, 30, 58, 0.35);
}
.assistant-bubble.bot {
  align-self: flex-start;
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
}
.assistant-bubble.thinking { opacity: 0.7; font-style: italic; }
@media (max-width: 480px) {
  .assistant-fab span { font-size: 0.8rem; }
}

