/* ==========================================================================
   Zein Food - Awwwards-Level Ultra-Luxury Snack Brand Styling
   Designed with deep obsidian gradients, dynamic flavor ambients, and micro-interactions
   ========================================================================== */

/* Google Fonts moved to head with display=swap for high speed */

:root {
  --font-arabic: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-latin: 'Outfit', sans-serif;

  /* Obsidian & Gold Luxury Theme */
  --zein-gold: #FFB703;
  --zein-gold-light: #FFD166;
  --zein-gold-glow: rgba(255, 183, 3, 0.4);
  --zein-purple: #5A189A;
  --zein-purple-deep: #160726;
  --zein-purple-obsidian: #0A0312;
  --zein-red: #E63946;
  --zein-orange: #FB8500;

  /* Surfaces & Glassmorphism */
  --bg-dark: #08020E;
  --bg-card: rgba(26, 12, 40, 0.65);
  --bg-card-hover: rgba(45, 20, 70, 0.8);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-gold: rgba(255, 183, 3, 0.3);

  /* Dynamic Flavor Theme Variables */
  --flavor-accent: #E63946;
  --flavor-glow: rgba(230, 57, 70, 0.45);
  --flavor-gradient: linear-gradient(135deg, #FFB703 0%, #E63946 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-arabic);
  background-color: var(--bg-dark);
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background-color: var(--bg-dark);
  color: #FFFFFF;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

html[dir="rtl"],
html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"],
html[dir="ltr"] body {
  direction: ltr !important;
  text-align: left !important;
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Category Filter responsive scroll */
@media (max-width: 768px) {
  .cat-filter-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem !important;
    white-space: nowrap;
  }
  .cat-filter-container .cat-filter-btn {
    flex-shrink: 0;
  }
}

::selection {
  background: var(--zein-gold);
  color: #0A0312;
}

/* Custom Luxury Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #06020A;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #FFB703, #7B2CBF);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FFD166;
}

/* Glassmorphic Panels */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
}

.glass-panel-gold {
  background: linear-gradient(145deg, rgba(35, 16, 56, 0.8) 0%, rgba(18, 7, 30, 0.9) 100%);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass-gold);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 183, 3, 0.15);
}

.glass-nav {
  background: rgba(10, 4, 18, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Radiant Typography */
.text-gradient-gold {
  background: linear-gradient(135deg, #FFF0B3 0%, #FFB703 40%, #FB8500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-flavor {
  background: var(--flavor-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animated Gradient Borders */
.border-gradient-gold {
  position: relative;
  background: linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box,
              linear-gradient(135deg, #FFB703, #7B2CBF, #E63946) border-box;
  border: 1px solid transparent;
}

/* Luxury Buttons */
.btn-zein-primary {
  background: linear-gradient(135deg, #FFB703 0%, #FB8500 100%);
  color: #11051F;
  font-weight: 800;
  padding: 0.9rem 2.2rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(251, 133, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-zein-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-zein-primary:hover::before {
  left: 100%;
}

.btn-zein-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(255, 183, 3, 0.55);
  color: #0A0214;
}

.btn-zein-secondary {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  color: #FFFFFF;
  font-weight: 700;
  padding: 0.9rem 2.2rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  text-decoration: none;
}

.btn-zein-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--zein-gold);
  color: var(--zein-gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 183, 3, 0.2);
}

.btn-b2b {
  background: linear-gradient(135deg, #7B2CBF 0%, #3C096C 100%);
  color: #FFECA1;
  font-weight: 800;
  border: 1px solid rgba(255, 183, 3, 0.45);
  box-shadow: 0 10px 28px rgba(123, 44, 191, 0.45);
  border-radius: 9999px;
}

.btn-b2b:hover {
  border-color: var(--zein-gold);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(255, 183, 3, 0.45);
}

/* Hero 3D Showcase */
.hero-product-img {
  filter: drop-shadow(0 30px 45px rgba(0, 0, 0, 0.8));
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center bottom;
}

.hero-product-img:hover {
  transform: scale(1.05) rotate(-3deg) translateY(-8px);
  filter: drop-shadow(0 35px 55px var(--flavor-glow));
}

/* Product Card 3D Depth */
.product-card {
  position: relative;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(32, 14, 52, 0.6) 0%, rgba(15, 6, 26, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(circle at 50% 25%, var(--card-glow, rgba(255, 183, 3, 0.15)), transparent 75%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 183, 3, 0.4);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 30px var(--card-glow, rgba(123, 44, 191, 0.25));
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover .product-img {
  transform: scale(1.1) translateY(-8px) rotate(-3deg);
}

.product-img {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.7));
}

/* Flavor Selector Pills */
.flavor-pill {
  cursor: pointer;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
  transition: all 0.35s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.flavor-pill.active {
  background: var(--pill-bg, var(--zein-gold));
  color: var(--pill-text, #140824);
  border-color: transparent;
  box-shadow: 0 6px 22px var(--pill-shadow, rgba(255, 183, 3, 0.45));
  transform: scale(1.06);
}

/* Floating Animations */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-18px) rotate(2deg);
  }
}

@keyframes floatReverse {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(16px) rotate(-3deg);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.08);
  }
}

.animate-float {
  animation: floatSlow 5.5s ease-in-out infinite;
}

.animate-float-reverse {
  animation: floatReverse 6.5s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

/* Sensory Tasting Radar & Meter */
.flavor-meter-bar {
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.flavor-meter-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #FFB703, #E63946);
  transition: width 0.8s ease-out;
}

/* Calculator Range Sliders */
.calc-range {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--zein-gold);
  cursor: pointer;
  box-shadow: 0 0 14px var(--zein-gold-glow);
  transition: transform 0.2s ease;
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

/* Video Frame Cinema Luxury */
.video-frame-luxury {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 183, 3, 0.35);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(123, 44, 191, 0.3);
}

/* Wilayas Map Hub Cards */
.wilaya-hub-card {
  border-radius: 20px;
  background: rgba(26, 12, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  transition: all 0.35s ease;
  cursor: pointer;
}

.wilaya-hub-card:hover, .wilaya-hub-card.active {
  background: rgba(45, 18, 70, 0.85);
  border-color: var(--zein-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(255, 183, 3, 0.2);
}

/* Proforma Printable Sheet Styling */
@media print {
  body * {
    visibility: hidden;
  }
  #proformaInvoiceModal, #proformaInvoiceModal * {
    visibility: visible;
  }
  #proformaInvoiceModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: white !important;
    color: black !important;
  }
}


/* =========================================================================
   Cinema 3D Video Showcase & Vibrant Snack Brand Dynamics
   ========================================================================= */
.cinema-container {
  position: relative;
  border-radius: 1.75rem;
  background: radial-gradient(circle at 50% 30%, rgba(90, 24, 154, 0.4) 0%, rgba(12, 3, 22, 0.95) 100%);
  border: 1px solid rgba(255, 183, 3, 0.25);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 183, 3, 0.12);
  overflow: hidden;
  transition: all 0.4s ease;
}

.cinema-container:hover {
  border-color: rgba(255, 183, 3, 0.45);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.95), 0 0 50px rgba(255, 183, 3, 0.22);
}

.cinema-screen-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: 1.25rem;
}

.cinema-screen-wrap iframe,
.cinema-screen-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  display: block;
}

/* Fast YouTube Facade */
.yt-facade {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  display: block;
}

.yt-facade:hover img {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.yt-facade .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.92);
  color: #ffffff;
  border: 3px solid rgba(255, 255, 255, 0.9);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px rgba(220, 38, 38, 0.85), 0 6px 20px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
  padding-left: 5px;
}

.yt-facade:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.15);
  background: #ff0000;
  box-shadow: 0 0 55px rgba(255, 0, 0, 1), 0 8px 25px rgba(0, 0, 0, 0.7);
}

.cinema-tab-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.cinema-tab-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-1px);
}

.cinema-tab-btn.active {
  background: linear-gradient(135deg, #FFB703 0%, #FB8500 100%);
  color: #1a0826;
  border-color: #FFB703;
  box-shadow: 0 4px 15px rgba(255, 183, 3, 0.4);
}

.video-reel-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.video-reel-item:hover {
  transform: translateY(-4px) scale(1.02);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 183, 3, 0.5);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 183, 3, 0.2);
}

.video-reel-item.active {
  border-color: #FFB703;
  background: rgba(255, 183, 3, 0.12);
  box-shadow: 0 0 20px rgba(255, 183, 3, 0.4);
}

.video-reel-item .play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(220, 38, 38, 0.9);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  transition: all 0.25s ease;
}

.video-reel-item:hover .play-badge {
  background: #ff0000;
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.7);
}

/* Floating Snack Elements & Pulse Animations */
@keyframes float-subtle {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}

@keyframes float-subtle-rev {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(7px) rotate(-2deg); }
}

.anim-float {
  animation: float-subtle 4s ease-in-out infinite;
}

.anim-float-rev {
  animation: float-subtle-rev 5s ease-in-out infinite;
}

/* Enhanced 3D Card Hover & Reflection */
.product-card {
  position: relative;
  background: radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.05) 0%, rgba(18, 6, 30, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  backdrop-filter: blur(10px);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 1.5rem 1.5rem 0 0;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 183, 3, 0.5);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 183, 3, 0.2);
}

.product-card:hover .product-img {
  transform: scale(1.08) rotate(-1deg);
}

.product-img {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
}

/* Category Filter active styling */
.cat-filter-btn {
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-filter-btn:hover {
  transform: translateY(-2px);
}

.cat-filter-btn.active {
  background: linear-gradient(135deg, #FFB703 0%, #FB8500 100%) !important;
  color: #1a0826 !important;
  font-weight: 900 !important;
  box-shadow: 0 4px 15px rgba(255, 183, 3, 0.4);
}

/* =========================================================================
   Mobile Menu Solid Styling (إلغاء الشفافية وجعل القائمة واضحة ومعتمة 100%)
   ========================================================================= */
#mobileDrawer {
  background: #0d0218 !important;
  background-color: #0d0218 !important;
  opacity: 1 !important;
  border-left: 2px solid rgba(255, 183, 3, 0.5) !important;
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.98) !important;
}

#mobileDrawer .drawer-link {
  background: #1c0733 !important;
  background-color: #1c0733 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding: 0.75rem 1rem !important;
  margin-bottom: 0.5rem !important;
  border-radius: 0.85rem !important;
  font-weight: 800 !important;
  font-size: 0.9375rem !important;
  display: flex !important;
  align-items: center !important;
  transition: all 0.2s ease !important;
}

#mobileDrawer .drawer-link:hover,
#mobileDrawer .drawer-link:active {
  background: #380d66 !important;
  border-color: #FFB703 !important;
  color: #FFB703 !important;
  transform: translateX(-4px) !important;
}

/* Category Filter Bar (100% Solid & High-Contrast) */
.cat-filter-container {
  background: #140326 !important;
  background-color: #140326 !important;
  border: 2px solid rgba(255, 183, 3, 0.4) !important;
  padding: 0.6rem !important;
  border-radius: 1.25rem !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
}

.cat-filter-btn {
  background: #250843 !important;
  background-color: #250843 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  font-weight: 800 !important;
  padding: 0.6rem 1.1rem !important;
  border-radius: 0.85rem !important;
  opacity: 1 !important;
}

.cat-filter-btn.active {
  background: linear-gradient(135deg, #FFB703 0%, #FB8500 100%) !important;
  color: #10021c !important;
  border-color: #FFB703 !important;
  font-weight: 900 !important;
  box-shadow: 0 4px 15px rgba(255, 183, 3, 0.5) !important;
}

/* Glass nav fallback to solid on mobile */
@media (max-width: 1024px) {
  .glass-nav {
    background: #090212 !important;
    background-color: #090212 !important;
    border-bottom: 2px solid rgba(255, 183, 3, 0.25) !important;
  }
}

/* Viral WhatsApp Share Floating Button */
.viral-share-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 45;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45), 0 0 15px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
}

.viral-share-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
  color: white;
}


/* Ensure dropdown lists and options are high contrast and crystal clear on all OS and mobile browsers */
select {
  color-scheme: dark !important;
  background-color: #1a0b2e !important;
  color: #FFFFFF !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F59E0B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: left 1rem center !important;
  background-size: 1.1em !important;
  padding-left: 2.5rem !important;
  cursor: pointer;
}

select option {
  background-color: #160824 !important;
  color: #FFFFFF !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 12px 14px !important;
}

select option:disabled {
  color: #9CA3AF !important;
  background-color: #0E0518 !important;
}

select option:checked {
  background-color: #D97706 !important;
  color: #000000 !important;
  font-weight: 900 !important;
}


/* Form Inputs, Textareas, and Autofill High-Contrast Luxury Styling */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
  background-color: #160A24 !important;
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  caret-color: #F59E0B !important;
  font-family: 'Cairo', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  outline: none !important;
  transition: all 0.2s ease !important;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
  background-color: #1E0E32 !important;
  color: #FFFFFF !important;
  border-color: #F59E0B !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25) !important;
}

input::placeholder,
textarea::placeholder {
  color: #9CA3AF !important;
  opacity: 0.85 !important;
}

/* Chrome / Safari / Edge Autofill Fix (Force dark background & white text) */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
  -webkit-text-fill-color: #FFFFFF !important;
  -webkit-box-shadow: 0 0 0px 1000px #160A24 inset !important;
  box-shadow: 0 0 0px 1000px #160A24 inset !important;
  transition: background-color 5000s ease-in-out 0s !important;
  caret-color: #F59E0B !important;
}
/* Accessibility & Performance: Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .animate-ping,
  .animate-pulse,
  .animate-float,
  .animate-float-reverse,
  .animate-pulse-glow {
    animation: none !important;
  }
}
/* ==========================================================================
   International Multilingual (LTR / RTL) & Language Switcher Styles
   ========================================================================== */
html[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .text-right {
  text-align: left !important;
}

html[dir="ltr"] .border-l {
  border-left-width: 0 !important;
  border-right-width: 1px !important;
}

html[dir="ltr"] .border-r {
  border-right-width: 0 !important;
  border-left-width: 1px !important;
}

/* Logical spacing adjustments for LTR */
html[dir="ltr"] .ml-2 { margin-left: 0 !important; margin-right: 0.5rem !important; }
html[dir="ltr"] .mr-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }
html[dir="ltr"] .ml-1 { margin-left: 0 !important; margin-right: 0.25rem !important; }
html[dir="ltr"] .mr-1 { margin-right: 0 !important; margin-left: 0.25rem !important; }

/* Language Switcher Styles */
.lang-switcher-pills {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px border rgba(255, 255, 255, 0.15);
  gap: 2px;
}

.lang-switcher-pills a,
.lang-switcher-pills button {
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-switcher-pills a:hover,
.lang-switcher-pills button:hover {
  color: #FFFFFF;
}

.lang-switcher-pills a[aria-current="true"],
.lang-switcher-pills button.active {
  background-color: #F59E0B;
  color: #160A24 !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

/* Suggestion Banner */
#langSuggestionBanner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(90deg, #240046, #5A189A);
  border-bottom: 1px solid rgba(245, 158, 11, 0.4);
  color: #FFFFFF;
  padding: 8px 16px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* Phone Number LTR Direction Enforcement (Prevents RTL bidi reversal: e.g. +213 770 ... vs 85 50 ... 213+) */
.dynamic-phone-1,
.dynamic-phone-2,
a[href^="tel:"],
a[href*="wa.me"] span,
[dir="ltr"] .dynamic-phone-1,
html[dir="rtl"] .dynamic-phone-1,
html[dir="rtl"] .dynamic-phone-2,
html[dir="rtl"] a[href^="tel:"],
.font-phone-ltr {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  text-align: left !important;
  display: inline-block;
}

/* Ensure buttons with dir="ltr" keep children in left-to-right order even in RTL pages */
a[href*="wa.me"][dir="ltr"],
a[href^="tel:"][dir="ltr"],
.btn-zein-primary[dir="ltr"],
.btn-b2b[dir="ltr"] {
  flex-direction: row !important;
  direction: ltr !important;
}

/* ==========================================================================
   Luxury Language Dropdown Switcher
   ========================================================================== */
.zein-lang-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(22, 10, 36, 0.75);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 9999px;
  padding: 0 10px;
  height: 36px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.zein-lang-dropdown:hover,
.zein-lang-dropdown:focus-within {
  background: rgba(36, 0, 70, 0.9);
  border-color: #F59E0B;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.zein-lang-dropdown .zein-lang-icon {
  color: #F59E0B;
  font-size: 13px;
  pointer-events: none;
  margin-inline-end: 6px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.zein-lang-dropdown:hover .zein-lang-icon {
  transform: rotate(20deg);
}

.zein-lang-dropdown .zein-lang-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding-inline-end: 18px;
  padding-inline-start: 2px;
  height: 100%;
  line-height: 34px;
  font-family: inherit;
  color-scheme: dark;
}

.zein-lang-dropdown .zein-lang-arrow {
  position: absolute;
  inset-inline-end: 10px;
  color: #F59E0B;
  font-size: 10px;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.zein-lang-dropdown:focus-within .zein-lang-arrow {
  transform: rotate(180deg);
}

/* Ensure solid dark purple background and high contrast text on options across all devices */
.zein-lang-dropdown .zein-lang-select option {
  background-color: #160A24 !important;
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 14px;
}

.zein-lang-dropdown .zein-lang-select option:checked {
  background-color: #2D144A !important;
  color: #F59E0B !important;
}

/* Full width modifier for Mobile Drawer */
.zein-lang-dropdown.w-full {
  width: 100%;
  justify-content: space-between;
  height: 44px;
  padding: 0 14px;
}

.zein-lang-dropdown.w-full .zein-lang-select {
  flex: 1;
  font-size: 14px;
  line-height: 42px;
}

/* ==========================================================================
   Main Navbar Anti-Collision & Responsive Spacing Rules
   ========================================================================== */
#mainNav {
  overflow: visible;
}

#mainNav .max-w-\[1720px\] {
  width: 100%;
}

.zein-lang-dropdown {
  flex-shrink: 0 !important;
  height: 32px !important;
  padding: 0 8px !important;
}

.zein-lang-dropdown .zein-lang-select {
  font-size: 11px !important;
  line-height: 32px !important;
  padding-inline-end: 14px !important;
}

.zein-lang-dropdown .zein-lang-icon {
  font-size: 11px !important;
  margin-inline-end: 4px !important;
}

.zein-lang-dropdown .zein-lang-arrow {
  inset-inline-end: 6px !important;
  font-size: 8px !important;
}

/* Ensure navbar items never overlap under any viewport condition */
.nav-links-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.nav-actions-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

@media (max-width: 1399px) {
  .nav-hide-compact {
    display: none !important;
  }
}
