@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* Opaltel Design System */
:root {
  /* Colors */
  --primary: #0d50ee;
  --primary-rgb: 13, 80, 238;
  --primary-hover: #0a40be;
  --secondary: #ef7720;
  --secondary-rgb: 239, 119, 32;
  --accent: #ef7720;
  --accent-rgb: 239, 119, 32;

  --bg-base: #f0f4f8;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.4);
  
  /* Glassmorphism Tokens */
  --glass-bg: rgba(255, 255, 255, 0.5);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-blur: blur(16px) saturate(180%);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

  --text-primary: hsl(222, 47%, 11%);
  --text-secondary: hsl(217, 19%, 35%);
  --text-light: hsl(215, 16%, 57%);

  --border-color: rgba(255, 255, 255, 0.5);
  --border-glow: rgba(12, 160, 244, 0.2);

  /* Gradients (Removed per request, mapping to solid colors) */
  --gradient-brand: var(--primary);
  --gradient-opal: var(--primary);
  --gradient-glow: var(--primary);
  --gradient-text: var(--primary);
  --gradient-gold: #f59e0b;

  /* Typography */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 15px 30px -10px rgba(12, 160, 244, 0.25);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;
}

body.dark-mode {
  --bg-base: #0a0f1c;
  --bg-surface: rgba(15, 23, 42, 0.5);
  --bg-card: rgba(15, 23, 42, 0.6);

  /* Glassmorphism Tokens - Dark Mode */
  --glass-bg: rgba(15, 23, 42, 0.65);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);

  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-light: #94a3b8;

  --border-color: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(12, 160, 244, 0.4);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headings);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  outline: none;
}

/* Typography Helpers */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.text-gradient-brand {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

#particles-3d-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#particles-3d-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* =========================================
   LIQUID GLASS BACKGROUND ORBS
========================================= */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -100;
  opacity: 0.6;
  pointer-events: none;
  animation: float 20s infinite alternate ease-in-out;
}

body.dark-mode .glow-orb {
  opacity: 0.3;
}

.glow-orb-primary {
  top: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: var(--primary);
  animation-delay: 0s;
}

.glow-orb-secondary {
  bottom: -20%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--secondary);
  animation-delay: -5s;
}

.glow-orb-accent {
  top: 40%;
  left: 40%;
  width: 40vw;
  height: 40vw;
  background: #00ffff;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 10%) scale(1.2); }
  100% { transform: translate(-10%, -5%) scale(0.9); }
}

/* Override existing static backgrounds to show orbs */
body {
  background-color: var(--bg-surface);
}

.section {
  padding: 8rem 0;
  position: relative;
  background: transparent;
  /* Cybernetic Grid backdrop */
  background-image: linear-gradient(rgba(12, 160, 244, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 160, 244, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center center;
}

.section-bg-alt {
  background: transparent;
}

.section-bg-gradient {
  background: transparent;
  /* Cybernetic Grid backdrop */
  background-image: linear-gradient(rgba(12, 160, 244, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 160, 244, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
}

#globe-3d-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#globe-3d-container canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 5rem;
}

.section-header h2 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.125rem;
}

.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  background: rgba(12, 160, 244, 0.1);
  color: var(--primary);
  font-family: var(--font-headings);
}

.badge-rose {
  background: rgba(246, 85, 137, 0.1);
  color: var(--secondary);
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-family: var(--font-headings);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  white-space: nowrap;
}

.btn-primary {
  color: #ffffff;
  background: var(--gradient-brand);
  box-shadow: var(--shadow-sm);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  color: var(--text-primary);
  background: var(--bg-base);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-text {
  color: var(--primary);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
}

.btn-text:hover {
  background: rgba(12, 160, 244, 0.05);
  color: var(--primary-hover);
  transform: translateX(3px);
}

.btn-text svg {
  transition: transform var(--transition-fast);
}

.btn-text:hover svg {
  transform: translateX(4px);
}

.card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-normal);
  position: relative;
  z-index: 1;
  /* Hardware accelerated 3D tilt prep */
  will-change: transform;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.kb-article-card {
  will-change: transform;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-md);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
  transition: background var(--transition-normal);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(12, 160, 244, 0.3);
}

.card:hover::before {
  background: linear-gradient(135deg, rgba(12, 160, 244, 0.4), rgba(246, 85, 137, 0.4));
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
}

.header.scrolled {
  height: 70px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  border-bottom: 1px solid var(--glass-border);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.logo img {
  height: auto !important;
  max-height: 45px !important;
  width: auto;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gradient-brand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(12, 160, 244, 0.3);
}

.logo-icon::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--bg-card);
  border-radius: 4px;
  transform: rotate(45deg);
}

.logo-text {
  font-weight: 800;
}

.logo-text span {
  font-weight: 400;
  color: var(--primary);
}

/* Nav Links */
.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-weight: 500;
  font-family: var(--font-headings);
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
  font-size: 1rem;
  white-space: nowrap;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-normal);
  border-radius: var(--radius-full);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.active {
  color: var(--text-primary);
  font-weight: 600;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hamburger Menu */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}

.menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-left: 1px solid var(--glass-border);
  z-index: 999;
  box-shadow: var(--glass-shadow);
  padding: 8rem 3rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: right var(--transition-normal);
}

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

.mobile-nav .nav-link {
  font-size: 1.25rem;
  padding: 0.75rem 0;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Footer Section */
.footer {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  padding: 5rem 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1.25rem;
  color: var(--text-light);
  max-width: 300px;
}

.footer-heading {
  font-family: var(--font-headings);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-light);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.footer-contact svg {
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: var(--primary);
}

.footer-newsletter p {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.375rem;
  border-radius: var(--radius-md);
  box-sizing: border-box;
}

.newsletter-form input {
  padding: 0.5rem 1rem;
  width: 100%;
  color: var(--text-primary);
}

.newsletter-form input::placeholder {
  color: var(--text-light);
}

.newsletter-form button {
  background: var(--gradient-brand);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.newsletter-form button:hover {
  transform: scale(1.05);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: all var(--transition-fast);
}

.social-link:hover {
  color: #ffffff;
  background: var(--gradient-brand);
  border-color: transparent;
  transform: translateY(-2px);
}

/* Grid & Layout Responsive Classes */
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2.5rem;
  text-align: center;
}

.stats-item {
  border-left: 1px solid var(--border-color);
  padding: 0.5rem 0;
}

.stats-item:first-child {
  border-left: none;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

.infra-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: flex-start;
}

.cta-banner {
  border-radius: var(--radius-lg);
  background: var(--gradient-brand);
  padding: 5rem 4rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  text-align: center;
}

/* Responsiveness Settings */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3.5rem;
  }

  .hero-content {
    max-width: 650px;
    margin: 0 auto;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content div {
    justify-content: center;
  }

  .hero-graphic {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }

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

  .stats-item {
    border-left: none;
    padding: 0.5rem;
  }

  .stats-item:nth-child(odd) {
    border-right: 1px solid var(--border-color);
  }

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

  .features-grid>div:last-child {
    order: -1;
    /* Display graphic above features on tablet/mobile */
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .story-grid>div:last-child {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .infra-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .infra-grid>div:first-child {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .estimator-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-layout {
    grid-template-columns: 1fr !important;
    gap: 3.5rem !important;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .section {
    padding: 5rem 0;
  }

  .section-header h2 {
    font-size: 2.25rem;
  }

  .nav {
    display: none;
  }

  .header-container .btn {
    display: none;
    /* Hide primary header action on small mobile */
  }

  .menu-btn {
    display: flex;
  }

  /* Hamburger Open State */
  .menu-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-btn.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }

  .stats-item {
    border-right: none !important;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
  }

  .stats-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .cta-banner {
    padding: 4rem 2rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .grid-2-col,
  .grid-3-col {
    grid-template-columns: 1fr;
  }
}

/* Coverage Verification & Map Styles */
.coverage-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.region-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.region-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  /* Green active dot */
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.region-badge.inactive::before {
  background-color: var(--bg-card);
  /* Red dot for upcoming */
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.coverage-map-wrapper {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

/* Hotspot pulsing keyframes */
@keyframes hotspotPulse {
  0% {
    r: 6px;
    opacity: 1;
  }

  50% {
    r: 15px;
    opacity: 0.4;
  }

  100% {
    r: 22px;
    opacity: 0;
  }
}

.hotspot-halo {
  animation: hotspotPulse 2.5s infinite ease-out;
  transform-origin: center;
}

/* Support Chat Widget Styles */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  font-family: var(--font-body);
}

.chat-trigger {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: all var(--transition-normal);
  position: relative;
}

.chat-trigger:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 10px 25px -5px rgba(12, 160, 244, 0.45);
}

.chat-trigger svg {
  transition: transform var(--transition-normal);
}

.chat-trigger.open svg {
  transform: rotate(90deg);
}

.chat-trigger .chat-status-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.chat-window {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 360px;
  height: 500px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all var(--transition-normal);
}

.chat-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chat-header {
  padding: 1.25rem;
  background: var(--gradient-brand);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-agent-avatar {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.chat-agent-avatar::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border: 2px solid var(--primary);
  border-radius: 50%;
}

.chat-agent-info h4 {
  font-size: 1rem;
  color: #ffffff;
  font-weight: 600;
}

.chat-agent-info span {
  font-size: 0.75rem;
  opacity: 0.85;
  display: block;
}

.chat-body {
  flex-grow: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(248, 250, 252, 0.5);
}

.chat-msg {
  max-width: 80%;
  padding: 0.75rem 1.125rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
  animation: fadeInUp 0.3s ease-out forwards;
}

.chat-msg.bot {
  background: var(--bg-card);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.chat-msg.user {
  background: var(--gradient-brand);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  box-shadow: 0 4px 12px rgba(12, 160, 244, 0.15);
}

.chat-msg.system {
  align-self: center;
  max-width: 100%;
  background: none;
  font-size: 0.75rem;
  color: var(--text-light);
  padding: 0.25rem 0.5rem;
  text-align: center;
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border-top: 1px solid rgba(226, 232, 240, 0.5);
}

.chat-chip {
  padding: 0.375rem 0.875rem;
  background: rgba(12, 160, 244, 0.08);
  border: 1px solid rgba(12, 160, 244, 0.15);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chat-chip:hover {
  background: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-1px);
}

.chat-footer {
  padding: 0.875rem 1.25rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.chat-input {
  flex-grow: 1;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.chat-input::placeholder {
  color: var(--text-light);
}

.chat-send-btn {
  color: var(--primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-send-btn:hover {
  color: var(--accent);
  transform: scale(1.1);
}

/* Typing Indicator */
.typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 0.25rem 0.5rem;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--text-light);
  border-radius: 50%;
  animation: typing 1s infinite alternate;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  from {
    opacity: 0.3;
    transform: translateY(0);
  }

  to {
    opacity: 1;
    transform: translateY(-4px);
  }
}

/* Responsive Widget Adjustments */
@media (max-width: 480px) {
  .chat-widget {
    bottom: 20px;
    right: 20px;
  }

  .chat-window {
    width: calc(100vw - 40px);
    height: 420px;
    bottom: 70px;
  }
}

/* ==========================================================================
   NEW ADDITIONS: WIZARD, SMART HOME, SPEED HISTORY & COVERAGE PAGE
   ========================================================================== */

/* Pre-Installation Survey Wizard */
.wizard-progress-wrapper {
  margin-bottom: 2.5rem;
}

.wizard-progress-bar-bg {
  height: 6px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  position: relative;
  margin-top: 1.5rem;
}

.wizard-progress-bar-fill {
  height: 100%;
  background: var(--gradient-brand);
  width: 25%;
  /* Initial dynamic width */
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}

.wizard-steps-indicators {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: -16px;
}

.wizard-step-indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  transition: all var(--transition-normal);
  z-index: 2;
}

.wizard-step-indicator.active {
  border-color: var(--primary);
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: 0 0 0 3px rgba(12, 160, 244, 0.15);
}

.wizard-step-indicator.completed {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.wizard-step {
  display: none;
  animation: fadeInUp 0.4s ease-out forwards;
}

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

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.choice-card {
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
}

.choice-card:hover {
  border-color: rgba(12, 160, 244, 0.3);
  background: var(--bg-card);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.choice-card.selected {
  border-color: var(--primary);
  background: rgba(12, 160, 244, 0.04);
  box-shadow: 0 0 0 3px rgba(12, 160, 244, 0.15);
}

.choice-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(12, 160, 244, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: all var(--transition-normal);
}

.choice-card.selected .choice-card-icon {
  background: var(--gradient-brand);
  color: #ffffff;
}

.choice-card-title {
  font-weight: 700;
  font-family: var(--font-headings);
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.choice-card-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.4;
}

.wizard-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  gap: 1rem;
}

/* Smart Home Configurator Layout */
.smarthome-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-top: 2.5rem;
}

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

.house-svg-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.room-path {
  fill: #f1f5f9;
  stroke: #cbd5e1;
  stroke-width: 1.5;
  transition: fill var(--transition-normal), stroke var(--transition-normal);
}

.room-path.active-cyan {
  fill: rgba(12, 160, 244, 0.1);
  stroke: var(--primary);
  stroke-width: 2;
}

.room-path.active-rose {
  fill: rgba(246, 85, 137, 0.1);
  stroke: var(--secondary);
  stroke-width: 2;
}

.room-path.active-indigo {
  fill: rgba(67, 43, 237, 0.1);
  stroke: var(--accent);
  stroke-width: 2;
}

.device-node {
  fill: #94a3b8;
  stroke: #ffffff;
  stroke-width: 2;
  transition: all var(--transition-normal);
}

.device-node.active-cyan {
  fill: var(--primary);
  r: 10px;
}

.device-node.active-rose {
  fill: var(--secondary);
  r: 10px;
}

.device-node.active-indigo {
  fill: var(--accent);
  r: 10px;
}

.sh-controls-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sh-control-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.125rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-normal);
}

.sh-control-item:hover {
  border-color: rgba(12, 160, 244, 0.3);
  background: var(--bg-card);
}

.sh-control-item.active {
  border-color: var(--primary);
  background: rgba(12, 160, 244, 0.04);
}

.sh-control-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  background: var(--bg-card);
}

.sh-control-item.active .sh-control-checkbox {
  background: var(--primary);
  border-color: var(--primary);
}

.sh-control-checkbox::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.sh-control-item.active .sh-control-checkbox::after {
  opacity: 1;
}

.sh-control-info {
  flex-grow: 1;
}

.sh-control-title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.sh-control-desc {
  font-size: 0.825rem;
  color: var(--text-light);
  line-height: 1.4;
}

.sh-control-price {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

/* Speed Test History Log Table */
.speed-history-container {
  margin-top: 3.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2.5rem;
}

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

.speed-history-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.speed-history-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.speed-history-table th,
.speed-history-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.speed-history-table th {
  background: var(--bg-surface);
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

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

.speed-history-status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.speed-history-status-badge.excellent {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.speed-history-status-badge.good {
  background: rgba(12, 160, 244, 0.1);
  color: var(--primary);
}

.speed-history-status-badge.fair {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

/* Coverage Page Specific Styles */
.coverage-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 2rem;
  box-shadow: var(--shadow-sm);
}

.search-wrapper {
  position: relative;
  flex-grow: 1;
  max-width: 400px;
}

.search-wrapper input {
  width: 100%;
  padding: 0.875rem 1.25rem 0.875rem 2.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.search-wrapper input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(12, 160, 244, 0.15);
}

.search-wrapper svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
}

.filter-tab {
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
}

.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-tab.active {
  background: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(12, 160, 244, 0.2);
}

.coverage-sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.sector-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(12, 160, 244, 0.3);
}

.sector-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.sector-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-headings);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.status-indicator::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-indicator.active {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.status-indicator.active::before {
  background: #22c55e;
}

.status-indicator.wip {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.status-indicator.wip::before {
  background: #f59e0b;
}

.sector-details {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sector-details li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.sector-details svg {
  color: var(--primary);
  flex-shrink: 0;
}

.noc-info {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: auto;
}

.noc-toggle-btn {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  user-select: none;
}

.noc-toggle-btn svg {
  transition: transform var(--transition-fast);
}

.noc-toggle-btn.open svg {
  transform: rotate(180deg);
}

.noc-details {
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-normal);
  font-size: 0.825rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-top: 0.5rem;
}

.noc-details.open {
  max-height: 120px;
}

/* Smooth global transitions for theme toggling */
body,
header,
nav,
a,
button,
.card,
.estimator-box,
.switch-container,
.switch-btn,
.option-card,
.form-input,
.faq-item,
.chat-window,
.chat-msg,
.chat-chips,
.chat-footer,
.footer,
.sector-card,
.sh-control-item,
.choice-card,
.wizard-step-indicator {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
}

/* Dark Mode Theme Variables */
body.dark-mode {
  --bg-base: #0f172a;
  /* Slate 900 */
  --bg-surface: #020617;
  /* Slate 950 */
  --bg-card: rgba(30, 41, 59, 0.7);
  /* Slate 800 glassmorphism */

  --text-primary: #f8fafc;
  /* Slate 50 */
  --text-secondary: #cbd5e1;
  /* Slate 300 */
  --text-light: #94a3b8;
  /* Slate 400 */

  --border-color: rgba(51, 65, 85, 0.5);
  /* Slate 700 with opacity */
  --border-glow: rgba(12, 160, 244, 0.3);
}

/* Specific elements adjustments in Dark Mode */
body.dark-mode .header.scrolled {
  background: rgba(2, 6, 23, 0.8);
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

body.dark-mode .glow-orb {
  opacity: 0.12;
  /* Tone down orbs to prevent screen glare */
}

body.dark-mode .card,
body.dark-mode .estimator-box,
body.dark-mode .house-svg-container,
body.dark-mode .speed-history-table-wrapper,
body.dark-mode .coverage-filter-bar,
body.dark-mode .sector-card,
body.dark-mode .kb-filter-bar,
body.dark-mode .kb-article-card {
  background: var(--bg-card);
}

body.dark-mode .switch-container,
body.dark-mode .choice-card,
body.dark-mode .sh-control-item,
body.dark-mode .faq-item,
body.dark-mode .speed-history-table th,
body.dark-mode .filter-tab,
body.dark-mode .search-wrapper input {
  background: rgba(15, 23, 42, 0.6);
}

body.dark-mode .chat-window,
body.dark-mode .chat-msg.bot,
body.dark-mode .chat-chips,
body.dark-mode .chat-footer {
  background: rgba(30, 41, 59, 0.9);
}

body.dark-mode .chat-body {
  background: rgba(15, 23, 42, 0.5);
}

body.dark-mode .chat-msg.bot {
  border-color: var(--border-color);
}

body.dark-mode .speed-history-table td,
body.dark-mode .speed-history-table th,
body.dark-mode .faq-item {
  border-color: var(--border-color);
}

body.dark-mode .region-badge {
  background: rgba(30, 41, 59, 0.5);
}

body.dark-mode .room-path {
  fill: #1e293b;
  stroke: #475569;
}

body.dark-mode .room-path.active-cyan {
  fill: rgba(12, 160, 244, 0.15);
  stroke: var(--primary);
}

body.dark-mode .room-path.active-rose {
  fill: rgba(246, 85, 137, 0.15);
  stroke: var(--secondary);
}

body.dark-mode .room-path.active-indigo {
  fill: rgba(67, 43, 237, 0.15);
  stroke: var(--accent);
}

body.dark-mode .device-node {
  fill: #64748b;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  background: transparent;
  transition: all var(--transition-fast);
  margin-left: 0.5rem;
}

.theme-toggle-btn:hover {
  background: var(--bg-surface);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

body.dark-mode .theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.theme-toggle-btn svg {
  display: block;
  flex-shrink: 0;
}

.theme-toggle-btn .sun-icon {
  display: none !important;
}

.theme-toggle-btn .moon-icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

body.dark-mode .theme-toggle-btn .sun-icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

body.dark-mode .theme-toggle-btn .moon-icon {
  display: none !important;
}

/* Knowledge Base Page Styling */
.kb-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 2rem;
  box-shadow: var(--shadow-sm);
}

.kb-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.kb-article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.kb-article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(12, 160, 244, 0.3);
}

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

.kb-article-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(12, 160, 244, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.kb-article-category.billing {
  color: var(--secondary);
  background: rgba(246, 85, 137, 0.08);
}

.kb-article-category.troubleshooting {
  color: var(--accent);
  background: rgba(67, 43, 237, 0.08);
}

.kb-article-readtime {
  font-size: 0.8rem;
  color: var(--text-light);
}

.kb-article-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.4;
  font-family: var(--font-headings);
}

.kb-article-intro {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.kb-article-body {
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-normal);
  border-top: 1px dashed var(--border-color);
  padding-top: 0;
  margin-top: auto;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.kb-article-body.open {
  max-height: 1000px;
  /* Large height boundary for auto transition */
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.kb-article-body h5 {
  font-size: 0.95rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.kb-article-body ul,
.kb-article-body ol {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

.kb-article-body li {
  margin-bottom: 0.25rem;
}

.kb-card-expand-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  gap: 0.25rem;
  margin-top: 1rem;
  transition: color var(--transition-fast);
}

.kb-card-expand-indicator svg {
  transition: transform var(--transition-normal);
}

.kb-card-expand-indicator.open svg {
  transform: rotate(180deg);
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVENESS OVERRIDES
   ========================================================================== */

/* Responsive adjustments for mobile/tablet screens (< 1024px) */
@media (max-width: 1024px) {

  /* Header & Navigation Responsiveness */
  .nav {
    display: none;
  }

  .nav-cta .btn {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .menu-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-btn.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .coverage-filter-bar,
  .kb-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.5rem;
  }

  .search-wrapper {
    max-width: 100%;
  }

  .filter-tabs {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    display: flex;
    gap: 0.5rem;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
  }

  .filter-tab {
    white-space: nowrap;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    flex-shrink: 0;
  }

  .coverage-sectors-grid,
  .kb-articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .sector-card,
  .kb-article-card {
    padding: 1.75rem;
  }

  .house-svg-container,
  .coverage-map-wrapper {
    padding: 1.25rem;
  }
}

/* Adjustments for micro-devices (< 480px) */
@media (max-width: 480px) {
  .wizard-progress-wrapper {
    padding: 0 0.5rem;
  }

  .wizard-steps-indicators {
    margin-top: -14px;
  }

  .wizard-step-indicator {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }

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

  .choice-card {
    padding: 1.25rem 1rem;
  }

  .theme-toggle-btn {
    width: 38px;
    height: 38px;
    margin-left: 0.25rem;
  }

  .logo {
    font-size: 1.25rem;
    gap: 0.5rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .logo-icon::after {
    width: 12px;
    height: 12px;
    border-radius: 3px;
  }
}

/* =========================================
   SVG FIBER NETWORK ANIMATION
========================================= */
.hero-fiber-svg {
  width: 100%;
  height: 100%;
  max-width: 800px;
  filter: drop-shadow(0 0 15px rgba(12, 160, 244, 0.2));
  transform: scale(1.1);
}

.node {
  transform-origin: center;
}

.pulse-node {
  animation: node-pulse 3s infinite alternate ease-in-out;
}

@keyframes node-pulse {
  0% { r: 14; opacity: 0.7; }
  100% { r: 17; opacity: 1; }
}

.data-pulse {
  stroke-dasharray: 200 1500;
  stroke-dashoffset: 1500;
  animation: pulse-flow linear infinite;
}

/* Individual Data Path Timings */
.data-pulse.p1 { animation-duration: 3s; animation-delay: 0s; }
.data-pulse.p2 { animation-duration: 4s; animation-delay: 0.5s; }
.data-pulse.p3 { animation-duration: 3.5s; animation-delay: 1.5s; }
.data-pulse.p4 { animation-duration: 4.5s; animation-delay: 0.8s; }
.data-pulse.p5 { animation-duration: 3.2s; animation-delay: 1.1s; }

@keyframes pulse-flow {
  0% { 
    stroke-dashoffset: 1500; 
    opacity: 0; 
  }
  15% { 
    opacity: 1; 
  }
  85% { 
    opacity: 1; 
  }
  100% { 
    stroke-dashoffset: -200; 
    opacity: 0; 
  }
}