/* ==========================================================================
   B-MAGNET INTERNATIONAL — SOVEREIGN GOLD & ROYAL JEWEL GLOBAL DESIGN SYSTEM
   Refined Architectural Luxury:
   - Pure golden outerlines ONLY on suitable primary & flagship panels
   - Zero golden borders on corporate logos, small chips, inputs, or inner cells
   - Zero extra color border stripes colliding with golden outerlines
   - Vibrant jewel color lives cleanly in icons, badges, typography & silk glows
   - Floating Golden Three-Line Menu + Slight Page Dim + GPU Motion across all 6 pages
   ========================================================================== */

/* Global zero-delay tap highlight elimination (fixes blue mobile mark on all clicks/taps) */
*, *::before, *::after {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

:root {
  --sg-display: 'Space Grotesk', 'Plus Jakarta Sans', 'Inter', sans-serif;
  --sg-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --sg-mono: 'JetBrains Mono', monospace;
  --sg-arabic: 'Alexandria', 'Readex Pro', 'Cairo', sans-serif;

  /* Royal Jewel Chromatic Accents (for icons, badges, headings & ambient silk) */
  --sg-jewel-sapphire: #2563eb;
  --sg-jewel-emerald: #059669;
  --sg-jewel-teal: #04a8a9;
  --sg-jewel-violet: #7c3aed;
  --sg-jewel-ruby: #e11d48;
  --sg-jewel-amber: #d97706;
  --sg-jewel-cyan: #0891b2;
}

/* Light Mode Tokens — Warm Sovereign Ivory, Burnished Gold & Clean Neutral Hairlines */
html[data-theme="light"] {
  color-scheme: light;
  --sg-bg: #f6f3ec;
  --sg-bg-soft: #efeae0;
  --sg-surface: rgba(255, 253, 248, 0.90);
  --sg-surface-solid: #fffdf9;
  --sg-surface-tint: rgba(247, 240, 226, 0.84);
  --sg-monolith: #0b1120;
  --sg-monolith-2: #15203a;
  --sg-ink: #0f172a;
  --sg-ink-2: #334155;
  --sg-muted: #5b667a;
  --sg-gold: #a6741b;
  --sg-gold-bright: #d4a24c;
  --sg-gold-outline: rgba(196, 144, 44, 0.65);
  --sg-gold-outline-strong: #c89632;
  --sg-gold-soft: rgba(212, 162, 76, 0.13);
  --sg-neutral-border: rgba(15, 23, 42, 0.11);
}

/* Dark Mode Tokens — Velvet Midnight Noir, Champagne Gold & Clean Neutral Hairlines */
html[data-theme="dark"] {
  color-scheme: dark;
  --sg-bg: #070910;
  --sg-bg-soft: #0d1220;
  --sg-surface: rgba(14, 20, 35, 0.88);
  --sg-surface-solid: #101729;
  --sg-surface-tint: rgba(20, 28, 48, 0.85);
  --sg-monolith: #0b1120;
  --sg-monolith-2: #16213d;
  --sg-ink: #f8f5ee;
  --sg-ink-2: #cbd5e1;
  --sg-muted: #94a3b8;
  --sg-gold: #e5b963;
  --sg-gold-bright: #f5d896;
  --sg-gold-outline: rgba(229, 185, 99, 0.62);
  --sg-gold-outline-strong: #e5b963;
  --sg-gold-soft: rgba(229, 185, 99, 0.14);
  --sg-neutral-border: rgba(248, 245, 238, 0.12);

  --sg-jewel-sapphire: #60a5fa;
  --sg-jewel-emerald: #34d399;
  --sg-jewel-teal: #2dd4bf;
  --sg-jewel-violet: #a78bfa;
  --sg-jewel-ruby: #fb7185;
  --sg-jewel-amber: #fbbf24;
  --sg-jewel-cyan: #22d3ee;
}

/* ==========================================================================
   1. UNIVERSAL CLEAN MULTI-CHROMATIC SILK BACKGROUND (ZERO BOX GRID / SHADOWS)
   ========================================================================== */
html[data-theme="light"] body,
html[data-theme="dark"] body {
  background-color: var(--sg-bg) !important;
  color: var(--sg-ink) !important;
}

body::before,
body::after {
  background-image: none !important;
  opacity: 0 !important;
  content: none !important;
}

.cyber-circuit-bg-layer {
  background-color: var(--sg-bg) !important;
  background-image:
    radial-gradient(ellipse 56% 42% at 88% 8%, rgba(212, 162, 76, 0.18) 0%, transparent 62%),
    radial-gradient(ellipse 50% 42% at 10% 18%, rgba(37, 99, 235, 0.11) 0%, transparent 64%),
    radial-gradient(ellipse 46% 38% at 84% 48%, rgba(225, 29, 72, 0.08) 0%, transparent 64%),
    radial-gradient(ellipse 52% 42% at 14% 68%, rgba(4, 168, 169, 0.11) 0%, transparent 64%),
    radial-gradient(ellipse 48% 40% at 78% 88%, rgba(124, 58, 237, 0.09) 0%, transparent 64%) !important;
  background-size: 100% 100% !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

html[data-theme="dark"] .cyber-circuit-bg-layer {
  background-image:
    radial-gradient(ellipse 56% 42% at 86% 8%, rgba(229, 185, 99, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 52% 44% at 10% 22%, rgba(59, 130, 246, 0.15) 0%, transparent 62%),
    radial-gradient(ellipse 46% 38% at 86% 52%, rgba(244, 63, 94, 0.10) 0%, transparent 62%),
    radial-gradient(ellipse 50% 42% at 14% 72%, rgba(20, 184, 166, 0.12) 0%, transparent 64%),
    radial-gradient(ellipse 48% 40% at 76% 88%, rgba(139, 92, 246, 0.12) 0%, transparent 64%) !important;
}

.cyber-circuit-bg-layer::before {
  opacity: 0.028 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .cyber-circuit-bg-layer::before {
  opacity: 0.044 !important;
  box-shadow: none !important;
}

.cyber-circuit-bg-layer .cyber-circuit-corner {
  display: none !important;
}

/* Breathing Ambient Silk Motion Layer (Compositor-Only Transform) */
.sg-ambient-orbs {
  position: fixed;
  inset: -12%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.sg-ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.30;
  will-change: transform;
}

html[data-theme="dark"] .sg-ambient-orb { opacity: 0.22; }

.sg-orb-gold {
  width: 420px; height: 420px; top: 4%; right: 6%;
  background: radial-gradient(circle, rgba(212, 162, 76, 0.55), transparent 70%);
}
.sg-orb-sapphire {
  width: 380px; height: 380px; top: 32%; left: 2%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.42), transparent 70%);
}
.sg-orb-rose {
  width: 340px; height: 340px; bottom: 14%; right: 14%;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.32), transparent 70%);
}
.sg-orb-emerald {
  width: 360px; height: 360px; bottom: 8%; left: 16%;
  background: radial-gradient(circle, rgba(4, 168, 169, 0.38), transparent 70%);
}

/* ==========================================================================
   2. TOP PURE METALLIC GOLD READING PROGRESS RIBBON
   ========================================================================== */
#sgScrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 3000;
  pointer-events: none;
  background: linear-gradient(90deg, #a6741b 0%, #f5d896 45%, #d4a24c 75%, #f5d896 100%);
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

html[dir="rtl"] #sgScrollProgress {
  transform-origin: right center;
}

/* ==========================================================================
   3. FULLY TRANSPARENT LIQUID GLASS TOP DOCK (PURE GOLD OUTERLINE)
      + ROYAL GOLD MEDALLION 3-LINE BUTTON (ALL 6 PAGES)
   ========================================================================== */
html[data-theme] body .site-header {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}

html[data-theme="light"] body .site-header .nav-inner {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.20) 0%,
    rgba(255, 253, 248, 0.08) 52%,
    rgba(255, 255, 255, 0.16) 100%
  ) !important;
  backdrop-filter: blur(22px) saturate(190%) brightness(1.04) !important;
  -webkit-backdrop-filter: blur(22px) saturate(190%) brightness(1.04) !important;
  border: 1.5px solid rgba(200, 150, 50, 0.72) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(200, 150, 50, 0.18) !important;
}

html[data-theme="dark"] body .site-header .nav-inner {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(11, 16, 30, 0.14) 52%,
    rgba(255, 255, 255, 0.05) 100%
  ) !important;
  backdrop-filter: blur(24px) saturate(200%) brightness(1.08) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) brightness(1.08) !important;
  border: 1.5px solid rgba(229, 185, 99, 0.68) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(229, 185, 99, 0.16) !important;
}

/* Crystal-clear liquid glass inner nav pills & control buttons */
html[data-theme="light"] body .site-header .site-nav-link,
html[data-theme="light"] body .site-header .dpr-dock-icon-link {
  background: rgba(255, 255, 255, 0.24) !important;
  border: 1px solid rgba(255, 255, 255, 0.56) !important;
  color: #0f172a !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
}

html[data-theme="light"] body .site-header .site-nav-link .material-symbols-rounded,
html[data-theme="light"] body .site-header .dpr-dock-icon-link .material-symbols-rounded { color: #a6741b !important; }
html[data-theme="light"] body .site-header .site-nav-link:nth-child(2) .material-symbols-rounded { color: #2563eb !important; }
html[data-theme="light"] body .site-header .site-nav-link:nth-child(3) .material-symbols-rounded { color: #059669 !important; }
html[data-theme="light"] body .site-header .site-nav-link:nth-child(4) .material-symbols-rounded { color: #7c3aed !important; }
html[data-theme="light"] body .site-header .site-nav-link:nth-child(5) .material-symbols-rounded { color: #e11d48 !important; }

html[data-theme="light"] body .site-header .site-nav-link:hover,
html[data-theme="light"] body .site-header .dpr-dock-icon-link:hover {
  background: linear-gradient(135deg, #0b1120 0%, #192646 100%) !important;
  border-color: #c89632 !important;
  color: #f8f5ee !important;
  transform: translateY(-1.5px) !important;
}

html[data-theme="light"] body .site-header .site-nav-link:hover *,
html[data-theme="light"] body .site-header .dpr-dock-icon-link:hover * {
  color: #f5d896 !important;
}

html[data-theme="dark"] body .site-header .site-nav-link,
html[data-theme="dark"] body .site-header .dpr-dock-icon-link {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f8f5ee !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease !important;
}

html[data-theme="dark"] body .site-header .site-nav-link .material-symbols-rounded,
html[data-theme="dark"] body .site-header .dpr-dock-icon-link .material-symbols-rounded { color: #f2cf84 !important; }
html[data-theme="dark"] body .site-header .site-nav-link:nth-child(2) .material-symbols-rounded { color: #60a5fa !important; }
html[data-theme="dark"] body .site-header .site-nav-link:nth-child(3) .material-symbols-rounded { color: #34d399 !important; }
html[data-theme="dark"] body .site-header .site-nav-link:nth-child(4) .material-symbols-rounded { color: #a78bfa !important; }
html[data-theme="dark"] body .site-header .site-nav-link:nth-child(5) .material-symbols-rounded { color: #fb7185 !important; }

html[data-theme="dark"] body .site-header .site-nav-link:hover,
html[data-theme="dark"] body .site-header .dpr-dock-icon-link:hover {
  background: rgba(229, 185, 99, 0.18) !important;
  border-color: #e5b963 !important;
  transform: translateY(-1.5px) !important;
}

html[data-theme="light"] body .nav-actions .btn-control {
  background: rgba(255, 255, 255, 0.24) !important;
  border: 1px solid rgba(255, 255, 255, 0.56) !important;
  color: #0f172a !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
}

html[data-theme="dark"] body .nav-actions .btn-control {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f8f5ee !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

.nav-actions .btn-control:hover {
  border-color: var(--sg-gold-outline-strong) !important;
  transform: translateY(-1.5px) scale(1.04) !important;
}

.btn-dpr-dock-download {
  background: linear-gradient(135deg, #e5b963 0%, #c69230 100%) !important;
  border: 1.5px solid #f5d896 !important;
  color: #070910 !important;
  box-shadow: none !important;
}
.btn-dpr-dock-download * { color: #070910 !important; }

/* ==========================================================================
   3B. TOP DOCK TWIN ROYAL GOLD MEDALLIONS:
       LEFT: Standalone Circular Button with ONLY 'b' Logo Emblem
       RIGHT: Standalone Circular Button with Three-Line Menu Bars
       BOTH SIDES: Live moving shine animation on golden perimeter
       LIGHT THEME: Light ivory face
       DARK THEME: Midnight obsidian face
   ========================================================================== */
@property --dock-gold-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes dockGoldShineSpin {
  0% {
    --dock-gold-angle: 0deg;
  }
  100% {
    --dock-gold-angle: 360deg;
  }
}

@keyframes dockGoldGlintPulseLight {
  0%, 100% {
    box-shadow: 0 4px 18px rgba(200, 150, 50, 0.20), 0 0 0 1px rgba(245, 216, 150, 0.35);
  }
  50% {
    box-shadow: 0 6px 26px rgba(200, 150, 50, 0.38), 0 0 0 1.5px rgba(255, 255, 255, 0.6);
  }
}

@keyframes dockGoldGlintPulseDark {
  0%, 100% {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(245, 216, 150, 0.30);
  }
  50% {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 0 1.5px rgba(245, 216, 150, 0.55);
  }
}

.site-header-dock-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  pointer-events: none !important;
}

.site-header-dock-wrap .nav-inner {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.brand-logo-circle.dock-separate-circle,
.btn-three-lines.dock-separate-circle {
  flex: 0 0 68px !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  width: 68px !important;
  min-width: 68px !important;
  max-width: 68px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative !important;
  text-decoration: none !important;
  border-bottom: none !important;
  border: 2.5px solid transparent !important;
  z-index: 10 !important;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s ease !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
  outline: none !important;
  -webkit-focus-ring-color: transparent !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-touch-callout: none !important;
}

.brand-logo-circle.dock-separate-circle:hover,
.brand-logo-circle.dock-separate-circle:focus,
.brand-logo-circle.dock-separate-circle:focus-visible,
.brand-logo-circle.dock-separate-circle:active,
.btn-three-lines.dock-separate-circle:hover,
.btn-three-lines.dock-separate-circle:focus,
.btn-three-lines.dock-separate-circle:focus-visible,
.btn-three-lines.dock-separate-circle:active {
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
  -webkit-focus-ring-color: transparent !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-touch-callout: none !important;
}

/* Light Theme: Light Ivory/White Circle + Moving Golden Line Shine */
html[data-theme="light"] body .btn-three-lines.dock-separate-circle,
html[data-theme="light"] body .brand-logo-circle.dock-separate-circle {
  background: 
    linear-gradient(145deg, #ffffff 0%, #f6f3ea 100%) padding-box,
    conic-gradient(from var(--dock-gold-angle, 0deg), #c89632 0deg, #e5b963 60deg, #ffffff 110deg, #fceda2 140deg, #c89632 200deg, #94691e 280deg, #c89632 360deg) border-box !important;
  box-shadow: 0 4px 18px rgba(200, 150, 50, 0.22), 0 0 0 1px rgba(245, 216, 150, 0.35) !important;
  animation: dockGoldShineSpin 4.5s linear infinite, dockGoldGlintPulseLight 3s ease-in-out infinite !important;
}

html[data-theme="light"] body .btn-three-lines.dock-separate-circle .three-lines-bars span {
  background: linear-gradient(90deg, #182544 0%, #0b1120 52%, #182544 100%) !important;
}

/* Dark Theme: Midnight Obsidian Circle + Moving Golden Line Shine */
html[data-theme="dark"] body .btn-three-lines.dock-separate-circle,
html[data-theme="dark"] body .brand-logo-circle.dock-separate-circle {
  background: 
    linear-gradient(145deg, #17223d 0%, #090e1c 100%) padding-box,
    conic-gradient(from var(--dock-gold-angle, 0deg), #e5b963 0deg, #f5d896 60deg, #ffffff 110deg, #fceda2 140deg, #e5b963 200deg, #8a5e14 280deg, #e5b963 360deg) border-box !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(245, 216, 150, 0.30) !important;
  animation: dockGoldShineSpin 4.5s linear infinite, dockGoldGlintPulseDark 3s ease-in-out infinite !important;
}

html[data-theme="dark"] body .btn-three-lines.dock-separate-circle .three-lines-bars span {
  background: linear-gradient(90deg, #f5d896 0%, #d4a24c 52%, #f5d896 100%) !important;
}

.btn-three-lines.dock-separate-circle:hover {
  transform: scale(1.05) !important;
}

.brand-logo-circle.dock-separate-circle:hover {
  transform: scale(1.05) !important;
  text-decoration: none !important;
}

.brand-logo-circle.dock-separate-circle .brand-circle-emblem {
  height: 38px !important;
  max-height: 38px !important;
  width: auto !important;
  max-width: 38px !important;
  object-fit: contain !important;
  display: block !important;
  filter: drop-shadow(0 2px 8px rgba(4, 168, 169, 0.35)) !important;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.brand-logo-circle.dock-separate-circle:hover .brand-circle-emblem {
  transform: scale(1.08) !important;
}

/* Central Long Liquid Glass Dock Wordmark (Cropped from Logo Image — Clear Spacing from Curved Edge) */
.brand-dock-wordmark {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  border: none !important;
  border-bottom: none !important;
  outline: none !important;
  flex-shrink: 0 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  margin-inline-start: 10px !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease !important;
  -webkit-tap-highlight-color: transparent !important;
}

.brand-dock-wordmark:hover {
  transform: scale(1.03) !important;
  text-decoration: none !important;
  border-bottom: none !important;
}

.brand-dock-wordmark-img {
  height: 44px !important;
  max-height: 44px !important;
  width: auto !important;
  max-width: 92px !important;
  object-fit: contain !important;
  display: block !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme="light"] body .brand-wordmark-dark {
  display: none !important;
}
html[data-theme="light"] body .brand-wordmark-light {
  display: block !important;
}
html[data-theme="dark"] body .brand-wordmark-light {
  display: none !important;
}
html[data-theme="dark"] body .brand-wordmark-dark {
  display: block !important;
}

/* Central Long Liquid Glass Dock Container & Uniform Action Buttons */
.site-header-dock-wrap .nav-inner {
  padding-inline-start: 22px !important;
  padding-inline-end: 14px !important;
}

.site-header-dock-wrap .nav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

/* UNIFORM 100% IDENTICAL BUTTONS IN THE LONG DOCK */
.site-header-dock-wrap .nav-actions .btn-control,
.site-header-dock-wrap .nav-actions .btn-icon-only,
.site-header-dock-wrap .nav-actions .btn-portal-trigger,
.site-header-dock-wrap .nav-actions button,
.site-header-dock-wrap .nav-actions .btn-control:has(#langToggleText),
.site-header-dock-wrap .nav-actions .btn-control:not(.btn-icon-only) {
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
  outline: none !important;
}

.site-header-dock-wrap .nav-actions .btn-control .material-symbols-rounded {
  font-size: 20px !important;
  line-height: 1 !important;
  display: inline-block !important;
}

.site-header-dock-wrap .nav-actions #langToggleText {
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0.5px !important;
  display: inline-block !important;
}

@media (max-width: 768px) {
  .site-header {
    top: 8px !important;
    padding: 0 8px !important;
  }
  .site-header-dock-wrap {
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .brand-logo-circle.dock-separate-circle,
  .btn-three-lines.dock-separate-circle {
    flex: 0 0 50px !important;
    flex-shrink: 0 !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
  }
  .brand-logo-circle.dock-separate-circle .brand-circle-emblem {
    height: 28px !important;
    max-height: 28px !important;
    max-width: 28px !important;
  }
  .btn-three-lines.dock-separate-circle .three-lines-bars {
    width: 18px !important;
    height: 14px !important;
  }
  .site-header-dock-wrap .nav-inner {
    padding-inline-start: 16px !important;
    padding-inline-end: 10px !important;
    gap: 8px !important;
    height: 50px !important;
    max-height: 50px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  .brand-dock-wordmark {
    margin-inline-start: 8px !important;
  }
  .brand-dock-wordmark-img {
    height: 30px !important;
    max-height: 30px !important;
    max-width: 66px !important;
  }
  .site-header-dock-wrap .nav-actions {
    gap: 6px !important;
  }
  .site-header-dock-wrap .nav-actions .btn-control,
  .site-header-dock-wrap .nav-actions .btn-icon-only,
  .site-header-dock-wrap .nav-actions .btn-portal-trigger,
  .site-header-dock-wrap .nav-actions button,
  .site-header-dock-wrap .nav-actions .btn-control:has(#langToggleText),
  .site-header-dock-wrap .nav-actions .btn-control:not(.btn-icon-only) {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
  }
  .site-header-dock-wrap .nav-actions .btn-control .material-symbols-rounded {
    font-size: 18px !important;
  }
  .site-header-dock-wrap .nav-actions #langToggleText {
    font-size: 11.5px !important;
  }
}

@media (max-width: 440px) {
  .site-header {
    padding: 0 4px !important;
  }
  .site-header-dock-wrap {
    gap: 4px !important;
  }
  .brand-logo-circle.dock-separate-circle,
  .btn-three-lines.dock-separate-circle {
    flex: 0 0 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
  }
  .brand-logo-circle.dock-separate-circle .brand-circle-emblem {
    height: 25px !important;
    max-height: 25px !important;
    max-width: 25px !important;
  }
  .btn-three-lines.dock-separate-circle .three-lines-bars {
    width: 17px !important;
    height: 12px !important;
  }
  .site-header-dock-wrap .nav-inner {
    padding-inline-start: 14px !important;
    padding-inline-end: 8px !important;
    height: 46px !important;
    max-height: 46px !important;
    gap: 6px !important;
  }
  .brand-dock-wordmark {
    margin-inline-start: 7px !important;
  }
  .brand-dock-wordmark-img {
    height: 26px !important;
    max-height: 26px !important;
    max-width: 56px !important;
  }
  .site-header-dock-wrap .nav-actions {
    gap: 5px !important;
  }
  .site-header-dock-wrap .nav-actions .btn-control,
  .site-header-dock-wrap .nav-actions .btn-icon-only,
  .site-header-dock-wrap .nav-actions .btn-portal-trigger,
  .site-header-dock-wrap .nav-actions button,
  .site-header-dock-wrap .nav-actions .btn-control:has(#langToggleText),
  .site-header-dock-wrap .nav-actions .btn-control:not(.btn-icon-only) {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
  }
  .site-header-dock-wrap .nav-actions .btn-control .material-symbols-rounded {
    font-size: 17px !important;
  }
  .site-header-dock-wrap .nav-actions #langToggleText {
    font-size: 11px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo-circle.dock-separate-circle,
  .btn-three-lines.dock-separate-circle {
    animation: none !important;
  }
}

html[dir="rtl"] .brand-logo-circle,
html[lang="ar"] .brand-logo-circle,
html[dir="rtl"] .brand-dock-wordmark,
html[lang="ar"] .brand-dock-wordmark {
  direction: ltr !important;
  text-align: left !important;
}

body.three-lines-menu-open .btn-three-lines.dock-separate-circle {
  background: 
    linear-gradient(135deg, #e5b963 0%, #b58124 100%) padding-box,
    conic-gradient(from var(--dock-gold-angle, 0deg), #f5d896, #ffffff, #f5d896) border-box !important;
}

.btn-three-lines.dock-separate-circle .three-lines-bars {
  width: 24px !important;
  height: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
}

.btn-three-lines.dock-separate-circle .three-lines-bars span {
  height: 2.5px !important;
  border-radius: 999px !important;
  transition: width 0.24s cubic-bezier(0.16, 1, 0.3, 1), background 0.24s ease !important;
}

.btn-three-lines.dock-separate-circle .three-lines-bars span:nth-child(1) { width: 100% !important; }
.btn-three-lines.dock-separate-circle .three-lines-bars span:nth-child(2) { width: 68% !important; }
.btn-three-lines.dock-separate-circle .three-lines-bars span:nth-child(3) { width: 84% !important; }
.btn-three-lines.dock-separate-circle:hover .three-lines-bars span { width: 100% !important; }
body.three-lines-menu-open .btn-three-lines.dock-separate-circle .three-lines-bars span { background: #0b1120 !important; width: 100% !important; }

/* ==========================================================================
   4. FLOATING PURE GOLDEN THREE-LINE MENU PANEL + SLIGHT PAGE DIMMING
      Pure metallic gold outer frame & crown (no competing side-color stripes)
      Clean jewel icon medallions inside for refined colorful hierarchy
   ========================================================================== */
main,
.site-header,
.site-footer {
  transition: filter 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

body.three-lines-menu-open main,
body.three-lines-menu-open .site-header,
body.three-lines-menu-open .site-footer {
  filter: brightness(0.84) saturate(0.92);
}

.three-lines-drawer-backdrop {
  background: rgba(11, 17, 32, 0.26) !important;
  backdrop-filter: blur(2.5px) !important;
  -webkit-backdrop-filter: blur(2.5px) !important;
}

html[data-theme="dark"] .three-lines-drawer-backdrop {
  background: rgba(3, 5, 11, 0.42) !important;
  backdrop-filter: blur(2.5px) !important;
  -webkit-backdrop-filter: blur(2.5px) !important;
}

html[data-theme="light"] body .three-lines-drawer {
  top: 14px !important;
  right: 14px !important;
  bottom: 14px !important;
  left: auto !important;
  height: calc(100dvh - 28px) !important;
  width: min(468px, calc(100vw - 28px)) !important;
  border-radius: 26px !important;
  background: linear-gradient(170deg, #fffdf8 0%, #f5eee0 100%) !important;
  border: 2px solid #c89632 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

html[data-theme="dark"] body .three-lines-drawer {
  top: 14px !important;
  right: 14px !important;
  bottom: 14px !important;
  left: auto !important;
  height: calc(100dvh - 28px) !important;
  width: min(468px, calc(100vw - 28px)) !important;
  border-radius: 26px !important;
  background: linear-gradient(170deg, #0b101e 0%, #10182d 100%) !important;
  border: 2px solid #e5b963 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

html[dir="rtl"] body .three-lines-drawer {
  right: 14px !important;
  left: auto !important;
  border: 2px solid var(--sg-gold-outline-strong) !important;
  box-shadow: none !important;
}

/* Pure Metallic Gold Crown Stripe (zero rainbow clash) */
.three-lines-drawer::before {
  content: "";
  display: block;
  width: 100%;
  height: 3.5px;
  background: linear-gradient(90deg, #9f6d18 0%, #f5d896 32%, #d4a24c 55%, #f5d896 80%, #9f6d18 100%);
  flex-shrink: 0;
}

html[data-theme="light"] body .three-lines-drawer .drawer-header,
html[data-theme="dark"] body .three-lines-drawer .drawer-header {
  background: linear-gradient(135deg, #0b1120 0%, #16213c 100%) !important;
  border-bottom: 1.5px solid #d4a24c !important;
  padding: 18px 22px !important;
}

.three-lines-drawer .drawer-title { color: #ffffff !important; }
.three-lines-drawer .drawer-subtitle {
  color: #f2cf84 !important;
  font-family: var(--sg-mono);
  font-size: 11px !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.three-lines-drawer .drawer-close-btn {
  width: 38px !important;
  height: 38px !important;
  background: rgba(229, 185, 99, 0.14) !important;
  border: 1.5px solid #e5b963 !important;
  color: #f5d896 !important;
  box-shadow: none !important;
}

.three-lines-drawer .drawer-close-btn:hover {
  background: #e5b963 !important;
  border-color: #f5d896 !important;
  color: #0b1120 !important;
  box-shadow: none !important;
  transform: rotate(90deg) scale(1.06) !important;
}

.three-lines-drawer .drawer-body {
  padding: 18px 20px !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 150, 50, 0.55) transparent;
}

/* Gleaming Gold WhatsApp Desk Bar */
html[data-theme="light"] body .three-lines-drawer .drawer-big-wa-btn,
html[data-theme="dark"] body .three-lines-drawer .drawer-big-wa-btn {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 66px !important;
  height: auto !important;
  background: linear-gradient(135deg, #e5b963 0%, #c69230 100%) !important;
  border: 1.5px solid #f5d896 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  padding: 14px 16px !important;
  margin-bottom: 14px !important;
}

html[data-theme="light"] body .three-lines-drawer .drawer-big-wa-btn:hover,
html[data-theme="dark"] body .three-lines-drawer .drawer-big-wa-btn:hover {
  background: linear-gradient(135deg, #f2cf84 0%, #d4a24c 100%) !important;
  border-color: #fff3d1 !important;
  box-shadow: none !important;
  transform: translateY(-2px) !important;
}

html[data-theme="light"] body .three-lines-drawer .drawer-big-wa-icon,
html[data-theme="dark"] body .three-lines-drawer .drawer-big-wa-icon {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  border: none !important;
  color: #ffffff !important;
}

html[data-theme="light"] body .three-lines-drawer .drawer-big-wa-title,
html[data-theme="dark"] body .three-lines-drawer .drawer-big-wa-title { color: #070910 !important; font-weight: 900 !important; }
html[data-theme="light"] body .three-lines-drawer .drawer-big-wa-sub,
html[data-theme="dark"] body .three-lines-drawer .drawer-big-wa-sub { color: #1e293b !important; font-weight: 700 !important; }
html[data-theme="light"] body .three-lines-drawer .drawer-big-wa-btn > .material-symbols-rounded,
html[data-theme="dark"] body .three-lines-drawer .drawer-big-wa-btn > .material-symbols-rounded { color: #070910 !important; }

html[dir="rtl"] body .three-lines-drawer .drawer-big-wa-btn > .material-symbols-rounded:last-child {
  margin-left: 0 !important;
  margin-inline-start: auto !important;
}

/* Pure Golden-Outlined Pillar Cards inside Menu Panel (NO clashing side color bars) */
html[data-theme="light"] body .three-lines-drawer .drawer-pillar-card,
html[data-theme="light"] body .three-lines-drawer .drawer-pillar-card.indigo,
html[data-theme="light"] body .three-lines-drawer .drawer-pillar-card.teal,
html[data-theme="light"] body .three-lines-drawer .drawer-pillar-card.amber {
  background: #fffdf8 !important;
  border: 1.5px solid #c89632 !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  padding: 16px !important;
}

html[data-theme="dark"] body .three-lines-drawer .drawer-pillar-card,
html[data-theme="dark"] body .three-lines-drawer .drawer-pillar-card.indigo,
html[data-theme="dark"] body .three-lines-drawer .drawer-pillar-card.teal,
html[data-theme="dark"] body .three-lines-drawer .drawer-pillar-card.amber {
  background: rgba(16, 23, 40, 0.94) !important;
  border: 1.5px solid rgba(229, 185, 99, 0.62) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  padding: 16px !important;
}

/* Clean Vibrant Jewel Icon Medallions inside Drawer Cards (no noisy border clash) */
.three-lines-drawer .drawer-pillar-card.indigo .drawer-pillar-icon {
  background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.three-lines-drawer .drawer-pillar-card.teal .drawer-pillar-icon {
  background: linear-gradient(135deg, #04a8a9 0%, #059669 100%) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.three-lines-drawer .drawer-pillar-card.amber .drawer-pillar-icon {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

html[data-theme="light"] body .three-lines-drawer .drawer-pillar-card .drawer-pillar-name { color: #0b1120 !important; font-weight: 800 !important; }
html[data-theme="light"] body .three-lines-drawer .drawer-pillar-card .drawer-pillar-desc { color: #364152 !important; font-weight: 500 !important; }
html[data-theme="dark"] body .three-lines-drawer .drawer-pillar-card .drawer-pillar-name { color: #f8f5ee !important; font-weight: 800 !important; }
html[data-theme="dark"] body .three-lines-drawer .drawer-pillar-card .drawer-pillar-desc { color: #cbd5e1 !important; font-weight: 500 !important; }

html[data-theme="light"] body .three-lines-drawer .drawer-pillar-card .drawer-pillar-main-btn {
  background: linear-gradient(135deg, #0b1120 0%, #192544 100%) !important;
  border: 1px solid rgba(212, 162, 76, 0.55) !important;
  color: #f8f5ee !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

html[data-theme="light"] body .three-lines-drawer .drawer-pillar-card .drawer-pillar-main-btn .material-symbols-rounded { color: #f2cf84 !important; }

html[data-theme="dark"] body .three-lines-drawer .drawer-pillar-card .drawer-pillar-main-btn {
  background: rgba(229, 185, 99, 0.14) !important;
  border: 1px solid rgba(229, 185, 99, 0.55) !important;
  color: #f5d896 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body .three-lines-drawer .drawer-pillar-card .drawer-pillar-main-btn:hover {
  background: linear-gradient(135deg, #e5b963 0%, #c69230 100%) !important;
  color: #070910 !important;
}
html[data-theme="dark"] body .three-lines-drawer .drawer-pillar-card .drawer-pillar-main-btn:hover * { color: #070910 !important; }

.three-lines-drawer .drawer-pillar-quicklinks {
  border-top: 1px solid var(--sg-neutral-border) !important;
  padding-top: 10px !important;
}

/* Sublink pills use clean subtle borders */
html[data-theme="light"] body .three-lines-drawer .drawer-pillar-card .drawer-sublink-pill {
  background: rgba(15, 23, 42, 0.04) !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: #1e293b !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

html[data-theme="light"] body .three-lines-drawer .drawer-pillar-card .drawer-sublink-pill:hover {
  background: #0b1120 !important;
  border-color: #c89632 !important;
  color: #f5d896 !important;
}

html[data-theme="dark"] body .three-lines-drawer .drawer-pillar-card .drawer-sublink-pill {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  color: #e2e8f0 !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body .three-lines-drawer .drawer-pillar-card .drawer-sublink-pill:hover {
  background: #e5b963 !important;
  border-color: #f5d896 !important;
  color: #070910 !important;
}

/* Direct Portals & DPR Chapters inside Menu Panel */
.three-lines-drawer .drawer-portals-section {
  border-top: 1px solid rgba(200, 150, 50, 0.38) !important;
  padding-top: 16px !important;
  margin-top: 8px !important;
  background: transparent !important;
}

.three-lines-drawer .drawer-portals-section > div:first-child {
  color: var(--sg-gold) !important;
  font-family: var(--sg-mono);
  letter-spacing: 0.09em !important;
}

html[data-theme="light"] body .three-lines-drawer .drawer-big-portal-btn,
html[data-theme="light"] body .three-lines-drawer .drawer-dpr-action-card,
html[data-theme="light"] body .three-lines-drawer .drawer-dpr-panel,
html[data-theme="light"] body .three-lines-drawer .drawer-dpr-portals-card {
  background: #fffdf8 !important;
  border: 1px solid var(--sg-neutral-border) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body .three-lines-drawer .drawer-big-portal-btn,
html[data-theme="dark"] body .three-lines-drawer .drawer-dpr-action-card,
html[data-theme="dark"] body .three-lines-drawer .drawer-dpr-panel,
html[data-theme="dark"] body .three-lines-drawer .drawer-dpr-portals-card {
  background: rgba(16, 23, 40, 0.92) !important;
  border: 1px solid var(--sg-neutral-border) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

.three-lines-drawer .drawer-big-portal-btn:hover,
.three-lines-drawer .drawer-dpr-action-card:hover {
  border-color: var(--sg-gold-outline-strong) !important;
}

.three-lines-drawer .drawer-dpr-chapter-link,
.three-lines-drawer .drawer-dpr-portal-btn {
  border: 1px solid var(--sg-neutral-border) !important;
  box-shadow: none !important;
}

.three-lines-drawer .drawer-big-portal-icon.amber {
  background: linear-gradient(135deg, #d97706, #b45309) !important;
  border: none !important;
  color: #ffffff !important;
}
.three-lines-drawer .drawer-big-portal-icon.indigo {
  background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
  border: none !important;
  color: #ffffff !important;
}
.three-lines-drawer .drawer-big-portal-icon.emerald {
  background: linear-gradient(135deg, #059669, #04a8a9) !important;
  border: none !important;
  color: #ffffff !important;
}

html[data-theme="light"] body .three-lines-drawer .drawer-big-portal-title { color: #0b1120 !important; font-weight: 800 !important; }
html[data-theme="light"] body .three-lines-drawer .drawer-big-portal-sub { color: #475569 !important; }
html[data-theme="dark"] body .three-lines-drawer .drawer-big-portal-title { color: #f8f5ee !important; font-weight: 800 !important; }
html[data-theme="dark"] body .three-lines-drawer .drawer-big-portal-sub { color: #cbd5e1 !important; }

html[data-theme="light"] body .three-lines-drawer .drawer-footer,
html[data-theme="dark"] body .three-lines-drawer .drawer-footer {
  background: linear-gradient(135deg, #0b1120 0%, #15203b 100%) !important;
  border-top: 1.5px solid #d4a24c !important;
  padding: 14px 20px !important;
}

html[data-theme="light"] body .three-lines-drawer .drawer-footer-wa-link,
html[data-theme="dark"] body .three-lines-drawer .drawer-footer-wa-link {
  background: rgba(229, 185, 99, 0.14) !important;
  border: 1.5px solid #e5b963 !important;
  color: #f5d896 !important;
  box-shadow: none !important;
  white-space: nowrap !important;
  padding: 8px 14px !important;
  font-size: 12.5px !important;
}

html[data-theme="light"] body .three-lines-drawer .drawer-footer-wa-link:hover,
html[data-theme="dark"] body .three-lines-drawer .drawer-footer-wa-link:hover {
  background: #e5b963 !important;
  color: #070910 !important;
}

html[data-theme="light"] body .three-lines-drawer .drawer-footer > span,
html[data-theme="dark"] body .three-lines-drawer .drawer-footer > span {
  color: #cbd5e1 !important;
  font-weight: 600 !important;
}

/* ==========================================================================
   5. CORPORATE LOGOS — PURE TRANSPARENT PNGs (ZERO WHITE BOXES, ZERO BORDERS)
   ========================================================================== */
html[data-theme] body .partner-logo-item,
html[data-theme] body .partner-logo-item:hover,
html[data-theme] body .partner-logo-card,
html[data-theme] body .partner-logo-card:hover,
html[data-theme] body .partner-logo-emblem,
html[data-theme] body .hv4-seal-badge-box,
html[data-theme] body .hardware-seal-logo-wrap,
html[data-theme] body .dpr-cover-logo,
html[data-theme] body .dpr-pin-emblem-wrap {
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html[data-theme] body .brand-logo-img,
html[data-theme] body .drawer-logo-img,
html[data-theme] body .partner-logo-img {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   6. HOMEPAGE VIBRANT JEWEL ICON MEDALLIONS (NO BORDER COLOR CLASHES)
   ========================================================================== */
body.home-sovereign-v4 .hv4-hero-gold-word {
  background: linear-gradient(120deg, #b58124 0%, #e11d48 28%, #2563eb 58%, #04a8a9 82%, #d4a24c 100%) !important;
  background-size: 240% 240% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html[data-theme="dark"] body.home-sovereign-v4 .hv4-hero-gold-word {
  background: linear-gradient(120deg, #f5d896 0%, #fb7185 28%, #60a5fa 58%, #2dd4bf 82%, #f5d896 100%) !important;
  background-size: 240% 240% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Colorful Jewel-Coded Mosaic Icons (clean borderless jewel pills) */
body.home-sovereign-v4 .hv4-mosaic-card:nth-child(1) .hv4-mosaic-ico { background: linear-gradient(135deg, #04a8a9, #0891b2) !important; border: none !important; color: #ffffff !important; }
body.home-sovereign-v4 .hv4-mosaic-card:nth-child(2) .hv4-mosaic-ico { background: linear-gradient(135deg, #059669, #10b981) !important; border: none !important; color: #ffffff !important; }
body.home-sovereign-v4 .hv4-mosaic-card:nth-child(3) .hv4-mosaic-ico { background: linear-gradient(135deg, #7c3aed, #4f46e5) !important; border: none !important; color: #ffffff !important; }
body.home-sovereign-v4 .hv4-mosaic-card:nth-child(4) .hv4-mosaic-ico { background: linear-gradient(135deg, #2563eb, #1d4ed8) !important; border: none !important; color: #ffffff !important; }
body.home-sovereign-v4 .hv4-mosaic-card:nth-child(5) .hv4-mosaic-ico { background: linear-gradient(135deg, #d97706, #b45309) !important; border: none !important; color: #ffffff !important; }
body.home-sovereign-v4 .hv4-mosaic-card:nth-child(6) .hv4-mosaic-ico { background: linear-gradient(135deg, #e11d48, #be123c) !important; border: none !important; color: #ffffff !important; }

/* Colorful Trust Bar Icon Medallions */
body.home-sovereign-v4 .hv4-trust-cell:nth-child(1) .hv4-trust-ico { background: linear-gradient(135deg, #d97706, #b45309) !important; color: #fff !important; border: none !important; }
body.home-sovereign-v4 .hv4-trust-cell:nth-child(2) .hv4-trust-ico { background: linear-gradient(135deg, #059669, #047857) !important; color: #fff !important; border: none !important; }
body.home-sovereign-v4 .hv4-trust-cell:nth-child(3) .hv4-trust-ico { background: linear-gradient(135deg, #7c3aed, #4f46e5) !important; color: #fff !important; border: none !important; }
body.home-sovereign-v4 .hv4-trust-cell:nth-child(4) .hv4-trust-ico { background: linear-gradient(135deg, #2563eb, #0891b2) !important; color: #fff !important; border: none !important; }

/* Colorful Jewel Medallions on the 12 Sovereign Accreditations */
body.home-sovereign-v4 .hv4-cert-tile:nth-child(6n+1) .hv4-cert-medallion { background: linear-gradient(135deg, #059669, #047857) !important; color: #fff !important; border: none !important; }
body.home-sovereign-v4 .hv4-cert-tile:nth-child(6n+2) .hv4-cert-medallion { background: linear-gradient(135deg, #2563eb, #1d4ed8) !important; color: #fff !important; border: none !important; }
body.home-sovereign-v4 .hv4-cert-tile:nth-child(6n+3) .hv4-cert-medallion { background: linear-gradient(135deg, #d97706, #b45309) !important; color: #fff !important; border: none !important; }
body.home-sovereign-v4 .hv4-cert-tile:nth-child(6n+4) .hv4-cert-medallion { background: linear-gradient(135deg, #7c3aed, #5b21b6) !important; color: #fff !important; border: none !important; }
body.home-sovereign-v4 .hv4-cert-tile:nth-child(6n+5) .hv4-cert-medallion { background: linear-gradient(135deg, #04a8a9, #0e7490) !important; color: #fff !important; border: none !important; }
body.home-sovereign-v4 .hv4-cert-tile:nth-child(6n+6) .hv4-cert-medallion { background: linear-gradient(135deg, #e11d48, #be123c) !important; color: #fff !important; border: none !important; }

body.home-sovereign-v4 .hv4-div-card:nth-child(1) .hv4-div-tag { color: var(--sg-jewel-teal) !important; }
body.home-sovereign-v4 .hv4-div-card:nth-child(2) .hv4-div-tag { color: var(--sg-jewel-violet) !important; }
body.home-sovereign-v4 .hv4-div-card:nth-child(3) .hv4-div-tag { color: var(--sg-jewel-amber) !important; }
body.home-sovereign-v4 .hv4-div-card:nth-child(4) .hv4-div-tag { color: var(--sg-jewel-sapphire) !important; }

/* ==========================================================================
   7. SUBPAGES — SELECTIVE PURE GOLDEN OUTERLINES ON SUITABLE FLAGSHIP PANELS
      ONLY; CLEAN NEUTRAL BORDERS ON SECONDARY ITEMS (ZERO COLOR CLASHES)
   ========================================================================== */

/* Shared Modals — Flagship Overlay Panels (Pure Gold Outerline) */
html[data-theme] body .modal-window,
html[data-theme] body .portal-compact-panel,
html[data-theme] body .dash-modal-window {
  background: var(--sg-surface-solid) !important;
  border: 2px solid var(--sg-gold-outline-strong) !important;
  box-shadow: none !important;
}

html[data-theme] body .modal-header,
html[data-theme] body .portal-compact-header,
html[data-theme] body .dash-modal-header {
  border-bottom: 1px solid var(--sg-gold-outline) !important;
}

html[data-theme] body .portal-compact-row {
  border: 1px solid var(--sg-neutral-border) !important;
  box-shadow: none !important;
}

html[data-theme] body .portal-compact-row:hover {
  border-color: var(--sg-gold-outline-strong) !important;
  transform: translateY(-2px) !important;
}

/* Clean Neutral Pills & Tags (no noisy gold frames on tiny tags) */
html[data-theme] body .hero-pill,
html[data-theme] body .section-tag,
html[data-theme] body .studio-eyebrow-pill,
html[data-theme] body .partner-marquee-tag {
  background: var(--sg-surface) !important;
  border: 1px solid var(--sg-neutral-border) !important;
  color: var(--sg-gold) !important;
  box-shadow: none !important;
}

/* --- A. /apps/ — Pure Gold on Flagship Hero Console & Stage; Clean Neutral on Sub-items --- */
html[data-theme="light"] body .studio-hero-console,
html[data-theme="dark"] body .studio-hero-console,
html[data-theme="light"] body .studio-stage,
html[data-theme="dark"] body .studio-stage {
  border: 2px solid var(--sg-gold-outline-strong) !important;
  box-shadow: none !important;
}

body .studio-stage::before {
  display: none !important;
}

html[data-theme="light"] body .studio-controls-bar,
html[data-theme="dark"] body .studio-controls-bar,
html[data-theme="light"] body .studio-rail,
html[data-theme="dark"] body .studio-rail,
html[data-theme="light"] body .studio-subpanel,
html[data-theme="dark"] body .studio-subpanel,
html[data-theme="light"] body .studio-eng-card,
html[data-theme="dark"] body .studio-eng-card,
html[data-theme="light"] body .studio-timeline-step,
html[data-theme="dark"] body .studio-timeline-step,
html[data-theme="light"] body .studio-custom-card,
html[data-theme="dark"] body .studio-custom-card,
html[data-theme="light"] body .app-specs-sec-box,
html[data-theme="dark"] body .app-specs-sec-box,
html[data-theme="light"] body .studio-app-card,
html[data-theme="dark"] body .studio-app-card,
html[data-theme="light"] body .studio-rail-item,
html[data-theme="dark"] body .studio-rail-item,
html[data-theme="light"] body .studio-os-chip,
html[data-theme="dark"] body .studio-os-chip,
html[data-theme="light"] body .studio-tab-btn,
html[data-theme="dark"] body .studio-tab-btn,
html[data-theme="light"] body .studio-search-box,
html[data-theme="dark"] body .studio-search-box,
html[data-theme="light"] body .studio-view-toggle,
html[data-theme="dark"] body .studio-view-toggle,
html[data-theme="light"] body .studio-role-btn,
html[data-theme="dark"] body .studio-role-btn,
html[data-theme="light"] body .studio-console-kpi,
html[data-theme="dark"] body .studio-console-kpi {
  border: 1px solid var(--sg-neutral-border) !important;
  box-shadow: none !important;
}

html[data-theme] body .studio-app-card:hover,
html[data-theme] body .studio-rail-item.active {
  border-color: var(--sg-gold-outline-strong) !important;
}

.studio-hero-accent {
  background: linear-gradient(120deg, #b58124 0%, #e11d48 30%, #7c3aed 60%, #04a8a9 88%, #d4a24c 100%) !important;
  background-size: 240% 240% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html[data-theme="dark"] .studio-hero-accent {
  background: linear-gradient(120deg, #f5d896 0%, #fb7185 30%, #a78bfa 60%, #2dd4bf 88%, #f5d896 100%) !important;
  background-size: 240% 240% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.studio-tab-btn.active {
  background: linear-gradient(135deg, #0b1120 0%, #192646 100%) !important;
  border-color: #c89632 !important;
  color: #f5d896 !important;
}

/* --- B. /pos/ — Pure Gold ONLY on Suitable Flagship Panels (No Extra Border Colors!) --- */
html[data-theme="light"] body .bmagnet-hardware-seal-banner,
html[data-theme="dark"] body .bmagnet-hardware-seal-banner,
html[data-theme="light"] body .pos-terminal-frame,
html[data-theme="dark"] body .pos-terminal-frame {
  border: 2px solid var(--sg-gold-outline-strong) !important;
  box-shadow: none !important;
}

html[data-theme="light"] body .pos-top-bento-card,
html[data-theme="dark"] body .pos-top-bento-card,
html[data-theme="light"] body .pos-hardware-card,
html[data-theme="dark"] body .pos-hardware-card {
  background: var(--sg-surface) !important;
  border: 1.5px solid var(--sg-gold-outline) !important;
  box-shadow: none !important;
}

/* Secondary POS items & certification grid: clean neutral borders */
html[data-theme="light"] body .cybaze-sheet,
html[data-theme="dark"] body .cybaze-sheet,
html[data-theme="light"] body .pos-specs-grid > div,
html[data-theme="dark"] body .pos-specs-grid > div,
html[data-theme="light"] body .cert-card,
html[data-theme="dark"] body .cert-card,
html[data-theme="light"] body .feature-check-item,
html[data-theme="dark"] body .feature-check-item,
html[data-theme="light"] body .pos-simulator-container,
html[data-theme="dark"] body .pos-simulator-container,
html[data-theme="light"] body .pos-cat-btn,
html[data-theme="dark"] body .pos-cat-btn {
  background: var(--sg-surface) !important;
  border: 1px solid var(--sg-neutral-border) !important;
  box-shadow: none !important;
}

html[data-theme] body .cert-card:hover,
html[data-theme] body .pos-specs-grid > div:hover {
  border-color: var(--sg-gold-outline-strong) !important;
}

/* --- C. /investment/ — Pure Gold ONLY on Flagship Panels (Calculator, Portal Preview, 4 Schemes) --- */
html[data-theme="light"] body .calc-card-container,
html[data-theme="dark"] body .calc-card-container,
html[data-theme="light"] body .portal-dashboard-preview,
html[data-theme="dark"] body .portal-dashboard-preview,
html[data-theme="light"] body .invest-collateral-card,
html[data-theme="dark"] body .invest-collateral-card {
  background: var(--sg-surface) !important;
  border: 2px solid var(--sg-gold-outline-strong) !important;
  box-shadow: none !important;
}

html[data-theme="light"] body .fintech-card,
html[data-theme="dark"] body .fintech-card,
html[data-theme="light"] body .cybaze-bento-card,
html[data-theme="dark"] body .cybaze-bento-card {
  background: var(--sg-surface) !important;
  border: 1.5px solid var(--sg-gold-outline) !important;
  box-shadow: none !important;
}

/* Secondary Investment controls, pills & sub-boxes: clean neutral borders */
html[data-theme="light"] body .calc-payouts-box,
html[data-theme="dark"] body .calc-payouts-box,
html[data-theme="light"] body .portal-kpi-card,
html[data-theme="dark"] body .portal-kpi-card,
html[data-theme="light"] body .kyc-tranche-card,
html[data-theme="dark"] body .kyc-tranche-card,
html[data-theme="light"] body .fintech-cert-meta-item,
html[data-theme="dark"] body .fintech-cert-meta-item,
html[data-theme="light"] body .investor-pillar-item,
html[data-theme="dark"] body .investor-pillar-item,
html[data-theme="light"] body .calc-quick-pill,
html[data-theme="dark"] body .calc-quick-pill,
html[data-theme="light"] body .fintech-currency-btn,
html[data-theme="dark"] body .fintech-currency-btn,
html[data-theme="light"] body .payout-stat-row,
html[data-theme="dark"] body .payout-stat-row {
  border: 1px solid var(--sg-neutral-border) !important;
  box-shadow: none !important;
}

/* --- D. /dashboard/ — Pure Gold ONLY on Primary Gate & Exec Hero Panels --- */
html[data-theme="light"] body .auth-demo-card,
html[data-theme="dark"] body .auth-demo-card,
html[data-theme="light"] body .auth-form-card,
html[data-theme="dark"] body .auth-form-card,
html[data-theme="light"] body .dash-exec-hero,
html[data-theme="dark"] body .dash-exec-hero,
html[data-theme="light"] body .inst-guarantee-banner,
html[data-theme="dark"] body .inst-guarantee-banner {
  background: var(--sg-surface) !important;
  border: 2px solid var(--sg-gold-outline-strong) !important;
  box-shadow: none !important;
}

/* Secondary Dashboard cards, inputs & rows: clean neutral borders */
html[data-theme="light"] body .auth-demo-perk-item,
html[data-theme="dark"] body .auth-demo-perk-item,
html[data-theme="light"] body .kpi-card,
html[data-theme="dark"] body .kpi-card,
html[data-theme="light"] body .dash-section-box,
html[data-theme="dark"] body .dash-section-box,
html[data-theme="light"] body .cadence-day-card,
html[data-theme="dark"] body .cadence-day-card,
html[data-theme="light"] body .media-showcase-card,
html[data-theme="dark"] body .media-showcase-card,
html[data-theme="light"] body .dash-table-wrap,
html[data-theme="dark"] body .dash-table-wrap,
html[data-theme="light"] body .dash-tab-pill,
html[data-theme="dark"] body .dash-tab-pill,
html[data-theme="light"] body .form-input,
html[data-theme="dark"] body .form-input {
  background: var(--sg-surface) !important;
  border: 1px solid var(--sg-neutral-border) !important;
  box-shadow: none !important;
}

html[data-theme] body .form-input:focus {
  border-color: var(--sg-gold-outline-strong) !important;
}

/* Dashboard Active Tabs & Primary Sovereign Buttons (High-Contrast Unified Theme) */
html[data-theme="light"] body .dash-tab-pill.active {
  background: linear-gradient(135deg, #0b1120 0%, #192646 100%) !important;
  border: 1.5px solid #c89632 !important;
  color: #f5d896 !important;
  box-shadow: none !important;
}
html[data-theme="light"] body .dash-tab-pill.active * { color: #f5d896 !important; }

html[data-theme="dark"] body .dash-tab-pill.active {
  background: linear-gradient(135deg, #e5b963 0%, #c69230 100%) !important;
  border: 1.5px solid #f5d896 !important;
  color: #070910 !important;
  box-shadow: none !important;
}
html[data-theme="dark"] body .dash-tab-pill.active * { color: #070910 !important; }

html[data-theme] body .btn-exec-primary {
  background: linear-gradient(135deg, #e5b963 0%, #c69230 100%) !important;
  border: 1.5px solid #f5d896 !important;
  color: #070910 !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}
html[data-theme] body .btn-exec-primary * { color: #070910 !important; }

/* --- E. /dpr/ — Pure Gold on Sovereign PIN Gate Card & Cover Header; Clean Neutral on Cards & Keypad --- */
html[data-theme="light"] body .dpr-pin-overlay {
  background: rgba(246, 243, 236, 0.90) !important;
  backdrop-filter: blur(18px) !important;
}

html[data-theme="dark"] body .dpr-pin-overlay {
  background: rgba(7, 9, 16, 0.90) !important;
  backdrop-filter: blur(18px) !important;
}

html[data-theme="light"] body .dpr-pin-card {
  background: linear-gradient(170deg, #fffdf8 0%, #f6efe0 100%) !important;
  border: 2px solid #c89632 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body .dpr-pin-card {
  background: linear-gradient(170deg, #0b1120 0%, #141e38 100%) !important;
  border: 2px solid #e5b963 !important;
  box-shadow: none !important;
}

html[data-theme] body .dpr-pin-close-btn {
  border: 1px solid var(--sg-neutral-border) !important;
  background: var(--sg-surface-solid) !important;
  color: var(--sg-ink) !important;
  box-shadow: none !important;
}

html[data-theme] body .dpr-pin-close-btn:hover {
  border-color: var(--sg-gold-outline-strong) !important;
  color: var(--sg-gold) !important;
}

html[data-theme] body .dpr-pin-badge {
  background: var(--sg-gold-soft) !important;
  border: 1px solid rgba(196, 144, 44, 0.35) !important;
  color: var(--sg-gold) !important;
}

html[data-theme] body .dpr-pin-input {
  border: 1px solid var(--sg-neutral-border) !important;
  background: var(--sg-surface-solid) !important;
  box-shadow: none !important;
}

html[data-theme] body .dpr-pin-input:focus {
  border-color: var(--sg-gold-outline-strong) !important;
}

html[data-theme] body .btn-dpr-pin-submit {
  background: linear-gradient(135deg, #e5b963 0%, #c69230 100%) !important;
  border: 1.5px solid #f5d896 !important;
  color: #070910 !important;
  box-shadow: none !important;
}
html[data-theme] body .btn-dpr-pin-submit * { color: #070910 !important; }

html[data-theme] body .dpr-pin-keypad button {
  background: var(--sg-surface-solid) !important;
  border: 1px solid var(--sg-neutral-border) !important;
  color: var(--sg-ink) !important;
  box-shadow: none !important;
}

html[data-theme] body .dpr-pin-keypad button:hover {
  border-color: var(--sg-gold-outline-strong) !important;
  background: var(--sg-gold-soft) !important;
  transform: translateY(-1px);
}

html[data-theme] body .dpr-cover-header {
  border: 2px solid var(--sg-gold-outline-strong) !important;
  box-shadow: none !important;
}

html[data-theme="light"] body .dpr-locked-banner,
html[data-theme="dark"] body .dpr-locked-banner,
html[data-theme="light"] body .dpr-card,
html[data-theme="dark"] body .dpr-card,
html[data-theme="light"] body .dpr-seal-box,
html[data-theme="dark"] body .dpr-seal-box,
html[data-theme="light"] body .dpr-table,
html[data-theme="dark"] body .dpr-table {
  background: var(--sg-surface) !important;
  border: 1px solid var(--sg-neutral-border) !important;
  box-shadow: none !important;
}

/* ==========================================================================
   7B. DEEP PAGE HARMONIZATION FOR /apps/ (12-APP SUITE) & /investment/
       Fixes every off-theme cyan/flat/misaligned panel, button, card & form
   ========================================================================== */

/* --- 12-APP SUITE (/apps/) HARMONIZATION --- */
html[data-theme="light"] body .studio-btn-primary {
  background: linear-gradient(135deg, #0b1120 0%, #1c2640 100%) !important;
  border: 1.5px solid #d4a24c !important;
  color: #f8f5ee !important;
  box-shadow: none !important;
}
html[data-theme="light"] body .studio-btn-primary * { color: #f8f5ee !important; }

html[data-theme="dark"] body .studio-btn-primary {
  background: linear-gradient(135deg, #e5b963 0%, #c69230 100%) !important;
  border: 1.5px solid #f5d896 !important;
  color: #070910 !important;
  box-shadow: none !important;
}
html[data-theme="dark"] body .studio-btn-primary * { color: #070910 !important; }

html[data-theme="light"] body .studio-btn-glass {
  background: var(--sg-surface) !important;
  border: 1px solid var(--sg-neutral-border) !important;
  color: var(--sg-ink) !important;
  box-shadow: none !important;
}
html[data-theme="dark"] body .studio-btn-glass {
  background: var(--sg-surface) !important;
  border: 1px solid var(--sg-neutral-border) !important;
  color: var(--sg-ink) !important;
  box-shadow: none !important;
}

html[data-theme="light"] body .studio-tab-btn.active,
html[data-theme="light"] body .studio-tab-btn.app-filter-pill.active {
  background: linear-gradient(135deg, #0b1120 0%, #192646 100%) !important;
  border-color: #c89632 !important;
  color: #f5d896 !important;
  box-shadow: none !important;
}
html[data-theme="light"] body .studio-tab-btn.active *,
html[data-theme="light"] body .studio-tab-btn.app-filter-pill.active * { color: #f5d896 !important; }

html[data-theme="dark"] body .studio-tab-btn.active,
html[data-theme="dark"] body .studio-tab-btn.app-filter-pill.active {
  background: linear-gradient(135deg, #e5b963 0%, #c69230 100%) !important;
  border-color: #f5d896 !important;
  color: #070910 !important;
  box-shadow: none !important;
}
html[data-theme="dark"] body .studio-tab-btn.active *,
html[data-theme="dark"] body .studio-tab-btn.app-filter-pill.active * { color: #070910 !important; }

html[data-theme="light"] body .studio-hero-console,
html[data-theme="light"] body .studio-stage,
html[data-theme="light"] body .studio-controls-bar,
html[data-theme="light"] body .studio-rail {
  background: var(--sg-surface) !important;
}

html[data-theme="dark"] body .studio-hero-console,
html[data-theme="dark"] body .studio-stage,
html[data-theme="dark"] body .studio-controls-bar,
html[data-theme="dark"] body .studio-rail {
  background: var(--sg-surface) !important;
}

/* Unified Enterprise Architecture Panel */
html[data-theme="light"] body .studio-arch-card,
html[data-theme="dark"] body .studio-arch-card {
  background: var(--sg-surface) !important;
  border: 2px solid var(--sg-gold-outline-strong) !important;
  border-radius: 28px !important;
  box-shadow: none !important;
}

html[data-theme="light"] body .studio-role-btn.active {
  background: linear-gradient(135deg, #0b1120 0%, #192646 100%) !important;
  border: 1.5px solid #c89632 !important;
  color: #f5d896 !important;
  box-shadow: none !important;
}
html[data-theme="light"] body .studio-role-btn.active * { color: #f5d896 !important; }

html[data-theme="dark"] body .studio-role-btn.active {
  background: rgba(229, 185, 99, 0.16) !important;
  border: 1.5px solid #e5b963 !important;
  color: #f5d896 !important;
  box-shadow: none !important;
}
html[data-theme="dark"] body .studio-role-btn.active * { color: #f5d896 !important; }

/* Lifecycle Delivery Strip & Bespoke Executive CTA Monolith */
html[data-theme] body .studio-lifecycle-strip {
  background: var(--sg-surface) !important;
  border: 1.5px solid var(--sg-gold-outline) !important;
  border-radius: 26px !important;
  box-shadow: none !important;
}

html[data-theme] body .studio-step-pill {
  background: var(--sg-gold-soft) !important;
  border: 1px solid rgba(196, 144, 44, 0.38) !important;
  color: var(--sg-gold) !important;
}

html[data-theme="dark"] body .studio-cta-panel {
  background:
    radial-gradient(ellipse 65% 65% at 80% 0%, rgba(229, 185, 99, 0.18) 0%, transparent 65%),
    linear-gradient(155deg, #0b1120 0%, #15213e 55%, #090e1c 100%) !important;
  border: 2px solid var(--sg-gold-outline-strong) !important;
  border-radius: 28px !important;
  box-shadow: none !important;
  color: #f8f5ee !important;
}

html[data-theme="dark"] body .studio-cta-panel .studio-cta-title { color: #ffffff !important; }
html[data-theme="dark"] body .studio-cta-panel .studio-cta-desc { color: #cbd5e1 !important; }
html[data-theme="dark"] body .studio-cta-panel .studio-section-kicker,
html[data-theme="dark"] body .studio-cta-panel .studio-section-kicker * { color: #f2cf84 !important; }

html[data-theme="dark"] body .studio-cta-panel .studio-trust-chip {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(229, 185, 99, 0.32) !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] body .studio-cta-panel .studio-trust-chip .material-symbols-rounded { color: #f2cf84 !important; }

/* Light Theme Studio CTA Panel: Luminous Champagne Quartz */
html[data-theme="light"] body .studio-cta-panel {
  background: 
    radial-gradient(ellipse 65% 65% at 80% 0%, rgba(212, 162, 76, 0.15) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 20% 100%, rgba(4, 168, 169, 0.08) 0%, transparent 60%),
    linear-gradient(155deg, #fdfbf7 0%, #f6efe1 52%, #ece1ce 100%) !important;
  border: 2px solid #c89632 !important;
  border-radius: 28px !important;
  box-shadow: 0 16px 44px rgba(181, 129, 36, 0.14) !important;
  color: #0b1120 !important;
}

html[data-theme="light"] body .studio-cta-panel .studio-cta-title { color: #0b1120 !important; }
html[data-theme="light"] body .studio-cta-panel .studio-cta-desc { color: #334155 !important; }
html[data-theme="light"] body .studio-cta-panel .studio-section-kicker,
html[data-theme="light"] body .studio-cta-panel .studio-section-kicker * { color: #94691e !important; }

html[data-theme="light"] body .studio-cta-panel .studio-trust-chip {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1.5px solid rgba(200, 150, 50, 0.35) !important;
  color: #0b1120 !important;
}
html[data-theme="light"] body .studio-cta-panel .studio-trust-chip .material-symbols-rounded { color: #c89632 !important; }

html[data-theme] body .studio-wa-cta-btn {
  background: linear-gradient(135deg, #e5b963 0%, #c69230 100%) !important;
  border: 1.5px solid #f5d896 !important;
  color: #070910 !important;
  box-shadow: none !important;
  font-weight: 900 !important;
}
html[data-theme] body .studio-wa-cta-btn * { color: #070910 !important; }

/* --- INVESTMENT PAGE (/investment/) HARMONIZATION --- */

/* 1. Calculator Currency Toggle, Principal Box, Rounded Payout Cards & Sovereign CTAs */
html[data-theme="light"] body .fintech-currency-btn.active {
  background: linear-gradient(135deg, #0b1120 0%, #192646 100%) !important;
  border-color: #c89632 !important;
  color: #f5d896 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body .fintech-currency-btn.active {
  background: linear-gradient(135deg, #e5b963 0%, #c69230 100%) !important;
  border-color: #f5d896 !important;
  color: #070910 !important;
  box-shadow: none !important;
}

html[data-theme] body .calc-quick-pill.active {
  background: var(--sg-gold-soft) !important;
  border: 1.5px solid var(--sg-gold-outline-strong) !important;
  color: var(--sg-gold) !important;
  font-weight: 800 !important;
}

html[data-theme] body .calc-controls > div:last-child {
  background: var(--sg-gold-soft) !important;
  border: 1px solid rgba(196, 144, 44, 0.36) !important;
  border-radius: 16px !important;
}

html[data-theme] body .calc-payouts-box {
  background: var(--sg-surface-tint) !important;
  border: 1px solid var(--sg-neutral-border) !important;
  border-radius: 20px !important;
  padding: 18px !important;
}

html[data-theme] body .calc-payouts-box .payout-stat-row {
  background: var(--sg-surface-solid) !important;
  border: 1px solid var(--sg-neutral-border) !important;
  border-radius: 14px !important;
  padding: 13px 16px !important;
  margin-bottom: 10px !important;
}

html[data-theme] body .btn-fintech-razorpay {
  background: linear-gradient(135deg, #e5b963 0%, #c69230 100%) !important;
  border: 1.5px solid #f5d896 !important;
  border-radius: 14px !important;
  color: #070910 !important;
  font-weight: 900 !important;
  box-shadow: none !important;
  opacity: 1 !important;
}
html[data-theme] body .btn-fintech-razorpay * { color: #070910 !important; }
html[data-theme] body .btn-fintech-razorpay:hover {
  background: linear-gradient(135deg, #f2cf84 0%, #d4a24c 100%) !important;
  transform: translateY(-2px) !important;
}

html[data-theme="light"] body .btn-fintech-wa {
  background: linear-gradient(135deg, #0b1120 0%, #192646 100%) !important;
  border: 1.5px solid #d4a24c !important;
  border-radius: 14px !important;
  color: #f8f5ee !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}
html[data-theme="light"] body .btn-fintech-wa * { color: #f8f5ee !important; }

html[data-theme="dark"] body .btn-fintech-wa {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1.5px solid rgba(229, 185, 99, 0.55) !important;
  border-radius: 14px !important;
  color: #f5d896 !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}
html[data-theme="dark"] body .btn-fintech-wa * { color: #f5d896 !important; }

/* 2. Personal ROI Portal Preview — Remove Old Orange-Green Top Rainbow Bar */
body .portal-dashboard-preview::before,
body .portal-dashboard-preview::after {
  display: none !important;
  content: none !important;
}

/* 3. Four Investment Scheme Cards — Perfect Horizontal Alignment + Crisp Dark Mode Contrast */
html[data-theme] body .fintech-tier-badge {
  white-space: nowrap !important;
  font-size: 10px !important;
  letter-spacing: 0.04em !important;
  padding: 5px 10px !important;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="dark"] body .fintech-card:nth-child(1) .fintech-tier-badge {
  background: rgba(229, 185, 99, 0.14) !important;
  border: 1px solid rgba(229, 185, 99, 0.44) !important;
  color: #f5d896 !important;
}

html[data-theme] body .fintech-return-grid {
  background: var(--sg-surface-tint) !important;
  border: 1px solid var(--sg-neutral-border) !important;
  border-radius: 16px !important;
}

/* 4. Institutional KYC Onboarding Suite — Sculpted Rounded Sovereign Gold Panel + Obsidian Trust Sidebar */
html[data-theme] body .kyc-suite-card {
  background: var(--sg-surface) !important;
  border: 2px solid var(--sg-gold-outline-strong) !important;
  border-radius: 28px !important;
  box-shadow: none !important;
  overflow: hidden !important;
  padding: 24px !important;
}

html[data-theme="dark"] body .kyc-trust-sidebar {
  background: linear-gradient(160deg, #0b1120 0%, #15213e 100%) !important;
  border: 1px solid rgba(229, 185, 99, 0.34) !important;
  border-radius: 20px !important;
  color: #f8f5ee !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body .kyc-trust-sidebar h4 { color: #ffffff !important; }
html[data-theme="dark"] body .kyc-trust-sidebar p,
html[data-theme="dark"] body .kyc-trust-sidebar .kyc-trust-point,
html[data-theme="dark"] body .kyc-trust-sidebar .kyc-trust-point strong { color: #e2e8f0 !important; }
html[data-theme="dark"] body .kyc-trust-sidebar .kyc-trust-point strong { color: #ffffff !important; }
html[data-theme="dark"] body .kyc-trust-sidebar .kyc-trust-point .material-symbols-rounded { color: #f2cf84 !important; }
html[data-theme="dark"] body .kyc-trust-sidebar .btn-exec-ghost {
  background: rgba(229, 185, 99, 0.14) !important;
  border: 1.5px solid #e5b963 !important;
  color: #f5d896 !important;
}
html[data-theme="dark"] body .kyc-trust-sidebar .btn-exec-ghost * { color: #f5d896 !important; }

/* Light Theme KYC Sidebar: Pristine Light Champagne Quartz */
html[data-theme="light"] body .kyc-trust-sidebar {
  background: linear-gradient(160deg, #fdfbf7 0%, #f6efe1 100%) !important;
  border: 1.5px solid #c89632 !important;
  border-radius: 20px !important;
  color: #0b1120 !important;
  box-shadow: 0 10px 30px rgba(181, 129, 36, 0.12) !important;
}

html[data-theme="light"] body .kyc-trust-sidebar h4 { color: #0b1120 !important; }
html[data-theme="light"] body .kyc-trust-sidebar p,
html[data-theme="light"] body .kyc-trust-sidebar .kyc-trust-point { color: #334155 !important; }
html[data-theme="light"] body .kyc-trust-sidebar .kyc-trust-point strong { color: #0b1120 !important; }
html[data-theme="light"] body .kyc-trust-sidebar .kyc-trust-point .material-symbols-rounded { color: #94691e !important; }
html[data-theme="light"] body .kyc-trust-sidebar .btn-exec-ghost {
  background: rgba(200, 150, 50, 0.12) !important;
  border: 1.5px solid #c89632 !important;
  color: #0b1120 !important;
}
html[data-theme="light"] body .kyc-trust-sidebar .btn-exec-ghost * { color: #0b1120 !important; }

html[data-theme] body .kyc-step-num {
  background: linear-gradient(135deg, #e5b963 0%, #c69230 100%) !important;
  color: #070910 !important;
  font-weight: 900 !important;
}

html[data-theme] body .kyc-step-item.active {
  color: var(--sg-gold) !important;
}

html[data-theme] body .kyc-tranche-card {
  background: var(--sg-surface-solid) !important;
  border: 1px solid var(--sg-neutral-border) !important;
  border-radius: 16px !important;
  padding: 14px 10px !important;
  box-shadow: none !important;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease !important;
}

html[data-theme] body .kyc-tranche-card.selected,
html[data-theme] body .kyc-tranche-card:hover {
  background: var(--sg-gold-soft) !important;
  border: 2px solid var(--sg-gold-outline-strong) !important;
  transform: translateY(-2px);
}

html[data-theme] body .kyc-tranche-meta {
  font-size: 11.5px !important;
  line-height: 1.35 !important;
}

html[data-theme] body .kyc-input,
html[data-theme] body .kyc-select,
html[data-theme] body .kyc-upload-box {
  background: var(--sg-surface-solid) !important;
  border: 1px solid var(--sg-neutral-border) !important;
  border-radius: 12px !important;
  color: var(--sg-ink) !important;
  box-shadow: none !important;
}

html[data-theme] body .kyc-input:focus,
html[data-theme] body .kyc-select:focus {
  border-color: var(--sg-gold-outline-strong) !important;
  outline: none !important;
}

/* Unified Sovereign Midnight & Gold Site Footer across ALL 6 pages */
.site-footer {
  background: linear-gradient(180deg, #070a14 0%, #0b1120 100%) !important;
  border-top: 2px solid #d4a24c !important;
  box-shadow: none !important;
}

.site-footer .footer-cert-pill {
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: none !important;
}

/* ==========================================================================
   7C. SUBPAGE SOVEREIGN UNIFIED SURFACES (PROFESSIONAL INSTITUTIONAL LUXURY)
   Pristine uniform surfaces across all subpages with identity hover glows
   ========================================================================== */

body .studio-eng-card,
body .studio-timeline-step,
body .studio-photo-card,
body .pos-top-bento-card,
body .pos-hardware-card,
body .cybaze-bento-card,
body .invest-collateral-card,
body .fintech-card,
body .portal-kpi-card,
body .kpi-card,
body .cadence-day-card,
body .drawer-dpr-panel,
body .dpr-card {
  background: var(--sg-surface) !important;
  border: 1.5px solid var(--sg-border-gold) !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.28s ease, 
              box-shadow 0.28s ease !important;
}

/* Subtle, Tasteful Identity Hover Accents across Subpages */
body .studio-eng-card:nth-child(1):hover,
body .studio-timeline-step:nth-child(2):hover,
body .pos-top-bento-card:nth-child(2):hover,
body .cybaze-bento-card:nth-child(4):hover,
body .portal-kpi-card:nth-child(4):hover,
body .kpi-card:nth-child(4):hover,
body .drawer-dpr-panel.indigo:hover {
  border-color: rgba(99, 102, 241, 0.85) !important;
  box-shadow: 0 16px 36px rgba(99, 102, 241, 0.16) !important;
}

body .studio-eng-card:nth-child(2):hover,
body .studio-timeline-step:nth-child(1):hover,
body .pos-top-bento-card:nth-child(1):hover,
body .cybaze-bento-card:nth-child(2):hover,
body .invest-collateral-card:nth-child(2):hover,
body .fintech-card.tier-silver:hover,
body .fintech-card:nth-child(2):hover,
body .cadence-day-card:nth-child(2):hover,
body .drawer-dpr-panel.teal:hover {
  border-color: rgba(4, 168, 169, 0.85) !important;
  box-shadow: 0 16px 36px rgba(4, 168, 169, 0.16) !important;
}

body .studio-eng-card:nth-child(3):hover,
body .studio-timeline-step:nth-child(3):hover,
body .studio-photo-card:nth-child(2):hover,
body .pos-top-bento-card:nth-child(3):hover,
body .pos-hardware-card:nth-child(1):hover,
body .cybaze-bento-card:nth-child(1):hover,
body .invest-collateral-card:nth-child(1):hover,
body .fintech-card.tier-standard:hover,
body .fintech-card:nth-child(1):hover,
body .portal-kpi-card:nth-child(3):hover,
body .kpi-card:nth-child(3):hover,
body .cadence-day-card:nth-child(4):hover,
body .cadence-day-card:nth-child(5):hover,
body .drawer-dpr-panel.amber:hover {
  border-color: rgba(212, 162, 76, 0.85) !important;
  box-shadow: 0 16px 36px rgba(212, 162, 76, 0.16) !important;
}

body .studio-eng-card:nth-child(4):hover,
body .studio-timeline-step:nth-child(4):hover,
body .pos-top-bento-card:nth-child(4):hover,
body .cybaze-bento-card:nth-child(5):hover,
body .invest-collateral-card:nth-child(3):hover,
body .fintech-card.tier-emerald:hover,
body .fintech-card:nth-child(4):hover,
body .portal-kpi-card:nth-child(2):hover,
body .kpi-card:nth-child(2):hover,
body .cadence-day-card:nth-child(1):hover,
body .drawer-dpr-panel.emerald:hover {
  border-color: rgba(16, 185, 129, 0.85) !important;
  box-shadow: 0 16px 36px rgba(16, 185, 129, 0.16) !important;
}

body .studio-photo-card:nth-child(1):hover,
body .pos-hardware-card:nth-child(3):hover,
body .cybaze-bento-card:nth-child(3):hover,
body .fintech-card.tier-diamond:hover,
body .fintech-card:nth-child(3):hover,
body .portal-kpi-card:nth-child(1):hover,
body .kpi-card:nth-child(1):hover,
body .cadence-day-card:nth-child(3):hover,
body .drawer-dpr-panel.blue:hover {
  border-color: rgba(37, 99, 235, 0.85) !important;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.16) !important;
}

body .drawer-dpr-panel.rose:hover {
  border-color: rgba(225, 29, 72, 0.85) !important;
  box-shadow: 0 16px 36px rgba(225, 29, 72, 0.16) !important;
}

/* ==========================================================================
   8. LIVING RAINBOW / PRISMATIC PANEL ANIMATIONS, UNIFORM VISUAL SHOWCASES
      & ALL-OVER MOTION VIBE ACROSS ALL 6 PAGES
   ========================================================================== */
@property --sg-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes sgConicSpin {
  from { --sg-angle: 0deg; }
  to   { --sg-angle: 360deg; }
}

@keyframes sgAuroraShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes sgKenBurns {
  0%   { transform: scale(1) translate3d(0, 0, 0); }
  50%  { transform: scale(1.06) translate3d(-1.2%, -0.8%, 0); }
  100% { transform: scale(1.02) translate3d(1%, 0.6%, 0); }
}

@keyframes sgBadgeFloat {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-4px); }
}

/* Uniform Editorial Visual Showcase Component (Identical Luxury Frame Across ALL 6 Pages) */
.sg-visual-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 0;
  border-radius: 28px;
  overflow: hidden;
  margin: 0 auto 34px;
  border: 2px solid transparent;
  background:
    linear-gradient(150deg, #0b1120 0%, #141f3a 56%, #090e1c 100%) padding-box,
    conic-gradient(
      from var(--sg-angle),
      #d4a24c 0deg,
      #f5d896 55deg,
      #e11d48 115deg,
      #7c3aed 175deg,
      #2563eb 230deg,
      #04a8a9 285deg,
      #10b981 325deg,
      #d4a24c 360deg
    ) border-box;
  color: #f8f5ee;
  box-shadow: none !important;
}

.sg-visual-showcase.is-reverse {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.sg-visual-media {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  background: #070a14;
}

.sg-visual-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.sg-visual-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 20, 0.06) 0%, rgba(7, 10, 20, 0.56) 100%);
  pointer-events: none;
}

.sg-visual-pill {
  position: absolute;
  inset-block-end: 16px;
  inset-inline-start: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 9999px;
  background: rgba(11, 17, 32, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(245, 216, 150, 0.45);
  color: #f8f5ee;
  font-family: var(--sg-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sg-visual-pill .material-symbols-rounded {
  font-size: 16px;
  color: #f5d896;
}

.sg-visual-body {
  position: relative;
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background:
    radial-gradient(ellipse 80% 70% at 90% 10%, rgba(229, 185, 99, 0.16) 0%, transparent 65%),
    radial-gradient(ellipse 70% 60% at 10% 90%, rgba(37, 99, 235, 0.16) 0%, transparent 65%),
    linear-gradient(145deg, #0b1120 0%, #131e38 100%);
  background-size: 180% 180%;
}

.sg-visual-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sg-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #f5d896;
}

.sg-visual-title {
  font-family: var(--sg-display);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.18;
  color: #ffffff !important;
  margin: 0;
}

html[lang="ar"] .sg-visual-title { font-family: var(--sg-arabic); }

.sg-visual-desc {
  font-size: 14px;
  line-height: 1.68;
  color: #cbd5e1 !important;
  margin: 0;
}

.sg-visual-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.sg-visual-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(245, 216, 150, 0.30);
  color: #f8f5ee;
  font-size: 11.5px;
  font-weight: 700;
}

.sg-visual-chip .material-symbols-rounded {
  font-size: 15px;
  color: #f5d896;
}

/* Light Theme Editorial Visual Showcase: Distinctive Light Champagne Quartz */
html[data-theme="light"] body .sg-visual-showcase {
  background:
    linear-gradient(150deg, #fdfbf7 0%, #f6efe1 52%, #ece1ce 100%) padding-box,
    conic-gradient(
      from var(--sg-angle),
      #d4a24c 0deg,
      #f5d896 55deg,
      #e11d48 115deg,
      #7c3aed 175deg,
      #2563eb 230deg,
      #04a8a9 285deg,
      #10b981 325deg,
      #d4a24c 360deg
    ) border-box !important;
  color: #0b1120 !important;
  box-shadow: 0 16px 44px rgba(181, 129, 36, 0.12) !important;
}

html[data-theme="light"] body .sg-visual-media {
  background: #f4ede0;
}

html[data-theme="light"] body .sg-visual-media::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(245, 238, 226, 0.45) 100%);
}

html[data-theme="light"] body .sg-visual-body {
  background:
    radial-gradient(ellipse 80% 70% at 90% 10%, rgba(212, 162, 76, 0.16) 0%, transparent 65%),
    radial-gradient(ellipse 70% 60% at 10% 90%, rgba(4, 168, 169, 0.10) 0%, transparent 65%),
    linear-gradient(145deg, #fdfbf7 0%, #f5eee0 100%) !important;
}

html[data-theme="light"] body .sg-visual-title {
  color: #0b1120 !important;
}

html[data-theme="light"] body .sg-visual-desc {
  color: #334155 !important;
}

html[data-theme="light"] body .sg-visual-kicker {
  color: #94691e !important;
}

html[data-theme="light"] body .sg-visual-pill {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1.5px solid rgba(200, 150, 50, 0.45) !important;
  color: #0b1120 !important;
}

html[data-theme="light"] body .sg-visual-pill .material-symbols-rounded {
  color: #c89632 !important;
}

html[data-theme="light"] body .sg-visual-chip {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1.5px solid rgba(200, 150, 50, 0.35) !important;
  color: #0b1120 !important;
}

html[data-theme="light"] body .sg-visual-chip .material-symbols-rounded {
  color: #c89632 !important;
}

/* Continuous Moving Marquee (No Hover Pause) */
html[data-theme] body .partner-marquee-track,
html[data-theme] body .partner-marquee-track:hover {
  animation-play-state: running !important;
}

@media (max-width: 980px) {
  .sg-visual-showcase,
  .sg-visual-showcase.is-reverse {
    grid-template-columns: 1fr;
  }
  .sg-visual-media {
    min-height: 220px;
    aspect-ratio: 16 / 9;
  }
  .sg-visual-body {
    padding: 24px 22px;
  }
}

/* Uniform Prismatic Alive Hero Accent Gradients on ALL 6 Pages */
.hero-title span,
.hero-title .text-gradient {
  background: linear-gradient(120deg, #b58124 0%, #e11d48 28%, #7c3aed 55%, #2563eb 78%, #04a8a9 100%) !important;
  background-size: 240% 240% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html[data-theme="dark"] .hero-title span,
html[data-theme="dark"] .hero-title .text-gradient {
  background: linear-gradient(120deg, #f5d896 0%, #fb7185 28%, #a78bfa 55%, #60a5fa 78%, #2dd4bf 100%) !important;
  background-size: 240% 240% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Living Prismatic Conic-Gradient Rim on Selected Flagship Panels (Makes the Site Alive!) */
html[data-theme] body .hv4-hero-monolith,
html[data-theme] body .studio-cta-panel {
  border: 2px solid transparent !important;
  background:
    radial-gradient(ellipse 68% 60% at 85% 8%, rgba(229, 185, 99, 0.22) 0%, transparent 62%) padding-box,
    radial-gradient(ellipse 60% 55% at 15% 92%, rgba(37, 99, 235, 0.20) 0%, transparent 62%) padding-box,
    linear-gradient(150deg, #0b1120 0%, #14203b 52%, #090e1c 100%) padding-box,
    conic-gradient(
      from var(--sg-angle),
      #d4a24c 0deg,
      #f5d896 60deg,
      #e11d48 120deg,
      #7c3aed 180deg,
      #2563eb 240deg,
      #04a8a9 300deg,
      #d4a24c 360deg
    ) border-box !important;
}

html[data-theme] body .studio-cta-panel .studio-cta-title {
  color: #ffffff !important;
}
html[data-theme] body .studio-cta-panel .studio-cta-desc {
  color: #cbd5e1 !important;
}
html[data-theme] body .studio-cta-panel .studio-trust-chip {
  background: rgba(10, 19, 41, 0.82) !important;
  border: 1px solid rgba(212, 162, 76, 0.45) !important;
  color: #f5d896 !important;
}
html[data-theme] body .studio-cta-panel .studio-trust-chip * {
  color: #f5d896 !important;
}

/* Living Aurora Gradient Breathing inside Flagship Monolith & Deck Surfaces */
html[data-theme] body .hv4-engine-deck,
html[data-theme] body .hv4-seal-monolith {
  background-image:
    radial-gradient(ellipse 55% 48% at 12% 14%, rgba(229, 185, 99, 0.16), transparent 65%),
    radial-gradient(ellipse 50% 48% at 88% 85%, rgba(4, 168, 169, 0.16), transparent 65%),
    radial-gradient(ellipse 46% 44% at 85% 15%, rgba(124, 58, 237, 0.14), transparent 65%),
    linear-gradient(145deg, #0b1120 0%, #141f3a 50%, #090e1b 100%) !important;
  background-size: 160% 160% !important;
}

/* Living Animated Rainbow-Gold Rim on Flagship Light/Dark Panels */
html[data-theme="light"] body .studio-hero-console,
html[data-theme="light"] body .calc-card-container,
html[data-theme="light"] body .portal-dashboard-preview,
html[data-theme="light"] body .pos-terminal-frame,
html[data-theme="light"] body .kyc-suite-card,
html[data-theme="light"] body .auth-demo-card,
html[data-theme="light"] body .auth-form-card,
html[data-theme="light"] body .dash-exec-hero,
html[data-theme="light"] body .dpr-pin-card {
  border: 2px solid transparent !important;
  background:
    linear-gradient(160deg, rgba(255, 253, 248, 0.96) 0%, rgba(248, 242, 230, 0.94) 100%) padding-box,
    conic-gradient(
      from var(--sg-angle),
      #c89632 0deg,
      #f2cf84 75deg,
      #e11d48 135deg,
      #7c3aed 195deg,
      #2563eb 255deg,
      #04a8a9 310deg,
      #c89632 360deg
    ) border-box !important;
}

html[data-theme="dark"] body .studio-hero-console,
html[data-theme="dark"] body .calc-card-container,
html[data-theme="dark"] body .portal-dashboard-preview,
html[data-theme="dark"] body .pos-terminal-frame,
html[data-theme="dark"] body .kyc-suite-card,
html[data-theme="dark"] body .auth-demo-card,
html[data-theme="dark"] body .auth-form-card,
html[data-theme="dark"] body .dash-exec-hero,
html[data-theme="dark"] body .dpr-pin-card {
  border: 2px solid transparent !important;
  background:
    linear-gradient(160deg, rgba(12, 18, 34, 0.96) 0%, rgba(17, 25, 46, 0.94) 100%) padding-box,
    conic-gradient(
      from var(--sg-angle),
      #e5b963 0deg,
      #f5d896 75deg,
      #fb7185 135deg,
      #a78bfa 195deg,
      #60a5fa 255deg,
      #2dd4bf 310deg,
      #e5b963 360deg
    ) border-box !important;
}

/* ==========================================================================
   8B. SITE-WIDE GPU-COMPOSITED MOTION CHOREOGRAPHY (ALL 6 PAGES)
   ========================================================================== */
@keyframes sgSilkDriftA {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-44px, 32px, 0) scale(1.12); }
  100% { transform: translate3d(24px, -24px, 0) scale(0.96); }
}

@keyframes sgSilkDriftB {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(48px, -36px, 0) scale(1.14); }
  100% { transform: translate3d(-26px, 28px, 0) scale(0.95); }
}

@keyframes sgGradientFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes sgFloatSoft {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-6px); }
}

@keyframes sgPulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(229, 185, 99, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(229, 185, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 185, 99, 0); }
}

@keyframes sgGoldSheenSweep {
  0%   { transform: translateX(-140%) skewX(-22deg); opacity: 0; }
  18%  { opacity: 0.50; }
  45%  { transform: translateX(220%) skewX(-22deg); opacity: 0; }
  100% { transform: translateX(220%) skewX(-22deg); opacity: 0; }
}

@keyframes sgDrawerItemIn {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: no-preference) {
  /* Living Rainbow-Gold Rotating Border Aura on Flagship Panels */
  .sg-visual-showcase,
  .hv4-hero-monolith,
  .hv4-concierge,
  .studio-cta-panel,
  .studio-hero-console,
  .calc-card-container,
  .portal-dashboard-preview,
  .pos-terminal-frame,
  .kyc-suite-card,
  .auth-demo-card,
  .auth-form-card,
  .dash-exec-hero,
  .dpr-pin-card {
    animation: sgConicSpin 10s linear infinite;
  }

  /* Living Breathing Aurora Wash inside Dark Decks & Showcases */
  .hv4-engine-deck,
  .hv4-seal-monolith,
  .sg-visual-body {
    animation: sgAuroraShift 14s ease-in-out infinite;
  }

  /* Slow Cinema Ken Burns Breathing Motion on Editorial Showcases */
  .sg-visual-media img,
  .auth-demo-media-img {
    animation: sgKenBurns 18s ease-in-out infinite alternate;
  }

  .sg-visual-pill {
    animation: sgBadgeFloat 4.2s ease-in-out infinite;
  }

  .sg-orb-gold    { animation: sgSilkDriftA 22s ease-in-out infinite alternate; }
  .sg-orb-sapphire{ animation: sgSilkDriftB 26s ease-in-out infinite alternate; }
  .sg-orb-rose    { animation: sgSilkDriftA 24s ease-in-out infinite alternate-reverse; }
  .sg-orb-emerald { animation: sgSilkDriftB 20s ease-in-out infinite alternate-reverse; }

  body.home-sovereign-v4 .hv4-hero-gold-word,
  .studio-hero-accent,
  .hero-title span,
  .hero-title .text-gradient {
    animation: sgGradientFlow 7s ease infinite;
  }

  .hv4-seal-badge-box,
  .hardware-seal-logo-wrap,
  .dpr-cover-logo,
  .dpr-pin-emblem-wrap {
    animation: sgFloatSoft 4.6s ease-in-out infinite;
  }

  .hv4-gold-dot,
  .studio-live-dot,
  .portal-live-dot,
  .pos-terminal-indicator {
    animation: sgPulseRing 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  }

  .hv4-btn-sovereign,
  .hv4-wa-gold-btn,
  .drawer-big-wa-btn,
  .studio-btn-primary,
  .btn-hero-primary,
  .btn-fintech-razorpay,
  .btn-exec-primary,
  .btn-dpr-dock-download,
  .btn-dpr-pin-submit {
    position: relative;
    overflow: hidden;
  }

  .hv4-btn-sovereign::after,
  .hv4-wa-gold-btn::after,
  .drawer-big-wa-btn::after,
  .studio-btn-primary::after,
  .btn-hero-primary::after,
  .btn-fintech-razorpay::after,
  .btn-exec-primary::after,
  .btn-dpr-dock-download::after,
  .btn-dpr-pin-submit::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 48%;
    background: linear-gradient(90deg, transparent, rgba(255, 248, 220, 0.40), transparent);
    pointer-events: none;
    animation: sgGoldSheenSweep 4.8s ease-in-out infinite;
  }

  .sg-anim-ready {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    transition:
      opacity 0.56s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.56s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--sg-stagger, 0ms);
  }

  .sg-anim-ready.sg-in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .hv4-mosaic-card:hover .hv4-mosaic-ico,
  .hv4-cert-tile:hover .hv4-cert-medallion,
  .hv4-trust-cell:hover .hv4-trust-ico,
  .pos-top-bento-card:hover .pos-top-bento-icon,
  .kpi-card:hover .kpi-icon-wrap,
  .portal-kpi-card:hover .portal-kpi-icon,
  .drawer-pillar-card:hover .drawer-pillar-icon {
    transform: scale(1.1) rotate(-5deg);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .hv4-mosaic-ico,
  .hv4-cert-medallion,
  .hv4-trust-ico,
  .pos-top-bento-icon,
  .kpi-icon-wrap,
  .portal-kpi-icon,
  .drawer-pillar-icon {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .hv4-div-cta:hover .material-symbols-rounded,
  .hv4-os-btn:hover .material-symbols-rounded,
  .drawer-pillar-main-btn:hover .material-symbols-rounded,
  .drawer-big-wa-btn:hover > .material-symbols-rounded:last-child,
  .portal-compact-row:hover .portal-compact-arrow {
    transform: translateX(4px);
    transition: transform 0.22s ease;
  }

  html[dir="rtl"] .hv4-div-cta:hover .material-symbols-rounded,
  html[dir="rtl"] .hv4-os-btn:hover .material-symbols-rounded,
  html[dir="rtl"] .drawer-pillar-main-btn:hover .material-symbols-rounded,
  html[dir="rtl"] .drawer-big-wa-btn:hover > .material-symbols-rounded:last-child {
    transform: translateX(-4px);
  }

  .three-lines-drawer.active .drawer-body > * {
    animation: sgDrawerItemIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .three-lines-drawer.active .drawer-body > *:nth-child(1) { animation-delay: 40ms; }
  .three-lines-drawer.active .drawer-body > *:nth-child(2) { animation-delay: 90ms; }
  .three-lines-drawer.active .drawer-body > *:nth-child(3) { animation-delay: 140ms; }
  .three-lines-drawer.active .drawer-body > *:nth-child(4) { animation-delay: 190ms; }
  .three-lines-drawer.active .drawer-body > *:nth-child(5) { animation-delay: 240ms; }
  .three-lines-drawer.active .drawer-body > *:nth-child(6) { animation-delay: 290ms; }

  .sg-spotlight-card { position: relative; }
  .sg-spotlight-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(
      340px circle at var(--sg-mx, 50%) var(--sg-my, 50%),
      rgba(245, 216, 150, 0.14),
      rgba(96, 165, 250, 0.05) 45%,
      transparent 72%
    );
    transition: opacity 0.28s ease;
    z-index: 1;
  }
  .sg-spotlight-card:hover::before { opacity: 1; }
}

/* ==========================================================================
   9. FORCED COLORS & PRINT SAFETY
   ========================================================================== */
@media (forced-colors: active) {
  .three-lines-drawer,
  .pos-top-bento-card,
  .cert-card,
  .fintech-card,
  .kpi-card,
  .dpr-card,
  .studio-app-card {
    border: 1px solid CanvasText !important;
  }
}

@media print {
  #sgScrollProgress,
  .sg-ambient-orbs { display: none !important; }
  .sg-anim-ready { opacity: 1 !important; transform: none !important; }
}
