/* =========================================
   NEROMED - Complete CSS Design System
   Dark Theme: #050508 base, cyan-400 accent
   ========================================= */

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

/* ========= CSS VARIABLES ========= */
:root {
  --bg-base: #050508;
  --bg-surface: rgba(255,255,255,0.05);
  --bg-surface-hover: rgba(255,255,255,0.10);
  --border: rgba(255,255,255,0.10);
  --border-hover: rgba(255,255,255,0.20);
  --cyan: #22d3ee;
  --cyan-dark: #06b6d4;
  --cyan-light: #67e8f9;
  --red: #f87171;
  --amber: #fbbf24;
  --text-white: #ffffff;
  --text-muted: rgba(255,255,255,0.50);
  --text-dim: rgba(255,255,255,0.30);
  --text-dimmer: rgba(255,255,255,0.15);
  --shadow-cyan: 0 0 30px rgba(34,211,238,0.15);
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.5rem;
  --transition: all 0.3s ease;
}

/* ========= RESET & BASE ========= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, textarea, select {
  font-family: inherit;
  background: transparent;
  color: var(--text-white);
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.35); }
*:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ========= SCROLLBAR ========= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb { background: rgba(34,211,238,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(34,211,238,0.5); }

/* ========= UTILITY ========= */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 640px) { .container { padding: 0 2rem; } }
@media (min-width: 1024px) { .container { padding: 0 3rem; } }

.section { padding: 6rem 0; position: relative; overflow: hidden; border-top: 1px solid var(--border); }
.section-badge {
  display: inline-block;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  background: rgba(34,211,238,0.10);
  border: 1px solid rgba(34,211,238,0.20);
  color: var(--cyan);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 4rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-white);
  line-height: 1.15;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========= CARD BASE ========= */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  transition: var(--transition);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.card:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(34,211,238,0.35);
}

/* Icon Box */
.icon-box {
  width: 3rem; height: 3rem;
  border-radius: var(--radius-xl);
  background: rgba(34,211,238,0.10);
  border: 1px solid rgba(34,211,238,0.20);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.card:hover .icon-box { transform: scale(1.1); }
.icon-box svg { width: 1.25rem; height: 1.25rem; }

/* ========= BUTTONS ========= */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-xl);
  font-weight: 700; font-size: 0.875rem;
  transition: var(--transition);
  border: none; cursor: pointer;
}
.btn-cyan {
  background: var(--cyan);
  color: #000;
  box-shadow: 0 4px 20px rgba(34,211,238,0.25);
}
.btn-cyan:hover { background: var(--cyan-light); transform: translateY(-1px); }
.btn-ghost {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-white);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--bg-surface-hover); border-color: var(--border-hover); }
.btn-red {
  background: rgba(248,113,113,0.15);
  border: 1px solid rgba(248,113,113,0.30);
  color: var(--red);
}
.btn-red:hover { background: rgba(248,113,113,0.25); }
.btn-red-solid {
  background: var(--red);
  color: #000;
  font-weight: 800;
}
.btn-red-solid:hover { background: #fca5a5; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.75rem; border-radius: 0.75rem; }

/* ========= GLOW BG DECORATIONS ========= */
.glow-top-right {
  position: absolute; top: -10%; right: -10%;
  width: 600px; height: 600px;
  background: rgba(34,211,238,0.15);
  border-radius: 50%; filter: blur(120px);
  pointer-events: none;
}
.glow-bottom-left {
  position: absolute; bottom: -10%; left: -10%;
  width: 500px; height: 500px;
  background: rgba(37,99,235,0.08);
  border-radius: 50%; filter: blur(100px);
  pointer-events: none;
}
.glow-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: rgba(34,211,238,0.05);
  border-radius: 50%; filter: blur(120px);
  pointer-events: none;
}

/* ========= ANIMATIONS ========= */
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
@keyframes ping  { 0%{transform:scale(1);opacity:1} 75%,100%{transform:scale(2);opacity:0} }
@keyframes spin  { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
@keyframes float {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  33%      { transform: translateY(-12px) rotate(1deg); }
  66%      { transform: translateY(-6px) rotate(-1deg); }
}
@keyframes float2 {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(2deg); }
}
@keyframes neural-pulse {
  0%,100% { opacity:0.3; transform:scale(1); }
  50%     { opacity:0.8; transform:scale(1.02); }
}
@keyframes scanline {
  0% { top: -10%; }
  100% { top: 110%; }
}
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-ping  { animation: ping  1s ease-in-out infinite; }
.animate-spin  { animation: spin  8s linear infinite; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float2{ animation: float2 8s ease-in-out infinite; }

/* ========= NAVBAR ========= */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  transition: all 0.3s ease;
  padding: 1.5rem 0;
}
#navbar.scrolled {
  background: rgba(5,5,8,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
  padding: 1rem 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.75rem;
  cursor: pointer; border: none; background: none;
  color: var(--text-white);
}
.nav-logo-icon {
  width: 2rem; height: 2rem;
  border-radius: 50%; border: 2px solid var(--cyan);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s;
}
.nav-logo:hover .nav-logo-icon { transform: scale(1.05); }
.nav-logo-dot {
  width: 1rem; height: 1rem;
  background: var(--cyan); border-radius: 2px;
  transform: rotate(45deg);
}
.nav-logo span { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.05em; }

.nav-links {
  display: none; align-items: center; gap: 1.1rem;
  font-size: 0.8rem; font-weight: 500; color: rgba(255,255,255,0.6);
}
@media(min-width:900px){ .nav-links { display: flex; } }
.nav-link {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.6); font-size: 0.8rem; font-weight: 500;
  font-family: inherit; transition: color 0.2s;
  padding: 0; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--cyan); font-weight: 600; }

.nav-actions { display: none; align-items: center; gap: 0.75rem; }
@media(min-width:640px){ .nav-actions { display: flex; } }

/* Emergency pulsing dot */
.emergency-dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%; background: var(--red);
  animation: ping 1s ease-in-out infinite;
}

/* Mobile hamburger */
.nav-hamburger {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  background: rgba(15,15,20,0.8); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem; color: rgba(255,255,255,0.8);
}
@media(min-width:900px){ .nav-hamburger { display: none; } }

/* Mobile Drawer */
#mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 998;
  background: rgba(5,5,8,0.97); backdrop-filter: blur(20px);
  padding: 6rem 1.5rem 2rem;
  flex-direction: column; justify-content: space-between;
  border-bottom: 1px solid rgba(34,211,238,0.15);
}
#mobile-menu.open { display: flex; }
.mobile-link {
  display: block; width: 100%; text-align: left;
  padding: 0.75rem 1rem; border-radius: 0.75rem;
  font-size: 1rem; font-weight: 500; color: rgba(255,255,255,0.85);
  background: none; border: 1px solid transparent;
  transition: all 0.2s; font-family: inherit;
}
.mobile-link:hover {
  background: rgba(34,211,238,0.08);
  border-color: rgba(34,211,238,0.2);
  color: var(--cyan);
}

/* ========= HERO SECTION ========= */
#hero {
  min-height: 100vh;
  padding-top: 8rem;
  padding-bottom: 5rem;
  display: flex; align-items: center;
  background: var(--bg-base);
  position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 3rem; align-items: center;
}
@media(min-width:1024px){
  .hero-grid { grid-template-columns: 1fr 1fr; }
}
.hero-badge { margin-bottom: 0.5rem; }
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900; line-height: 0.95; letter-spacing: -0.03em;
}
.hero-title .accent { color: var(--cyan); }
.hero-desc {
  font-size: 1.0625rem; color: var(--text-muted);
  max-width: 28rem; line-height: 1.75;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-trust {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; color: var(--text-dim); font-style: italic;
  padding-top: 0.5rem;
}
.hero-trust svg { color: rgba(34,211,238,0.7); flex-shrink: 0; }
.hero-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.05);
}
.hero-metric {
  padding: 1rem; border-radius: var(--radius-2xl);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(16px);
}
.hero-metric-num { font-size: 1.25rem; font-weight: 800; color: var(--cyan); }
.hero-metric-lbl { font-size: 0.625rem; color: rgba(255,255,255,0.40); margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }

/* 3D Visual Box (CSS animated) */
.hero-visual {
  position: relative; height: 500px;
  border-radius: var(--radius-3xl);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  overflow: hidden; box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}
.hero-visual-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(34,211,238,0.12) 0%, transparent 65%);
  pointer-events: none;
}
/* Neural network animation */
.neural-canvas {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.neural-core {
  position: relative;
  width: 280px; height: 280px;
}
.neural-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(34,211,238,0.15);
  animation: neural-pulse 4s ease-in-out infinite;
}
.neural-ring:nth-child(2) { inset: 20px; animation-delay: 0.5s; animation-duration: 5s; }
.neural-ring:nth-child(3) { inset: 40px; animation-delay: 1s; animation-duration: 6s; }
.neural-ring:nth-child(4) { inset: 60px; animation-delay: 1.5s; animation-duration: 3.5s; border-color: rgba(34,211,238,0.25); }

.neural-center {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
}
.neural-orb {
  width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,0.4) 0%, rgba(34,211,238,0.1) 60%, transparent 100%);
  box-shadow: 0 0 40px rgba(34,211,238,0.3), 0 0 80px rgba(34,211,238,0.1);
  animation: neural-pulse 2s ease-in-out infinite;
}

/* Floating nodes */
.neural-node {
  position: absolute;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: float 4s ease-in-out infinite;
}
.neural-node::after {
  content: ''; position: absolute;
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--cyan); animation: ping 1.5s ease-in-out infinite;
}
.n1 { top: 15%; left: 20%; animation-delay: 0s; }
.n2 { top: 20%; right: 18%; animation-delay: 0.8s; }
.n3 { bottom: 25%; left: 15%; animation-delay: 1.6s; }
.n4 { bottom: 20%; right: 22%; animation-delay: 2.4s; }
.n5 { top: 50%; left: 5%; animation-delay: 0.4s; }
.n6 { top: 45%; right: 5%; animation-delay: 1.2s; }

/* SVG Connection lines */
.neural-lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  stroke: rgba(34,211,238,0.12); fill: none; stroke-width: 1;
}

.skull-container {
  position: relative; width: 220px; height: 300px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.skull-body {
  width: 160px; height: 180px; border-radius: 50% 50% 40% 40%;
  background: linear-gradient(135deg, rgba(34,211,238,0.18) 0%, rgba(37,99,235,0.12) 50%, rgba(34,211,238,0.08) 100%);
  border: 1px solid rgba(34,211,238,0.35);
  position: relative;
  box-shadow: 0 0 50px rgba(34,211,238,0.18), inset 0 0 40px rgba(34,211,238,0.08);
}
.skull-eye { position: absolute; top: 40%; border-radius: 50%; overflow: hidden; }
.skull-eye-left  { left: 20%; width: 38px; height: 30px; }
.skull-eye-right { right: 20%; width: 38px; height: 30px; }
.skull-eye::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(34,211,238,0.25);
  border: 1px solid rgba(34,211,238,0.45); border-radius: inherit;
  animation: pulse 2s ease-in-out infinite;
}
.spine-container {
  display: flex; flex-direction: column; align-items: center; gap: 3px; margin-top: 6px;
}
.spine-segment {
  height: 12px; border-radius: 4px;
  background: rgba(34,211,238,0.14);
  border: 1px solid rgba(34,211,238,0.28);
  position: relative; overflow: hidden;
}

.hero-card-float {
  position: absolute; backdrop-filter: blur(16px);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 1rem; pointer-events: none;
}
.hero-card-float.top-right {
  top: 1.5rem; right: 1.5rem; padding: 1rem; width: 13rem;
}
.hero-card-float .card-label { font-size: 0.625rem; color: var(--cyan); text-transform: uppercase; font-weight: 700; letter-spacing: 0.1em; }
.hero-card-float .card-val { font-size: 1rem; font-weight: 700; color: var(--text-white); margin-top: 0.25rem; }
.hero-card-progress { width: 100%; height: 4px; background: rgba(255,255,255,0.10); border-radius: 2px; margin-top: 0.5rem; overflow: hidden; }
.hero-card-progress-bar { width: 66%; height: 100%; background: var(--cyan); animation: pulse 2s ease-in-out infinite; }
.hero-card-float.bottom-right {
  bottom: 1rem; right: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.875rem; font-size: 0.6875rem; color: rgba(255,255,255,0.6);
}
.hero-card-float.bottom-right svg { color: var(--cyan); }

/* Scanline effect */
.scanline {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,0.3), transparent);
  animation: scanline 4s linear infinite; pointer-events: none;
}

/* ========= SPECIALTIES SECTION ========= */
.specialties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media(min-width:640px) { .specialties-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px){ .specialties-grid { grid-template-columns: repeat(4, 1fr); } }

.specialty-card {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 1.5rem; cursor: pointer;
}
.specialty-card h3 { font-size: 1.0625rem; font-weight: 700; transition: color 0.2s; }
.specialty-card:hover h3 { color: var(--cyan); }
.specialty-card p { font-size: 0.75rem; color: rgba(255,255,255,0.60); line-height: 1.6; }
.specialty-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; padding-top: 0.5rem; }
.specialty-tag {
  padding: 0.125rem 0.625rem; border-radius: 0.375rem;
  background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.10);
  font-size: 0.625rem; color: rgba(255,255,255,0.70);
}
.specialty-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.5rem; border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.75rem; font-weight: 600; color: var(--cyan);
}
.specialty-footer:hover { color: var(--cyan-light); }
.specialty-footer svg { transition: transform 0.2s; width: 1rem; height: 1rem; }
.specialty-card:hover .specialty-footer svg { transform: translateX(4px); }

/* ========= SYMPTOM GUIDANCE SECTION ========= */
.symptom-triage-card {
  max-width: 56rem; margin: 0 auto;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-3xl);
  padding: 2.5rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  display: flex; flex-direction: column; gap: 2rem;
}
.triage-header {
  display: flex; flex-direction: column; gap: 1rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.05);
}
@media(min-width:640px) {
  .triage-header { flex-direction: row; align-items: center; justify-content: space-between; }
}
.triage-header h3 { font-size: 1.0625rem; font-weight: 700; }
.triage-header p  { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }

.symptom-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem;
}
@media(min-width:640px) { .symptom-grid { grid-template-columns: repeat(3, 1fr); } }
@media(min-width:1024px){ .symptom-grid { grid-template-columns: repeat(5, 1fr); } }

.symptom-tile {
  padding: 0.875rem; border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.4);
  cursor: pointer; text-align: left;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 6rem; transition: all 0.2s;
  font-family: inherit;
  color: rgba(255,255,255,0.70);
}
.symptom-tile:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.20); }
.symptom-tile.active {
  background: rgba(34,211,238,0.15);
  border-color: var(--cyan);
  color: var(--text-white);
  box-shadow: 0 4px 20px rgba(34,211,238,0.15);
}
.symptom-tile-cat {
  font-size: 0.625rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--cyan);
  display: flex; align-items: center; justify-content: space-between;
}
.symptom-tile-cat .emergency-dot-sm {
  width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--red);
}
.symptom-tile-label { font-size: 0.75rem; font-weight: 600; line-height: 1.4; margin-top: 0.5rem; }

.triage-feedback {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-xl);
  display: flex; flex-direction: column; gap: 1rem;
  align-items: flex-start;
}
@media(min-width:640px){
  .triage-feedback { flex-direction: row; align-items: center; justify-content: space-between; }
}
.triage-feedback.emergency {
  background: rgba(248,113,113,0.10);
  border: 1px solid rgba(248,113,113,0.20);
}
.triage-feedback.normal {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
}
.triage-feedback-icon { display: flex; align-items: center; gap: 0.75rem; }
.triage-feedback-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.triage-feedback.emergency .triage-feedback-title { color: var(--red); }
.triage-feedback.normal .triage-feedback-title { color: var(--text-white); }
.triage-feedback-sub { font-size: 0.75rem; color: rgba(255,255,255,0.70); }
.triage-note {
  text-align: center; font-size: 0.75rem; color: var(--text-dim);
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}

/* ========= ANATOMY EXPLORER SECTION ========= */
.anatomy-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1.5rem; align-items: start;
}
@media(min-width:1024px){ .anatomy-grid { grid-template-columns: 7fr 5fr; } }

.anatomy-visual {
  height: min(70vh, 640px);
  min-height: 480px;
  position: relative;
  border-radius: var(--radius-3xl);
  border: 1px solid rgba(34,211,238,0.22);
  background:
    radial-gradient(circle at 50% 42%, rgba(34,211,238,0.16), transparent 52%),
    rgba(8, 16, 24, 0.92);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 0 80px rgba(34,211,238,0.06);
}
@media(min-width:1024px){
  .anatomy-visual {
    position: sticky;
    top: 5.5rem;
  }
}
.anatomy-control-hint {
  position: absolute; top: 1rem; left: 1rem; z-index: 20;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 0.75rem; background: rgba(0,0,0,0.72);
  border: 1px solid rgba(34,211,238,0.25);
  font-size: 0.75rem; color: rgba(255,255,255,0.80);
  backdrop-filter: blur(8px);
}
.anatomy-control-hint svg { color: var(--cyan); width: 0.875rem; height: 0.875rem; }
.anatomy-hotspot-pills {
  position: absolute; top: 1rem; right: 1rem; z-index: 20;
  display: flex; flex-wrap: wrap; gap: 0.375rem; max-width: 280px; justify-content: flex-end;
}
.hotspot-pill {
  padding: 0.35rem 0.8rem; border-radius: 0.75rem;
  font-size: 0.75rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s; backdrop-filter: blur(8px);
  border: 1px solid; font-family: inherit;
}
.hotspot-pill.active {
  background: var(--cyan); color: #000; border-color: var(--cyan-dark); font-weight: 700;
}
.hotspot-pill:not(.active) {
  background: rgba(0,0,0,0.65); border-color: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.78);
}
.hotspot-pill:not(.active):hover { border-color: rgba(34,211,238,0.45); color: var(--text-white); }

.anatomy-3d-scene {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.anatomy-glow {
  position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,0.28), transparent 70%);
  filter: blur(8px);
}
.anatomy-figure {
  position: relative; z-index: 2;
  width: min(280px, 70%);
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(34,211,238,0.45));
}
.anatomy-svg { width: 100%; height: auto; display: block; }
.orbit-line {
  position: absolute; border-radius: 50%;
  border: 1px dashed rgba(34,211,238,0.22);
  animation: spin 12s linear infinite;
}
.orbit-1 { width: 300px; height: 300px; top: 50%; left: 50%; margin: -150px 0 0 -150px; }
.orbit-2 { width: 380px; height: 240px; top: 50%; left: 50%; margin: -120px 0 0 -190px; animation-duration: 16s; animation-direction: reverse; }

.skull-node {
  position: absolute; width: 8px; height: 8px; z-index: 3;
  border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.skull-node::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--cyan); animation: ping 2s ease-in-out infinite;
}
.sn1 { top:18%; left:18%; animation: float 5s ease-in-out infinite; }
.sn2 { top:22%; right:16%; animation: float 6s ease-in-out infinite 1s; }
.sn3 { top:48%; left:10%; animation: float 4s ease-in-out infinite 0.5s; }
.sn4 { top:52%; right:12%; animation: float 7s ease-in-out infinite 1.5s; }
.sn5 { bottom:18%; left:28%; animation: float 5.5s ease-in-out infinite 2s; }

.anatomy-details {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-3xl);
  padding: 1.75rem; backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  min-height: 480px;
  max-height: min(70vh, 640px);
  overflow-y: auto;
}
.anatomy-panel { display: none; flex-direction: column; gap: 1.25rem; }
.anatomy-panel.is-active { display: flex; }
.anatomy-region-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cyan); }
.anatomy-region-name { font-size: 1.5rem; font-weight: 800; color: var(--text-white); margin-top: 0.25rem; }
.anatomy-region-sub  { font-size: 0.75rem; color: rgba(255,255,255,0.60); font-weight: 500; }
.anatomy-section-title { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.40); }
.anatomy-desc { font-size: 0.8125rem; color: rgba(255,255,255,0.70); line-height: 1.65; }
.anatomy-fn-list { display: flex; flex-direction: column; gap: 0.5rem; }
.anatomy-fn-item { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.75rem; color: rgba(255,255,255,0.70); }
.anatomy-fn-item svg { color: var(--cyan); flex-shrink: 0; margin-top: 1px; width: 0.875rem; height: 0.875rem; }
.anatomy-conditions { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.anatomy-cond-tag {
  padding: 0.25rem 0.625rem; border-radius: 0.375rem;
  background: rgba(0,0,0,0.40); border: 1px solid rgba(255,255,255,0.10);
  font-size: 0.75rem; color: var(--cyan-light); font-weight: 500;
}
.anatomy-diagnostic {
  padding: 0.875rem; border-radius: 0.75rem;
  background: rgba(0,0,0,0.40); border: 1px solid rgba(255,255,255,0.10);
}
.anatomy-diagnostic-title { font-size: 0.6875rem; font-weight: 700; color: rgba(255,255,255,0.60); text-transform: uppercase; letter-spacing: 0.05em; }
.anatomy-diagnostic-text { font-size: 0.75rem; color: rgba(255,255,255,0.50); margin-top: 0.25rem; line-height: 1.5; }

/* ========= BOOKING SECTION ========= */
.doctors-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media(min-width:768px) { .doctors-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px){ .doctors-grid { grid-template-columns: repeat(3, 1fr); } }

.doc-card { display: flex; flex-direction: column; justify-content: space-between; }
.doc-card-header { display: flex; align-items: flex-start; gap: 1rem; }
.doc-avatar-wrap { position: relative; flex-shrink: 0; }
.doc-avatar {
  width: 4rem; height: 4rem; border-radius: var(--radius-xl);
  object-fit: cover; border: 1px solid rgba(255,255,255,0.10);
  transition: border-color 0.3s;
}
.doc-card:hover .doc-avatar { border-color: var(--cyan); }
.doc-online-dot {
  position: absolute; bottom: -2px; right: -2px;
  width: 1rem; height: 1rem; border-radius: 50%;
  background: #10b981; border: 2px solid #000;
}
.doc-specialty-tag {
  display: inline-block; padding: 0.125rem 0.625rem;
  border-radius: 0.375rem;
  background: rgba(34,211,238,0.10); border: 1px solid rgba(34,211,238,0.20);
  color: var(--cyan); font-size: 0.625rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em;
}
.doc-name { font-size: 1rem; font-weight: 700; color: var(--text-white); transition: color 0.2s; margin-top: 0.25rem; }
.doc-card:hover .doc-name { color: var(--cyan); }
.doc-title-text { font-size: 0.75rem; color: var(--text-muted); }
.doc-stats {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0; border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.75rem; color: rgba(255,255,255,0.70);
}
.doc-rating { display: flex; align-items: center; gap: 0.25rem; color: var(--amber); font-weight: 600; }
.doc-rating svg { fill: var(--amber); }
.doc-fee { font-weight: 700; color: var(--cyan); }
.doc-bio { font-size: 0.75rem; color: rgba(255,255,255,0.60); line-height: 1.6; }
.doc-slots { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.doc-slot {
  padding: 0.125rem 0.625rem; border-radius: 0.375rem;
  background: rgba(0,0,0,0.40); border: 1px solid rgba(255,255,255,0.10);
  font-size: 0.6875rem; color: rgba(255,255,255,0.70);
}
.doc-slots-label {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.40); display: flex; align-items: center; gap: 0.25rem;
}
.doc-slots-label svg { color: var(--cyan); width: 0.75rem; height: 0.75rem; }
.doc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; padding-top: 0.5rem; }

/* ========= CONDITIONS SECTION ========= */
.conditions-controls { max-width: 56rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.40); width: 1.125rem; height: 1.125rem; }
.search-input {
  width: 100%; padding: 0.875rem 1rem 0.875rem 2.75rem;
  border-radius: var(--radius-2xl); border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05); font-size: 0.875rem; color: var(--text-white);
  backdrop-filter: blur(8px); transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--cyan); outline: none; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.filter-pill {
  padding: 0.375rem 0.875rem; border-radius: 0.75rem;
  font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
  border: 1px solid; font-family: inherit;
}
.filter-pill.active { background: var(--cyan); color: #000; border-color: var(--cyan-dark); }
.filter-pill:not(.active) { background: rgba(0,0,0,0.40); border-color: rgba(255,255,255,0.10); color: rgba(255,255,255,0.70); }
.filter-pill:not(.active):hover { border-color: rgba(255,255,255,0.20); }

.conditions-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  max-width: 72rem; margin: 2rem auto 0;
}
@media(min-width:768px){ .conditions-grid { grid-template-columns: repeat(2, 1fr); } }

.condition-card { transition: all 0.3s; }
.condition-card.expanded { border-color: var(--cyan) !important; box-shadow: 0 0 0 1px rgba(34,211,238,0.3), 0 8px 40px rgba(0,0,0,0.4); }
.cond-header { cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.cond-cat { display: inline-block; padding: 0.125rem 0.625rem; border-radius: 0.25rem;
  background: rgba(34,211,238,0.10); border: 1px solid rgba(34,211,238,0.20);
  color: var(--cyan); font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.cond-name { font-size: 1.0625rem; font-weight: 700; color: var(--text-white); margin-top: 0.25rem; transition: color 0.2s; }
.cond-header:hover .cond-name { color: var(--cyan); }
.cond-toggle {
  padding: 0.375rem; border-radius: 0.5rem;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.70); flex-shrink: 0; cursor: pointer; font-family: inherit;
}
.cond-toggle:hover { color: var(--text-white); background: rgba(255,255,255,0.10); }
.cond-summary { font-size: 0.75rem; color: rgba(255,255,255,0.60); line-height: 1.6; }
.cond-expanded {
  padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; flex-direction: column; gap: 1rem;
}
.cond-exp-title { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--cyan); }
.cond-exp-text { font-size: 0.75rem; color: rgba(255,255,255,0.70); line-height: 1.65; }
.cond-symptoms-wrap { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.cond-sym-tag { padding: 0.25rem 0.625rem; border-radius: 0.375rem;
  background: rgba(0,0,0,0.40); border: 1px solid rgba(255,255,255,0.10);
  font-size: 0.6875rem; color: rgba(255,255,255,0.70); }
.cond-when {
  padding: 0.875rem; border-radius: 0.75rem;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
}
.cond-when-title { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--cyan); }
.cond-when-text { font-size: 0.75rem; color: rgba(255,255,255,0.70); line-height: 1.5; margin-top: 0.25rem; }
.cond-treatment-list { display: flex; flex-direction: column; gap: 0.25rem; }
.cond-treatment-item { font-size: 0.75rem; color: rgba(255,255,255,0.70); padding-left: 1rem; position: relative; }
.cond-treatment-item::before { content: '•'; position: absolute; left: 0; color: var(--cyan); }

/* ========= TIMELINE SECTION ========= */
.timeline-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media(min-width:768px) { .timeline-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px){ .timeline-grid { grid-template-columns: repeat(4, 1fr); } }

.timeline-card {
  position: relative; display: flex; flex-direction: column; gap: 1rem;
}
.timeline-card-top { display: flex; align-items: center; justify-content: space-between; }
.timeline-num { font-size: 1.75rem; font-weight: 900; color: var(--cyan); }
.timeline-card h3 { font-size: 1.0625rem; font-weight: 700; transition: color 0.2s; }
.timeline-card:hover h3 { color: var(--cyan); }
.timeline-card p { font-size: 0.75rem; color: rgba(255,255,255,0.60); line-height: 1.6; }
.timeline-connector {
  display: none;
  position: absolute; top: 50%; right: -1rem;
  width: 2rem; height: 2px; background: rgba(34,211,238,0.25); z-index: 10;
}
@media(min-width:1024px){ .timeline-connector { display: block; } }
.timeline-connector-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--cyan); animation: ping 1.5s ease-in-out infinite;
  transform: translateY(-3px);
}

/* ========= DOCTORS SECTION ========= */
.doctor-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 2rem; }
.doctor-filter { padding: 0.375rem 0.875rem; border-radius: 0.75rem;
  font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
  border: 1px solid; font-family: inherit;
}
.doctor-filter.active { background: var(--cyan); color: #000; border-color: var(--cyan-dark); }
.doctor-filter:not(.active) { background: rgba(0,0,0,0.40); border-color: rgba(255,255,255,0.10); color: rgba(255,255,255,0.70); }
.doctor-filter:not(.active):hover { border-color: rgba(255,255,255,0.20); }

/* ========= EMERGENCY SECTION ========= */
.emergency-banner {
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.20);
  border-radius: var(--radius-3xl);
  padding: 3rem;
  display: flex; flex-direction: column; gap: 2rem; align-items: center;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
@media(min-width:768px){
  .emergency-banner { flex-direction: row; justify-content: space-between; }
}
.emergency-banner h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.emergency-badge {
  display: inline-block; padding: 0.25rem 1rem;
  border-radius: 9999px;
  background: rgba(248,113,113,0.20); border: 1px solid rgba(248,113,113,0.30);
  color: var(--red); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
}
.emergency-banner p { font-size: 0.875rem; color: rgba(255,255,255,0.70); line-height: 1.75; max-width: 36rem; }

/* ========= TRUST SECTION ========= */
.trust-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media(min-width:640px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px){ .trust-grid { grid-template-columns: repeat(3, 1fr); } }

/* ========= FOOTER ========= */
footer {
  background: var(--bg-base);
  border-top: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.50); font-size: 0.75rem;
  position: relative; overflow: hidden;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 2.5rem; padding: 4rem 0;
}
@media(min-width:768px)  { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
@media(min-width:1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; }
.footer-logo-icon {
  width: 2.25rem; height: 2.25rem; border-radius: 0.75rem;
  background: rgba(34,211,238,0.10); border: 1px solid rgba(34,211,238,0.20);
  display: flex; align-items: center; justify-content: center; color: var(--cyan);
}
.footer-logo-icon svg { width: 1.25rem; height: 1.25rem; }
.footer-logo span { font-size: 1.25rem; font-weight: 800; color: var(--text-white); letter-spacing: 0.05em; }
.footer-brand-desc { font-size: 0.75rem; color: rgba(255,255,255,0.60); line-height: 1.6; max-width: 22rem; }
.footer-col h4 { font-size: 0.75rem; font-weight: 700; color: var(--text-white); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a, .footer-col button {
  color: rgba(255,255,255,0.60); transition: color 0.2s;
  font-family: inherit; font-size: 0.75rem; background: none; border: none; cursor: pointer; padding: 0; text-align: left;
}
.footer-col a:hover, .footer-col button:hover { color: var(--cyan); }
.footer-col .red-link { color: var(--red); }
.footer-col .red-link:hover { color: #fca5a5; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.5rem; color: rgba(255,255,255,0.60); }
.footer-contact-item svg { color: var(--cyan); flex-shrink: 0; width: 0.875rem; height: 0.875rem; margin-top: 1px; }

.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1.5rem 0;
}
.disclaimer-box {
  padding: 1rem; border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
  font-size: 0.6875rem; color: rgba(255,255,255,0.60); line-height: 1.6;
  backdrop-filter: blur(8px);
}
.disclaimer-box strong { color: var(--cyan); display: block; margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-bottom {
  display: flex; flex-direction: column; gap: 0.5rem;
  align-items: center; justify-content: space-between;
  padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.6875rem; color: rgba(255,255,255,0.40);
}
@media(min-width:640px){ .footer-bottom { flex-direction: row; } }
.footer-bottom-links { display: flex; align-items: center; gap: 1rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.40); transition: color 0.2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.70); }

/* ========= MODALS ========= */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.80); backdrop-filter: blur(12px);
  display: none; align-items: center; justify-content: center;
  padding: 1rem; overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  position: relative; width: 100%; max-width: 48rem;
  background: var(--bg-base); border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-3xl); box-shadow: 0 25px 80px rgba(0,0,0,0.7);
  overflow: hidden; my: 2rem;
  animation: fadeInUp 0.2s ease;
}
.modal-box.modal-sm { max-width: 40rem; }
.modal-box.modal-emergency { border-color: rgba(248,113,113,0.30); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.05);
}
.modal-header-left { display: flex; align-items: center; gap: 0.75rem; }
.modal-header-icon {
  width: 2.25rem; height: 2.25rem; border-radius: 0.75rem;
  background: rgba(34,211,238,0.10); border: 1px solid rgba(34,211,238,0.20);
  display: flex; align-items: center; justify-content: center; color: var(--cyan);
}
.modal-header-icon svg { width: 1.125rem; height: 1.125rem; }
.modal-header h3 { font-size: 1.0625rem; font-weight: 700; }
.modal-header p  { font-size: 0.75rem; color: var(--text-muted); }
.modal-close {
  padding: 0.5rem; border-radius: 0.5rem;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.70); cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.modal-close:hover { background: rgba(255,255,255,0.10); color: var(--text-white); }
.modal-close svg { width: 1.125rem; height: 1.125rem; }

.modal-body {
  padding: 1.5rem;
  max-height: 75vh; overflow-y: auto;
}
.modal-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(5,5,10,0.80);
}

/* Step indicator */
.step-indicator { display: flex; align-items: center; gap: 0.5rem; }
.step-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: rgba(255,255,255,0.20); transition: all 0.2s;
}
.step-dot.active { background: var(--cyan); transform: scale(1.3); }
.step-dot.done  { background: rgba(34,211,238,0.50); }

/* Form elements */
.form-label { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.70); display: block; margin-bottom: 0.375rem; text-transform: uppercase; letter-spacing: 0.05em; }
.form-input {
  width: 100%; padding: 0.75rem 1rem;
  border-radius: 0.75rem; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(5,5,10,0.90); font-size: 0.8125rem; color: var(--text-white);
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--cyan); outline: none; }
.form-grid { display: grid; gap: 0.75rem; }
@media(min-width:640px){ .form-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.form-textarea { resize: none; }

/* Specialty pill buttons */
.spec-pill {
  padding: 0.375rem 0.75rem; border-radius: 0.75rem;
  font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
  border: 1px solid; font-family: inherit;
}
.spec-pill.active { background: var(--cyan); color: #000; border-color: var(--cyan-dark); }
.spec-pill:not(.active) { background: rgba(0,0,0,0.40); border-color: rgba(255,255,255,0.10); color: rgba(255,255,255,0.70); }

/* Doctor selection card in booking */
.doc-select-card {
  padding: 1rem; border-radius: 0.75rem; cursor: pointer;
  display: flex; align-items: flex-start; gap: 0.875rem;
  border: 1px solid; transition: all 0.2s;
}
.doc-select-card.selected {
  background: rgba(34,211,238,0.08); border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(34,211,238,0.10);
}
.doc-select-card:not(.selected) {
  background: rgba(20,20,30,0.60); border-color: rgba(255,255,255,0.10);
}
.doc-select-card:not(.selected):hover { border-color: rgba(255,255,255,0.20); }
.doc-select-avatar { width: 3.5rem; height: 3.5rem; border-radius: 0.75rem; object-fit: cover; border: 1px solid rgba(34,211,238,0.30); flex-shrink: 0; }
.doc-select-name { font-size: 0.8125rem; font-weight: 700; color: var(--text-white); }
.doc-select-title { font-size: 0.6875rem; color: rgba(255,255,255,0.50); }
.doc-select-fee { font-size: 0.75rem; font-weight: 800; color: var(--cyan); }
.doc-select-meta { font-size: 0.625rem; color: rgba(255,255,255,0.40); display: flex; align-items: center; gap: 0.75rem; margin-top: 0.25rem; }

/* Mode select cards */
.mode-card {
  padding: 0.875rem; border-radius: 0.75rem; cursor: pointer;
  display: flex; align-items: center; gap: 0.75rem;
  border: 1px solid; transition: all 0.2s; font-family: inherit;
  text-align: left; background: none;
}
.mode-card.active { background: rgba(34,211,238,0.08); border-color: var(--cyan); color: var(--text-white); }
.mode-card:not(.active) { background: rgba(20,20,30,0.60); border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.70); }
.mode-card svg { color: var(--cyan); width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

/* Time slot buttons */
.time-slot {
  padding: 0.625rem; border-radius: 0.75rem; text-align: center;
  font-size: 0.75rem; font-weight: 500; cursor: pointer;
  border: 1px solid; transition: all 0.2s; font-family: inherit; background: none;
}
.time-slot.active { background: var(--cyan); color: #000; border-color: var(--cyan-dark); font-weight: 700; }
.time-slot:not(.active) { background: rgba(20,20,30,0.60); border-color: rgba(255,255,255,0.10); color: rgba(255,255,255,0.70); }
.time-slot:not(.active):hover { border-color: rgba(255,255,255,0.20); }

/* Booking confirmation */
.booking-confirmed { text-align: center; padding: 1.5rem 0; display: flex; flex-direction: column; gap: 1.5rem; align-items: center; }
.confirmed-icon {
  width: 4rem; height: 4rem; border-radius: 50%;
  background: rgba(34,211,238,0.10); border: 2px solid var(--cyan);
  display: flex; align-items: center; justify-content: center; color: var(--cyan);
  box-shadow: 0 0 30px rgba(34,211,238,0.20);
}
.confirmed-icon svg { width: 2rem; height: 2rem; }
.booking-ref { display: inline-block; padding: 0.25rem 0.875rem;
  border-radius: 9999px; background: rgba(34,211,238,0.10);
  border: 1px solid rgba(34,211,238,0.30); color: var(--cyan-light); font-size: 0.75rem; font-weight: 600; }
.booking-summary {
  width: 100%; max-width: 28rem; padding: 1.25rem; border-radius: 0.875rem;
  background: rgba(5,5,10,0.90); border: 1px solid rgba(34,211,238,0.20); text-align: left;
}
.booking-summary-doc { display: flex; align-items: center; gap: 0.75rem; padding-bottom: 0.875rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.booking-summary-doc img { width: 3rem; height: 3rem; border-radius: 0.625rem; object-fit: cover; border: 1px solid rgba(34,211,238,0.30); }
.booking-summary-doc h5 { font-size: 0.875rem; font-weight: 700; }
.booking-summary-doc p  { font-size: 0.75rem; color: var(--cyan); font-weight: 500; }
.booking-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; margin-top: 0.875rem; font-size: 0.75rem; }
.booking-summary-grid span { color: rgba(255,255,255,0.40); display: block; }
.booking-summary-grid strong { color: rgba(255,255,255,0.85); }

/* Emergency modal */
.emergency-alert-box {
  padding: 1rem; border-radius: var(--radius-xl);
  background: rgba(248,113,113,0.10); border: 1px solid rgba(248,113,113,0.20);
}
.fast-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.fast-item { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.8125rem; color: rgba(255,255,255,0.80); }
.fast-dot { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--red); margin-top: 0.4rem; flex-shrink: 0; }
.other-symptoms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.other-sym { padding: 0.625rem; border-radius: 0.75rem;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
  font-size: 0.75rem; color: rgba(255,255,255,0.70); }
.emergency-call-box {
  padding: 1rem; border-radius: var(--radius-xl);
  background: rgba(248,113,113,0.18); border: 1px solid rgba(248,113,113,0.30);
  text-align: center; display: flex; flex-direction: column; gap: 0.75rem;
}
.emergency-call-title { font-size: 0.8125rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--red); }
.call-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 0.75rem;
  background: var(--red); color: #000; font-weight: 800; font-size: 0.875rem;
  transition: background 0.2s; text-decoration: none;
}
.call-btn:hover { background: #fca5a5; }
.call-btn svg { width: 1.125rem; height: 1.125rem; animation: float 1s ease-in-out infinite; }

/* Doctor Profile Modal */
.doc-profile-banner {
  height: 10rem; background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 1.5rem; display: flex; align-items: flex-end; position: relative;
}
.doc-profile-info { display: flex; align-items: center; gap: 1rem; transform: translateY(1.5rem); position: relative; z-index: 10; }
.doc-profile-img { width: 6rem; height: 6rem; border-radius: var(--radius-xl); object-fit: cover; border: 2px solid var(--cyan); box-shadow: 0 8px 30px rgba(0,0,0,0.5); }
.doc-profile-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; padding: 0.875rem; border-radius: var(--radius-xl); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10); text-align: center; }
.doc-profile-metric-val { font-size: 0.875rem; font-weight: 700; margin-top: 0.25rem; }
.doc-edu-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: rgba(255,255,255,0.70); }
.doc-edu-item svg { color: var(--cyan); flex-shrink: 0; width: 1rem; height: 1rem; }
.doc-lang-tag { padding: 0.25rem 0.5rem; border-radius: 0.5rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10); font-size: 0.75rem; color: rgba(255,255,255,0.70); }

/* Symptom Checker Modal */
.sc-symptom-list { display: grid; grid-template-columns: 1fr; gap: 0.625rem; }
@media(min-width:640px){ .sc-symptom-list { grid-template-columns: repeat(2, 1fr); } }
.sc-symptom-btn {
  padding: 0.75rem; border-radius: 0.75rem; border: 1px solid;
  text-align: left; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem;
  font-family: inherit; background: none;
}
.sc-symptom-btn.active { background: rgba(34,211,238,0.15); border-color: var(--cyan); color: var(--text-white); }
.sc-symptom-btn:not(.active) { background: rgba(0,0,0,0.40); border-color: rgba(255,255,255,0.10); color: rgba(255,255,255,0.70); }
.sc-symptom-btn:not(.active):hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.20); }
.sc-check-box {
  width: 1.25rem; height: 1.25rem; border-radius: 0.375rem; border: 1px solid rgba(255,255,255,0.20);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all 0.2s;
}
.sc-symptom-btn.active .sc-check-box { background: var(--cyan); border-color: var(--cyan-light); color: #000; }
.sc-check-box svg { width: 0.875rem; height: 0.875rem; }

.sc-option {
  width: 100%; padding: 0.875rem 1rem; border-radius: 0.75rem;
  border: 1px solid; text-align: left; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: space-between;
  font-family: inherit; font-size: 0.8125rem; font-weight: 600; background: none;
}
.sc-option.active { background: rgba(34,211,238,0.08); border-color: var(--cyan); color: var(--cyan-light); }
.sc-option:not(.active) { background: rgba(20,20,30,0.60); border-color: rgba(255,255,255,0.10); color: rgba(255,255,255,0.70); }
.sc-radio { width: 1rem; height: 1rem; border-radius: 50%; border: 1px solid rgba(255,255,255,0.30); transition: all 0.2s; }
.sc-option.active .sc-radio { background: var(--cyan); border-color: var(--cyan-light); }

.sc-severity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.sc-sev-card {
  padding: 1rem; border-radius: 0.75rem; border: 1px solid; cursor: pointer;
  text-align: left; transition: all 0.2s; display: flex; flex-direction: column; gap: 0.5rem;
  font-family: inherit; background: none;
}
.sc-sev-card.active { background: rgba(34,211,238,0.08); border-color: var(--cyan); color: var(--text-white); }
.sc-sev-card:not(.active) { background: rgba(20,20,30,0.60); border-color: rgba(255,255,255,0.10); color: rgba(255,255,255,0.70); }
.sc-sev-label { font-size: 0.875rem; font-weight: 700; color: var(--cyan-light); }
.sc-sev-desc  { font-size: 0.6875rem; color: rgba(255,255,255,0.50); line-height: 1.4; }

.sc-onset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* Guidance result */
.guidance-emergency-box {
  padding: 1.25rem; border-radius: var(--radius-xl);
  background: rgba(127,29,29,0.60); border: 1px solid rgba(220,38,38,0.50);
  display: flex; flex-direction: column; gap: 1rem;
}
.guidance-care-path {
  padding: 1rem; border-radius: 0.75rem;
  background: rgba(20,20,35,0.80); border: 1px solid rgba(34,211,238,0.25);
  display: flex; flex-direction: column; gap: 0.875rem;
}
.guidance-path-header { display: flex; align-items: center; justify-content: space-between; }
.guidance-urgency-badge { padding: 0.25rem 0.75rem; border-radius: 9999px;
  background: rgba(34,211,238,0.10); border: 1px solid rgba(34,211,238,0.30);
  color: var(--cyan-light); font-size: 0.75rem; font-weight: 500; }
.guidance-specialty { font-size: 0.75rem; color: rgba(255,255,255,0.50); }
.guidance-specialty strong { color: var(--cyan-light); }
.guidance-advice-box {
  padding: 1rem; border-radius: 0.75rem;
  background: rgba(5,5,10,0.70); border: 1px solid rgba(255,255,255,0.10);
}
.guidance-disclaimer {
  padding: 0.875rem; border-radius: 0.75rem;
  background: rgba(5,5,10,0.90); border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.6875rem; color: rgba(255,255,255,0.40); line-height: 1.6; font-style: italic;
}
.emergency-warn-banner {
  padding: 1rem 1.25rem;
  background: rgba(127,29,29,0.90); border-bottom: 1px solid rgba(200,20,20,0.40);
  display: flex; align-items: flex-start; gap: 0.75rem; color: #fecaca;
}
.emergency-warn-banner svg { color: #f87171; flex-shrink: 0; width: 1.25rem; height: 1.25rem; animation: pulse 2s ease-in-out infinite; }
.emergency-warn-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #fca5a5; }
.emergency-warn-text  { font-size: 0.75rem; color: #fecaca; line-height: 1.5; }

/* ========= RESPONSIVE FIXES ========= */
@media(max-width:640px){
  .hero-metrics { grid-template-columns: repeat(3, 1fr); }
  .hero-metric-num { font-size: 1rem; }
  .hero-metric-lbl { font-size: 0.5625rem; }
  .modal-body { max-height: 65vh; }
  .sc-severity-grid { grid-template-columns: 1fr; }
}

/* ========= INLINE SVG ICON STYLES ========= */
.icon { display: inline-block; vertical-align: middle; }
.icon svg { width: 1em; height: 1em; }

/* Dot pattern bg */
.dot-pattern {
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ========= CONTACT FORM ========= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; }
}
.contact-info-card { display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.contact-info-card h3 { font-size: 1.125rem; font-weight: 700; }
.contact-info-card > p { font-size: 0.8125rem; color: rgba(255,255,255,0.60); line-height: 1.65; }
.contact-info-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 0.5rem; }
.contact-info-list li { display: flex; align-items: flex-start; gap: 0.75rem; }
.contact-info-list strong { display: block; font-size: 0.75rem; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-info-list span { font-size: 0.875rem; color: rgba(255,255,255,0.75); }
.contact-form { padding: 1.5rem; }
.contact-form-status {
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
}
.contact-form-status.is-success {
  background: rgba(34,211,238,0.10);
  border: 1px solid rgba(34,211,238,0.30);
  color: var(--cyan-light);
}
.contact-form-status.is-error {
  background: rgba(248,113,113,0.12);
  border: 1px solid rgba(248,113,113,0.30);
  color: #fca5a5;
}
#contact-submit:disabled { opacity: 0.6; cursor: not-allowed; }
