/**
 * Fix My Speaker - Production CSS Architecture
 * Color Palette:
 * Primary: #0077B6 / #195171 (Ocean Sapphire)
 * Accent Cyan: #00B4D8 / #48CAE4 (Vibrant Electric Cyan)
 * Ambient Light Mesh Background: Multi-stop radial glow
 * Clean Surfaces: Crystal White with subtle gradient depth
 * Deep Navy Accent: #0A1C28 / #051017
 */

:root {
  --primary: #0077B6;
  --primary-hover: #005F92;
  --primary-light: #E0F2FA;
  --primary-deep: #0C2331;
  --accent-cyan: #00B4D8;
  --accent-cyan-light: #48CAE4;
  --accent-glow: rgba(0, 180, 216, 0.4);
  --bg-soft: #F3F8FB;
  --surface: #FFFFFF;
  --surface-raised: #FFFFFF;
  --text-main: #0B202D;
  --text-muted: #3C5666;
  --text-subtle: #6A8696;
  --border: #CDE1EC;
  --border-focus: #0077B6;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 6px rgba(11, 32, 45, 0.05);
  --shadow-md: 0 6px 18px rgba(11, 32, 45, 0.08);
  --shadow-lg: 0 14px 35px rgba(11, 32, 45, 0.12);
  --shadow-glow: 0 0 30px rgba(0, 180, 216, 0.35);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", Menlo, Monaco, Consolas, monospace;
  --transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: #BAE6FD; /* Crisp Sky Blue */
  background-image: 
    radial-gradient(at 10% 15%, rgba(255, 255, 255, 0.85) 0px, transparent 50%),
    radial-gradient(at 90% 20%, rgba(56, 189, 248, 0.5) 0px, transparent 55%),
    radial-gradient(at 50% 50%, rgba(224, 242, 254, 0.7) 0px, transparent 60%),
    radial-gradient(at 85% 85%, rgba(14, 165, 233, 0.35) 0px, transparent 50%),
    radial-gradient(at 15% 90%, rgba(186, 230, 253, 0.9) 0px, transparent 55%),
    linear-gradient(180deg, #BAE6FD 0%, #CEEEFD 45%, #BAE6FD 100%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent-cyan);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 3.5vw, 28px);
  padding-right: clamp(16px, 3.5vw, 28px);
  box-sizing: border-box;
}

/* HEADER & NAVIGATION - FIXED WIDTH & ROCK-SOLID RESPONSIVE LOOK */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background-color: #000000; /* Pure Black Header */
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border-bottom: none !important;
  box-shadow: none !important;
  transition: all 0.25s ease;
}

.header-accent-bar {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #0284C7 0%, #38BDF8 35%, #60A5FA 70%, #0284C7 100%);
  background-size: 200% 100%;
  animation: headerGlow 8s ease infinite;
}

@keyframes headerGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.nav-wrapper,
.site-header .nav-wrapper {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 clamp(16px, 2.5vw, 36px) !important;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  position: relative;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 2vw, 12px);
  text-decoration: none;
  flex-shrink: 0;
  margin-right: auto;
}

.brand-icon-wrap {
  width: clamp(36px, 8vw, 42px);
  height: clamp(36px, 8vw, 42px);
  background: #000000;
  border: 2px solid #38BDF8;
  color: #38BDF8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.brand-icon-wrap svg {
  width: clamp(19px, 4vw, 22px);
  height: clamp(19px, 4vw, 22px);
  stroke: currentColor;
  transition: transform 0.25s ease;
}

.brand-logo:hover .brand-icon-wrap {
  transform: translateY(-1px) scale(1.06);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.7);
  border-color: #93C5FD;
}

.brand-logo:hover .brand-icon-wrap svg {
  transform: scale(1.08);
}

.brand-name {
  font-size: clamp(1.12rem, 3.2vw, 1.35rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  color: #38BDF8 !important; /* Blue text */
  -webkit-text-fill-color: #38BDF8 !important;
  background: none !important;
  line-height: 1.1;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.brand-logo:hover .brand-name {
  color: #93C5FD !important;
  -webkit-text-fill-color: #93C5FD !important;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.86rem;
  font-weight: 700;
  color: #38BDF8 !important; /* Blue text */
  padding: 7px 11px;
  border-radius: 9999px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.nav-link:hover {
  color: #FFFFFF !important;
  background: rgba(56, 189, 248, 0.2) !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
  text-decoration: none;
}

.nav-cta-btn {
  position: relative;
  overflow: hidden;
  background: #0284C7;
  color: #ffffff !important;
  border: 1.5px solid #38BDF8;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 9999px;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: 6px;
  white-space: nowrap;
}

.nav-cta-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 35%, rgba(255, 255, 255, 0.4) 50%, transparent 65%);
  transform: translateX(-100%);
  transition: transform 0.65s ease;
  pointer-events: none;
}

.nav-cta-btn:hover {
  background: #0369A1;
  border-color: #93C5FD;
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.7);
  text-decoration: none;
}

.nav-cta-btn:hover::before {
  transform: translateX(100%);
}

.nav-cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #000000;
  border: 1.5px solid #38BDF8;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #93C5FD;
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #38BDF8;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-6px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* HERO & CORE ENGINE SECTION */
.hero-engine-section {
  padding: 45px 0 65px;
  position: relative;
}

.hero-headline-wrap {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 38px;
}

.hero-badge {
  display: none !important;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #00B4D8;
  border-radius: 50%;
  box-shadow: 0 0 8px #00B4D8;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.035em;
  color: #0C2331;
  margin-bottom: 16px;
}

.hero-title .highlight-text {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  background: none !important;
  display: inline-block;
  font-weight: 900;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ACOUSTIC CLEANER CARD */
.engine-card {
  background: linear-gradient(165deg, #FFFFFF 0%, #F5FAFD 100%);
  border: 1px solid rgba(185, 222, 238, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px -15px rgba(25, 81, 113, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  padding: 34px;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.engine-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0077B6, #00B4D8, #48CAE4, #0096C7);
}

/* MODE TABS - HIGH-CONTRAST ACOUSTIC ENGINE NAVIGATION */
.mode-tabs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 28px;
  background: linear-gradient(180deg, #EBF5F9 0%, #E0EFF6 100%);
  padding: 8px;
  border-radius: 18px;
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 18px rgba(36, 91, 120, 0.08);
}

.mode-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border-radius: 12px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  background: transparent;
  color: #1E3A5F;
  border: 2px solid transparent;
}

.mode-tab:hover {
  background-color: rgba(255, 255, 255, 0.75);
  color: #0284C7;
  transform: translateY(-1px);
}

.mode-tab.active {
  background-color: #FFFFFF;
  color: #0284C7;
  font-weight: 800;
  border: 2px solid #38BDF8;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.18);
}

.mode-tab .tab-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
  transition: transform 0.2s ease;
}

.mode-tab:hover .tab-icon,
.mode-tab.active .tab-icon {
  transform: scale(1.08);
}

.mode-tab .tab-title {
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.25;
}

.mode-tab.active .tab-title {
  color: #0284C7;
  font-weight: 850;
}

.mode-tab .tab-freq {
  font-size: 0.72rem;
  color: #64748B;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-weight: 600;
}

.mode-tab.active .tab-freq {
  color: #0284C7;
  font-weight: 750;
}

/* PRIMARY ENGINE CONTROLLER */
.engine-main-area {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 28px;
}

.trigger-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.big-trigger-wrapper {
  position: relative;
  width: 194px;
  height: 194px;
  margin: 10px 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2.5px solid #00B4D8;
  opacity: 0;
  pointer-events: none;
}

.pulse-ring.active {
  animation: pulseAcoustic 1.8s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulseAcoustic {
  0% {
    transform: scale(0.88);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.48);
    opacity: 0;
  }
}

.main-trigger-btn {
  width: 164px;
  height: 164px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #00B4D8 0%, #0077B6 55%, #023E8A 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-shadow: 0 16px 42px rgba(0, 119, 182, 0.45), 0 0 0 4px #FFFFFF, 0 0 35px rgba(0, 180, 216, 0.38);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 2;
  border: none;
}

.main-trigger-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 48px rgba(0, 180, 216, 0.6), 0 0 0 4px #FFFFFF, 0 0 45px rgba(0, 180, 216, 0.5);
}

.main-trigger-btn:active {
  transform: scale(0.97);
}

.main-trigger-btn.playing {
  background: radial-gradient(circle at 35% 30%, #F87171 0%, #DC2626 55%, #991B1B 100%);
  box-shadow: 0 16px 42px rgba(220, 38, 38, 0.45), 0 0 0 4px #FFFFFF, 0 0 35px rgba(239, 68, 68, 0.42);
}

.main-trigger-btn .btn-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
  fill: currentColor;
}

.main-trigger-btn .btn-text {
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

.main-trigger-btn .btn-sub {
  font-size: 0.68rem;
  opacity: 0.9;
  margin-top: 4px;
}

.countdown-badge {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 750;
  color: #0077B6;
  background: linear-gradient(135deg, #E0F2FA, #CEEAF7);
  padding: 7px 20px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 180, 216, 0.35);
  box-shadow: 0 2px 10px rgba(0, 180, 216, 0.15);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* VISUALIZER & TELEMETRY COLUMN */
.visualizer-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.visualizer-box {
  background: linear-gradient(150deg, #F0F7FB 0%, #E8F3F8 100%);
  border: 1px solid rgba(185, 222, 238, 0.9);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 119, 182, 0.06);
}

.vis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.active-mode-tag {
  font-size: 0.82rem;
  font-weight: 750;
  color: #0077B6;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.canvas-container {
  width: 100%;
  height: 150px;
  background: radial-gradient(circle at center, #0B2232 0%, #061520 100%);
  border: 1.5px solid rgba(0, 180, 216, 0.4);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 3px 18px rgba(0, 0, 0, 0.75), 0 6px 20px rgba(0, 180, 216, 0.15);
}

#visualizerCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.engine-pro-tip {
  background: linear-gradient(135deg, #E0F2FA 0%, #CEEAF7 100%);
  border: 1px solid rgba(0, 180, 216, 0.35);
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  color: #005F92;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 180, 216, 0.12);
}

/* ENGINE SECONDARY ADJUSTMENTS */
.engine-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(185, 222, 238, 0.8);
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.styled-select {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(185, 222, 238, 0.9);
  background-color: #fff;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.styled-select:hover {
  border-color: #0077B6;
  box-shadow: 0 0 10px rgba(0, 180, 216, 0.2);
}

.volume-control-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
}

.volume-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 7px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #D4E8F2, #B9DCEE);
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #0077B6;
  border: 2px solid #FFFFFF;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 119, 182, 0.5);
}

.volume-val-badge {
  font-size: 0.85rem;
  font-weight: 750;
  font-family: var(--font-mono);
  color: #0077B6;
  width: 44px;
  text-align: right;
}

/* SUB-PANEL CONTROLS FOR ALL 5 MODES */
.sub-panel {
  margin-top: 20px;
  padding: 22px;
  background: linear-gradient(150deg, #F0F7FB 0%, #E7F3F8 100%);
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(185, 222, 238, 0.85);
  box-shadow: 0 4px 14px rgba(0, 119, 182, 0.06);
}

.sub-panel-title {
  font-size: 1.05rem;
  font-weight: 850;
  color: #0C2331;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sub-panel-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.tool-options-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.option-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-btn {
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(185, 222, 238, 0.95);
  background: #FFFFFF;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.pill-btn:hover {
  border-color: #0077B6;
  background: #F0F9FF;
}

.pill-btn.active {
  background: linear-gradient(135deg, #0077B6, #00B4D8);
  color: #FFFFFF;
  border-color: #0077B6;
  box-shadow: 0 3px 10px rgba(0, 180, 216, 0.35);
}

.drain-tip-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #E0F2FA, #D3ECF8);
  border: 1px solid rgba(0, 180, 216, 0.35);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.drain-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.drain-text {
  font-size: 0.84rem;
  color: #005F92;
  line-height: 1.45;
}

.sub-panel-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.panel-trigger-btn {
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, #0077B6 0%, #00B4D8 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 180, 216, 0.35);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.panel-trigger-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(0, 180, 216, 0.45);
}

/* FREQUENCY STEPPERS & MANUAL LAB */
.freq-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.stepper-btn {
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 750;
  font-family: var(--font-mono);
  background: #FFFFFF;
  border: 1.5px solid rgba(185, 222, 238, 0.95);
  border-radius: var(--radius-sm);
  color: #0077B6;
  cursor: pointer;
  transition: var(--transition);
}

.stepper-btn:hover {
  background: #0077B6;
  color: #FFFFFF;
  border-color: #0077B6;
}

.freq-slider-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 260px;
}

.freq-range-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 9px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #0077B6 0%, #00B4D8 50%, #48CAE4 100%);
  outline: none;
}

.freq-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3.5px solid #0077B6;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.45);
}

.freq-number-input {
  width: 92px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 750;
  border: 1.5px solid rgba(185, 222, 238, 0.9);
  border-radius: var(--radius-sm);
  text-align: center;
  color: #0C2331;
  background: #FFFFFF;
}

.waveform-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.wave-btn {
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
}

.wave-btn.active, .wave-btn:hover {
  background: #0077B6;
  color: #fff;
  border-color: #0077B6;
}

.freq-chips-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.freq-chip {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: #0077B6;
  transition: var(--transition);
  cursor: pointer;
}

.freq-chip:hover {
  background-color: #E0F2FA;
  border-color: #0077B6;
}

/* SWEEP GENERATOR CARD */
.sweep-generator-card {
  margin-top: 18px;
  padding: 16px;
  background: linear-gradient(145deg, #E8F4FA, #DFEFF8);
  border: 1.5px solid rgba(0, 180, 216, 0.35);
  border-radius: var(--radius-md);
}

.sweep-gen-header {
  margin-bottom: 12px;
}

.sweep-options-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.sweep-progress-container {
  width: 100%;
  height: 10px;
  background: #0B2232;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 180, 216, 0.4);
}

.sweep-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0077B6, #00F2FE);
  box-shadow: 0 0 10px #00F2FE;
  transition: width 0.1s linear;
}

.sweep-status-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #0077B6;
  margin-top: 6px;
}

/* STEREO VISUAL CARDS & 7-BAND MATRIX */
.stereo-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .stereo-visual-grid {
    grid-template-columns: 1fr;
  }
}

.speaker-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(185, 222, 238, 0.95);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.speaker-card.active-playing {
  border-color: #00B4D8;
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.45);
  background: linear-gradient(160deg, #FFFFFF, #E6F6FD);
}

.speaker-anim-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.speaker-cone-icon {
  font-size: 2rem;
  z-index: 2;
}

.speaker-sound-wave {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2.5px solid #00B4D8;
  opacity: 0;
  pointer-events: none;
}

.speaker-card.active-playing .speaker-sound-wave {
  animation: speakerWaveRing 1.2s infinite ease-out;
}

@keyframes speakerWaveRing {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

.speaker-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0C2331;
  margin-bottom: 4px;
}

.speaker-state-badge {
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-family: var(--font-mono);
}

.speaker-card.active-playing .speaker-state-badge {
  color: #0077B6;
}

.pan-channel-btn {
  width: 100%;
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #F0F7FB;
  border: 1px solid rgba(185, 222, 238, 0.95);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.pan-channel-btn.active, .pan-channel-btn:hover {
  background: #0077B6;
  color: #FFFFFF;
  border-color: #0077B6;
}

.alternating-test-card {
  background: linear-gradient(145deg, #E8F4FA, #DFEFF8);
  border: 1.5px solid rgba(0, 180, 216, 0.35);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
}

.bands-matrix-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(185, 222, 238, 0.95);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.bands-header {
  font-size: 0.9rem;
  font-weight: 750;
  color: #0C2331;
  margin-bottom: 12px;
}

.bands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.band-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  background: #F8FAFC;
  border: 1px solid rgba(185, 222, 238, 0.95);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.band-btn:hover {
  background: #E0F2FA;
  border-color: #0077B6;
  transform: translateY(-1px);
}

.band-btn.active-testing {
  background: linear-gradient(135deg, #0077B6, #00B4D8);
  border-color: #0077B6;
  box-shadow: 0 0 12px rgba(0, 180, 216, 0.5);
}

.band-freq {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 800;
  color: #0077B6;
}

.band-btn.active-testing .band-freq {
  color: #FFFFFF !important;
}

.band-name {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
  text-align: center;
}

.band-btn.active-testing .band-name {
  color: #FFFFFF !important;
}

.band-status-display {
  font-size: 0.84rem;
  color: #005F92;
  background: linear-gradient(135deg, #E0F2FA, #D3ECF8);
  border: 1px solid rgba(0, 180, 216, 0.3);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.stepped-wizard {
  background: #fff;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-top: 14px;
}

.stepped-status {
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 12px;
}

.highlight-freq {
  color: var(--accent-cyan);
  font-weight: 800;
  font-family: var(--font-mono);
}

.step-feedback-btns {
  display: flex;
  gap: 8px;
}

.step-fb-btn {
  flex: 1;
  padding: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.step-fb-btn[data-verdict="clear"] {
  background-color: #ECFDF5;
  color: #059669;
  border-color: #A7F3D0;
}

.step-fb-btn[data-verdict="muffled"] {
  background-color: #FFFBEB;
  color: #D97706;
  border-color: #FDE68A;
}

.step-fb-btn[data-verdict="distorted"] {
  background-color: #FEF2F2;
  color: #DC2626;
  border-color: #FECACA;
}

.stepped-result-card {
  margin-top: 14px;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.score-display {
  font-size: 1.8rem;
  font-weight: 900;
  font-family: var(--font-mono);
  margin: 6px 0;
}

/* 2-STEP QUICK DIAGNOSTIC SECTION */
.diagnostic-section {
  padding: 80px 0;
  background: transparent;
  border-top: 1px solid rgba(14, 165, 233, 0.25);
  border-bottom: 1px solid rgba(14, 165, 233, 0.25);
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 42px;
}

.section-tag {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0077B6;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: inline-block;
  background: linear-gradient(135deg, #E0F2FA, #CEEAF7);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 180, 216, 0.3);
}

.section-title {
  font-size: 2.35rem;
  font-weight: 850;
  color: #0C2331;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.triage-container {
  max-width: 920px;
  margin: 0 auto;
  background: linear-gradient(160deg, #FFFFFF 0%, #F5FAFD 100%);
  padding: 36px;
  border-radius: var(--radius-xl);
  border: 1.5px solid rgba(185, 222, 238, 0.9);
  box-shadow: 0 16px 45px -10px rgba(0, 119, 182, 0.12);
}

.triage-step-block {
  margin-bottom: 30px;
}

.step-number-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0C2331;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-badge {
  background: linear-gradient(135deg, #0077B6, #00B4D8);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 180, 216, 0.35);
}

.pills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.triage-pill {
  padding: 16px 18px;
  background: linear-gradient(145deg, #FFFFFF, #F8FCFE);
  border: 1.5px solid #D2E4EE;
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.triage-pill:hover {
  border-color: #00B4D8;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 180, 216, 0.18);
  background: #FFFFFF;
}

.triage-pill.active {
  background: linear-gradient(145deg, #E0F2FA, #CEEAF7);
  border-color: #0077B6;
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.25);
}

.triage-pill .pill-title {
  font-size: 0.95rem;
  font-weight: 750;
  color: #0C2331;
  margin-bottom: 4px;
}

.triage-pill .pill-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* RECOMMENDATION CARD */
.diag-result-card {
  background: #fff;
  border: 2px solid transparent;
  background: linear-gradient(#FFFFFF, #FFFFFF) padding-box, linear-gradient(135deg, #0077B6, #00B4D8, #48CAE4) border-box;
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 20px 48px -10px rgba(0, 119, 182, 0.22);
  position: relative;
}

.diag-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(185, 222, 238, 0.8);
  flex-wrap: wrap;
  gap: 12px;
}

.diag-header-title {
  font-size: 1.25rem;
  font-weight: 850;
  color: #0077B6;
}

.diag-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.diag-spec-box {
  background: linear-gradient(135deg, #EBF5F9, #E1EEF4);
  padding: 14px;
  border-radius: var(--radius-sm);
  border-left: 3.5px solid #00B4D8;
  box-shadow: 0 2px 8px rgba(0, 119, 182, 0.05);
}

.spec-label {
  font-size: 0.75rem;
  font-weight: 750;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.spec-val {
  font-size: 0.98rem;
  font-weight: 850;
  color: #0C2331;
}

.diag-instruction-block {
  margin-bottom: 18px;
  background: linear-gradient(145deg, #FAFDFE, #F2F8FB);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(0, 180, 216, 0.4);
}

.diag-instruction-title {
  font-size: 0.88rem;
  font-weight: 850;
  color: #0C2331;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.diag-instruction-text {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.55;
}

.diag-warning {
  color: #B91C1C;
  font-size: 0.82rem;
  margin-top: 8px;
  font-weight: 650;
}

.apply-treatment-btn {
  background: linear-gradient(135deg, #0077B6 0%, #0096C7 50%, #00B4D8 100%);
  color: #fff;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(0, 180, 216, 0.42);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.apply-treatment-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 180, 216, 0.55);
}

/* MIC TESTER COMPONENT */
.mic-test-container {
  margin-top: 40px;
  background: linear-gradient(160deg, #FFFFFF 0%, #F5FAFD 100%);
  border: 1.5px solid rgba(185, 222, 238, 0.9);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 12px 36px rgba(0, 119, 182, 0.08);
}

.mic-meter-bar-wrap {
  width: 100%;
  height: 16px;
  background: #E8F2F7;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 14px 0;
  border: 1px solid rgba(185, 222, 238, 0.9);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.mic-meter-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10B981 0%, #00B4D8 50%, #F59E0B 80%, #EF4444 100%);
  box-shadow: 0 0 14px rgba(0, 180, 216, 0.4);
  transition: width 0.08s ease-out;
}

/* CONTENT & SEO EDITORIAL SECTIONS */
.seo-article-section {
  padding: 70px 0;
}

.article-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.content-block {
  margin-bottom: 50px;
}

.content-block h2 {
  font-size: 1.95rem;
  font-weight: 850;
  color: #0C2331;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2.5px solid #E0F2FA;
}

.content-block h3 {
  font-size: 1.35rem;
  font-weight: 750;
  color: #0077B6;
  margin: 26px 0 12px;
}

.content-block p {
  font-size: 1.05rem;
  color: #273E4D;
  line-height: 1.75;
  margin-bottom: 16px;
}

.content-block ul, .content-block ol {
  margin: 16px 0 20px 24px;
  font-size: 1.02rem;
  color: #273E4D;
  line-height: 1.68;
}

.content-block li {
  margin-bottom: 10px;
}

/* STEP-BY-STEP RECOVERY PROTOCOL */
.protocol-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 26px 0;
}

.protocol-card {
  background: linear-gradient(150deg, #FFFFFF 0%, #F8FCFE 100%);
  border: 1.5px solid #D2E4EE;
  border-radius: var(--radius-md);
  padding: 22px 26px;
  display: flex;
  gap: 22px;
  box-shadow: 0 4px 14px rgba(0, 119, 182, 0.05);
  transition: var(--transition);
}

.protocol-card:hover {
  box-shadow: 0 12px 30px rgba(0, 180, 216, 0.16);
  border-color: #00B4D8;
  transform: translateY(-2px);
}

.protocol-step-num {
  font-size: 1.55rem;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, #0077B6, #00B4D8);
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 180, 216, 0.35);
}

.protocol-text h4 {
  font-size: 1.15rem;
  font-weight: 850;
  color: #0C2331;
  margin-bottom: 6px;
}

.protocol-text p {
  font-size: 0.96rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* COMPARISON TABLE */
.table-responsive-wrapper {
  overflow-x: auto;
  margin: 30px 0;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(185, 222, 238, 0.9);
  box-shadow: 0 10px 28px rgba(0, 119, 182, 0.08);
  background: #fff;
}

.methods-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.93rem;
}

.methods-table th {
  background: linear-gradient(135deg, #0C2B3F 0%, #0077B6 60%, #0096C7 100%);
  color: #fff;
  padding: 16px 18px;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.methods-table td {
  padding: 15px 18px;
  border-bottom: 1px solid rgba(185, 222, 238, 0.7);
  color: var(--text-main);
  vertical-align: middle;
}

.methods-table tr:nth-child(even) {
  background-color: #F6FAFD;
}

.methods-table tr:hover {
  background-color: #EBF5F9;
}

.badge-risk {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-safe {
  background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
  color: #065F46;
  border: 1px solid #6EE7B7;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.15);
}

.badge-moderate {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #92400E;
  border: 1px solid #FCD34D;
}

.badge-extreme {
  background: linear-gradient(135deg, #FEE2E2, #FECACA);
  color: #991B1B;
  border: 1px solid #F87171;
}

/* ACOUSTIC FIX VS REPAIR GRID */
.versus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 26px 0;
}

.versus-card {
  background: linear-gradient(150deg, #FFFFFF 0%, #F8FCFE 100%);
  border-radius: var(--radius-lg);
  padding: 26px;
  border: 1.5px solid #D2E4EE;
  box-shadow: 0 6px 18px rgba(0, 119, 182, 0.06);
}

.versus-card.fix {
  border-top: 5px solid #10B981;
}

.versus-card.repair {
  border-top: 5px solid #EF4444;
}

.versus-title {
  font-size: 1.25rem;
  font-weight: 850;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.versus-card.fix .versus-title {
  color: #047857;
}

.versus-card.repair .versus-title {
  color: #B91C1C;
}

/* ACCORDION (FAQ) */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 26px 0;
}

.faq-item {
  background: linear-gradient(150deg, #FFFFFF 0%, #F8FCFE 100%);
  border: 1.5px solid #D2E4EE;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: #00B4D8;
  box-shadow: 0 4px 14px rgba(0, 180, 216, 0.12);
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 750;
  color: #0C2331;
  text-align: left;
}

.faq-question:hover {
  background: rgba(0, 180, 216, 0.06);
  color: #0077B6;
}

.faq-icon {
  font-size: 1.15rem;
  transition: transform 0.25s ease;
  color: #0077B6;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: #00B4D8;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.68;
}

.faq-item.open .faq-answer {
  padding-bottom: 22px;
}

/* DEVICE SILO LINKS SECTION */
.silo-grid-section {
  padding: 70px 0;
  background: transparent;
  border-top: 1px solid rgba(14, 165, 233, 0.25);
}

.silo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.silo-card {
  background: linear-gradient(150deg, #FFFFFF 0%, #F4F9FB 100%);
  border: 1.5px solid #D2E4EE;
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(0, 119, 182, 0.05);
}

.silo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 180, 216, 0.2);
  border-color: #00B4D8;
  text-decoration: none;
}

.silo-card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.silo-card-title {
  font-size: 1.2rem;
  font-weight: 850;
  color: #0C2331;
  margin-bottom: 6px;
}

.silo-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.48;
  margin-bottom: 14px;
}

.silo-card-link {
  font-size: 0.88rem;
  font-weight: 750;
  color: #0077B6;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  transition: transform 0.2s ease;
}

.silo-card:hover .silo-card-link {
  color: #00B4D8;
  transform: translateX(4px);
}

/* TOAST NOTIFICATION */
.app-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, #0C2331, #0077B6);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 650;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 180, 216, 0.3);
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  border: 1px solid rgba(0, 180, 216, 0.4);
}

.app-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* FOOTER - PURE BLACK WITH BLUE TEXT AND BLUE CATEGORIES */
.site-footer {
  background-color: #000000 !important;
  background-image: none !important;
  color: #38BDF8 !important;
  padding: 70px 0 35px;
  font-size: 0.92rem;
  border-top: none !important;
  box-shadow: none !important;
  position: relative;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 45px;
}

.footer-brand h3 {
  font-size: 1.55rem;
  font-weight: 850;
  color: #38BDF8 !important; /* Blue Brand Title */
  -webkit-text-fill-color: #38BDF8 !important;
  background: none !important;
  margin-bottom: 14px;
}

.footer-brand p {
  color: #38BDF8 !important; /* Blue text */
  line-height: 1.65;
  max-width: 320px;
}

.footer-column h4 {
  font-size: 1.05rem;
  font-weight: 850;
  color: #38BDF8 !important; /* Blue Category Header */
  margin-bottom: 18px;
  letter-spacing: 0.03em;
  position: relative;
  display: inline-block;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100% !important;
  height: 2px;
  background: #FFFFFF !important; /* Full-width white underline under text */
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #38BDF8 !important; /* Blue links */
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #BAE6FD !important;
  text-shadow: 0 0 10px rgba(186, 230, 253, 0.7);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(56, 189, 248, 0.25);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #60A5FA !important; /* Blue bottom text */
  font-size: 0.84rem;
  flex-wrap: wrap;
  gap: 14px;
}

.disclaimer-box {
  display: none !important;
}

/* RESPONSIVE BREAKPOINTS - FRIENDLY ACROSS ALL SCREEN SIZES */

/* COMPACT DESKTOP & SMALL LAPTOPS (1081px to 1200px) */
@media (min-width: 1081px) and (max-width: 1200px) {
  .nav-wrapper {
    padding: 0 16px;
  }

  .nav-menu {
    gap: 2px;
  }

  .nav-link {
    padding: 6px 8px;
    font-size: 0.81rem;
  }

  .nav-cta-btn {
    padding: 7px 12px;
    font-size: 0.81rem;
  }

  .brand-name {
    font-size: 1.18rem;
  }

  .brand-icon-wrap {
    width: 36px;
    height: 36px;
  }
}

/* TABLETS LANDSCAPE, IPADS & NETBOOKS (<= 1080px) */
@media (max-width: 1080px) {
  .nav-wrapper {
    height: 64px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 67px; /* 64px header + 3px accent bar */
    left: 0;
    right: 0;
    width: 100%;
    background: #000000;
    border-bottom: 2px solid #38BDF8;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 25px rgba(56, 189, 248, 0.35);
    flex-direction: column;
    padding: 16px clamp(16px, 3.5vw, 28px) 24px;
    gap: 4px;
    display: none;
    max-height: calc(100vh - 75px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
    box-sizing: border-box;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
  }

  .nav-menu.nav-open {
    display: flex;
    animation: mobileNavSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes mobileNavSlide {
    from {
      opacity: 0;
      transform: translateY(-8px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .nav-menu .nav-link {
    width: 100%;
    padding: 13px 16px;
    font-size: 0.98rem;
    border-radius: 10px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(56, 189, 248, 0.12);
  }

  .nav-menu .nav-link:last-of-type {
    border-bottom: none;
  }

  .nav-menu .nav-cta-btn {
    width: 100%;
    justify-content: center;
    margin: 12px 0 0;
    padding: 14px;
    font-size: 0.96rem;
    box-sizing: border-box;
  }
}

/* TABLETS PORTRAIT (<= 900px) */
@media (max-width: 900px) {
  .mode-tabs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .mode-tab[data-mode="stereo"] {
    grid-column: span 2;
  }

  .engine-main-area {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .versus-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .diag-spec-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* SMARTPHONES & PHABLETS (<= 768px) */
@media (max-width: 768px) {
  .hero-engine-section {
    padding: 32px 0 50px;
  }

  .hero-headline-wrap {
    margin-bottom: 26px;
  }

  .hero-title {
    font-size: clamp(1.85rem, 5vw, 2.35rem);
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .hero-badge {
  display: none !important;
}

  /* ENGINE CARD COMPACTNESS */
  .engine-card {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .mode-tab {
    padding: 10px 6px;
  }

  .mode-tab .tab-icon {
    font-size: 1.25rem;
    margin-bottom: 2px;
  }

  .mode-tab .tab-title {
    font-size: 0.8rem;
  }

  .mode-tab .tab-freq {
    font-size: 0.68rem;
  }

  .big-trigger-wrapper {
    width: 170px;
    height: 170px;
    margin: 4px 0 14px;
  }

  .main-trigger-btn {
    width: 144px;
    height: 144px;
  }

  .main-trigger-btn .btn-text {
    font-size: 0.95rem;
  }

  .main-trigger-btn .btn-sub {
    font-size: 0.62rem;
  }

  .canvas-container {
    height: 140px;
  }

  .engine-pro-tip {
    font-size: 0.8rem;
    padding: 10px 12px;
  }

  /* CONTROLS BAR STACKING */
  .engine-controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-top: 16px;
  }

  .control-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
  }

  .styled-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  .volume-control-wrap {
    width: 100%;
    min-width: 100%;
  }

  /* SUB-PANELS */
  .sub-panel {
    padding: 16px 14px;
    margin-top: 16px;
  }

  .sub-panel-title {
    font-size: 0.98rem;
  }

  .tool-options-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pill-group {
    gap: 6px;
  }

  .pill-btn {
    font-size: 0.78rem;
    padding: 7px 11px;
    flex: 1 1 auto;
    text-align: center;
  }

  .drain-tip-card {
    padding: 10px 12px;
    gap: 8px;
    font-size: 0.8rem;
  }

  .drain-icon {
    font-size: 1.2rem;
  }

  /* MANUAL LAB RESPONSIVE */
  .freq-stepper-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  .freq-slider-group {
    order: 1;
    width: 100%;
    min-width: 100%;
    margin-bottom: 4px;
  }

  .stepper-btn {
    order: 2;
    flex: 1 1 calc(25% - 8px);
    padding: 9px 4px;
    text-align: center;
    font-size: 0.8rem;
  }

  /* STEREO RESPONSIVE */
  .stereo-visual-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .band-btn {
    padding: 8px 4px;
  }

  .band-freq {
    font-size: 0.82rem;
  }

  .band-name {
    font-size: 0.65rem;
  }

  /* 2-STEP DIAGNOSTIC */
  .diagnostic-section {
    padding: 50px 0;
  }

  .section-title {
    font-size: clamp(1.6rem, 4vw, 2rem);
  }

  .section-lead {
    font-size: 0.95rem;
  }

  .triage-container {
    padding: 20px 14px;
    border-radius: 18px;
  }

  .pills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .triage-pill {
    padding: 12px 14px;
  }

  .triage-pill .pill-title {
    font-size: 0.88rem;
  }

  .triage-pill .pill-desc {
    font-size: 0.72rem;
  }

  .diag-result-card {
    padding: 18px 14px;
  }

  .diag-spec-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* MIC TESTER */
  .mic-test-container {
    padding: 20px 14px;
  }

  /* RECOVERY PROTOCOL */
  .seo-article-section {
    padding: 45px 0;
  }

  .content-block h2 {
    font-size: 1.55rem;
  }

  .content-block h3 {
    font-size: 1.2rem;
  }

  .content-block p, .content-block ul, .content-block ol {
    font-size: 0.96rem;
  }

  .protocol-card {
    padding: 16px 14px;
    gap: 12px;
  }

  .protocol-step-num {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
    border-radius: 10px;
  }

  .protocol-text h4 {
    font-size: 1.02rem;
  }

  .protocol-text p {
    font-size: 0.88rem;
  }

  /* TABLE HORIZONTAL SCROLL */
  .table-responsive-wrapper {
    margin: 20px 0;
    -webkit-overflow-scrolling: touch;
  }

  .methods-table th, .methods-table td {
    padding: 12px 14px;
    font-size: 0.85rem;
  }

  /* FAQ ACCORDION */
  .faq-question {
    padding: 14px 16px;
    font-size: 0.96rem;
  }

  .faq-answer {
    padding: 0 16px 14px;
    font-size: 0.9rem;
  }

  /* FOOTER */
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* EXTRA SMALL SCREENS (<= 480px, e.g. iPhone SE / Mini) */
@media (max-width: 480px) {
  .pills-grid {
    grid-template-columns: 1fr;
  }

  .sweep-options-row {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .brand-name {
    font-size: 1.12rem;
  }

  .big-trigger-wrapper {
    width: 155px;
    height: 155px;
  }

  .main-trigger-btn {
    width: 132px;
    height: 132px;
  }

  .mode-tab {
    padding: 8px 4px;
  }

  .mode-tab .tab-icon {
    font-size: 1.2rem;
  }

  .mode-tab .tab-title {
    font-size: 0.76rem;
  }

  .mode-tab .tab-freq {
    font-size: 0.66rem;
  }
}

/* ULTRA NARROW SCREENS (<= 360px, e.g. Fold Outer / Compact) */
@media (max-width: 360px) {
  .mode-tabs-grid {
    grid-template-columns: 1fr;
  }

  .mode-tab[data-mode="stereo"] {
    grid-column: auto;
  }

  .freq-slider-group {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .freq-number-input {
    width: 100%;
  }
}
