/* ============================================================
   MEDISCAN AI — Design System
   ============================================================ */

:root {
  --bg: #050A14;
  --primary: #00F5FF;
  --secondary: #7B2FFF;
  --accent: #FF2D6B;
  --white: #FFFFFF;
  --grey: #8892A4;
  --card-bg: #0D1526;
  --border: rgba(0, 245, 255, 0.15);
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
  cursor: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

::selection {
  background: var(--primary);
  color: var(--bg);
}

/* ============================================================ CURSOR */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, opacity 0.3s;
  box-shadow: 0 0 10px var(--primary);
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease), width 0.25s, height 0.25s, opacity 0.3s;
  opacity: 0.6;
}

body.hovering .cursor-dot {
  transform: translate(-50%, -50%) scale(0);
}

body.hovering .cursor-ring {
  width: 56px;
  height: 56px;
  opacity: 1;
}

/* ============================================================ AURORA */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: auroraMove 15s ease-in-out infinite alternate;
}

.aurora-1 {
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation-duration: 18s;
}

.aurora-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  top: 30%;
  right: -15%;
  animation-duration: 22s;
  animation-delay: -5s;
}

.aurora-3 {
  width: 500px;
  height: 400px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  bottom: -10%;
  left: 40%;
  animation-duration: 25s;
  animation-delay: -10s;
}

@keyframes auroraMove {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, 30px) scale(1.08);
  }

  100% {
    transform: translate(-30px, 50px) scale(0.95);
  }
}

/* Grid Overlay */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Particle Canvas */
.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ============================================================ TYPOGRAPHY */
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--white);
}

p {
  color: var(--grey);
}

.cyan-text {
  color: var(--primary);
}

em {
  font-style: normal;
  color: var(--primary);
}

/* ============================================================ NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 5%;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}

.navbar.scrolled {
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  flex-shrink: 0;
}

.logo-svg {
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {

  0%,
  100% {
    filter: drop-shadow(0 0 4px var(--primary));
  }

  50% {
    filter: drop-shadow(0 0 12px var(--primary));
  }
}

.logo-path {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  animation: logoDraw 1.5s ease forwards 0.3s;
}

@keyframes logoDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0 auto;
}

.nav-link {
  text-decoration: none;
  color: var(--grey);
  font-size: 0.9rem;
  font-family: var(--font-body);
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--primary);
  transition: width 0.3s var(--ease);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.btn-emergency {
  background: none;
  border: none;
  cursor: none;
  color: var(--accent);
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 600;
  animation: emergencyPulse 2s ease-in-out infinite;
  padding: 0.4rem 0.8rem;
}

@keyframes emergencyPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.scroll-progress {
  height: 2px;
  background: var(--primary);
  width: 0%;
  transition: width 0.1s;
  box-shadow: 0 0 8px var(--primary);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(5, 10, 20, 0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 2rem 5%;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s, opacity 0.4s;
  pointer-events: none;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu .nav-link {
  font-size: 1.2rem;
  color: var(--white);
}

/* ============================================================ BUTTONS */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--primary);
  color: var(--bg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 8px;
  cursor: none;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(0, 245, 255, 0.6);
  transform: scale(1.03) translateX(2px);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  background: conic-gradient(var(--primary), var(--secondary), var(--primary));
  z-index: -1;
  opacity: 0;
  animation: borderSpin 1.5s linear infinite;
  transition: opacity 0.3s;
}

.btn-primary:hover::after {
  opacity: 1;
}

@keyframes borderSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Ripple */
.btn-primary .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 245, 255, 0.4);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.btn-outline {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: none;
  text-decoration: none;
  transition: all 0.3s var(--ease);
}

.btn-outline:hover {
  background: rgba(0, 245, 255, 0.1);
}

.btn-glow {
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.4);
}

.small-btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* ============================================================ SECTION COMMON */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-header {
  margin-bottom: 4rem;
}

.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

h2 {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1.1;
}

.btn-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* ============================================================ SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================ HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 5% 80px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 4rem;
  align-items: center;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.blink-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: blink 1.2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--primary);
  flex-shrink: 0;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-heading {
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 1.0;
  margin-bottom: 1.5rem;
}

.word-anim {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: wordUp 0.7s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes wordUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-sub {
  font-size: 18px;
  max-width: 480px;
  color: var(--grey);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

.stat-label {
  font-size: 12px;
  color: var(--grey);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
}

/* Hero right visual */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual {
  position: relative;
  width: 340px;
  height: 340px;
}

.medical-cross {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cross-h {
  position: absolute;
  width: 200px;
  height: 24px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  border-radius: 12px;
  opacity: 0.7;
  box-shadow: 0 0 30px var(--primary);
}

.cross-v {
  position: absolute;
  width: 24px;
  height: 200px;
  background: linear-gradient(180deg, transparent, var(--primary), transparent);
  border-radius: 12px;
  opacity: 0.7;
  box-shadow: 0 0 30px var(--primary);
}

.cross-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 245, 255, 0.2);
  animation: ringPulse 3s ease-in-out infinite;
}

.ring-1 {
  width: 220px;
  height: 220px;
  animation-delay: 0s;
}

.ring-2 {
  width: 280px;
  height: 280px;
  animation-delay: 0.8s;
}

.ring-3 {
  width: 340px;
  height: 340px;
  animation-delay: 1.6s;
}

@keyframes ringPulse {

  0%,
  100% {
    border-color: rgba(0, 245, 255, 0.15);
  }

  50% {
    border-color: rgba(0, 245, 255, 0.4);
  }
}

.ecg-line {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
}

.ecg-path {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: ecgDraw 2.5s ease-in-out infinite;
}

@keyframes ecgDraw {
  0% {
    stroke-dashoffset: 800;
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

.float-card {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--primary);
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.1);
  white-space: nowrap;
  font-size: 13px;
}

.fc-1 {
  top: 20px;
  right: -40px;
  animation: floatY 4s ease-in-out infinite;
}

.fc-2 {
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
  animation: floatY 5s ease-in-out infinite 1s;
}

.fc-3 {
  bottom: 40px;
  right: -30px;
  animation: floatY 4.5s ease-in-out infinite 2s;
}

@keyframes floatY {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.fc-2 {
  animation: floatY2 5s ease-in-out infinite 1s;
}

@keyframes floatY2 {

  0%,
  100% {
    transform: translateY(-50%);
  }

  50% {
    transform: translateY(calc(-50% - 10px));
  }
}

.fc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fc-dot.green {
  background: #00FF88;
  box-shadow: 0 0 8px #00FF88;
}

.fc-label {
  color: var(--grey);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fc-val {
  color: var(--white);
  font-weight: 600;
  font-family: var(--font-head);
}

/* ============================================================ FEATURES */
.features {
  padding: 120px 0;
}

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  cursor: none;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 60px rgba(0, 245, 255, 0.12), 0 0 0 1px rgba(0, 245, 255, 0.2);
}

.feature-card:hover .feature-icon svg {
  transform: scale(1.1);
}

.feature-icon {
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  transition: transform 0.35s var(--ease);
}

.feature-label {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================================ HOW IT WORKS */
.how-it-works {
  padding: 100px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
}

.step-card:hover {
  border-color: rgba(0, 245, 255, 0.4);
}

.step-num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 14px;
}

.step-connector {
  width: 60px;
  height: 1px;
  background: var(--border);
  position: relative;
}

.step-connector::after {
  content: '→';
  position: absolute;
  right: -10px;
  top: -10px;
  color: var(--primary);
  font-size: 0.8rem;
}

/* ============================================================ STATS */
.stats-section {
  padding: 100px 0;
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
}

.big-stat {
  text-align: center;
  flex: 1;
  padding: 3rem;
}

.big-num {
  font-family: var(--font-head);
  font-size: clamp(52px, 7vw, 80px);
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 1rem;
}

.accent-red {
  color: var(--accent);
  text-shadow: 0 0 40px rgba(255, 45, 107, 0.3);
}

.accent-cyan {
  color: var(--primary);
  text-shadow: 0 0 40px rgba(0, 245, 255, 0.3);
}

.accent-violet {
  color: var(--secondary);
  text-shadow: 0 0 40px rgba(123, 47, 255, 0.3);
}

.big-label {
  color: var(--grey);
  font-size: 14px;
  max-width: 200px;
  margin: 0 auto;
}

.big-stat-divider {
  width: 1px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================================ SYMPTOM CHECKER */
.symptom-checker {
  padding: 120px 0;
}

.checker-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

.step-indicators {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.step-ind {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--grey);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey);
  transition: all 0.3s;
}

.step-ind.active .step-circle {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--bg);
}

.step-ind.done .step-circle {
  border-color: var(--primary);
  color: var(--primary);
}

.step-ind span {
  font-size: 12px;
  color: var(--grey);
  white-space: nowrap;
}

.step-ind.active span {
  color: var(--white);
}

.step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.step-content {
  display: none;
}

.step-content.active {
  display: block;
}

.step-content h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.body-map-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.body-svg {
  width: 180px;
  max-width: 100%;
}

.body-part {
  cursor: none;
  transition: fill 0.2s, stroke 0.2s;
}

.body-part:hover {
  fill: rgba(0, 245, 255, 0.1);
  stroke: var(--primary);
}

.body-part.selected {
  fill: rgba(0, 245, 255, 0.2);
  stroke: var(--primary);
  stroke-width: 2.5;
}

.selected-hint {
  font-size: 12px;
  color: var(--grey);
  text-align: center;
}

.selected-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid var(--primary);
  border-radius: 20px;
  font-size: 12px;
  color: var(--primary);
  margin: 3px;
}

.textarea-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.symptom-textarea {
  width: 100%;
  min-height: 140px;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 1rem 3rem 1rem 1rem;
  resize: vertical;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.symptom-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.15);
}

.symptom-textarea::placeholder {
  color: rgba(136, 146, 164, 0.5);
}

.mic-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: none;
  border: none;
  cursor: none;
  padding: 6px;
  color: var(--grey);
  transition: color 0.3s;
}

.mic-btn:hover,
.mic-btn.recording {
  color: var(--primary);
}

.mic-btn.recording svg {
  animation: micPulse 1s ease-in-out infinite;
}

@keyframes micPulse {

  0%,
  100% {
    filter: drop-shadow(0 0 4px var(--primary));
  }

  50% {
    filter: drop-shadow(0 0 12px var(--primary));
  }
}

.pill-group-label {
  font-size: 12px;
  color: var(--grey);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.pill-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid var(--border);
  color: var(--grey);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: none;
  transition: all 0.25s;
}

.pill-btn:hover {
  border-color: var(--primary);
  color: var(--white);
}

.pill-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg);
  font-weight: 600;
}

/* Results Panel */
.results-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color 0.5s;
}

.results-panel.loaded {
  border-color: rgba(0, 245, 255, 0.4);
  box-shadow: 0 0 40px rgba(0, 245, 255, 0.1);
}

.results-empty {
  text-align: center;
}

.results-empty p {
  color: var(--grey);
  font-size: 14px;
}

.empty-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* Loading */
.hb-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hb-loader svg {
  width: 260px;
}

.hb-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: hbDraw 1.5s ease-in-out infinite;
}

@keyframes hbDraw {
  0% {
    stroke-dashoffset: 600;
  }

  50% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: -600;
  }
}

.analyzing-text {
  font-size: 15px;
  color: var(--primary);
  font-family: var(--font-head);
  letter-spacing: 2px;
}

/* Risk Meter */
.risk-meter-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.risk-meter {
  text-align: center;
  position: relative;
  width: 200px;
}

.gauge-svg {
  width: 200px;
  height: 110px;
}

.risk-score {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.risk-label {
  font-size: 12px;
  color: var(--grey);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* AI Response */
.ai-response {
  font-size: 14px;
  line-height: 1.8;
  color: var(--grey);
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-bottom: 1.5rem;
}

.ai-response h4 {
  color: var(--white);
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
}

.ai-response .condition-item {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.6rem;
  border-left: 2px solid var(--primary);
}

.condition-prob {
  color: var(--primary);
  font-weight: 600;
}

.urgency-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-left: 8px;
}

.urgency-low {
  background: rgba(0, 255, 136, 0.15);
  color: #00FF88;
}

.urgency-medium {
  background: rgba(255, 184, 0, 0.15);
  color: #FFB800;
}

.urgency-high {
  background: rgba(255, 45, 107, 0.15);
  color: var(--accent);
}

.result-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================ PHOTO SCANNER */
.photo-scanner {
  padding: 120px 0;
}

.scan-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.scan-tab {
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--grey);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: none;
  transition: all 0.25s;
}

.scan-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg);
  font-weight: 600;
}

.scan-tab:hover:not(.active) {
  border-color: var(--primary);
  color: var(--white);
}

.scanner-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.upload-zone {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
}

.upload-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 2px dashed rgba(0, 245, 255, 0.3);
  animation: dashRotate 10s linear infinite;
}

@keyframes dashRotate {
  to {
    transform: rotate(360deg);
  }
}

.upload-inner {
  text-align: center;
  padding: 3rem;
  z-index: 1;
  position: relative;
}

.upload-icon {
  margin-bottom: 1.5rem;
  animation: uploadPulse 2.5s ease-in-out infinite;
}

@keyframes uploadPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

.upload-text {
  font-size: 15px;
  color: var(--grey);
  margin-bottom: 0.5rem;
}

.upload-hint {
  font-size: 12px;
  color: rgba(136, 146, 164, 0.5);
}

.scan-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
}

.scan-preview {
  max-width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  box-shadow: 0 0 20px var(--primary);
  animation: scanSweep 2s ease-in-out infinite;
  top: 20%;
}

@keyframes scanSweep {
  0% {
    top: 10%;
  }

  100% {
    top: 90%;
  }
}

.scan-progress-wrap {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.scan-progress-bar {
  flex: 1;
  height: 3px;
  background: rgba(0, 245, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.scan-progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary);
  animation: progressFill 2.5s ease forwards;
  box-shadow: 0 0 10px var(--primary);
}

@keyframes progressFill {
  from {
    width: 0%;
  }

  to {
    width: 90%;
  }
}

#scanProgressText {
  font-size: 12px;
  color: var(--primary);
  white-space: nowrap;
}

.photo-results {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.photo-results-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.photo-results-empty p {
  color: var(--grey);
  text-align: center;
}

.photo-finding {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transform: translateX(40px);
  opacity: 0;
  animation: slideInRight 0.5s var(--ease) forwards;
}

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

.finding-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.finding-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.finding-conf {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.finding-desc {
  color: var(--grey);
  font-size: 13px;
  margin-top: 4px;
}

/* API Key note */
.api-note {
  margin-top: 3rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}

.api-key-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.api-key-wrap label {
  font-size: 13px;
  color: var(--grey);
  white-space: nowrap;
}

.api-key-input {
  flex: 1;
  min-width: 200px;
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.api-key-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.1);
}

.api-hint {
  font-size: 11px;
  color: rgba(136, 146, 164, 0.5);
}

/* ============================================================ VITALS */
.vitals {
  padding: 120px 0;
}

.vitals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.vital-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.vital-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 245, 255, 0.3);
  box-shadow: 0 10px 40px rgba(0, 245, 255, 0.08);
}

.vital-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.vital-icon {
  font-size: 1.5rem;
}

.vital-status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 20px;
}

.kpi-normal {
  background: rgba(0, 255, 136, 0.12);
  color: #00FF88;
}

.kpi-warning {
  background: rgba(255, 184, 0, 0.12);
  color: #FFB800;
}

.kpi-critical {
  background: rgba(255, 45, 107, 0.12);
  color: var(--accent);
}

.vital-value {
  margin-bottom: 0.25rem;
}

.kpi-num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
}

.kpi-unit {
  font-size: 13px;
  color: var(--primary);
  margin-left: 4px;
}

.vital-label {
  font-size: 12px;
  color: var(--grey);
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.vital-trend {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.trend-up {
  color: var(--accent);
}

.trend-down {
  color: #00FF88;
}

.trend-stable {
  color: var(--grey);
}

.sparkline {
  display: block;
}

.add-vital-card {
  cursor: none;
  background: rgba(0, 245, 255, 0.03);
  border-style: dashed;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-vital-card:hover {
  background: rgba(0, 245, 255, 0.07);
  border-color: rgba(0, 245, 255, 0.4);
}

.add-vital-inner {
  text-align: center;
}

.add-vital-icon {
  font-size: 2.5rem;
  color: var(--primary);
  opacity: 0.6;
}

.add-vital-text {
  font-size: 13px;
  color: var(--grey);
  margin-top: 0.5rem;
}

.main-chart-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.chart-header h3 {
  font-size: 1.1rem;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 12px;
  color: var(--grey);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.legend-dot.cyan {
  background: var(--primary);
}

.legend-dot.violet {
  background: var(--secondary);
}

/* ============================================================ FOOTER */
.footer {
  padding: 80px 0 0;
  background: #080F1E;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: 4rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--grey);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--grey);
  font-size: 14px;
  transition: color 0.25s;
}

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

.footer-cta {
  display: flex;
  align-items: center;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.footer-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  margin-bottom: 1rem;
  border-radius: 2px;
}

.ecg-footer {
  margin-bottom: 1rem;
  overflow: hidden;
}

.ecg-footer-svg {
  width: 100%;
}

.ecg-footer-path {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: ecgFooter 4s linear infinite;
}

@keyframes ecgFooter {
  to {
    stroke-dashoffset: -2000;
  }
}

.footer-disclaimer {
  font-size: 11px;
  color: rgba(136, 146, 164, 0.5);
  text-align: center;
}

/* ============================================================ EMERGENCY */
.emergency-fab {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 800;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 45, 107, 0.15);
  border: 2px solid var(--accent);
  font-size: 1.4rem;
  cursor: none;
  animation: fabPulse 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(255, 45, 107, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fabPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 45, 107, 0.5);
  }

  70% {
    box-shadow: 0 0 0 16px rgba(255, 45, 107, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 45, 107, 0);
  }
}

.emergency-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.emergency-modal.open {
  opacity: 1;
  pointer-events: all;
}

.emergency-content {
  background: #0D1526;
  border: 1px solid var(--accent);
  border-radius: 24px 24px 0 0;
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  position: relative;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
  box-shadow: 0 -20px 60px rgba(255, 45, 107, 0.15);
}

.emergency-modal.open .emergency-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--grey);
  font-size: 1.2rem;
  cursor: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.emergency-title {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.emergency-content>p {
  color: var(--grey);
  font-size: 14px;
  margin-bottom: 1.5rem;
}

.emergency-btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn-emergency-big {
  display: block;
  padding: 1rem;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  text-align: center;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: box-shadow 0.3s;
}

.btn-emergency-big:hover {
  box-shadow: 0 0 30px rgba(255, 45, 107, 0.4);
}

.btn-emergency-outline {
  display: block;
  padding: 0.85rem;
  background: transparent;
  color: var(--white);
  text-decoration: none;
  text-align: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.95rem;
  cursor: none;
  transition: background 0.2s;
}

.btn-emergency-outline:hover {
  background: rgba(255, 255, 255, 0.05);
}

.first-aid-tips h4 {
  font-size: 0.85rem;
  color: var(--grey);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.first-aid-tips ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.first-aid-tips li {
  font-size: 13px;
  color: var(--grey);
}

/* ============================================================ TOAST */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--card-bg);
  border-left: 3px solid var(--primary);
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  color: var(--white);
  font-size: 13px;
  max-width: 280px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  animation: toastIn 0.35s var(--ease) forwards;
}

.toast.success {
  border-left-color: #00FF88;
}

.toast.error {
  border-left-color: var(--accent);
}

@keyframes toastIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastOut {
  to {
    transform: translateX(110%);
    opacity: 0;
  }
}

/* ============================================================ VITAL MODAL */
.vital-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.vital-modal.open {
  opacity: 1;
  pointer-events: all;
}

.vital-modal-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  width: 90%;
  max-width: 400px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vital-modal-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.vital-select,
.vital-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}

.vital-select:focus,
.vital-input:focus {
  border-color: var(--primary);
}

.vital-select option {
  background: var(--card-bg);
}

/* ============================================================ DRUG CHECKER */
.drug-checker-section {
  padding: 120px 0;
}

.drug-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.drug-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.drug-field-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-bottom: 0.75rem;
}

.drug-input-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.drug-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.drug-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.1);
}

.drug-list {
  min-height: 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-content: flex-start;
}

.drug-empty-hint {
  color: rgba(136, 146, 164, 0.4);
  font-size: 13px;
  align-self: center;
}

.drug-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 50px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  animation: tagIn 0.3s ease forwards;
}

@keyframes tagIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.drug-tag-remove {
  cursor: none;
  color: var(--grey);
  font-size: 14px;
  line-height: 1;
  transition: color 0.2s;
}

.drug-tag-remove:hover {
  color: var(--accent);
}

.drug-actions {
  display: flex;
  gap: 1rem;
}

.drug-results {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.drug-results-empty {
  text-align: center;
}

.drug-results-empty p {
  color: var(--grey);
  font-size: 14px;
  margin-top: 1rem;
}

.drug-interaction {
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  border-left: 3px solid;
  animation: slideInRight 0.4s ease forwards;
}

.drug-interaction.safe {
  background: rgba(0, 255, 136, 0.05);
  border-left-color: #00FF88;
}

.drug-interaction.caution {
  background: rgba(255, 184, 0, 0.05);
  border-left-color: #FFB800;
}

.drug-interaction.danger {
  background: rgba(255, 45, 107, 0.07);
  border-left-color: var(--accent);
}

.drug-int-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.drug-int-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.drug-int-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
}

.badge-safe {
  background: rgba(0, 255, 136, 0.15);
  color: #00FF88;
}

.badge-caution {
  background: rgba(255, 184, 0, 0.15);
  color: #FFB800;
}

.badge-danger {
  background: rgba(255, 45, 107, 0.15);
  color: var(--accent);
}

.drug-int-desc {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.6;
}

/* ============================================================ MENTAL HEALTH */
.mental-health-section {
  padding: 120px 0;
}

.mh-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.mh-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mh-intro p {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.7;
}

.mh-intro strong {
  color: var(--white);
}

.mh-question {
  margin-bottom: 1.5rem;
}

.mh-q-text {
  font-size: 14px;
  color: var(--white);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.mh-options {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.mh-opt {
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid var(--border);
  color: var(--grey);
  cursor: none;
  transition: all 0.25s;
}

.mh-opt:hover {
  border-color: var(--primary);
  color: var(--white);
}

.mh-opt.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg);
  font-weight: 600;
}

.mh-mood-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mood-btns {
  display: flex;
  gap: 0.75rem;
}

.mood-btn {
  font-size: 1.8rem;
  background: none;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  cursor: none;
  transition: all 0.25s;
  line-height: 1;
}

.mood-btn:hover {
  border-color: var(--primary);
  transform: scale(1.15);
}

.mood-btn.selected {
  border-color: var(--primary);
  background: rgba(0, 245, 255, 0.1);
  transform: scale(1.15);
}

.mh-results {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mh-results-empty {
  text-align: center;
}

.mh-results-empty p {
  color: var(--grey);
  font-size: 14px;
  margin-top: 1rem;
}

.mh-score-display {
  text-align: center;
  margin-bottom: 1.5rem;
}

.mh-score-num {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.mh-score-max {
  font-size: 1.2rem;
  color: var(--grey);
}

.mh-score-label {
  font-size: 13px;
  color: var(--grey);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.mh-severity-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  margin: 1rem 0;
}

.mh-severity-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 1.2s ease;
}

.mh-advice {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.8;
}

.mh-advice h4 {
  color: var(--white);
  font-size: 1rem;
  margin: 1rem 0 0.5rem;
}

.mh-advice a {
  color: var(--primary);
  text-decoration: none;
}

.mood-history {
  margin-top: 3rem;
}

.mood-history h4 {
  font-size: 0.85rem;
  color: var(--grey);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.mood-dots {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mood-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ============================================================ FIND DOCTORS */
.find-doctors-section {
  padding: 120px 0;
}

.fd-search-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.fd-row {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.fd-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 180px;
}

.fd-field label {
  font-size: 11px;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

.fd-input,
.fd-select {
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  -webkit-appearance: none;
  appearance: none;
}

.fd-input:focus,
.fd-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.1);
}

.fd-select option {
  background: var(--card-bg);
}

.fd-search-btn {
  white-space: nowrap;
  align-self: flex-end;
}

.fd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.fd-chip {
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid var(--border);
  color: var(--grey);
  font-size: 14px;
  cursor: none;
  transition: all 0.25s;
  font-family: var(--font-body);
}

.fd-chip:hover {
  border-color: var(--primary);
  color: var(--white);
  background: rgba(0, 245, 255, 0.05);
}

.fd-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.fd-option-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.3s, transform 0.3s;
  animation: slideInRight 0.4s ease forwards;
}

.fd-option-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.fd-opt-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.fd-opt-info {
  flex: 1;
}

.fd-opt-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.fd-opt-desc {
  font-size: 12px;
  color: var(--grey);
}

.fd-result-label {
  text-align: center;
  padding: 1rem;
  font-size: 15px;
  color: var(--primary);
  background: rgba(0, 245, 255, 0.05);
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-top: 1rem;
}

@media (max-width: 768px) {

  .drug-layout,
  .mh-layout {
    grid-template-columns: 1fr;
  }

  .fd-options {
    grid-template-columns: 1fr;
  }

  .fd-row {
    flex-direction: column;
  }
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vitals-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .checker-layout,
  .scanner-layout {
    grid-template-columns: 1fr;
  }

  .fc-1,
  .fc-2,
  .fc-3 {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-right {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .nav-right .nav-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-connector {
    display: none;
  }

  .stats-row {
    flex-direction: column;
  }

  .big-stat-divider {
    width: 80px;
    height: 1px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .vitals-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-btns {
    flex-direction: column;
  }
}