

/* --------------------------------------------------------------------------
   TRANSITION SHIELD ESSENTIAL HELPER CSS (Barest Minimum Last Resort)
   -------------------------------------------------------------------------- */

/* 1. Global Reset & Pointer Events (Playbook Rule 5) */
.btn svg, button svg, a svg, [data-drawer-trigger] svg {
  pointer-events: none !important;
}

/* 2. Glassmorphism Backdrop Blur (Free Elementor fallback) */
.ts-glass, .ts-card-glass, .site-header, .spec-modal-card, .gate-modal-card, .mobile-drawer {
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

/* 3. Top Telemetry Loading Bar */
/* --------------------------------------------------------------------------
   2.1 TOP TELEMETRY LOADING BAR
   -------------------------------------------------------------------------- */
.page-loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 10000;
  pointer-events: none;
}

.loading-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #aa771c 0%, #d4af37 50%, #f3e5ab 100%);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.8), 0 0 20px rgba(212, 175, 55, 0.4);
  animation: page-load 0.75s var(--ease-cinematic) forwards;
}

@keyframes page-load {
  0% { width: 0%; opacity: 1; }
  70% { width: 85%; opacity: 1; }
  100% { width: 100%; opacity: 0; }
}

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(7, 13, 30, 0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin-pulse 0.65s linear infinite;
  flex-shrink: 0;
}

@keyframes spin-pulse {
  to { transform: rotate(360deg); }
}


/* 4. Range Slider Controls (Native HTML5 Range Track & Thumb) */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #D4AF37;
  border: 2px solid #F3E5AB;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.8);
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #D4AF37;
  border: 2px solid #F3E5AB;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  cursor: pointer;
}

/* 5. Statutory Modals & Off-Canvas Drawers */
/* --------------------------------------------------------------------------
   15. WAITLIST MODAL
   -------------------------------------------------------------------------- */
.waitlist-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.waitlist-modal-backdrop.active {
  display: flex;
  animation: fadeIn var(--transition-normal);
}

/* --------------------------------------------------------------------------
   15.1 STATUTORY SPECIFICATION MODALS (38 CFR & DE LUCA)
   -------------------------------------------------------------------------- */
.spec-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 10, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.spec-modal-backdrop.active {
  display: flex;
  animation: fadeIn var(--transition-normal);
}

.spec-modal-card {
  width: 100%;
  max-width: 620px;
  background: var(--bg-card-core);
  border: 1px solid var(--gold-border);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.85), 0 0 40px var(--gold-glow);
  border-radius: var(--radius-outer);
  padding: clamp(24px, 4vw, 36px);
  position: relative;
}

#spec-modal-deluca .spec-modal-card {
  border-color: var(--emerald-border);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.85), 0 0 40px var(--emerald-glow);
}

.spec-badge-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold-border);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 12px;
}

.spec-badge-pill--emerald {
  color: var(--emerald-light);
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--emerald-border);
}

.spec-modal-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.spec-modal-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}

.spec-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spec-point {
  display: flex;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.spec-point strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.spec-point p {
  color: var(--text-secondary);
}

.point-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.point-num--emerald {
  color: var(--emerald-light);
  background: rgba(16, 185, 129, 0.1);
}

/* Scroll Fade In Dynamics */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-cinematic), transform 0.7s var(--ease-cinematic);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.waitlist-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card-core);
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  border-radius: var(--radius-outer);
  padding: clamp(24px, 4vw, 36px);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.waitlist-alert-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.waitlist-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.waitlist-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.waitlist-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--emerald-border);
  padding: 12px;
  border-radius: 8px;
  color: var(--emerald-light);
  font-size: 0.85rem;
  margin-top: 16px;
}

/* Toast System */
.toast-hub {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: rgba(10, 16, 36, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideToast 0.3s var(--ease-spring);
  max-width: 380px;
}

@keyframes slideToast {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}



/* RESPONSIVE OVERFLOW CONTAINMENT & HEADER FIXES */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  position: relative !important;
}

@media (max-width: 900px) {
  [configuration-id="header-nav"],
  .header-nav {
    display: none !important;
  }
  [configuration-id="header-actions"] {
    display: flex !important;
    gap: 8px !important;
  }
}

/* Modals display transitions */
.spec-modal-backdrop, .lead-gate-modal-overlay, .waitlist-modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: rgba(5, 8, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.spec-modal-backdrop.is-active,
.spec-modal-backdrop[aria-hidden="false"],
.lead-gate-modal-overlay.is-active,
.lead-gate-modal-overlay[aria-hidden="false"],
.waitlist-modal-backdrop.is-active,
.waitlist-modal-backdrop[aria-hidden="false"] {
  display: flex !important;
}

.spec-modal-card, .gate-modal-card, .waitlist-card {
  background: #0A1024 !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
  border-radius: 20px !important;
  padding: 36px 32px !important;
  max-width: 680px !important;
  width: 100% !important;
  max-height: 85vh !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8) !important;
  position: relative !important;
  color: #F8FAFC !important;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: #F8FAFC;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
}
.modal-close-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: #D4AF37;
}
