/* ==========================================================================
   CyberLiabilityCost.com - Cyber Risk & Insurance Estimator Design System
   Color Palette: Matrix Cyber-Emerald & High-Tech Green (#00ff87 / #10b981)
   ========================================================================== */

:root {
  /* Core Dark Theme Color Palette (Default) */
  --bg-dark: #07090e;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-hover: rgba(22, 36, 54, 0.88);
  --bg-card-border: rgba(16, 185, 129, 0.18);
  --bg-card-border-glow: rgba(0, 255, 135, 0.45);
  --bg-input: rgba(11, 17, 32, 0.85);
  --header-bg: rgba(7, 9, 14, 0.9);
  --header-border: rgba(255, 255, 255, 0.08);
  
  /* Primary Accent & Glows - Cyber Emerald Green */
  --accent-cyan: #00ff87;
  --accent-blue: #10b981;
  --accent-purple: #34d399;
  --accent-indigo: #059669;
  
  /* Status Colors */
  --status-low: #10b981;
  --status-moderate: #f59e0b;
  --status-high: #f97316;
  --status-critical: #ef4444;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --heading-color: #ffffff;

  /* Transitions & Shadows */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow-cyan: 0 0 25px rgba(0, 255, 135, 0.25);
  --shadow-glow-purple: 0 0 30px rgba(16, 185, 129, 0.2);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7), 0 0 1px 1px rgba(255, 255, 255, 0.05);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* Full-bleed sections & structural containers */
header, nav, section, footer, main, .site-header, .hero-section, .assessment-section, .site-footer {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Responsive Media Defaults */
img, svg, video, canvas, audio, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* Ambient Cyber Glows & Grid */
.cyber-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -1;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  pointer-events: none;
  z-index: -2;
  animation: floatGlow 12s ease-in-out infinite alternate;
}

.bg-glow-1 {
  width: min(500px, 90vw);
  height: min(500px, 90vw);
  background: radial-gradient(circle, #00ff87, #10b981);
  top: -100px;
  right: -100px;
}

.bg-glow-2 {
  width: min(600px, 95vw);
  height: min(600px, 95vw);
  background: radial-gradient(circle, #10b981, #059669);
  bottom: 5%;
  left: -150px;
  animation-duration: 16s;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.1); }
}

/* Layout Container - Unified Max-Width & Leveled Edges */
.container {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 2.5vw, 2.25rem);
  padding-right: clamp(1rem, 2.5vw, 2.25rem);
  box-sizing: border-box;
}

/* Typography & Utility Classes - Whole Word Expansion & Clean Wrapping */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  color: var(--heading-color);
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.25;
}

p, span, li, label, strong, button, td, th {
  overflow-wrap: break-word;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 50%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  overflow-wrap: break-word;
}

.accent-text {
  color: var(--accent-cyan);
}

.text-success { color: var(--status-low); }
.text-warning { color: var(--status-moderate); }
.text-danger { color: var(--status-critical); }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* Glassmorphism Card Style - Leveled Edges & Consistent Padding */
.glass-card,
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: clamp(1.25rem, 2vw, 1.85rem);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth), background var(--transition-smooth);
  box-sizing: border-box;
}

.glass-card:hover,
.card:hover {
  border-color: var(--bg-card-border-glow);
}

/* Header - Synchronized Level Margins with Page Container */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--header-border);
  padding: 0.85rem 0;
  transition: background var(--transition-smooth), border-color var(--transition-smooth);
  width: 100%;
}

.site-header .header-container {
  width: 100%;
  max-width: 1440px;
  padding-left: clamp(1rem, 2.5vw, 2.25rem);
  padding-right: clamp(1rem, 2.5vw, 2.25rem);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--heading-color);
  cursor: pointer;
  flex-shrink: 0;
}

.brand-version {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(0, 255, 135, 0.08);
  border: 1px solid rgba(0, 255, 135, 0.25);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  margin-left: 0.25rem;
}



.logo-shield {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(0, 255, 135, 0.08);
  border: 1px solid rgba(0, 255, 135, 0.3);
  border-radius: 10px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 0.8vw, 1.15rem);
  flex-shrink: 1;
  min-width: 0;
  margin: 0 1rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: clamp(0.78rem, 0.82vw, 0.875rem);
  font-weight: 500;
  padding: 0.25rem 0.4rem;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent-cyan);
}

/* Navigation Dropdown Menu for Tools & Calculators */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-cyan);
}



.nav-tools-icon {
  font-size: 0.95rem;
  color: var(--accent-cyan);
}

.nav-badge-count {
  background: rgba(0, 255, 135, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 255, 135, 0.35);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  line-height: 1;
}



.dropdown-chevron {
  transition: transform var(--transition-fast);
  color: var(--accent-cyan);
}



.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown.active .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 0;
  width: 320px;
  background: rgba(11, 17, 32, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 255, 135, 0.25);
  border-radius: 14px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 255, 135, 0.12);
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  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;
  z-index: 120;
}



.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 0.35rem 0.65rem 0.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0.2rem;
}



.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: rgba(0, 255, 135, 0.1);
  transform: translateX(4px);
}



.dropdown-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}



.dropdown-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.dropdown-item-info strong {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-main);
}

.dropdown-item:hover .dropdown-item-info strong {
  color: var(--accent-cyan);
}



.dropdown-item-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.25;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
  position: relative;
  z-index: 105;
}

/* Theme Toggle Button (Light/Dark Mode) */




.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--status-low);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--status-low);
  animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* Mobile Hamburger Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
  padding: 8px;
  gap: 5px;
  transition: all var(--transition-fast);
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
}



.mobile-menu-btn:hover,
.mobile-menu-btn:focus-visible {
  border-color: var(--accent-cyan);
  background: rgba(0, 255, 135, 0.1);
  outline: none;
}



.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, background-color 0.2s;
}

.mobile-menu-btn.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--accent-cyan);
}

.mobile-menu-btn.active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-btn.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--accent-cyan);
}

/* Mobile Slide-Out Navigation Drawer */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -105%;
  width: min(88vw, 360px);
  height: 100vh;
  height: 100dvh;
  background: rgba(7, 12, 22, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(0, 255, 135, 0.25);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 255, 135, 0.08);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(1.25rem + env(safe-area-inset-top, 0px)) 1.25rem calc(2rem + env(safe-area-inset-bottom, 0px));
}



.mobile-nav-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}



.drawer-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.drawer-close-btn:hover {
  color: var(--status-critical);
  border-color: var(--status-critical);
  background: rgba(239, 68, 68, 0.12);
}



.drawer-section-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin: 0.85rem 0 0.45rem;
}

.drawer-tools-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.drawer-tool-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  min-height: 44px;
}



.drawer-tool-link:hover,
.drawer-tool-link:active {
  background: rgba(0, 255, 135, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateX(4px);
}



.drawer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.25rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  min-height: 44px;
}

.drawer-link:hover,
.drawer-link:active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}



.drawer-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}




/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00ff87 0%, #10b981 100%);
  color: #07090e;
  box-shadow: 0 4px 18px rgba(0, 255, 135, 0.3);
}



.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 255, 135, 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.15);
}



.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-sm {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.45rem 0.9rem;
  font-size: 0.825rem;
  border-radius: 8px;
}



.btn-outline-sm:hover {
  background: rgba(0, 255, 135, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-full {
  width: 100%;
}

.btn-pulse {
  animation: subtlePulse 3s infinite;
}

@keyframes subtlePulse {
  0% { box-shadow: 0 4px 18px rgba(0, 255, 135, 0.3); }
  50% { box-shadow: 0 4px 28px rgba(0, 255, 135, 0.6); }
  100% { box-shadow: 0 4px 18px rgba(0, 255, 135, 0.3); }
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 0 1.75rem;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-content {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 255, 135, 0.08);
  border: 1px solid rgba(0, 255, 135, 0.25);
  border-radius: 30px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   HERO MID-SECTION SEARCH BAR & COMMAND LAUNCHPAD
   ========================================================================== */
.hero-search-container {
  max-width: 680px;
  width: 100%;
  margin: 0 auto 1.75rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  box-sizing: border-box;
}

.hero-search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.65rem 0.85rem 0.65rem 1rem;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 255, 135, 0.3);
  border-radius: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 255, 135, 0.12);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  user-select: none;
  box-sizing: border-box;
}

.hero-search-bar:hover,
.hero-search-bar:focus-visible {
  border-color: var(--accent-cyan);
  background: rgba(20, 32, 58, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 255, 135, 0.28);
  transform: translateY(-2px);
  outline: none;
}

.hero-search-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.hero-search-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 255, 135, 0.12);
  border: 1px solid rgba(0, 255, 135, 0.25);
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-search-bar:hover .hero-search-icon-circle {
  transform: scale(1.08);
  background: rgba(0, 255, 135, 0.22);
}

.hero-search-icon {
  stroke: var(--accent-cyan);
}

.hero-search-input-mock {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.hero-search-placeholder {
  font-size: clamp(0.82rem, 1.15vw, 0.92rem);
  color: var(--text-muted);
  overflow-wrap: break-word;
  word-break: normal;
  display: block;
  line-height: 1.35;
}

.hero-search-bar:hover .hero-search-placeholder {
  color: var(--text-main);
}

.hero-search-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.hero-search-kbd-group {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.hero-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: var(--text-muted);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-search-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #050811;
  font-weight: 700;
  font-size: 0.8rem;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 255, 135, 0.25);
}

.hero-search-bar:hover .hero-search-submit-btn {
  box-shadow: 0 4px 16px rgba(0, 255, 135, 0.45);
  filter: brightness(1.1);
}

/* Quick Search Suggestions */
.hero-search-suggestions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  width: 100%;
}

.suggestion-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pulse-dot-sm {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
  animation: pulseGlow 2s infinite;
}

.suggestion-chips-scroll {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.hero-search-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: clamp(0.74rem, 0.85vw, 0.8rem);
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow-wrap: break-word;
  line-height: 1.25;
}

.hero-search-tag-chip:hover {
  background: rgba(0, 255, 135, 0.12);
  border-color: rgba(0, 255, 135, 0.4);
  color: var(--text-main);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 255, 135, 0.15);
}

@media (max-width: 680px) {
  .hero-search-container {
    padding: 0 0.5rem;
    margin-bottom: 1.25rem;
  }
  .hero-search-bar {
    padding: 0.55rem 0.75rem;
  }
  .hero-search-kbd-group {
    display: none;
  }
  .hero-search-placeholder {
    font-size: 0.82rem;
  }
  .suggestion-chips-scroll {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .suggestion-label {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.15rem;
  }
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  width: 100%;
  max-width: 100%;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  width: 100%;
  max-width: 100%;
  margin: 0 auto 2rem;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.hero-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  padding: 1.15rem 1rem;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.35rem;
  height: 100%;
  box-sizing: border-box;
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: 700;
  color: var(--accent-cyan);
  overflow-wrap: break-word;
  line-height: 1.15;
}

.stat-label {
  font-size: clamp(0.7rem, 0.78vw, 0.78rem);
  color: var(--text-dim);
  overflow-wrap: break-word;
  line-height: 1.3;
}

/* ==========================================================================
   Hero Tools & Calculators Launchpad Dock (Above the Fold)
   ========================================================================== */
.hero-tools-dock {
  margin-top: 2.25rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(7, 12, 22, 0.94));
  border: 1px solid rgba(0, 255, 135, 0.25);
  border-radius: 18px;
  padding: 1.5rem 1.6rem 1.4rem;
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 255, 135, 0.1);
  text-align: left;
  position: relative;
}



.tools-dock-header {
  margin-bottom: 1.25rem;
}

.tools-dock-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0, 255, 135, 0.1);
  border: 1px solid rgba(0, 255, 135, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  width: fit-content;
}



.dock-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-top: 0.15rem;
}

.dock-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Horizontal Grid with Sideways Scrollbar */
.tools-dock-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.65rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 135, 0.4) rgba(15, 23, 42, 0.6);
}

/* Custom Cyber Sideways Scrollbar */
.tools-dock-grid::-webkit-scrollbar {
  height: 6px;
}

.tools-dock-grid::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 6px;
}

.tools-dock-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 135, 0.35);
  border-radius: 6px;
  transition: background var(--transition-fast);
}

.tools-dock-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 135, 0.8);
  box-shadow: 0 0 10px #00ff87;
}









.tool-dock-card {
  background: rgba(11, 17, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.35rem;
  position: relative;
  transition: all var(--transition-fast);
  cursor: pointer;
  min-width: 150px;
  box-sizing: border-box;
  height: 100%;
}



.tool-dock-card:hover {
  background: rgba(22, 36, 54, 0.95);
  border-color: rgba(0, 255, 135, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -5px rgba(0, 255, 135, 0.25);
}



.tool-dock-card.active {
  border-color: var(--accent-cyan);
  background: rgba(0, 255, 135, 0.08);
  box-shadow: 0 0 16px rgba(0, 255, 135, 0.25);
}



.dock-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}

.dock-card-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.dock-card-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  white-space: nowrap;
}

.tag-primary { background: rgba(0, 255, 135, 0.15); color: #00ff87; border: 1px solid rgba(0, 255, 135, 0.3); }
.tag-success { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.tag-cyan { background: rgba(6, 182, 212, 0.15); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.tag-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.tag-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.tag-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.tag-emerald { background: rgba(5, 150, 105, 0.15); color: #10b981; border: 1px solid rgba(5, 150, 105, 0.3); }









.dock-card-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1.2;
}

.tool-dock-card:hover .dock-card-name {
  color: var(--accent-cyan);
}



.dock-card-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.2;
}

/* ==========================================================================
   Scroll Target Offset & Pulse Highlight Glow Animation
   ========================================================================== */
section[id],
main[id],
.glass-card[id],
#assessment-section,
#investment-section,
#compliance-section,
#resilience-section,
#brand-scanner-section,
#advisor-section,
#what-if-sandbox,
#guides-section,
#cases-section,
#faq-section,
#how-it-works {
  scroll-margin-top: 85px;
}

.target-highlight-glow {
  animation: pulseTargetGlow 1.8s ease-out;
}

@keyframes pulseTargetGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 255, 135, 0.6), 0 0 35px rgba(0, 255, 135, 0.5);
    border-color: #00ff87 !important;
  }
  40% {
    box-shadow: 0 0 0 8px rgba(0, 255, 135, 0.3), 0 0 45px rgba(0, 255, 135, 0.7);
    border-color: #00ff87 !important;
  }
  100% {
    box-shadow: var(--shadow-card);
    border-color: var(--bg-card-border);
  }
}



@keyframes pulseTargetGlowLight {
  0% {
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.5), 0 0 25px rgba(5, 150, 105, 0.4);
    border-color: #059669 !important;
  }
  40% {
    box-shadow: 0 0 0 8px rgba(5, 150, 105, 0.2), 0 0 35px rgba(5, 150, 105, 0.5);
    border-color: #059669 !important;
  }
  100% {
    box-shadow: var(--shadow-card);
    border-color: var(--bg-card-border);
  }
}

/* Google AdSense Slot Styling */
.ad-wrapper {
  margin: 1.5rem auto;
}

.ad-slot {
  background: var(--bg-card);
  border: 1px dashed var(--bg-card-border);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  position: relative;
  overflow: hidden;
  text-align: center;
  transition: border-color var(--transition-fast);
}

.ad-slot:hover {
  border-color: var(--accent-cyan);
}

.ad-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.ad-slot-leaderboard {
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-slot-sidebar {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-slot-incontent {
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-simulated-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.ad-simulated-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Main Assessment Section & Grid */
.main-content {
  padding: 1rem 0 3.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.grid-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

/* Wizard Stepper Tabs */
.stepper-header {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
  margin-bottom: 1.75rem;
}



.step-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: clamp(0.78rem, 0.85vw, 0.875rem);
  font-weight: 600;
  padding: 0.6rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1.25;
  text-align: center;
  box-sizing: border-box;
}

.step-tab .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  flex-shrink: 0;
}



.step-tab.active {
  color: var(--text-main);
  background: rgba(0, 255, 135, 0.08);
}

.step-tab.active .step-num {
  background: var(--accent-cyan);
  color: #000;
  font-weight: 700;
}

.step-tab.completed {
  color: var(--status-low);
}

.step-tab.completed .step-num {
  background: var(--status-low);
  color: #000;
}

/* Wizard Panels */
.wizard-panel {
  display: none;
  animation: fadeInPanel 0.3s ease;
}

.wizard-panel.active {
  display: block;
}

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

.panel-heading {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.panel-subheading {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.required {
  color: var(--status-critical);
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.metric-display {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(0, 255, 135, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 255, 135, 0.2);
}

.form-select, .form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.form-select:focus, .form-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 255, 135, 0.15);
}

/* Range Slider */
.form-range {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}



.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-cyan);
  border: 2px solid #fff;
  transition: transform 0.15s;
}

.form-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
  font-family: var(--font-mono);
}

/* Checkbox Grid Pills */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.checkbox-pill {
  position: relative;
  display: block;
  cursor: pointer;
}

.checkbox-pill input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.pill-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}



.checkbox-pill input:checked + .pill-content {
  background: rgba(0, 255, 135, 0.1);
  border-color: var(--accent-cyan);
  color: var(--text-main);
  box-shadow: 0 0 12px rgba(0, 255, 135, 0.15);
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}



/* "What-If" Card & Switch Controls */
.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  gap: 1rem;
}

.card-title {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.card-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.badge-discount {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--status-low);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  white-space: nowrap;
}

.what-if-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.what-if-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  transition: border-color var(--transition-fast);
}



.what-if-toggle-item:hover {
  border-color: var(--accent-cyan);
}

.toggle-info {
  display: flex;
  flex-direction: column;
}

.toggle-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading-color);
}

.toggle-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Switch Toggle UI */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.3s;
  border-radius: 24px;
}



.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  box-shadow: 0 0 10px rgba(0, 255, 135, 0.4);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Right Column: Score & Dashboard Cards */
.results-column {
  position: sticky;
  top: 5rem;
}

.score-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  background: rgba(0, 255, 135, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.timestamp-badge {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* Radial Gauge Styling */
.score-gauge-container {
  position: relative;
  width: min(240px, 100%);
  margin: 0 auto 1.25rem;
  text-align: center;
  box-sizing: border-box;
}

.score-gauge-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.gauge-bg {
  stroke: rgba(255, 255, 255, 0.08);
}

.gauge-fill {
  stroke: var(--accent-cyan);
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.4s;
  filter: drop-shadow(0 0 8px rgba(0, 255, 135, 0.6));
}

.score-center-text {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--heading-color);
}

.score-scale {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.score-status-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: 20px;
}

.badge-low {
  background: rgba(16, 185, 129, 0.15);
  color: var(--status-low);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-moderate {
  background: rgba(245, 158, 11, 0.15);
  color: var(--status-moderate);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-high {
  background: rgba(249, 115, 22, 0.15);
  color: var(--status-high);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.badge-critical {
  background: rgba(239, 68, 68, 0.15);
  color: var(--status-critical);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Score Metrics Grid */
.score-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
}



.score-metric-box {
  background: var(--bg-input);
  padding: 0.85rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

.metric-title {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.2rem 0;
}

.metric-sub {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* Insurance Card & Pricing */
.billing-toggle-group {
  display: flex;
  background: var(--bg-input);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}



.btn-toggle {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-toggle.active {
  background: rgba(0, 255, 135, 0.15);
  color: var(--accent-cyan);
}

.policy-limit-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  width: 100%;
}

.limit-tab {
  flex: 1 1 calc(25% - 0.4rem);
  min-width: 60px;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: clamp(0.72rem, 0.8vw, 0.8rem);
  font-weight: 600;
  padding: 0.5rem 0.35rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  box-sizing: border-box;
  overflow-wrap: break-word;
}



.limit-tab.active {
  background: rgba(0, 255, 135, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Premium Highlight Box */
.premium-highlight-box {
  background: var(--bg-input);
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  padding: 1.25rem;
}

.premium-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}



.premium-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin: 0.25rem 0;
}

.currency-symbol {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.price-value {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--heading-color);
  letter-spacing: -0.03em;
}

.price-period {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.savings-note {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.highlight-green {
  color: var(--status-low);
  font-weight: 600;
}

.retention-box {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  text-align: right;
}



.retention-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
}

.retention-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading-color);
}

/* Coverage Grid */
.coverage-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.coverage-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.coverage-item strong {
  color: var(--text-main);
}

.check-icon {
  color: var(--status-low);
  font-weight: bold;
}

/* Loss Breakdown Bar */
.card-title-sm {
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.loss-bar-container {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 0.85rem;
}



.loss-segment {
  height: 100%;
  transition: width 0.6s ease;
}

.seg-ransomware { background-color: #ef4444; }
.seg-business { background-color: #f97316; }
.seg-legal { background-color: #8b5cf6; }
.seg-forensics { background-color: #00ff87; }

.loss-legend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Compliance Matrix Section */
.compliance-section {
  padding: 3.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}



.compliance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.compliance-card {
  display: flex;
  flex-direction: column;
}

.compliance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.badge-flag {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading-color);
}

.status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
}

.pill-pass {
  background: rgba(16, 185, 129, 0.15);
  color: var(--status-low);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.compliance-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.compliance-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.check-sym {
  font-weight: bold;
}

.fine-warning-box {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.85rem 1rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.8rem;
}

.fine-warning-box span {
  color: var(--status-critical);
  font-weight: 600;
}

.fine-warning-box strong {
  color: var(--heading-color);
}

/* Resilience Section (ARI) */
.resilience-section {
  padding: 0 0 3.5rem;
}

.resilience-box {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
}

.resilience-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.resilience-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.75rem 0 1.5rem;
}

.ari-inputs-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ari-score-card {
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
}



.ari-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.ari-grade {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--status-low);
  background: rgba(16, 185, 129, 0.15);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.ari-bar-wrap {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}



.ari-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #00ff87);
  border-radius: 6px;
  transition: width 0.6s ease;
}

.ari-stats-table {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ari-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}



.ari-stat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Brand Scanner Section */
.brand-scanner-section {
  padding: 0 0 3.5rem;
}

.scanner-search-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.search-input-wrap {
  position: relative;
  flex-grow: 1;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
}

.search-field {
  padding-left: 2.75rem;
  font-size: 1rem;
}

.scanner-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.threat-domain-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}



.threat-domain-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.threat-domain-table th {
  background: var(--bg-input);
  padding: 0.85rem 1rem;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.threat-domain-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--bg-card);
}

.threat-domain-table tr:hover td {
  background: rgba(0, 255, 135, 0.04);
}

.threat-domain-name {
  font-family: var(--font-mono);
  color: var(--heading-color);
  font-weight: 600;
}

.threat-badge-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* AI vCISO Advisor Section */
.advisor-section {
  padding: 0 0 3.5rem;
}

.advisor-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.advisor-title-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.advisor-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.advisor-recommendations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.rec-card {
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  transition: border-color var(--transition-fast);
}



.rec-card:hover {
  border-color: var(--accent-cyan);
}

.rec-num {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}



.rec-body strong {
  display: block;
  font-size: 0.95rem;
  color: var(--heading-color);
  margin-bottom: 0.35rem;
}

.rec-body p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.rec-impact {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-family: var(--font-mono);
}

/* ==========================================================================
   High-Value SEO Guides & Educational Sections
   ========================================================================== */
.guide-section {
  padding: 3.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}



.guide-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.guide-icon {
  font-size: 1.75rem;
}

.guide-card h3 {
  font-size: 1.1rem;
  color: var(--heading-color);
}

.guide-card p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.guide-tag-pill {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.5rem;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--accent-cyan);
}



/* Real-World Claim Case Studies */
.case-study-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.case-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
}

.case-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.case-industry {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(0, 255, 135, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.case-loss-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--status-critical);
}

.case-card h3 {
  font-size: 1.15rem;
  line-height: 1.3;
}

.case-card p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.case-payout-box {
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.775rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}



.payout-row {
  display: flex;
  justify-content: space-between;
}

.payout-row strong {
  color: var(--status-low);
}

/* ==========================================================================
   FAQ Accordion Section (Reddit & Quora High-Value Q&A)
   ========================================================================== */
.faq-section {
  padding: 3.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}



.faq-search-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 2rem;
}

.faq-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--bg-card-border-glow);
}

.faq-item.active {
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 20px rgba(0, 255, 135, 0.1);
}

.faq-header-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  gap: 1rem;
}

.faq-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  margin-right: 0.5rem;
}



.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--accent-cyan);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 1.5rem;
}

.faq-item.active .faq-body {
  max-height: 1200px;
}

.faq-body-inner {
  padding-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.85rem;
}



.faq-body-inner strong {
  color: var(--heading-color);
}

.faq-body-inner ul {
  margin: 0.5rem 0 0.5rem 1.25rem;
}

.faq-source-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Benchmarks Section */
.benchmarks-section {
  padding: 3.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}



.section-header-center {
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 3rem;
}

.section-title {
  font-size: 2rem;
  margin: 0.75rem 0 0.5rem;
  width: 100%;
  max-width: 100%;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  width: 100%;
  max-width: 100%;
}

.benchmarks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.benchmark-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.benchmark-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.benchmark-icon {
  font-size: 1.25rem;
}

.benchmark-stat {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--heading-color);
}

.benchmark-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  flex-grow: 1;
}

.benchmark-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin: 0.5rem 0;
}



.benchmark-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  border-radius: 4px;
}

.benchmark-risk-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.tag-high { background: rgba(249, 115, 22, 0.15); color: var(--status-high); }
.tag-critical { background: rgba(239, 68, 68, 0.15); color: var(--status-critical); }
.tag-moderate { background: rgba(245, 158, 11, 0.15); color: var(--status-moderate); }

/* Methodology Section */
.methodology-section {
  padding: 0 0 4rem;
}

.methodology-box {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
}

.methodology-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.methodology-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.methodology-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.methodology-list {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.methodology-list li strong {
  color: var(--text-main);
}

.cert-badges-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trust-badge {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem;
  border-radius: 12px;
}



.trust-icon {
  font-size: 1.5rem;
}

.trust-badge strong {
  display: block;
  font-size: 0.9rem;
  color: var(--heading-color);
  margin-bottom: 0.15rem;
}

.trust-badge p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--header-border);
  padding: 3.5rem 0 2.5rem;
  background: #05070a;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-left {
  max-width: 380px;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.75rem 0 1.25rem;
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.link-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.link-col strong {
  color: var(--heading-color);
  margin-bottom: 0.25rem;
}

.link-col a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.link-col a:hover {
  color: var(--accent-cyan);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  box-sizing: border-box;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  width: 100%;
  max-width: 520px;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border-glow);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), var(--shadow-glow-cyan);
}



.modal-dialog-lg {
  max-width: 680px;
  max-height: 80vh;
  overflow-y: auto;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal-content h3 {
  color: var(--heading-color);
  font-size: 1.5rem;
}

.legal-content h4 {
  color: var(--accent-cyan);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.legal-content a {
  color: var(--accent-cyan);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

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

.modal-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.modal-shield-icon {
  font-size: 2.2rem;
  margin-bottom: 0.35rem;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.modal-summary-pill {
  display: flex;
  justify-content: space-around;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.65rem;
  border-radius: 10px;
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}



.modal-summary-pill strong {
  color: var(--accent-cyan);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.modal-success-state {
  text-align: center;
  padding: 1.5rem 0;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--accent-cyan);
  padding: 1rem clamp(1rem, 3vw, 1.5rem);
  z-index: 998;
  display: none;
  animation: slideUpCookie 0.4s ease;
}



@keyframes slideUpCookie {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-content {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cookie-content a {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.cookie-actions {
  flex-shrink: 0;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--accent-cyan);
  color: var(--text-main);
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-size: 0.875rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideInToast 0.3s ease;
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   Comprehensive Phone & Tablet Responsive System (320px - 1024px)
   ========================================================================== */

/* Touch-Friendly Global Defaults */
@media (hover: none) and (pointer: coarse) {
  .btn, .step-tab, .limit-tab, .checkbox-pill, .what-if-toggle-item,
  .initiative-checkbox-card, .btn-preset-sm, .filter-pill, .faq-header-btn,
  .drawer-tool-link, .drawer-link, .modal-close {
    cursor: default;
    -webkit-tap-highlight-color: transparent;
  }
}

/* Responsive Breakpoints & Multi-Device Architecture
   ========================================================================== */

/* Medium Desktop Viewports adjustments (keeps all nav items fluidly spaced) */
@media (min-width: 769px) {
  .header-nav {
    display: flex !important;
  }
  .mobile-menu-btn {
    display: none !important;
  }
  .lang-code-text {
    display: inline-block !important;
  }
  .mobile-bottom-nav {
    display: none !important;
  }
}

/* Smart Phones & Compact Touch Devices (<= 768px) */
@media (max-width: 768px) {
  .site-header .header-container {
    padding: 0 1rem;
    gap: 0.5rem;
  }

  .header-nav {
    display: none !important;
  }

  .mobile-menu-btn {
    display: flex;
    flex-shrink: 0;
  }

  .brand-version {
    display: none;
  }

  .badge-live {
    font-size: 0.7rem;
    padding: 0.25rem 0.55rem;
  }

  .header-actions {
    margin-left: auto;
    gap: 0.45rem;
  }

  .lang-code-text {
    display: none;
  }

  .lang-dropdown-menu {
    right: 0;
    left: auto;
    width: 290px;
    max-width: calc(100% - 24px);
  }

  .grid-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .results-column {
    position: static;
    top: auto;
  }

  .allocator-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .roi-summary-card {
    position: static;
    top: auto;
  }

  .compliance-grid,
  .resilience-grid,
  .methodology-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .benchmarks-grid,
  .guide-grid-4,
  .case-study-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .advisor-recommendations-grid {
    grid-template-columns: 1fr;
  }

  .roadmap-tiers-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Smart Phones & Compact Viewports (<= 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 1.15rem;
  }

  .hero-section {
    padding: 2.25rem 0 1.25rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 5.5vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .hero-stat-card {
    padding: 0.85rem 0.75rem;
  }

  .stat-value {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.72rem;
  }

  /* Tools Launchpad Dock Phone Swipe */
  .hero-tools-dock {
    margin-top: 1.75rem;
    padding: 1.25rem 1rem 1rem;
    border-radius: 14px;
  }

  .tools-dock-title-group .dock-title {
    font-size: 1.15rem;
  }

  .tools-dock-title-group .dock-subtitle {
    font-size: 0.8rem;
  }

  .tools-dock-grid {
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    gap: 0.65rem;
  }

  .tool-dock-card {
    min-width: 140px;
    scroll-snap-align: start;
    padding: 0.75rem 0.65rem;
  }

  /* Section Titles */
  .section-title {
    font-size: 1.65rem;
  }

  .section-subtitle {
    font-size: 0.88rem;
  }

  .section-header-center {
    margin-bottom: 2rem;
  }

  /* Cards Grids */
  .benchmarks-grid,
  .guide-grid-4,
  .case-study-grid,
  .advisor-recommendations-grid,
  .strategy-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Stepper Header */
  .stepper-header {
    gap: 0.35rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .step-tab {
    font-size: 0.78rem;
    padding: 0.45rem 0.35rem;
    gap: 0.35rem;
  }

  .step-tab .step-num {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
  }

  /* Strategy Masterclass Filters */
  .masterclass-filters {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.65rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .masterclass-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-pill {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 6px 14px;
  }

  /* Cookie Banner */
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    width: 100%;
  }

  /* Modal Dialog */
  .modal-dialog {
    max-width: min(calc(100% - 1.5rem), 520px);
    width: 100%;
    padding: 1.5rem 1.25rem;
    border-radius: 14px;
    margin: auto;
    box-sizing: border-box;
  }

  .modal-summary-pill {
    flex-direction: column;
    text-align: center;
    gap: 0.35rem;
    padding: 0.65rem 0.75rem;
  }

  .legal-content {
    max-height: 70vh;
  }
}

/* Phone Viewports (<= 600px) */
@media (max-width: 600px) {
  .container {
    padding: 0 1rem;
  }

  /* Header Compact */
  .site-header {
    padding: 0.65rem 0;
  }

  .brand-logo {
    gap: 0.5rem;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-version {
    display: none;
  }

  .badge-live {
    display: none;
  }

  .btn-outline-sm#btn-quick-export {
    display: none;
  }

  /* Glass Card Padding */
  .glass-card {
    padding: 1.25rem 1rem;
    border-radius: 14px;
  }

  /* Forms & Touch Inputs */
  .form-group {
    margin-bottom: 1.15rem;
  }

  .form-select,
  .form-input {
    font-size: 16px; /* Prevents auto-zoom in iOS Safari */
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    min-height: 44px;
  }

  .form-label {
    font-size: 0.825rem;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .pill-content {
    padding: 0.75rem 0.85rem;
    font-size: 0.825rem;
    min-height: 46px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .range-labels {
    font-size: 0.7rem;
  }

  /* Policy Limit Selector Tabs: 2x2 Touch Grid */
  .policy-limit-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }

  .limit-tab {
    padding: 0.65rem 0.4rem;
    font-size: 0.78rem;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Premium Box */
  .premium-highlight-box {
    padding: 1rem;
  }

  .premium-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .price-value {
    font-size: 2rem;
  }

  .currency-symbol {
    font-size: 1.25rem;
  }

  .retention-box {
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.75rem;
  }

  .coverage-features-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .coverage-item {
    font-size: 0.75rem;
  }

  /* Loss Breakdown */
  .loss-legend-grid {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  /* "What-If" Sandbox */
  .card-header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .badge-discount {
    align-self: flex-start;
  }

  .what-if-toggle-item {
    padding: 0.65rem 0.75rem;
    gap: 0.75rem;
  }

  .toggle-title {
    font-size: 0.825rem;
  }

  .toggle-sub {
    font-size: 0.7rem;
    line-height: 1.25;
  }

  /* Radial Gauge */
  .score-gauge-container {
    width: 190px;
    margin-bottom: 1rem;
  }

  .score-number {
    font-size: 2.5rem;
  }

  .score-metrics-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .score-metric-box {
    padding: 0.75rem;
  }

  .metric-val {
    font-size: 1.15rem;
  }

  /* Investment Allocator */
  .allocator-header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .allocator-title-row {
    gap: 10px;
  }

  .allocator-title-row .title-icon {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }

  .budget-presets-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .btn-preset-sm {
    padding: 7px 6px;
    font-size: 0.75rem;
    text-align: center;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .initiative-checkbox-card {
    padding: 10px 12px;
    gap: 10px;
  }

  .initiative-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .initiative-meta-row {
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 0.7rem;
  }

  .roi-summary-card {
    padding: 1.25rem 1rem;
  }

  .roi-number {
    font-size: 2.4rem;
  }

  .roi-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .roi-stat-box {
    padding: 8px 10px;
  }

  .stat-figure {
    font-size: 0.95rem;
  }

  /* Brand Scanner Search Bar */
  .scanner-search-bar {
    flex-direction: column;
    gap: 0.65rem;
  }

  .scanner-search-bar .btn {
    width: 100%;
    min-height: 46px;
  }

  .scanner-results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* Table Touch Wrapper */
  .threat-domain-table th,
  .threat-domain-table td {
    padding: 0.65rem 0.75rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  /* FAQ Accordion */
  .faq-header-btn {
    padding: 1rem 1.15rem;
    font-size: 0.925rem;
    gap: 0.75rem;
  }

  .faq-body {
    padding: 0 1.15rem;
  }

  .faq-body-inner {
    font-size: 0.85rem;
  }

  /* Footer Links */
  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Offline Banner */
  .offline-banner {
    bottom: 12px;
    left: 12px;
    right: 12px;
    max-width: 100%;
    padding: 12px 14px;
    flex-direction: column;
    gap: 0.65rem;
  }

  .offline-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }

  /* Toasts */
  .toast-container {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    align-items: center;
  }

  .toast {
    width: 100%;
    max-width: 400px;
  }
}

/* Small Phones (<= 420px - iPhone SE, Galaxy S, Pixel) */
@media (max-width: 420px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  /* Stepper Tab Numbers Only for Ultra-Clean Header */
  .stepper-header .step-text {
    display: none;
  }

  .step-tab {
    padding: 0.55rem 0.25rem;
    justify-content: center;
  }

  .step-tab .step-num {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
    font-weight: 700;
  }

  .wizard-actions {
    flex-direction: column-reverse;
    gap: 0.65rem;
  }

  .wizard-actions .btn {
    width: 100%;
  }

  .roi-stats-grid {
    grid-template-columns: 1fr;
  }

  .allocator-title-row .card-title {
    font-size: 1.05rem;
  }

  .brand-logo .brand-name {
    font-size: 0.92rem;
  }

  .logo-shield {
    width: 32px;
    height: 32px;
  }

  .logo-shield svg {
    width: 20px;
    height: 20px;
  }

  

  .mobile-menu-btn {
    width: 36px;
    height: 36px;
  }

  .error-glitch-number {
    font-size: 3.5rem;
  }

  .error-title {
    font-size: 1.45rem;
  }

  .error-actions {
    flex-direction: column;
    width: 100%;
  }

  .error-actions .btn {
    width: 100%;
  }
}

/* Print Styles */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .site-header, .btn, .what-if-card, .stepper-header, .wizard-actions, .site-footer, .bg-glow, .cyber-grid-overlay, .modal-backdrop, .brand-scanner-section, .advisor-section, .ad-wrapper, .ad-slot, .cookie-banner, .faq-section, .offline-banner {
    display: none !important;
  }
  .glass-card {
    background: #fff !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    color: #000 !important;
  }
  .score-number, .stat-value, .price-value {
    color: #000 !important;
  }
  .grid-layout {
    display: block !important;
  }
}

/* ==========================================================================
   Error & Network Failure Page Styles (404, 500, Offline Resilience)
   ========================================================================== */
.error-page-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-dark);
  color: var(--text-main);
}

.error-page-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  position: relative;
  z-index: 10;
}

.error-hero-card {
  max-width: 880px;
  width: 100%;
  text-align: center;
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  border-radius: var(--card-radius, 20px);
}

.error-hero-card.border-error {
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(239, 68, 68, 0.15);
}

.error-hero-card.border-warning {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(245, 158, 11, 0.15);
}

.error-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  background: rgba(0, 255, 135, 0.08);
  border: 1px solid rgba(0, 255, 135, 0.25);
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.error-badge-pill.pill-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--status-critical);
}

.error-badge-pill.pill-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--status-moderate);
}

.error-visual-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  margin-bottom: 16px;
}

.error-glitch-number {
  font-family: var(--font-heading);
  font-size: 5.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 35px rgba(0, 255, 135, 0.4);
  position: relative;
  z-index: 2;
}

.error-glitch-number.number-danger {
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 35px rgba(239, 68, 68, 0.4);
}

.offline-icon-wrapper {
  color: var(--status-moderate);
  animation: pulseOffline 2.5s ease-in-out infinite;
  z-index: 2;
}

@keyframes pulseOffline {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.6)); }
}

.error-radar-ring {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 255, 135, 0.3);
  animation: rotateRadar 16s linear infinite;
  pointer-events: none;
}

.error-radar-ring.ring-danger {
  border-color: rgba(239, 68, 68, 0.3);
}

.error-radar-ring.ring-warning {
  border-color: rgba(245, 158, 11, 0.3);
}

@keyframes rotateRadar {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--heading-color);
  margin-bottom: 12px;
}

.error-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 28px auto;
  line-height: 1.6;
}

/* Terminal Diagnostics Box */
.error-terminal-box {
  background: rgba(5, 8, 15, 0.95);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  text-align: left;
  margin: 0 auto 32px auto;
  max-width: 680px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}



.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.terminal-body {
  padding: 16px 20px;
  font-size: 0.85rem;
  line-height: 1.7;
}

.term-line {
  margin-bottom: 4px;
}

.term-cyan { color: var(--accent-cyan); }
.term-green { color: var(--status-low); }
.term-yellow { color: var(--status-moderate); }
.term-red { color: var(--status-critical); }
.term-dim { color: var(--text-dim); }
.term-white { color: #f8fafc; }

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.error-quicklinks-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  text-align: left;
}



.quicklinks-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--heading-color);
  margin-bottom: 18px;
  text-align: center;
}

.error-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.error-bento-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  text-decoration: none;
  border-radius: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  color: var(--text-main);
  background: var(--bg-card);
}

.error-bento-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
}

.bento-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.bento-text h4 {
  font-size: 0.95rem;
  font-family: var(--font-heading);
  margin-bottom: 4px;
  color: var(--heading-color);
}

.bento-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Zero Knowledge Notice Card */
.zero-knowledge-notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
  padding: 20px;
  border-radius: 12px;
  background: rgba(0, 255, 135, 0.04);
  border: 1px solid rgba(0, 255, 135, 0.15);
  margin-top: 20px;
}

.zero-knowledge-notice .notice-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.zero-knowledge-notice h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--heading-color);
  margin-bottom: 4px;
}

.zero-knowledge-notice p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Offline Page Ping Card & Troubleshoot Grid */
.ping-card {
  padding: 18px 24px;
  border-radius: 12px;
  margin-bottom: 28px;
  background: rgba(15, 23, 42, 0.8);
}

.ping-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ping-status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-beacon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--status-moderate);
  box-shadow: 0 0 10px var(--status-moderate);
}

.status-beacon.online {
  background: var(--status-low);
  box-shadow: 0 0 12px var(--status-low);
}

.ping-status-text {
  font-size: 0.85rem;
  font-weight: 600;
}

.ping-hint {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 8px 0 0 0;
  text-align: left;
}

.troubleshoot-box {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: left;
}



.troubleshoot-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--heading-color);
  margin-bottom: 16px;
}

.troubleshoot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.troubleshoot-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  color: var(--status-moderate);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.troubleshoot-step strong {
  font-size: 0.85rem;
  color: var(--heading-color);
  display: block;
  margin-bottom: 2px;
}

.troubleshoot-step p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* ==========================================================================
   In-App Floating Offline Banner
   ========================================================================== */
.offline-banner {
  position: fixed;
  bottom: 24px;
  left: 20px;
  right: 20px;
  max-width: 680px;
  margin: 0 auto;
  z-index: 9998;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.2);
  padding: 14px 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: bannerSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}



.offline-banner.active {
  display: flex;
}

@keyframes bannerSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.offline-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.offline-banner-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.offline-banner-text {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.4;
}

.offline-banner-text strong {
  color: var(--status-moderate);
  display: block;
}

.offline-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ==========================================================================
   Global Error Boundary Modal Styles
   ========================================================================== */
.error-boundary-dialog {
  max-width: 600px;
  border-color: rgba(239, 68, 68, 0.4);
}

.error-boundary-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.error-boundary-icon {
  font-size: 2rem;
  color: var(--status-critical);
}

.error-boundary-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--heading-color);
  margin: 0 0 4px 0;
}

.diag-code-block {
  background: #05080f;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #fca5a5;
  max-height: 140px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 14px 0;
  line-height: 1.5;
}



.error-boundary-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ==========================================================================
   Cyber Investment Strategy & Capital Allocation Section Styles
   ========================================================================== */
.investment-section {
  padding: 2.5rem 0 4rem;
}

.investment-allocator-card {
  border: 1px solid rgba(0, 255, 135, 0.22);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(7, 12, 22, 0.94));
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 135, 0.08);
  position: relative;
  overflow: hidden;
}



.allocator-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 1rem;
}



.allocator-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.allocator-title-row .title-icon {
  font-size: 2rem;
  background: rgba(0, 255, 135, 0.12);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(0, 255, 135, 0.25);
}

.allocator-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .allocator-grid {
    grid-template-columns: 1fr;
  }
}

.budget-presets-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.btn-preset-sm {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-preset-sm:hover {
  background: rgba(0, 255, 135, 0.12);
  color: var(--text-main);
  border-color: rgba(0, 255, 135, 0.3);
}

.btn-preset-sm.active {
  background: rgba(0, 255, 135, 0.2);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  font-weight: 600;
  box-shadow: 0 0 12px rgba(0, 255, 135, 0.2);
}





.investment-initiatives-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 6px;
}

.investment-initiatives-list::-webkit-scrollbar {
  width: 6px;
}

.investment-initiatives-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.initiative-checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(11, 17, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}



.initiative-checkbox-card:hover {
  background: rgba(22, 36, 54, 0.9);
  border-color: rgba(0, 255, 135, 0.3);
  transform: translateY(-1px);
}



.initiative-checkbox-card.selected {
  border-color: rgba(0, 255, 135, 0.4);
  background: rgba(0, 255, 135, 0.05);
}



.initiative-checkbox-card input[type="checkbox"] {
  margin-top: 4px;
  accent-color: var(--accent-cyan);
  width: 17px;
  height: 17px;
  cursor: pointer;
  flex-shrink: 0;
}

.initiative-info {
  flex-grow: 1;
}

.initiative-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.initiative-header-row strong {
  font-size: 0.9rem;
  color: var(--heading-color);
}

.initiative-discount-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--status-low);
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  flex-shrink: 0;
}

.initiative-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.35;
}

.initiative-meta-row {
  display: flex;
  gap: 12px;
  font-size: 0.73rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

/* Allocator ROI Summary Card */
.roi-summary-card {
  background: rgba(11, 17, 32, 0.85);
  border: 1px solid rgba(0, 255, 135, 0.2);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 90px;
}



.roi-summary-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  background: rgba(0, 255, 135, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 135, 0.2);
}

.roi-hero-metric {
  text-align: center;
  padding: 1rem 0;
  background: radial-gradient(circle, rgba(0, 255, 135, 0.08) 0%, transparent 70%);
  border-radius: 12px;
}

.roi-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: #00ff87;
  text-shadow: 0 0 25px rgba(0, 255, 135, 0.4);
  line-height: 1;
  margin-bottom: 6px;
}



.roi-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.roi-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.roi-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}



.stat-caption {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.stat-figure {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
}

.stat-helper {
  font-size: 0.7rem;
  margin-top: 2px;
  color: var(--text-muted);
}

.capital-efficiency-gauge-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gauge-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.efficiency-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}



.efficiency-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #00ff87);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.strategic-callout-box {
  display: flex;
  gap: 12px;
  background: rgba(0, 255, 135, 0.06);
  border: 1px solid rgba(0, 255, 135, 0.18);
  border-radius: 10px;
  padding: 12px;
  font-size: 0.82rem;
  line-height: 1.4;
}



.callout-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.callout-content strong {
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 2px;
}

/* Masterclass Filters & Grid */
.masterclass-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  background: rgba(0, 255, 135, 0.1);
  color: var(--text-main);
  border-color: rgba(0, 255, 135, 0.3);
}

.filter-pill.active {
  background: linear-gradient(135deg, rgba(0, 255, 135, 0.2), rgba(16, 185, 129, 0.3));
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  font-weight: 600;
  box-shadow: 0 0 15px rgba(0, 255, 135, 0.2);
}





.strategy-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .strategy-cards-grid {
    grid-template-columns: 1fr;
  }
}

.strategy-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.strategy-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 255, 135, 0.35);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 255, 135, 0.12);
}



.strategy-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.strategy-role-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-cfo {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-ciso {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-legal {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.strategy-roi-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.strategy-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--heading-color);
  margin-bottom: 8px;
  line-height: 1.35;
}

.strategy-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.strategy-deep-dive {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}



.detail-block {
  font-size: 0.82rem;
  line-height: 1.4;
}

.detail-block strong {
  display: block;
  color: var(--text-main);
  margin-bottom: 2px;
  font-size: 0.8rem;
}

.detail-gotcha {
  background: rgba(239, 68, 68, 0.08);
  border-left: 3px solid var(--status-critical);
  padding: 8px 10px;
  border-radius: 0 6px 6px 0;
}

.detail-gotcha strong {
  color: #fca5a5;
}





.detail-checklist {
  background: rgba(0, 255, 135, 0.04);
  border: 1px dashed rgba(0, 255, 135, 0.2);
  border-radius: 6px;
  padding: 10px;
  font-size: 0.8rem;
}



.detail-checklist strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-cyan);
}

.detail-checklist ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.detail-checklist li {
  color: var(--text-muted);
}

/* 3-Tier Implementation Roadmap Styles */
.investment-roadmap-card {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.roadmap-header {
  text-align: center;
  margin-bottom: 2rem;
}

.roadmap-header h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--heading-color);
  margin: 8px 0 4px;
}

.roadmap-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.roadmap-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .roadmap-tiers-grid {
    grid-template-columns: 1fr;
  }
}

.roadmap-tier-box {
  background: rgba(11, 17, 32, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}



.roadmap-tier-box:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 135, 0.3);
}



.tier-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.tier-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tier-quick-wins .tier-tag {
  color: #34d399;
}

.tier-strategic .tier-tag {
  color: #60a5fa;
}

.tier-enterprise .tier-tag {
  color: #c084fc;
}

.tier-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

.tier-cost-range {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 6px;
}

.tier-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.35;
}

.tier-action-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 1rem;
}

.tier-action-list strong {
  color: var(--text-main);
}

.tier-impact-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}



/* ==========================================================================
   Actuarial Methodology & Trust Section
   ========================================================================== */
.methodology-section {
  padding: 4rem 0 3rem;
  position: relative;
}

.methodology-box {
  padding: 2.5rem;
  border-radius: 18px;
}

.methodology-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .methodology-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.methodology-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.85rem;
}

.methodology-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.methodology-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.methodology-list li {
  position: relative;
  padding-left: 1.25rem;
}

.methodology-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: 700;
}



.methodology-list strong {
  color: var(--text-main);
}

.cert-badges-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trust-badge {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(11, 17, 32, 0.7);
  border: 1px solid rgba(0, 255, 135, 0.2);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.trust-badge:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
}



.trust-icon {
  font-size: 1.65rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.trust-badge strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--heading-color);
  margin-bottom: 0.25rem;
}

.trust-badge p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, transparent, rgba(7, 12, 22, 0.95) 25%, #050811);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4.5rem 0 3.5rem;
  position: relative;
  margin-top: 2rem;
}



.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 3.5rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-left .brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--heading-color);
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.copyright {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 600px) {
  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.link-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.link-col strong {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.link-col a {
  font-size: 0.84rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.link-col a:hover {
  color: var(--accent-cyan);
  transform: translateX(3px);
}



/* ==========================================================================
   Modals & Overlays (Critical for Proper Scroll Flow)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  box-sizing: border-box;
  background: rgba(7, 12, 22, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-backdrop.open {
  display: flex;
}



.modal-dialog {
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  padding: 2rem;
  position: relative;
  margin: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 255, 135, 0.15);
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-dialog-lg {
  max-width: 680px;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
}



.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-shield-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.35rem;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.modal-summary-pill {
  display: flex;
  justify-content: space-around;
  gap: 0.5rem;
  background: rgba(0, 255, 135, 0.06);
  border: 1px solid rgba(0, 255, 135, 0.2);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}



.modal-summary-pill strong {
  color: var(--accent-cyan);
}



.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.modal-success-state {
  text-align: center;
  padding: 1.5rem 0;
}

.success-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.modal-success-state h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
}

.modal-success-state p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.legal-content {
  max-height: 65vh;
  overflow-y: auto;
  padding-right: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.legal-content h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--heading-color);
  margin-bottom: 1rem;
}

.legal-content h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--heading-color);
  margin: 1.25rem 0 0.5rem;
}

.legal-content a {
  color: var(--accent-cyan);
  text-decoration: underline;
}

/* ==========================================================================
   Error Boundary Modal
   ========================================================================== */
.error-boundary-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.error-boundary-icon {
  font-size: 2rem;
  line-height: 1;
}

.diag-code-block {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 0.85rem;
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 140px;
  overflow-y: auto;
  margin-bottom: 1.25rem;
}

.error-boundary-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Offline & Cookie Banners
   ========================================================================== */
.offline-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: 440px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid #f59e0b;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.2);
  z-index: 9990;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  backdrop-filter: blur(10px);
  animation: slideUpBanner 0.3s ease;
}

.offline-banner.active {
  display: flex;
}

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

.offline-banner-content {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.offline-banner-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.offline-banner-text strong {
  display: block;
  color: #fbbf24;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.offline-banner-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.offline-banner-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 17, 32, 0.96);
  border-top: 1px solid rgba(0, 255, 135, 0.25);
  padding: 1rem 1.5rem;
  z-index: 9980;
  display: none;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}



.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

.cookie-content a {
  color: var(--accent-cyan);
  text-decoration: underline;
}



/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.85rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.toast.success {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(16, 185, 129, 0.2);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(239, 68, 68, 0.2);
}

.toast.info {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(6, 182, 212, 0.2);
}

/* ==========================================================================
   Comprehensive On-Page SEO Pillar Guide Section Styling
   Target: 'Cyber Insurance Cost' & High-Intent Ahrefs Keyword Clusters
   ========================================================================== */

.seo-guide-section {
  padding: 5rem 0 6rem 0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(7, 9, 14, 0) 0%, rgba(15, 23, 42, 0.45) 50%, rgba(7, 9, 14, 0) 100%);
}

/* Featured Snippet Highlight Box */
.seo-featured-snippet {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-left: 5px solid var(--accent-cyan);
  border-radius: 16px;
  padding: 2rem 2.25rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 255, 135, 0.12);
  position: relative;
  overflow: hidden;
}

.seo-snippet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.seo-snippet-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  background: rgba(0, 255, 135, 0.12);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  border: 1px solid rgba(0, 255, 135, 0.25);
}

.seo-snippet-title {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  color: var(--text-main);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.seo-snippet-text {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
}

.seo-snippet-text strong {
  color: var(--accent-cyan);
  font-weight: 700;
}

.seo-snippet-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.seo-snippet-metric-item {
  background: rgba(11, 17, 32, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.seo-metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.seo-metric-val {
  font-size: 1.35rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.seo-metric-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Pillar Content Layout */
.seo-pillar-container {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.seo-chapter-card {
  padding: 2.5rem;
  border-radius: 18px;
  position: relative;
}

.seo-chapter-header {
  margin-bottom: 2rem;
}

.seo-chapter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  margin-bottom: 0.6rem;
}

.seo-chapter-title {
  font-size: 1.85rem;
  font-family: var(--font-heading);
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.seo-chapter-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  width: 100%;
  max-width: 100%;
}

.seo-prose {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-main);
}

.seo-prose p {
  margin-bottom: 1.25rem;
}

.seo-prose p:last-child {
  margin-bottom: 0;
}

.seo-prose strong {
  color: #ffffff;
}

/* Responsive SEO Data Tables */
.seo-table-container {
  width: 100%;
  overflow-x: auto;
  margin: 1.75rem 0 2rem 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(11, 17, 32, 0.65);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  -webkit-overflow-scrolling: touch;
}

.seo-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
  min-width: 700px;
}

.seo-data-table thead {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 2px solid rgba(16, 185, 129, 0.25);
}

.seo-data-table th {
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  white-space: nowrap;
}

.seo-data-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  vertical-align: middle;
}

.seo-data-table tbody tr:last-child td {
  border-bottom: none;
}

.seo-data-table tbody tr:hover {
  background: rgba(16, 185, 129, 0.05);
}

.seo-data-table .highlight-col {
  background: rgba(0, 255, 135, 0.04);
  font-weight: 600;
}

.seo-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.seo-pill.pill-green {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--accent-cyan);
}

.seo-pill.pill-cyan {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.35);
  color: #38bdf8;
}

.seo-pill.pill-orange {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.35);
  color: #fb923c;
}

.seo-pill.pill-purple {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

/* Factors Grid & Cards */
.seo-factors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.seo-factor-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.seo-factor-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 255, 135, 0.35);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.seo-factor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.seo-factor-icon-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.seo-factor-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.seo-factor-card h4 {
  font-size: 1.15rem;
  font-family: var(--font-heading);
  color: var(--heading-color);
  margin: 0;
}

.seo-factor-impact {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.seo-impact-critical {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.seo-impact-high {
  background: rgba(249, 115, 22, 0.18);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.seo-impact-moderate {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.seo-factor-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.seo-factor-action {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Compare Matrix: Insurance Cost vs Data Breach Loss */
.seo-cost-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .seo-cost-compare-grid {
    grid-template-columns: 1fr;
  }
}

.seo-compare-col {
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.seo-compare-insurance {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.seo-compare-breach {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.seo-compare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.seo-compare-title {
  font-size: 1.3rem;
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.seo-compare-insurance .seo-compare-title { color: var(--accent-cyan); }
.seo-compare-breach .seo-compare-title { color: #f87171; }

.seo-compare-figure {
  font-size: 2rem;
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1;
}

.seo-compare-insurance .seo-compare-figure { color: #ffffff; }
.seo-compare-breach .seo-compare-figure { color: #f87171; }

.seo-compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.seo-compare-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.seo-compare-list li strong {
  font-family: var(--font-mono);
}

/* Actuarial Formula Box */
.seo-formula-box {
  background: rgba(7, 9, 14, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent-cyan);
  line-height: 1.7;
  overflow-x: auto;
}

.seo-formula-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

/* Pro Tips & Action Callouts */
.seo-pro-tip {
  background: rgba(15, 23, 42, 0.8);
  border-left: 4px solid var(--accent-cyan);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.seo-tip-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.seo-tip-content {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #cbd5e1;
}

.seo-tip-content strong {
  color: var(--accent-cyan);
}

/* Internal CTA Banner */
.seo-cta-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 16px;
  padding: 2.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.seo-cta-title {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  color: #ffffff;
  font-weight: 700;
}

.seo-cta-desc {
  font-size: 1rem;
  color: var(--text-muted);
  width: 100%;
  max-width: 100%;
}

/* Light Theme Adaptations for SEO Guide Section */






















































/* ==========================================================================
   Multi-Page Website (MPA) Architecture & Cross-Document View Transitions
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

/* Active Nav State */
.nav-link.active {
  color: var(--accent-cyan);
  background: rgba(0, 255, 135, 0.08);
  border-bottom: 2px solid var(--accent-cyan);
}

.dropdown-item.active {
  background: rgba(0, 255, 135, 0.12);
  border-left: 3px solid var(--accent-cyan);
}

.drawer-link.active,
.drawer-tool-link.active {
  background: rgba(0, 255, 135, 0.14);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  padding: 1.25rem 0 0.5rem 0;
  margin-bottom: 1.5rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumb-link:hover {
  color: var(--accent-cyan);
}

.breadcrumb-separator {
  color: var(--text-dim);
  opacity: 0.6;
}

.breadcrumb-current {
  color: var(--accent-cyan);
  font-weight: 500;
}

/* Subpage Hero Header */
.subpage-hero {
  padding: 3rem 0 2.5rem 0;
  position: relative;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 3rem;
  background: radial-gradient(circle at 50% 0%, rgba(0, 255, 135, 0.06) 0%, transparent 70%);
}

.subpage-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 255, 135, 0.1);
  border: 1px solid rgba(0, 255, 135, 0.25);
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.subpage-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--heading-color);
  margin-bottom: 1.25rem;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.subpage-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.subpage-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.subpage-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Subpage Stats Ribbon */
.subpage-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0 3.5rem 0;
}

.subpage-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: var(--transition-fast);
}

.subpage-stat-card:hover {
  border-color: var(--bg-card-border-glow);
  transform: translateY(-2px);
}

.subpage-stat-num {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.35rem;
}

.subpage-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Subpage Dedicated CTA */
.subpage-cta-card {
  margin: 4rem 0 2rem 0;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(0, 255, 135, 0.08) 0%, rgba(16, 185, 129, 0.03) 100%);
  border: 1px solid rgba(0, 255, 135, 0.28);
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-glow-cyan);
}

.subpage-cta-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.subpage-cta-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  width: 100%;
  max-width: 100%;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

.subpage-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   GLOBAL KEYBOARD SHORTCUT BADGES (<kbd>)
   ========================================================================== */
kbd, .kbd-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.2rem 0.45rem;
  color: var(--accent-cyan);
  background: rgba(0, 255, 135, 0.08);
  border: 1px solid rgba(0, 255, 135, 0.28);
  border-radius: 6px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
  vertical-align: middle;
  letter-spacing: 0.02em;
  user-select: none;
}



/* ==========================================================================
   HEADER SEARCH / COMMAND PALETTE TRIGGER BUTTON
   ========================================================================== */
.header-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--bg-card-border);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 0.45rem 0.85rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.header-search-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  color: var(--text-main);
  box-shadow: 0 0 15px rgba(0, 255, 135, 0.2);
}

.header-search-btn svg {
  stroke: var(--accent-cyan);
}





/* ==========================================================================
   LANGUAGE SELECTOR DROPDOWN & MENU
   ========================================================================== */
.lang-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.btn-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-lang-toggle:hover, 
.btn-lang-toggle.active {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 255, 135, 0.2);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 290px;
  max-height: 420px;
  overflow-y: auto;
  background: rgba(11, 17, 32, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-card-border-glow);
  border-radius: 14px;
  padding: 0.6rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 255, 135, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: all var(--transition-fast);
  z-index: 1100;
}

.lang-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-dropdown-header {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  padding: 0.4rem 0.6rem 0.6rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem;
}

.lang-select-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.65rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-select-option:hover {
  background: rgba(0, 255, 135, 0.08);
  border-color: rgba(0, 255, 135, 0.2);
  color: var(--accent-cyan);
}

.lang-select-option.active {
  background: rgba(0, 255, 135, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 600;
}

.lang-flag {
  font-size: 1.1rem;
  line-height: 1;
}

.lang-name-box {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.lang-native-name {
  font-weight: 500;
}

.lang-eng-name {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.lang-dropdown-footer {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-dropdown-export,
.lang-dropdown-footer .btn-quick-export,
.lang-dropdown-footer #btn-quick-export {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: rgba(0, 255, 135, 0.1);
  border: 1px solid rgba(0, 255, 135, 0.3);
  border-radius: 8px;
  color: var(--accent-cyan);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-dropdown-export:hover,
.lang-dropdown-footer .btn-quick-export:hover,
.lang-dropdown-footer #btn-quick-export:hover {
  background: rgba(0, 255, 135, 0.2);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 255, 135, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

.export-shortcut-badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  padding: 0.15rem 0.4rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: var(--text-muted);
}

[dir="rtl"] .export-shortcut-badge {
  margin-left: 0;
  margin-right: auto;
}

/* In-Tool & In-Calculator Export Executive Brief Buttons */
.btn-tool-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 255, 135, 0.08);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-btn, 10px);
  color: var(--accent-cyan);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast, 0.2s ease);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-tool-export:hover {
  background: rgba(0, 255, 135, 0.22);
  border-color: #00ff87;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(0, 255, 135, 0.35);
  transform: translateY(-2px);
}

.btn-tool-export svg {
  flex-shrink: 0;
  color: var(--accent-cyan);
  transition: transform var(--transition-fast, 0.2s ease);
}

.btn-tool-export:hover svg {
  color: #ffffff;
  transform: scale(1.1);
}

.btn-flex-1 {
  flex: 1 1 240px;
}

/* ==========================================================================
   GLOBAL COMMAND PALETTE (Ctrl+K / Cmd+K)
   ========================================================================== */
.cmd-palette-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 7, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(40px, 12vh, 120px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.cmd-palette-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.cmd-palette-modal {
  width: 100%;
  max-width: 660px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: rgba(11, 17, 32, 0.95);
  border: 1px solid var(--bg-card-border-glow);
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 255, 135, 0.2);
  overflow: hidden;
  transform: translateY(-20px) scale(0.96);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cmd-palette-backdrop.open .cmd-palette-modal {
  transform: translateY(0) scale(1);
}

.cmd-search-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.6);
}

.cmd-search-icon {
  stroke: var(--accent-cyan);
  flex-shrink: 0;
}

.cmd-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: #ffffff;
}

.cmd-search-input::placeholder {
  color: var(--text-dim);
}

.cmd-mic-btn {
  background: rgba(0, 255, 135, 0.1);
  border: 1px solid rgba(0, 255, 135, 0.25);
  color: var(--accent-cyan);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cmd-mic-btn:hover {
  background: var(--accent-cyan);
  color: #000000;
  box-shadow: 0 0 15px rgba(0, 255, 135, 0.4);
}

.cmd-mic-btn.listening {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  animation: pulse-recording 1.2s infinite ease-in-out;
}

@keyframes pulse-recording {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.cmd-results-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  max-height: calc(80vh - 130px);
}

.cmd-category-group {
  margin-bottom: 1rem;
}

.cmd-category-header {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 0.35rem 0.75rem;
  margin-bottom: 0.25rem;
}

.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cmd-item:hover, 
.cmd-item.active {
  background: rgba(0, 255, 135, 0.1);
  border-color: rgba(0, 255, 135, 0.3);
  color: #ffffff;
}

.cmd-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.cmd-item-icon {
  font-size: 1.25rem;
  line-height: 1;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.cmd-item-title {
  font-weight: 500;
  font-size: 0.92rem;
}

.cmd-item-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.1rem;
}

.cmd-item.active .cmd-item-desc {
  color: var(--text-muted);
}

.cmd-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.8);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.cmd-footer-keys {
  display: flex;
  gap: 1rem;
  align-items: center;
}















/* ==========================================================================
   KEYBOARD SHORTCUTS HUD MODAL (?)
   ========================================================================== */
.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.shortcut-group-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  padding: 1.1rem;
}

.shortcut-group-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.shortcut-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.shortcut-label {
  color: var(--text-main);
}

.shortcut-keys {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}





/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR (Thumb-Friendly Navigation)
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(7, 9, 14, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--header-border);
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.7);
}

.mobile-bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item svg {
  stroke: var(--text-muted);
  transition: stroke var(--transition-fast), transform var(--transition-fast);
}

.bottom-nav-item:hover, 
.bottom-nav-item.active {
  color: var(--accent-cyan);
}

.bottom-nav-item:hover svg, 
.bottom-nav-item.active svg {
  stroke: var(--accent-cyan);
  transform: translateY(-2px);
}

.bottom-nav-item.active::after {
  content: '';
  position: absolute;
  top: 4px;
  width: 16px;
  height: 3px;
  background: var(--accent-cyan);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-cyan);
}













@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: block;
  }
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
}

/* ==========================================================================
   FLOATING ACTION BUTTON (FAB) & SPEED DIAL
   ========================================================================== */
.fab-container {
  position: fixed;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  right: 20px;
  z-index: 990;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 0.75rem;
}

.fab-main-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  color: #000000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 255, 135, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.fab-main-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(0, 255, 135, 0.6);
}

.fab-main-btn svg {
  transition: transform 0.3s ease;
}

.fab-container.open .fab-main-btn svg {
  transform: rotate(45deg);
}

.fab-menu {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.85);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fab-container.open .fab-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.fab-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-direction: row-reverse;
}

.fab-item-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--bg-card-border-glow);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-fast);
}

.fab-item-btn:hover {
  background: var(--accent-cyan);
  color: #000000;
  transform: scale(1.1);
}

.fab-item-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(11, 17, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}









@media (min-width: 769px) {
  .fab-container {
    bottom: 25px;
    right: 25px;
  }
}

/* ==========================================================================
   VOICE ASSISTANT OVERLAY & VISUALIZER
   ========================================================================== */
.voice-hud-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 7, 13, 0.88);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.voice-hud-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.voice-hud-card {
  width: 100%;
  max-width: 440px;
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(11, 17, 32, 0.95);
  border: 1px solid var(--bg-card-border-glow);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 255, 135, 0.25);
}

.voice-mic-orb {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 0 30px rgba(0, 255, 135, 0.5);
  animation: pulse-mic-orb 2s infinite ease-in-out;
}

@keyframes pulse-mic-orb {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 255, 135, 0.6); }
  70% { transform: scale(1.08); box-shadow: 0 0 0 20px rgba(0, 255, 135, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 255, 135, 0); }
}

.voice-hud-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.voice-hud-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.voice-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  margin-bottom: 1.5rem;
}

.wave-bar {
  width: 4px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 4px;
  animation: wave-bounce 1.2s infinite ease-in-out;
}

.wave-bar:nth-child(2) { animation-delay: 0.15s; }
.wave-bar:nth-child(3) { animation-delay: 0.3s; }
.wave-bar:nth-child(4) { animation-delay: 0.45s; }
.wave-bar:nth-child(5) { animation-delay: 0.6s; }
.wave-bar:nth-child(6) { animation-delay: 0.45s; }
.wave-bar:nth-child(7) { animation-delay: 0.3s; }
.wave-bar:nth-child(8) { animation-delay: 0.15s; }

@keyframes wave-bounce {
  0%, 100% { height: 8px; }
  50% { height: 32px; }
}

.voice-transcript-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   BIDIRECTIONAL RTL (ARABIC / HEBREW) COMPREHENSIVE STYLES
   ========================================================================== */
[dir="rtl"], body.rtl-mode {
  direction: rtl;
  text-align: right;
  font-family: 'Noto Sans Arabic', 'Segoe UI Arabic', 'Tahoma', var(--font-sans);
}

[dir="rtl"] .header-container {
  flex-direction: row-reverse;
}

[dir="rtl"] .header-nav {
  margin-right: auto;
  margin-left: 0;
}

[dir="rtl"] .header-actions {
  margin-right: auto;
  margin-left: 0;
}

[dir="rtl"] .lang-dropdown-menu {
  right: auto;
  left: 0;
}

[dir="rtl"] .dropdown-chevron,
[dir="rtl"] .arrow-icon,
[dir="rtl"] .subpage-cta-buttons .btn svg {
  transform: scaleX(-1);
}

[dir="rtl"] .btn-next-step svg,
[dir="rtl"] .btn-prev-step svg {
  transform: scaleX(-1);
}

[dir="rtl"] .fab-container {
  right: auto;
  left: 20px;
}

[dir="rtl"] .fab-item {
  flex-direction: row;
}

[dir="rtl"] .mobile-nav-drawer {
  right: auto;
  left: 0;
  transform: translateX(-100%);
}

[dir="rtl"] .mobile-nav-drawer.open {
  transform: translateX(0);
}

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

[dir="rtl"] .shortcut-row {
  flex-direction: row-reverse;
}

[dir="rtl"] .drawer-tool-link,
[dir="rtl"] .drawer-link {
  text-align: right;
}

[dir="rtl"] .cost-driver-card,
[dir="rtl"] .control-item,
[dir="rtl"] .bento-card,
[dir="rtl"] .feature-bullet {
  text-align: right;
}

[dir="rtl"] .step-badge,
[dir="rtl"] .stat-card-badge {
  margin-left: 0.5rem;
  margin-right: 0;
}

/* ==========================================================================
   HIGH CONTRAST THEME (WCAG AAA)
   ========================================================================== */
body.high-contrast {
  --bg-dark: #000000;
  --bg-card: #000000;
  --bg-card-hover: #0a0a0a;
  --bg-card-border: #ffffff;
  --bg-card-border-glow: #00ff87;
  --bg-input: #000000;
  --header-bg: #000000;
  --header-border: #ffffff;
  --text-main: #ffffff;
  --text-muted: #e2e8f0;
  --text-dim: #cbd5e1;
  --heading-color: #ffffff;
  --accent-cyan: #00ff87;
  --accent-blue: #00ff87;
}

body.high-contrast .glass-card,
body.high-contrast .card,
body.high-contrast .site-header,
body.high-contrast .mobile-nav-drawer {
  background: #000000 !important;
  border: 2px solid #ffffff !important;
}

body.high-contrast .btn-primary {
  background: #00ff87 !important;
  color: #000000 !important;
  border: 2px solid #ffffff !important;
  font-weight: 800 !important;
}

body.high-contrast .btn-outline,
body.high-contrast .btn-outline-sm {
  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
}

body.high-contrast kbd,
body.high-contrast .kbd-chip {
  background: #000000 !important;
  color: #00ff87 !important;
  border: 2px solid #00ff87 !important;
}

/* ==========================================================================
   ACCESSIBILITY & FOCUS VISIBLE RINGS
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ==========================================================================
   PRINT / PDF EXECUTIVE EXPORT STYLESHEET
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
    padding: 0 !important;
    margin: 0 !important;
  }

  .site-header,
  .site-footer,
  .mobile-bottom-nav,
  .fab-container,
  .cmd-palette-backdrop,
  .shortcuts-modal,
  .voice-hud-backdrop,
  .bg-glow,
  .cyber-grid-overlay,
  .btn,
  .header-actions,
  .mobile-menu-btn,
  .tools-launchpad,
  .nav-dropdown,
  

  .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .glass-card, 
  .card, 
  .bento-card {
    background: #ffffff !important;
    border: 1px solid #cccccc !important;
    box-shadow: none !important;
    color: #000000 !important;
    page-break-inside: avoid;
    margin-bottom: 1.5rem !important;
  }

  h1, h2, h3, h4, strong {
    color: #000000 !important;
  }

  .accent-text, .score-number, .stat-value, .price-value {
    color: #047857 !important;
  }

  a {
    text-decoration: none !important;
    color: #000000 !important;
  }
}

/* ==========================================================================
   BUY ME A COFFEE & SUPPORT US (UPI DONATION WIDGET)
   ========================================================================== */

/* 1. TOP LIVELY FLOATING COFFEE BADGE */
.top-floating-coffee-btn {
  position: fixed;
  top: 76px;
  right: 24px;
  z-index: 992;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1.1rem 0.55rem 0.85rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(15, 23, 42, 0.92));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 9999px;
  color: #ffffff;
  font-family: var(--font-sans);
  cursor: pointer;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  overflow: hidden;
  animation: topCoffeeFloat 4s ease-in-out infinite alternate;
}

@keyframes topCoffeeFloat {
  0% { transform: translateY(0); box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.3); }
  50% { transform: translateY(-4px); box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 158, 11, 0.5); }
  100% { transform: translateY(0); box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.3); }
}

.top-floating-coffee-btn:hover {
  transform: translateY(-3px) scale(1.04);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.35), rgba(26, 38, 66, 0.96));
  border-color: #fbbf24;
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.75), 0 0 35px rgba(245, 158, 11, 0.6);
  color: #ffffff;
}

.top-floating-coffee-btn:active {
  transform: translateY(0) scale(0.97);
}

/* Coffee Cup and Steam Animation */
.top-coffee-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.35), rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 50%;
}

.top-coffee-cup-emoji {
  font-size: 1.25rem;
  line-height: 1;
  display: inline-block;
  animation: livelyCupJiggle 3.5s ease-in-out infinite;
}

@keyframes livelyCupJiggle {
  0%, 70%, 100% { transform: rotate(0deg) scale(1); }
  75% { transform: rotate(-12deg) scale(1.15); }
  80% { transform: rotate(10deg) scale(1.18); }
  85% { transform: rotate(-8deg) scale(1.12); }
  90% { transform: rotate(6deg) scale(1.08); }
  95% { transform: rotate(0deg) scale(1); }
}

/* Animated Steam Trails */
.top-coffee-steam {
  position: absolute;
  top: -6px;
  width: 3px;
  height: 9px;
  background: linear-gradient(to top, rgba(245, 158, 11, 0.8), transparent);
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
}

.steam-left {
  left: 12px;
  animation: steamRiseLeft 2.2s ease-out infinite;
}

.steam-right {
  right: 12px;
  animation: steamRiseRight 2.2s ease-out infinite 0.7s;
}

@keyframes steamRiseLeft {
  0% { transform: translateY(2px) scaleX(0.8); opacity: 0; }
  40% { opacity: 0.85; transform: translateY(-4px) scaleX(1.2) translateX(-2px); }
  100% { transform: translateY(-12px) scaleX(1.6) translateX(-4px); opacity: 0; }
}

@keyframes steamRiseRight {
  0% { transform: translateY(2px) scaleX(0.8); opacity: 0; }
  40% { opacity: 0.85; transform: translateY(-4px) scaleX(1.2) translateX(2px); }
  100% { transform: translateY(-12px) scaleX(1.6) translateX(4px); opacity: 0; }
}

/* Text Group */
.top-coffee-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.top-coffee-main-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1.2;
}

.top-coffee-sparkle {
  font-size: 0.75rem;
  display: inline-block;
  animation: sparkleTwinkle 2s ease-in-out infinite;
}

@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0.4; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.25) rotate(15deg); }
}

.top-coffee-sub-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #fbbf24;
  letter-spacing: 0.3px;
}

/* Radar Ping Indicator */
.top-coffee-ping-badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  margin-left: 0.25rem;
}

.ping-radar {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #10b981;
  opacity: 0.75;
  animation: pingPulse 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ping-core {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ff87;
  box-shadow: 0 0 6px #00ff87;
}

@keyframes pingPulse {
  75%, 100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* Shimmer Light Beam */
.top-coffee-shimmer {
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    rgba(251, 191, 36, 0.35),
    transparent
  );
  transform: skewX(-25deg);
  animation: shimmerSweep 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmerSweep {
  0% { left: -120%; }
  30%, 100% { left: 180%; }
}

/* Header bar coffee button (Desktop Navigation Bar) */
.btn-header-coffee {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.25));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 9999px;
  color: #fbbf24;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}

.btn-header-coffee:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000000;
  border-color: #f59e0b;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* 2. BOTTOM FLOATING TRIGGER & MODAL */
.floating-coffee-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 990;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 9999px;
  color: #f8fafc;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(245, 158, 11, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.floating-coffee-btn:hover {
  transform: translateY(-2px) scale(1.03);
  background: rgba(26, 38, 66, 0.95);
  border-color: #f59e0b;
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.45);
  color: #ffffff;
}

.floating-coffee-btn:active {
  transform: translateY(0) scale(0.98);
}

.coffee-icon-anim {
  font-size: 1.15rem;
  display: inline-block;
  animation: coffeeSteam 3s ease-in-out infinite;
}

@keyframes coffeeSteam {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-8deg) scale(1.08); }
  75% { transform: rotate(8deg) scale(1.05); }
}

.coffee-modal-dialog {
  max-width: 480px;
  width: 92%;
  padding: 1.75rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(245, 158, 11, 0.2);
  border-radius: 20px;
  position: relative;
}

.coffee-modal-header {
  margin-bottom: 1.25rem;
}

.coffee-modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.coffee-modal-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.coffee-modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Preset Amount Selector Tiers */
.coffee-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 1.2rem 0;
}

.coffee-tier-btn {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.6rem 0.25rem;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.coffee-tier-btn:hover {
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(245, 158, 11, 0.12);
  transform: translateY(-2px);
}

.coffee-tier-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.35));
  border-color: #f59e0b;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.35);
}

.coffee-tier-cups {
  font-size: 1rem;
}

.coffee-tier-amt {
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.coffee-custom-amount-wrapper {
  margin: 0.75rem 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.coffee-custom-input {
  max-width: 140px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #ffffff;
}

.coffee-custom-input:focus {
  border-color: #f59e0b;
  outline: none;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

/* QR Code Display Container */
.coffee-qr-wrapper {
  background: #ffffff;
  padding: 0.85rem;
  border-radius: 16px;
  display: inline-block;
  margin: 0.5rem auto 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  position: relative;
}

.coffee-qr-img {
  width: 180px;
  height: 180px;
  display: block;
  image-rendering: pixelated;
  border-radius: 8px;
}

.coffee-qr-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #f59e0b;
  color: #000000;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Mobile 1-Tap Pay Button */
.btn-coffee-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000000;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 10px;
  text-decoration: none;
  margin-bottom: 0.85rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.btn-coffee-mobile:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  color: #000000;
}

/* Copy UPI Box */
.coffee-upi-copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 17, 32, 0.8);
  border: 1px dashed rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.85rem;
}

.coffee-upi-id {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #fbbf24;
  word-break: break-all;
  text-align: left;
}

.btn-copy-upi {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #f59e0b;
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-copy-upi:hover {
  background: #f59e0b;
  color: #000000;
}

/* Supported Apps Pills */
.coffee-apps-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.coffee-app-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.coffee-direct-assurance {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .floating-coffee-btn {
    bottom: 74px; /* Above mobile bottom navigation bar */
    left: 14px;
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }
}

/* ==========================================
   SEO Data Tables & Carrier Matrix Styling
   ========================================== */
.seo-table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--bg-card-border);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-glass);
}

.seo-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
  min-width: 760px;
}

.seo-data-table th {
  background: rgba(15, 23, 42, 0.75);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--bg-card-border);
  white-space: nowrap;
}

.seo-data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  vertical-align: middle;
}

.seo-data-table tbody tr {
  transition: background 0.2s ease;
}

.seo-data-table tbody tr:hover {
  background: rgba(0, 255, 135, 0.04);
}

.seo-pill {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 500;
  margin: 2px 2px;
  white-space: normal;
}

/* AI Calculator Controls */
.slider-control {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  transition: background 0.2s ease;
}

.slider-control::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 255, 135, 0.5);
  transition: transform 0.15s ease;
}

.slider-control::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-control::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 255, 135, 0.5);
}
