/* ==========================================================================
   AMBALANET TELECOM COMPONENTS (v4.0 Executive Edition)
   ========================================================================== */

/* 1. MINIMAL TOP UTILITY STRIP */
.top-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  padding: 6px 0;
  color: var(--text-muted);
  position: relative;
  z-index: 101;
}



.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: nowrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.top-bar-item:hover {
  color: var(--brand-primary);
}

.top-bar-item svg {
  width: 13px;
  height: 13px;
  color: var(--brand-primary);
}

.top-bar-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #10B981;
  font-weight: 600;
  font-size: 0.78rem;
}

/* 2. MAIN HEADER & SINGLE-LINE NAVIGATION */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 38px;
  width: auto;
}

/* Single-line Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: var(--space-xs);
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap; /* PREVENTS MULTI-LINE BREAKING */
  transition: color var(--transition-fast), background-color var(--transition-fast);
  display: inline-block;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-surface-subtle);
}

.nav-link.active {
  color: #38BDF8;
  background: rgba(29, 78, 216, 0.1);
}



/* Header Right Cluster */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}







.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  position: relative;
  z-index: 1000;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: all var(--transition-fast);
}

.mobile-nav-toggle svg,
.mobile-nav-toggle path {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.mobile-nav-toggle:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #FFFFFF;
}

/* 3. BUTTON SYSTEM */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--brand-primary-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background: var(--bg-surface-subtle);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--brand-primary);
  color: var(--text-primary);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

/* 4. CARDS & SURFACES */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

/* 5. HERO PLAN CONFIGURATOR WIDGET (The Right Hero Card) */
.hero-widget-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.widget-tab-group {
  display: flex;
  background: var(--bg-surface-elevated);
  padding: 3px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  border: 1px solid var(--border-subtle);
}

.widget-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.widget-tab-btn.active {
  background: var(--brand-primary);
  color: #FFFFFF;
}

.widget-speed-pills {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-md);
  overflow-x: auto;
}

.speed-pill-btn {
  flex: 1;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.speed-pill-btn:hover, .speed-pill-btn.active {
  border-color: var(--brand-primary);
  color: var(--text-primary);
}

.speed-pill-btn.active {
  background: rgba(29, 78, 216, 0.12);
  border-color: var(--brand-primary);
}

.speed-pill-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  display: block;
  line-height: 1.1;
  color: var(--text-primary);
}

.speed-pill-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.widget-pricing-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget-price-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}

.widget-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: var(--space-md);
}

.widget-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.widget-check-item svg {
  width: 16px;
  height: 16px;
  color: #10B981;
  flex-shrink: 0;
}

/* 6. PLAN CARDS (PLANS SECTION) */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.plan-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  transition: all var(--transition-normal);
}

.plan-card.featured {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, rgba(29, 78, 216, 0.06) 0%, var(--bg-surface) 35%);
}

.plan-card .featured-badge {
  position: absolute;
  top: -11px;
  right: 20px;
  background: var(--brand-primary);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
}

.plan-speed-val {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}

.plan-speed-unit {
  font-size: 1.15rem;
  font-weight: 700;
  color: #38BDF8;
}



.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: var(--space-xs) 0 var(--space-md) 0;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
}

.plan-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.plan-features {
  list-style: none;
  margin: var(--space-md) 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.plan-feature-item svg {
  width: 16px;
  height: 16px;
  color: #10B981;
  flex-shrink: 0;
}

/* 7. BILLING CYCLE TOGGLE */
.cycle-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.cycle-toggle-group {
  display: inline-flex;
  background: var(--bg-surface-elevated);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.cycle-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cycle-btn.active {
  background: var(--brand-primary);
  color: #FFFFFF;
}

/* 8. FORMS & INPUTS */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input, .form-select, .form-textarea {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

/* 9. SPEEDTEST.NET STYLE REAL BENCHMARK WIDGET (100% Centered Glass Cockpit) */
.speedtest-card {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 42px);
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

.speedtest-card:hover {
  border: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
}

/* Top Scoreboard */
.speedtest-scoreboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
  margin-bottom: 24px;
}

.scoreboard-item {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.scoreboard-item.active {
  border-color: #00D2FF;
  background: rgba(0, 210, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.25);
  transform: translateY(-2px);
}

.scoreboard-item.active-up {
  border-color: #00F5A0;
  background: rgba(0, 245, 160, 0.08);
  box-shadow: 0 0 20px rgba(0, 245, 160, 0.25);
  transform: translateY(-2px);
}

.scoreboard-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.scoreboard-val {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
}

.scoreboard-val small {
  font-size: 0.82rem;
  font-weight: 600;
  color: #94A3B8;
  margin-left: 2px;
}

.text-emerald {
  color: #00F5A0;
}

/* Stage: Centered Container */
.speedtest-stage {
  width: 100%;
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 6px 0 20px 0;
}

/* THE ICONIC SPEEDTEST.NET GO BUTTON */
.speedtest-go-wrapper {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.go-radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid rgba(0, 210, 255, 0.35);
  pointer-events: none;
}

.ring-1 {
  width: 190px;
  height: 190px;
  animation: ookla-pulse 2.8s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.ring-2 {
  width: 220px;
  height: 220px;
  animation: ookla-pulse 2.8s cubic-bezier(0.2, 0.8, 0.2, 1) infinite 0.7s;
}

.ring-3 {
  width: 250px;
  height: 250px;
  animation: ookla-pulse 2.8s cubic-bezier(0.2, 0.8, 0.2, 1) infinite 1.4s;
}

@keyframes ookla-pulse {
  0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.35); opacity: 0; }
}

.ookla-go-btn {
  width: 165px;
  height: 165px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(0, 210, 255, 0.25) 0%, rgba(0, 102, 255, 0.15) 60%, rgba(6, 11, 24, 0.85) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2.5px solid #00D2FF;
  box-shadow: 0 0 35px rgba(0, 210, 255, 0.45), inset 0 0 25px rgba(0, 210, 255, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: #FFFFFF;
  position: relative;
  z-index: 2;
}

.ookla-go-btn:hover {
  transform: scale(1.06);
  border-color: #00F5A0;
  box-shadow: 0 0 55px rgba(0, 245, 160, 0.55), inset 0 0 30px rgba(0, 245, 160, 0.3);
}

.ookla-go-btn:active {
  transform: scale(0.96);
}

.go-text {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
  color: #FFFFFF;
  text-shadow: 0 0 25px rgba(0, 210, 255, 0.65);
}

.go-sub {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #00D2FF;
  margin-top: 4px;
  text-transform: uppercase;
}

/* Active Dial & Waveform */
.speedtest-active-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeInSpeed 0.4s ease forwards;
}

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

.speedtest-dial-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.speed-dial-canvas {
  width: 100%;
  max-width: 440px;
  height: auto;
  aspect-ratio: 440 / 230;
  display: block;
  margin: 0 auto;
}

/* Dedicated Readout below the needle pivot */
.speed-digital-readout {
  margin-top: -20px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.speed-big-number {
  display: flex;
  align-items: baseline;
  gap: 8px;
  justify-content: center;
}

#speed-num {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1;
  color: #FFFFFF;
  text-shadow: 0 0 25px rgba(0, 210, 255, 0.5);
}

.speed-big-unit {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #00D2FF;
}

.speed-phase-pill {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #94A3B8;
  margin-top: 6px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

/* Live Waveform */
.speedtest-graph-wrap {
  width: 100%;
  max-width: 440px;
  height: 50px;
  margin: 4px auto 0 auto;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.speed-wave-canvas {
  width: 100%;
  max-width: 440px;
  height: auto;
  aspect-ratio: 440 / 50;
  display: block;
  margin: 0 auto;
}

/* Metadata Strip */
.speedtest-meta-bar {
  width: 100%;
  max-width: 680px;
  margin: 18px auto 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.meta-item svg {
  color: var(--brand-accent);
  flex-shrink: 0;
}

.meta-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  display: block;
}

.meta-val {
  font-weight: 600;
  color: #FFFFFF;
  font-size: 0.84rem;
}

.meta-divider {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.1);
}

/* Actions Bar */
.speedtest-actions-bar {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }
  .speedtest-scoreboard {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .score-item {
    padding: 8px 10px;
  }
  .score-val {
    font-size: 1.25rem;
  }
  .speed-dial-canvas {
    max-width: 320px;
    width: 100%;
    height: auto;
  }
  .speedtest-graph-wrap {
    max-width: 320px;
    width: 100%;
  }
  .speed-wave-canvas {
    max-width: 320px;
    width: 100%;
    height: auto;
  }
  #speed-num {
    font-size: 2.6rem;
  }
  .ookla-go-btn {
    width: 140px;
    height: 140px;
  }
  .ring-1 { width: 160px; height: 160px; }
  .ring-2 { width: 185px; height: 185px; }
  .ring-3 { width: 210px; height: 210px; }
  .speedtest-meta-bar {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .meta-divider {
    display: none;
  }
}


/* 10. NOC GRID */
.noc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}

.noc-node-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.noc-node-info h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.noc-node-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.noc-latency {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #38BDF8;
  font-weight: 600;
}



/* 11. FAQ ACCORDION */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-normal);
  color: var(--brand-primary);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  padding: 0 20px;
}

.faq-item.open .faq-answer {
  max-height: 350px;
  padding-bottom: 18px;
}

/* 12. TOAST NOTIFICATIONS */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  animation: slideInRight 0.25s ease;
  max-width: 360px;
}

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

/* 13. SITE FOOTER */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-3xl) 0 var(--space-xl) 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand p {
  margin-top: var(--space-sm);
  font-size: 0.9rem;
}

.footer-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--brand-primary);
}

.footer-regulatory-strip {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  margin-bottom: var(--space-lg);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* RESPONSIVE & MOBILE NAVIGATION (Phases 2 & 3 Rebuilt) */
@media (max-width: 1080px) {
  .site-header .nav-menu {
    display: none !important;
  }
  /* Remove both Pay Bill and Get Connected buttons from header row on mobile/tablet */
  .header-actions .btn {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: flex !important;
  }
  .header-inner {
    height: 64px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .brand-logo {
    height: 34px;
    max-width: 175px;
    width: auto;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none !important;
  }
  .site-header {
    padding: 0;
  }
  .header-inner {
    height: 60px;
    gap: 8px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .brand-link {
    flex-shrink: 1;
    min-width: 0;
  }
  .brand-logo {
    height: 32px;
    max-width: 165px;
    width: auto;
    display: block;
  }
  .header-actions {
    gap: 0;
    flex-shrink: 0;
  }
  .header-actions .btn {
    display: none !important;
  }
  .hero-widget-card {
    padding: 16px 12px;
  }
  .widget-tab-btn {
    padding: 7px 4px;
    font-size: 0.78rem;
  }
  .widget-speed-pills {
    gap: 6px;
  }
  .speed-pill-btn {
    padding: 6px 4px;
  }
  .speed-pill-val {
    font-size: 1.05rem;
  }
  .speedtest-card {
    padding: 18px 10px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .speedtest-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 360px) {
  .header-inner {
    height: 56px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .brand-logo {
    height: 28px;
    max-width: 140px;
  }
  .mobile-nav-toggle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 8px;
  }
  .hero-widget-card {
    padding: 14px 10px;
  }
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER & OVERLAY (Phase 3 Full Implementation)
   ========================================================================== */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 8, 18, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 360px);
  background: rgba(10, 16, 32, 0.97);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-left: 1px solid var(--border-medium);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.7);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 20px 32px 20px;
}

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

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.mobile-drawer-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: all var(--transition-fast);
}

.mobile-drawer-close svg,
.mobile-drawer-close path {
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.mobile-drawer-close:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #FFFFFF;
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
  padding: 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #FFFFFF;
  background: var(--bg-surface-elevated);
  border-left: 3px solid var(--brand-accent);
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: auto;
}

.mobile-btn-cta {
  width: 100%;
  justify-content: center;
  padding: 12px 16px;
  font-size: 0.95rem;
}

.mobile-drawer-footer {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.mobile-footer-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-accent);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.mobile-footer-item svg {
  width: 14px;
  height: 14px;
}

/* Prevent body scrolling when drawer is open */
body.nav-open {
  overflow: hidden !important;
  touch-action: none;
}

/* HERO OPTICAL FIBER NETWORK CANVAS */
.hero-network-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

/* SPEEDTEST MODE SWITCHER & OPENSPEEDTEST EMBED */
.speedtest-mode-toggle {
  display: inline-flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px;
  border-radius: 999px;
  margin: 0 auto 24px auto;
}

.mode-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.mode-tab-btn:hover {
  color: #FFFFFF;
}

.mode-tab-btn.active {
  background: linear-gradient(135deg, #0066FF 0%, #00D2FF 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.35);
}

.speedtest-ost-wrapper {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ost-iframe-box {
  width: 100%;
  height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  background: #080D1A;
}

.ost-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================
   RESPONSIVE GRID & FORM UTILITIES
   ========================================== */
.grid-2col-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-2xl);
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.form-row-1-2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.grid-autofit-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-lg);
}

.grid-coverage-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-xl);
}

@media (max-width: 900px) {
  .grid-2col-split {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 640px) {
  .form-row-2col,
  .form-row-1-2 {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

/* Card responsiveness and form constraints */
.grid-2col-split > *,
.grid-autofit-cards > *,
.grid-coverage-cards > *,
.card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.card-spacious {
  padding: var(--space-2xl);
}

.form-group,
.form-input,
.form-select,
.form-textarea {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .card {
    padding: clamp(14px, 4vw, 24px);
  }
  .card-spacious {
    padding: clamp(14px, 4vw, 22px) !important;
  }
}
