/* ==========================================================================
   ALGORIZMS MASTER PRODUCTS TOP BAR COMPONENT
   Standard: Product Logo as MAIN & BIG (>=52px), Wordmark in 'Pasajero',
   Tagline in 'Bebas Neue' (Base), Decoupled Algorizms Ribbon Cockpit Dropdown.
   ========================================================================== */

@import url('./universal-theme-cascade.css?v=204.0');

/* ── Sticky Top Bar Container ────────────────────────────────────────────── */
header.product-site-header {
  position: sticky;
  top: 12px;
  z-index: 1000;
  margin: 12px auto 20px;
  width: calc(100% - 24px);
  max-width: 1280px;
  padding: 10px 20px;
  background: rgba(10, 8, 7, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.65);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── LEFT: Product Primary Identity Group ────────────────────────────────── */
.product-identity-group {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* 1. Main & BIG Product Logo Link */
.product-main-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.product-main-logo-link:hover {
  transform: scale(1.06) rotate(2deg);
}

.product-main-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px var(--product-glow, rgba(252, 211, 77, 0.45)));
}

/* 2. Wordmark (Pasajero) & Tagline (Base/Bebas Neue) */
.product-titles-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.15;
  text-decoration: none;
}

.product-wordmark {
  font-family: 'Pasajero Complete', 'Pasajero', 'Space Grotesk', sans-serif !important;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: #FAF8F4;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.1;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.2);
}

.product-tagline {
  font-family: 'Bebas Neue', 'Base', sans-serif !important;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--product-accent-gold, #FCD34D);
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 2px;
  line-height: 1;
}

/* ── CENTER: Pipeline / Stage Identifier Pill ────────────────────────────── */
.product-topbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.product-stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  color: #FAF8F4;
  letter-spacing: 0.06em;
}

.stage-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--product-accent-dot, #10B981);
  box-shadow: 0 0 10px var(--product-accent-dot, #10B981);
  animation: pulse 2s infinite;
}

/* ── Uncluttered Multi-Stage Pipeline Bar ────────────────────────────────── */
.product-stages-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-stage-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.70rem;
  font-weight: 600;
  color: rgba(250, 248, 244, 0.6);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.product-stage-item:hover {
  color: #FAF8F4;
  background: rgba(255, 255, 255, 0.06);
}

.product-stage-item.is-active {
  color: #FAF8F4;
  background: rgba(252, 211, 77, 0.14);
  border: 1px solid rgba(252, 211, 77, 0.35);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(252, 211, 77, 0.2);
}

.product-stage-item.is-active .stage-pulse-dot {
  background: #FCD34D;
  box-shadow: 0 0 10px #FCD34D;
}

/* ── 🏛️ Sovereign Radar Stages Bar & Center Pipeline ───────────────────────── */
.topbar-center-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 1 1 auto;
  margin: 0 10px;
  min-width: 0;
}

.radar-stages-bar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(10, 14, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 3px 5px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.radar-stage-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  font-family: 'Bebas Neue', 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
}

[dir="rtl"] .radar-stage-btn {
  font-family: 'Cairo', 'Alexandria', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: normal;
}

.radar-stage-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.radar-stage-btn.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(2, 132, 199, 0.3));
  border: 1px solid var(--data-gold, #FCD34D) !important;
  color: #fff;
  box-shadow: 0 0 16px rgba(252, 211, 77, 0.35), 0 0 25px rgba(124, 58, 237, 0.25);
}

.stage-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 800;
  opacity: 0.75;
  letter-spacing: 0.3px;
}

.stage-step-title {
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
}

.stage-access-badge {
  font-family: 'JetBrains Mono', sans-serif;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.4px;
  white-space: nowrap;
  line-height: 1.1;
}

.stage-access-badge.badge-free {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
}

.stage-access-badge.badge-pro {
  background: rgba(252, 211, 77, 0.18);
  border: 1px solid rgba(252, 211, 77, 0.5);
  color: #fcd34d;
}

.stage-access-badge.badge-live {
  background: rgba(2, 132, 199, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.55);
  color: #38bdf8;
}

.stage-access-badge.badge-titans {
  background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
  color: #060913;
  font-weight: 900;
  box-shadow: 0 0 8px rgba(252, 211, 77, 0.5);
}

/* ── Algorizms Universal Launcher on Other Side ── */
.algorizms-universal-launcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.algorizms-cockpit-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 10px;
  padding: 4px 9px 4px 6px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  user-select: none;
}
.algorizms-cockpit-trigger-btn:hover {
  background: rgba(124, 58, 237, 0.32);
  border-color: var(--data-gold, #FCD34D);
  box-shadow: 0 0 16px rgba(252, 211, 77, 0.35);
  transform: translateY(-1px);
}
.algorizms-ribbon-badge-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  transition: transform 0.25s ease;
}
.algorizms-cockpit-trigger-btn:hover .algorizms-ribbon-badge-img {
  transform: scale(1.08);
}
.algorizms-universal-launcher .platform-switcher-dropdown {
  inset-inline-start: auto !important;
  inset-inline-end: 0 !important;
}
body.light-theme .algorizms-cockpit-trigger-btn,
[data-theme="marble-bling"] .algorizms-cockpit-trigger-btn {
  background: rgba(255, 253, 249, 0.95);
  border-color: rgba(217, 119, 6, 0.38);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.12);
}
body.light-theme .algorizms-cockpit-trigger-btn:hover,
[data-theme="marble-bling"] .algorizms-cockpit-trigger-btn:hover {
  background: rgba(252, 211, 77, 0.24);
  border-color: #D97706;
  box-shadow: 0 0 14px rgba(217, 119, 6, 0.28);
}

/* ── RIGHT: Actions & Quick Links Group ──────────────────────────────────── */
.product-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
}

/* Auth Capsule & Ankh Login in Products Topbar */
.product-topbar-right .header-auth-guest,
.product-topbar-right .header-auth-user {
  display: inline-flex;
  align-items: center;
}

.product-topbar-right .header-login-btn,
.product-topbar-right .ankh-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px 0 10px;
  border-radius: 12px;
  background: rgba(10, 8, 7, 0.92);
  border: 1px solid rgba(252, 211, 77, 0.45);
  box-shadow: 0 0 14px rgba(217, 119, 6, 0.15);
  color: #FCD34D;
  font-family: var(--font-neoteric), 'Neoteric', 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

[dir="rtl"] .product-topbar-right .header-login-btn,
[dir="rtl"] .product-topbar-right .ankh-login-btn {
  padding: 0 10px 0 14px;
  font-family: 'Alexandria', var(--font-neoteric), sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.product-topbar-right .header-login-btn:hover,
.product-topbar-right .ankh-login-btn:hover {
  background: rgba(20, 16, 12, 0.96);
  border-color: rgba(252, 211, 77, 0.8);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 20px rgba(252, 211, 77, 0.35);
  color: #FFF;
}

.product-topbar-right .ankh-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.product-topbar-right .ankh-3d-glyph {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(252, 211, 77, 0.65));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-topbar-right .header-login-btn:hover .ankh-3d-glyph,
.product-topbar-right .ankh-login-btn:hover .ankh-3d-glyph {
  transform: scale(1.15);
  filter: drop-shadow(0 0 10px rgba(252, 211, 77, 0.9)) brightness(1.25);
}

/* ── Universal Slider Controls in Products Topbar ────────────────────────── */
.product-sliders-group,
.header-sliders-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.slider-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  user-select: none;
  cursor: pointer;
  outline: none;
}

.slider-track {
  position: relative;
  display: flex;
  align-items: center;
  direction: ltr !important;
  background: rgba(18, 15, 14, 0.88);
  border: 1px solid rgba(252, 211, 77, 0.28);
  border-radius: 9999px;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.slider-control:hover .slider-track,
.slider-control:focus-visible .slider-track {
  border-color: rgba(252, 211, 77, 0.6);
  box-shadow: 0 0 12px rgba(252, 211, 77, 0.22);
}

.slider-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 24px;
  padding: 0 9px;
  border: none;
  background: transparent;
  color: #8E8679;
  font-family: 'JetBrains Mono', 'Space Grotesk', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border-radius: 9999px;
  transition: color 0.25s ease;
  line-height: 1;
}

.slider-btn .slider-icon {
  font-size: 0.72rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.slider-btn.active {
  color: #FAF8F4;
}

.slider-btn.active .slider-icon {
  transform: scale(1.15);
}

.connected-dots-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.marble-dots-svg {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.4));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.slider-btn.active .marble-dots-svg {
  filter: drop-shadow(0 0 3px rgba(236, 72, 153, 0.6)) drop-shadow(0 0 2px rgba(245, 158, 11, 0.8));
  transform: scale(1.12);
}

.slider-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  bottom: 2px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.25) 0%, rgba(2, 132, 199, 0.2) 100%);
  border: 1px solid rgba(252, 211, 77, 0.55);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 8px rgba(252, 211, 77, 0.25);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.theme-slider .slider-thumb {
  width: calc(50% - 2px);
  transform: translateX(0);
}

.theme-slider.is-light .slider-thumb,
[data-theme="marble-bling"] .theme-slider .slider-thumb,
[data-theme="light"] .theme-slider .slider-thumb {
  transform: translateX(100%);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(217, 119, 6, 0.2) 100%);
  border-color: rgba(217, 119, 6, 0.65);
}

.lang-slider .slider-btn {
  padding: 0 7px;
  min-width: 26px;
}

.lang-slider .slider-thumb {
  width: calc(50% - 2px);
  transform: translateX(0);
}

.lang-slider.is-ar .slider-thumb,
[dir="rtl"] .lang-slider .slider-thumb {
  transform: translateX(100%);
}

[data-theme="marble-bling"] .slider-track,
[data-theme="light"] .slider-track {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="marble-bling"] .slider-btn,
[data-theme="light"] .slider-btn {
  color: #71717A;
}

[data-theme="marble-bling"] .slider-btn.active,
[data-theme="light"] .slider-btn.active {
  color: #0A0B0E;
}

.product-lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #FAF8F4;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

.product-lang-pill:hover {
  border-color: #FCD34D;
  background: rgba(252, 211, 77, 0.1);
  color: #FCD34D;
}

.product-lab-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #A8A29E;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

.product-lab-link:hover {
  border-color: #FAF8F4;
  color: #FAF8F4;
  background: rgba(255, 255, 255, 0.08);
}

.shimmer-btn-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FCD34D 0%, #0284C7 50%, #7C3AED 100%);
  color: #FFFFFF;
  text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  font-weight: 400;
  box-shadow: 0 4px 18px rgba(252, 211, 77, 0.25);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.shimmer-btn-mini:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(252, 211, 77, 0.4);
}

/* 3. Decoupled Algorizms Ribbon Cockpit Trigger */
.brand-ribbon-trigger-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.brand-ribbon-trigger {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 4px 8px 4px 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  outline: none;
  transition: all 0.25s ease;
}

.brand-ribbon-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(252, 211, 77, 0.45);
}

.brand-ribbon-mini {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(252, 211, 77, 0.4));
  transition: transform 0.4s ease;
}

.brand-ribbon-trigger[aria-expanded="true"] .brand-ribbon-mini,
.brand-ribbon-trigger-wrap.open .brand-ribbon-mini {
  transform: rotate(180deg) scale(1.1);
}

.ribbon-rotate-indicator {
  font-size: 9px;
  color: #FCD34D;
  transition: transform 0.3s ease;
}

.brand-ribbon-trigger[aria-expanded="true"] .ribbon-rotate-indicator,
.brand-ribbon-trigger-wrap.open .ribbon-rotate-indicator {
  transform: rotate(180deg);
}

/* ── ALGORIZMS EXECUTIVE COCKPIT DROPDOWN CARD ───────────────────────────── */
.brand-cockpit-dropdown {
  position: absolute !important;
  top: calc(100% + 14px);
  left: 0;
  right: auto;
  width: 340px;
  max-width: calc(100vw - 28px);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(252, 211, 77, 0.4) transparent;
  background: rgba(13, 10, 8, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(252, 211, 77, 0.35);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(252, 211, 77, 0.15);
  padding: 16px;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.25s ease;
  pointer-events: none;
}

.brand-cockpit-dropdown::-webkit-scrollbar {
  width: 5px;
}
.brand-cockpit-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.brand-cockpit-dropdown::-webkit-scrollbar-thumb {
  background: rgba(252, 211, 77, 0.35);
  border-radius: 999px;
}
.brand-cockpit-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(252, 211, 77, 0.65);
}

.brand-cockpit-dropdown.active,
.brand-cockpit-dropdown.is-visible,
.brand-ribbon-trigger-wrap.open .brand-cockpit-dropdown,
.sts-algo-trigger-wrap.open .brand-cockpit-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
  display: block !important;
}

/* Cockpit Status Bar */
.cockpit-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.cockpit-status-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.cockpit-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 8px #38BDF8;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.cockpit-status-dot.logged-in {
  background: #34D399;
  box-shadow: 0 0 10px #34D399;
}

.cockpit-status-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: #E2E8F0;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cockpit-hint-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(252, 211, 77, 0.08);
  border: 1px solid rgba(252, 211, 77, 0.22);
  border-radius: 999px;
  padding: 2px 8px;
  max-width: 58%;
  min-width: 0;
  transition: all 0.2s ease;
}

.cockpit-hint-bulb {
  font-size: 0.72rem;
  line-height: 1;
  flex-shrink: 0;
}

.cockpit-hint-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: #FCD34D;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Cockpit Section Title */
.cockpit-section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: #FCD34D;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

/* Cockpit Row Capsules */
.cockpit-capsules-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}

.cockpit-row-capsule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #FAF8F4;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  user-select: none;
  box-sizing: border-box;
}

.cockpit-row-capsule:hover {
  background: rgba(252, 211, 77, 0.10);
  border-color: rgba(252, 211, 77, 0.4);
  color: #FCD34D;
  transform: translateX(2px);
}

.cockpit-capsule-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cockpit-capsule-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  color: #FCD34D;
  flex-shrink: 0;
}

.cockpit-capsule-label {
  font-family: sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: inherit;
}

.cockpit-capsule-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 700;
  color: #A8A29E;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cockpit-row-capsule:hover .cockpit-capsule-badge {
  color: #FCD34D;
  border-color: rgba(252, 211, 77, 0.35);
  background: rgba(252, 211, 77, 0.12);
}

.cockpit-kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  padding: 1px 5px;
  color: #FCD34D;
}

.cockpit-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cockpit-lang-en.active,
.cockpit-lang-ar.active {
  color: #FCD34D;
  font-weight: 800;
}

.cockpit-lang-divider {
  opacity: 0.4;
  margin: 0 1px;
}

.cockpit-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 12px 0 10px;
}

.cockpit-actions-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cockpit-action-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #FAF8F4;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.cockpit-action-item:hover {
  background: rgba(252, 211, 77, 0.08);
  border-color: rgba(252, 211, 77, 0.35);
  transform: translateX(3px);
}

.cockpit-action-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.cockpit-action-text {
  flex: 1;
  min-width: 0;
}

.cockpit-action-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #FAF8F4;
  line-height: 1.25;
}

.cockpit-action-sub {
  font-size: 0.70rem;
  color: #A8A29E;
  margin-top: 2px;
}

.cockpit-action-chevron {
  font-size: 0.95rem;
  color: #FCD34D;
  opacity: 0.7;
}

.cockpit-badge-vanguard {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.22) 0%, rgba(124, 58, 237, 0.28) 100%) !important;
  border: 1px solid rgba(252, 211, 77, 0.45) !important;
  color: #FCD34D !important;
  box-shadow: 0 0 10px rgba(252, 211, 77, 0.2);
}

/* ── Light Mode Token Overrides ('marble-bling' / 'light') ───────────────── */
[data-theme="marble-bling"] header.product-site-header,
[data-theme="light"] header.product-site-header {
  background: rgba(255, 252, 247, 0.94) !important;
  border-color: rgba(217, 119, 6, 0.28) !important;
  box-shadow: 0 10px 40px rgba(180, 120, 20, 0.12) !important;
}

[data-theme="marble-bling"] .product-wordmark,
[data-theme="light"] .product-wordmark {
  color: #1A1512 !important;
  text-shadow: none !important;
}

[data-theme="marble-bling"] .product-stage-pill,
[data-theme="light"] .product-stage-pill {
  background: rgba(255, 252, 247, 0.8) !important;
  border-color: rgba(217, 119, 6, 0.22) !important;
  color: #1A1512 !important;
}

[data-theme="marble-bling"] .product-lang-pill,
[data-theme="light"] .product-lang-pill {
  background: rgba(255, 252, 247, 0.85) !important;
  border-color: rgba(217, 119, 6, 0.25) !important;
  color: #1A1512 !important;
}

[data-theme="marble-bling"] .product-lab-link,
[data-theme="light"] .product-lab-link {
  background: rgba(255, 252, 247, 0.85) !important;
  border-color: rgba(217, 119, 6, 0.25) !important;
  color: #6B6459 !important;
}

[data-theme="marble-bling"] .brand-cockpit-dropdown,
[data-theme="light"] .brand-cockpit-dropdown {
  background: rgba(255, 252, 247, 0.98) !important;
  border-color: rgba(217, 119, 6, 0.35) !important;
  box-shadow: 0 20px 50px rgba(180, 120, 20, 0.2) !important;
}

[data-theme="marble-bling"] .cockpit-status-text,
[data-theme="light"] .cockpit-status-text {
  color: #1A1512 !important;
}

[data-theme="marble-bling"] .cockpit-section-title,
[data-theme="light"] .cockpit-section-title {
  color: #B45309 !important;
}

[data-theme="marble-bling"] .cockpit-row-capsule,
[data-theme="light"] .cockpit-row-capsule {
  background: rgba(245, 240, 230, 0.8) !important;
  border-color: rgba(217, 119, 6, 0.2) !important;
  color: #1A1512 !important;
}

[data-theme="marble-bling"] .cockpit-action-item,
[data-theme="light"] .cockpit-action-item {
  background: rgba(245, 240, 230, 0.6) !important;
  border-color: rgba(217, 119, 6, 0.15) !important;
  color: #1A1512 !important;
}

[data-theme="marble-bling"] .cockpit-action-title,
[data-theme="light"] .cockpit-action-title {
  color: #1A1512 !important;
}

/* ── RTL Support ─────────────────────────────────────────────────────────── */
[dir="rtl"] .product-titles-wrap {
  align-items: flex-start;
  text-align: right;
}

[dir="rtl"] .product-tagline {
  font-family: 'Alexandria', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.74rem !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

[dir="rtl"] .product-stage-pill {
  font-family: 'Alexandria', 'JetBrains Mono', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
}

[dir="rtl"] .brand-cockpit-dropdown {
  right: 0 !important;
  left: auto !important;
  text-align: right;
  font-family: 'Noto Kufi Arabic', 'Alexandria', sans-serif !important;
}

[dir="rtl"] .cockpit-section-title {
  font-family: 'Cairo', sans-serif !important;
  font-weight: 800 !important;
  font-size: 0.68rem !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

[dir="rtl"] .cockpit-status-text,
[dir="rtl"] .cockpit-hint-text,
[dir="rtl"] .cockpit-capsule-label,
[dir="rtl"] .cockpit-capsule-badge,
[dir="rtl"] .cockpit-action-title,
[dir="rtl"] .cockpit-badge-pill {
  font-family: 'Alexandria', sans-serif !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

[dir="rtl"] .slider-btn,
[dir="rtl"] .slider-label {
  font-family: 'Alexandria', 'Noto Kufi Arabic', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
  font-size: 0.66rem !important;
}

[dir="rtl"] .cockpit-action-sub {
  font-family: 'Noto Kufi Arabic', sans-serif !important;
  font-weight: 400 !important;
  font-size: 0.60rem !important;
  line-height: 1.4 !important;
}

[dir="rtl"] .cockpit-action-item {
  text-align: right;
}

[dir="rtl"] .cockpit-action-item:hover {
  transform: translateX(-3px);
}

[dir="rtl"] .cockpit-row-capsule:hover {
  transform: translateX(-2px);
}

/* ── Responsive Architecture ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .product-stages-bar .product-stage-item:not(.is-active) {
    display: none;
  }
  .product-stage-item.is-active {
    padding: 3px 8px;
    font-size: 0.65rem;
  }
}

@media (max-width: 640px) {
  header.product-site-header {
    padding: 8px 12px;
  }
  .product-main-logo-img {
    width: 44px;
    height: 44px;
  }
  .product-wordmark {
    font-size: 1rem;
    letter-spacing: 0.15em;
  }
  .product-tagline {
    display: none;
  }
  .product-lab-link {
    display: none;
  }
  .product-topbar-center {
    display: none;
  }
  .brand-cockpit-dropdown {
    width: calc(100vw - 32px);
    left: 0;
    right: auto;
  }
  [dir="rtl"] .brand-cockpit-dropdown {
    right: 0;
    left: auto;
  }
  .shimmer-btn-mini span {
    display: none;
  }
  .shimmer-btn-mini::after {
    content: "⚡";
  }
  .shimmer-btn-mini {
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  header.product-site-header {
    padding: 6px 8px;
    gap: 6px;
  }
  .product-main-logo-img {
    width: 32px;
    height: 32px;
  }
  .product-wordmark {
    font-size: 0.78rem !important;
    letter-spacing: 0.04em !important;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .product-topbar-right {
    gap: 6px;
    flex-shrink: 0;
  }
  .product-lang-pill {
    padding: 3px 7px;
    font-size: 0.72rem;
    flex-shrink: 0;
  }
}

@media (max-width: 380px) {
  .product-wordmark {
    max-width: 125px;
    font-size: 0.72rem !important;
  }
}

/* ── Pharaonic Alabaster Light Mode (marble-bling) in Product Topbar ─────── */
[data-theme="marble-bling"] header.product-site-header,
html.marble-bling header.product-site-header {
  background: rgba(250, 247, 240, 0.94);
  border: 1px solid rgba(217, 119, 6, 0.22);
  box-shadow: 0 10px 35px rgba(217, 119, 6, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="marble-bling"] .product-wordmark,
html.marble-bling .product-wordmark {
  color: #0A0807;
  text-shadow: 0 0 14px rgba(217, 119, 6, 0.15);
}

[data-theme="marble-bling"] .product-tagline,
html.marble-bling .product-tagline {
  color: #B45309;
}

[data-theme="marble-bling"] .product-stage-pill,
html.marble-bling .product-stage-pill {
  background: rgba(255, 253, 249, 0.9);
  border-color: rgba(217, 119, 6, 0.25);
  color: #0A0807;
}

[data-theme="marble-bling"] .product-stages-bar,
html.marble-bling .product-stages-bar {
  background: rgba(255, 253, 249, 0.85);
  border-color: rgba(217, 119, 6, 0.22);
}

[data-theme="marble-bling"] .product-stage-item,
html.marble-bling .product-stage-item {
  color: rgba(10, 8, 7, 0.65);
}

[data-theme="marble-bling"] .product-stage-item.is-active,
html.marble-bling .product-stage-item.is-active {
  color: #0A0807;
  background: rgba(252, 211, 77, 0.25);
  border-color: rgba(217, 119, 6, 0.45);
}

[data-theme="marble-bling"] .product-topbar-right .header-login-btn,
[data-theme="marble-bling"] .product-topbar-right .ankh-login-btn,
html.marble-bling .product-topbar-right .header-login-btn,
html.marble-bling .product-topbar-right .ankh-login-btn {
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.24), rgba(255, 253, 249, 0.95));
  border: 1px solid rgba(217, 119, 6, 0.45);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.15);
  color: #0A0807;
}

[data-theme="marble-bling"] .product-topbar-right .ankh-3d-glyph,
html.marble-bling .product-topbar-right .ankh-3d-glyph {
  filter: drop-shadow(0 0 6px rgba(217, 119, 6, 0.45));
}

/* ── STS Pipeline Stages & Commands Pharaonic Alabaster Light Mode ─────── */
[data-theme="marble-bling"] .sts-pipeline-track,
html.marble-bling .sts-pipeline-track {
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid rgba(217, 119, 6, 0.25);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

[data-theme="marble-bling"] .sts-stage-arrow,
html.marble-bling .sts-stage-arrow {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(217, 119, 6, 0.25);
  color: #78716C;
}

[data-theme="marble-bling"] .sts-stage-arrow:hover,
html.marble-bling .sts-stage-arrow:hover {
  background: rgba(252, 211, 77, 0.25);
  border-color: #D97706;
  color: #92400E;
}

[data-theme="marble-bling"] .sts-stage-node,
html.marble-bling .sts-stage-node {
  color: #78716C;
}

[data-theme="marble-bling"] .sts-stage-node:hover,
html.marble-bling .sts-stage-node:hover {
  color: #1C1917;
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="marble-bling"] .sts-stage-node.active,
html.marble-bling .sts-stage-node.active {
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.35), rgba(245, 158, 11, 0.18));
  border-color: rgba(217, 119, 6, 0.5);
  color: #92400E;
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.2);
}

[data-theme="marble-bling"] .sts-stage-node.completed,
html.marble-bling .sts-stage-node.completed {
  color: #0284C7;
  border-color: rgba(2, 132, 199, 0.35);
  background: rgba(2, 132, 199, 0.08);
}

[data-theme="marble-bling"] .cmd-stage-badge,
html.marble-bling .cmd-stage-badge {
  background: rgba(0, 0, 0, 0.06);
  color: #78716C;
}

[data-theme="marble-bling"] .sts-stage-node.active .cmd-stage-badge,
html.marble-bling .sts-stage-node.active .cmd-stage-badge {
  background: #FCD34D;
  color: #78350F;
}

[data-theme="marble-bling"] .sts-cmd-btn,
html.marble-bling .sts-cmd-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(217, 119, 6, 0.25);
  color: #44403C;
}

[data-theme="marble-bling"] .sts-cmd-btn:hover,
html.marble-bling .sts-cmd-btn:hover {
  background: rgba(252, 211, 77, 0.18);
  border-color: #D97706;
  color: #1C1917;
}

/* ── Universal Pipeline Collision Immunity & Responsive Architecture ───── */
.sts-brand-left,
.product-identity-group {
  flex-shrink: 0 !important;
  min-width: 0;
  z-index: 2;
}

.sts-menu-center,
.product-topbar-center {
  flex: 1 1 auto !important;
  min-width: 0;
  margin: 0 10px;
  justify-content: center;
}

.sts-stage-node,
.bha-cmd-stage-node {
  font-family: 'Bebas Neue', 'Base', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.05em !important;
}

[dir="rtl"] .sts-stage-node,
[dir="rtl"] .bha-cmd-stage-node {
  font-family: 'Cairo', var(--font-arabic-body), sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  letter-spacing: normal !important;
}

@media (max-width: 1380px) {
  .stage-name-full { display: none !important; }
  .stage-name-short { display: inline !important; }
  .sts-stage-node { padding: 3px 8px !important; font-size: 0.80rem !important; }
}

@media (max-width: 1240px) {
  /* Prevent stage collision over product wordmark: collapse inactive stage labels */
  .sts-stage-node:not(.active) .cmd-stage-name {
    display: none !important;
  }
  .sts-stage-node:not(.active) {
    padding: 3px 6px !important;
  }
  .sts-pipeline-conn {
    width: 6px !important;
  }
}

@media (max-width: 1040px) {
  header.product-site-header,
  .sts-site-header {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .sts-menu-center,
  .product-topbar-center {
    order: 3 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 6px !important;
  }
  .sts-stage-node:not(.active) .cmd-stage-name {
    display: inline !important;
  }
}

/* ── Universal Modal & Popup Card Scrolling Guard ────────────────────────── */
.modal-content,
.modal-dialog,
.techy-modal-dialog,
.architect-modal-box,
.property-modal,
.rss-journey-dialog,
.diagnostic-modal,
.export-modal,
.bha-diagnostic-card,
.price-modal,
.sim-modal-card {
  max-height: 90vh !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(252, 211, 77, 0.4) transparent !important;
}

.modal-content::-webkit-scrollbar,
.modal-dialog::-webkit-scrollbar,
.techy-modal-dialog::-webkit-scrollbar,
.architect-modal-box::-webkit-scrollbar,
.property-modal::-webkit-scrollbar,
.rss-journey-dialog::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track,
.modal-dialog::-webkit-scrollbar-track,
.techy-modal-dialog::-webkit-scrollbar-track,
.architect-modal-box::-webkit-scrollbar-track,
.property-modal::-webkit-scrollbar-track,
.rss-journey-dialog::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.modal-content::-webkit-scrollbar-thumb,
.modal-dialog::-webkit-scrollbar-thumb,
.techy-modal-dialog::-webkit-scrollbar-thumb,
.architect-modal-box::-webkit-scrollbar-thumb,
.property-modal::-webkit-scrollbar-thumb,
.rss-journey-dialog::-webkit-scrollbar-thumb {
  background: rgba(252, 211, 77, 0.4);
  border-radius: 999px;
}

/* ── Silver Vanguard+ Tier Gate Micro-Badge ─────────────────────────────── */
.alg-silver-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-inline-start: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: #E2E8F0;
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.24), rgba(203, 213, 225, 0.14));
  border: 1px solid rgba(203, 213, 225, 0.48);
  box-shadow: 0 0 10px rgba(203, 213, 225, 0.16);
  vertical-align: middle;
  pointer-events: none;
  white-space: nowrap;
}

.alg-silver-badge.is-unlocked {
  color: #BAE6FD;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(56, 189, 248, 0.18));
  border-color: rgba(52, 211, 153, 0.5);
}


