/* SiPro Technologies (Sipro.tech) - Production Design System */
:root {
  --navy: #0b0f19;
  --navy-deep: #030712;
  --navy-surface: #111827;
  --navy-surface-hover: #1f293d;
  --card: #111827;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.3);
  --text: #f8fafc;
  --text-dim: #cbd5e1;
  --muted: #94a3b8;
  --indigo: #6366f1;
  --indigo-dark: #4f46e5;
  --cyan: #22d3ee;
  --cyan-dark: #06b6d4;
  --emerald: #10b981;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --max: 1240px;
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(6, 182, 212, 0.25) 100%);
  --bg-pattern: radial-gradient(rgba(99, 102, 241, 0.12) 1px, transparent 1px), radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.08) 0%, transparent 70%);
}

html.light {
  --navy: #f8fafc;
  --navy-deep: #f1f5f9;
  --navy-surface: #ffffff;
  --navy-surface-hover: #f8fafc;
  --card: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --text: #090d16;
  --text-dim: #1e293b;
  --muted: #475569;
  --indigo: #4f46e5;
  --indigo-dark: #4338ca;
  --cyan: #0891b2;
  --cyan-dark: #0e7490;
  --emerald: #059669;
  --amber: #d97706;
  --rose: #e11d48;
  --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #0891b2 100%);
  --gradient-glow: linear-gradient(135deg, rgba(79, 70, 229, 0.12) 0%, rgba(8, 145, 178, 0.12) 100%);
  --bg-pattern: radial-gradient(rgba(79, 70, 229, 0.07) 1px, transparent 1px), radial-gradient(ellipse at 50% 0%, rgba(8, 145, 178, 0.06) 0%, transparent 65%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--navy);
  background-image: var(--bg-pattern);
  background-size: 24px 24px, 100% 100%;
  background-attachment: fixed;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

img, svg {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header, Glassmorphic Navbar & Accenture/Wipro Enterprise Mega-Menus
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.90);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
}

.site-header .container {
  position: relative;
}

html.light .site-header {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

/* Brand Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  white-space: nowrap;
  text-decoration: none;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand-logo-img.dark-only {
  display: block;
}
.brand-logo-img.light-only {
  display: none;
}

html.light .brand-logo-img.dark-only {
  display: none;
}
html.light .brand-logo-img.light-only {
  display: block;
}

.brand-logo-img:hover {
  transform: scale(1.02);
}

.brand-logo-img.footer-logo {
  height: 42px;
  max-width: 240px;
}

.brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-primary);
  color: #ffffff;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  flex-shrink: 0;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
}

.brand-tld,
.brand-tech {
  color: #f59e0b;
  font-weight: 800;
}

html.light .brand-tld,
html.light .brand-tech {
  color: #d97706;
}

/* Desktop Nav Links & Mega-Menu Architecture */
.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item-dropdown {
  position: static;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.nav-dropdown-trigger:hover,
.nav-item-dropdown:hover .nav-dropdown-trigger,
.nav-item-dropdown.open .nav-dropdown-trigger,
.nav-item-dropdown.active .nav-dropdown-trigger {
  color: var(--text);
  background: rgba(148, 163, 184, 0.08);
}

.nav-item-dropdown.active .nav-dropdown-trigger {
  color: var(--cyan);
}

html.light .nav-item-dropdown.active .nav-dropdown-trigger {
  color: var(--indigo-dark);
}

.nav-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.7;
}

.nav-item-dropdown:hover .nav-chevron,
.nav-item-dropdown.open .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--cyan);
}

html.light .nav-item-dropdown:hover .nav-chevron,
html.light .nav-item-dropdown.open .nav-chevron {
  color: var(--indigo-dark);
}

/* Standard Nav Link */
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.08);
}

.nav-link.active {
  color: var(--cyan);
  font-weight: 700;
  background: rgba(99, 102, 241, 0.12);
}

html.light .nav-link.active {
  color: var(--indigo-dark);
  background: rgba(79, 70, 229, 0.08);
}

/* ==========================================================================
   Desktop Mega Menu Dropdown (Luxury Enterprise Grade)
   ========================================================================== */
.mega-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(1040px, calc(100% - 32px));
  max-width: 1040px;
  background: rgba(7, 13, 30, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 18px;
  box-shadow: 
    0 35px 70px -15px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 24px 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  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: 200;
}

.mega-menu-panel::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

html.light .mega-menu-panel {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(203, 213, 225, 0.9);
  box-shadow: 
    0 30px 60px -12px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(99, 102, 241, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.nav-item-dropdown:hover .mega-menu-panel,
.nav-item-dropdown.open .mega-menu-panel,
.mega-menu-panel:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Mega Menu Internal Grid */
.mega-menu-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 1fr;
  gap: 26px;
  align-items: stretch;
}

.mega-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mega-column-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #818cf8;
  margin-bottom: 10px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 6px;
  width: fit-content;
}

html.light .mega-column-title {
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.08);
}

.mega-item-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  background: transparent;
}

.mega-item-link:hover {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateX(4px);
}

html.light .mega-item-link:hover {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.08);
}

.mega-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.14);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

html.light .mega-item-icon {
  background: rgba(79, 70, 229, 0.08);
  color: #4f46e5;
  border-color: rgba(79, 70, 229, 0.18);
}

.mega-item-link:hover .mega-item-icon {
  background: var(--gradient-primary);
  color: #ffffff;
  border-color: transparent;
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.45);
}

.mega-item-text {
  flex: 1;
  min-width: 0;
}

.mega-item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.mega-item-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.16);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.32);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

html.light .mega-item-badge {
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
  border-color: rgba(79, 70, 229, 0.22);
}

.mega-item-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 4px;
}

/* Featured Spotlight Card (Accenture/Stripe Style) */
.mega-spotlight-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

html.light .mega-spotlight-card {
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.98) 100%);
  border-color: rgba(203, 213, 225, 0.95);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 6px 20px rgba(99, 102, 241, 0.08);
}

.mega-spotlight-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #22d3ee;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(6, 182, 212, 0.12);
  width: fit-content;
}

html.light .mega-spotlight-tag {
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.1);
}

.mega-spotlight-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.35;
}

.mega-spotlight-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.mega-spotlight-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #22d3ee;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  width: fit-content;
}

html.light .mega-spotlight-cta {
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.2);
}

.mega-spotlight-cta:hover {
  gap: 12px;
  background: var(--gradient-primary);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

/* Header Actions (Desktop) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-auth-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* User Account Pill in Header */
.user-menu-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 6px;
  background: var(--navy-surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.user-menu-pill:hover {
  border-color: var(--indigo);
  background: var(--navy-surface-hover);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 7px;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 15px;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.08);
  border-color: var(--indigo);
  color: var(--text);
}

.btn-secondary {
  background: var(--navy-surface);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: var(--navy-surface-hover);
  border-color: var(--line-strong);
}

.btn-emerald {
  background: var(--emerald);
  color: #022c22 !important;
  font-weight: 700;
}

.btn-emerald:hover {
  background: #34d399;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all 0.15s ease;
}

.theme-toggle-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(148, 163, 184, 0.06);
}

.theme-toggle-btn .icon-moon {
  display: none;
}
html.light .theme-toggle-btn .icon-sun {
  display: none;
}
html.light .theme-toggle-btn .icon-moon {
  display: block;
}

/* Animated Hamburger Menu Button */
.hamburger-btn {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 9px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hamburger-btn:hover {
  border-color: var(--line-strong);
  background: rgba(148, 163, 184, 0.06);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Slide-Over Luxury Drawer */
.mobile-drawer-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.9);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 100vw;
  height: 100vh;
  background: #080e1e;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.95);
}

@media (max-width: 640px) {
  .mobile-drawer {
    width: 100% !important;
    max-width: 100vw !important;
    left: 0;
    right: 0;
    border-left: none;
  }
}

html.light .mobile-drawer {
  background: #ffffff;
  border-left-color: rgba(203, 213, 225, 0.9);
  box-shadow: -20px 0 60px rgba(15, 23, 42, 0.22);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  background: rgba(15, 23, 42, 0.5);
}

html.light .mobile-drawer-header {
  border-bottom-color: rgba(226, 232, 240, 0.9);
  background: rgba(248, 250, 252, 0.9);
}

.mobile-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-drawer-close:hover {
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan);
  transform: scale(1.05);
}

html.light .mobile-drawer-close {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  -webkit-overflow-scrolling: touch;
}

/* Quick Search Mock Trigger */
.mobile-search-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(99, 102, 241, 0.25);
  cursor: pointer;
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.mobile-search-pill:hover,
.mobile-search-pill:active {
  border-color: var(--cyan);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
}

html.light .mobile-search-pill {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(203, 213, 225, 0.9);
}

.mobile-search-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  color: var(--cyan);
}

.mobile-search-text {
  flex: 1;
  font-weight: 500;
}

.mobile-search-kbd {
  font-size: 10.5px;
  font-weight: 700;
  font-family: inherit;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

/* Section Micro-Labels */
.mobile-group-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #818cf8;
  padding: 10px 6px 4px;
  margin-top: 6px;
}

html.light .mobile-group-label {
  color: #4f46e5;
}

/* Luxury Direct Mobile Nav Links */
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  min-height: 52px;
}

html.light .mobile-nav-link {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(226, 232, 240, 0.9);
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateX(2px);
}

html.light .mobile-nav-link:hover,
html.light .mobile-nav-link:active {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

.mobile-nav-link.active {
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.08);
}

html.light .mobile-nav-link.active {
  border-color: var(--indigo);
  background: rgba(79, 70, 229, 0.06);
}

.mobile-nav-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.mobile-nav-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.25);
  transition: all 0.2s ease;
}

.mobile-nav-icon-badge.accent-blue {
  background: rgba(59, 130, 246, 0.14);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
}

.mobile-nav-icon-badge.accent-cyan {
  background: rgba(6, 182, 212, 0.14);
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.3);
}

.mobile-nav-icon-badge.accent-amber {
  background: rgba(245, 158, 11, 0.14);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
}

.mobile-nav-icon-badge.accent-emerald {
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

.mobile-nav-icon-badge.accent-violet {
  background: rgba(139, 92, 246, 0.14);
  color: #a78bfa;
  border-color: rgba(139, 92, 246, 0.3);
}

.mobile-nav-item-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mobile-nav-item-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.mobile-nav-item-sub {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-nav-arrow {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover .mobile-nav-arrow {
  color: var(--cyan);
  transform: translateX(3px);
}

html.light .mobile-nav-link:hover .mobile-nav-arrow {
  color: var(--indigo);
}

/* Badge Pills inside Mobile Drawer */
.mobile-badge-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.mobile-badge-pill.amber {
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.mobile-badge-pill.emerald {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.mobile-badge-pill.cyan {
  background: rgba(6, 182, 212, 0.18);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

/* ==========================================================================
   Mobile Accordion Dropdown (Ultra-Polished Luxe View)
   ========================================================================== */
.mobile-accordion {
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.55);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

html.light .mobile-accordion {
  background: rgba(248, 250, 252, 0.92);
  border-color: rgba(226, 232, 240, 0.95);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.mobile-accordion.open {
  border-color: rgba(99, 102, 241, 0.45);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
  box-shadow: 
    0 10px 25px -5px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(99, 102, 241, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

html.light .mobile-accordion.open {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 
    0 10px 25px -5px rgba(99, 102, 241, 0.12),
    0 0 0 1px rgba(99, 102, 241, 0.2);
}

.mobile-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  min-height: 56px;
}

.mobile-accordion-trigger:hover,
.mobile-accordion-trigger:active {
  background: rgba(255, 255, 255, 0.03);
}

html.light .mobile-accordion-trigger:hover,
html.light .mobile-accordion-trigger:active {
  background: rgba(79, 70, 229, 0.04);
}

.mobile-accordion-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mobile-accordion.open .mobile-accordion-chevron {
  transform: rotate(180deg);
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: #818cf8;
}

html.light .mobile-accordion.open .mobile-accordion-chevron {
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.12);
  border-color: rgba(79, 70, 229, 0.3);
}

.mobile-accordion-content {
  display: none;
  padding: 8px 12px 16px;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  animation: mobileDropdownSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

html.light .mobile-accordion-content {
  border-top-color: rgba(226, 232, 240, 0.9);
}

.mobile-accordion.open .mobile-accordion-content {
  display: flex;
}

.mobile-accordion-section-header {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #22d3ee;
  text-transform: uppercase;
  padding: 10px 8px 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-accordion-section-header::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 6px rgba(34, 211, 238, 0.8);
}

html.light .mobile-accordion-section-header {
  color: #4f46e5;
}

html.light .mobile-accordion-section-header::before {
  background: #4f46e5;
  box-shadow: 0 0 6px rgba(79, 70, 229, 0.6);
}

.mobile-sub-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

html.light .mobile-sub-link {
  background: rgba(241, 245, 249, 0.75);
  border-color: rgba(226, 232, 240, 0.8);
}

.mobile-sub-link:hover,
.mobile-sub-link:active {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

html.light .mobile-sub-link:hover,
html.light .mobile-sub-link:active {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.mobile-sub-link.active {
  background: rgba(6, 182, 212, 0.14);
  border-color: rgba(6, 182, 212, 0.4);
}

.mobile-sub-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(99, 102, 241, 0.14);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  transition: all 0.2s ease;
}

html.light .mobile-sub-icon {
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.2);
}

.mobile-sub-link:hover .mobile-sub-icon,
.mobile-sub-link:active .mobile-sub-icon {
  background: var(--gradient-primary);
  color: #ffffff;
  border-color: transparent;
  transform: scale(1.06);
}

.mobile-sub-text {
  flex: 1;
  min-width: 0;
}

.mobile-sub-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.mobile-sub-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.18);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

html.light .mobile-sub-badge {
  background: rgba(79, 70, 229, 0.12);
  color: #4f46e5;
  border-color: rgba(79, 70, 229, 0.25);
}

.mobile-sub-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 3px;
}

/* Mobile Accordion Spotlight Card */
.mobile-accordion-spotlight {
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

html.light .mobile-accordion-spotlight {
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.08);
}

.mobile-spotlight-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mobile-spotlight-pill {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #22d3ee;
  background: rgba(6, 182, 212, 0.15);
  padding: 2px 8px;
  border-radius: 6px;
}

html.light .mobile-spotlight-pill {
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.1);
}

.mobile-spotlight-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.mobile-spotlight-desc {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.45;
}

.mobile-spotlight-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #22d3ee;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.28);
  width: fit-content;
  margin-top: 4px;
  transition: all 0.2s ease;
}

html.light .mobile-spotlight-btn {
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.25);
}

.mobile-spotlight-btn:hover,
.mobile-spotlight-btn:active {
  background: var(--gradient-primary);
  color: #ffffff !important;
  border-color: transparent;
}

/* Mobile Auth Block */
.mobile-auth-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 8px;
}

html.light .mobile-auth-block {
  border-top-color: rgba(226, 232, 240, 0.9);
}

.mobile-auth-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-auth-block .btn {
  min-height: 46px;
  font-size: 14px;
  border-radius: 11px;
}

.mobile-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 14px;
  margin-bottom: 4px;
}

html.light .mobile-user-card {
  background: #ffffff;
  border-color: rgba(203, 213, 225, 0.9);
}

.mobile-user-info {
  flex: 1;
  overflow: hidden;
}

.mobile-user-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.mobile-user-email {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Mobile Drawer Footer */
.mobile-drawer-footer {
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.7);
}

html.light .mobile-drawer-footer {
  background: rgba(248, 250, 252, 0.95);
  border-top-color: rgba(226, 232, 240, 0.9);
}

.mobile-msme-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

.msme-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  display: inline-block;
}

/* Responsive Breakpoints for Nav */
@media (min-width: 1081px) {
  .nav-links-desktop {
    display: flex !important;
  }
  .header-auth-group {
    display: flex !important;
  }
  .hamburger-btn {
    display: none !important;
  }
  .mobile-drawer,
  .mobile-drawer-backdrop {
    display: none !important;
  }
}

@media (max-width: 1080px) {
  .nav-links-desktop {
    display: none !important;
  }
  .header-auth-group {
    display: none !important;
  }
  .hamburger-btn {
    display: flex !important;
  }
  .mobile-drawer {
    display: flex;
  }
}

/* ==========================================================================
   Hero & Standard Section Styles (Contextual Enterprise Background Assets)
   ========================================================================== */
.hero {
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
  background-color: #070d1e;
  background-image: 
    linear-gradient(180deg, rgba(7, 13, 30, 0.45) 0%, rgba(7, 13, 30, 0.65) 50%, rgba(7, 13, 30, 0.92) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(99, 102, 241, 0.30), transparent 60%),
    url('/assets/images/hero-cloud-skyline.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

html.light .hero {
  background-color: #f8fafc;
  background-image: 
    linear-gradient(180deg, rgba(248, 250, 252, 0.70) 0%, rgba(248, 250, 252, 0.85) 60%, #ffffff 100%),
    radial-gradient(ellipse at 70% 30%, rgba(99, 102, 241, 0.15), transparent 60%),
    url('/assets/images/hero-cloud-skyline.jpg');
}

/* Contextual Hero Variants */
.hero.hero-cloud {
  background-image: 
    linear-gradient(180deg, rgba(7, 13, 30, 0.50) 0%, rgba(7, 13, 30, 0.68) 50%, rgba(7, 13, 30, 0.92) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(14, 165, 233, 0.30), transparent 60%),
    url('/assets/images/cloud-datacenter.jpg');
}
html.light .hero.hero-cloud {
  background-image: 
    linear-gradient(180deg, rgba(248, 250, 252, 0.70) 0%, rgba(248, 250, 252, 0.85) 60%, #ffffff 100%),
    radial-gradient(ellipse at 70% 30%, rgba(14, 165, 233, 0.15), transparent 60%),
    url('/assets/images/cloud-datacenter.jpg');
}

.hero.hero-software {
  background-image: 
    linear-gradient(180deg, rgba(7, 13, 30, 0.50) 0%, rgba(7, 13, 30, 0.68) 50%, rgba(7, 13, 30, 0.92) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(99, 102, 241, 0.30), transparent 60%),
    url('/assets/images/software-engineering-pod.jpg');
}
html.light .hero.hero-software {
  background-image: 
    linear-gradient(180deg, rgba(248, 250, 252, 0.70) 0%, rgba(248, 250, 252, 0.85) 60%, #ffffff 100%),
    radial-gradient(ellipse at 70% 30%, rgba(99, 102, 241, 0.15), transparent 60%),
    url('/assets/images/software-engineering-pod.jpg');
}

.hero.hero-talent {
  background-image: 
    linear-gradient(180deg, rgba(7, 13, 30, 0.50) 0%, rgba(7, 13, 30, 0.68) 50%, rgba(7, 13, 30, 0.92) 100%),
    radial-gradient(ellipse at 20% 50%, rgba(245, 158, 11, 0.25), transparent 60%),
    url('/assets/images/talent-academy-lab.jpg');
}
html.light .hero.hero-talent {
  background-image: 
    linear-gradient(180deg, rgba(248, 250, 252, 0.70) 0%, rgba(248, 250, 252, 0.85) 60%, #ffffff 100%),
    radial-gradient(ellipse at 20% 50%, rgba(245, 158, 11, 0.15), transparent 60%),
    url('/assets/images/talent-academy-lab.jpg');
}

.hero.hero-global {
  background-image: 
    linear-gradient(180deg, rgba(7, 13, 30, 0.50) 0%, rgba(7, 13, 30, 0.68) 50%, rgba(7, 13, 30, 0.92) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(99, 102, 241, 0.30), transparent 60%),
    url('/assets/images/global-network-cyber.jpg');
}
html.light .hero.hero-global {
  background-image: 
    linear-gradient(180deg, rgba(248, 250, 252, 0.70) 0%, rgba(248, 250, 252, 0.85) 60%, #ffffff 100%),
    radial-gradient(ellipse at 70% 30%, rgba(99, 102, 241, 0.15), transparent 60%),
    url('/assets/images/global-network-cyber.jpg');
}

/* Specialized Section Atmospheric Backgrounds (Rich Photographic Visibility) */
.home-hero-bg {
  background-color: #070d1e;
  background-image: 
    linear-gradient(180deg, rgba(7, 13, 30, 0.45) 0%, rgba(7, 13, 30, 0.65) 50%, rgba(7, 13, 30, 0.92) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(99, 102, 241, 0.35), transparent 60%),
    url('/assets/images/hero-cloud-skyline.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
html.light .home-hero-bg {
  background-color: #f8fafc;
  background-image: 
    linear-gradient(180deg, rgba(248, 250, 252, 0.70) 0%, rgba(248, 250, 252, 0.85) 60%, #ffffff 100%),
    radial-gradient(ellipse at 70% 30%, rgba(99, 102, 241, 0.15), transparent 60%),
    url('/assets/images/hero-cloud-skyline.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.capability-navigator-bg {
  background-color: #070d1e;
  background-image: 
    linear-gradient(180deg, rgba(7, 13, 30, 0.65) 0%, rgba(7, 13, 30, 0.82) 100%),
    radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.25), transparent 50%),
    url('/assets/images/cloud-datacenter.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
html.light .capability-navigator-bg {
  background-color: #f8fafc;
  background-image: 
    linear-gradient(180deg, rgba(248, 250, 252, 0.80) 0%, rgba(248, 250, 252, 0.92) 100%),
    radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.12), transparent 50%),
    url('/assets/images/cloud-datacenter.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bento-banner-bg {
  background-image: 
    linear-gradient(135deg, rgba(15, 23, 42, 0.72) 0%, rgba(7, 13, 30, 0.85) 100%),
    url('/assets/images/software-engineering-pod.jpg');
  background-size: cover;
  background-position: center;
}

.careers-spotlight-bg {
  background-color: #070d1e;
  background-image: 
    linear-gradient(180deg, rgba(7, 13, 30, 0.65) 0%, rgba(7, 13, 30, 0.82) 100%),
    radial-gradient(ellipse at 20% 50%, rgba(245, 158, 11, 0.20), transparent 50%),
    url('/assets/images/talent-academy-lab.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
html.light .careers-spotlight-bg {
  background-color: #f8fafc;
  background-image: 
    linear-gradient(180deg, rgba(248, 250, 252, 0.80) 0%, rgba(248, 250, 252, 0.92) 100%),
    radial-gradient(ellipse at 20% 50%, rgba(245, 158, 11, 0.10), transparent 50%),
    url('/assets/images/talent-academy-lab.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.contact-section-bg {
  background-color: #070d1e;
  background-image: 
    linear-gradient(180deg, rgba(7, 13, 30, 0.65) 0%, rgba(7, 13, 30, 0.84) 100%),
    radial-gradient(ellipse at 80% 40%, rgba(99, 102, 241, 0.25), transparent 60%),
    url('/assets/images/global-network-cyber.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
html.light .contact-section-bg {
  background-color: #f8fafc;
  background-image: 
    linear-gradient(180deg, rgba(248, 250, 252, 0.80) 0%, rgba(248, 250, 252, 0.92) 100%),
    radial-gradient(ellipse at 80% 40%, rgba(99, 102, 241, 0.10), transparent 60%),
    url('/assets/images/global-network-cyber.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cta-banner-bg {
  background-color: #070d1e;
  background-image: 
    linear-gradient(180deg, rgba(7, 13, 30, 0.60) 0%, rgba(7, 13, 30, 0.80) 100%),
    radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.30), transparent 70%),
    url('/assets/images/hero-cloud-skyline.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
html.light .cta-banner-bg {
  background-color: #f8fafc;
  background-image: 
    linear-gradient(180deg, rgba(248, 250, 252, 0.75) 0%, rgba(248, 250, 252, 0.90) 100%),
    radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.15), transparent 70%),
    url('/assets/images/hero-cloud-skyline.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.eyebrow,
.hero-eyebrow-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f59e0b;
  margin-bottom: 20px;
}

html.light .eyebrow,
html.light .hero-eyebrow-gold {
  color: #d97706;
}

.hero-headline {
  font-size: clamp(40px, 6vw, 70px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.hero-text-white {
  color: #ffffff;
}

html.light .hero-text-white {
  color: #0f172a;
}

.hero-text-white.italic {
  font-style: italic;
  font-weight: 800;
}

.hero-text-violet {
  color: #818cf8;
  font-weight: 700;
}

.hero-text-violet.italic {
  font-style: italic;
  font-family: inherit;
}

html.light .hero-text-violet {
  color: #4f46e5;
}

.hero-text-gold {
  color: #f59e0b;
  font-weight: 800;
}

.hero-text-gold.italic {
  font-style: italic;
}

html.light .hero-text-gold {
  color: #d97706;
}

.hero-lead {
  font-size: 18.5px;
  line-height: 1.65;
  color: #cbd5e1;
  max-width: 660px;
  margin-bottom: 32px;
  font-weight: 400;
}

html.light .hero-lead {
  color: #475569;
}

h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.hero h1 {
  font-size: clamp(38px, 5.5vw, 66px);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

.signal-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0;
}

.signal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.signal:last-child {
  border-bottom: none;
}

.signal span {
  font-size: 13px;
  color: var(--muted);
}

.signal strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--navy-deep);
}

html.light .section.alt {
  background: #f1f5f9;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-top: 8px;
}

.section-head p {
  color: var(--muted);
  max-width: 480px;
  font-size: 16px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.card .btn {
  margin-top: auto;
}

.tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  width: fit-content;
  margin-bottom: 12px;
}

.tag.amber {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
}

.tag.indigo {
  background: rgba(99, 102, 241, 0.14);
  color: #a5b4fc;
}

/* Metric / Counter Grid */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.metric {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  text-align: left;
}

.metric b {
  display: block;
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.metric span {
  font-size: 13px;
  color: var(--muted);
}

/* ==========================================================================
   Authentication System (Modal & Dedicated Views)
   ========================================================================== */
.auth-page-shell {
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  background-color: #070d1e;
  background-image: 
    linear-gradient(180deg, rgba(7, 13, 30, 0.84) 0%, rgba(7, 13, 30, 0.94) 100%),
    radial-gradient(ellipse at 50% 30%, rgba(99, 102, 241, 0.18), transparent 70%),
    url('/assets/images/cloud-datacenter.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

html.light .auth-page-shell {
  background-color: #f8fafc;
  background-image: 
    linear-gradient(180deg, rgba(248, 250, 252, 0.90) 0%, rgba(248, 250, 252, 0.96) 100%),
    radial-gradient(ellipse at 50% 30%, rgba(99, 102, 241, 0.10), transparent 70%),
    url('/assets/images/cloud-datacenter.jpg');
}

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  overflow-y: auto;
  max-height: 100vh;
  max-height: 100dvh;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

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

.auth-card {
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  max-height: calc(100dvh - 32px);
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto;
}

html.light .auth-card {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.auth-modal-backdrop.active .auth-card {
  transform: scale(1) translateY(0);
}

.auth-page-shell .auth-card {
  max-height: none;
  overflow: visible;
  padding: 34px 32px 28px;
}

.auth-card-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 32px 28px 24px;
  padding-right: 22px;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

.auth-card-body::-webkit-scrollbar {
  width: 6px;
}

.auth-card-body::-webkit-scrollbar-track {
  background: transparent;
}

.auth-card-body::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 999px;
}

.auth-card-body::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.55);
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.15);
  cursor: pointer;
  z-index: 20;
  transition: all 0.15s ease;
  font-size: 20px;
  line-height: 1;
}

.auth-modal-close:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.25);
  border-color: rgba(148, 163, 184, 0.3);
  transform: scale(1.05);
}

.auth-card-header {
  text-align: center;
  margin-bottom: 20px;
}

.auth-card-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.auth-card-title {
  font-size: 23px;
  font-weight: 800;
  margin-bottom: 5px;
}

.auth-card-subtitle {
  font-size: 13.5px;
  color: var(--muted);
}

/* Tabs Switcher */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #0f172a;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 20px;
  gap: 4px;
}

html.light .auth-tabs {
  background: #f1f5f9;
}

.auth-tab {
  padding: 9px 8px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.auth-tab.active {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

html.light .auth-tab.active {
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Social OAuth Buttons */
.oauth-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  background: #0f172a;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
}

html.light .oauth-btn {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.oauth-btn:hover {
  background: #1e293b;
  border-color: var(--indigo);
  transform: translateY(-1px);
}

html.light .oauth-btn:hover {
  background: #f1f5f9;
}

.oauth-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Divider with text */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 18px 0;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--line);
}

.auth-divider span {
  padding: 0 12px;
}

/* Form Fields & Controls */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-group label a {
  font-size: 12px;
  color: var(--cyan);
  font-weight: 500;
}

html.light .form-group label a {
  color: var(--indigo-dark);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-icon svg {
  width: 18px;
  height: 18px;
}

.auth-input {
  width: 100%;
  padding: 11px 14px 11px 42px;
  background: #0f172a;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--text);
  font-size: 14px;
  transition: all 0.15s ease;
}

html.light .auth-input {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.auth-input:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  background: #111e38;
}

html.light .auth-input:focus {
  background: #ffffff;
}

.auth-input.has-error {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.2);
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  padding: 6px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.password-toggle-btn:hover {
  color: var(--text);
}

.password-toggle-btn svg {
  width: 18px;
  height: 18px;
}

.field-error {
  font-size: 12px;
  color: var(--rose);
  margin-top: 2px;
  display: none;
}

.field-error.visible {
  display: block;
}

/* Password Strength Meter */
.strength-meter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.strength-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  height: 4px;
}

.strength-bar {
  background: rgba(148, 163, 184, 0.2);
  border-radius: 2px;
  transition: background-color 0.25s ease;
}

.strength-bars.weak .strength-bar:nth-child(1) { background: var(--rose); }
.strength-bars.fair .strength-bar:nth-child(-n+2) { background: var(--amber); }
.strength-bars.good .strength-bar:nth-child(-n+3) { background: var(--cyan); }
.strength-bars.strong .strength-bar:nth-child(-n+4) { background: var(--emerald); }

.strength-text {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

/* Role Selector Radio Pill Group */
.role-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.role-pill-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0f172a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.15s ease;
  text-align: center;
}

html.light .role-pill-label {
  background: #f8fafc;
}

.role-pill-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-pill-radio:checked + .role-pill-label {
  border-color: var(--indigo);
  background: rgba(99, 102, 241, 0.15);
  color: var(--text);
}

html.light .role-pill-radio:checked + .role-pill-label {
  color: var(--indigo-dark);
  background: rgba(79, 70, 229, 0.08);
}

/* Custom Checkbox */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  margin-top: 2px;
}

.checkbox-label a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

html.light .checkbox-label a {
  color: var(--indigo-dark);
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.15s ease;
}

html.light .custom-checkbox {
  background: #f8fafc;
  border-color: #cbd5e1;
}

input[type="checkbox"]:checked + .checkbox-label .custom-checkbox {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #ffffff;
}

/* Auth Submit Button with Spinner */
.auth-submit-btn {
  position: relative;
  min-height: 46px;
  font-size: 15px;
  margin-top: 8px;
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.auth-submit-btn.loading .btn-text {
  visibility: hidden;
}

.auth-submit-btn.loading .btn-spinner {
  display: block;
  position: absolute;
}

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

.auth-card-footer {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
}

.auth-card-footer a {
  color: var(--cyan);
  font-weight: 600;
}

html.light .auth-card-footer a {
  color: var(--indigo-dark);
}

/* ==========================================================================
   Gmail & Email OTP Verification Component
   ========================================================================== */
.otp-auth-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.25s ease-out;
}

.otp-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 4px;
}

html.light .otp-header-badge {
  background: rgba(79, 70, 229, 0.1);
  color: var(--indigo-dark);
  border-color: rgba(79, 70, 229, 0.25);
}

.otp-target-email {
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
}

.otp-input-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 12px 0 6px;
}

.otp-digit-box {
  width: 100%;
  height: 52px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, monospace;
  background: #0f172a;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

html.light .otp-digit-box {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.otp-digit-box:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.25);
  background: #111e38;
  transform: translateY(-2px);
}

html.light .otp-digit-box:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
  background: #ffffff;
}

.otp-digit-box.filled {
  border-color: var(--indigo);
  background: rgba(99, 102, 241, 0.12);
}

.otp-timer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.otp-resend-btn {
  background: transparent;
  border: none;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.otp-resend-btn:hover:not(:disabled) {
  text-decoration: underline;
}

.otp-resend-btn:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.6;
}

.otp-switch-method {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.otp-switch-link {
  color: var(--cyan);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

html.light .otp-switch-link {
  color: var(--indigo-dark);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 999px;
  color: var(--emerald);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

html.light .verified-badge {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.otp-demo-hint {
  padding: 10px 12px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px dashed rgba(34, 211, 238, 0.3);
  border-radius: 8px;
  font-size: 12px;
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

html.light .otp-demo-hint {
  background: #f0fdfa;
  border-color: #99f6e4;
  color: #0f766e;
}

.otp-demo-hint code {
  font-family: ui-monospace, monospace;
  font-weight: 800;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 2px;
}

/* Modal and Auth Form Mobile Adaptations */
@media (max-width: 640px) {
  .auth-modal-backdrop {
    padding: 10px;
    align-items: center;
  }
  .auth-card {
    max-height: 90vh;
    max-height: calc(100dvh - 20px);
    border-radius: 16px;
  }
  .auth-card-body {
    padding: 22px 16px 18px;
    padding-right: 12px;
  }
  .auth-card-title {
    font-size: 20px;
  }
  .auth-card-subtitle {
    font-size: 12.5px;
  }
  .auth-tabs {
    margin-bottom: 16px;
  }
  .auth-tab {
    font-size: 11.5px;
    padding: 7px 4px;
  }
  .oauth-buttons {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .otp-input-grid {
    gap: 6px;
  }
  .otp-digit-box {
    height: 46px;
    font-size: 18px;
  }
}

/* Scroll Lock Utility */
body.overflow-hidden,
html.overflow-hidden {
  overflow: hidden !important;
  touch-action: none;
}

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

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #1e293b;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 380px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald);
}

.toast.error .toast-icon {
  background: rgba(244, 63, 94, 0.2);
  color: var(--rose);
}

.toast.info .toast-icon {
  background: rgba(99, 102, 241, 0.2);
  color: var(--cyan);
}

/* ==========================================================================
   Forms, Tables, Dashboards & Footers
   ========================================================================== */
.form-shell {
  max-width: 680px;
  margin: 40px auto;
}

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label, .field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f172a;
  color: var(--text);
  padding: 12px 14px;
  font-size: 14px;
  transition: all 0.15s ease;
}

html.light .field input, html.light .field select, html.light .field textarea {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.notice {
  padding: 14px 18px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
  border-radius: 10px;
  margin: 16px 0;
  font-size: 14px;
}

html.light .notice {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

/* Dashboard Elements */
.dashboard {
  padding: 40px 0 80px;
}

.dash-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 20px;
}

.dash-top h1 {
  font-size: 32px;
  margin-top: 4px;
}

.dash-top p {
  color: var(--muted);
  font-size: 15px;
}

.dash-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
}

.side-nav {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.side-nav a:hover, .side-nav a.active {
  background: rgba(99, 102, 241, 0.14);
  color: var(--text);
}

html.light .side-nav a.active {
  color: var(--indigo-dark);
  background: rgba(79, 70, 229, 0.08);
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.kpi small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi strong {
  display: block;
  font-size: 26px;
  margin-top: 6px;
  font-weight: 800;
}

.progress {
  height: 6px;
  border-radius: 999px;
  background: #0f172a;
  overflow: hidden;
  margin-top: 10px;
}

html.light .progress {
  background: #e2e8f0;
}

.progress i {
  display: block;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: inherit;
}

/* Pricing Page Details */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.price-card {
  position: relative;
  border-radius: 16px;
}

.price-card.featured {
  border-color: var(--indigo);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.2);
}

.ribbon {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--gradient-primary);
  color: white;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
}

.price {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 16px 0 8px;
  color: var(--text);
}

.price small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

/* Estimator */
.estimator {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin: 30px 0;
}

.estimate-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
}

.estimate-row input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--indigo);
}

.estimate-total {
  font-size: 28px;
  font-weight: 800;
  color: var(--cyan);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.data-table th, .data-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.data-table th {
  background: rgba(148, 163, 184, 0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  background: var(--navy-deep);
  color: var(--muted);
  font-size: 14px;
}

html.light .footer {
  background: #f8fafc;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  max-width: 320px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--muted);
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-links-desktop {
    display: none !important;
  }
  .header-auth-group {
    display: none !important;
  }
  .hamburger-btn {
    display: flex !important;
    flex-shrink: 0 !important;
  }
  .mobile-drawer {
    display: flex;
  }
  .header-actions {
    gap: 8px;
    flex-shrink: 0;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .grid.two {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .grid.three, .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid.four, .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .container {
    padding: 0 16px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  
  /* Mobile Header Sizing & Frame Fit */
  .site-header {
    height: auto;
  }
  .header-nav {
    height: 62px;
    gap: 10px;
    padding: 0;
  }
  .brand {
    gap: 8px;
    min-width: 0;
    flex-shrink: 1;
  }
  .brand-badge {
    width: 32px;
    height: 32px;
    font-size: 14px;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .brand-name {
    font-size: 17px;
    white-space: nowrap;
  }
  
  .header-actions {
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
  }
  
  /* Compact Search Icon Button on Mobile */
  .header-search-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .header-search-btn span,
  .header-search-btn kbd {
    display: none !important;
  }
  
  .a11y-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
  }
  
  .theme-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
  }
  
  .hamburger-btn {
    width: 38px;
    height: 38px;
    padding: 8px;
    border-radius: 8px;
    flex-shrink: 0 !important;
    gap: 4px;
  }
  .hamburger-line {
    width: 18px;
    height: 2px;
  }

  .hero {
    padding: 48px 0 36px;
  }
  .hero h1 {
    font-size: clamp(28px, 7vw, 42px);
    line-height: 1.15;
    margin-bottom: 16px;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .hero-headline {
    font-size: clamp(28px, 7.5vw, 42px);
    line-height: 1.15;
    margin-bottom: 18px;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .hero-lead, .lead {
    font-size: 15.5px;
    line-height: 1.55;
    margin-bottom: 22px;
    word-break: break-word;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .grid.two, .grid.three, .grid.four, .pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .dash-layout {
    grid-template-columns: 1fr;
  }
  .side-nav {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px;
    gap: 8px;
  }
  .side-nav a {
    white-space: nowrap;
    padding: 8px 14px;
    flex-shrink: 0;
  }
  .kpi-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .section-head, .dash-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .form-card {
    padding: 24px 18px;
  }
  .card {
    padding: 22px 18px;
  }
  .auth-card {
    padding: 24px 18px 20px;
    width: calc(100vw - 24px);
    max-width: 480px;
  }
  .oauth-buttons {
    grid-template-columns: 1fr;
  }
  .cmd-palette-backdrop {
    padding: 24px 12px 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  .header-nav {
    height: 56px;
    gap: 6px;
  }
  .brand-badge {
    width: 30px;
    height: 30px;
    font-size: 13px;
    border-radius: 7px;
  }
  .brand-name {
    font-size: 15.5px;
  }
  
  /* On tight mobile screens, keep Search + Theme + Hamburger cleanly spaced */
  .a11y-toggle-btn {
    display: none !important;
  }
  .header-actions {
    gap: 5px;
  }
  .header-search-btn,
  .theme-toggle-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }
  .hamburger-btn {
    width: 36px;
    height: 36px;
    padding: 7px;
    border-radius: 8px;
  }
  .hamburger-line {
    width: 16px;
  }

  .metric-grid, .kpi-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero {
    padding: 38px 0 28px;
  }
  .hero h1 {
    font-size: clamp(24px, 7.5vw, 32px);
    line-height: 1.18;
    margin-bottom: 14px;
  }
  .hero-headline {
    font-size: clamp(24px, 7.5vw, 32px);
    line-height: 1.18;
    margin-bottom: 14px;
  }
  .lead, .hero-lead {
    font-size: 14.5px;
    line-height: 1.5;
    margin-bottom: 18px;
  }
  .signal {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .signal strong {
    font-size: 17px;
    word-break: break-all;
  }
  .form-card {
    padding: 18px 14px;
  }
  .card {
    padding: 18px 14px;
  }
  .estimator {
    padding: 18px 14px;
  }
  .estimate-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .estimate-total {
    font-size: 24px;
  }
  .role-pills {
    grid-template-columns: 1fr;
  }
  .btn {
    min-height: 44px;
  }
}

/* ==========================================================================
   Interactive Experience Systems & Visualizers
   ========================================================================== */
.interactive-panel {
  background: var(--navy-surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

/* Architecture Topology Visualizer */
.arch-visualizer {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.arch-nav-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.arch-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.arch-tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.arch-tab-btn.active {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.3);
}

.topology-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: stretch;
}

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

.topology-canvas {
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background-image: radial-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 0);
  background-size: 20px 20px;
}

.topology-stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
  z-index: 2;
}

@media (max-width: 600px) {
  .topology-stages {
    grid-template-columns: 1fr;
  }
}

.topology-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.col-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--line);
}

.node-card {
  background: var(--navy-surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  user-select: none;
}

.node-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(34, 211, 238, 0.15);
}

.node-card.active {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  box-shadow: 0 0 0 1px var(--cyan);
}

.node-card.faulted {
  border-color: var(--rose) !important;
  background: rgba(244, 63, 94, 0.12) !important;
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.node-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.node-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
}

.node-status-dot.pulse {
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.node-card.faulted .node-status-dot {
  background: var(--rose);
  box-shadow: 0 0 6px var(--rose);
}

.node-desc {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

/* Topology Node Inspector */
.topology-inspector {
  background: var(--navy-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.inspector-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.inspector-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}

.inspector-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.inspector-stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
}

.stat-box-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}

.stat-box-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.inspector-log-stream {
  background: #020617;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  color: #a5f3fc;
  height: 100px;
  overflow-y: auto;
  line-height: 1.4;
}

/* Interactive Controls Bar */
.visualizer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.traffic-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 240px;
}

.traffic-slider-wrap span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.traffic-slider {
  flex: 1;
  accent-color: var(--cyan);
}

/* Interactive Scope & Pod Calculator */
.interactive-calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 800px) {
  .interactive-calc-grid {
    grid-template-columns: 1fr;
  }
}

.calc-slider-card {
  background: var(--navy-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}

.calc-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.calc-slider-head h4 {
  font-size: 14px;
  font-weight: 600;
}

.calc-slider-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan);
}

.range-input {
  width: 100%;
  accent-color: var(--indigo);
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
}

.calc-addon-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.calc-addon-toggle:hover {
  border-color: var(--indigo);
}

.calc-addon-toggle input[type="checkbox"] {
  accent-color: var(--cyan);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Edge Radar Grid */
.edge-radar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.radar-node {
  background: var(--navy-deep);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.radar-node:hover {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.04);
}

.radar-location {
  display: flex;
  flex-direction: column;
}

.radar-city {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.radar-region {
  font-size: 11px;
  color: var(--muted);
}

.radar-latency {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--emerald);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Interactive Developer Terminal */
.terminal-window {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.terminal-topbar {
  background: #0f172a;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1e293b;
}

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

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

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

.terminal-title {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.terminal-screen {
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
  min-height: 200px;
  max-height: 320px;
  overflow-y: auto;
}

.terminal-line {
  margin-bottom: 6px;
  word-break: break-word;
}

.t-prompt {
  color: var(--cyan);
  font-weight: 700;
}

.t-success {
  color: #34d399;
}

.t-warning {
  color: #fbbf24;
}

.t-info {
  color: #93c5fd;
}

.terminal-chip-bar {
  padding: 10px 14px;
  background: #090d16;
  border-top: 1px solid #1e293b;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.term-chip {
  background: #1e293b;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.term-chip:hover {
  background: rgba(34, 211, 238, 0.15);
  border-color: var(--cyan);
}

/* Search & Filter Component */
.filter-search-container {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-search-input {
  flex: 1;
  min-width: 240px;
  background: var(--navy-surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.filter-search-input:focus {
  border-color: var(--cyan);
}

.filter-chip-group {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
}

.filter-chip {
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.filter-chip:hover {
  color: var(--text);
  border-color: var(--text-dim);
}

.filter-chip.active {
  background: var(--indigo);
  color: #fff;
  border-color: var(--indigo);
}

/* Copy Action Button */
.copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
  font-family: ui-monospace, monospace;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}

.copy-pill:hover {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}

/* ==========================================================================
   Namaste Welcome Celebration & Confetti System
   ========================================================================== */
.celebration-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.celebration-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.celebration-card {
  position: relative;
  background: var(--navy-surface);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  padding: 36px 32px 30px;
  text-align: center;
  box-shadow: 0 25px 60px -15px rgba(99, 102, 241, 0.4), 0 0 40px rgba(34, 211, 238, 0.2);
  transform: scale(0.85) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

html.light .celebration-card {
  background: #ffffff;
  border-color: var(--indigo);
  box-shadow: 0 20px 45px -10px rgba(79, 70, 229, 0.25), 0 0 25px rgba(8, 145, 178, 0.15);
}

.celebration-backdrop.active .celebration-card {
  transform: scale(1) translateY(0);
}

.celebration-emoji-badge {
  font-size: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(34, 211, 238, 0.2) 100%);
  border: 2px solid rgba(99, 102, 241, 0.5);
  border-radius: 50%;
  margin-bottom: 18px;
  animation: namastePulse 2s infinite alternate ease-in-out;
}

@keyframes namastePulse {
  0% { transform: scale(1) rotate(-3deg); }
  100% { transform: scale(1.08) rotate(3deg); }
}

.celebration-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.celebration-desc {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.confetti-canvas-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.confetti-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  will-change: transform, opacity;
  animation: confettiFall 2.8s linear forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-20px) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(480px) rotate(720deg) scale(0.4);
    opacity: 0;
  }
}

/* ==========================================================================
   Offline / Internet Loss Banner & Network Guard
   ========================================================================== */
.network-status-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: #dc2626;
  color: #ffffff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.network-status-bar.show {
  transform: translateY(0);
}

.network-status-bar.online-restored {
  background: #059669;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
}

.network-status-bar .pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  animation: pulseDot 1.2s infinite ease-in-out;
}

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

/* ==========================================================================
   Auth Shake & Form Validation Feedback
   ========================================================================== */
@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.auth-card.shake {
  animation: authShake 0.45s ease-in-out;
  border-color: #ef4444 !important;
}

.field-error-hint {
  color: #f87171;
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  width: 100%;
  padding-right: 40px;
}

.password-toggle-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.password-toggle-btn:hover {
  color: var(--text);
}

/* ==========================================================================
   DPDP Act 2023 / 2027 Granular Consent Banner & SRM Modal
   ========================================================================== */
.dpdp-consent-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 960px;
  margin: 0 auto;
  z-index: 60;
  background: rgba(17, 24, 39, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

html.light .dpdp-consent-banner {
  background: rgba(255, 255, 255, 0.98);
  border-color: var(--indigo);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15);
}

.dpdp-consent-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.dpdp-banner-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dpdp-banner-title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.dpdp-banner-body {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
}

.dpdp-banner-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* SRM Privacy Portal Controls */
.srm-card {
  background: var(--navy-surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}

html.light .srm-card {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.06);
}

.srm-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.srm-toggle-row:last-child {
  border-bottom: none;
}

.srm-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

.srm-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--navy-deep);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  transition: 0.25s;
}

.srm-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: 0.25s;
}

input:checked + .srm-slider {
  background-color: var(--indigo);
  border-color: var(--indigo);
}

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

/* ==========================================================================
   Empty States & 404 Cyber Visuals
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--navy-surface);
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  margin: 20px 0;
}

html.light .empty-state {
  background: #ffffff;
}

.empty-state-icon {
  font-size: 44px;
  margin-bottom: 14px;
  display: inline-block;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.empty-state-desc {
  color: var(--muted);
  font-size: 14px;
  max-width: 420px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

/* ==========================================================================
   Customer Testimonials & Case Study Highlights
   ========================================================================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.testimonial-card {
  background: var(--navy-surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--indigo);
}

html.light .testimonial-card {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.testimonial-rating {
  color: var(--amber);
  font-size: 16px;
  margin-bottom: 14px;
}

.testimonial-quote {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 20px;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

/* ==========================================================================
   Enterprise Pricing Auth Gate & Lock Shield
   ========================================================================== */
.pricing-auth-gate-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

html.light .pricing-auth-gate-box {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.08);
}

.pricing-auth-gate-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.pricing-lock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--cyan);
  margin-bottom: 20px;
}

.pricing-auth-gate-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.pricing-auth-gate-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 24px;
}

.pricing-auth-gate-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.pricing-locked-shield {
  position: relative;
  user-select: none;
}

.pricing-locked-shield .price-card,
.pricing-locked-shield .interactive-panel {
  filter: blur(5px) grayscale(40%);
  opacity: 0.55;
  pointer-events: none;
}

.pricing-unlocked-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 12px;
}

.pricing-unlocked-banner span {
  font-size: 14px;
  color: var(--emerald);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Universal Enterprise Command Palette (Ctrl+K / Cmd+K)
   ========================================================================== */
.cmd-palette-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 70;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 16px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cmd-palette-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.cmd-palette-modal {
  width: 100%;
  max-width: 640px;
  background: var(--navy-surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(99, 102, 241, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(-16px) scale(0.98);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

html.light .cmd-palette-modal {
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.cmd-palette-backdrop.active .cmd-palette-modal {
  transform: translateY(0) scale(1);
}

.cmd-palette-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.cmd-palette-search-icon {
  color: var(--muted);
  display: flex;
  align-items: center;
}

.cmd-palette-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 16px;
  color: var(--text);
  outline: none;
  font-family: inherit;
}

.cmd-palette-input::placeholder {
  color: var(--muted);
}

.cmd-palette-kbd {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 7px;
  background: var(--navy-deep);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
}

.cmd-palette-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cmd-palette-category-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 8px 12px 4px;
}

.cmd-palette-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
}

.cmd-palette-item:hover,
.cmd-palette-item.selected {
  background: rgba(99, 102, 241, 0.12);
  color: var(--cyan);
}

html.light .cmd-palette-item:hover,
html.light .cmd-palette-item.selected {
  background: rgba(99, 102, 241, 0.08);
  color: var(--indigo);
}

.cmd-palette-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cmd-palette-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
}

.cmd-palette-item.selected .cmd-palette-item-icon {
  color: var(--cyan);
}

.cmd-palette-item-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

.cmd-palette-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: var(--navy-deep);
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

html.light .cmd-palette-footer {
  background: #f8fafc;
}

/* ==========================================================================
   Header Search & Accessibility Action Buttons
   ========================================================================== */
.header-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

html.light .header-search-btn {
  background: rgba(241, 245, 249, 0.8);
  border-color: rgba(203, 213, 225, 0.8);
}

.header-search-btn:hover {
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--text);
  background: rgba(99, 102, 241, 0.08);
}

.header-search-btn kbd {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

html.light .header-search-btn kbd {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.a11y-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

html.light .a11y-toggle-btn {
  background: rgba(241, 245, 249, 0.8);
  border-color: rgba(203, 213, 225, 0.8);
}

.a11y-toggle-btn:hover,
.a11y-toggle-btn.active {
  color: var(--cyan);
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(6, 182, 212, 0.1);
}

html.light .a11y-toggle-btn:hover,
html.light .a11y-toggle-btn.active {
  color: var(--indigo-dark);
  border-color: rgba(79, 70, 229, 0.4);
  background: rgba(79, 70, 229, 0.08);
}

/* Accessibility Settings Modal / Popover */
.a11y-modal-card {
  max-width: 440px;
  background: var(--navy-surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

html.light .a11y-modal-card {
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

.a11y-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.a11y-control-row:last-child {
  border-bottom: none;
}

.a11y-label-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.a11y-label-sub {
  font-size: 12px;
  color: var(--muted);
}

.a11y-btn-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--navy-deep);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

html.light .a11y-btn-group {
  background: #f1f5f9;
}

.a11y-opt-btn {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.a11y-opt-btn.active {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

/* High Contrast Mode */
html.high-contrast {
  --bg: #000000 !important;
  --navy: #000000 !important;
  --navy-surface: #0a0a0a !important;
  --navy-card: #121212 !important;
  --text: #ffffff !important;
  --muted: #e2e8f0 !important;
  --border: #ffffff !important;
  --line: #ffffff !important;
  --cyan: #00ffff !important;
  --indigo: #a5b4fc !important;
  --emerald: #00ff66 !important;
  --amber: #ffcc00 !important;
}

html.high-contrast .card,
html.high-contrast .dash-layout,
html.high-contrast .side-nav,
html.high-contrast header,
html.high-contrast .auth-card {
  border: 2px solid #ffffff !important;
}

html.high-contrast button,
html.high-contrast a.btn {
  border: 2px solid currentColor !important;
  font-weight: 800 !important;
}

/* ==========================================================================
   Enterprise Deliverables & Document Generation Styles
   ========================================================================== */
.deliverables-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.deliverables-tab-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.6);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
  flex-wrap: wrap;
}

html.light .deliverables-tab-group {
  background: #f1f5f9;
}

.d-tab {
  padding: 7px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.d-tab:hover {
  color: var(--text);
}

.d-tab.active {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.deliverables-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  min-width: 260px;
}

html.light .deliverables-search-wrap {
  background: #ffffff;
}

.deliverables-search-wrap input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13.5px;
  width: 100%;
}

/* Document Generation Banner */
.doc-gen-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  margin-bottom: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  flex-wrap: wrap;
}

html.light .doc-gen-banner {
  background: linear-gradient(135deg, #eef2ff 0%, #ecfeff 100%);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.08);
}

.doc-gen-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gradient-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.doc-gen-text {
  flex: 1;
  min-width: 240px;
}

.doc-gen-text h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text);
}

.doc-gen-text p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.doc-gen-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Deliverable Cards */
.deliverable-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.deliverable-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.deliverable-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.deliverable-date {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}

.deliverable-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
}

.deliverable-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.deliverable-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  margin-top: 4px;
}

html.light .deliverable-meta-grid {
  background: #f8fafc;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.meta-val {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}

.font-mono {
  font-family: ui-monospace, monospace;
}

.deliverable-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Document Generation Modal & Paper Styles (Print & Export)
   ========================================================================== */
.doc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 25, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.doc-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.doc-modal-card {
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  background: #ffffff;
  color: #0f172a;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.doc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #0f172a;
  border-bottom: 1px solid #334155;
}

.doc-modal-body {
  padding: 36px 40px;
  overflow-y: auto;
  background: #ffffff;
  color: #1e293b;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

/* Document Paper Content Styling */
.doc-paper-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.doc-paper-logo {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
}

.doc-paper-logo span {
  color: #4f46e5;
}

.doc-paper-badge {
  display: inline-block;
  padding: 3px 8px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #4338ca;
  font-size: 11px;
  font-weight: 800;
  border-radius: 4px;
  text-transform: uppercase;
}

.doc-paper-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 16px 0 6px;
}

.doc-paper-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 13.5px;
}

.doc-paper-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13.5px;
}

.doc-paper-table th {
  background: #f1f5f9;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid #cbd5e1;
  font-weight: 700;
  color: #334155;
}

.doc-paper-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
}

.doc-stamp-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 2px dashed #cbd5e1;
}

.doc-signature {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.doc-stamp-seal {
  width: 84px;
  height: 84px;
  border: 2px dashed #4f46e5;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
  font-size: 9px;
  font-weight: 900;
  text-align: center;
  transform: rotate(-10deg);
}

/* Print CSS */
@media print {
  body * {
    visibility: hidden;
  }
  .doc-modal-backdrop,
  .doc-modal-card,
  .doc-modal-body,
  .doc-modal-body * {
    visibility: visible;
  }
  .doc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: transparent;
    padding: 0;
  }
  .doc-modal-card {
    max-width: 100%;
    box-shadow: none;
    border: none;
  }
  .no-print {
    display: none !important;
  }
}

/* ==========================================================================
   Enterprise Gemini AI Studio & Veo Video Suite
   ========================================================================== */
.ai-floating-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4), 0 8px 10px -6px rgba(6, 182, 212, 0.3);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-floating-trigger:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.5), 0 10px 12px -5px rgba(6, 182, 212, 0.4);
}

.ai-floating-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-ring {
  to {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
}

.ai-studio-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.ai-studio-modal-backdrop.active {
  display: flex;
}

.ai-studio-card {
  width: 100%;
  max-width: 960px;
  height: 88vh;
  max-height: 820px;
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  color: var(--text);
}

html.light .ai-studio-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.ai-studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.6);
}

html.light .ai-studio-header {
  background: #f8fafc;
}

.ai-studio-tabs {
  display: flex;
  gap: 8px;
  padding: 0 24px;
  background: rgba(15, 23, 42, 0.4);
  border-bottom: 1px solid var(--line);
}

html.light .ai-studio-tabs {
  background: #f1f5f9;
}

.ai-studio-tab-btn {
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.ai-studio-tab-btn:hover {
  color: var(--text);
}

.ai-studio-tab-btn.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

html.light .ai-studio-tab-btn.active {
  color: var(--indigo-dark);
  border-bottom-color: var(--indigo-dark);
}

.ai-studio-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.ai-tab-pane {
  display: none;
  flex: 1;
  flex-direction: column;
  height: 100%;
}

.ai-tab-pane.active {
  display: flex;
}

/* Chat Tab Layout */
.ai-chat-thread {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ai-chat-bubble {
  max-width: 82%;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
  animation: fadeIn 0.25s ease-out;
}

.ai-chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.ai-chat-bubble.assistant {
  align-self: flex-start;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

html.light .ai-chat-bubble.assistant {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.ai-grounding-sources {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

html.light .ai-grounding-sources {
  border-top-color: #cbd5e1;
}

.ai-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 6px;
  color: var(--cyan);
  text-decoration: none;
  font-size: 11px;
  transition: background 0.15s;
}

.ai-source-pill:hover {
  background: rgba(6, 182, 212, 0.25);
}

html.light .ai-source-pill {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #bae6fd;
}

.ai-chat-toolbar {
  padding: 12px 24px;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

html.light .ai-chat-toolbar {
  background: #f8fafc;
}

.ai-chat-input-row {
  padding: 16px 24px 24px;
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.ai-chat-textarea {
  flex: 1;
  background: #0f172a;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 14px;
  resize: none;
  height: 52px;
  max-height: 140px;
  outline: none;
  transition: border 0.15s;
}

html.light .ai-chat-textarea {
  background: #ffffff;
  border-color: #cbd5e1;
}

.ai-chat-textarea:focus {
  border-color: var(--cyan);
}

html.light .ai-chat-textarea:focus {
  border-color: var(--indigo);
}

/* Image & Video Visual Studio */
.ai-visual-studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
  height: 100%;
}

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

.ai-studio-preview-box {
  background: #0f172a;
  border: 2px dashed var(--line-strong);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 300px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

html.light .ai-studio-preview-box {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.ai-studio-preview-box img,
.ai-studio-preview-box video {
  max-width: 100%;
  max-height: 360px;
  border-radius: 10px;
  object-fit: contain;
}

.ai-video-progress-wrap {
  width: 100%;
  max-width: 320px;
  margin-top: 14px;
}

.ai-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.ai-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
  width: 0%;
  transition: width 0.4s ease-out;
}

.ai-progress-fill.indeterminate {
  width: 50%;
  animation: progress-indet 1.5s infinite ease-in-out;
}

@keyframes progress-indet {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* ==========================================================================
   Responsive Auto-Adjusting Typography Engine (Fluid Clamp Scaling)
   ========================================================================== */
:root {
  --fluid-h1: clamp(1.75rem, 4.8vw + 0.2rem, 3.75rem);
  --fluid-h2: clamp(1.35rem, 3.4vw + 0.2rem, 2.5rem);
  --fluid-h3: clamp(1.1rem, 2.2vw + 0.1rem, 1.65rem);
  --fluid-lead: clamp(0.95rem, 1.4vw + 0.2rem, 1.25rem);
}

.fluid-h1,
.hero h1,
.hero-title,
.auth-card-title {
  font-size: var(--fluid-h1) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em !important;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: none;
}

.fluid-h2 {
  font-size: var(--fluid-h2) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
  word-break: break-word;
  overflow-wrap: break-word;
}

.fluid-h3 {
  font-size: var(--fluid-h3) !important;
  line-height: 1.28 !important;
  word-break: break-word;
  overflow-wrap: break-word;
}

.fluid-lead,
.lead {
  font-size: var(--fluid-lead) !important;
  line-height: 1.6 !important;
}

/* Auto-scale headings across mobile viewports to prevent awkward truncation */
@media (max-width: 640px) {
  h1, h2, h3, .theme-heading {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: none;
  }

  .hero h1 {
    font-size: clamp(1.65rem, 6.5vw, 2.25rem) !important;
    line-height: 1.18 !important;
  }

  .auth-card {
    padding: 24px 18px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .auth-card-title {
    font-size: clamp(1.4rem, 5vw, 1.85rem) !important;
  }

  .auth-card-subtitle {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  .kpi-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .dash-top h1 {
    font-size: clamp(1.4rem, 4.5vw, 1.9rem) !important;
  }

  /* Prevent button and chip overflows */
  .btn, .mobile-badge-pill, .tag, .cap-tab {
    max-width: 100%;
    word-break: break-word;
  }
}

/* ==========================================================================
   SiteMind AI Assistant Widget Cadence & Cookie Banner Coordination
   Z-Index Hierarchy:
   - Normal page sections: < 40
   - SiteMind Widget: 40
   - Mobile Navigation Drawer: 50
   - Cookie Consent Banner: 60
   - Compliance Modals / Popups: 70
   ========================================================================== */
#sitemind-widget-container {
  position: fixed !important;
  bottom: 1.5rem !important;
  right: 1.5rem !important;
  z-index: 40 !important;
}

#sitemind-widget-panel {
  z-index: 40 !important;
}

/* Cookie Banner Collision Safeguard on Mobile Viewports */
@media (max-width: 768px) {
  body.has-cookie-banner #sitemind-widget-trigger,
  body.has-cookie-banner .sitemind-trigger-btn,
  #sitemind-widget-container[data-cookie-banner-active="true"] #sitemind-widget-trigger,
  #sitemind-widget-container[data-cookie-banner-active="true"] .sitemind-trigger-btn,
  .dpdp-consent-banner.show ~ #sitemind-widget-container #sitemind-widget-trigger {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(24px) scale(0.9) !important;
    visibility: hidden !important;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease !important;
  }
}
