/* ═══════════════════════════════════════════════════════════════════
   RIHLA NOIR — Design System
   OLED-black canvas · aurora mesh · glass surfaces · hairline borders
   Clash Display (display) + Satoshi (body) + JetBrains Mono (data)
   Electric cyan accent (#3ec1ff) · gold reserved for رحلة + featured
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&f[]=satoshi@400,500,700,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  /* Noir surfaces */
  --noir-0: #050608;
  --noir-1: #0a0c11;
  --noir-2: #10131b;
  --noir-3: #161a24;
  --line-1: rgba(255,255,255,0.07);
  --line-2: rgba(255,255,255,0.12);

  /* Text scale */
  --text-hi:  #f2f5fa;
  --text-mid: #9aa3b2;
  --text-low: #6b7484;

  /* Accent */
  --cyan:        #2aa9e0;
  --cyan-soft:   #7ecbee;
  --cyan-deep:   #1b87c0;
  --glow-cyan:   rgba(42,169,224,0.35);
  --gold:        #f6c945;
  --gold-soft:   #ffd866;

  /* ── Legacy variable remap (inline styles across pages use these) ── */
  --color-midnight-ink: #f2f5fa;
  --color-pure-canvas:  #0b0d12;
  --color-graphite:     #c8cfdb;
  --color-slate:        #9aa3b2;
  --color-ash:          #6f7888;
  --color-fog:          #59616e;
  --color-silver:       rgba(255,255,255,0.16);
  --color-warm-sand:    #d9c58b;

  --color-rihla-blue:      #2aa9e0;
  --color-rihla-blue-dark: #1b87c0;
  --color-rihla-gold:      #f6c945;
  --color-rihla-navy:      #07090e;

  --gradient-rihla:  linear-gradient(135deg, #1b87c0 0%, #2aa9e0 55%, #5cc0ec 100%);
  --gradient-hero:   linear-gradient(160deg, #05070b 0%, #0a1322 60%, #08263a 100%);
  --gradient-subtle: linear-gradient(rgba(42,169,224,0.07) 0%, rgba(0,0,0,0) 100%);
  --gradient-gold:   linear-gradient(135deg, #f6c945 0%, #e0a93a 100%);

  --color-going: #34d17b;
  --color-maybe: #f5b73d;
  --color-cant:  #ff5d5d;

  --shadow-sm:   0 2px 12px rgba(0,0,0,0.4);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.5);
  --shadow-card: 0 1px 1px rgba(0,0,0,0.3), 0 12px 32px rgba(0,0,0,0.45), 0 32px 80px rgba(0,0,0,0.35);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 999px;

  --font-display: 'Clash Display', 'Satoshi', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Satoshi', ui-sans-serif, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
  --page-max: 1200px;

  /* Slush-era vars still referenced by a few inline styles — kept light
     because black text accompanies them inline */
  --sl-sky:      #cfe7ff;
  --sl-concrete: #e9ebef;
  --sl-white:    #ffffff;
  --sl-black:    #000000;
  --sl-yellow:   #ffd84d;
  --sl-green:    #8fe6a0;
  --sl-pink:     #ffb5ca;
  --sl-orange:   #ffc97a;
  --sl-purple:   #cdb2ff;
  --sl-teal:     #7de8d2;
  --sl-coral:    #ff9e7d;
  --sl-border:   1px solid rgba(255,255,255,0.09);
  --sl-radius:   20px;
  --sl-radius-pill: 999px;

  --ease-fluent: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--noir-0); }
body {
  font-family: var(--font-body);
  background-color: var(--noir-0);
  background-image:
    radial-gradient(ellipse 50% 38% at 12% -4%,  rgba(42,169,224,0.10), transparent 64%),
    radial-gradient(ellipse 44% 34% at 92% 12%,  rgba(24,80,160,0.14),  transparent 60%),
    radial-gradient(ellipse 60% 44% at 50% 108%, rgba(13,44,71,0.32),   transparent 62%),
    radial-gradient(ellipse 26% 20% at 78% 86%,  rgba(246,201,69,0.045), transparent 70%);
  background-attachment: fixed;
  color: var(--text-hi);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Film grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; }
.gold { color: var(--gold); }

::selection { background: rgba(42,169,224,0.9); color: #041018; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1c2230; border-radius: 8px; border: 2px solid var(--noir-0); }
::-webkit-scrollbar-thumb:hover { background: #2a3344; }
:focus-visible { outline: 2px solid rgba(42,169,224,0.7); outline-offset: 2px; border-radius: 4px; }

/* Layout */
.container { max-width: var(--page-max); margin: 0 auto; padding: 0 24px; }
.page-content { padding: 56px 24px 120px; max-width: var(--page-max); margin: 0 auto; }

/* ═══════════════════════════════════════════════════════════════════
   MARQUEE
   ═══════════════════════════════════════════════════════════════════ */
.sl-marquee-wrap {
  background: rgba(7,9,13,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-1);
  height: 36px;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 90;
}
.sl-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: slMarquee 38s linear infinite;
  color: rgba(235,240,250,0.42);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
@keyframes slMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.sl-marquee-item { padding: 0 30px; white-space: nowrap; }
.sl-marquee-sep  { color: var(--cyan); opacity: 0.5; }

/* ═══════════════════════════════════════════════════════════════════
   NAV — floating glass pill
   ═══════════════════════════════════════════════════════════════════ */
.sl-nav-outer {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 24px 12px;
  background: linear-gradient(180deg, rgba(5,6,8,0.82) 0%, rgba(5,6,8,0) 100%);
}
.sl-nav {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  background: rgba(13,16,23,0.62);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.07);
  padding: 8px 8px 8px 24px;
}
.sl-nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  margin-right: 30px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}
.sl-nav-logo img.sl-logo-full { height: 30px; width: auto; display: block; }
.sl-logo-sep    { color: rgba(255,255,255,0.25); margin: 0 6px; }
.sl-logo-arabic { font-family: var(--font-body); font-size: 14px; text-transform: none; color: var(--gold); font-weight: 700; }
.sl-nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.sl-nav-link {
  font-size: 13px;
  font-weight: 600;
  color: rgba(235,240,250,0.55);
  padding: 8px 15px;
  border-radius: var(--radius-full);
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.sl-nav-link:hover { color: #fff; background: rgba(255,255,255,0.07); }
.sl-nav-link.sl-active {
  color: #fff;
  background: rgba(42,169,224,0.12);
  box-shadow: inset 0 0 0 1px rgba(42,169,224,0.28);
}
.sl-nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sl-nav-actions .btn,
.sl-nav-actions a[href] {
  border-radius: var(--radius-full) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  display: inline-flex;
  align-items: center;
}
.nav-user-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid var(--line-2) !important;
  border-radius: var(--radius-full) !important;
  padding: 5px 15px 5px 6px !important;
  font-size: 13px !important;
  font-weight: 600;
  color: var(--text-hi) !important;
  transition: background 0.2s, border-color 0.2s;
}
.nav-user-pill:hover { background: rgba(255,255,255,0.1) !important; border-color: rgba(42,169,224,0.35) !important; }
.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gradient-rihla);
  box-shadow: 0 0 12px rgba(42,169,224,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #04111c;
}

/* Legacy nav (checkout / dashboard / scan / event pages) */
.nav {
  background: rgba(7,9,13,0.78);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line-1);
}
.nav-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: #fff;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-logo .logo-arabic { color: var(--gold); font-family: var(--font-body); font-size: 14px; text-transform: none; }
.nav-logo .logo-sep    { color: rgba(255,255,255,0.25); margin: 0 5px; }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.nav-link {
  color: rgba(235,240,250,0.55);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 15px;
  border-radius: var(--radius-full);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-link.active { color: var(--cyan-soft); background: rgba(42,169,224,0.1); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS — pill lock, physical press, glow on intent
   ═══════════════════════════════════════════════════════════════════ */
.btn, .sl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.2;
  transition:
    transform 0.32s var(--ease-fluent),
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.32s ease;
  will-change: transform;
}
.btn:hover, .sl-btn:hover { transform: translateY(-1.5px); }
.btn:active, .sl-btn:active { transform: translateY(1px) scale(0.97); }
.btn:disabled { opacity: 0.4; pointer-events: none; }

.btn-primary, .sl-btn-black {
  background: #ffffff;
  color: #06070a;
  border-color: #ffffff;
}
.btn-primary:hover, .sl-btn-black:hover {
  background: #eaf4ff;
  box-shadow: 0 10px 36px -8px rgba(42,169,224,0.45), 0 2px 10px rgba(0,0,0,0.4);
}
.btn-gold, .sl-btn-yellow {
  background: var(--gold);
  color: #1a1200;
  border-color: var(--gold);
}
.btn-gold:hover, .sl-btn-yellow:hover {
  background: #ffd55c;
  box-shadow: 0 10px 36px -8px rgba(246,201,69,0.45);
}
.btn-dark {
  background: rgba(255,255,255,0.06);
  color: var(--text-hi);
  border-color: var(--line-2);
}
.btn-dark:hover { background: rgba(255,255,255,0.1); }
.btn-white { background: #fff; color: #06070a; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.45); }
.btn-ghost-dark, .sl-btn-outline {
  background: rgba(255,255,255,0.045);
  color: var(--text-hi);
  border-color: var(--line-2);
}
.btn-ghost-dark:hover, .sl-btn-outline:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(42,169,224,0.45);
  box-shadow: 0 8px 28px -10px rgba(42,169,224,0.3);
}
.sl-btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.sl-btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-sm, .sl-btn-sm { padding: 7px 15px; font-size: 13px; }
.btn-lg, .sl-btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-icon { padding: 8px; width: 36px; height: 36px; border-radius: 12px; }
.btn-danger {
  background: rgba(255,93,93,0.1);
  color: #ff8a8a;
  border-color: rgba(255,93,93,0.3);
}
.btn-danger:hover { background: rgba(255,93,93,0.18); border-color: rgba(255,93,93,0.5); }
.btn-success {
  background: rgba(52,209,123,0.1);
  color: #6fe2a4;
  border-color: rgba(52,209,123,0.3);
}
.btn-outline-blue {
  background: transparent;
  color: var(--cyan-soft);
  border-color: rgba(42,169,224,0.5);
}
.btn-outline-blue:hover { background: rgba(42,169,224,0.1); }

/* ═══════════════════════════════════════════════════════════════════
   HERO — stage-light conic sweep, metal-gradient type
   ═══════════════════════════════════════════════════════════════════ */
.sl-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(88dvh, 840px);
  padding: 110px 24px 130px;
}
.sl-hero::before {
  content: '';
  position: absolute;
  inset: -45%;
  background: conic-gradient(
    from 180deg at 50% 50%,
    transparent 0deg,
    rgba(42,169,224,0.075) 55deg,
    transparent 120deg,
    rgba(246,201,69,0.045) 195deg,
    transparent 255deg,
    rgba(42,169,224,0.06) 320deg,
    transparent 360deg
  );
  filter: blur(42px);
  animation: heroSweep 30s linear infinite;
  pointer-events: none;
}
@keyframes heroSweep { to { transform: rotate(360deg); } }
.sl-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(42,169,224,0.4) 30%, rgba(42,169,224,0.4) 70%, transparent);
  box-shadow: 0 0 24px 2px rgba(42,169,224,0.25);
  pointer-events: none;
}
.sl-hero-ribbon {
  position: absolute;
  bottom: -8px; left: 0; right: 0;
  width: 100%;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 22px rgba(42,169,224,0.45));
}
.sl-sticker {
  position: absolute;
  pointer-events: none;
  user-select: none;
  animation: slFloat 6s ease-in-out infinite;
  opacity: 0.85;
  filter: saturate(1.1) drop-shadow(0 8px 28px rgba(42,169,224,0.3));
  z-index: 1;
}
.sl-sticker-a { top: 14%; right: 8%;  font-size: 66px; animation-delay: 0s;   }
.sl-sticker-b { top: 54%; right: 17%; font-size: 50px; animation-delay: 1.3s; }
.sl-sticker-c { top: 30%; right: 29%; font-size: 36px; animation-delay: 2.6s; opacity: 0.5; }
.sl-sticker-d { bottom: 18%; right: 6%; font-size: 44px; animation-delay: 0.7s; }
@keyframes slFloat {
  0%, 100% { transform: translateY(0)     rotate(-5deg); }
  50%      { transform: translateY(-16px) rotate(4deg);  }
}
.sl-hero-inner { max-width: 1140px; width: 100%; margin: 0 auto; position: relative; z-index: 2; }
.sl-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-2);
  color: var(--text-mid);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
}
.sl-hero-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px 2px var(--glow-cyan);
  animation: pulseDot 2.2s ease-in-out infinite;
}
@keyframes pulseDot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.78); } }
.sl-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(54px, 8.4vw, 122px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: 0 0 26px;
  background: linear-gradient(180deg, #ffffff 0%, #dde6f4 52%, #8294b3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
  text-wrap: balance;
}
.sl-hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-mid);
  max-width: 480px;
  margin: 0 0 38px;
}
.sl-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 64px; }
.sl-hero-stats { display: flex; gap: 52px; flex-wrap: wrap; }
.sl-hero-stats > div { position: relative; }
.sl-hero-stats > div:not(:first-child)::before {
  content: '';
  position: absolute;
  left: -26px; top: 4px; bottom: 4px;
  width: 1px;
  background: var(--line-1);
}
.sl-stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 38px;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.sl-stat-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-low);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 7px;
}

/* Legacy hero fallback */
.hero { position: relative; overflow: hidden; padding: 110px 24px 90px; text-align: center; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 80px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  margin-bottom: 20px;
}
.hero p { font-size: 17px; color: var(--text-mid); max-width: 560px; margin: 0 auto 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════════ */
.sl-section { padding: 110px 24px; position: relative; }
.sl-section-white, .sl-section-concrete, .sl-section-sky { background: transparent; }
.sl-container { max-width: 1140px; margin: 0 auto; }
.sl-section-header { text-align: center; margin-bottom: 64px; }
.sl-section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 20px;
}
.sl-label-pill, .label-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(42,169,224,0.07);
  border: 1px solid rgba(42,169,224,0.22);
  color: var(--cyan-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 15px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.sl-label-white { background: rgba(255,255,255,0.06) !important; border-color: var(--line-2) !important; color: var(--text-mid) !important; }
.sl-section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 54px);
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0 0 12px;
  background: linear-gradient(180deg, #ffffff 0%, #d6deec 60%, #97a6c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
  text-wrap: balance;
}
.sl-section-sub { font-size: 16px; color: var(--text-mid); margin: 0; line-height: 1.65; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  max-width: var(--page-max);
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════
   CARDS — glass panels, cyan intent glow
   ═══════════════════════════════════════════════════════════════════ */
.card {
  background: rgba(15,18,26,0.62);
  border: 1px solid var(--line-1);
  border-radius: 20px;
  padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color 0.3s, box-shadow 0.4s, transform 0.35s var(--ease-fluent);
}
.card:hover { border-color: var(--line-2); box-shadow: 0 16px 48px -16px rgba(0,0,0,0.6); }

.feature-card { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s var(--ease-fluent); }
.feature-card.anim-in { opacity: 1; transform: translateY(0); }
.feature-card .icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: rgba(42,169,224,0.09);
  border: 1px solid rgba(42,169,224,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.feature-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; margin-bottom: 8px; color: #fff; }
.feature-card p { font-size: 14px; color: var(--text-mid); line-height: 1.65; }

/* Event cards */
.sl-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}
.event-card {
  position: relative;
  background: rgba(15,18,26,0.66);
  border: 1px solid var(--line-1);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.3s, box-shadow 0.45s, transform 0.35s var(--ease-fluent);
}
.event-card:hover {
  border-color: rgba(42,169,224,0.35);
  box-shadow: 0 28px 70px -18px rgba(42,169,224,0.22), 0 6px 20px rgba(0,0,0,0.5);
  transform: translateY(-6px);
}
.card-gloss {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.09) 0%, transparent 55%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
  z-index: 5;
}
.event-card:hover .card-gloss { opacity: 1; }
.event-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line-1);
}
.event-card-img-placeholder {
  width: 100%;
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  background:
    radial-gradient(120% 130% at 28% 18%, rgba(42,169,224,0.16), transparent 58%),
    linear-gradient(160deg, #11151f 0%, #0a0d14 100%);
  border-bottom: 1px solid var(--line-1);
  text-shadow: 0 0 40px rgba(42,169,224,0.5);
}
.event-card-body { padding: 20px 20px 10px; }
.event-card-genre {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  margin-bottom: 8px;
}
.event-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin-bottom: 4px;
  color: #fff;
}
.event-card-arabic { font-size: 13px; color: var(--text-low); margin-bottom: 12px; direction: rtl; }
.event-card-meta {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.event-card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--line-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}
.event-card-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.event-card-price span { font-family: var(--font-body); font-size: 11px; color: var(--text-low); font-weight: 500; }
.available-badge {
  background: rgba(42,169,224,0.1);
  border: 1px solid rgba(42,169,224,0.3);
  color: var(--cyan-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.sold-out-badge {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-1);
  color: var(--text-low);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Feature cards — tinted glass, hue per variant */
.sl-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.sl-feature-card {
  --tint: #2aa9e0;
  position: relative;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--tint) 8%, transparent), transparent 65%),
    rgba(15,18,26,0.6);
  border: 1px solid color-mix(in srgb, var(--tint) 22%, rgba(255,255,255,0.06));
  border-radius: 22px;
  padding: 30px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: border-color 0.3s, box-shadow 0.45s;
}
.sl-feature-card:hover {
  border-color: color-mix(in srgb, var(--tint) 45%, transparent);
  box-shadow: 0 24px 60px -20px color-mix(in srgb, var(--tint) 30%, transparent);
}
.sl-sticker-yellow { --tint: #ffd84d; }
.sl-sticker-pink   { --tint: #ff8fb3; }
.sl-sticker-teal   { --tint: #4fe3c1; }
.sl-sticker-green  { --tint: #6fe08b; }
.sl-sticker-orange { --tint: #ffb45c; }
.sl-sticker-purple { --tint: #b08cff; }
.sl-feature-icon {
  font-size: 36px;
  line-height: 1;
  display: block;
  margin-bottom: 18px;
  filter: drop-shadow(0 4px 18px color-mix(in srgb, var(--tint) 45%, transparent));
}
.sl-feature-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.15;
}
.sl-feature-card p { font-size: 14px; line-height: 1.68; color: var(--text-mid); margin: 0; }

/* ═══════════════════════════════════════════════════════════════════
   REVIEWS
   ═══════════════════════════════════════════════════════════════════ */
.sl-reviews-grid, .reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.review-card {
  background: rgba(15,18,26,0.62);
  border: 1px solid var(--line-1);
  border-radius: 22px;
  padding: 26px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color 0.3s, box-shadow 0.4s;
}
.review-card:hover { border-color: rgba(246,201,69,0.3); box-shadow: 0 20px 50px -20px rgba(246,201,69,0.18); }
.review-stars {
  font-size: 15px;
  letter-spacing: 3px;
  margin-bottom: 14px;
  color: var(--gold);
  text-shadow: 0 0 14px rgba(246,201,69,0.45);
}
.review-comment { font-size: 14.5px; color: rgba(235,240,250,0.82); line-height: 1.7; margin-bottom: 18px; }
.review-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.review-author { font-weight: 700; font-size: 14px; color: #fff; }
.review-event  { font-size: 12px; color: var(--cyan-soft); margin-top: 2px; }
.review-date   { font-size: 12px; color: var(--text-low); }
.stars-input { display: flex; gap: 8px; cursor: pointer; }
.star-btn {
  font-size: 26px;
  color: rgba(255,255,255,0.14);
  transition: color 0.15s, text-shadow 0.15s, transform 0.15s;
  user-select: none;
}
.star-btn.active, .star-btn:hover {
  color: var(--gold);
  text-shadow: 0 0 16px rgba(246,201,69,0.55);
  transform: scale(1.08);
}
/* Review form + login prompt panels (unclassed wrappers) */
#review-form-wrap > div, #login-prompt > div {
  background: rgba(15,18,26,0.62);
  border: 1px solid var(--line-1);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
#review-form-wrap h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: #fff; margin-bottom: 20px; }

/* ═══════════════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════════════ */
.about-hero {
  position: relative;
  background: transparent;
  padding: 110px 24px 80px;
  text-align: center;
  overflow: hidden;
}
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 64% 52% at 50% 0%, rgba(42,169,224,0.1), transparent 68%);
  pointer-events: none;
}
.about-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 86px);
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin-top: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #d6deec 60%, #8da0bf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
}
.about-hero h1 span {
  background: linear-gradient(92deg, var(--cyan) 0%, #9be1ff 60%, var(--gold) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-hero p { color: var(--text-mid); }

.sl-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sl-stat-tile {
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.35);
  transform: translateZ(0);
}
.sl-tile-sky    { background: #cfe7ff; box-shadow: 0 18px 50px -20px rgba(110,180,255,0.35); }
.sl-tile-yellow { background: #ffd84d; box-shadow: 0 18px 50px -20px rgba(255,216,77,0.35); }
.sl-tile-green  { background: #8fe6a0; box-shadow: 0 18px 50px -20px rgba(143,230,160,0.3); }
.sl-tile-teal   { background: #7de8d2; box-shadow: 0 18px 50px -20px rgba(125,232,210,0.3); }
.sl-stat-tile-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.02em;
  color: #0a0c10;
  line-height: 1;
}
.sl-stat-tile-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
  margin-top: 8px;
}

.team-grid, .about-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
  max-width: var(--page-max);
  margin: 0 auto;
}
.team-card {
  text-align: center;
  background: rgba(15,18,26,0.62);
  border: 1px solid var(--line-1);
  border-radius: 22px;
  padding: 32px 20px;
  transition: border-color 0.3s, box-shadow 0.4s;
}
.team-card:hover { border-color: rgba(42,169,224,0.3); box-shadow: 0 20px 50px -20px rgba(42,169,224,0.2); }
.team-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #2c5d8a, #0e2438);
  border: 1px solid rgba(42,169,224,0.3);
  box-shadow: 0 0 28px rgba(42,169,224,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  margin: 0 auto 18px;
}
.team-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: #fff; margin-bottom: 4px; }
.team-role { font-size: 13px; color: var(--cyan-soft); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════
   CTA — glow finale
   ═══════════════════════════════════════════════════════════════════ */
.sl-cta-section {
  position: relative;
  padding: 150px 24px;
  text-align: center;
  overflow: hidden;
}
.sl-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 56% 64% at 50% 50%, rgba(42,169,224,0.13), transparent 68%);
  pointer-events: none;
}
.sl-cta-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.sl-cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 70px);
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin: 14px 0 18px;
  background: linear-gradient(180deg, #ffffff 0%, #d6deec 55%, #8da0bf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
  text-wrap: balance;
}
.sl-cta-sub { font-size: 16px; color: var(--text-mid); max-width: 440px; margin: 0 auto 40px; line-height: 1.7; }
.sl-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════════
   PARTNERS TICKER
   ═══════════════════════════════════════════════════════════════════ */
.sl-ticker-section, .partners-ticker-section {
  border-top: 1px solid var(--line-1);
  border-bottom: 1px solid var(--line-1);
  background: rgba(8,10,14,0.4);
}
.sl-ticker-label, .ticker-label {
  text-align: center;
  padding: 26px 24px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-low);
}
.sl-ticker-outer, .ticker-outer { overflow: hidden; padding: 12px 0 28px; position: relative; }
.ticker-outer::before, .ticker-outer::after,
.sl-ticker-outer::before, .sl-ticker-outer::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.ticker-outer::before, .sl-ticker-outer::before { left: 0;  background: linear-gradient(to right, var(--noir-0), transparent); }
.ticker-outer::after,  .sl-ticker-outer::after  { right: 0; background: linear-gradient(to left,  var(--noir-0), transparent); }
.sl-ticker-track, .ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: tickerScroll 32s linear infinite;
}
.sl-ticker-track:hover, .ticker-track:hover { animation-play-state: paused; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-full);
  padding: 9px 20px;
  margin: 0 8px;
  white-space: nowrap;
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 600;
  cursor: default;
  transition: border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.ticker-item:hover {
  color: #fff;
  border-color: rgba(42,169,224,0.4);
  box-shadow: 0 6px 24px -8px rgba(42,169,224,0.3);
}
.ticker-item.t-featured {
  background: rgba(246,201,69,0.08);
  border-color: rgba(246,201,69,0.3);
  color: var(--gold-soft);
}
.ticker-item.t-featured:hover { border-color: rgba(246,201,69,0.6); box-shadow: 0 6px 24px -8px rgba(246,201,69,0.35); }
.ticker-item .t-emoji { font-size: 17px; line-height: 1; }
.ticker-item .t-name  { font-weight: 700; }
.ticker-item .t-cat   { font-size: 11px; font-weight: 500; opacity: 0.55; }

/* ═══════════════════════════════════════════════════════════════════
   FOOTERS
   ═══════════════════════════════════════════════════════════════════ */
.sl-footer, .footer {
  position: relative;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.55) 100%);
  border-top: 1px solid var(--line-1);
  color: var(--text-low);
  padding: 88px 24px 0;
}
.footer { padding: 64px 24px 32px; }
.sl-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-1);
}
.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.sl-footer-brand, .footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 10px;
}
.footer-brand { font-size: 20px; }
.sl-footer-arabic { font-family: var(--font-body); font-size: 15px; text-transform: none; letter-spacing: 0; font-weight: 700; color: var(--gold); }
.sl-footer-tagline, .footer-tagline { font-size: 13px; color: var(--text-low); line-height: 1.7; max-width: 260px; margin-top: 4px; }
.sl-footer-col-title, .footer-col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 18px;
}
.sl-footer-link, .footer-link {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 11px;
  transition: color 0.2s, transform 0.25s var(--ease-fluent);
}
.sl-footer-link:hover, .footer-link:hover { color: #fff; transform: translateX(4px); }
.sl-footer-bottom, .footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding: 22px 0 30px;
  font-size: 12px;
  color: rgba(235,240,250,0.22);
}
.footer-bottom { text-align: center; border-top: 1px solid var(--line-1); padding-top: 24px; }

/* ═══════════════════════════════════════════════════════════════════
   INNER PAGE HEADERS + TABS
   ═══════════════════════════════════════════════════════════════════ */
.sl-page-header {
  position: relative;
  background: transparent;
  padding: 84px 24px 44px;
  overflow: hidden;
}
.sl-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 56% 70% at 28% 0%, rgba(42,169,224,0.09), transparent 64%);
  pointer-events: none;
}
.sl-page-header-inner { max-width: 1140px; margin: 0 auto; position: relative; z-index: 2; }
.sl-page-header-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5.6vw, 78px);
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 12px 0 14px;
  background: linear-gradient(180deg, #ffffff 0%, #d6deec 58%, #8da0bf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
  text-wrap: balance;
}
.sl-page-header-sub { font-size: 16px; color: var(--text-mid); line-height: 1.65; margin: 0; max-width: 560px; }

/* Screen-reader-only label (visually hidden, still announced) */
.sl-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; }

/* Universal language toggle (auto-injected by i18n.js on every page).
   color:inherit adopts each nav's own text color, so it reads on light + dark. */
.rihla-lang-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; min-width: 40px; padding: 6px 14px;
  border-radius: 999px; border: 1px solid rgba(127,127,127,0.38);
  background: rgba(127,127,127,0.14); color: inherit;
  font-size: 14px; font-weight: 700; cursor: pointer; line-height: 1;
}
.rihla-lang-btn:hover { background: rgba(127,127,127,0.26); }
.rihla-lang-float {
  position: fixed; z-index: 2000;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.28); backdrop-filter: blur(4px);
}

/* Search field — full width, comfortably tappable on phones */
.sl-search { position: relative; margin-top: 24px; max-width: 560px; }
.sl-search-icon { position: absolute; top: 50%; left: 18px; transform: translateY(-50%); font-size: 16px; opacity: 0.55; pointer-events: none; }
.sl-search-input {
  width: 100%;
  min-height: 50px;
  box-sizing: border-box;
  padding: 12px 18px 12px 48px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 16px;                 /* 16px keeps iOS from zooming on focus */
  outline: none;
  transition: border-color .15s, background .15s;
}
.sl-search-input::placeholder { color: var(--text-mid); }
.sl-search-input:focus { border-color: var(--rihla-blue, #2BA4D8); background: rgba(255,255,255,0.07); }
.sl-search-input::-webkit-search-cancel-button { cursor: pointer; }
/* RTL: icon on the right, padding mirrored */
[dir="rtl"] .sl-search-icon { left: auto; right: 18px; }
[dir="rtl"] .sl-search-input { padding: 12px 48px 12px 18px; }

.sl-page-header-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.sl-tab {
  padding: 9px 22px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.04);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.3s var(--ease-fluent);
}
.sl-tab:hover { background: rgba(255,255,255,0.09); color: #fff; }
.sl-tab.active {
  background: #fff;
  border-color: #fff;
  color: #06070a;
  box-shadow: 0 8px 28px -10px rgba(255,255,255,0.3);
}

/* ═══════════════════════════════════════════════════════════════════
   BADGES / CHIPS
   ═══════════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}
.badge-default { background: rgba(255,255,255,0.06); border: 1px solid var(--line-1); color: var(--text-mid); }
.badge-blue    { background: rgba(42,169,224,0.1);  border: 1px solid rgba(42,169,224,0.3);  color: var(--cyan-soft); }
.badge-gold    { background: rgba(246,201,69,0.1);  border: 1px solid rgba(246,201,69,0.3);  color: var(--gold-soft); }
.badge-green   { background: rgba(52,209,123,0.1);  border: 1px solid rgba(52,209,123,0.3);  color: #6fe2a4; }
.badge-red     { background: rgba(255,93,93,0.1);   border: 1px solid rgba(255,93,93,0.3);   color: #ff8a8a; }
.badge-warning { background: rgba(245,183,61,0.1);  border: 1px solid rgba(245,183,61,0.3);  color: #ffce6b; }
.badge-sent      { background: rgba(52,209,123,0.1); border: 1px solid rgba(52,209,123,0.3); color: #6fe2a4; }
.badge-used      { background: rgba(52,209,123,0.1); border: 1px solid rgba(52,209,123,0.3); color: #6fe2a4; }
.badge-generated { background: rgba(42,169,224,0.1); border: 1px solid rgba(42,169,224,0.3); color: var(--cyan-soft); }
.badge-error     { background: rgba(255,93,93,0.1);  border: 1px solid rgba(255,93,93,0.3);  color: #ff8a8a; }

.stat-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-1);
  font-size: 13px;
  color: var(--text-mid);
}
.stat-chip strong {
  font-size: 20px;
  font-weight: 600;
  color: var(--cyan-soft);
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text-mid);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  font-size: 14px;
  color: var(--text-hi);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(110,122,140,0.8); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: rgba(42,169,224,0.65);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(42,169,224,0.14);
}
.form-input[readonly] { opacity: 0.6; background: rgba(255,255,255,0.025); }
.form-select option { background: #0d1016; color: var(--text-hi); }
.form-textarea { resize: vertical; min-height: 96px; }
.form-hint { font-size: 12px; color: var(--text-low); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { font-size: 12px; color: #ff8a8a; margin-top: 4px; }

/* ═══════════════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════════════ */
.table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--line-1);
  background: rgba(13,16,22,0.5);
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead { background: rgba(255,255,255,0.035); }
th {
  padding: 13px 16px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-low);
  white-space: nowrap;
  border-bottom: 1px solid var(--line-1);
}
td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text-mid);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(42,169,224,0.035); }
.td-name { font-weight: 600; color: #fff; font-size: 14px; }
.td-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════════════ */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3,4,7,0.72);
  z-index: 500;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: slBackdropIn 0.25s ease;
}
.modal-backdrop.open { display: flex; }
@keyframes slBackdropIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: rgba(14,17,24,0.96);
  border: 1px solid var(--line-2);
  border-radius: 24px;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: slModalIn 0.32s var(--ease-fluent);
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes slModalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
.modal-wide { max-width: 680px; }
.modal-header { padding: 24px 24px 0; display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: #fff; letter-spacing: -0.01em; }
.modal-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  color: var(--text-mid);
  transition: background 0.2s, transform 0.35s var(--ease-fluent), color 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: #fff; transform: rotate(90deg) scale(1.08); }
.modal-body { padding: 20px 24px 28px; }
.delete-modal-icon { font-size: 56px; text-align: center; margin: 20px 0 8px; }
.delete-options { display: flex; gap: 12px; }
.delete-options .btn { flex: 1; }

/* ═══════════════════════════════════════════════════════════════════
   TOASTS
   ═══════════════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: rgba(14,17,24,0.94);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--cyan);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-hi);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s var(--ease-fluent);
  max-width: 340px;
  pointer-events: all;
}
.toast.success { border-left-color: #34d17b; box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 24px -8px rgba(52,209,123,0.4); }
.toast.error   { border-left-color: #ff5d5d; box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 24px -8px rgba(255,93,93,0.4); }
.toast.info    { border-left-color: var(--cyan); }
@keyframes toastIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: translateX(0); } }

/* ═══════════════════════════════════════════════════════════════════
   AUTH
   ═══════════════════════════════════════════════════════════════════ */
.auth-page { min-height: 100dvh; display: flex; background: transparent; }
.auth-left {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 56% at 42% 38%, rgba(42,169,224,0.12), transparent 66%);
  pointer-events: none;
}
.auth-left > * { position: relative; z-index: 1; }
.auth-left-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.auth-left-brand .gold { color: var(--gold); }
.auth-left-tagline { font-size: 15px; color: var(--text-mid); margin-bottom: 44px; }
.auth-left-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line-1);
  border-radius: 18px;
  padding: 15px 20px;
  margin-bottom: 12px;
  max-width: 340px;
  width: 100%;
  text-align: left;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: border-color 0.25s, transform 0.3s var(--ease-fluent);
}
.auth-left-feature:hover { border-color: rgba(42,169,224,0.3); transform: translateX(4px); }
.auth-right {
  width: 480px;
  background: rgba(10,12,17,0.85);
  border-left: 1px solid var(--line-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}
.auth-card { width: 100%; max-width: 380px; }
.auth-tabs {
  display: flex;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 30px;
  gap: 4px;
}
.auth-tab {
  flex: 1;
  padding: 9px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all 0.22s var(--ease-fluent);
}
.auth-tab.active { background: #fff; color: #06070a; box-shadow: 0 2px 10px rgba(0,0,0,0.4); }
.auth-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 27px;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 6px;
}
.auth-subtitle { font-size: 14px; color: var(--text-mid); margin-bottom: 28px; }
.auth-footer { margin-top: 22px; text-align: center; font-size: 13px; color: var(--text-low); }
.auth-footer a { color: var(--cyan-soft); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════
   EVENT DETAIL
   ═══════════════════════════════════════════════════════════════════ */
.event-detail-hero {
  position: relative;
  background: linear-gradient(160deg, rgba(11,26,42,0.55) 0%, rgba(7,10,16,0.2) 100%);
  border-bottom: 1px solid var(--line-1);
  color: #fff;
  overflow: hidden;
}
.event-detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 86% at 18% 0%, rgba(42,169,224,0.12), transparent 62%);
  pointer-events: none;
}
.event-detail-hero-img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.18; mix-blend-mode: luminosity; }
.event-detail-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 64px 24px 56px;
}
.event-detail-genre {
  display: inline-block;
  background: rgba(42,169,224,0.1);
  border: 1px solid rgba(42,169,224,0.3);
  color: var(--cyan-soft);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.event-detail-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin-bottom: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #d6deec 60%, #8da0bf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
}
.event-detail-arabic { font-size: 20px; color: var(--gold); margin-bottom: 26px; direction: rtl; }
.event-detail-meta-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  color: var(--text-mid);
  margin-bottom: 10px;
}

/* Detail body blocks */
.ed-section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 14px;
}
.ed-desc { font-size: 15px; color: var(--text-mid); line-height: 1.8; margin-bottom: 32px; max-width: 65ch; }
.ed-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 32px; }
.ed-info-tile {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-1);
  border-radius: 16px;
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.ed-info-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 7px;
}
.ed-info-value { font-weight: 700; font-size: 14px; color: #fff; }
.ed-info-sub   { font-size: 12px; color: var(--text-mid); margin-top: 2px; }
.ed-avail-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.ed-avail-row {
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--line-1);
  border-radius: 14px;
  padding: 15px 18px;
  transition: border-color 0.25s;
}
.ed-avail-row:hover { border-color: var(--line-2); }
.ed-avail-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; }
.ed-avail-name { font-weight: 700; font-size: 14px; color: #fff; }
.ed-avail-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--cyan-soft);
  font-variant-numeric: tabular-nums;
}
.ed-avail-price span { font-family: var(--font-body); font-size: 11px; font-weight: 500; color: var(--text-low); }
.ed-avail-meter { display: flex; align-items: center; gap: 10px; }
.ed-avail-left { font-size: 12px; color: var(--text-low); white-space: nowrap; }
.ed-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.ed-tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 13px;
  color: var(--text-mid);
}

/* Ticket picker */
.ticket-picker {
  background: rgba(14,17,24,0.78);
  border: 1px solid var(--line-2);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 24px 70px -20px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.06);
  max-width: 380px;
  position: sticky;
  top: 96px;
}
.ticket-picker h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: #fff; }
.ticket-type-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-1);
  border-radius: 16px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.3s;
}
.ticket-type-option:hover { border-color: rgba(42,169,224,0.45); background: rgba(42,169,224,0.05); }
.ticket-type-option.selected {
  border-color: var(--cyan);
  background: rgba(42,169,224,0.09);
  box-shadow: 0 0 0 1px rgba(42,169,224,0.3), 0 8px 28px -10px rgba(42,169,224,0.3);
}
.ticket-type-option.sold-out { opacity: 0.4; pointer-events: none; }
.ticket-type-name { font-weight: 700; font-size: 14px; color: #fff; margin-bottom: 2px; }
.ticket-type-avail { font-size: 12px; color: var(--text-low); }
.ticket-type-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--cyan-soft);
  font-variant-numeric: tabular-nums;
}
.ticket-type-price span { font-size: 11px; color: var(--text-low); font-weight: 500; font-family: var(--font-body); }
.qty-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 16px;
}
.qty-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan-soft);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, transform 0.25s var(--ease-fluent);
}
.qty-btn:hover { background: rgba(42,169,224,0.16); transform: scale(1.06); }
.qty-btn:active { transform: scale(0.94); }
.qty-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  flex: 1;
  text-align: center;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.tp-summary {
  background: rgba(42,169,224,0.06);
  border: 1px solid rgba(42,169,224,0.18);
  border-radius: 16px;
  padding: 16px;
  margin: 16px 0;
}
.tp-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 10px;
}
.tp-summary-row strong { font-weight: 700; color: var(--text-hi); }
.tp-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: #fff;
}
.tp-total .tp-total-amount { color: var(--cyan-soft); text-shadow: 0 0 24px rgba(42,169,224,0.35); font-variant-numeric: tabular-nums; }
.tp-note { font-size: 12px; color: var(--text-low); text-align: center; margin-top: 12px; }

/* ═══════════════════════════════════════════════════════════════════
   CHECKOUT
   ═══════════════════════════════════════════════════════════════════ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 36px;
  max-width: 920px;
  margin: 0 auto;
  padding: 52px 24px 110px;
}
.checkout-section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-1);
}
.payment-method-tabs { display: flex; gap: 12px; margin-bottom: 24px; }
.payment-tab {
  flex: 1;
  padding: 15px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.3s;
}
.payment-tab:hover { border-color: rgba(42,169,224,0.45); color: var(--cyan-soft); }
.payment-tab.active {
  border-color: var(--cyan);
  color: var(--cyan-soft);
  background: rgba(42,169,224,0.08);
  box-shadow: 0 0 0 1px rgba(42,169,224,0.25), 0 8px 28px -12px rgba(42,169,224,0.3);
}
.payment-tab .tab-icon { font-size: 20px; display: block; margin-bottom: 5px; }

/* "Digital wallet" card treatment for the Vodafone Cash tab: light card, red
   phone badge on the left, bold label, green chevron on the right. Id selectors
   deliberately override the dark .payment-tab / body.noir styling. */
#tab-vodafone.pt-wallet {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 12px 16px;
  background: #f2f6f3;
  border: 1px solid rgba(34,197,94,0.35);
  color: #101319;
}
#tab-vodafone.pt-wallet:hover { background: #eaf3ec; border-color: rgba(34,197,94,0.6); color: #101319; transform: none; }
#tab-vodafone.pt-wallet.active {
  background: #eaf6ee;
  border-color: rgba(34,197,94,0.75);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.14);
  color: #101319;
}
#tab-vodafone .pt-badge {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.09);
}
#tab-vodafone .pt-badge svg { width: 25px; height: 25px; display: block; }
#tab-vodafone .pt-label { flex: 1; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
#tab-vodafone .pt-chevron { flex: 0 0 auto; display: flex; }
#tab-vodafone .pt-chevron svg { width: 18px; height: 18px; display: block; }
html[dir="rtl"] #tab-vodafone .pt-chevron { transform: scaleX(-1); }
.card-input-group { position: relative; }
.card-brand-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--text-low);
  pointer-events: none;
}
.order-card {
  background: rgba(14,17,24,0.8);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  overflow: hidden;
  position: sticky;
  top: 96px;
  box-shadow: 0 24px 70px -20px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.05);
}
.order-card-header {
  background: linear-gradient(135deg, #0c2438 0%, #10334f 100%);
  border-bottom: 1px solid rgba(42,169,224,0.2);
  padding: 20px;
  color: #fff;
}
.order-card-event { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.order-card-body { padding: 20px; }
.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-mid);
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.order-row:last-child { border-bottom: none; }
.order-row strong { color: #fff; }
.order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(42,169,224,0.06);
  border-top: 1px solid rgba(42,169,224,0.15);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}
.order-total .amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--cyan-soft);
  text-shadow: 0 0 24px rgba(42,169,224,0.35);
  font-variant-numeric: tabular-nums;
}
.instapay-info {
  background: rgba(246,201,69,0.06);
  border: 1px solid rgba(246,201,69,0.25);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.instapay-account {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
  margin: 8px 0;
}
.co-note {
  background: rgba(52,209,123,0.07);
  border: 1px solid rgba(52,209,123,0.25);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13px;
  color: #9fe8bf;
  margin-top: 16px;
  line-height: 1.6;
}
.co-note strong { color: #c6f3da; }

/* ═══════════════════════════════════════════════════════════════════
   INVOICE — noir ticket
   ═══════════════════════════════════════════════════════════════════ */
.invoice-page { min-height: 100dvh; background: transparent; padding: 44px 24px 70px; }
.invoice-wrap { max-width: 640px; margin: 0 auto; }
.invoice-card {
  background: #0d1017;
  border: 1px solid var(--line-2);
  border-radius: 26px;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
}
.invoice-header {
  position: relative;
  background: linear-gradient(135deg, #0b1f33 0%, #0d2c47 100%);
  padding: 32px 36px;
  color: #fff;
}
.invoice-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(42,169,224,0.55), transparent);
  box-shadow: 0 0 18px 1px rgba(42,169,224,0.35);
}
.invoice-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.invoice-brand .gold { color: var(--gold); }
.invoice-number-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-top: 8px;
}
.invoice-body { padding: 34px 36px; }
.invoice-event-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 4px;
}
.invoice-event-arabic { font-size: 16px; color: var(--gold); margin-bottom: 22px; direction: rtl; }
.invoice-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 28px; }
.invoice-info-item label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 5px;
}
.invoice-info-item span { font-size: 14px; color: #fff; font-weight: 600; }
.invoice-divider { border: none; border-top: 1px dashed rgba(255,255,255,0.14); margin: 26px 0; }
.invoice-qr-section { text-align: center; padding: 20px 0; }
.invoice-qr-img {
  /* Keep the image's own aspect: VIP tickets are wide (QR + seat stub),
     Regular tickets are square — never squeeze either into a fixed box. */
  width: auto;
  height: 210px;
  max-width: min(92%, 400px);
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  padding: 12px;
  display: block;
  margin: 18px auto;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 16px 50px -10px rgba(42,169,224,0.25);
}
.invoice-qr-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  margin-bottom: 4px;
}
.invoice-warning {
  background: rgba(246,201,69,0.07);
  border: 1px solid rgba(246,201,69,0.3);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 13px;
  color: #ffda66;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  text-align: left;
  line-height: 1.55;
}
.invoice-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; justify-content: center; }
.invoice-footer {
  background: rgba(0,0,0,0.35);
  padding: 16px 36px;
  text-align: center;
  font-size: 12px;
  color: var(--text-low);
  border-top: 1px solid var(--line-1);
  line-height: 1.7;
}
.used-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,93,93,0.1);
  border: 1px solid rgba(255,93,93,0.4);
  color: #ff8a8a;
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 10px;
}

/* ═══════════════════════════════════════════════════════════════════
   BOOKINGS
   ═══════════════════════════════════════════════════════════════════ */
.booking-card {
  background: rgba(15,18,26,0.62);
  border: 1px solid var(--line-1);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color 0.3s, box-shadow 0.4s, transform 0.35s var(--ease-fluent);
}
.booking-card:hover {
  border-color: rgba(42,169,224,0.3);
  box-shadow: 0 24px 60px -20px rgba(42,169,224,0.18);
  transform: translateY(-4px);
}
.booking-card-header {
  padding: 17px 20px;
  background: linear-gradient(135deg, #0b1f33 0%, #0d2a43 100%);
  border-bottom: 1px solid rgba(42,169,224,0.16);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.booking-card-event { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.booking-card-body { padding: 20px; }
.booking-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 7px;
}
.booking-meta-row:last-child { margin-bottom: 0; }
.booking-actions { padding: 14px 20px; border-top: 1px solid var(--line-1); display: flex; gap: 8px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════════
   VERIFY + QR VIEW
   ═══════════════════════════════════════════════════════════════════ */
.verify-page, .qr-view-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: transparent;
}
.verify-card, .qr-view-card {
  background: rgba(14,17,24,0.85);
  border: 1px solid var(--line-2);
  border-radius: 26px;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.06);
  padding: 48px 40px;
  text-align: center;
  max-width: 430px;
  width: 100%;
}
.verify-icon { font-size: 72px; line-height: 1; margin-bottom: 20px; filter: drop-shadow(0 8px 32px rgba(42,169,224,0.3)); }
.verify-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 10px;
}
.verify-title.success { color: #5ee8a0; text-shadow: 0 0 28px rgba(52,209,123,0.4); }
.verify-title.used    { color: #ff7d92; text-shadow: 0 0 28px rgba(255,93,93,0.35); }
.verify-sub { font-size: 15px; color: var(--text-mid); line-height: 1.65; }
.verify-meta {
  margin-top: 28px;
  padding: 18px 20px;
  background: rgba(42,169,224,0.05);
  border: 1px solid rgba(42,169,224,0.16);
  border-radius: 16px;
  text-align: left;
}
.verify-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 8px;
}
.verify-meta-row:last-child { margin-bottom: 0; }
.verify-meta-row strong { color: #fff; }
.qr-view-event {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  color: #fff;
  margin-bottom: 12px;
}
.qr-view-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--cyan-soft);
  margin-bottom: 16px;
}
.qr-view-img {
  width: 220px;
  height: 220px;
  border-radius: 18px;
  background: #fff;
  padding: 12px;
  margin: 0 auto 4px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 16px 50px -10px rgba(42,169,224,0.25);
}
.qr-warning {
  background: rgba(246,201,69,0.07);
  border: 1px solid rgba(246,201,69,0.3);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 13px;
  color: #ffda66;
  margin-top: 18px;
  text-align: left;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════
   STAFF SCANNER + SCAN PAGE
   ═══════════════════════════════════════════════════════════════════ */
.staff-page {
  min-height: 100dvh;
  background: transparent;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 60px;
}
.staff-header {
  width: 100%;
  padding: 18px 24px;
  background: rgba(7,9,13,0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.staff-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.staff-brand .gold { color: var(--gold); }
.scan-container { width: 100%; max-width: 460px; padding: 24px; }
.scan-wrap { max-width: 480px; margin: 0 auto; padding: 36px 24px 90px; }
.scanner-box {
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  /* Height follows the camera's own aspect ratio. Forcing a ratio here made the
     video letterbox or crop, which is what pushed us to object-fit and broke
     decoding. min-height keeps the box from collapsing before the feed starts. */
  min-height: 240px;
  position: relative;
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 70px -20px rgba(42,169,224,0.18), inset 0 1px 0 rgba(255,255,255,0.06);
}
.scanner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
/* html5-qrcode draws its own shaded region + corner brackets sized from qrbox;
   ours is CSS-sized, so the two drifted apart on phones and showed a doubled,
   misaligned frame. Hide the library's and keep one finder.

   Do NOT restyle the video itself. object-fit:cover here silently broke
   decoding: the browser crops the video for DISPLAY while the library reads
   pixels from the raw stream, so a QR centred in the frame on screen was not
   the region being decoded. Let the library own the video's geometry. */
#qr-shaded-region { display: none !important; }
#qr-reader video { display: block; }
.scan-finder {
  position: relative;
  /* Percentage-based so it tracks the box on every screen; startScan() derives
     the library's scan region from the same fraction, keeping them aligned. */
  width: 62%;
  max-width: 260px;
  aspect-ratio: 1;
  border: 2px solid rgba(42,169,224,0.85);
  border-radius: 18px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.22), 0 0 28px rgba(42,169,224,0.5);
  animation: finderPulse 2.4s ease-in-out infinite;
}
@keyframes finderPulse {
  0%, 100% { border-color: rgba(42,169,224,0.85); box-shadow: 0 0 0 9999px rgba(0,0,0,0.22), 0 0 28px rgba(42,169,224,0.5); }
  50%      { border-color: rgba(42,169,224,0.45); box-shadow: 0 0 0 9999px rgba(0,0,0,0.22), 0 0 12px rgba(42,169,224,0.25); }
}
.scan-finder::before, .scan-finder::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid var(--gold);
}
.scan-finder::before { top: -3px; left: -3px; border-right: none; border-bottom: none; border-radius: 18px 0 0 0; }
.scan-finder::after  { bottom: -3px; right: -3px; border-left: none; border-top: none; border-radius: 0 0 18px 0; }
@media (max-width: 768px) {
  .scan-container { padding: 16px 14px; }
  /* Cap the height rather than forcing a ratio, so the camera keeps its own
     geometry (decoding depends on it) while Stop and the scan result stay
     visible without scrolling. */
  .scanner-box { max-height: 46vh; }
  .scan-finder { width: 56%; }
}
.scan-result {
  margin-top: 20px;
  border-radius: 18px;
  padding: 20px;
  display: none;
  border: 1px solid var(--line-1);
  background: rgba(15,18,26,0.6);
}
.scan-result.visible { display: block; animation: slModalIn 0.3s var(--ease-fluent); }
.scan-result.success { background: rgba(52,209,123,0.08);  border-color: rgba(52,209,123,0.35); }
.scan-result.error   { background: rgba(255,93,93,0.08);   border-color: rgba(255,93,93,0.35); }
.scan-result.warning { background: rgba(245,183,61,0.08);  border-color: rgba(245,183,61,0.35); }
.scan-result-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: #fff;
}
.scan-result-sub { font-size: 14px; color: var(--text-mid); }
.scan-history {
  margin-top: 24px;
  border: 1px solid var(--line-1);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(13,16,22,0.5);
}
.scan-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
}
.scan-history-item:last-child { border-bottom: none; }

/* ═══════════════════════════════════════════════════════════════════
   PAGE HEADER (legacy) + BREADCRUMB + STATS BAR
   ═══════════════════════════════════════════════════════════════════ */
.page-header {
  border-bottom: 1px solid var(--line-1);
  padding: 36px 24px 30px;
  max-width: var(--page-max);
  margin: 0 auto;
}
.page-header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-low);
  margin-bottom: 8px;
}
.breadcrumb a { color: var(--cyan-soft); transition: opacity 0.15s; }
.breadcrumb a:hover { opacity: 0.75; }
.page-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}
.page-meta {
  font-size: 14px;
  color: var(--text-mid);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.stats-bar {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-1);
  max-width: var(--page-max);
  margin: 0 auto;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════
   PARTYFLOW DASHBOARD (legacy event manager pages)
   ═══════════════════════════════════════════════════════════════════ */
.event-card-header {
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  border-bottom: 1px solid var(--line-1);
  background: linear-gradient(135deg, #11202f, #0b1320);
  text-shadow: 0 0 36px rgba(42,169,224,0.45);
}
.theme-birthday { background: linear-gradient(135deg, #b34a73, #5d2a8f) !important; }
.theme-party    { background: linear-gradient(135deg, #155f8f, #4737a8) !important; }
.theme-dinner   { background: linear-gradient(135deg, #9a6a1e, #8f3d2a) !important; }
.theme-grad     { background: linear-gradient(135deg, #1a7f63, #176a99) !important; }
.theme-wedding  { background: linear-gradient(135deg, #8f5e80, #5e4598) !important; }
.theme-holiday  { background: linear-gradient(135deg, #1f7a44, #9a2e35) !important; }
.theme-summer   { background: linear-gradient(135deg, #c2842a, #c25a3a) !important; }
.theme-concert  { background: linear-gradient(135deg, #2a3aa8, #7a2a9a) !important; }
.theme-default  { background: linear-gradient(135deg, #11202f, #0b1320) !important; }
.event-card-stats { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.emoji-option {
  font-size: 22px;
  padding: 8px 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.25s var(--ease-fluent);
}
.emoji-option:hover { background: rgba(255,255,255,0.09); transform: scale(1.1); }
.emoji-option.selected { border-color: var(--cyan); background: rgba(42,169,224,0.12); box-shadow: 0 0 14px -2px rgba(42,169,224,0.4); }
.theme-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.theme-option {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease-fluent), border-color 0.15s, box-shadow 0.2s;
}
.theme-option:hover { transform: scale(1.12); }
.theme-option.selected { border-color: #fff; box-shadow: 0 0 0 3px rgba(42,169,224,0.35); }

/* ═══════════════════════════════════════════════════════════════════
   PARTNERSHIPS
   ═══════════════════════════════════════════════════════════════════ */
.partner-stat-card {
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 18px 30px;
  min-width: 130px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: border-color 0.25s, transform 0.3s var(--ease-fluent), box-shadow 0.35s;
}
.partner-stat-card:hover { transform: translateY(-3px); border-color: rgba(42,169,224,0.35); box-shadow: 0 16px 44px -16px rgba(42,169,224,0.3); }
.partner-stat-card.ps-gold:hover { border-color: rgba(246,201,69,0.4); box-shadow: 0 16px 44px -16px rgba(246,201,69,0.3); }
.partner-stat-card.ps-teal:hover { border-color: rgba(79,227,193,0.4); box-shadow: 0 16px 44px -16px rgba(79,227,193,0.3); }
.partner-stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ps-gold .partner-stat-num { color: var(--gold-soft); text-shadow: 0 0 24px rgba(246,201,69,0.4); }
.ps-teal .partner-stat-num { color: #7ce8cf; text-shadow: 0 0 24px rgba(79,227,193,0.4); }
.partner-stat-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-top: 7px;
}

.partner-filter-section {
  background: rgba(6,7,10,0.78);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-top: 1px solid var(--line-1);
  border-bottom: 1px solid var(--line-1);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 60;
}
.partner-filter-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.partner-search-wrap { position: relative; flex: 1; min-width: 220px; }
.partner-search-wrap .search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
  opacity: 0.6;
}
.partner-search {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-full);
  font-size: 14px;
  color: var(--text-hi);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.partner-search::placeholder { color: rgba(110,122,140,0.8); }
.partner-search:focus {
  outline: none;
  border-color: rgba(42,169,224,0.6);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 3px rgba(42,169,224,0.12);
}
.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-pill {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-1);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.filter-pill:hover { color: var(--cyan-soft); border-color: rgba(42,169,224,0.3); background: rgba(42,169,224,0.06); }
.filter-pill.active {
  background: rgba(42,169,224,0.12);
  color: var(--cyan-soft);
  border-color: rgba(42,169,224,0.55);
  box-shadow: 0 0 18px -6px rgba(42,169,224,0.4);
}
.sort-select {
  padding: 9px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-hi);
  cursor: pointer;
  transition: border-color 0.2s;
}
.sort-select option { background: #0d1016; color: var(--text-hi); }
.sort-select:focus { outline: none; border-color: rgba(42,169,224,0.6); }

.partner-grid-section { padding: 56px 0 120px; background: transparent; }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}
.partner-card {
  background: rgba(15,18,26,0.62);
  border: 1px solid var(--line-1);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s var(--ease-fluent), border-color 0.3s, box-shadow 0.45s;
}
.partner-card.visible { opacity: 1; transform: translateY(0); }
.partner-card:hover {
  border-color: rgba(42,169,224,0.35);
  box-shadow: 0 28px 70px -20px rgba(42,169,224,0.22);
}
.partner-card.featured {
  border-color: rgba(246,201,69,0.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 18px 50px -18px rgba(246,201,69,0.22);
}
.partner-card.featured:hover {
  border-color: rgba(246,201,69,0.7);
  box-shadow: 0 28px 70px -18px rgba(246,201,69,0.3);
}
.partner-card-banner { width: 100%; height: 104px; object-fit: cover; display: block; border-bottom: 1px solid var(--line-1); }
.partner-card-banner-placeholder {
  width: 100%;
  height: 104px;
  background:
    radial-gradient(110% 150% at 24% 0%, rgba(42,169,224,0.14), transparent 56%),
    linear-gradient(160deg, #11151f 0%, #0a0d14 100%);
  border-bottom: 1px solid var(--line-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  text-shadow: 0 0 32px rgba(42,169,224,0.5);
}
.partner-card-body { padding: 22px 24px 14px; }
.partner-card-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.partner-logo-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  flex-shrink: 0;
  overflow: hidden;
}
.partner-logo-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; }
.partner-card-info { flex: 1; min-width: 0; }
.partner-card-category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  margin-bottom: 4px;
}
.partner-card-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 2px;
}
.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(246,201,69,0.1);
  color: var(--gold-soft);
  border: 1px solid rgba(246,201,69,0.35);
  border-radius: var(--radius-full);
  padding: 2px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 3px;
}
.partner-card-desc { font-size: 13.5px; color: var(--text-mid); line-height: 1.65; margin-bottom: 14px; }
.partner-benefits { list-style: none; margin-bottom: 16px; }
.partner-benefit {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--text-mid);
  padding: 4px 0;
}
.partner-benefit::before {
  content: '✓';
  color: var(--cyan);
  font-weight: 700;
  font-size: 12px;
  margin-top: 1px;
  flex-shrink: 0;
  text-shadow: 0 0 10px rgba(42,169,224,0.5);
}
.partner-card-footer { padding: 12px 24px 20px; display: flex; gap: 8px; }
.partner-card-footer .btn,
.partner-card-footer .sl-btn { flex: 1; font-size: 13px; padding: 9px 14px; }

.partner-skeleton {
  background: rgba(15,18,26,0.6);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line-1);
}
.partner-skeleton::before {
  content: '';
  display: block;
  height: 104px;
  background: linear-gradient(90deg, #10131a 25%, #161b25 50%, #10131a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.partner-skeleton::after {
  content: '';
  display: block;
  height: 200px;
  background: linear-gradient(90deg, #0d1017 25%, #131825 50%, #0d1017 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite 0.2s;
  margin: 16px;
  border-radius: 12px;
}
.partner-empty { grid-column: 1/-1; text-align: center; padding: 90px 24px; }
.partner-empty-icon { font-size: 60px; margin-bottom: 22px; animation: emptyBounce 2s ease-in-out infinite; filter: drop-shadow(0 8px 28px rgba(42,169,224,0.25)); }
@keyframes emptyBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.partner-empty h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  color: #fff;
  margin-bottom: 10px;
}
.partner-empty p { font-size: 15px; color: var(--text-low); margin-bottom: 28px; }

/* ═══════════════════════════════════════════════════════════════════
   ADMIN
   ═══════════════════════════════════════════════════════════════════ */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  background: rgba(6,8,12,0.92);
  border-right: 1px solid var(--line-1);
  color: #fff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 50;
}
.admin-sidebar-logo { padding: 26px 20px 20px; border-bottom: 1px solid var(--line-1); }
.admin-sidebar-logo .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.admin-sidebar-logo .brand .gold { color: var(--gold); }
.admin-sidebar-logo .role-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-top: 4px;
}
.admin-nav { padding: 16px 0; flex: 1; overflow-y: auto; }
.admin-nav-label {
  padding: 10px 20px 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-low);
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  border-left: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.25s var(--ease-fluent);
}
.admin-nav-link:hover { background: rgba(255,255,255,0.04); color: #fff; transform: translateX(4px); }
.admin-nav-link.active {
  background: rgba(42,169,224,0.09);
  color: var(--cyan-soft);
  border-left-color: var(--cyan);
  box-shadow: inset 0 0 24px -12px rgba(42,169,224,0.4);
}
.admin-sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--line-1); font-size: 13px; color: var(--text-low); }
.admin-main { margin-left: 240px; flex: 1; min-width: 0; background: transparent; min-height: 100vh; }
.admin-topbar {
  background: rgba(7,9,13,0.78);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line-1);
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}
.admin-topbar-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: #fff; letter-spacing: -0.01em; }
.admin-content { padding: 28px; }
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.admin-stat-card {
  background: rgba(15,18,26,0.62);
  border: 1px solid var(--line-1);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color 0.3s, box-shadow 0.4s;
}
.admin-stat-card:hover { border-color: var(--line-2); box-shadow: 0 16px 44px -16px rgba(0,0,0,0.6); }
.admin-stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 10px;
}
.admin-stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.admin-stat-sub { font-size: 13px; color: var(--text-low); margin-top: 8px; }
.admin-stat-card.blue .admin-stat-value { color: var(--cyan-soft); text-shadow: 0 0 28px rgba(42,169,224,0.4); }
.admin-stat-card.gold .admin-stat-value { color: var(--gold-soft); text-shadow: 0 0 28px rgba(246,201,69,0.35); }
.admin-card {
  background: rgba(15,18,26,0.62);
  border: 1px solid var(--line-1);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
  margin-bottom: 24px;
}
.admin-card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-card-title { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: #fff; }
.admin-card-body { padding: 24px; }
.admin-card .table-wrap { border: none; border-radius: 0; background: transparent; }

.admin-partner-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.admin-partner-stat {
  background: rgba(15,18,26,0.62);
  border: 1px solid var(--line-1);
  border-radius: 18px;
  padding: 18px 20px;
  transition: border-color 0.3s, transform 0.3s var(--ease-fluent);
}
.admin-partner-stat:hover { border-color: var(--line-2); transform: translateY(-2px); }
.admin-partner-stat-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 8px;
}
.admin-partner-stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.admin-partner-stat.blue  .admin-partner-stat-value { color: var(--cyan-soft); }
.admin-partner-stat.gold  .admin-partner-stat-value { color: var(--gold-soft); }
.admin-partner-stat.green .admin-partner-stat-value { color: #6fe2a4; }
.admin-partner-stat.red   .admin-partner-stat-value { color: #ff8a8a; }
.admin-partner-stat-sub { font-size: 12px; color: var(--text-low); margin-top: 5px; }

/* Progress bars */
.progress-bar-wrap { background: rgba(255,255,255,0.08); border-radius: var(--radius-full); height: 6px; flex: 1; overflow: hidden; }
.progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--cyan-deep), var(--cyan));
  box-shadow: 0 0 12px rgba(42,169,224,0.5);
}
.progress-bar.full { background: linear-gradient(90deg, #d23c3c, #ff5d5d); box-shadow: 0 0 12px rgba(255,93,93,0.5); }
.progress-bar.near { background: linear-gradient(90deg, #d49a2a, #f5b73d); box-shadow: 0 0 12px rgba(245,183,61,0.5); }

/* Toggle switch */
.toggle-wrap { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.toggle-switch { position: relative; width: 38px; height: 22px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.14);
  border-radius: var(--radius-full);
  transition: background 0.2s, box-shadow 0.2s;
}
.toggle-switch input:checked + .toggle-track { background: var(--cyan-deep); box-shadow: 0 0 14px rgba(42,169,224,0.5); }
.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  transition: transform 0.25s var(--ease-spring);
  pointer-events: none;
}
.toggle-switch input:checked ~ .toggle-thumb { transform: translateX(16px); }
.toggle-label { font-size: 13px; font-weight: 600; color: var(--text-mid); user-select: none; }

/* Admin partner table bits */
.partner-table-logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  overflow: hidden;
  flex-shrink: 0;
}
.partner-table-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.partner-table-name-row { display: flex; align-items: center; gap: 10px; }
.partner-table-info strong { display: block; font-size: 14px; font-weight: 700; color: #fff; }
.partner-table-info span { font-size: 12px; color: var(--text-low); }

/* Benefits editor */
.benefits-editor { display: flex; flex-direction: column; gap: 8px; }
.benefit-row { display: flex; align-items: center; gap: 8px; }
.benefit-row input {
  flex: 1;
  padding: 9px 13px;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-hi);
  transition: border-color 0.15s;
}
.benefit-row input:focus { outline: none; border-color: rgba(42,169,224,0.6); }
.benefit-remove {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,93,93,0.1);
  border: 1px solid rgba(255,93,93,0.25);
  color: #ff8a8a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  transition: background 0.15s;
}
.benefit-remove:hover { background: rgba(255,93,93,0.2); }
.add-benefit-btn {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan-soft);
  background: rgba(42,169,224,0.06);
  border: 1px dashed rgba(42,169,224,0.35);
  border-radius: 12px;
  padding: 8px 15px;
  transition: background 0.15s;
}
.add-benefit-btn:hover { background: rgba(42,169,224,0.12); }

/* Upload */
.img-upload-wrap { position: relative; }
.img-preview { width: 100%; height: 80px; border-radius: 12px; object-fit: cover; display: none; margin-top: 8px; border: 1px solid var(--line-1); }
.img-preview.visible { display: block; }
.upload-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-low);
  transition: border-color 0.15s, color 0.15s;
}
.upload-label:hover { border-color: rgba(42,169,224,0.5); color: var(--cyan-soft); }
.upload-label input { position: absolute; opacity: 0; width: 0; height: 0; }

/* ═══════════════════════════════════════════════════════════════════
   EMPTY / LOADING STATES
   ═══════════════════════════════════════════════════════════════════ */
.empty-state { text-align: center; padding: 80px 24px; color: var(--text-low); }
.empty-state .empty-icon, .empty-icon { font-size: 50px; margin-bottom: 16px; filter: drop-shadow(0 8px 28px rgba(42,169,224,0.2)); }
.empty-state h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: rgba(235,240,250,0.85);
  margin-bottom: 8px;
}
.empty-state p { font-size: 14px; color: var(--text-low); margin-bottom: 28px; }

.spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(255,255,255,0.12);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}
.spinner-white { border-color: rgba(255,255,255,0.2); border-top-color: #fff; }
.spinner-center { margin: 40px auto; display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.loading-shimmer {
  background: linear-gradient(90deg, #10131a 25%, #171c27 50%, #10131a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 16px;
  border: 1px solid var(--line-1);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ═══════════════════════════════════════════════════════════════════
   REDUCED MOTION + PRINT
   ═══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

@media print {
  @page { margin: 12mm; }
  /* Print backgrounds/images as-shown — browsers strip them by default, which
     would blank out the dark invoice card + poster and hide its light text. */
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  body { background: #fff !important; }
  body::after, body::before { display: none !important; }
  /* Hide all page chrome — print only the invoice itself. */
  .nav, .sl-nav-outer, .sl-marquee-wrap, .toast-container, .invoice-actions,
  #used-stamp, .rihla-lang-btn, .lang-btn, #lock-countdown-box,
  #inv-pending, #inv-rejected { display: none !important; }
  .invoice-page, .invoice-wrap { padding: 0 !important; margin: 0 auto !important; max-width: 720px !important; background: #fff !important; }
  /* The whole invoice card, kept on one page. */
  .invoice-card { box-shadow: none !important; border: 1px solid #cbd5e1 !important; break-inside: avoid; }
  .invoice-qr-img, .stub-qr img, .stub-qr canvas { box-shadow: none !important; }
  .inv-stub { break-inside: avoid; }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .sl-sticker-b, .sl-sticker-c { display: none; }
}
@media (max-width: 768px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .order-card { position: static; }
  .ticket-picker { max-width: 100%; position: static; }
  .sl-footer-inner, .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .invoice-info-grid { grid-template-columns: 1fr; }
  .partner-filter-bar { flex-direction: column; align-items: stretch; }
  .partners-grid { grid-template-columns: 1fr; }
  .admin-partner-stats { grid-template-columns: repeat(2, 1fr); }
  .modal-wide { max-width: 100%; }
  .sl-section { padding: 80px 20px; }
  .sl-hero { padding: 80px 20px 100px; min-height: auto; }
  .ed-info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .nav-links, .sl-nav-links { display: none; }
  .sl-nav { padding: 7px 7px 7px 18px; }
  .page-header-inner { flex-direction: column; }
  .modal { border-radius: 20px 20px 0 0; }
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .auth-page { flex-direction: column; }
  .auth-left { display: none; }
  .auth-right { width: 100%; min-height: 100dvh; border-left: none; }
  .td-actions { flex-wrap: wrap; }
  .payment-method-tabs { flex-direction: column; }
  .sl-hero-stats { gap: 32px; }
  .sl-hero-stats > div:not(:first-child)::before { left: -16px; }
  .sl-stat-grid { grid-template-columns: 1fr 1fr; }
  .sl-cta-section { padding: 110px 20px; }

  /* ── Comfortable touch targets on phones (min 44px, per iOS HIG) ── */
  .btn, .btn-sm, .sl-btn, .lang-btn, .seg-btn, .nav-user-pill { min-height: 44px; }
  .btn-sm { display: inline-flex; align-items: center; justify-content: center; }
  .lang-btn { min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .qty-btn { width: 44px !important; height: 44px !important; }

  /* Ticket QR must be scannable straight off the phone at the gate — give it
     the width. Trim the card padding on mobile so the QR isn't boxed in. */
  .invoice-body { padding: 22px 16px; }
  .invoice-qr-img { width: 100%; max-width: 340px; height: auto; }
}
@media (max-width: 480px) {
  .sl-footer-inner, .footer-inner { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ARABIC / RTL SUPPORT  —  applies ONLY under <html dir="rtl"> (set by the
   language switch). English (ltr) is completely unaffected. The browser's
   native dir already right-aligns Arabic text and mirrors flex rows; these
   rules fix what dir does NOT: keeping Latin/numeric content (prices, phone
   numbers, invoice codes, times, the seat map) readable left-to-right, and
   aligning forms + a few side-anchored elements for RTL.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Numbers, codes, contacts, emails, URLs must stay LTR even on an RTL page,
   otherwise bidi reordering scrambles them (e.g. "+20 100…" or "700 EGP"). */
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="url"],
html[dir="rtl"] input[type="number"],
html[dir="rtl"] input[type="password"] { direction: ltr; text-align: right; }

html[dir="rtl"] .invoice-number-badge,
html[dir="rtl"] .invoice-brand,
html[dir="rtl"] .instapay-account,
html[dir="rtl"] .ticket-type-price,
html[dir="rtl"] .pv-ref,
html[dir="rtl"] .stub-codes,
html[dir="rtl"] .qty-num,
html[dir="rtl"] .amount { direction: ltr; unicode-bidi: isolate; }

/* The VIP seat map / admin floor plan is a fixed spatial layout (stage → aisle
   → blocks): never mirror it, or the numbering/geometry inverts. The SCROLL
   CONTAINERS must also be LTR — the auto-fit/zoom code drives scrollLeft and a
   transform-origin of 0 0, both of which invert under RTL and push the scaled
   floor out of view (the "seat map not showing in Arabic" bug). */
html[dir="rtl"] .smap-scroll,
html[dir="rtl"] .smap-floor,
html[dir="rtl"] .tables-grid,
html[dir="rtl"] .seat-table,
html[dir="rtl"] .fl-scroll,
html[dir="rtl"] .fl-floor,
html[dir="rtl"] .fl-grid { direction: ltr; }

/* Forms: labels, hints and input text align to the right in RTL. */
html[dir="rtl"] .form-label,
html[dir="rtl"] .form-hint,
html[dir="rtl"] .form-input,
html[dir="rtl"] .form-textarea,
html[dir="rtl"] .form-select { text-align: right; }

/* Toasts are pinned to a corner — flip to the mirror side in RTL. */
html[dir="rtl"] .toast-container { right: auto; left: 20px; }

/* Admin sidebar sits on the left; in RTL move it to the right edge. */
html[dir="rtl"] .admin-sidebar { left: auto; right: 0; border-right: none; border-left: 1px solid var(--line-1); }
html[dir="rtl"] .admin-main { margin-left: 0; margin-right: 240px; }
@media (max-width: 768px) { html[dir="rtl"] .admin-main { margin-right: 0; } }

/* ═══════════════════════════════════════════════════════════════════════════
   COMPACT HEADER ON PHONES  —  shrink both nav variants so the top bar isn't
   desktop-sized on a 375px screen.
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  /* Pill nav (home / event pages) */
  .sl-nav-outer { padding: 8px 12px 6px; }
  .sl-nav { padding: 5px 6px 5px 14px; }
  .sl-nav-logo { margin-right: 8px; }
  .sl-nav-logo img.sl-logo-full { height: 24px; }
  .sl-nav-actions { gap: 6px; }
  .sl-nav-actions .btn,
  .sl-nav-actions a[href] { padding: 8px 13px !important; font-size: 12.5px !important; }

  /* Solid bar nav (checkout / my-bookings / invoice) */
  .nav { padding: 0 14px; }
  .nav-inner { height: 54px; gap: 10px; }
  .nav-logo { font-size: 16px; }

  /* Account pill: keep a long name from overflowing the narrow bar */
  .nav-user-pill,
  .sl-nav-actions .nav-user-pill {
    max-width: 46vw; min-width: 0; overflow: hidden;
    white-space: nowrap; text-overflow: ellipsis;
    padding: 4px 12px 4px 5px !important;
  }
  .nav-user-pill .avatar { flex-shrink: 0; }
  /* Floating language toggle a touch smaller/closer to the edge */
  .rihla-lang-btn, .lang-btn { padding: 8px 12px !important; }
}
