/* ==========================================================================
   B-MAGNET INTERNATIONAL — 55th UAE NATIONAL DAY (EID AL ETIHAD 1971–2026)
   PURE 4-COLOR UAE FLAG EDITION (RED • GREEN • WHITE • BLACK)
   - Zero golden effects anywhere while UAE National Day is active
   - Boxes & grid cards showcase UAE Green, Red, Black, and Pearl White
   - Opening card stays strictly until "Explore B-Magnet" click
   - Active strictly until 10 December 2026 (Asia/Dubai). Auto-reverts Dec 11.
   ========================================================================== */

:root {
  --uae-red: #ce1126;
  --uae-green: #00732f;
  --uae-green-bright: #059669;
  --uae-pearl: #ffffff;
  --uae-black: #0f1419;
  --uae-flag-grad: linear-gradient(
    90deg,
    #ce1126 0%,
    #ce1126 24%,
    #00732f 24%,
    #00732f 52%,
    #ffffff 52%,
    #ffffff 74%,
    #0f1419 74%,
    #0f1419 100%
  );
  --uae-flag-conic: conic-gradient(
    from var(--dock-gold-angle, 0deg),
    #ce1126 0deg 85deg,
    #00732f 85deg 185deg,
    #ffffff 185deg 265deg,
    #0f1419 265deg 360deg
  );
}

html[data-theme="dark"] {
  --uae-flag-grad: linear-gradient(
    90deg,
    #ce1126 0%,
    #ce1126 24%,
    #00732f 24%,
    #00732f 52%,
    #ffffff 52%,
    #ffffff 74%,
    #0a0d12 74%,
    #0a0d12 100%
  );
}

/* Neutralize all Sovereign Gold tokens during UAE National Day (Dec 10 cutoff) */
html[data-uae-national-day="active"][data-theme="light"] {
  --sg-gold: #00732f;
  --sg-gold-bright: #ce1126;
  --sg-gold-outline: rgba(15, 20, 25, 0.34);
  --sg-gold-outline-strong: #00732f;
  --sg-gold-soft: rgba(0, 115, 47, 0.12);
  --sg-jewel-amber: #ce1126;
  --hv4-gold: #00732f;
  --hv4-gold-bright: #ce1126;
  --hv4-gold-outline: rgba(15, 20, 25, 0.34);
  --hv4-gold-outline-strong: #00732f;
  --hv4-gold-soft: rgba(0, 115, 47, 0.12);
  --hv4-border-gold: #0f1419;
}

html[data-uae-national-day="active"][data-theme="dark"] {
  --sg-gold: #34d399;
  --sg-gold-bright: #ffffff;
  --sg-gold-outline: rgba(255, 255, 255, 0.28);
  --sg-gold-outline-strong: #10b981;
  --sg-gold-soft: rgba(0, 115, 47, 0.18);
  --sg-jewel-amber: #fb7185;
  --hv4-gold: #34d399;
  --hv4-gold-bright: #ffffff;
  --hv4-gold-outline: rgba(255, 255, 255, 0.28);
  --hv4-gold-outline-strong: #10b981;
  --hv4-gold-soft: rgba(0, 115, 47, 0.18);
  --hv4-border-gold: rgba(255, 255, 255, 0.36);
}

/* --------------------------------------------------------------------------
   1. FULL-CANVAS EMIRATI UNION BACKGROUND & WAVING FLAG SILK
   -------------------------------------------------------------------------- */
html[data-uae-national-day="active"],
html[data-uae-national-day="active"] body {
  background-color: #f6faf7 !important;
}

html[data-uae-national-day="active"][data-theme="dark"],
html[data-uae-national-day="active"][data-theme="dark"] body {
  background-color: #05080d !important;
}

html[data-uae-national-day="active"] ::selection {
  background: rgba(0, 115, 47, 0.28);
  color: inherit;
}

/* Top Full-Bleed Animated UAE Flag Silk Ribbon */
html[data-uae-national-day="active"] #uaeTopSilkRibbon {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  z-index: 9500;
  pointer-events: none;
  background: var(--uae-flag-grad);
  box-shadow: 0 2px 10px rgba(0, 115, 47, 0.22);
}

html[data-uae-national-day="active"] #sgScrollProgress {
  top: 5px !important;
  height: 3px !important;
  background: linear-gradient(90deg, #ce1126 0%, #00732f 35%, #ffffff 70%, #0f1419 100%) !important;
}

#uaeAmbientBackdrop,
#uaeMashrabiyaLayer,
#uaeSilkWingsLayer,
#uaeSparksLayer {
  display: none;
}

html[data-uae-national-day="active"] #uaeAmbientBackdrop {
  display: block;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 68% 50% at 8% 10%, rgba(0, 115, 47, 0.20), transparent 64%),
    radial-gradient(ellipse 62% 48% at 92% 14%, rgba(206, 17, 38, 0.17), transparent 64%),
    radial-gradient(ellipse 58% 46% at 84% 85%, rgba(0, 115, 47, 0.16), transparent 66%),
    radial-gradient(ellipse 55% 45% at 16% 88%, rgba(206, 17, 38, 0.14), transparent 66%),
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(15, 20, 25, 0.08), transparent 72%);
}

html[data-uae-national-day="active"][data-theme="dark"] #uaeAmbientBackdrop {
  background:
    radial-gradient(ellipse 68% 50% at 8% 10%, rgba(0, 115, 47, 0.34), transparent 64%),
    radial-gradient(ellipse 62% 48% at 92% 14%, rgba(206, 17, 38, 0.28), transparent 64%),
    radial-gradient(ellipse 58% 46% at 84% 85%, rgba(0, 115, 47, 0.26), transparent 66%),
    radial-gradient(ellipse 55% 45% at 16% 88%, rgba(206, 17, 38, 0.22), transparent 66%),
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(255, 255, 255, 0.06), transparent 72%);
}

html[data-uae-national-day="active"] #uaeMashrabiyaLayer {
  display: block;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  background-image:
    radial-gradient(circle at center, transparent 48%, #0f1419 49%, #0f1419 51%, transparent 52%),
    linear-gradient(45deg, rgba(0, 115, 47, 0.30) 25%, transparent 25%, transparent 75%, rgba(206, 17, 38, 0.24) 75%);
  background-size: 96px 96px;
}

/* Flowing Razor-Sharp Vector UAE Flag Silk Pennants Across Page Corners */
html[data-uae-national-day="active"] #uaeSilkWingsLayer {
  display: block;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.uae-silk-corner-svg {
  position: absolute;
  width: 520px;
  height: auto;
  pointer-events: none;
  opacity: 0.72;
  mask-image: radial-gradient(ellipse 85% 85% at 65% 35%, #000 35%, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 65% 35%, #000 35%, transparent 92%);
  will-change: transform;
}

html[data-theme="dark"] .uae-silk-corner-svg {
  opacity: 0.88;
}

.uae-silk-corner-svg.wing-tr {
  top: -12px;
  right: -28px;
}

.uae-silk-corner-svg.wing-bl {
  bottom: -16px;
  left: -28px;
  mask-image: radial-gradient(ellipse 85% 85% at 35% 65%, #000 35%, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 35% 65%, #000 35%, transparent 92%);
}

@media (prefers-reduced-motion: no-preference) {
  .uae-silk-corner-svg.wing-tr {
    animation: uaeWingDriftTR 11s ease-in-out infinite alternate;
  }
  .uae-silk-corner-svg.wing-bl {
    animation: uaeWingDriftBL 13s ease-in-out infinite alternate;
  }
}

@keyframes uaeWingDriftTR {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-18px, 10px, 0) scale(1.04); }
}

@keyframes uaeWingDriftBL {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(18px, -10px, 0) scale(1.04); }
}

/* Override global ambient orbs strictly to UAE Flag colors (zero gold) */
html[data-uae-national-day="active"] .sg-orb-gold {
  background: radial-gradient(circle, rgba(15, 20, 25, 0.38), rgba(255, 255, 255, 0.20) 45%, transparent 68%) !important;
}
html[data-uae-national-day="active"] .sg-orb-sapphire {
  background: radial-gradient(circle, rgba(0, 115, 47, 0.50), transparent 68%) !important;
}
html[data-uae-national-day="active"] .sg-orb-rose {
  background: radial-gradient(circle, rgba(206, 17, 38, 0.44), transparent 68%) !important;
}
html[data-uae-national-day="active"] .sg-orb-emerald {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.44), transparent 68%) !important;
}

/* --------------------------------------------------------------------------
   CRISP 4K VECTOR WAVING UAE FLAG COMPONENT (ZERO STAIRCASE / SEAM ARTIFACTS)
   -------------------------------------------------------------------------- */
.uae-waving-flag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 36px;
  flex-shrink: 0;
  contain: layout style;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}

.uae-waving-flag.lg {
  width: 110px;
  height: 66px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.42));
}

.uae-flag-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  transform-origin: 10% 50%;
  will-change: transform;
}

.uae-flag-sheen {
  will-change: transform;
}

.uae-waving-flag.is-offscreen,
.uae-waving-flag.is-offscreen * {
  animation-play-state: paused !important;
}

@media (max-width: 768px) {
  .uae-silk-corner-svg {
    animation: none !important;
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .uae-flag-svg {
    animation: uaeFlagFlutter 2.8s ease-in-out infinite alternate;
  }
  .uae-flag-sheen {
    animation: uaeSilkSheenShift 2.8s ease-in-out infinite alternate;
  }
}

@keyframes uaeFlagFlutter {
  0% {
    transform: translate3d(0, 0, 0) skewY(-1.4deg) scaleX(0.99);
  }
  50% {
    transform: translate3d(0, -1px, 0) skewY(1.1deg) scaleX(1.015);
  }
  100% {
    transform: translate3d(0, 0.5px, 0) skewY(1.5deg) scaleX(0.985);
  }
}

@keyframes uaeSilkSheenShift {
  0% { transform: translateX(-8px); }
  100% { transform: translateX(10px); }
}

/* Drifting Emirati Sparks (Red, Green, White, Black) */
html[data-uae-national-day="active"] #uaeSparksLayer {
  display: block;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.uae-spark-item {
  position: absolute;
  top: -28px;
  border-radius: 2px;
  opacity: 0;
  will-change: transform, opacity;
  pointer-events: none;
  box-shadow: 0 0 0 0.5px rgba(15, 20, 25, 0.12);
}

@media (prefers-reduced-motion: no-preference) {
  html[data-uae-national-day="active"] .uae-spark-item {
    animation: uaeFloatDown var(--dur, 13s) linear var(--del, 0s) infinite;
  }
}

@keyframes uaeFloatDown {
  0% {
    transform: translate3d(0, -5vh, 0) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  12% {
    opacity: var(--max-op, 0.60);
  }
  85% {
    opacity: var(--max-op, 0.60);
  }
  100% {
    transform: translate3d(var(--drift, 30px), 108vh, 0) rotate(330deg) scale(1.05);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   2. OPENING EID AL ETIHAD 55 WELCOME OVERLAY (STAYS UNTIL EXPLORE BUTTON CLICK)
   -------------------------------------------------------------------------- */
#uaeOpeningOverlay {
  position: fixed;
  inset: 0;
  z-index: 9900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(ellipse 75% 60% at 15% 18%, rgba(0, 115, 47, 0.36), transparent 65%),
    radial-gradient(ellipse 70% 58% at 85% 82%, rgba(206, 17, 38, 0.32), transparent 65%),
    radial-gradient(ellipse 65% 65% at 50% 50%, rgba(255, 255, 255, 0.08), rgba(4, 7, 12, 0.96));
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.42s ease;
}

#uaeOpeningOverlay.is-visible {
  opacity: 1;
  visibility: visible;
}

#uaeOpeningOverlay.is-closing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.uae-opening-card {
  position: relative;
  width: 100%;
  max-width: 580px;
  border-radius: 30px;
  padding: 40px 34px 34px;
  text-align: center;
  color: #f8fafc;
  background:
    radial-gradient(ellipse 70% 50% at 15% 15%, rgba(0, 115, 47, 0.24), transparent 65%),
    radial-gradient(ellipse 70% 50% at 85% 85%, rgba(206, 17, 38, 0.22), transparent 65%),
    linear-gradient(155deg, #06090f 0%, #0b111a 55%, #030508 100%);
  border: 2px solid rgba(255, 255, 255, 0.30);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.84),
    0 0 0 1px rgba(255, 255, 255, 0.10) inset,
    0 0 56px rgba(0, 115, 47, 0.28),
    0 0 56px rgba(206, 17, 38, 0.24);
  overflow: hidden;
  transform: translateY(14px) scale(0.97);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

#uaeOpeningOverlay.is-visible .uae-opening-card {
  transform: translateY(0) scale(1);
}

.uae-opening-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--uae-flag-grad);
}

.uae-opening-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--uae-flag-grad);
}

.uae-opening-emblem-stack {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}

.uae-opening-emblem-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(0, 115, 47, 0.20) 62%, transparent 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.36);
  box-shadow: 0 0 38px rgba(0, 115, 47, 0.34), 0 0 28px rgba(206, 17, 38, 0.24);
}

.uae-opening-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 9999px;
  background: linear-gradient(90deg, rgba(0, 115, 47, 0.34), rgba(206, 17, 38, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.32);
  font-family: 'Outfit', 'Space Grotesk', 'Alexandria', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 16px;
}

.uae-opening-title {
  font-family: 'Outfit', 'Space Grotesk', 'Alexandria', sans-serif;
  font-size: clamp(27px, 4.4vw, 37px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  background: linear-gradient(120deg, #ffffff 0%, #6ee7b7 55%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.uae-opening-ar {
  font-family: 'Alexandria', 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: clamp(19px, 3vw, 24px);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0;
  color: #f1f5f9;
  margin-bottom: 12px;
}

.uae-opening-sub {
  font-family: 'Plus Jakarta Sans', 'Alexandria', 'Inter', sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: #e2e8f0;
  max-width: 450px;
  margin: 0 auto 24px;
}

.uae-opening-actions {
  display: flex;
  align-items: center;
  justify-content: center;
}

.uae-enter-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 32px;
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.68);
  cursor: pointer;
  font-family: 'Outfit', 'Space Grotesk', 'Alexandria', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffffff;
  background: linear-gradient(135deg, #00732f 0%, #059669 52%, #065f46 100%);
  box-shadow: 0 10px 30px rgba(0, 115, 47, 0.48), 0 0 22px rgba(255, 255, 255, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.uae-enter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 115, 47, 0.60), 0 0 28px rgba(206, 17, 38, 0.28);
}

/* --------------------------------------------------------------------------
   3. HEADER LONG DOCK, LOGO & MENU CIRCLES (ZERO GOLD — UAE FLAG COLORS)
   -------------------------------------------------------------------------- */
html[data-uae-national-day="active"] .site-header .nav-inner,
html[data-uae-national-day="active"] body.home-sovereign-v4 .site-header .nav-inner {
  background:
    linear-gradient(
      95deg,
      rgba(229, 245, 236, 0.94) 0%,
      rgba(235, 240, 246, 0.95) 50%,
      rgba(248, 232, 234, 0.94) 100%
    ) !important;
  border: 1.5px solid rgba(15, 20, 25, 0.24) !important;
  box-shadow:
    0 12px 34px rgba(0, 115, 47, 0.12),
    0 8px 24px rgba(206, 17, 38, 0.08),
    0 0 0 1px rgba(15, 20, 25, 0.10) inset !important;
}

html[data-uae-national-day="active"][data-theme="dark"] .site-header .nav-inner,
html[data-uae-national-day="active"][data-theme="dark"] body.home-sovereign-v4 .site-header .nav-inner {
  background:
    linear-gradient(
      95deg,
      rgba(6, 36, 22, 0.90) 0%,
      rgba(10, 14, 20, 0.95) 50%,
      rgba(44, 10, 18, 0.90) 100%
    ) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.26) !important;
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.72),
    0 0 24px rgba(0, 115, 47, 0.22),
    0 0 20px rgba(206, 17, 38, 0.18) !important;
}

html[data-uae-national-day="active"] .site-header .nav-inner::after {
  content: "" !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 26px !important;
  right: 26px !important;
  height: 3px !important;
  border-radius: 9999px !important;
  background: var(--uae-flag-grad) !important;
  opacity: 0.96 !important;
  pointer-events: none !important;
  display: block !important;
}

/* Header nav pills & header action buttons: zero gold */
html[data-uae-national-day="active"] .site-header .nav-pill:hover,
html[data-uae-national-day="active"] .site-header .nav-pill.active,
html[data-uae-national-day="active"] body.home-sovereign-v4 .site-header .nav-pill:hover,
html[data-uae-national-day="active"] body.home-sovereign-v4 .site-header .nav-pill.active {
  border-color: rgba(0, 115, 47, 0.45) !important;
  background: rgba(0, 115, 47, 0.12) !important;
  color: #00732f !important;
}

html[data-uae-national-day="active"][data-theme="dark"] .site-header .nav-pill:hover,
html[data-uae-national-day="active"][data-theme="dark"] .site-header .nav-pill.active,
html[data-uae-national-day="active"][data-theme="dark"] body.home-sovereign-v4 .site-header .nav-pill:hover,
html[data-uae-national-day="active"][data-theme="dark"] body.home-sovereign-v4 .site-header .nav-pill.active {
  border-color: rgba(255, 255, 255, 0.35) !important;
  background: rgba(0, 115, 47, 0.24) !important;
  color: #ffffff !important;
}

/* Circular Logo Medallion & Three-Line Menu Circle (UAE Flag Ring — ZERO GOLD) */
html[data-uae-national-day="active"][data-theme="light"] body .btn-three-lines.dock-separate-circle,
html[data-uae-national-day="active"][data-theme="light"] body .brand-logo-circle.dock-separate-circle,
html[data-uae-national-day="active"][data-theme="light"] body.home-sovereign-v4 .btn-three-lines.dock-separate-circle,
html[data-uae-national-day="active"][data-theme="light"] body.home-sovereign-v4 .brand-logo-circle.dock-separate-circle {
  background:
    linear-gradient(135deg, #eef2f7 0%, #e2e8f0 100%) padding-box,
    var(--uae-flag-conic) border-box !important;
  border: 2.5px solid transparent !important;
  box-shadow:
    0 8px 22px rgba(15, 20, 25, 0.16),
    0 0 14px rgba(0, 115, 47, 0.14) !important;
}

html[data-uae-national-day="active"][data-theme="dark"] body .btn-three-lines.dock-separate-circle,
html[data-uae-national-day="active"][data-theme="dark"] body .brand-logo-circle.dock-separate-circle,
html[data-uae-national-day="active"][data-theme="dark"] body.home-sovereign-v4 .btn-three-lines.dock-separate-circle,
html[data-uae-national-day="active"][data-theme="dark"] body.home-sovereign-v4 .brand-logo-circle.dock-separate-circle {
  background:
    linear-gradient(135deg, #0b1018 0%, #05070a 100%) padding-box,
    var(--uae-flag-conic) border-box !important;
  border: 2.2px solid transparent !important;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.72),
    0 0 16px rgba(0, 115, 47, 0.24) !important;
}

html[data-uae-national-day="active"][data-theme="light"] body .btn-three-lines.dock-separate-circle .three-lines-bars span,
html[data-uae-national-day="active"][data-theme="light"] body.home-sovereign-v4 .btn-three-lines.dock-separate-circle .three-lines-bars span {
  background: linear-gradient(90deg, #0f1419 0%, #00732f 55%, #ce1126 100%) !important;
}

html[data-uae-national-day="active"][data-theme="dark"] body .btn-three-lines.dock-separate-circle .three-lines-bars span,
html[data-uae-national-day="active"][data-theme="dark"] body.home-sovereign-v4 .btn-three-lines.dock-separate-circle .three-lines-bars span {
  background: linear-gradient(90deg, #ffffff 0%, #34d399 55%, #ffffff 100%) !important;
}

html[data-uae-national-day="active"] body.three-lines-menu-open .btn-three-lines.dock-separate-circle,
html[data-uae-national-day="active"] body.home-sovereign-v4.three-lines-menu-open .btn-three-lines.dock-separate-circle {
  background: linear-gradient(135deg, #00732f 0%, #0f1419 100%) !important;
  border-color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   4. WAVING UAE FLAG BANNER STRIP (NO CELEBRATE / PAUSE BUTTON CLUTTER)
   -------------------------------------------------------------------------- */
.uae-page-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 20px;
  margin-bottom: 22px;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 65% 120% at 0% 50%, rgba(0, 115, 47, 0.15), transparent 60%),
    radial-gradient(ellipse 60% 120% at 100% 50%, rgba(206, 17, 38, 0.13), transparent 60%),
    linear-gradient(115deg, rgba(232, 238, 245, 0.96) 0%, rgba(226, 244, 234, 0.94) 52%, rgba(247, 231, 233, 0.94) 100%);
  border: 1.5px solid rgba(15, 20, 25, 0.24);
  box-shadow:
    0 12px 30px rgba(0, 115, 47, 0.09),
    0 6px 20px rgba(15, 20, 25, 0.08);
  color: #0f172a;
  overflow: hidden;
  z-index: 3;
}

.uae-page-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--uae-flag-grad);
  box-shadow: 0 1px 2px rgba(15, 20, 25, 0.16);
}

html[data-theme="dark"] .uae-page-banner {
  background:
    radial-gradient(ellipse 65% 120% at 0% 50%, rgba(0, 115, 47, 0.34), transparent 62%),
    radial-gradient(ellipse 60% 120% at 100% 50%, rgba(206, 17, 38, 0.28), transparent 62%),
    linear-gradient(115deg, rgba(8, 24, 18, 0.95) 0%, rgba(8, 12, 18, 0.96) 52%, rgba(42, 10, 18, 0.94) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.56),
    0 0 26px rgba(0, 115, 47, 0.18);
  color: #f8fafc;
}

.uae-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.uae-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.uae-banner-title {
  font-family: 'Outfit', 'Space Grotesk', 'Alexandria', 'Readex Pro', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #0f172a;
}

html[data-theme="dark"] .uae-banner-title {
  color: #ffffff;
}

.uae-banner-sub {
  font-family: 'Plus Jakarta Sans', 'Alexandria', 'Readex Pro', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #334155;
}

html[data-theme="dark"] .uae-banner-sub {
  color: #cbd5e1;
}

.uae-banner-right {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.uae-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: 'Outfit', 'Space Grotesk', 'Alexandria', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(15, 20, 25, 0.08);
  color: #0f1419;
  border: 1px solid rgba(15, 20, 25, 0.28);
}

html[data-theme="dark"] .uae-date-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
}

/* --------------------------------------------------------------------------
   5. FULL-SITE TYPOGRAPHY, KICKERS, CTAS & TABS (ZERO GOLD — UAE FLAG ONLY)
   -------------------------------------------------------------------------- */
html[data-uae-national-day="active"] :is(
  .hv4-hero-gold-word,
  .hero-title span:not(.material-symbols-rounded),
  .studio-hero-title span:not(.material-symbols-rounded),
  .pos-hero-title span:not(.material-symbols-rounded)
) {
  background: linear-gradient(115deg, #00732f 0%, #0f1419 48%, #ce1126 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html[data-uae-national-day="active"][data-theme="dark"] :is(
  .hv4-hero-gold-word,
  .hero-title span:not(.material-symbols-rounded),
  .studio-hero-title span:not(.material-symbols-rounded),
  .pos-hero-title span:not(.material-symbols-rounded)
) {
  background: linear-gradient(115deg, #34d399 0%, #ffffff 50%, #fb7185 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html[data-uae-national-day="active"] :is(
  .hv4-sovereign-pill,
  .hv4-kicker,
  .hv4-founder-kicker,
  .hero-pill,
  .hero-kicker
) {
  background: linear-gradient(95deg, rgba(0, 115, 47, 0.10), rgba(15, 20, 25, 0.06), rgba(206, 17, 38, 0.08)) !important;
  border-color: rgba(15, 20, 25, 0.24) !important;
  color: #0f1419 !important;
}

html[data-uae-national-day="active"][data-theme="dark"] :is(
  .hv4-sovereign-pill,
  .hv4-kicker,
  .hv4-founder-kicker,
  .hero-pill,
  .hero-kicker
) {
  background: linear-gradient(95deg, rgba(0, 115, 47, 0.24), rgba(15, 20, 25, 0.55), rgba(206, 17, 38, 0.20)) !important;
  border-color: rgba(255, 255, 255, 0.30) !important;
  color: #ffffff !important;
}

html[data-uae-national-day="active"] .hv4-gold-dot {
  background: linear-gradient(135deg, #00732f, #ce1126) !important;
  box-shadow: 0 0 10px rgba(0, 115, 47, 0.65) !important;
}

/* Founder ring & avatars: replace gold rings with UAE 4-color ring */
html[data-uae-national-day="active"] .hv4-founder-circle,
html[data-uae-national-day="active"] body.home-sovereign-v4 .hv4-founder-circle {
  background:
    linear-gradient(#0b1120, #0b1120) padding-box,
    var(--uae-flag-conic) border-box !important;
  border-color: transparent !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35), 0 0 22px rgba(0, 115, 47, 0.22) !important;
}

/* Primary Buttons, Active Tabs & Pills — UAE Flag Green / Black / White / Red (ZERO GOLD) */
html[data-uae-national-day="active"][data-theme] body :is(
  .hv4-btn-sovereign,
  .btn-hero-primary,
  .studio-btn-primary,
  .btn-exec-primary,
  .hv4-founder-cta-btn,
  .btn-fintech-wa,
  .dash-tab-pill.active,
  .studio-tab-btn.app-filter-pill.active,
  .studio-role-btn.active
),
html[data-uae-national-day="active"][data-theme] body.home-sovereign-v4 :is(
  .hv4-btn-sovereign,
  .hv4-founder-cta-btn
) {
  background: linear-gradient(135deg, #00732f 0%, #059669 52%, #065f46 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(15, 20, 25, 0.38) !important;
  box-shadow: 0 10px 26px rgba(0, 115, 47, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.35) inset !important;
}

html[data-uae-national-day="active"][data-theme="dark"] body :is(
  .hv4-btn-sovereign,
  .btn-hero-primary,
  .studio-btn-primary,
  .btn-exec-primary,
  .hv4-founder-cta-btn,
  .btn-fintech-wa,
  .dash-tab-pill.active,
  .studio-tab-btn.app-filter-pill.active,
  .studio-role-btn.active
),
html[data-uae-national-day="active"][data-theme="dark"] body.home-sovereign-v4 :is(
  .hv4-btn-sovereign,
  .hv4-founder-cta-btn
) {
  border-color: rgba(255, 255, 255, 0.56) !important;
}

html[data-uae-national-day="active"][data-theme] body :is(
  .hv4-btn-sovereign *,
  .btn-hero-primary *,
  .studio-btn-primary *,
  .btn-exec-primary *,
  .hv4-founder-cta-btn *,
  .btn-fintech-wa *,
  .dash-tab-pill.active *,
  .studio-tab-btn.app-filter-pill.active *,
  .studio-role-btn.active *
),
html[data-uae-national-day="active"][data-theme] body.home-sovereign-v4 :is(
  .hv4-btn-sovereign *,
  .hv4-founder-cta-btn *
) {
  color: #ffffff !important;
}

html[data-uae-national-day="active"][data-theme] body :is(
  .hv4-btn-sovereign:hover,
  .btn-hero-primary:hover,
  .studio-btn-primary:hover,
  .btn-exec-primary:hover,
  .hv4-founder-cta-btn:hover
),
html[data-uae-national-day="active"][data-theme] body.home-sovereign-v4 :is(
  .hv4-btn-sovereign:hover,
  .hv4-founder-cta-btn:hover
) {
  background: linear-gradient(135deg, #0f1419 0%, #00732f 100%) !important;
  box-shadow: 0 14px 34px rgba(0, 115, 47, 0.36), 0 0 22px rgba(206, 17, 38, 0.24) !important;
}

/* --------------------------------------------------------------------------
   6. FULL-SURFACE CARDS, SECTIONS & 4-COLOR UAE FLAG BOXES (GREEN / RED / BLACK / WHITE)
   -------------------------------------------------------------------------- */
html[data-uae-national-day="active"] section:nth-of-type(odd) {
  background-image:
    radial-gradient(ellipse 65% 55% at 15% 25%, rgba(0, 115, 47, 0.06), transparent 65%),
    radial-gradient(ellipse 55% 45% at 85% 75%, rgba(206, 17, 38, 0.05), transparent 65%);
}

html[data-uae-national-day="active"] section:nth-of-type(even) {
  background-image:
    radial-gradient(ellipse 65% 55% at 85% 25%, rgba(206, 17, 38, 0.055), transparent 65%),
    radial-gradient(ellipse 55% 45% at 15% 75%, rgba(15, 20, 25, 0.045), transparent 65%);
}

html[data-uae-national-day="active"][data-theme="dark"] section:nth-of-type(odd) {
  background-image:
    radial-gradient(ellipse 65% 55% at 15% 25%, rgba(0, 115, 47, 0.14), transparent 65%),
    radial-gradient(ellipse 55% 45% at 85% 75%, rgba(206, 17, 38, 0.11), transparent 65%);
}

html[data-uae-national-day="active"][data-theme="dark"] section:nth-of-type(even) {
  background-image:
    radial-gradient(ellipse 65% 55% at 85% 25%, rgba(206, 17, 38, 0.12), transparent 65%),
    radial-gradient(ellipse 55% 45% at 15% 75%, rgba(0, 115, 47, 0.13), transparent 65%);
}

/* Large Flagship Monolith Panels (UAE 4-Color Accent Top Strip, Zero Gold Borders) */
html[data-uae-national-day="active"][data-theme="light"] body :is(
  .hv4-hero-monolith,
  .hv4-seal-monolith,
  .hv4-founder-card,
  .hv4-engine-deck,
  .hv4-concierge,
  .partners-showcase-box,
  .studio-hero-console,
  .studio-inspector,
  .pos-top-bento-card,
  .pos-hardware-card,
  .fintech-card,
  .calc-card-container,
  .portal-dashboard-preview,
  .dash-exec-hero,
  .dash-section-box,
  .dpr-pin-card,
  .dpr-cover-header,
  .dpr-card,
  .app-detail-hero,
  .login-card,
  .auth-card
),
html[data-uae-national-day="active"][data-theme="light"] body.home-sovereign-v4 :is(
  .hv4-hero-monolith,
  .hv4-seal-monolith,
  .hv4-founder-card,
  .hv4-engine-deck,
  .hv4-concierge,
  .partners-showcase-box
) {
  position: relative;
  background:
    radial-gradient(ellipse 75% 65% at 10% 10%, rgba(0, 115, 47, 0.13), transparent 65%),
    radial-gradient(ellipse 70% 60% at 92% 90%, rgba(206, 17, 38, 0.10), transparent 65%),
    linear-gradient(148deg, rgba(235, 241, 247, 0.97) 0%, rgba(226, 244, 234, 0.94) 55%, rgba(248, 232, 235, 0.94) 100%) !important;
  border: 1.5px solid rgba(15, 20, 25, 0.24) !important;
  box-shadow:
    0 18px 42px rgba(15, 20, 25, 0.10),
    0 8px 24px rgba(0, 115, 47, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html[data-uae-national-day="active"][data-theme="dark"] body :is(
  .hv4-hero-monolith,
  .hv4-seal-monolith,
  .hv4-founder-card,
  .hv4-engine-deck,
  .hv4-concierge,
  .partners-showcase-box,
  .studio-hero-console,
  .studio-inspector,
  .pos-top-bento-card,
  .pos-hardware-card,
  .fintech-card,
  .calc-card-container,
  .portal-dashboard-preview,
  .dash-exec-hero,
  .dash-section-box,
  .dpr-pin-card,
  .dpr-cover-header,
  .dpr-card,
  .app-detail-hero,
  .login-card,
  .auth-card
),
html[data-uae-national-day="active"][data-theme="dark"] body.home-sovereign-v4 :is(
  .hv4-hero-monolith,
  .hv4-seal-monolith,
  .hv4-founder-card,
  .hv4-engine-deck,
  .hv4-concierge,
  .partners-showcase-box
) {
  position: relative;
  background:
    radial-gradient(ellipse 75% 65% at 10% 10%, rgba(0, 115, 47, 0.28), transparent 65%),
    radial-gradient(ellipse 70% 60% at 92% 90%, rgba(206, 17, 38, 0.24), transparent 65%),
    linear-gradient(148deg, rgba(6, 22, 16, 0.95) 0%, rgba(9, 13, 20, 0.97) 55%, rgba(36, 9, 16, 0.94) 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.24) !important;
  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.68),
    0 0 32px rgba(0, 115, 47, 0.20),
    0 0 28px rgba(206, 17, 38, 0.16) !important;
}

html[data-uae-national-day="active"] :is(
  .hv4-hero-monolith,
  .hv4-seal-monolith,
  .hv4-founder-card,
  .hv4-engine-deck,
  .hv4-div-card,
  .hv4-concierge,
  .partners-showcase-box,
  .studio-hero-console,
  .studio-inspector,
  .pos-top-bento-card,
  .pos-hardware-card,
  .fintech-card,
  .calc-card-container,
  .dash-exec-hero,
  .dash-section-box,
  .dpr-pin-card,
  .dpr-cover-header,
  .dpr-card,
  .app-detail-hero
)::after {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 4.5px;
  border-radius: 0 0 99px 99px;
  background: var(--uae-flag-grad);
  box-shadow: 0 1px 2px rgba(15, 20, 25, 0.16);
  opacity: 0.98;
  pointer-events: none;
  z-index: 4;
}

/* --------------------------------------------------------------------------
   ALL BOXES & GRID TILES — 4 UAE FLAG COLORS CYCLE (GREEN • RED • BLACK • WHITE)
   -------------------------------------------------------------------------- */
/* Light Mode Box 1 (4n+1): UAE GREEN */
html[data-uae-national-day="active"][data-theme="light"] body :is(
  .hv4-mosaic-card,
  .hv4-value-card,
  .hv4-hub-card,
  .hv4-cert-tile,
  .hv4-os-card,
  .hv4-pipe-step,
  .hv4-div-card,
  .hv4-mono-cell,
  .hv4-telemetry-cell,
  .studio-app-card,
  .studio-eng-card,
  .studio-custom-card,
  .cert-card,
  .cybaze-bento-card,
  .portal-kpi-card,
  .kyc-tranche-card,
  .kpi-card,
  .app-feature-card
):nth-child(4n+1),
html[data-uae-national-day="active"][data-theme="light"] body.home-sovereign-v4 :is(
  .hv4-mosaic-card,
  .hv4-value-card,
  .hv4-hub-card,
  .hv4-cert-tile,
  .hv4-os-card,
  .hv4-pipe-step,
  .hv4-div-card,
  .hv4-telemetry-cell
):nth-child(4n+1) {
  background: linear-gradient(155deg, #eef6f2 0%, #d8f2e4 100%) !important;
  border: 1.5px solid rgba(0, 115, 47, 0.36) !important;
  border-top: 4.5px solid #00732f !important;
  box-shadow: 0 12px 28px rgba(0, 115, 47, 0.10) !important;
}

/* Light Mode Box 2 (4n+2): UAE RED */
html[data-uae-national-day="active"][data-theme="light"] body :is(
  .hv4-mosaic-card,
  .hv4-value-card,
  .hv4-hub-card,
  .hv4-cert-tile,
  .hv4-os-card,
  .hv4-pipe-step,
  .hv4-div-card,
  .hv4-mono-cell,
  .hv4-telemetry-cell,
  .studio-app-card,
  .studio-eng-card,
  .studio-custom-card,
  .cert-card,
  .cybaze-bento-card,
  .portal-kpi-card,
  .kyc-tranche-card,
  .kpi-card,
  .app-feature-card
):nth-child(4n+2),
html[data-uae-national-day="active"][data-theme="light"] body.home-sovereign-v4 :is(
  .hv4-mosaic-card,
  .hv4-value-card,
  .hv4-hub-card,
  .hv4-cert-tile,
  .hv4-os-card,
  .hv4-pipe-step,
  .hv4-div-card,
  .hv4-telemetry-cell
):nth-child(4n+2) {
  background: linear-gradient(155deg, #f8eff1 0%, #fbdce0 100%) !important;
  border: 1.5px solid rgba(206, 17, 38, 0.32) !important;
  border-top: 4.5px solid #ce1126 !important;
  box-shadow: 0 12px 28px rgba(206, 17, 38, 0.09) !important;
}

/* Light Mode Box 3 (4n+3): UAE BLACK */
html[data-uae-national-day="active"][data-theme="light"] body :is(
  .hv4-mosaic-card,
  .hv4-value-card,
  .hv4-hub-card,
  .hv4-cert-tile,
  .hv4-os-card,
  .hv4-pipe-step,
  .hv4-div-card,
  .hv4-mono-cell,
  .hv4-telemetry-cell,
  .studio-app-card,
  .studio-eng-card,
  .studio-custom-card,
  .cert-card,
  .cybaze-bento-card,
  .portal-kpi-card,
  .kyc-tranche-card,
  .kpi-card,
  .app-feature-card
):nth-child(4n+3),
html[data-uae-national-day="active"][data-theme="light"] body.home-sovereign-v4 :is(
  .hv4-mosaic-card,
  .hv4-value-card,
  .hv4-hub-card,
  .hv4-cert-tile,
  .hv4-os-card,
  .hv4-pipe-step,
  .hv4-div-card,
  .hv4-telemetry-cell
):nth-child(4n+3) {
  background: linear-gradient(155deg, #e7ecf2 0%, #cbd5e1 100%) !important;
  border: 1.5px solid rgba(15, 20, 25, 0.62) !important;
  border-top: 4.5px solid #0f1419 !important;
  box-shadow: 0 12px 28px rgba(15, 20, 25, 0.16) !important;
}

/* Light Mode Box 4 (4n+4): UAE WHITE / TINTED PLATINUM SO WHITE LINE POPS CLEARLY */
html[data-uae-national-day="active"][data-theme="light"] body :is(
  .hv4-mosaic-card,
  .hv4-value-card,
  .hv4-hub-card,
  .hv4-cert-tile,
  .hv4-os-card,
  .hv4-pipe-step,
  .hv4-div-card,
  .hv4-mono-cell,
  .hv4-telemetry-cell,
  .studio-app-card,
  .studio-eng-card,
  .studio-custom-card,
  .cert-card,
  .cybaze-bento-card,
  .portal-kpi-card,
  .kyc-tranche-card,
  .kpi-card,
  .app-feature-card
):nth-child(4n+4),
html[data-uae-national-day="active"][data-theme="light"] body.home-sovereign-v4 :is(
  .hv4-mosaic-card,
  .hv4-value-card,
  .hv4-hub-card,
  .hv4-cert-tile,
  .hv4-os-card,
  .hv4-pipe-step,
  .hv4-div-card,
  .hv4-telemetry-cell
):nth-child(4n+4) {
  background: linear-gradient(155deg, #eaeef4 0%, #dce3ec 100%) !important;
  border: 1.5px solid rgba(15, 23, 42, 0.22) !important;
  border-top: 5px solid #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.14), 0 -1px 0 rgba(15, 23, 42, 0.12), 0 12px 28px rgba(15, 23, 42, 0.08) !important;
}

/* Soft Platinum Tint on Trust Strip, Light Secondary Buttons & Chips so NO pure white boxes clash */
html[data-uae-national-day="active"][data-theme="light"] body :is(
  .hv4-trust-strip,
  .hv4-btn-ghost,
  .btn-hero-secondary,
  .hv4-chip,
  .three-lines-drawer .drawer-hotline-pill
),
html[data-uae-national-day="active"][data-theme="light"] body.home-sovereign-v4 :is(
  .hv4-trust-strip,
  .hv4-btn-ghost,
  .hv4-chip,
  .three-lines-drawer .drawer-hotline-pill
) {
  background: #eaeef4 !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
}

/* Dark Mode Box 1 (4n+1): UAE GREEN */
html[data-uae-national-day="active"][data-theme="dark"] body :is(
  .hv4-mosaic-card,
  .hv4-value-card,
  .hv4-hub-card,
  .hv4-cert-tile,
  .hv4-os-card,
  .hv4-pipe-step,
  .hv4-div-card,
  .hv4-mono-cell,
  .hv4-telemetry-cell,
  .studio-app-card,
  .studio-eng-card,
  .studio-custom-card,
  .cert-card,
  .cybaze-bento-card,
  .portal-kpi-card,
  .kyc-tranche-card,
  .kpi-card,
  .app-feature-card
):nth-child(4n+1),
html[data-uae-national-day="active"][data-theme="dark"] body.home-sovereign-v4 :is(
  .hv4-mosaic-card,
  .hv4-value-card,
  .hv4-hub-card,
  .hv4-cert-tile,
  .hv4-os-card,
  .hv4-pipe-step,
  .hv4-div-card,
  .hv4-telemetry-cell
):nth-child(4n+1) {
  background: linear-gradient(155deg, rgba(6, 34, 22, 0.94) 0%, rgba(10, 16, 26, 0.96) 100%) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.42) !important;
  border-top: 4px solid #10b981 !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.50), 0 0 18px rgba(0, 115, 47, 0.18) !important;
}

/* Dark Mode Box 2 (4n+2): UAE RED */
html[data-uae-national-day="active"][data-theme="dark"] body :is(
  .hv4-mosaic-card,
  .hv4-value-card,
  .hv4-hub-card,
  .hv4-cert-tile,
  .hv4-os-card,
  .hv4-pipe-step,
  .hv4-div-card,
  .hv4-mono-cell,
  .hv4-telemetry-cell,
  .studio-app-card,
  .studio-eng-card,
  .studio-custom-card,
  .cert-card,
  .cybaze-bento-card,
  .portal-kpi-card,
  .kyc-tranche-card,
  .kpi-card,
  .app-feature-card
):nth-child(4n+2),
html[data-uae-national-day="active"][data-theme="dark"] body.home-sovereign-v4 :is(
  .hv4-mosaic-card,
  .hv4-value-card,
  .hv4-hub-card,
  .hv4-cert-tile,
  .hv4-os-card,
  .hv4-pipe-step,
  .hv4-div-card,
  .hv4-telemetry-cell
):nth-child(4n+2) {
  background: linear-gradient(155deg, rgba(44, 10, 18, 0.92) 0%, rgba(12, 16, 24, 0.96) 100%) !important;
  border: 1.5px solid rgba(206, 17, 38, 0.46) !important;
  border-top: 4px solid #ce1126 !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.50), 0 0 18px rgba(206, 17, 38, 0.16) !important;
}

/* Dark Mode Box 3 (4n+3): UAE BLACK */
html[data-uae-national-day="active"][data-theme="dark"] body :is(
  .hv4-mosaic-card,
  .hv4-value-card,
  .hv4-hub-card,
  .hv4-cert-tile,
  .hv4-os-card,
  .hv4-pipe-step,
  .hv4-div-card,
  .hv4-mono-cell,
  .hv4-telemetry-cell,
  .studio-app-card,
  .studio-eng-card,
  .studio-custom-card,
  .cert-card,
  .cybaze-bento-card,
  .portal-kpi-card,
  .kyc-tranche-card,
  .kpi-card,
  .app-feature-card
):nth-child(4n+3),
html[data-uae-national-day="active"][data-theme="dark"] body.home-sovereign-v4 :is(
  .hv4-mosaic-card,
  .hv4-value-card,
  .hv4-hub-card,
  .hv4-cert-tile,
  .hv4-os-card,
  .hv4-pipe-step,
  .hv4-div-card,
  .hv4-telemetry-cell
):nth-child(4n+3) {
  background: linear-gradient(155deg, #030407 0%, #0a0d14 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.24) !important;
  border-top: 4.5px solid #000000 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 16px 36px rgba(0, 0, 0, 0.80) !important;
}

/* Dark Mode Box 4 (4n+4): UAE WHITE / PEARL */
html[data-uae-national-day="active"][data-theme="dark"] body :is(
  .hv4-mosaic-card,
  .hv4-value-card,
  .hv4-hub-card,
  .hv4-cert-tile,
  .hv4-os-card,
  .hv4-pipe-step,
  .hv4-div-card,
  .hv4-mono-cell,
  .hv4-telemetry-cell,
  .studio-app-card,
  .studio-eng-card,
  .studio-custom-card,
  .cert-card,
  .cybaze-bento-card,
  .portal-kpi-card,
  .kyc-tranche-card,
  .kpi-card,
  .app-feature-card
):nth-child(4n+4),
html[data-uae-national-day="active"][data-theme="dark"] body.home-sovereign-v4 :is(
  .hv4-mosaic-card,
  .hv4-value-card,
  .hv4-hub-card,
  .hv4-cert-tile,
  .hv4-os-card,
  .hv4-pipe-step,
  .hv4-div-card,
  .hv4-telemetry-cell
):nth-child(4n+4) {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.14) 0%, rgba(16, 22, 34, 0.94) 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.56) !important;
  border-top: 4px solid #ffffff !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.50), 0 0 18px rgba(255, 255, 255, 0.14) !important;
}

/* Hero Monolith Tag & Telemetry Live Pill (Zero Gold) */
html[data-uae-national-day="active"][data-theme="light"] body.home-sovereign-v4 .hv4-monolith-tag {
  color: #00732f !important;
}

html[data-uae-national-day="active"][data-theme="dark"] body.home-sovereign-v4 .hv4-monolith-tag {
  color: #ffffff !important;
}

html[data-uae-national-day="active"][data-theme="light"] body.home-sovereign-v4 .hv4-hero-monolith .animated-brand-live-pill {
  background: rgba(0, 115, 47, 0.12) !important;
  border: 1px solid rgba(0, 115, 47, 0.34) !important;
  color: #064e3b !important;
}

html[data-uae-national-day="active"][data-theme="dark"] body.home-sovereign-v4 .hv4-hero-monolith .animated-brand-live-pill {
  background: rgba(0, 115, 47, 0.24) !important;
  border: 1px solid rgba(255, 255, 255, 0.36) !important;
  color: #ffffff !important;
}

/* Mosaic Eyebrow & Icon Tiles — UAE Flag 4-Color Alignment (No Amber/Gold) */
html[data-uae-national-day="active"][data-theme="light"] body .hv4-mosaic-card:nth-child(4n+1) .hv4-mosaic-eyebrow { color: #00732f !important; }
html[data-uae-national-day="active"][data-theme="light"] body .hv4-mosaic-card:nth-child(4n+2) .hv4-mosaic-eyebrow { color: #ce1126 !important; }
html[data-uae-national-day="active"][data-theme="light"] body .hv4-mosaic-card:nth-child(4n+3) .hv4-mosaic-eyebrow { color: #0f1419 !important; }
html[data-uae-national-day="active"][data-theme="light"] body .hv4-mosaic-card:nth-child(4n+4) .hv4-mosaic-eyebrow { color: #00732f !important; }

html[data-uae-national-day="active"][data-theme="dark"] body .hv4-mosaic-card:nth-child(4n+1) .hv4-mosaic-eyebrow { color: #34d399 !important; }
html[data-uae-national-day="active"][data-theme="dark"] body .hv4-mosaic-card:nth-child(4n+2) .hv4-mosaic-eyebrow { color: #fb7185 !important; }
html[data-uae-national-day="active"][data-theme="dark"] body .hv4-mosaic-card:nth-child(4n+3) .hv4-mosaic-eyebrow { color: #e2e8f0 !important; }
html[data-uae-national-day="active"][data-theme="dark"] body .hv4-mosaic-card:nth-child(4n+4) .hv4-mosaic-eyebrow { color: #ffffff !important; }

html[data-uae-national-day="active"] body .hv4-mosaic-card:nth-child(4n+1) .hv4-mosaic-ico { background: #00732f !important; color: #ffffff !important; }
html[data-uae-national-day="active"] body .hv4-mosaic-card:nth-child(4n+2) .hv4-mosaic-ico { background: #ce1126 !important; color: #ffffff !important; }
html[data-uae-national-day="active"] body .hv4-mosaic-card:nth-child(4n+3) .hv4-mosaic-ico { background: #0f1419 !important; color: #ffffff !important; }
html[data-uae-national-day="active"] body .hv4-mosaic-card:nth-child(4n+4) .hv4-mosaic-ico { background: #00732f !important; color: #ffffff !important; }

/* Live Pill Contrast */
html[data-uae-national-day="active"][data-theme="light"] .animated-brand-live-pill {
  background: rgba(0, 115, 47, 0.12) !important;
  border-color: rgba(0, 115, 47, 0.30) !important;
  color: #064e3b !important;
}

html[data-uae-national-day="active"][data-theme="light"] .animated-brand-live-pill span:not(.live-pulse-dot) {
  color: #064e3b !important;
}

/* --------------------------------------------------------------------------
   7. SIDE THREE-LINE DRAWER UAE FLAG OVERRIDE (ZERO GOLD ANYWHERE)
   -------------------------------------------------------------------------- */
html[data-uae-national-day="active"][data-theme] body .three-lines-drawer,
html[data-uae-national-day="active"][data-theme] body.home-sovereign-v4 .three-lines-drawer {
  border: 1.5px solid rgba(15, 20, 25, 0.28) !important;
  box-shadow: -18px 0 54px rgba(15, 20, 25, 0.24) !important;
}

html[data-uae-national-day="active"][data-theme="dark"] body .three-lines-drawer,
html[data-uae-national-day="active"][data-theme="dark"] body.home-sovereign-v4 .three-lines-drawer {
  border: 1.5px solid rgba(255, 255, 255, 0.24) !important;
  box-shadow: -18px 0 54px rgba(0, 0, 0, 0.65) !important;
}

html[data-uae-national-day="active"] body .three-lines-drawer::before,
html[data-uae-national-day="active"] body.home-sovereign-v4 .three-lines-drawer::before {
  background: var(--uae-flag-grad) !important;
  height: 4px !important;
}

html[data-uae-national-day="active"] body .three-lines-drawer .drawer-header,
html[data-uae-national-day="active"] body.home-sovereign-v4 .three-lines-drawer .drawer-header {
  border-bottom: 1.5px solid rgba(15, 20, 25, 0.12) !important;
}

html[data-uae-national-day="active"][data-theme="dark"] body .three-lines-drawer .drawer-header,
html[data-uae-national-day="active"][data-theme="dark"] body.home-sovereign-v4 .three-lines-drawer .drawer-header {
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.12) !important;
}

html[data-uae-national-day="active"] .three-lines-drawer .drawer-logo-img,
html[data-uae-national-day="active"] body.home-sovereign-v4 .three-lines-drawer .drawer-logo-img {
  border: 1.5px solid rgba(0, 115, 47, 0.42) !important;
  box-shadow: 0 4px 12px rgba(15, 20, 25, 0.12) !important;
}

/* Drawer Quick Destinations active item — Emerald + White/Black instead of Amber/Gold */
html[data-uae-national-day="active"][data-theme="light"] .bm-drawer-nav-link:nth-child(4n+1) { border-left: 3.5px solid #00732f !important; }
html[data-uae-national-day="active"][data-theme="light"] .bm-drawer-nav-link:nth-child(4n+2) { border-left: 3.5px solid #ce1126 !important; }
html[data-uae-national-day="active"][data-theme="light"] .bm-drawer-nav-link:nth-child(4n+3) { border-left: 3.5px solid #0f1419 !important; }
html[data-uae-national-day="active"][data-theme="light"] .bm-drawer-nav-link:nth-child(4n+4) { border-left: 4px solid #ffffff !important; }

html[data-uae-national-day="active"][data-theme="dark"] .bm-drawer-nav-link:nth-child(4n+1) { border-left: 3.5px solid #10b981 !important; }
html[data-uae-national-day="active"][data-theme="dark"] .bm-drawer-nav-link:nth-child(4n+2) { border-left: 3.5px solid #ce1126 !important; }
html[data-uae-national-day="active"][data-theme="dark"] .bm-drawer-nav-link:nth-child(4n+3) { border-left: 3.5px solid #000000 !important; }
html[data-uae-national-day="active"][data-theme="dark"] .bm-drawer-nav-link:nth-child(4n+4) { border-left: 3.5px solid #ffffff !important; }

html[data-uae-national-day="active"][data-theme="light"] .bm-drawer-nav-link:hover,
html[data-uae-national-day="active"][data-theme="dark"] .bm-drawer-nav-link:hover {
  border-color: rgba(0, 115, 47, 0.65) !important;
}

html[data-uae-national-day="active"][data-theme="light"] .bm-drawer-nav-link[aria-current="page"] {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
  color: #064e3b !important;
  border-color: #00732f !important;
  box-shadow: 0 6px 16px rgba(0, 115, 47, 0.16) !important;
}

html[data-uae-national-day="active"][data-theme="dark"] .bm-drawer-nav-link[aria-current="page"] {
  background: linear-gradient(135deg, rgba(0, 115, 47, 0.36) 0%, rgba(15, 20, 25, 0.85) 100%) !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
  box-shadow: 0 6px 18px rgba(0, 115, 47, 0.28) !important;
}

/* Official WhatsApp CTA in Drawer — Emerald Green instead of Gold */
html[data-uae-national-day="active"][data-theme] body .three-lines-drawer .drawer-big-wa-btn,
html[data-uae-national-day="active"][data-theme] body.home-sovereign-v4 .three-lines-drawer .drawer-big-wa-btn {
  background: linear-gradient(135deg, #00732f 0%, #059669 100%) !important;
  border: 1.5px solid rgba(15, 20, 25, 0.32) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(0, 115, 47, 0.26) !important;
}

html[data-uae-national-day="active"][data-theme="dark"] body .three-lines-drawer .drawer-big-wa-btn,
html[data-uae-national-day="active"][data-theme="dark"] body.home-sovereign-v4 .three-lines-drawer .drawer-big-wa-btn {
  border-color: rgba(255, 255, 255, 0.36) !important;
}

html[data-uae-national-day="active"][data-theme] body .three-lines-drawer .drawer-big-wa-btn *,
html[data-uae-national-day="active"][data-theme] body.home-sovereign-v4 .three-lines-drawer .drawer-big-wa-btn * {
  color: #ffffff !important;
}

/* Drawer Pillar Cards: 1 (.indigo) = Green, 2 (.teal) = Red, 3 (.amber) = Black */
html[data-uae-national-day="active"][data-theme="light"] body .three-lines-drawer .drawer-pillar-card.indigo,
html[data-uae-national-day="active"][data-theme="light"] body.home-sovereign-v4 .three-lines-drawer .drawer-pillar-card.indigo {
  background: linear-gradient(150deg, #eef6f2 0%, #dcf4e7 100%) !important;
  border: 1.5px solid rgba(0, 115, 47, 0.36) !important;
  border-inline-start: 4.5px solid #00732f !important;
}

html[data-uae-national-day="active"][data-theme="light"] body .three-lines-drawer .drawer-pillar-card.teal,
html[data-uae-national-day="active"][data-theme="light"] body.home-sovereign-v4 .three-lines-drawer .drawer-pillar-card.teal {
  background: linear-gradient(150deg, #f8eff1 0%, #fbdce0 100%) !important;
  border: 1.5px solid rgba(206, 17, 38, 0.32) !important;
  border-inline-start: 4.5px solid #ce1126 !important;
}

html[data-uae-national-day="active"][data-theme="light"] body .three-lines-drawer .drawer-pillar-card.amber,
html[data-uae-national-day="active"][data-theme="light"] body.home-sovereign-v4 .three-lines-drawer .drawer-pillar-card.amber {
  background: linear-gradient(150deg, #e7ecf2 0%, #cfd8e3 100%) !important;
  border: 1.5px solid rgba(15, 20, 25, 0.56) !important;
  border-inline-start: 4.5px solid #0f1419 !important;
}

html[data-uae-national-day="active"][data-theme="dark"] body .three-lines-drawer .drawer-pillar-card.indigo,
html[data-uae-national-day="active"][data-theme="dark"] body.home-sovereign-v4 .three-lines-drawer .drawer-pillar-card.indigo {
  background: linear-gradient(150deg, rgba(6, 32, 20, 0.92) 0%, rgba(10, 14, 22, 0.96) 100%) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.38) !important;
  border-inline-start: 4.5px solid #10b981 !important;
}

html[data-uae-national-day="active"][data-theme="dark"] body .three-lines-drawer .drawer-pillar-card.teal,
html[data-uae-national-day="active"][data-theme="dark"] body.home-sovereign-v4 .three-lines-drawer .drawer-pillar-card.teal {
  background: linear-gradient(150deg, rgba(44, 10, 18, 0.90) 0%, rgba(10, 14, 22, 0.96) 100%) !important;
  border: 1.5px solid rgba(206, 17, 38, 0.42) !important;
  border-inline-start: 4.5px solid #ce1126 !important;
}

html[data-uae-national-day="active"][data-theme="dark"] body .three-lines-drawer .drawer-pillar-card.amber,
html[data-uae-national-day="active"][data-theme="dark"] body.home-sovereign-v4 .three-lines-drawer .drawer-pillar-card.amber {
  background: linear-gradient(150deg, #030407 0%, #0b0f16 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.24) !important;
  border-inline-start: 4.5px solid #000000 !important;
}

/* Pillar Main CTA Button & Sublink Pills — Clean UAE Colors (Zero Gold) */
html[data-uae-national-day="active"][data-theme] body .three-lines-drawer .drawer-pillar-main-btn,
html[data-uae-national-day="active"][data-theme] body.home-sovereign-v4 .three-lines-drawer .drawer-pillar-main-btn {
  background: #0f1419 !important;
  border: 1px solid rgba(15, 20, 25, 0.55) !important;
  color: #ffffff !important;
}

html[data-uae-national-day="active"][data-theme="dark"] body .three-lines-drawer .drawer-pillar-main-btn,
html[data-uae-national-day="active"][data-theme="dark"] body.home-sovereign-v4 .three-lines-drawer .drawer-pillar-main-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.26) !important;
  color: #ffffff !important;
}

html[data-uae-national-day="active"][data-theme] body .three-lines-drawer .drawer-pillar-main-btn.indigo { border-color: #00732f !important; }
html[data-uae-national-day="active"][data-theme] body .three-lines-drawer .drawer-pillar-main-btn.teal { border-color: #ce1126 !important; }

html[data-uae-national-day="active"][data-theme] body .three-lines-drawer .drawer-pillar-main-btn *,
html[data-uae-national-day="active"][data-theme] body.home-sovereign-v4 .three-lines-drawer .drawer-pillar-main-btn * {
  color: #ffffff !important;
}

html[data-uae-national-day="active"][data-theme="light"] body .three-lines-drawer .drawer-pillar-card .drawer-sublink-pill,
html[data-uae-national-day="active"][data-theme="light"] body.home-sovereign-v4 .three-lines-drawer .drawer-pillar-card .drawer-sublink-pill {
  background: rgba(15, 20, 25, 0.05) !important;
  border: 1px solid rgba(15, 20, 25, 0.22) !important;
  color: #0f1419 !important;
}

html[data-uae-national-day="active"][data-theme="dark"] body .three-lines-drawer .drawer-pillar-card .drawer-sublink-pill,
html[data-uae-national-day="active"][data-theme="dark"] body.home-sovereign-v4 .three-lines-drawer .drawer-pillar-card .drawer-sublink-pill {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #f8fafc !important;
}

html[data-uae-national-day="active"][data-theme] body .three-lines-drawer .drawer-pillar-icon,
html[data-uae-national-day="active"][data-theme] body.home-sovereign-v4 .three-lines-drawer .drawer-pillar-icon {
  border-color: rgba(255, 255, 255, 0.24) !important;
  color: #ffffff !important;
}

html[data-uae-national-day="active"][data-theme] body .three-lines-drawer .drawer-portals-section,
html[data-uae-national-day="active"][data-theme] body.home-sovereign-v4 .three-lines-drawer .drawer-portals-section {
  border-top: 1.5px solid rgba(15, 20, 25, 0.16) !important;
}

html[data-uae-national-day="active"][data-theme="dark"] body .three-lines-drawer .drawer-portals-section,
html[data-uae-national-day="active"][data-theme="dark"] body.home-sovereign-v4 .three-lines-drawer .drawer-portals-section {
  border-top: 1.5px solid rgba(255, 255, 255, 0.16) !important;
}

html[data-uae-national-day="active"][data-theme] body .three-lines-drawer .drawer-portals-section > div:first-child,
html[data-uae-national-day="active"][data-theme] body.home-sovereign-v4 .three-lines-drawer .drawer-portals-section > div:first-child {
  color: #00732f !important;
}

html[data-uae-national-day="active"][data-theme="dark"] body .three-lines-drawer .drawer-portals-section > div:first-child,
html[data-uae-national-day="active"][data-theme="dark"] body.home-sovereign-v4 .three-lines-drawer .drawer-portals-section > div:first-child {
  color: #34d399 !important;
}

/* Drawer UAE National Day Card */
#uaeDrawerBanner {
  flex-shrink: 0 !important;
  padding: 10px 14px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, rgba(0, 115, 47, 0.11) 0%, rgba(15, 20, 25, 0.05) 50%, rgba(206, 17, 38, 0.09) 100%);
  border: 1px solid rgba(15, 20, 25, 0.22);
  display: flex;
  align-items: center;
  gap: 12px;
}

html[data-theme="dark"] #uaeDrawerBanner {
  background: linear-gradient(125deg, rgba(0, 115, 47, 0.24) 0%, rgba(10, 14, 20, 0.72) 50%, rgba(206, 17, 38, 0.20) 100%);
  border-color: rgba(255, 255, 255, 0.28);
}

#uaeDrawerBanner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: var(--uae-flag-grad);
}

/* Full Footer UAE Celebration Surface & 7-Emirates Tribute (Zero Gold) */
html[data-uae-national-day="active"] .site-footer {
  position: relative;
  background:
    radial-gradient(ellipse 70% 60% at 15% 20%, rgba(0, 115, 47, 0.10), transparent 65%),
    radial-gradient(ellipse 70% 60% at 85% 80%, rgba(206, 17, 38, 0.08), transparent 65%),
    linear-gradient(180deg, rgba(244, 249, 245, 0.96) 0%, rgba(252, 247, 247, 0.98) 100%) !important;
  border-top: 3.5px solid #00732f !important;
}

html[data-uae-national-day="active"][data-theme="dark"] .site-footer {
  background:
    radial-gradient(ellipse 70% 60% at 15% 20%, rgba(0, 115, 47, 0.24), transparent 65%),
    radial-gradient(ellipse 70% 60% at 85% 80%, rgba(206, 17, 38, 0.18), transparent 65%),
    linear-gradient(180deg, #070d12 0%, #04060a 100%) !important;
  border-top: 3.5px solid rgba(255, 255, 255, 0.34) !important;
}

#uaeFooterTribute {
  margin-top: 26px;
  padding: 18px 22px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.94) 0%, rgba(236, 253, 245, 0.92) 55%, rgba(254, 242, 242, 0.92) 100%);
  border: 1.5px solid rgba(15, 20, 25, 0.24);
  color: #0f172a;
}

html[data-theme="dark"] #uaeFooterTribute {
  background: linear-gradient(120deg, rgba(8, 28, 20, 0.92) 0%, rgba(10, 14, 20, 0.95) 55%, rgba(42, 10, 18, 0.92) 100%);
  border-color: rgba(255, 255, 255, 0.28);
  color: #f8fafc;
}

#uaeFooterTribute::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: var(--uae-flag-grad);
}

.uae-emirates-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.uae-emirate-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
}

.uae-emirate-chip:nth-child(4n+1) {
  background: rgba(0, 115, 47, 0.12);
  color: #006629;
  border: 1px solid rgba(0, 115, 47, 0.30);
}
.uae-emirate-chip:nth-child(4n+2) {
  background: rgba(206, 17, 38, 0.10);
  color: #b91c1c;
  border: 1px solid rgba(206, 17, 38, 0.26);
}
.uae-emirate-chip:nth-child(4n+3) {
  background: #0f1419;
  color: #ffffff;
  border: 1px solid #0f1419;
}
.uae-emirate-chip:nth-child(4n+4) {
  background: #e2e8f0;
  color: #0f172a;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.18);
}

html[data-theme="dark"] .uae-emirate-chip:nth-child(4n+1) {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.36);
}
html[data-theme="dark"] .uae-emirate-chip:nth-child(4n+2) {
  background: rgba(206, 17, 38, 0.20);
  color: #fda4af;
  border-color: rgba(206, 17, 38, 0.42);
}
html[data-theme="dark"] .uae-emirate-chip:nth-child(4n+3) {
  background: #05070a;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.30);
}
html[data-theme="dark"] .uae-emirate-chip:nth-child(4n+4) {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
}

@media (max-width: 768px) {
  .uae-page-banner {
    padding: 11px 13px;
    gap: 8px;
  }
  .uae-banner-title {
    font-size: 13px;
  }
  .uae-banner-sub {
    font-size: 11px;
  }
}

body.pos-experience-mode .uae-page-banner {
  margin: 0 !important;
  border-radius: 0 !important;
  padding: 6px 14px !important;
}

/* --------------------------------------------------------------------------
   8. AREA-TAILORED MULTI-FONT TYPOGRAPHY SYSTEM (EN + MULTI-ROLE ARABIC)
   - Display Hero & Main Titles (AR): Alexandria (Sculpted Architectural Display)
   - Cards, Navigation & Buttons (AR): Readex Pro (Clean Emirati Modern UI)
   - Body Paragraphs & Descriptions (AR): IBM Plex Sans Arabic (High-Legibility Reading)
   - Badges, Eyebrows & Pills (AR): Tajawal (Crisp Small-Scale Glyph Balance)
   - Never apply letter-spacing on Arabic ligatures
   -------------------------------------------------------------------------- */
body :is(
  h1, h2,
  .hv4-hero-title, .hv4-section-title, .hv4-seal-title,
  .studio-hero-title, .pos-hero-title, .dash-hero-title, .dpr-title,
  .uae-opening-title
) {
  font-family: 'Outfit', 'Space Grotesk', 'Alexandria', sans-serif !important;
}

body :is(
  h3, h4,
  .hv4-mosaic-title, .hv4-div-title, .hv4-hub-name, .hv4-founder-name,
  .drawer-title, .bm-drawer-nav-title, .uae-banner-title
) {
  font-family: 'Outfit', 'Space Grotesk', 'Readex Pro', 'Alexandria', sans-serif !important;
}

/* ARABIC AREA 1: Hero Display Headlines & Eid Al Etihad Feature Titles -> Alexandria */
html[lang="ar"] body :is(
  h1, h2,
  .hv4-hero-title, .hv4-section-title, .hv4-seal-title,
  .studio-hero-title, .pos-hero-title, .dash-hero-title, .dpr-title,
  .uae-opening-title, .uae-opening-ar
),
html[dir="rtl"] body :is(
  h1, h2,
  .hv4-hero-title, .hv4-section-title, .hv4-seal-title,
  .studio-hero-title, .pos-hero-title, .dash-hero-title, .dpr-title,
  .uae-opening-title, .uae-opening-ar
) {
  font-family: 'Alexandria', 'Readex Pro', sans-serif !important;
  letter-spacing: 0 !important;
  line-height: 1.32 !important;
}

/* ARABIC AREA 2: Card Headings, Nav Bar, Drawer Items & CTAs -> Readex Pro */
html[lang="ar"] body :is(
  h3, h4,
  .nav-pill, .drawer-title, .bm-drawer-nav-title, .uae-banner-title,
  .hv4-mosaic-title, .hv4-div-title, .hv4-hub-name, .hv4-founder-name,
  .hv4-btn-sovereign, .btn-hero-primary, .studio-btn-primary, .btn-exec-primary,
  .hv4-founder-cta-btn, .drawer-big-wa-btn, .drawer-pillar-main-btn, .uae-enter-btn, button
),
html[dir="rtl"] body :is(
  h3, h4,
  .nav-pill, .drawer-title, .bm-drawer-nav-title, .uae-banner-title,
  .hv4-mosaic-title, .hv4-div-title, .hv4-hub-name, .hv4-founder-name,
  .hv4-btn-sovereign, .btn-hero-primary, .studio-btn-primary, .btn-exec-primary,
  .hv4-founder-cta-btn, .drawer-big-wa-btn, .drawer-pillar-main-btn, .uae-enter-btn, button
) {
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif !important;
  letter-spacing: 0 !important;
}

/* ARABIC AREA 3: Paragraphs, Card Subtitles, Descriptions & Forms -> IBM Plex Sans Arabic */
html[lang="ar"] body :is(
  p, li, td, th, label, input, textarea, select,
  .hv4-hero-sub, .hv4-section-sub, .hv4-mosaic-sub, .hv4-div-desc,
  .uae-banner-sub, .uae-opening-sub, .drawer-subtitle, .bm-drawer-nav-sub,
  .drawer-pillar-desc, .drawer-big-wa-sub
),
html[dir="rtl"] body :is(
  p, li, td, th, label, input, textarea, select,
  .hv4-hero-sub, .hv4-section-sub, .hv4-mosaic-sub, .hv4-div-desc,
  .uae-banner-sub, .uae-opening-sub, .drawer-subtitle, .bm-drawer-nav-sub,
  .drawer-pillar-desc, .drawer-big-wa-sub
) {
  font-family: 'IBM Plex Sans Arabic', 'Readex Pro', sans-serif !important;
  letter-spacing: 0 !important;
  line-height: 1.72 !important;
}

/* ARABIC AREA 4: Badges, Eyebrows, Micro-Tags & Footer Chips -> Tajawal */
html[lang="ar"] body :is(
  .hv4-kicker, .hv4-sovereign-pill, .hv4-founder-kicker,
  .hv4-mosaic-eyebrow, .hv4-mono-label, .hv4-monolith-tag,
  .uae-opening-kicker, .uae-date-badge, .uae-emirate-chip,
  .drawer-sublink-pill, .bm-drawer-nav-label, .animated-brand-live-pill
),
html[dir="rtl"] body :is(
  .hv4-kicker, .hv4-sovereign-pill, .hv4-founder-kicker,
  .hv4-mosaic-eyebrow, .hv4-mono-label, .hv4-monolith-tag,
  .uae-opening-kicker, .uae-date-badge, .uae-emirate-chip,
  .drawer-sublink-pill, .bm-drawer-nav-label, .animated-brand-live-pill
) {
  font-family: 'Tajawal', 'Readex Pro', sans-serif !important;
  letter-spacing: 0 !important;
}

/* Tabular numeric clarity & icon preservation */
html[lang="ar"] body :is(.hv4-mono-val, .terminal-clock, .kpi-value, code),
html[dir="rtl"] body :is(.hv4-mono-val, .terminal-clock, .kpi-value, code) {
  font-family: 'JetBrains Mono', 'IBM Plex Sans Arabic', monospace !important;
  font-variant-numeric: tabular-nums;
}

body .material-symbols-rounded {
  font-family: 'Material Symbols Rounded' !important;
}

#uaeDrawerBanner,
#uaeFooterTribute {
  font-family: 'Outfit', 'Space Grotesk', 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
}
