/* ==========================================================================
   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;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 6px;
}

.mobile-nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* 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: 440px;
  height: 230px;
  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: 440px;
  height: 50px;
  display: block;
}

/* 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) {
  .speedtest-scoreboard {
    grid-template-columns: repeat(2, 1fr);
  }
  .speed-dial-canvas {
    width: 320px;
    height: 180px;
  }
  .speedtest-graph-wrap {
    max-width: 320px;
  }
  .speed-wave-canvas {
    width: 320px;
  }
  #speed-num {
    font-size: 2.8rem;
  }
  .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 */
@media (max-width: 1080px) {
  .nav-menu {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .speedtest-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 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;
}


/* ==========================================================================
   THEME B POLISH — Warm Ivory & Deep Teal
   Shared component refinements. Existing class names and behaviours retained.
   ========================================================================== */

/* Header and navigation */
.top-bar {
  background: #FFFFFF;
  border-bottom: 1px solid #E8E4D9;
  color: #87918B;
}
.top-bar-status { color: #397A61; }
.site-header {
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid #E8E4D9;
  box-shadow: 0 2px 10px rgba(38,54,51,0.025);
}
.site-header.scrolled { box-shadow: 0 8px 24px rgba(38,54,51,0.075); }
.header-inner { gap: clamp(12px, 1.5vw, 22px); }
.brand-link { min-width: 215px; }
.brand-logo {
  display: block;
  width: auto;
  height: 54px;
  max-width: 255px;
  object-fit: contain;
}
.nav-menu { gap: 2px; }
.nav-link {
  color: #5F6F69;
  font-size: 0.88rem;
  padding: 9px 11px;
}
.nav-link:hover {
  color: #176B63;
  background: #F2F0E8;
}
.nav-link.active {
  color: #176B63;
  background: #EAF2EF;
}
.header-actions { gap: 8px; }

/* Buttons */
.btn-primary {
  background: #176B63;
  color: #FFFFFF;
  box-shadow: 0 5px 14px rgba(23,107,99,0.15);
}
.btn-primary:hover {
  background: #10564F;
  color: #FFFFFF;
  box-shadow: 0 7px 18px rgba(23,107,99,0.19);
}
.btn-ghost {
  color: #5F6F69;
  border-color: #E4E1D8;
  background: #FFFFFF;
}
.btn-ghost:hover {
  color: #176B63;
  border-color: #C9D8D0;
  background: #F8FAF7;
}
.btn-secondary {
  background: #F2F0E8;
  border-color: #E8E4D9;
  color: #34443E;
}
.btn-secondary:hover {
  background: #EAF2EF;
  border-color: #C9D8D0;
  color: #176B63;
}

/* Cards, plans and pricing */
.card, .plan-card, .hero-widget-card, .speedtest-card,
.coverage-box, .calculator-box, .pay-portal-wrapper {
  background: #FFFFFF;
  border-color: #E8E4D9;
  box-shadow: 0 8px 26px rgba(38,54,51,0.055);
}
.card:hover, .plan-card:hover {
  border-color: #D5DFD7;
  box-shadow: 0 13px 30px rgba(38,54,51,0.075);
}
.plan-card.featured {
  border-color: #8BA99B;
  background: linear-gradient(180deg, #F5F8F4 0%, #FFFFFF 44%);
}
.plan-card .featured-badge,
.widget-tab-btn.active,
.cycle-btn.active {
  background: #176B63;
  color: #FFFFFF;
}
.plan-speed-unit { color: #8B704F; }
.plan-feature-item svg, .widget-check-item svg { color: #4F806B; }
.widget-speed-pills .speed-pill-btn.active {
  background: #EAF2EF;
  border-color: #6F9D96;
}
.widget-pricing-box, .calc-breakdown-card {
  background: #F8F8F4;
  border-color: #E8E4D9;
}

/* Forms and controls */
.form-input, .form-select, .form-textarea {
  background: #FFFFFF;
  border-color: #E1DED5;
  color: #263633;
}
.form-input::placeholder, .form-textarea::placeholder { color: #9AA39D; }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: #6F9D96;
  box-shadow: 0 0 0 3px rgba(23,107,99,0.10);
}
input, select, textarea { accent-color: #176B63; }

/* Speedtest — remove remaining dark/glowing cockpit styling */
.speedtest-card {
  background: #FFFFFF;
  border: 1px solid #E8E4D9;
  box-shadow: 0 12px 34px rgba(38,54,51,0.065);
}
.scoreboard-item {
  background: #F8F8F4;
  border-color: #E8E4D9;
}
.scoreboard-item.active {
  border-color: #6F9D96;
  background: #EAF2EF;
  box-shadow: 0 4px 12px rgba(23,107,99,0.09);
}
.scoreboard-item.active-up {
  border-color: #8BA98B;
  background: #EFF5EF;
  box-shadow: 0 4px 12px rgba(79,128,107,0.08);
}
.scoreboard-val, .meta-val, #speed-num {
  color: #263633;
  text-shadow: none;
}
.scoreboard-val small, .speed-phase-pill { color: #8C9690; }
.ookla-go-btn {
  background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, #EEF4EF 65%, #E4EEE8 100%);
  border-color: #6F9D96;
  box-shadow: 0 6px 20px rgba(23,107,99,0.13), inset 0 0 12px rgba(23,107,99,0.05);
  color: #176B63;
}
.ookla-go-btn:hover {
  border-color: #B28A58;
  box-shadow: 0 8px 22px rgba(23,107,99,0.16);
}
.go-text { color: #176B63; text-shadow: none; }
.go-sub, .speed-big-unit { color: #8B704F; }
.speed-phase-pill {
  background: #F2F0E8;
  border-color: #E8E4D9;
}
.speedtest-graph-wrap {
  background: #F8F8F4;
  border-color: #E8E4D9;
}
.speedtest-meta-bar {
  background: #FAF8F3;
  border-color: #E8E4D9;
}
.meta-val { color: #34443E; }
.meta-divider { background: #E1DED5; }
.speedtest-mode-toggle {
  background: #F2F0E8;
  border-color: #E8E4D9;
}
.mode-tab-btn { color: #66736E; }
.mode-tab-btn:hover { color: #263633; }
.mode-tab-btn.active {
  background: #176B63;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(23,107,99,0.14);
}
.ost-iframe-box {
  background: #FFFFFF;
  border-color: #E8E4D9;
  box-shadow: 0 12px 30px rgba(38,54,51,0.08);
}

/* NOC, FAQ, notifications and footer */
.noc-node-card { background: #FFFFFF; border-color: #E8E4D9; }
.noc-latency { color: #8B704F; }
.faq-item { background: #FFFFFF; border-color: #E8E4D9; }
.faq-question { color: #263633; }
.faq-icon { color: #176B63; }
.toast {
  background: #FFFFFF;
  border-color: #E1DED5;
  color: #263633;
  box-shadow: 0 12px 30px rgba(38,54,51,0.12);
}
.site-footer {
  background: #F3F1EA;
  border-top-color: #E4E0D6;
}
.footer-heading { color: #34443E; }
.footer-links a { color: #66736E; }
.footer-links a:hover { color: #176B63; }
.footer-regulatory-strip { border-color: #E2DED4; }

/* Responsive header: preserve one-line desktop navigation, compact tablet/mobile. */
@media (max-width: 1180px) {
  .brand-link { min-width: 190px; }
  .brand-logo { height: 48px; max-width: 220px; }
  .nav-link { padding: 8px 8px; font-size: 0.83rem; }
  .header-inner { gap: 10px; }
}
@media (max-width: 1080px) {
  .brand-link { min-width: 0; }
  .brand-logo { height: 48px; max-width: 230px; }
  .nav-menu.mobile-open {
    background: rgba(255,255,255,0.985);
    border: 1px solid #E8E4D9;
    border-top: 0;
    box-shadow: 0 18px 34px rgba(38,54,51,0.12);
  }
  .nav-menu.mobile-open .nav-link {
    width: 100%;
    color: #52645C;
    padding: 11px 14px;
  }
  .nav-menu.mobile-open .nav-link:hover,
  .nav-menu.mobile-open .nav-link.active {
    background: #EAF2EF;
    color: #176B63;
  }
}
@media (max-width: 640px) {
  .brand-logo { height: 43px; max-width: 205px; }
  .header-inner { height: 70px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { padding: 7px 10px; font-size: 0.78rem; }
}


/* FINAL APPROVED AMBALANET LOGO — proportional header and footer sizing */
.brand-logo {
  display: block;
  width: auto;
  height: 38px;
  max-width: 175px;
  object-fit: contain;
  flex: 0 0 auto;
}
.footer-brand > img {
  display: block;
  width: 170px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 12px;
}
@media (max-width: 1180px) {
  .brand-logo {
    height: 36px;
    max-width: 165px;
  }
}
@media (max-width: 640px) {
  .brand-logo {
    height: 34px;
    max-width: 150px;
  }
  .footer-brand > img {
    width: 160px;
  }
}


/* SUPPORT PAGE — ticket form and live tracker responsive layout */
.support-ticket-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: var(--space-2xl);
  align-items: start;
  width: 100%;
  max-width: 100%;
}
.support-ticket-layout > * {
  min-width: 0;
}
.support-ticket-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.support-ticket-layout .card,
.support-ticket-layout form,
.support-ticket-layout input,
.support-ticket-layout select,
.support-ticket-layout textarea {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 768px) {
  .support-ticket-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
  }
  .support-ticket-form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* CONTACT PAGE — responsive booking form and registered-office column */
.contact-booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: var(--space-2xl);
  align-items: start;
  width: 100%;
  max-width: 100%;
}
.contact-booking-layout > * {
  min-width: 0;
}
.contact-booking-layout .card,
.contact-booking-layout form,
.contact-booking-layout input,
.contact-booking-layout select,
.contact-booking-layout textarea {
  min-width: 0;
  max-width: 100%;
}
.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.contact-form-row-pin-city {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}
@media (max-width: 768px) {
  .contact-booking-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
  }
  .contact-form-row,
  .contact-form-row-pin-city {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* UNIFIED SITE FOOTER — consistent across every page */
.site-footer .footer-grid {
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr);
  align-items: start;
}
.site-footer .footer-brand,
.site-footer .footer-grid > div {
  min-width: 0;
}
.site-footer .footer-links a,
.site-footer .footer-links address {
  overflow-wrap: anywhere;
}
.site-footer .footer-regulatory-strip > div {
  min-width: 0;
}
.site-footer .footer-bottom > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px !important;
}
@media (max-width: 1080px) {
  .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .site-footer .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
  }
  .site-footer .footer-bottom {
    align-items: flex-start;
  }
  .site-footer .footer-bottom > div:last-child {
    gap: 8px 14px !important;
  }
}


/* WhatsApp OTP lead form — homepage replacement for the speed test section */
.wa-lead-section { background: var(--bg-page); }
.wa-lead-card { position:relative; max-width:1160px; margin:0 auto; padding:clamp(28px,5vw,58px); border:1px solid var(--border-subtle); border-radius:24px; background:var(--bg-surface); box-shadow:var(--shadow-lg); }
.wa-lead-icon { position:absolute; top:22px; right:24px; width:30px; height:30px; fill:#25D366; }
.wa-lead-heading { text-align:center; max-width:650px; margin:0 auto 30px; }
.wa-lead-heading h2 { color:var(--text-primary); font-size:clamp(1.65rem,3vw,2.15rem); line-height:1.2; margin:0 0 14px; }
.wa-lead-heading p { color:var(--text-secondary); margin:0; }
.wa-lead-steps { display:flex; align-items:center; justify-content:center; gap:120px; position:relative; margin:0 auto 38px; max-width:440px; }
.wa-lead-steps:before { content:""; height:3px; background:var(--border-subtle); position:absolute; left:20px; right:20px; top:50%; transform:translateY(-50%); }
.wa-lead-step { width:40px; height:40px; border-radius:50%; display:grid; place-items:center; position:relative; z-index:1; background:var(--bg-surface-subtle); color:var(--text-secondary); font-weight:700; }
.wa-lead-step.is-active,.wa-lead-step.is-done { background:var(--brand-primary); color:#fff; }
.wa-lead-form { max-width:600px; margin:0 auto; }
.wa-field { margin-bottom:24px; }
.wa-field label { display:block; margin-bottom:8px; color:var(--text-primary); font-weight:600; }
.wa-field input,.wa-field select { width:100%; min-height:58px; padding:14px 16px; border:1.5px solid var(--border-subtle); border-radius:12px; background:var(--bg-surface); color:var(--text-primary); font:inherit; outline:none; }
.wa-field input:focus,.wa-field select:focus { border-color:var(--brand-primary); box-shadow:0 0 0 3px color-mix(in srgb,var(--brand-primary) 14%,transparent); }
.wa-field small { display:block; margin-top:6px; color:var(--text-muted); font-size:.82rem; }
.wa-phone-row { display:grid; grid-template-columns:145px minmax(0,1fr); gap:10px; }
.wa-phone-row select { padding-right:8px; }
.wa-actions { display:flex; justify-content:center; margin-top:28px; }
.wa-send-btn { min-width:min(100%,300px); min-height:50px; border:0; border-radius:999px; color:#fff; background:linear-gradient(135deg,#254d36,#08745f); box-shadow:0 8px 20px rgba(32,200,106,.22); }
.wa-send-btn:disabled,.wa-actions button:disabled { opacity:.65; cursor:wait; }
.wa-response { display:none; margin:16px 0; padding:12px 14px; border-radius:10px; font-size:.9rem; white-space:pre-line; }
.wa-response.is-error { display:block; color:#a83232; background:#fff1ef; border:1px solid #f2c8c3; }
.wa-response.is-success { display:block; color:#176b4a; background:#edf8f1; border:1px solid #bde4cc; }
.wa-otp-copy { text-align:center; color:var(--text-secondary); margin:0 0 20px; }
.wa-otp-inputs { display:flex; justify-content:center; gap:12px; }
.wa-otp-digit { width:54px; height:58px; border:1.5px solid var(--border-subtle); border-radius:11px; text-align:center; font-size:1.35rem; font-weight:700; color:var(--text-primary); background:var(--bg-surface); }
.wa-otp-digit:focus { outline:none; border-color:var(--brand-primary); box-shadow:0 0 0 3px color-mix(in srgb,var(--brand-primary) 14%,transparent); }
.wa-timer { text-align:center; margin:18px 0 8px; color:var(--text-secondary); font-weight:600; font-variant-numeric:tabular-nums; }
.wa-resend { display:flex; justify-content:center; align-items:center; gap:10px; flex-wrap:wrap; font-size:.9rem; }
.wa-resend button { border:0; background:transparent; color:var(--brand-primary); font:inherit; font-weight:700; cursor:pointer; }
.wa-resend button:disabled { color:var(--text-muted); cursor:not-allowed; }
.wa-resend span { color:var(--text-muted); }
.wa-actions-two { gap:14px; }
.wa-success { text-align:center; padding:18px 0 0; }
.wa-success-mark { width:66px; height:66px; margin:0 auto 16px; display:grid; place-items:center; border-radius:50%; color:#fff; background:#16a36a; font-size:2rem; }
.wa-success h3 { color:var(--text-primary); font-size:1.8rem; margin:0 0 8px; }
.wa-success p { color:var(--text-secondary); margin:0 auto 20px; max-width:500px; }
@media(max-width:600px) { .wa-lead-card { padding:30px 18px; border-radius:18px; } .wa-lead-icon { top:16px; right:16px; width:25px; height:25px; } .wa-lead-heading { padding:12px 16px 0; } .wa-lead-heading h2 { font-size:1.55rem; } .wa-lead-steps { gap:86px; margin-bottom:28px; } .wa-phone-row { grid-template-columns:1fr; } .wa-phone-row select { min-height:52px; } .wa-otp-inputs { gap:7px; } .wa-otp-digit { width:min(13vw,48px); height:52px; } .wa-actions-two { flex-direction:column-reverse; } .wa-actions-two .btn { width:100%; } }
