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

:root {
  --primary: #0284c7;
  --primary-glow: rgba(14, 165, 233, 0.4);
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.35);
  --lime: #22c55e;
  --lime-glow: rgba(34, 197, 94, 0.3);
  --bg-dark: #080d1a;
  --card-bg: rgba(15, 23, 42, 0.75);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(6, 182, 212, 0.4);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-red: #ef4444;
  --warning-bg: rgba(234, 179, 8, 0.08);
  --warning-border: rgba(234, 179, 8, 0.3);
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Ambient Glow Orbs */
.bg-glow-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
}

.orb-1 {
  top: -100px;
  left: 20%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #0284c7, transparent 70%);
  animation: pulseOrb 8s ease-in-out infinite alternate;
}

.orb-2 {
  top: 300px;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #06b6d4, transparent 70%);
  animation: pulseOrb 10s ease-in-out infinite alternate-reverse;
}

.orb-3 {
  bottom: 100px;
  left: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #10b981, transparent 70%);
  animation: pulseOrb 12s ease-in-out infinite alternate;
}

@keyframes pulseOrb {
  0% { transform: scale(0.9) translate(0, 0); opacity: 0.18; }
  100% { transform: scale(1.15) translate(30px, -20px); opacity: 0.32; }
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(8, 13, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  z-index: 100;
  transition: all 0.3s ease;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 14px var(--cyan-glow);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #fff;
}

/* Trust Pill Badge */
.trust-badge-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: #67e8f9;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.08);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  animation: pulseDot 2s infinite;
}

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

/* Hero Section */
.hero-section {
  padding: 2.5rem 0 3.5rem;
  text-align: center;
}

.hero-header {
  max-width: 780px;
  margin: 0 auto 2.5rem;
}

.hero-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 40%, #7dd3fc 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-header p {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
}

/* Master Tool Card */
.master-tool-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2.25rem 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 40px rgba(2, 132, 199, 0.1);
  margin: 0 auto 2.5rem;
  position: relative;
  overflow: hidden;
  max-width: 720px;
}

.master-tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

/* Mode Selection Buttons */
.mode-container {
  margin-bottom: 1.75rem;
}

.mode-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

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

.mode-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 0.9rem 0.75rem;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.mode-tab:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.mode-tab.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25), rgba(6, 182, 212, 0.15));
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.25), inset 0 0 12px rgba(6, 182, 212, 0.1);
}

.mode-tab .mode-icon {
  font-size: 1.5rem;
}

.mode-tab strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.mode-tab small {
  color: #94a3b8;
  font-size: 0.75rem;
}

.mode-tab.active small {
  color: #7dd3fc;
}

/* Speaker Channel Selector */
.channel-container {
  margin-bottom: 2rem;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
}

.channel-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.6rem 0.5rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.channel-btn:hover {
  color: #fff;
}

.channel-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Interactive Center Action Dial */
.hero-action-dial-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto 2rem;
}

.dial-svg-container {
  position: relative;
  width: 210px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dial-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.dial-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 8;
}

.dial-circle-progress {
  fill: none;
  stroke: url(#cyanBlueGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 565.48; /* 2 * PI * 90 */
  stroke-dashoffset: 565.48;
  transition: stroke-dashoffset 0.2s linear, stroke 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.8));
}

.dial-circle-progress.active-pulse {
  animation: glowPulseRing 1.5s ease-in-out infinite alternate;
}

@keyframes glowPulseRing {
  from { filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.7)); }
  to { filter: drop-shadow(0 0 18px rgba(34, 197, 94, 0.9)); }
}

/* Master Center Eject Button */
.master-eject-btn {
  position: relative;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  border: 3px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 35px var(--primary-glow), inset 0 2px 10px rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5;
  user-select: none;
  outline: none;
}

.master-eject-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 45px rgba(6, 182, 212, 0.6), inset 0 2px 15px rgba(255, 255, 255, 0.4);
}

.master-eject-btn:active {
  transform: scale(0.97);
}

.master-eject-btn.running {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.6);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Animated Ripple Waves when Playing */
.ripple-wave {
  position: absolute;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.master-eject-btn.running ~ .ripple-wave-1 {
  animation: rippleAnimation 2s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

.master-eject-btn.running ~ .ripple-wave-2 {
  animation: rippleAnimation 2s cubic-bezier(0.1, 0.8, 0.3, 1) infinite 0.7s;
}

.master-eject-btn.running ~ .ripple-wave-3 {
  animation: rippleAnimation 2s cubic-bezier(0.1, 0.8, 0.3, 1) infinite 1.4s;
}

@keyframes rippleAnimation {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}

.btn-emoji {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 0.25rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.btn-primary-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-subtext {
  font-size: 0.75rem;
  color: #e0f2fe;
  font-weight: 500;
}

/* Dynamic Live Status & Timer Display */
.status-pill-container {
  margin-top: 1.25rem;
  text-align: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  transition: all 0.3s ease;
}

.status-badge.active-clean {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.4);
  color: #86efac;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

.countdown-timer-text {
  color: var(--cyan);
  font-weight: 700;
}

/* Waveform Canvas Container */
.waveform-container {
  width: 100%;
  height: 60px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5rem 0;
  position: relative;
}

#waveformCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-label {
  position: absolute;
  bottom: 5px;
  right: 10px;
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Secondary Action Buttons */
.tool-footer-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tool-control-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-clean-start {
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: #fff;
}

.btn-clean-start:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-clean-stop {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  color: #fff;
}

.btn-clean-stop:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.tool-control-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Volume Warning Box */
.warning-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  padding: 0.95rem 1.25rem;
  border-radius: 14px;
  color: #fef08a;
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.5;
}

.warning-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* Social Proof Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.stat-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.4rem 1rem;
  text-align: center;
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--card-border-hover);
}

.stat-card h3 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, #fff, #7dd3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Section Title Blocks */
.section-title {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.section-title h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  color: #fff;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Generic Section Padding */
.content-section {
  padding: 4rem 0;
  border-top: 1px solid var(--card-border);
}

/* How It Works & Science Cards */
.cards-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 1.75rem;
  transition: all 0.25s;
}

.feature-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.card-icon {
  width: 50px;
  height: 50px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--cyan);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: #fff;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Step by Step Flow */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  transition: border-color 0.2s;
}

.step-card:hover {
  border-color: var(--card-border-hover);
}

.step-number {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  margin-bottom: 0.85rem;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: #fff;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Interactive Sound Test Section */
.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.diag-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.diag-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.diag-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.diag-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.diag-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Emergency Do's and Don'ts */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.action-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem;
}

.action-card.dos {
  border-left: 4px solid var(--lime);
}

.action-card.donts {
  border-left: 4px solid var(--accent-red);
}

.action-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  color: #fff;
}

.checklist {
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.55;
}

.action-card.dos .checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--lime);
  font-weight: bold;
}

.action-card.donts .checklist li::before {
  content: '✕';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-red);
  font-weight: bold;
}

/* Device Chips */
.device-chips-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.device-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.device-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cyan);
  color: #fff;
}

/* FAQ Accordion */
.faq-container {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--card-border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #fff;
  padding: 1.35rem 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--cyan);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 1.35rem;
}

/* Footer */
.site-footer {
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid var(--card-border);
  text-align: center;
  background: rgba(4, 7, 15, 0.7);
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin: 0 0.6rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.disclaimer {
  max-width: 680px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mode-grid,
  .channel-grid,
  .stats-grid,
  .cards-3col,
  .diagnostic-grid,
  .grid-2col {
    grid-template-columns: 1fr;
  }

  .master-tool-card {
    padding: 1.75rem 1.25rem;
  }

  .tool-footer-controls {
    flex-direction: column;
  }

  .hero-action-dial-wrapper {
    margin: 1rem auto 1.5rem;
  }
}

/* Page Layout for Content Pages */
.page-content {
  padding: 3.5rem 1.25rem 5rem;
  max-width: 800px;
}

.editorial-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.lead-text {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.meta-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.content-block {
  margin-bottom: 2.25rem;
}

.content-block h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.content-block p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.styled-list {
  padding-left: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.styled-list li {
  margin-bottom: 0.5rem;
  line-height: 1.55;
}

.callout-box {
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid var(--cyan);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.callout-box h3 {
  color: #7dd3fc;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.75rem;
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #cbd5e1;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.8rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.info-item {
  margin-bottom: 1.25rem;
}

.info-item strong {
  display: block;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.info-item p,
.info-item a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.info-item a:hover {
  color: var(--cyan);
}

/* Cookie Consent Banner */
#cookieConsentBanner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 750px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  border-radius: 16px;
  padding: 1rem 1.35rem;
  z-index: 1000;
  animation: slideUp 0.3s ease-out;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cookie-text {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

@keyframes slideUp {
  from {
    transform: translate(-50%, 100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .cookie-content {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-actions {
    justify-content: flex-end;
  }
}

/* Common Utility Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-small {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: #0ea5e9;
  box-shadow: 0 0 12px var(--primary-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--card-border);
  color: #cbd5e1;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* =============================================================
   Multilingual & Horizontal Footer Language Switcher Styles
   ============================================================= */
.footer-languages-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem 1rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.footer-lang-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.footer-lang-heading svg {
  width: 16px;
  height: 16px;
}

.footer-lang-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.lang-link-item {
  display: inline-flex;
}

.footer-lang-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-lang-link:hover {
  color: #fff;
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.35);
  transform: translateY(-1px);
}

.footer-lang-link.active {
  color: #fff;
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--cyan);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
}

.footer-lang-link.active::before {
  content: "•";
  color: var(--cyan);
  font-size: 1.1rem;
  line-height: 1;
}

/* Navbar Language Pill */
.nav-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-lang-pill:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--cyan);
  color: #fff;
}

/* =============================================================
   Right-To-Left (RTL) Layout Support (Arabic)
   ============================================================= */
html[dir="rtl"] {
  text-align: right;
}

html[dir="rtl"] body {
  font-family: 'Segoe UI', Tahoma, Arial, 'Noto Sans Arabic', sans-serif;
}

html[dir="rtl"] .nav-wrapper {
  flex-direction: row-reverse;
}

html[dir="rtl"] .action-card.dos {
  border-left: none;
  border-right: 4px solid var(--lime);
}

html[dir="rtl"] .action-card.donts {
  border-left: none;
  border-right: 4px solid var(--accent-red);
}

html[dir="rtl"] .checklist li {
  padding-left: 0;
  padding-right: 1.75rem;
}

html[dir="rtl"] .action-card.dos .checklist li::before,
html[dir="rtl"] .action-card.donts .checklist li::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .warning-box {
  text-align: right;
}

html[dir="rtl"] .faq-question {
  text-align: right;
}

html[dir="rtl"] .canvas-label {
  right: auto;
  left: 10px;
}

html[dir="rtl"] .diagnostic-grid .diag-item {
  text-align: right;
}