/* ═══════════════════════════════════════════════════════════════════
   DR. INDRANI MONDAL HIRA — HAEMATOLOGY & HEMATO-ONCOLOGY SPA
   Premium Dark Medical Science Aesthetic
   ═══════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* ── DESIGN TOKENS ─────────────────────────────────────────────── */
:root {
  --bg: #05080D;
  --bg-navy: #08121E;
  --bg-mid: #0D1826;
  --crimson: #A71930;
  --plasma: #E14455;
  --white: #F5F7F9;
  --steel: #8996A5;
  --violet: #7558FF;
  --border: rgba(255, 255, 255, 0.07);
  --border-red: rgba(167, 25, 48, 0.3);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-hover: rgba(255, 255, 255, 0.06);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Manrope', 'Inter', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --nav-h: 80px;
  --gradient-primary: linear-gradient(135deg, #0db5c3, #a95cf0);
}

html[data-theme="light"] {
  --bg: #F4F6F9;
  --bg-navy: #FFFFFF;
  --bg-mid: #EAEFF5;
  --crimson: #D91A38;
  --plasma: #C0122C;
  --white: #0F172A;
  --steel: #475569;
  --violet: #4F46E5;
  --border: rgba(0, 0, 0, 0.08);
  --border-red: rgba(217, 26, 56, 0.25);
  --glass: rgba(255, 255, 255, 0.85);
  --glass-hover: rgba(255, 255, 255, 0.95);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--plasma);
  outline-offset: 3px;
}

/* ── SCROLLBAR ──────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--crimson);
  border-radius: 3px;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────────── */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}

.section-title em {
  font-style: italic;
  color: var(--plasma);
}

.section-body {
  font-size: 1.05rem;
  color: var(--steel);
  max-width: 56ch;
  line-height: 1.75;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plasma);
  margin-bottom: 1rem;
  display: block;
}

.text-crimson {
  color: var(--plasma);
}

/* ── LAYOUT ─────────────────────────────────────────────────────── */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  position: relative;
  padding: 4.5rem 0;
  overflow: hidden;
}

@media (max-width: 768px) {
  .section {
    padding: 2.25rem 0;
  }
}

.section-dark {
  background: var(--bg);
}

.section-mid {
  background: var(--bg-navy);
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header .section-body {
  margin: 1.5rem auto 0;
  text-align: center;
}

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  background: var(--crimson);
  color: #FFFFFF !important;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 50px;
  border: 1px solid transparent;
  transition: background 0.25s, box-shadow 0.25s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-primary,
.btn-primary:visited,
.btn-primary:hover,
.btn-primary:active {
  color: #FFFFFF !important;
}

.btn-primary svg {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  background: var(--plasma);
  box-shadow: 0 8px 32px rgba(225, 68, 85, 0.35);
  transform: translateY(-1px);
}

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

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  background: transparent;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.2s;
}

.btn-outline:hover {
  border-color: var(--plasma);
  color: var(--plasma);
  background: rgba(225, 68, 85, 0.06);
  transform: translateY(-1px);
}

/* ── REVEAL ANIMATIONS ──────────────────────────────────────────── */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-item:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal-item:nth-child(3) {
  transition-delay: 0.2s;
}

.reveal-item:nth-child(4) {
  transition-delay: 0.3s;
}

.reveal-item:nth-child(5) {
  transition-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}

#site-header.scrolled {
  background: rgba(5, 8, 13, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 2rem;
  max-width: 1440px;
  margin: 0 auto;
}

.nav-logo,
.logo {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.75rem !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
}

.logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--plasma);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-left: auto;
  margin-right: 1.5rem;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #FFFFFF;
  transition: color 0.2s;
  position: relative;
}

.nav-link.active,
.nav-link:hover {
  color: var(--plasma) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--plasma);
  transition: width 0.25s var(--ease-out);
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.2s, color 0.3s;
  position: relative;
  flex-shrink: 0;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--plasma);
  color: var(--plasma);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* SUN & MOON ICON TOGGLE VISIBILITY & COLORS */
.theme-toggle svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
}

html:not([data-theme="light"]) .sun-icon {
  display: block !important;
  color: #F59E0B !important;
  stroke: #F59E0B !important;
}

html:not([data-theme="light"]) .moon-icon {
  display: none !important;
}

html[data-theme="light"] .sun-icon {
  display: block !important;
  color: #D97706 !important;
  stroke: #D97706 !important;
}

html[data-theme="light"] .moon-icon {
  display: none !important;
}

.nav-cta {
  font-size: 0.82rem;
  padding: 0.65rem 1.3rem;
}


.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s;
}

#site-header:not(.scrolled) .nav-toggle span {
  background: #FFFFFF !important;
}

#site-header.scrolled .nav-toggle span {
  background: var(--white);
}

html[data-theme="light"] #site-header.scrolled .nav-toggle span {
  background: #0F172A !important;
}

html[data-theme="light"] #site-header.scrolled .nav-toggle:hover span {
  background: #D91A38 !important;
}

.nav-mobile-menu {
  display: none;
  background: rgba(5, 8, 13, 0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 2rem;
}

.nav-mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-mobile-menu .btn-primary {
  margin-top: 0.5rem;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg-video,
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center right, transparent 0%, rgba(8, 18, 32, 0.9) 100%);
}

#bloodstream-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 4rem) 2rem 4rem;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}

.hero-text {
  max-width: 700px;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--plasma);
  margin-bottom: 1.5rem;
  display: block;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-body {
  font-size: 1.1rem;
  color: #CBD5E1;
  line-height: 1.7;
  max-width: 50ch;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-doctor {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 2.5rem;
  max-width: fit-content;
}

.doctor-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  color: #E2B13C;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.doctor-title {
  font-size: 0.88rem;
  color: var(--white);
  opacity: 0.95;
}

.doctor-creds {
  font-size: 0.85rem;
  font-weight: 500;
  color: #E2E8F0;
  letter-spacing: 0.02em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Trust Bar — Floating Glass Card with Crisp Crimson Borders */
.trust-bar {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1320px;
  width: calc(100% - 4rem);
  margin: 2.5rem auto 3rem;
  border: 1.5px solid rgba(255, 59, 86, 0.35);
  border-radius: 20px;
  background: rgba(8, 18, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 0 30px rgba(255, 59, 86, 0.08);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.trust-bar:hover {
  border-color: rgba(255, 59, 86, 0.6);
  box-shadow: 0 20px 50px rgba(217, 26, 56, 0.25), inset 0 0 40px rgba(255, 59, 86, 0.12);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.6rem 2rem;
  border-right: 1.5px solid rgba(255, 59, 86, 0.2);
  transition: background 0.3s;
}

.trust-item:last-child {
  border-right: none;
}

.trust-item:hover {
  background: rgba(255, 59, 86, 0.08);
}

.trust-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.trust-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
  stroke-width: 1.5px;
}

.trust-item div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.trust-item strong {
  font-size: 0.8rem;
  font-weight: 700;
  color: #FFFFFF !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trust-item span {
  font-size: 0.78rem;
  color: #94A3B8 !important;
  font-weight: 400;
  line-height: 1.35;
}

/* Responsive adjustments for Trust Bar */
@media (max-width: 1024px) {
  .trust-bar {
    grid-template-columns: repeat(2, 1fr);
    width: calc(100% - 2rem);
  }

  .trust-item:nth-child(2) {
    border-right: none;
  }

  .trust-item:nth-child(1),
  .trust-item:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 640px) {
  .trust-bar {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 1.5rem;
  }

  .trust-item:last-child {
    border-bottom: none;
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  right: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--plasma), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel);
  writing-mode: vertical-rl;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION 02 — BLOOD CANCER
   ═══════════════════════════════════════════════════════════════════ */
.section-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('assets/blood_cell_hero.png');
  background-size: cover;
  background-position: center;
  opacity: 0.04;
  z-index: 0;
}

#blood-cancer .container {
  position: relative;
  z-index: 1;
}

.cell-journey {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 2.5rem;
}

@media (min-width: 900px) {
  .cell-journey {
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
  }
}

/* 3D Visual Cell Container Frame */
.cell-visual-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  min-height: 360px;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(167, 25, 48, 0.18) 0%, rgba(8, 18, 30, 0.95) 75%);
  border: 1.5px solid rgba(255, 59, 86, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 0 60px rgba(167, 25, 48, 0.25);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.cell-visual-container:hover {
  border-color: rgba(255, 59, 86, 0.7);
  box-shadow: 0 24px 60px rgba(217, 26, 56, 0.35);
}

.cell-3d-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 24px;
  opacity: 0.85;
  filter: drop-shadow(0 12px 32px rgba(217, 26, 56, 0.45));
  transition: opacity 0.4s ease, transform 0.6s var(--ease-out);
}

.cell-visual-container:hover .cell-3d-img {
  transform: scale(1.04);
}

#cell-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Floating Status Badge Inside Cell Frame */
.cell-visual-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.35rem;
  background: rgba(8, 18, 30, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF3B56;
  box-shadow: 0 0 10px #FF3B56;
  animation: pulseDot 2s infinite ease-in-out;
  flex-shrink: 0;
}

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

#cell-stage-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Stages List Rules */
.cell-stages {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cell-stage {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  background: rgba(8, 18, 30, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  opacity: 0.75;
  transition: all 0.35s var(--ease-out);
  cursor: pointer;
}

.cell-stage.active {
  opacity: 1;
  background: rgba(167, 25, 48, 0.15);
  border: 2px solid #FF3B56;
  box-shadow: 0 8px 30px rgba(255, 59, 86, 0.25);
  transform: translateX(6px);
}

.cell-stage:hover:not(.active) {
  opacity: 0.95;
  border-color: rgba(255, 255, 255, 0.25);
}

.stage-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.stage-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 12px rgba(167, 25, 48, 0.5);
  flex-shrink: 0;
  margin-top: 4px;
}

.stage-line {
  width: 1px;
  flex: 1;
  min-height: 50px;
  background: linear-gradient(to bottom, var(--crimson), transparent);
  margin-top: 6px;
}

.stage-content h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin: 0.2rem 0 0.5rem;
}

.stage-content p {
  font-size: 0.9rem;
  color: var(--steel);
  line-height: 1.65;
}

.stage-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  background: rgba(137, 150, 165, 0.15);
  color: var(--steel);
}

.stage-tag.mutation {
  background: rgba(117, 88, 255, 0.15);
  color: var(--violet);
}

.stage-tag.abnormal {
  background: rgba(167, 25, 48, 0.15);
  color: var(--plasma);
}

.stage-tag.disease {
  background: rgba(167, 25, 48, 0.25);
  color: var(--plasma);
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION 03 — EXPERTISE CARDS
   ═══════════════════════════════════════════════════════════════════ */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* EXPERTISE CARDS — FULL BACKGROUND IMAGE WITH GRADIENT OVERLAY */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.expertise-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  background: #05080D;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
  cursor: pointer;
}

/* Background Image & Gradient Overlay */
.card-visual-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.card-visual-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 12, 22, 0.98) 0%,
    rgba(6, 12, 22, 0.85) 40%,
    rgba(6, 12, 22, 0.35) 70%,
    rgba(6, 12, 22, 0.05) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.expertise-card:hover .card-img {
  transform: scale(1.08);
}

.card-anim-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Card Content Floating On Top of Dark Gradient Overlay */
.card-content {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  gap: 0.25rem 0.75rem;
  width: 100%;
  margin-top: auto;
}

.card-content h3 {
  grid-column: 1 / -1;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.card-sub {
  grid-column: 1;
  font-size: 0.82rem;
  color: #CBD5E1 !important;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 0;
  display: block;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.card-footer {
  grid-column: 2;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  margin-top: 0;
}

.card-circle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(8, 16, 28, 0.6);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Card 1: Leukemia (Crimson/Red theme) */
.expertise-card:nth-child(1) {
  border: 1.5px solid rgba(225, 68, 85, 0.6) !important;
  box-shadow: 0 8px 30px rgba(225, 68, 85, 0.15);
}

.expertise-card:nth-child(1):hover {
  border-color: #FF3B56 !important;
  box-shadow: 0 20px 48px rgba(225, 68, 85, 0.4);
  transform: translateY(-6px);
}

.expertise-card:nth-child(1) .card-circle-btn {
  border-color: rgba(225, 68, 85, 0.6);
  color: #FF4D6D;
}

.expertise-card:nth-child(1):hover .card-circle-btn {
  background: #D91A38;
  border-color: #D91A38;
  color: #FFFFFF;
}

/* Card 2: Lymphoma (Purple/Violet theme) */
.expertise-card:nth-child(2) {
  border: 1.5px solid rgba(147, 51, 234, 0.6) !important;
  box-shadow: 0 8px 30px rgba(147, 51, 234, 0.15);
}

.expertise-card:nth-child(2):hover {
  border-color: #A855F7 !important;
  box-shadow: 0 20px 48px rgba(147, 51, 234, 0.4);
  transform: translateY(-6px);
}

.expertise-card:nth-child(2) .card-circle-btn {
  border-color: rgba(147, 51, 234, 0.6);
  color: #A855F7;
}

.expertise-card:nth-child(2):hover .card-circle-btn {
  background: #9333EA;
  border-color: #9333EA;
  color: #FFFFFF;
}

/* Card 3: Multiple Myeloma (Cyan/Teal theme) */
.expertise-card:nth-child(3) {
  border: 1.5px solid rgba(6, 182, 212, 0.6) !important;
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.15);
}

.expertise-card:nth-child(3):hover {
  border-color: #06B6D4 !important;
  box-shadow: 0 20px 48px rgba(6, 182, 212, 0.4);
  transform: translateY(-6px);
}

.expertise-card:nth-child(3) .card-circle-btn {
  border-color: rgba(6, 182, 212, 0.6);
  color: #06B6D4;
}

.expertise-card:nth-child(3):hover .card-circle-btn {
  background: #0891B2;
  border-color: #0891B2;
  color: #FFFFFF;
}

/* Card 4: Bone Marrow (Gold/Amber theme) */
.expertise-card:nth-child(4) {
  border: 1.5px solid rgba(245, 158, 11, 0.6) !important;
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.15);
}

.expertise-card:nth-child(4):hover {
  border-color: #F59E0B !important;
  box-shadow: 0 20px 48px rgba(245, 158, 11, 0.4);
  transform: translateY(-6px);
}

.expertise-card:nth-child(4) .card-circle-btn {
  border-color: rgba(245, 158, 11, 0.6);
  color: #F59E0B;
}

.expertise-card:nth-child(4):hover .card-circle-btn {
  background: #D97706;
  border-color: #D97706;
  color: #FFFFFF;
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION 04 — BONE MARROW
   ═══════════════════════════════════════════════════════════════════ */
.marrow-section {
  overflow: hidden;
}

.marrow-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.marrow-visual {
  position: relative;
}

.bone-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.bone-img {
  width: 100%;
  height: auto;
  display: block;
}

.bone-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--bg) 100%);
}

.marrow-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hematopoiesis-tree {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 1.5rem;
  background: rgba(8, 18, 30, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.tree-root-node {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.node-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.node-dot.root {
  background: var(--white);
}

.node-dot.rbc {
  background: var(--plasma);
  box-shadow: 0 0 8px rgba(225, 68, 85, 0.5);
}

.node-dot.wbc {
  background: #88CFFF;
  box-shadow: 0 0 8px rgba(136, 207, 255, 0.4);
}

.node-dot.plt {
  background: #FFD166;
  box-shadow: 0 0 8px rgba(255, 209, 102, 0.4);
}

.tree-connector {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin-left: 6px;
  font-weight: 700;
  color: var(--steel);
  transition: color 0.4s;
}

.pathway-stage.active .pathway-num {
  color: var(--white);
}

.pathway-content h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.pathway-content p {
  font-size: 0.88rem;
  color: var(--steel);
  line-height: 1.65;
  max-width: 60ch;
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION 03 — TREATMENT MODALITIES (FULL-HEIGHT BACKGROUND CARDS)
   ═══════════════════════════════════════════════════════════════════ */
.treatments-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.treatment-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 380px;
  background: var(--bg-navy);
  border: 1.5px solid var(--border);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
}

.treatment-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.treatment-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 12, 22, 0.98) 0%,
    rgba(6, 12, 22, 0.85) 40%,
    rgba(6, 12, 22, 0.35) 70%,
    rgba(6, 12, 22, 0.05) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.treatment-visual .card-img {
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.treatment-card:hover .card-img {
  transform: scale(1.08);
}

.treatment-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Card Body Floating On Top of Dark Gradient Overlay */
.treatment-body {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  gap: 0.25rem 0.75rem;
  width: 100%;
  margin-top: auto;
}

.treatment-body h3 {
  grid-column: 1 / -1;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.treatment-body p {
  grid-column: 1;
  font-size: 0.82rem;
  color: #CBD5E1 !important;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.treatment-card .card-footer {
  grid-column: 2;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  margin-top: 0;
}

.treatment-card .card-circle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(8, 16, 28, 0.6);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Card 1: Chemotherapy (Red theme) */
.treatment-card:nth-child(1) {
  border: 1px solid rgba(225, 68, 85, 0.4);
}

.treatment-card:nth-child(1):hover {
  border-color: rgba(225, 68, 85, 0.9);
  box-shadow: 0 20px 48px rgba(225, 68, 85, 0.3);
  transform: translateY(-6px);
}

/* Card 1: Chemotherapy (Red theme) */
.treatment-card:nth-child(1) {
  border: 1.5px solid rgba(225, 68, 85, 0.6) !important;
  box-shadow: 0 8px 30px rgba(225, 68, 85, 0.15);
}

.treatment-card:nth-child(1):hover {
  border-color: #FF3B56 !important;
  box-shadow: 0 20px 48px rgba(225, 68, 85, 0.4);
  transform: translateY(-6px);
}

.treatment-card:nth-child(1) .card-circle-btn {
  border-color: rgba(225, 68, 85, 0.6);
  color: #FF4D6D;
}

.treatment-card:nth-child(1):hover .card-circle-btn {
  background: #D91A38;
  border-color: #D91A38;
  color: #FFFFFF;
}

/* Card 2: Targeted Therapy (Teal theme) */
.treatment-card:nth-child(2) {
  border: 1.5px solid rgba(20, 184, 166, 0.6) !important;
  box-shadow: 0 8px 30px rgba(20, 184, 166, 0.15);
}

.treatment-card:nth-child(2):hover {
  border-color: #14B8A6 !important;
  box-shadow: 0 20px 48px rgba(20, 184, 166, 0.4);
  transform: translateY(-6px);
}

.treatment-card:nth-child(2) .card-circle-btn {
  border-color: rgba(20, 184, 166, 0.6);
  color: #14B8A6;
}

.treatment-card:nth-child(2):hover .card-circle-btn {
  background: #0D9488;
  border-color: #0D9488;
  color: #FFFFFF;
}

/* Card 3: Immunotherapy (Indigo theme) */
.treatment-card:nth-child(3) {
  border: 1.5px solid rgba(99, 102, 241, 0.6) !important;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

.treatment-card:nth-child(3):hover {
  border-color: #6366F1 !important;
  box-shadow: 0 20px 48px rgba(99, 102, 241, 0.4);
  transform: translateY(-6px);
}

.treatment-card:nth-child(3) .card-circle-btn {
  border-color: rgba(99, 102, 241, 0.6);
  color: #6366F1;
}

.treatment-card:nth-child(3):hover .card-circle-btn {
  background: #4F46E5;
  border-color: #4F46E5;
  color: #FFFFFF;
}

/* Card 4: Stem Cell Transplant (Amber/Gold theme) */
.treatment-card:nth-child(4) {
  border: 1.5px solid rgba(245, 158, 11, 0.6) !important;
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.15);
}

.treatment-card:nth-child(4):hover {
  border-color: #F59E0B !important;
  box-shadow: 0 20px 48px rgba(245, 158, 11, 0.4);
  transform: translateY(-6px);
}

.treatment-card:nth-child(4) .card-circle-btn {
  border-color: rgba(245, 158, 11, 0.6);
  color: #F59E0B;
}

.treatment-card:nth-child(4):hover .card-circle-btn {
  background: #D97706;
  border-color: #D97706;
  color: #FFFFFF;
}

.treatment-card:nth-child(4):hover .card-circle-btn {
  background: #3B82F6;
  border-color: #3B82F6;
  color: #FFFFFF;
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION 07 — PRECISION MEDICINE
   ═══════════════════════════════════════════════════════════════════ */
.precision-section {
  overflow: hidden;
}

.precision-dna-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.dna-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
}

.dna-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg) 40%, rgba(5, 8, 13, 0.7) 100%);
}

.precision-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.precision-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.precision-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.precision-step {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.5rem;
  border-radius: 12px;
  background: rgba(8, 18, 30, 0.5);
  border: 1px solid var(--border);
  transition: border-color 0.3s, background 0.3s;
}

.precision-step:hover {
  border-color: rgba(117, 88, 255, 0.3);
  background: rgba(117, 88, 255, 0.05);
}

.ps-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--violet);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.precision-step strong {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
  display: block;
  margin-bottom: 0.3rem;
}

.precision-step p {
  font-size: 0.82rem;
  color: var(--steel);
  line-height: 1.55;
}

.precision-connector {
  width: 1px;
  height: 8px;
  background: var(--border);
  margin-left: calc(1.5rem + 0.6rem);
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION 08 — DOCTOR PROFILE
   ═══════════════════════════════════════════════════════════════════ */
/* SECTION 08 — DOCTOR PROFILE (STYLED IN SECTION 04 BELOW) */

/* ═══════════════════════════════════════════════════════════════════
   SECTION 09 — RESEARCH
   ═══════════════════════════════════════════════════════════════════ */
.publications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.pub-card {
  padding: 2rem;
  background: rgba(8, 18, 30, 0.75);
  border: 1.5px solid rgba(255, 59, 86, 0.35);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), inset 0 0 20px rgba(255, 59, 86, 0.05);
  transition: border-color 0.35s, transform 0.35s var(--ease-out), box-shadow 0.35s;
  cursor: pointer;
}

.pub-card:hover {
  border-color: rgba(255, 59, 86, 0.7);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(217, 26, 56, 0.25), inset 0 0 30px rgba(255, 59, 86, 0.1);
}

.pub-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--violet);
  background: rgba(117, 88, 255, 0.1);
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 1rem;
}

.pub-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.pub-card p {
  font-size: 0.85rem;
  color: var(--steel);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.pub-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.pub-area {
  font-size: 0.75rem;
  color: var(--plasma);
  font-weight: 500;
}

.pub-year {
  font-size: 0.75rem;
  color: var(--steel);
}

.section-cta {
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION 10 — PATIENT RESOURCES
   ═══════════════════════════════════════════════════════════════════ */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.resource-card {
  padding: 1.85rem;
  background: rgba(8, 18, 30, 0.75);
  border: 1.5px solid rgba(255, 59, 86, 0.35);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), inset 0 0 20px rgba(255, 59, 86, 0.05);
  transition: border-color 0.35s, background 0.35s, transform 0.35s var(--ease-out), box-shadow 0.35s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.resource-card:hover {
  border-color: rgba(255, 59, 86, 0.7);
  background: rgba(8, 18, 30, 0.88);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(217, 26, 56, 0.25), inset 0 0 30px rgba(255, 59, 86, 0.1);
}

.resource-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resource-icon svg {
  width: 20px;
  height: 20px;
  color: var(--plasma);
}

.resource-card h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

.resource-card p {
  font-size: 0.8rem;
  color: var(--steel);
  line-height: 1.6;
  flex: 1;
}

.resource-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--plasma);
  margin-top: auto;
  transition: color 0.2s;
}

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

/* ═══════════════════════════════════════════════════════════════════
   FINAL CTA
   ═══════════════════════════════════════════════════════════════════ */
.cta-section {
  text-align: center;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

#cta-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.cta-blood-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--crimson);
  margin: 0 auto 2rem;
  box-shadow: 0 0 24px var(--crimson);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 24px var(--crimson);
  }

  50% {
    transform: scale(1.3);
    box-shadow: 0 0 40px rgba(167, 25, 48, 0.6);
  }
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.cta-body {
  font-size: 1.05rem;
  color: var(--steel);
  max-width: 55ch;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════════ */
.contact-section {
  background: var(--bg-navy);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--crimson);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.contact-item span {
  font-size: 0.82rem;
  color: var(--steel);
  line-height: 1.6;
}

/* FORM */
/* FORM */
.contact-form {
  background: rgba(8, 18, 30, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.form-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #CBD5E1;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: #FFFFFF;
  outline: none;
  transition: all 0.25s var(--ease-out);
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(203, 213, 225, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #FF3B56;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 16px rgba(255, 59, 86, 0.25);
}

.form-group select option {
  background: #08121E;
  color: #FFFFFF;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 0.95rem;
  border-radius: 50px;
}

.form-disclaimer {
  font-size: 0.78rem;
  color: #94A3B8;
  line-height: 1.5;
  text-align: center;
  margin-top: 0.25rem;
}

.form-response-msg {
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  display: none;
}

.form-response-msg.success {
  display: block;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10B981;
}

.form-response-msg.error {
  display: block;
  background: rgba(217, 26, 56, 0.12);
  border: 1px solid rgba(217, 26, 56, 0.3);
  color: #FF3B56;
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════════
   SECTION 11 — SITE FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.site-footer {
  background: rgba(4, 9, 16, 0.95);
  border-top: 1.5px solid rgba(255, 255, 255, 0.08);
  padding: 4.5rem 0 0;
  position: relative;
  overflow: hidden;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 900px) {
  .footer-container {
    grid-template-columns: 1.1fr 2fr;
    gap: 4rem;
  }
}

.footer-brand {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.footer-brand .logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin-top: 2px;
  filter: drop-shadow(0 4px 12px rgba(217, 26, 56, 0.4));
}

.footer-brand div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-brand strong {
  font-size: 0.98rem;
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footer-brand span {
  font-size: 0.82rem;
  color: #94A3B8;
  line-height: 1.5;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 600px) {
  .footer-nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-col strong {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
}

.footer-col a {
  font-size: 0.88rem;
  color: #94A3B8;
  transition: all 0.25s var(--ease-out);
  display: inline-block;
}

.footer-col a:hover {
  color: #FF3B56;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.75rem 2rem;
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-copy {
  font-size: 0.85rem;
  color: #94A3B8;
}

.footer-credit {
  font-size: 0.85rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.heart-icon {
  display: inline-block;
  animation: pulseHeart 1.5s infinite ease-in-out;
  vertical-align: middle;
}

@keyframes pulseHeart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

.credit-link {
  color: #FF3B56;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.credit-link:hover {
  color: #FF8597;
  text-decoration: underline;
}

/* Light Mode Footer Base Theme */
html[data-theme="light"] .site-footer {
  background: #0F172A !important;
}

html[data-theme="light"] .footer-brand strong,
html[data-theme="light"] .footer-col strong {
  color: #FFFFFF !important;
}

html[data-theme="light"] .footer-brand span,
html[data-theme="light"] .footer-col a,
html[data-theme="light"] .footer-copy,
html[data-theme="light"] .footer-credit {
  color: #94A3B8 !important;
}

html[data-theme="light"] .footer-col a:hover {
  color: #FF3B56 !important;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 900px) {

  .nav-links,
  .nav-cta,
  .nav-actions .lang-selector {
    display: none !important;
  }

  .nav-toggle {
    display: flex;
  }

  /* Icon-only Auth Button on Mobile Header */
  .btn-nav-auth {
    padding: 0 !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  .btn-nav-auth .auth-btn-label {
    display: none !important;
  }

  .btn-nav-auth svg {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
  }

  .nav-mobile-menu.open {
    display: block;
  }

  .cell-journey {
    grid-template-columns: 1fr;
  }

  .cell-canvas-wrap {
    height: 320px;
  }

  .marrow-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .precision-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .doctor-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

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

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

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

@media (max-width: 640px) {
  .section {
    padding: 2.25rem 0;
  }

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

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

  .trust-bar {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .portrait-placeholder {
    max-width: 100%;
  }

  .pathway-line {
    left: 20px;
  }

  .pathway-node {
    width: 40px;
    height: 40px;
  }

  .pathway-num {
    font-size: 0.7rem;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   PRECISE HEADER CONTRAST ENGINE (UNSCROLLED VS SCROLLED, LIGHT VS DARK)
   ═══════════════════════════════════════════════════════════════════ */

/* 1. UNSCROLLED HEADER (OVER HERO DARK VIDEO/IMAGE) — ALWAYS BRIGHT WHITE TEXT & LOGO */
#site-header:not(.scrolled) .logo-name,
#site-header:not(.scrolled) .nav-link,
#site-header:not(.scrolled) .btn-nav-auth,
#site-header:not(.scrolled) .auth-btn-label {
  color: #FFFFFF !important;
  font-weight: 700 !important;
}

#site-header:not(.scrolled) .logo-sub {
  color: #FF3B56 !important;
  font-weight: 700 !important;
}

#site-header:not(.scrolled) .nav-link:hover {
  color: #FF8597 !important;
}

#site-header:not(.scrolled) .theme-toggle {
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

/* 2. SCROLLED HEADER IN DARK MODE — PURE WHITE & CORAL OVER DARK OBSIDIAN */
html:not([data-theme="light"]) #site-header.scrolled .logo-name,
html:not([data-theme="light"]) #site-header.scrolled .nav-link {
  color: #FFFFFF !important;
  font-weight: 700 !important;
}

html:not([data-theme="light"]) #site-header.scrolled .logo-sub {
  color: #FF3B56 !important;
}

html:not([data-theme="light"]) #site-header.scrolled .theme-toggle {
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

/* 3. SCROLLED HEADER IN LIGHT MODE — CRISP DARK NAVY OVER LIGHT GREY/WHITE */
html[data-theme="light"] #site-header.scrolled {
  background: rgba(244, 247, 251, 0.98) !important;
  box-shadow: 0 4px 20px rgba(8, 18, 32, 0.08) !important;
  border-bottom: 1px solid rgba(8, 18, 32, 0.12) !important;
}

html[data-theme="light"] #site-header.scrolled .logo-name,
html[data-theme="light"] #site-header.scrolled .nav-link {
  color: #081220 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] #site-header.scrolled .logo-sub {
  color: #D91A38 !important;
  font-weight: 700 !important;
}

html[data-theme="light"] #site-header.scrolled .nav-link:hover {
  color: #D91A38 !important;
}

html[data-theme="light"] #site-header.scrolled .theme-toggle {
  color: #081220 !important;
  border-color: rgba(8, 18, 32, 0.25) !important;
  background: rgba(8, 18, 32, 0.05) !important;
}

/* MOBILE TOGGLE & DRAWER CONTRAST */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex !important;
  }
  .nav-actions .theme-toggle,
  #theme-toggle {
    display: none !important;
  }
}

html[data-theme="light"] .nav-mobile-menu {
  background: #FFFFFF !important;
  border-top-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15) !important;
}

html[data-theme="light"] .nav-mobile-menu .nav-link,
html[data-theme="light"] .nav-mobile-menu .nav-link span,
html[data-theme="light"] .nav-mobile-menu .nav-arrow {
  color: #0F172A !important;
}

html[data-theme="light"] .nav-mobile-menu .nav-link:hover,
html[data-theme="light"] .nav-mobile-menu .nav-link:hover span {
  color: #D91A38 !important;
}

/* ── MOBILE DRAWER LANGUAGE SELECTOR ──────────────────────────── */
.mobile-lang-item {
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  width: 100%;
}

.mobile-lang-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F5F7F9;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
}

html[data-theme="light"] .mobile-lang-toggle {
  color: #0F172A !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  background: #F8FAFC !important;
}

/* ── MOBILE DRAWER THEME TOGGLE BUTTON ────────────────────────── */
.mobile-theme-item {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

.mobile-theme-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F5F7F9;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.mobile-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 59, 86, 0.4);
}

.mobile-theme-icon-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  background: rgba(255, 59, 86, 0.15);
  border: 1px solid rgba(255, 59, 86, 0.3);
  color: #FF3B56;
  font-size: 0.8rem;
  font-weight: 600;
}

.mobile-theme-icon-wrap svg {
  display: block;
  flex-shrink: 0;
}

/* Light Mode Mobile Theme Toggle */
html[data-theme="light"] .mobile-theme-toggle {
  color: #0F172A !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  background: #F8FAFC !important;
}

html[data-theme="light"] .mobile-theme-icon-wrap {
  background: rgba(217, 26, 56, 0.08) !important;
  border: 1px solid rgba(217, 26, 56, 0.25) !important;
  color: #D91A38 !important;
}

html[data-theme="light"] #theme-status-text {
  color: #D91A38 !important;
}

/* LIGHT MODE HERO & TOP NAV CONTRAST OVER DARK CANVAS/VIDEO BG */
html[data-theme="light"] #site-header:not(.scrolled) .logo-name,
html[data-theme="light"] #site-header:not(.scrolled) .nav-links .nav-link {
  color: #FFFFFF !important;
}

html[data-theme="light"] #site-header:not(.scrolled) .logo-sub {
  color: #FF4D6D !important;
}

html[data-theme="light"] #site-header:not(.scrolled) .theme-toggle {
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="light"] .hero-eyebrow {
  color: #FF4D6D !important;
}

html[data-theme="light"] .hero-title {
  color: #FFFFFF !important;
}

html[data-theme="light"] .hero-title .text-crimson {
  color: #FF3B56 !important;
}

html[data-theme="light"] .hero-body {
  color: #F1F5F9 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="light"] .doctor-name {
  color: #E2B13C !important;
}

html[data-theme="light"] .doctor-title {
  color: #FFFFFF !important;
  opacity: 0.95 !important;
}

html[data-theme="light"] .doctor-creds {
  color: #F8FAFC !important;
  font-weight: 500 !important;
}

html[data-theme="light"] .hero-ctas .btn-outline {
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

html[data-theme="light"] .hero-ctas .btn-outline:hover {
  background: rgba(255, 59, 86, 0.15) !important;
  border-color: #FF3B56 !important;
  color: #FF3B56 !important;
}

html[data-theme="light"] .trust-bar {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(217, 26, 56, 0.25) !important;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .trust-item {
  border-right: 1.5px solid rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .trust-item:last-child {
  border-right: none !important;
}

html[data-theme="light"] .trust-item strong {
  color: #0F172A !important;
}

html[data-theme="light"] .trust-item span {
  color: #475569 !important;
}

html[data-theme="light"] .trust-icon-box {
  background: rgba(217, 26, 56, 0.06) !important;
  border: 1px solid rgba(217, 26, 56, 0.2) !important;
}

html[data-theme="light"] .trust-icon {
  color: #D91A38 !important;
  stroke: #D91A38 !important;
}


/* ═══════════════════════════════════════════════════════════════════
   MISSING LAYOUT STYLES FOR SECTIONS 02, 03, 04
   ═══════════════════════════════════════════════════════════════════ */

/* UNIFIED SECTIONS 02 & 03 SIDE-BY-SIDE LAYOUT (EXPERTISE & TREATMENTS) */
.expertise-layout,
.treatment-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.expertise-info-col,
.treatment-info-col {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.expertise-info-col .section-title,
.treatment-info-col .section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--white);
}

.expertise-info-col .section-body,
.treatment-info-col .section-body {
  text-align: left;
  margin: 0.75rem 0 1.25rem;
  font-size: 0.92rem;
  color: var(--steel);
  line-height: 1.6;
}

.expertise-grid,
.treatments-grid-4 {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {

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

@media (min-width: 1024px) {

  .expertise-layout,
  .treatment-layout {
    flex-direction: row;
    align-items: stretch;
    gap: 2.5rem;
  }

  .expertise-info-col,
  .treatment-info-col {
    flex: 0 0 280px;
    width: 280px;
  }

  .expertise-grid,
  .treatments-grid-4 {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* SECTION 04: DOCTOR PROFILE (MISSING CLASSES) */
/* SECTION 04: DOCTOR PROFILE — FIGMA PIXEL-MATCH STYLING */
.doctor-profile-card {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  background: rgba(8, 18, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

@media (max-width: 899px) {
  .doctor-profile-card {
    padding: 1.75rem 1.25rem;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    align-items: center;
    text-align: center;
    flex-direction: column;
  }

  .doctor-portrait-col {
    flex: 0 0 auto;
    width: 100%;
    max-width: 320px;
    height: 360px;
    margin: 0 auto 1rem auto;
  }

  .portrait-circle-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: #05080D;
    border: 1.5px solid rgba(255, 59, 86, 0.35);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), inset 0 0 40px rgba(167, 25, 48, 0.2);
  }

  .doctor-bio-col {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .doctor-card-name {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 0.25rem;
  }

  .doctor-card-sub {
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 0.75rem;
  }

  .doctor-card-body {
    font-size: 0.88rem;
    line-height: 1.55;
    text-align: center;
    margin-bottom: 1.25rem;
  }
}

@media (min-width: 900px) {
  .doctor-profile-card {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }

  .doctor-portrait-col {
    flex: 0 0 380px;
    width: 380px;
    height: 440px;
    max-width: 100%;
  }

  .portrait-circle-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: #05080D;
    border: 1.5px solid rgba(255, 59, 86, 0.35);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 0 50px rgba(167, 25, 48, 0.2);
  }
}

.doctor-portrait-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.95;
  filter: contrast(1.05) brightness(1.02);
}

.doctor-portrait-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.doctor-img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 98%;
  width: auto;
  max-width: 95%;
  object-fit: contain;
  object-position: bottom center;
  z-index: 3;
  filter: drop-shadow(0 14px 36px rgba(0, 0, 0, 0.75));
  margin: 0;
}

.doctor-bio-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.doctor-card-name {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.doctor-card-sub {
  font-size: 1.05rem;
  color: #E2B13C;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.doctor-card-body {
  font-size: 0.95rem;
  color: #94A3B8;
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 640px;
}

/* FIGMA CAPSULE CREDENTIALS CONTAINER (HIGH CONTRAST CRIMSON GLASS BORDER) */
.doctor-badges-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.75rem;
  background: rgba(8, 18, 30, 0.85);
  border: 1.5px solid rgba(255, 59, 86, 0.35);
  border-radius: 50px;
  width: 100%;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), inset 0 0 20px rgba(255, 59, 86, 0.05);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.doctor-badges-row:hover {
  border-color: rgba(255, 59, 86, 0.6);
  box-shadow: 0 16px 40px rgba(217, 26, 56, 0.2), inset 0 0 30px rgba(255, 59, 86, 0.1);
}
@media (max-width: 768px) {
  .doctor-badges-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem;
    background: rgba(8, 18, 30, 0.85);
    border: 1.5px solid rgba(255, 59, 86, 0.35);
    border-radius: 20px;
    width: 100%;
  }

  .cred-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(13, 24, 38, 0.85);
    border: 1px solid rgba(255, 59, 86, 0.25);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  }

  .cred-item strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: #F5F7F9 !important;
    line-height: 1.2;
    text-align: center;
  }

  .cred-item span {
    font-size: 0.78rem;
    color: #8996A5 !important;
    line-height: 1.35;
    text-align: center;
    margin-top: 0.2rem;
  }

  .cred-item-tutor {
    max-width: 100%;
  }

  .cred-item-tutor span {
    color: #FF4D6D !important;
    font-weight: 600;
  }

  .cred-divider {
    display: none;
  }
}

.cred-item {
  display: flex;
  flex-direction: column;
}
.cred-item strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: #F5F7F9;
  line-height: 1.2;
}
.cred-item span {
  font-size: 0.72rem;
  color: #8996A5;
  line-height: 1.2;
}
.cred-item-tutor {
  max-width: 280px;
}
.cred-item-tutor span {
  font-size: 0.7rem;
  color: #FF4D6D;
}

/* Mobile Badge Cards (< 768px) */
@media (max-width: 768px) {
  html[data-theme="light"] .doctor-badges-row {
    background: #FFFFFF !important;
    border: 1.5px solid rgba(217, 26, 56, 0.25) !important;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06) !important;
  }
  html[data-theme="light"] .cred-item {
    background: #F8FAFC !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  }
}

/* Desktop Pill Capsule (> 768px) */
@media (min-width: 769px) {
  .cred-item,
  html[data-theme="light"] .cred-item {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}

/* Light Mode Text Overrides */
html[data-theme="light"] .doctor-badges-row {
  background: #F1F5F9 !important;
  border: 1.5px solid rgba(217, 26, 56, 0.25) !important;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06) !important;
}
html[data-theme="light"] .cred-item strong {
  color: #0F172A !important;
}
html[data-theme="light"] .cred-item span {
  color: #475569 !important;
}
html[data-theme="light"] .cred-item-tutor span {
  color: #D91A38 !important;
}
html[data-theme="light"] .cred-divider {
  background: rgba(15, 23, 42, 0.12) !important;
}

/* Light Mode — Doctor Stats Banner */
html[data-theme="light"] .doctor-stats-banner {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(217, 26, 56, 0.25) !important;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06) !important;
}

.cred-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

/* DOCTOR STATS BANNER & APPOINTMENT CARD (HIGH CONTRAST CRIMSON GLASS BORDER) */
.doctor-stats-banner {
  display: flex;
  flex-direction: column;
  background: rgba(8, 18, 30, 0.85);
  border: 1.5px solid rgba(255, 59, 86, 0.35);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 0 30px rgba(255, 59, 86, 0.08);
  width: 100%;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.doctor-stats-banner:hover {
  border-color: rgba(255, 59, 86, 0.6);
  box-shadow: 0 20px 50px rgba(217, 26, 56, 0.25), inset 0 0 40px rgba(255, 59, 86, 0.12);
}

@media (min-width: 1024px) {
  .doctor-stats-banner {
    flex-direction: row;
    align-items: stretch;
  }
}

.stats-col-group {
  flex: 1 1 58%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 1.25rem 1rem;
  align-items: center;
  min-width: 0;
}

@media (min-width: 640px) {
  .stats-col-group {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-col-group {
    grid-template-columns: repeat(5, 1fr);
    padding: 1.25rem 1.5rem;
    gap: 0;
  }
}

.stat-block {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  position: relative;
  min-width: 0;
}
@media (min-width: 1024px) {
  .stat-block:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 59, 86, 0.25);
  }
}

.stat-icon {
  width: 28px;
  height: 28px;
  color: #FF4D6D;
  flex-shrink: 0;
  stroke-width: 1.8px;
}

.stat-block strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.stat-block span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #94A3B8;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.15rem;
}

/* Crimson Red Appointment CTA Box */
.appointment-red-box {
  flex: 0 0 42%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, #E14455 0%, #A71930 100%);
  padding: 1.25rem 1.5rem;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

@media (max-width: 1023px) {
  .appointment-red-box {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 2rem 1.5rem;
    width: 100%;
  }
  .app-box-icon {
    margin: 0 auto;
    width: 48px;
    height: 48px;
  }
  .app-box-text {
    text-align: center;
    width: 100%;
  }
  .app-box-text strong {
    font-size: 1.15rem;
    white-space: normal;
    margin-bottom: 0.35rem;
  }
  .app-box-text span {
    font-size: 0.85rem;
    line-height: 1.45;
    max-width: 380px;
    margin: 0 auto;
  }
  .btn-white-pill {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    margin: 0.25rem auto 0;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

.app-box-icon {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
}
.app-box-icon svg {
  width: 22px;
  height: 22px;
  color: #FFFFFF;
}

.app-box-text {
  flex: 1;
  min-width: 0;
}

.app-box-text strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.app-box-text span {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.3;
  display: block;
}

.btn-white-pill {
  background: #FFFFFF;
  color: #A71930 !important;
  padding: 0.65rem 1.25rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.btn-white-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════
   LIGHT MODE DESIGN SYSTEM & COLOR CONTRAST OVERRIDES
   ═══════════════════════════════════════════════════════════════════ */
html[data-theme="light"] {
  --bg: #F8FAFC;
  --bg-navy: #FFFFFF;
  --bg-mid: #F1F5F9;
  --crimson: #D91A38;
  --plasma: #C0122C;
  --white: #0F172A;
  --steel: #475569;
  --violet: #4F46E5;
  --border: rgba(15, 23, 42, 0.1);
  --border-red: rgba(217, 26, 56, 0.25);
  --glass: rgba(255, 255, 255, 0.9);
}

/* Light Mode Section Titles & Bodies Across All Sections */
html[data-theme="light"] .section-title {
  color: #0F172A !important;
}
html[data-theme="light"] .section-body {
  color: #475569 !important;
}
html[data-theme="light"] .eyebrow {
  color: #D91A38 !important;
}

/* Light Mode — Section 04: Doctor Profile Card */
html[data-theme="light"] .doctor-profile-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06) !important;
}
html[data-theme="light"] .doctor-card-name {
  color: #0F172A !important;
}
html[data-theme="light"] .doctor-card-sub {
  color: #D91A38 !important;
}
html[data-theme="light"] .doctor-card-body {
  color: #475569 !important;
}
html[data-theme="light"] .doctor-badges-row {
  background: #F1F5F9 !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}
html[data-theme="light"] .cred-item strong {
  color: #0F172A !important;
}
html[data-theme="light"] .cred-item span {
  color: #475569 !important;
}
html[data-theme="light"] .cred-item-tutor span {
  color: #D91A38 !important;
}
html[data-theme="light"] .cred-divider {
  background: rgba(15, 23, 42, 0.12) !important;
}

/* Light Mode — Doctor Stats Banner */
html[data-theme="light"] .doctor-stats-banner {
  background: #FFFFFF !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05) !important;
}
html[data-theme="light"] .stat-block strong {
  color: #0F172A !important;
}
html[data-theme="light"] .stat-block span {
  color: #64748B !important;
}
html[data-theme="light"] .stat-icon {
  color: #D91A38 !important;
}
html[data-theme="light"] .stat-block:not(:last-child)::after {
  background: rgba(15, 23, 42, 0.08) !important;
}

/* Light Mode — Section 05: Science of Blood Cancer / Cell Journey */
html[data-theme="light"] .cell-visual-container {
  background: radial-gradient(circle at center, rgba(225, 68, 85, 0.08) 0%, #FFFFFF 85%) !important;
  border: 1.5px solid rgba(217, 26, 56, 0.25) !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06) !important;
}
html[data-theme="light"] .cell-visual-badge {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}
html[data-theme="light"] #cell-stage-badge {
  color: #0F172A !important;
}
html[data-theme="light"] .cell-stage {
  background: #FFFFFF !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
  opacity: 0.8 !important;
}
html[data-theme="light"] .cell-stage.active {
  background: #FFFFFF !important;
  border: 2px solid #D91A38 !important;
  box-shadow: 0 8px 24px rgba(217, 26, 56, 0.14) !important;
  opacity: 1 !important;
}
html[data-theme="light"] .stage-content h3 {
  color: #0F172A !important;
}
html[data-theme="light"] .stage-content p {
  color: #475569 !important;
}

/* Light Mode — Section 06: Bone Marrow & Hematopoiesis */
html[data-theme="light"] .bone-wrap {
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1) !important;
}
html[data-theme="light"] .hematopoiesis-tree {
  background: #FFFFFF !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04) !important;
}
html[data-theme="light"] .tree-root-node strong,
html[data-theme="light"] .tree-leaf strong {
  color: #0F172A !important;
}
html[data-theme="light"] .tree-leaf span {
  color: #64748B !important;
}
html[data-theme="light"] .marrow-quote {
  background: rgba(217, 26, 56, 0.05) !important;
}
/* ═══════════════════════════════════════════════════════════════════
   SECTION 08 — PATIENT TESTIMONIALS / OUTCOMES GRID
   ═══════════════════════════════════════════════════════════════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
  }
}

.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.25rem;
  background: rgba(8, 18, 30, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
  cursor: pointer;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  border-color: rgba(217, 26, 56, 0.5);
  box-shadow: 0 24px 50px rgba(217, 26, 56, 0.2);
}

.testi-card-glow {
  position: absolute;
  top: -40%;
  right: -40%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 26, 56, 0.25) 0%, rgba(217, 26, 56, 0) 70%);
  pointer-events: none;
  transition: opacity 0.4s;
}

.quote-watermark {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: var(--font-serif);
  font-size: 7rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
}

.testi-card-top {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.testi-user-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testi-avatar-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.testi-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #D91A38 0%, #800F23 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 16px rgba(217, 26, 56, 0.35);
}

.avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px dashed rgba(217, 26, 56, 0.5);
  animation: spinRing 20s linear infinite;
}

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

.testi-author-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.testi-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
}

.testi-subtext {
  font-size: 0.82rem;
  color: var(--crimson);
  font-weight: 600;
}

.testi-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
}

.testi-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #10B981;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.testi-stars {
  color: #F59E0B;
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.testi-quote {
  position: relative;
  z-index: 2;
  font-size: 0.96rem;
  line-height: 1.7;
  color: #CBD5E1;
  font-style: italic;
  margin: 0 0 1.75rem 0;
  flex: 1;
}

.testi-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
}

.testi-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FF3B56;
  background: rgba(217, 26, 56, 0.12);
  border: 1px solid rgba(217, 26, 56, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
}

.testi-hospital-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94A3B8;
}

/* Light Mode Theme Overrides for Testimonials */
html[data-theme="light"] .testimonial-card {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .testimonial-card:hover {
  border-color: rgba(217, 26, 56, 0.4) !important;
  box-shadow: 0 20px 45px rgba(217, 26, 56, 0.12) !important;
}

html[data-theme="light"] .quote-watermark {
  color: rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .testi-name {
  color: #0F172A !important;
}

html[data-theme="light"] .testi-subtext {
  color: #D91A38 !important;
}

html[data-theme="light"] .testi-meta-bar {
  background: #F8FAFC !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .testi-badge {
  color: #059669 !important;
}

html[data-theme="light"] .testi-quote {
  color: #334155 !important;
}

html[data-theme="light"] .testi-card-footer {
  border-top-color: rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .testi-tag {
  color: #D91A38 !important;
  background: rgba(217, 26, 56, 0.06) !important;
  border-color: rgba(217, 26, 56, 0.2) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION 09 — CLINIC LOCATION & APPOINTMENT REQUEST FORM
   ═══════════════════════════════════════════════════════════════════ */
.contact-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-container {
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
  }
}

/* Left Column: Clinic Info Card */
.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 2.25rem;
  background: rgba(8, 18, 30, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.contact-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.contact-item svg {
  width: 24px;
  height: 24px;
  color: #FF3B56;
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-item strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.contact-item span {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #CBD5E1;
}

/* Map Frame & Floating Badge */
.contact-map-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.map-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  background: rgba(8, 18, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  font-size: 0.75rem;
  font-weight: 600;
  color: #FFFFFF;
  pointer-events: none;
}

/* Light Mode Overrides for Contact Info Card */
html[data-theme="light"] .contact-info-card {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .contact-card-title {
  color: #0F172A !important;
}

html[data-theme="light"] .contact-item strong {
  color: #0F172A !important;
}

html[data-theme="light"] .contact-item span {
  color: #475569 !important;
}

html[data-theme="light"] .contact-item svg {
  color: #D91A38 !important;
}

html[data-theme="light"] .contact-map-frame {
  border-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] .map-badge {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0F172A !important;
}

/* Light Mode — Section 07: Precision Medicine Steps */
html[data-theme="light"] .precision-step {
  background: #FFFFFF !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04) !important;
}
html[data-theme="light"] .precision-step strong {
  color: #0F172A !important;
}
html[data-theme="light"] .precision-step p {
  color: #475569 !important;
}
html[data-theme="light"] .ps-num {
  color: #4F46E5 !important;
}

/* Light Mode — Section 09: Research & Publications */
html[data-theme="light"] .pub-card {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(217, 26, 56, 0.25) !important;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .pub-card:hover {
  border-color: #D91A38 !important;
  box-shadow: 0 20px 45px rgba(217, 26, 56, 0.15) !important;
}
html[data-theme="light"] .pub-card h3 {
  color: #0F172A !important;
}
html[data-theme="light"] .pub-card p {
  color: #475569 !important;
}
html[data-theme="light"] .pub-area {
  color: #D91A38 !important;
}
html[data-theme="light"] .pub-year {
  color: #64748B !important;
}
html[data-theme="light"] .pub-meta {
  border-top-color: rgba(15, 23, 42, 0.08) !important;
}

/* Light Mode — Section 10: Patient Resources */
html[data-theme="light"] .resource-card {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(217, 26, 56, 0.25) !important;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .resource-card:hover {
  border-color: #D91A38 !important;
  box-shadow: 0 20px 45px rgba(217, 26, 56, 0.15) !important;
}
html[data-theme="light"] .resource-card h3 {
  color: #0F172A !important;
}
html[data-theme="light"] .resource-card p {
  color: #475569 !important;
}
html[data-theme="light"] .resource-link {
  color: #D91A38 !important;
}

/* Light Mode — Contact Section & Form */
html[data-theme="light"] .contact-section {
  background: #F1F5F9 !important;
}
html[data-theme="light"] .contact-form {
  background: #FFFFFF !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06) !important;
}
html[data-theme="light"] .form-title {
  color: #0F172A !important;
}
html[data-theme="light"] .form-group label {
  color: #334155 !important;
}
html[data-theme="light"] .form-group input,
html[data-theme="light"] .form-group select,
html[data-theme="light"] .form-group textarea {
  background: #F8FAFC !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
  color: #0F172A !important;
}
html[data-theme="light"] .form-group input::placeholder,
html[data-theme="light"] .form-group textarea::placeholder {
  color: #94A3B8 !important;
}
html[data-theme="light"] .contact-item strong {
  color: #0F172A !important;
}
html[data-theme="light"] .contact-item span {
  color: #475569 !important;
}
html[data-theme="light"] .contact-item svg {
  color: #D91A38 !important;
}

/* Light Mode — Footer */
html[data-theme="light"] #site-footer {
  background: #0F172A !important;
}
html[data-theme="light"] .footer-brand strong,
html[data-theme="light"] .footer-col strong {
  color: #FFFFFF !important;
}
html[data-theme="light"] .footer-brand span,
html[data-theme="light"] .footer-col a {
  color: #94A3B8 !important;
}

/* ── FLOATING ACTION CONTROLS (PREMIUM UX) ─────────────────────── */
.floating-controls {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
  pointer-events: none;
}

.floating-btn {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), opacity 0.35s, border-color 0.35s, box-shadow 0.35s;
}

/* Scroll To Top Button */
.scroll-top-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(8, 18, 30, 0.88);
  border: 1.5px solid rgba(255, 59, 86, 0.35);
  color: #F5F7F9;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(255, 59, 86, 0.1);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  visibility: hidden;
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.scroll-top-btn:hover {
  background: #A71930;
  border-color: #FF3B56;
  color: #FFFFFF;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px rgba(217, 26, 56, 0.45);
}

/* ── FLOATING BUTTONS (PERFECT 48px CIRCLE DEFAULT, SMOOTH EXPANSION ON HOVER) ── */
.floating-btn {
  position: relative;
  height: 48px;
  width: auto;
  min-width: 48px;
  max-width: 48px;
  padding: 0 13px;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  backdrop-filter: blur(16px);
  overflow: hidden;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease,
              box-shadow 0.3s ease,
              transform 0.3s ease;
}

.floating-btn svg {
  flex-shrink: 0;
  display: block;
  margin: 0;
  transition: transform 0.3s ease;
}

.floating-btn .float-btn-label {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  max-width: 0;
  opacity: 0;
  margin-left: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease 0.05s,
              margin-left 0.35s ease;
  pointer-events: none;
}

.float-btn-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  animation: floatPulse 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

@keyframes floatPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Quick Floating Contact CTA Button (Book Appointment) */
.contact-float-btn {
  background: linear-gradient(135deg, #D91A38 0%, #A71930 100%);
  box-shadow: 0 8px 24px rgba(217, 26, 56, 0.4);
}

.contact-float-btn:hover,
.contact-float-btn:focus-visible {
  max-width: 220px;
  padding: 0 1.25rem 0 0.9rem;
  transform: translateY(-3px);
  background: linear-gradient(135deg, #FF3B56 0%, #D91A38 100%);
  box-shadow: 0 14px 36px rgba(217, 26, 56, 0.6);
}

.contact-float-btn:hover .float-btn-label,
.contact-float-btn:focus-visible .float-btn-label {
  max-width: 170px;
  opacity: 1;
  margin-left: 0.55rem;
}

/* WhatsApp Floating Button */
.whatsapp-float-btn {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.whatsapp-float-btn:hover,
.whatsapp-float-btn:focus-visible {
  max-width: 200px;
  padding: 0 1.25rem 0 0.9rem;
  transform: translateY(-3px);
  background: linear-gradient(135deg, #28E06F 0%, #159E8E 100%);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.55);
}

.whatsapp-float-btn:hover .float-btn-label,
.whatsapp-float-btn:focus-visible .float-btn-label {
  max-width: 150px;
  opacity: 1;
  margin-left: 0.55rem;
}

.floating-btn:hover svg {
  transform: scale(1.08);
}

/* ── SYMPTOM CHECKER MODAL ─────────────────────────────────────── */
.btn-symptom-checker {
  border-color: rgba(255, 59, 86, 0.4) !important;
  color: #FF3B56 !important;
}

.btn-symptom-checker:hover {
  background: rgba(255, 59, 86, 0.15) !important;
  box-shadow: 0 8px 24px rgba(255, 59, 86, 0.25) !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 13, 0.85);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: rgba(8, 18, 30, 0.95);
  border: 1.5px solid rgba(255, 59, 86, 0.35);
  border-radius: 24px;
  padding: 2.25rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: #8996A5;
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #FF3B56;
}

.modal-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #FF3B56;
  background: rgba(255, 59, 86, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.symptom-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin: 1.75rem 0;
}

.symptom-checkbox-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}

.symptom-checkbox-card:hover,
.symptom-checkbox-card:has(input:checked) {
  border-color: rgba(255, 59, 86, 0.5);
  background: rgba(255, 59, 86, 0.1);
}

.symptom-checkbox-card input[type="checkbox"] {
  accent-color: #FF3B56;
  width: 18px;
  height: 18px;
}

.symptom-result-box {
  background: rgba(255, 59, 86, 0.12);
  border: 1.5px solid rgba(255, 59, 86, 0.35);
  border-radius: 16px;
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.symptom-result-box h4 {
  color: #F5F7F9;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.symptom-result-box p {
  color: #CBD5E1;
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

/* Light Mode Modal Overrides */
html[data-theme="light"] .modal-card {
  background: #FFFFFF !important;
  border-color: rgba(217, 26, 56, 0.25) !important;
}

html[data-theme="light"] .symptom-checkbox-card {
  background: #F8FAFC !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #0F172A !important;
}

html[data-theme="light"] .symptom-result-box {
  background: #FFF1F2 !important;
  border-color: rgba(217, 26, 56, 0.25) !important;
}

html[data-theme="light"] .symptom-result-box h4 {
  color: #0F172A !important;
}

html[data-theme="light"] .symptom-result-box p {
  color: #475569 !important;
}

/* ── TREATMENT JOURNEY TIMELINE WIDGET ─────────────────────────── */
.treatment-timeline-wrap {
  margin-top: 4rem;
  background: rgba(8, 18, 30, 0.75);
  border: 1.5px solid rgba(255, 59, 86, 0.35);
  border-radius: 24px;
  padding: 2.25rem;
  backdrop-filter: blur(16px);
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
}

.timeline-sub {
  font-size: 0.9rem;
  color: #8996A5;
  margin-bottom: 1.75rem;
}

.timeline-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.timeline-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
}

.timeline-tab.active,
.timeline-tab:hover {
  background: rgba(255, 59, 86, 0.15);
  border-color: #FF3B56;
  color: #FFFFFF;
}

.timeline-display-card {
  background: rgba(5, 10, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.75rem;
}

.timeline-phase-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #FF3B56;
  background: rgba(255, 59, 86, 0.15);
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.timeline-display-card h4 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.timeline-display-card p {
  font-size: 0.9rem;
  color: #CBD5E1;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.timeline-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.t-highlight {
  font-size: 0.78rem;
  font-weight: 600;
  color: #E2B13C;
  background: rgba(226, 177, 60, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  border: 1px solid rgba(226, 177, 60, 0.25);
}

html[data-theme="light"] .treatment-timeline-wrap {
  background: #FFFFFF !important;
  border-color: rgba(217, 26, 56, 0.25) !important;
}

html[data-theme="light"] .timeline-title {
  color: #0F172A !important;
}

html[data-theme="light"] .timeline-display-card {
  background: #F8FAFC !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .timeline-display-card h4 {
  color: #0F172A !important;
}

html[data-theme="light"] .timeline-display-card p {
  color: #475569 !important;
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION 05 — BLOOD INTELLIGENCE LAB SUITE (PREMIUM GLASS UX)
   ═══════════════════════════════════════════════════════════════════ */
.blood-lab-wrap {
  position: relative;
  margin-top: 4rem;
  background: linear-gradient(135deg, rgba(8, 18, 30, 0.96) 0%, rgba(13, 27, 44, 0.92) 100%);
  border: 1.5px solid rgba(255, 59, 86, 0.35);
  border-radius: 28px;
  padding: 2.75rem;
  backdrop-filter: blur(24px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.18);
  overflow: hidden;
  width: 100%;
}

.blood-lab-header {
  margin-bottom: 2.25rem;
}

.blood-lab-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.blood-lab-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #06B6D4;
  letter-spacing: 0.08em;
}

.lab-version-chip {
  font-size: 0.72rem;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

.blood-lab-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.blood-lab-sub {
  font-size: 0.95rem;
  color: #94A3B8;
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 780px;
}

/* TOP MODE SWITCHER PILLS */
.lab-mode-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  backdrop-filter: blur(12px);
  margin-bottom: 1rem;
}

.lab-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.45rem;
  border-radius: 50px;
  background: transparent;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: #94A3B8;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lab-mode-btn svg {
  color: #64748B;
  transition: color 0.3s;
}

.lab-mode-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

.lab-mode-btn.active {
  background: #FF3B56;
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(255, 59, 86, 0.4);
}

.lab-mode-btn.active svg {
  color: #FFFFFF;
}

/* MODE 1: LEARN PARAMETERS (GRID SELECTOR & DISPLAY CARD) */
.learn-category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.cat-pill {
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cat-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.cat-pill.active {
  background: rgba(6, 182, 212, 0.18);
  border-color: #06B6D4;
  color: #06B6D4;
  box-shadow: 0 2px 12px rgba(6, 182, 212, 0.25);
}

/* Parameter Selector Cards Grid */
.learn-params-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.param-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.param-card:hover {
  background: rgba(255, 59, 86, 0.08);
  border-color: rgba(255, 59, 86, 0.4);
  transform: translateY(-2px);
}

.param-card.active {
  background: linear-gradient(135deg, rgba(255, 59, 86, 0.18) 0%, rgba(217, 26, 56, 0.1) 100%);
  border-color: #FF3B56;
  box-shadow: 0 8px 24px rgba(255, 59, 86, 0.25);
}

.param-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.param-symbol {
  font-size: 0.85rem;
  font-weight: 800;
  color: #FFFFFF;
}

.param-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: #06B6D4;
  background: rgba(6, 182, 212, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.param-tag.alert {
  color: #FF3B56;
  background: rgba(255, 59, 86, 0.15);
}

.param-card strong {
  font-size: 0.88rem;
  color: #F8FAFC;
}

.param-card span {
  font-size: 0.74rem;
  color: #94A3B8;
}

/* RESULT DISPLAY CARD */
.cbc-display-card {
  position: relative;
  background: linear-gradient(145deg, rgba(5, 10, 18, 0.95) 0%, rgba(10, 20, 32, 0.9) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.cbc-card-glow {
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cbc-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.cbc-group-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  color: #06B6D4;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.cbc-card-top h4 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.cbc-range-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.14);
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.cbc-display-card p {
  font-size: 0.95rem;
  color: #CBD5E1;
  line-height: 1.65;
}

/* RESULT INPUT BOX */
.result-input-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
}

.input-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.input-header label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #06B6D4;
  letter-spacing: 0.08em;
}

.range-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  padding: 0.35rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94A3B8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s;
}

.range-toggle-btn:hover {
  background: rgba(255, 59, 86, 0.15);
  border-color: #FF3B56;
  color: #FFFFFF;
}

.input-controls-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.val-input-group {
  display: flex;
  align-items: center;
  background: rgba(5, 10, 18, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.45rem 0.95rem;
  flex: 1;
  min-width: 200px;
}

.val-input-group input {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 700;
  outline: none;
  width: 100%;
}

.unit-tag {
  font-size: 0.85rem;
  color: #94A3B8;
  font-weight: 600;
  margin-left: 0.5rem;
}

.analyze-val-btn {
  background: linear-gradient(135deg, #FF3B56 0%, #D91A38 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 59, 86, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}

.analyze-val-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 59, 86, 0.5);
}

.custom-range-drawer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.drawer-hint {
  font-size: 0.76rem;
  color: #94A3B8;
  margin-bottom: 0.6rem;
}

.custom-range-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.custom-range-inputs label {
  display: block;
  font-size: 0.72rem;
  color: #94A3B8;
  margin-bottom: 0.25rem;
}

.custom-range-inputs input {
  width: 100%;
  background: rgba(5, 10, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.5rem;
  color: #FFFFFF;
  font-size: 0.9rem;
}

/* SPECTRUM GAUGE METER */
.cbc-meter-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.35rem 1.5rem;
}

.cbc-meter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.cbc-meter-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cbc-meter-title svg { color: #06B6D4; }

.meter-status-badge {
  font-size: 0.74rem;
  font-weight: 800;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

.cbc-meter-bar {
  position: relative;
  height: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: visible;
  margin-bottom: 0.75rem;
}

.cbc-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #06B6D4 0%, #3B82F6 50%, #FF3B56 100%);
  border-radius: 20px;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.5);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cbc-meter-pin {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  background: #FFFFFF;
  border: 3px solid #FF3B56;
  border-radius: 50%;
  box-shadow: 0 0 14px #FF3B56, 0 0 4px rgba(0,0,0,0.5);
  transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cbc-meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 600;
  color: #94A3B8;
}

.cbc-doctor-note {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(226, 177, 60, 0.05) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 18px;
  padding: 1.15rem 1.35rem;
}

.note-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #F59E0B;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.note-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.note-content strong { font-size: 0.92rem; font-weight: 700; color: #F59E0B; }
.note-content span { font-size: 0.88rem; color: #F1F5F9; line-height: 1.6; }

/* MODE 2: ANALYZE CBC FORM & CATEGORIZED CARDS */
.analyze-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.analyze-form-card {
  background: rgba(5, 10, 18, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 2rem;
}

.form-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-header-bar h4 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: #FFFFFF;
  margin-bottom: 0.2rem;
}

.form-header-bar p { font-size: 0.88rem; color: #94A3B8; }

.coverage-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #06B6D4;
}

.form-sections-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-section-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.35rem 1.5rem;
}

.form-section-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #06B6D4;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.cbc-inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.15rem;
}

.input-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #CBD5E1;
  margin-bottom: 0.35rem;
}

.input-wrap {
  display: flex;
  align-items: center;
  background: rgba(5, 10, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.5rem 0.85rem;
}

.input-wrap input {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  width: 100%;
}

.input-wrap span { font-size: 0.75rem; color: #94A3B8; margin-left: 0.4rem; }

.input-field select {
  width: 100%;
  background: rgba(5, 10, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  color: #FFFFFF;
  font-size: 0.9rem;
  outline: none;
}

.analyze-btn-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #FF3B56 0%, #D91A38 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 50px;
  padding: 0.85rem 1.85rem;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 59, 86, 0.35);
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 59, 86, 0.5);
}

.btn-secondary-subtle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  border-radius: 50px;
  padding: 0.85rem 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-secondary-subtle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

/* OUTPUT DASHBOARD */
.analysis-results-output {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.results-header-banner {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
  border: 1.5px solid rgba(6, 182, 212, 0.35);
  border-radius: 20px;
  padding: 1.5rem 1.85rem;
}

.summary-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: rgba(6, 182, 212, 0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #06B6D4;
  margin-bottom: 0.5rem;
}

.results-header-banner h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.cell-line-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.cell-line-card {
  background: rgba(5, 10, 18, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cell-line-title { font-size: 0.72rem; font-weight: 800; color: #94A3B8; letter-spacing: 0.08em; }
.cell-line-val { font-size: 1.1rem; font-weight: 700; color: #FFFFFF; }
.cell-line-detail { font-size: 0.76rem; color: #64748B; }

.cell-line-card.abnormal {
  border-color: #FF3B56;
  background: rgba(255, 59, 86, 0.08);
}
.cell-line-card.abnormal .cell-line-val { color: #FF3B56; }

.findings-patterns-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) { .findings-patterns-box { grid-template-columns: 1fr; } }

.fp-section {
  background: rgba(5, 10, 18, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1.5rem;
}

.fp-section h5 { font-size: 0.78rem; font-weight: 800; color: #94A3B8; letter-spacing: 0.08em; margin-bottom: 1rem; }
.fp-num { color: #06B6D4; }

.findings-list, .patterns-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.finding-item, .pattern-item {
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border-left: 3.5px solid #06B6D4;
}

.finding-item.low { border-left-color: #38BDF8; }
.finding-item.high { border-left-color: #F59E0B; }
.finding-item.critical { border-left-color: #FF3B56; background: rgba(255, 59, 86, 0.1); }

.pattern-item {
  border-left-color: #FF3B56;
  background: rgba(255, 59, 86, 0.08);
}

.insufficient-data-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 18px;
  padding: 1.15rem 1.35rem;
}

.id-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.2);
  color: #F59E0B;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.id-text strong { display: block; font-size: 0.92rem; color: #F59E0B; margin-bottom: 0.2rem; }
.id-text span { font-size: 0.86rem; color: #F1F5F9; line-height: 1.5; }

.commonly-considered-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.5rem;
}

.commonly-considered-box h5 { font-size: 0.78rem; font-weight: 800; color: #06B6D4; margin-bottom: 0.4rem; }
.commonly-considered-box p { font-size: 0.85rem; color: #94A3B8; margin-bottom: 1rem; }

.tests-tags-grid { display: flex; flex-wrap: wrap; gap: 0.65rem; }

.test-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: #E2B13C;
  background: rgba(226, 177, 60, 0.12);
  border: 1px solid rgba(226, 177, 60, 0.3);
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
}

/* MODE 3: EXPLORE DIAGNOSTICS */
.explore-nav-pills { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-bottom: 1.75rem; }

.ex-pill {
  padding: 0.65rem 1.3rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: #CBD5E1;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
}

.ex-pill:hover { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; }

.ex-pill.active {
  background: #06B6D4;
  border-color: #06B6D4;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35);
}

.workup-hub-card, .flc-calc-card, .spep-card, .crab-card {
  background: rgba(5, 10, 18, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 2.25rem;
}

.workup-hub-card h4, .flc-header h4, .spep-header h4, .crab-header h4 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
}

.workup-hub-card p, .flc-header p, .spep-header p, .crab-header p {
  font-size: 0.9rem;
  color: #94A3B8;
  margin-bottom: 2rem;
}

.workup-flow-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: 550px;
  margin: 0 auto;
}

.wf-node {
  width: 100%;
  padding: 1.1rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  cursor: pointer;
  transition: all 0.3s;
}

.wf-node:hover {
  border-color: #06B6D4;
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-2px);
}

.wf-step {
  font-size: 0.8rem;
  font-weight: 800;
  color: #06B6D4;
  background: rgba(6, 182, 212, 0.15);
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
}

.wf-node strong { font-size: 0.95rem; color: #FFFFFF; display: block; }
.wf-node span { font-size: 0.8rem; color: #94A3B8; }
.wf-arrow { color: #06B6D4; font-weight: 700; font-size: 1.2rem; }

.wf-node-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

@media (max-width: 600px) { .wf-node-group { grid-template-columns: 1fr; } }

/* FLC CALCULATOR STYLES */
.flc-inputs-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.flc-field label { display: block; font-size: 0.78rem; font-weight: 700; color: #CBD5E1; margin-bottom: 0.35rem; }

.flc-range-row { margin-bottom: 1.75rem; font-size: 0.82rem; color: #94A3B8; }

.flc-minmax-inputs {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.4rem;
}

.flc-minmax-inputs input {
  width: 80px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.4rem;
  color: #FFFFFF;
  text-align: center;
}

.flc-output-box {
  margin-top: 1.75rem;
  background: rgba(255, 59, 86, 0.08);
  border: 1.5px solid rgba(255, 59, 86, 0.35);
  border-radius: 18px;
  padding: 1.5rem;
}

.flc-ratio-display { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.ratio-val { font-size: 2.2rem; font-weight: 800; color: #FF3B56; }

.ratio-status-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: #FF3B56;
  background: rgba(255, 59, 86, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
}

.flc-note-box {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 59, 86, 0.3);
  font-size: 0.86rem;
  color: #CBD5E1;
  line-height: 1.6;
}

.flc-note-box strong { color: #E2B13C; margin-right: 0.4rem; }

/* SPEP VISUALIZER STYLES */
.spep-toggle-row { display: flex; gap: 0.75rem; margin-bottom: 1.75rem; }

.spep-btn {
  padding: 0.65rem 1.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  color: #CBD5E1;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
}

.spep-btn.active {
  background: #FF3B56;
  border-color: #FF3B56;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(255, 59, 86, 0.35);
}

.spep-svg-wrap {
  background: rgba(5, 10, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.spep-svg { width: 100%; height: auto; display: block; }
#spep-trace-path { transition: d 0.6s cubic-bezier(0.16, 1, 0.3, 1); }

.spep-explanation-box {
  background: rgba(6, 182, 212, 0.1);
  border: 1.5px solid rgba(6, 182, 212, 0.3);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
}

.spep-explanation-box strong { display: block; font-size: 0.95rem; color: #06B6D4; margin-bottom: 0.35rem; }
.spep-explanation-box p { font-size: 0.88rem; color: #CBD5E1; line-height: 1.6; margin: 0; }

/* CRAB FEATURES EXPLORER */
.crab-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

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

.crab-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.crab-item:hover, .crab-item.active {
  border-color: #FF3B56;
  background: rgba(255, 59, 86, 0.12);
  transform: translateY(-3px);
}

.crab-letter { font-size: 2.2rem; font-weight: 800; color: #FF3B56; line-height: 1; margin-bottom: 0.4rem; }
.crab-item strong { display: block; font-size: 0.9rem; color: #FFFFFF; }
.crab-item span { font-size: 0.76rem; color: #94A3B8; }

.crab-detail-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.5rem;
}

.crab-detail-box h5 { font-family: var(--font-serif); font-size: 1.25rem; color: #FFFFFF; margin-bottom: 0.5rem; }
.crab-detail-box p { font-size: 0.9rem; color: #CBD5E1; line-height: 1.65; margin-bottom: 1rem; }

.crab-tests-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: #06B6D4;
  background: rgba(6, 182, 212, 0.12);
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  display: inline-block;
}

/* FOOTER */
.lab-version-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.76rem;
  color: #64748B;
}

/* Light Mode Overrides */
html[data-theme="light"] .blood-lab-wrap {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%) !important;
  border-color: rgba(217, 26, 56, 0.25) !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .blood-lab-title { color: #0F172A !important; }
html[data-theme="light"] .blood-lab-sub { color: #475569 !important; }

html[data-theme="light"] .lab-mode-switcher {
  background: #F1F5F9 !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] .lab-mode-btn { color: #475569 !important; }
html[data-theme="light"] .lab-mode-btn.active { background: #D91A38 !important; color: #FFFFFF !important; }

html[data-theme="light"] .param-card {
  background: #FFFFFF !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .param-symbol,
html[data-theme="light"] .param-card strong { color: #0F172A !important; }

html[data-theme="light"] .cbc-display-card,
html[data-theme="light"] .analyze-form-card,
html[data-theme="light"] .form-section-box,
html[data-theme="light"] .fp-section,
html[data-theme="light"] .workup-hub-card,
html[data-theme="light"] .flc-calc-card,
html[data-theme="light"] .spep-card,
html[data-theme="light"] .crab-card {
  background: #FFFFFF !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .cbc-card-top h4,
html[data-theme="light"] .form-header-bar h4,
html[data-theme="light"] .workup-hub-card h4,
html[data-theme="light"] .flc-header h4,
html[data-theme="light"] .spep-header h4,
html[data-theme="light"] .crab-header h4 {
  color: #0F172A !important;
}

html[data-theme="light"] .val-input-group,
html[data-theme="light"] .input-wrap,
html[data-theme="light"] .input-field select {
  background: #F8FAFC !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0F172A !important;
}

/* ACCESSIBILITY SKIP LINK */
.skip-link {
  position: absolute !important;
  top: -200px !important;
  left: 1rem !important;
  opacity: 0 !important;
  pointer-events: none !important;
  background: var(--plasma);
  color: #FFFFFF;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  z-index: 10000;
  text-decoration: none;
  transition: top 0.2s ease, opacity 0.2s ease;
}

.skip-link:focus {
  top: 0 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* ═══════════════════════════════════════════════════════════════════
   FIGMA ACCURATE BLOOD INTELLIGENCE LAB STYLES (HOME PAGE THEME HARMONY)
   ═══════════════════════════════════════════════════════════════════ */
.lab-page-body {
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
}

/* SUB-HEADER NOTICE */
.lab-notice-banner {
  background: rgba(13, 181, 195, 0.08);
  border-bottom: 1px solid rgba(13, 181, 195, 0.18);
  padding: 0.65rem 1.5rem;
  text-align: center;
}

.lab-notice-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--plasma);
  font-weight: 500;
}

/* HEADER NAVBAR OVERRIDES */
html[data-theme="light"] .navbar {
  background: #FFFFFF !important;
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

html[data-theme="light"] #site-header.scrolled .logo-name,
html[data-theme="light"] body.myspace-page #site-header .logo-name {
  color: #0F172A !important;
}

html[data-theme="light"] #site-header.scrolled .logo-sub,
html[data-theme="light"] body.myspace-page #site-header .logo-sub {
  color: #D91A38 !important;
}

html[data-theme="light"] .nav-link-item {
  color: #475569 !important;
}

html[data-theme="light"] .nav-link-item:hover {
  color: #0F172A !important;
}

html[data-theme="light"] .theme-btn-label {
  color: #0F172A !important;
}

html[data-theme="light"] .lab-theme-btn {
  background: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
}

/* SUB-HEADER MODE NAVIGATION BAR */
.header-nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .header-nav-links { display: none; }
}

.nav-back-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--plasma);
  padding: 0.35rem 0.75rem;
  background: rgba(225, 68, 85, 0.1);
  border-radius: 50px;
  border: 1px solid rgba(225, 68, 85, 0.25);
  transition: all 0.2s ease;
}

.nav-back-link:hover {
  background: var(--plasma);
  color: #FFFFFF;
}

.nav-link-item {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--steel);
  transition: color 0.2s ease;
}

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

.lab-theme-btn {
  display: flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  padding: 0.4rem 0.85rem !important;
  width: auto !important;
  height: auto !important;
  border-radius: 50px !important;
  background: var(--glass) !important;
  border: 1px solid var(--border) !important;
  cursor: pointer !important;
}

.theme-btn-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
}

.btn-head-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--plasma) 0%, var(--crimson) 100%);
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(225, 68, 85, 0.3);
  transition: all 0.2s ease;
}

.btn-head-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(225, 68, 85, 0.45);
}

.lab-mode-bar-wrapper {
  background: #060A10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

html[data-theme="light"] .lab-mode-bar-wrapper {
  background: #F1F5F9 !important;
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

.lab-mode-bar-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* SEGMENTED MODE NAV */
.lab-mode-segmented {
  display: flex;
  background: #0B131E;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px;
  border-radius: 16px;
  gap: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

html[data-theme="light"] .lab-mode-segmented {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}

.mode-tab {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.4rem;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.mode-svg-icon {
  color: var(--steel);
  transition: color 0.2s ease;
}

.mode-tab.active {
  background: linear-gradient(135deg, rgba(225, 68, 85, 0.18) 0%, rgba(167, 25, 48, 0.22) 100%);
  border: 1px solid rgba(225, 68, 85, 0.4);
  box-shadow: 0 4px 16px rgba(225, 68, 85, 0.2);
}

html[data-theme="light"] .mode-tab.active {
  background: #FFF5F6 !important;
  border: 1px solid rgba(217, 26, 56, 0.3) !important;
  box-shadow: 0 2px 10px rgba(217, 26, 56, 0.1) !important;
}

.mode-tab.active .tab-title { color: var(--plasma); }
.mode-tab.active .mode-svg-icon { color: var(--plasma); }

.tab-text-wrap {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.tab-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--steel);
  letter-spacing: 0.04em;
}

.tab-sub {
  font-size: 0.7rem;
  color: var(--steel);
  opacity: 0.8;
}

/* MAIN WRAPPER & GRID */
.lab-main-wrapper {
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

.lab-three-column-grid {
  display: grid;
  grid-template-columns: 260px 1fr 310px;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 1100px) {
  .lab-three-column-grid {
    grid-template-columns: 1fr;
  }
}

/* CARDS COMMON SYSTEM */
.lab-card {
  background: var(--bg-navy);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

/* SIDEBAR ACCORDION */
.sidebar-heading {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--plasma);
  letter-spacing: 0.06em;
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.accordion-group {
  margin-bottom: 0.4rem;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}

.accordion-header:hover { background: var(--glass-hover); }

.acc-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--white);
}

.acc-arrow-svg {
  color: var(--steel);
  transition: transform 0.2s ease;
}

.accordion-group.open .acc-arrow-svg {
  transform: rotate(180deg);
}

.accordion-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 0.5rem;
}

.sidebar-param-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--steel);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.sidebar-param-btn:hover {
  background: var(--glass-hover);
  color: var(--white);
}

.sidebar-param-btn.active {
  background: rgba(225, 68, 85, 0.15);
  color: var(--plasma);
  font-weight: 700;
  border: 1px solid rgba(225, 68, 85, 0.3);
}

.btn-arrow { font-size: 0.9rem; opacity: 0.6; }

/* REFERENCE RANGE CARD */
.reference-range-card { margin-top: 1rem; }
.ref-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.ref-title { font-size: 0.8rem; font-weight: 700; color: var(--white); }
.info-small-svg { color: var(--steel); cursor: pointer; }

.radio-option-group { display: flex; flex-direction: column; gap: 0.5rem; }
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--steel);
  cursor: pointer;
}

.radio-label input { display: none; }
.radio-custom-dot {
  width: 14px;
  height: 14px;
  border: 2px solid var(--steel);
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.radio-label input:checked + .radio-custom-dot {
  border-color: var(--plasma);
  background: var(--plasma);
}

/* TIP CARD */
.tip-card { margin-top: 1rem; background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.2); }
.tip-header { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: #F59E0B; margin-bottom: 0.3rem; }
.tip-text { font-size: 0.76rem; color: var(--steel); margin: 0; line-height: 1.5; }

/* CENTER COLUMN: PARAMETER EXPLORER */
.param-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.param-title-group { display: flex; align-items: center; gap: 0.75rem; }
.param-drop-badge { font-size: 1.75rem; }

.param-h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin: 0;
  letter-spacing: 0.02em;
}

.param-sub-desc { font-size: 0.82rem; color: var(--steel); margin: 0.2rem 0 0; }

.unit-chip {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--steel);
  background: var(--glass);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
}

/* INPUT & EXPLANATION BUBBLE */
.result-input-explain-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 700px) {
  .result-input-explain-row { grid-template-columns: 1fr; }
}

.your-result-box {
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}

.input-field-label { font-size: 0.75rem; font-weight: 700; color: var(--steel); display: block; margin-bottom: 0.3rem; }

.input-with-unit {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.input-with-unit input {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  border: none;
  background: transparent;
  width: 100px;
  outline: none;
}

.inside-unit { font-size: 0.82rem; font-weight: 700; color: var(--steel); }

.param-explanation-bubble {
  background: rgba(13, 181, 195, 0.08);
  border: 1px solid rgba(13, 181, 195, 0.2);
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
}

.param-explanation-bubble p { font-size: 0.85rem; color: var(--white); margin: 0; line-height: 1.6; }

/* CLINICAL SPECTRUM GAUGE */
.gauge-meter-wrapper {
  margin: 2rem 0;
  padding: 0 0.5rem;
}

.gauge-indicators-row {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 1.25rem;
  min-height: 45px;
}

.ind-low, .ind-norm, .ind-high {
  display: flex;
  flex-direction: column;
}

.ind-low { text-align: left; }
.ind-norm { text-align: center; }
.ind-high { text-align: right; }

.ind-label { font-size: 0.8rem; font-weight: 700; }
.ind-range { font-size: 0.75rem; font-weight: 600; margin-top: 0.1rem; }

.ind-low .ind-label, .ind-low .ind-range { color: #E14455; }
.ind-norm .ind-label, .ind-norm .ind-range { color: #10B981; }
.ind-high .ind-label, .ind-high .ind-range { color: #E14455; }

/* PIN MARKER */
.gauge-pin-marker {
  position: absolute;
  top: -10px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: left 0.3s ease;
}

.pin-value {
  background: var(--plasma);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(225, 68, 85, 0.4);
}

.pin-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--plasma);
}

/* SPECTRUM BAR */
.gauge-gradient-bar {
  height: 10px;
  border-radius: 50px;
  display: flex;
  overflow: hidden;
  position: relative;
}

.bar-zone.low { flex: 1; background: #E14455; }
.bar-zone.norm { flex: 2; background: #10B981; }
.bar-zone.high { flex: 1; background: #E14455; }

.gauge-needle {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 3px;
  background: var(--white);
  border-radius: 2px;
  box-shadow: 0 0 8px #FFFFFF;
  transform: translateX(-50%);
  transition: left 0.3s ease;
}

.gauge-axis-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--steel);
  font-weight: 600;
}

/* CLINICAL INSIGHT CALLOUT */
.clinical-insight-card {
  background: rgba(13, 181, 195, 0.08);
  border: 1px solid rgba(13, 181, 195, 0.2);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.insight-icon-bulb { font-size: 1.25rem; }
.insight-title { display: block; font-size: 0.85rem; color: #0db5c3; margin-bottom: 0.2rem; }
.insight-text { font-size: 0.82rem; color: var(--white); margin: 0; line-height: 1.6; }

/* RIGHT COLUMN: AT A GLANCE */
.card-heading {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--plasma);
  letter-spacing: 0.06em;
  margin-top: 0;
  margin-bottom: 1rem;
}

.glance-items-list { display: flex; flex-direction: column; gap: 0.85rem; }

.glance-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.75rem;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.glance-icon-circle { font-size: 1.2rem; }

.glance-info { display: flex; flex-direction: column; }
.glance-name { font-size: 0.75rem; color: var(--steel); font-weight: 600; }
.glance-status.low { font-size: 0.9rem; font-weight: 800; color: #E14455; }
.glance-status.norm { font-size: 0.9rem; font-weight: 800; color: #10B981; }
.glance-sub { font-size: 0.7rem; color: var(--steel); }

/* QUICK ACTIONS GRID */
.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.qa-action-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 80px;
  text-align: left;
}

.qa-action-btn.purple { background: rgba(169, 92, 240, 0.1); border-color: rgba(169, 92, 240, 0.25); }
.qa-action-btn.orange { background: rgba(249, 115, 22, 0.1); border-color: rgba(249, 115, 22, 0.25); }
.qa-action-btn.green { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.25); }
.qa-action-btn.blue { background: rgba(13, 181, 195, 0.1); border-color: rgba(13, 181, 195, 0.25); }

.qa-action-btn:hover { transform: translateY(-2px); }

/* ═══════════════════════════════════════════════════════════════════
   MODE 2: ANALYZE CBC REPORT FORM & RESULTS DASHBOARD STYLES
   ═══════════════════════════════════════════════════════════════════ */
.analyze-container-card {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.analyze-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.form-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

.form-sub {
  font-size: 0.85rem;
  color: var(--steel);
  margin: 0;
}

.coverage-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0db5c3;
  background: rgba(13, 181, 195, 0.1);
  border: 1px solid rgba(13, 181, 195, 0.25);
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  flex-shrink: 0;
}

/* FORM CATEGORIES GRID */
.form-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .form-categories-grid {
    grid-template-columns: 1fr;
  }
}

.form-cat-box {
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cat-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cat-inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field-item label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--steel);
}

.field-wrap {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.4rem 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-wrap:focus-within {
  border-color: var(--plasma);
  box-shadow: 0 0 0 3px rgba(225, 68, 85, 0.2);
}

.field-wrap input,
.field-item select {
  width: 100%;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  background: transparent;
  border: none;
  outline: none;
}

.field-item select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
}

.field-wrap span {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--steel);
  flex-shrink: 0;
  margin-left: 0.5rem;
}

/* FORM ACTIONS */
.form-actions-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-primary-purple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--plasma) 0%, var(--crimson) 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(225, 68, 85, 0.35);
  transition: all 0.2s ease;
}

.btn-primary-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(225, 68, 85, 0.5);
}

.btn-outline-subtle {
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--steel);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline-subtle:hover {
  color: var(--white);
  border-color: var(--steel);
}

/* RESULTS DASHBOARD */
.analysis-results-output {
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
}

.results-banner-box {
  margin-bottom: 1.5rem;
}

.summary-badge-purple {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--plasma);
  background: rgba(225, 68, 85, 0.12);
  border: 1px solid rgba(225, 68, 85, 0.3);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
}

.results-banner-box h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 0.3rem;
}

#results-coverage-note {
  font-size: 0.82rem;
  color: var(--steel);
  margin: 0;
}

/* CELL LINE SUMMARY CARDS */
.cell-line-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 768px) {
  .cell-line-cards-row {
    grid-template-columns: 1fr;
  }
}

.cell-line-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: border-color 0.2s ease;
}

.cell-line-box.abnormal {
  border-color: rgba(225, 68, 85, 0.4);
  background: rgba(225, 68, 85, 0.05);
}

.cl-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--steel);
  letter-spacing: 0.05em;
}

.cl-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
}

.cell-line-box.abnormal .cl-val {
  color: var(--plasma);
}

.cl-detail {
  font-size: 0.75rem;
  color: var(--steel);
}

/* FINDINGS & PATTERNS GRID */
.findings-patterns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.fp-col h5 {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--steel);
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fp-badge {
  background: var(--plasma);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fp-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.finding-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--plasma);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
}

.pattern-item {
  background: rgba(13, 181, 195, 0.08);
  border: 1px solid rgba(13, 181, 195, 0.25);
  border-left: 4px solid #0db5c3;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--white);
}

/* ═══════════════════════════════════════════════════════════════════
   PREMIUM MOBILE RESPONSIVE UX OVERRIDES (< 768px)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .lab-mode-bar-container {
    padding: 0 1rem;
    overflow-x: auto;
  }

  .lab-mode-segmented {
    width: 100%;
    justify-content: space-between;
  }

  .mode-tab {
    flex: 1;
    justify-content: center;
    padding: 0.5rem 0.75rem;
  }

  .tab-sub { display: none; }
  .tab-title { font-size: 0.75rem; }

  .lab-main-wrapper {
    margin-top: 1rem;
    padding: 0 1rem;
  }

  .analyze-container-card {
    padding: 1.25rem;
  }

  .analyze-form-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .coverage-chip {
    align-self: flex-start;
  }

  .form-actions-row {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary-purple,
  .btn-outline-subtle {
    width: 100%;
    text-align: center;
  }
}


.qa-title { font-size: 0.78rem; font-weight: 700; color: var(--white); margin-top: 0.4rem; line-height: 1.3; }

/* EXPLORE HEMATOLOGY TOOLS (BOTTOM ROW) */
.explore-section-header { margin: 2.5rem 0 1rem; }
.explore-section-header .section-title { font-size: 0.8rem; font-weight: 800; color: var(--plasma); letter-spacing: 0.06em; }

.explore-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.explore-tool-card {
  border-radius: 18px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  position: relative;
  border: 1px solid var(--border);
  background: var(--bg-navy);
}

.explore-tool-card.green-tint { background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.2); }
.explore-tool-card.mint-tint { background: rgba(5, 150, 105, 0.08); border-color: rgba(5, 150, 105, 0.2); }
.explore-tool-card.blue-tint { background: rgba(13, 181, 195, 0.08); border-color: rgba(13, 181, 195, 0.2); }
.explore-tool-card.yellow-tint { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.2); }

.tool-title { font-size: 0.95rem; font-weight: 800; color: var(--white); margin: 0 0 0.3rem; }
.tool-sub { font-size: 0.78rem; color: var(--steel); margin: 0 0 1rem; line-height: 1.4; }

.steps-flow-nodes { display: flex; align-items: center; gap: 0.3rem; }
.node-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel);
}

.node-circle.active { background: #10B981; color: #FFFFFF; border-color: #10B981; }
.node-arrow { font-size: 0.7rem; color: var(--steel); }

.flc-symbol-preview .greek-symbol { font-size: 1.5rem; font-weight: 800; color: #10B981; }

.mini-spep-svg { width: 100%; height: 35px; }
.mini-labels-row { display: flex; justify-content: space-between; font-size: 0.65rem; color: var(--steel); }

.crab-puzzle-matrix { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 60px; }
.matrix-cell {
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
  color: #F59E0B;
}

.tool-action-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: #FFFFFF;
}

.tool-action-btn.green { background: #10B981; }
.tool-action-btn.mint { background: #059669; }
.tool-action-btn.blue { background: #0db5c3; }
.tool-action-btn.orange { background: #F59E0B; }

/* ═══════════════════════════════════════════════════════════════════
   PREMIUM AUTHENTICATION UX (LOGIN & REGISTRATION & ROLE STATE)
   ═══════════════════════════════════════════════════════════════════ */

/* HEADER AUTH BUTTON & DROPDOWN */
.nav-auth-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.btn-nav-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-user-initial-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF3B56 0%, #D91A38 100%);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(217, 26, 56, 0.35);
  flex-shrink: 0;
}

.nav-user-initial-badge.doctor {
  background: linear-gradient(135deg, #0DB5C3 0%, #0891B2 100%);
  box-shadow: 0 2px 6px rgba(13, 181, 195, 0.35);
}

@media (max-width: 900px) {
  .btn-nav-auth.logged-in {
    padding: 0 !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    justify-content: center !important;
  }

  .btn-nav-auth.logged-in .nav-user-initial-badge {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.88rem !important;
  }
}

.btn-nav-auth:hover {
  background: rgba(225, 68, 85, 0.12);
  border-color: rgba(225, 68, 85, 0.4);
  color: var(--plasma);
}

html[data-theme="light"] #site-header.scrolled .btn-nav-auth,
html[data-theme="light"] body.myspace-page #site-header .btn-nav-auth {
  background: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
  color: #0F172A !important;
}

html[data-theme="light"] #site-header.scrolled .auth-btn-label,
html[data-theme="light"] body.myspace-page #site-header .auth-btn-label {
  color: #0F172A !important;
}

html[data-theme="light"] #site-header:not(.scrolled) .btn-nav-auth {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #FFFFFF !important;
}

html[data-theme="light"] #site-header:not(.scrolled) .auth-btn-label {
  color: #FFFFFF !important;
}

.auth-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 230px;
  background: #0B131E;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 0.85rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

html[data-theme="light"] .auth-dropdown-menu {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.auth-user-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.65rem;
}

.user-avatar-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--plasma) 0%, var(--crimson) 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-display-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

html[data-theme="light"] .user-display-name { color: #0F172A; }

.user-role-chip {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  display: inline-block;
  margin-top: 0.15rem;
}

.user-role-chip.patient { background: rgba(13, 181, 195, 0.15); color: #0DB5C3; }
.user-role-chip.doctor { background: rgba(225, 68, 85, 0.18); color: var(--plasma); }

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.4rem 0;
}

html[data-theme="light"] .dropdown-divider { background: rgba(0, 0, 0, 0.06); }

.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #EF4444;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dropdown-item:hover { background: rgba(239, 68, 68, 0.1); }

/* AUTH MODAL OVERLAY & CONTAINER */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(4, 7, 13, 0.88);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.auth-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal-container {
  position: relative;
  width: 100%;
  max-width: 1020px;
  max-height: 90vh;
  background: #060A12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.auth-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--steel);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-close-btn:hover {
  background: rgba(225, 68, 85, 0.2);
  color: #FFFFFF;
  border-color: rgba(225, 68, 85, 0.4);
}

.auth-split-layout {
  display: flex;
  min-height: 580px;
}

/* LEFT VISUAL AREA (55%) */
.auth-left-visual {
  flex: 0 0 55%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.75rem 2.5rem;
}

#auth-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.auth-visual-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.5) 0%, rgba(6, 10, 18, 0.9) 100%);
  z-index: 2;
  pointer-events: none;
}

.auth-visual-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.auth-brand-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-brand-text {
  display: flex;
  flex-direction: column;
}

.auth-brand-text .brand-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.04em;
}

.auth-brand-text .brand-sub {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--plasma);
  letter-spacing: 0.02em;
}

.auth-emotional-copy {
  margin: auto 0;
}

.auth-headline {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.15;
  color: #FFFFFF;
  margin: 0;
}

.auth-headline.crimson {
  color: var(--plasma);
}

.auth-subcopy {
  font-size: 0.88rem;
  color: #94A3B8;
  line-height: 1.5;
  margin-top: 1rem;
  max-width: 420px;
}

.auth-visual-footer {
  padding-top: 1rem;
}

.security-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0DB5C3;
  background: rgba(13, 181, 195, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  border: 1px solid rgba(13, 181, 195, 0.25);
}

/* RIGHT AUTH PANEL (45%) */
.auth-right-panel {
  flex: 0 0 45%;
  position: relative;
  background: #0B121E;
  padding: 2.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-view {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.auth-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.auth-panel-header {
  margin-bottom: 1.5rem;
}

.auth-top-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(225, 68, 85, 0.12);
  border: 1px solid rgba(225, 68, 85, 0.25);
  color: var(--plasma);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 0.35rem 0;
}

.auth-desc {
  font-size: 0.84rem;
  color: #94A3B8;
  margin: 0;
  line-height: 1.4;
}

.auth-clinical-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--plasma);
  background: rgba(225, 68, 85, 0.15);
  border: 1px solid rgba(225, 68, 85, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* ROLE CARDS */
.auth-options-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-role-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem;
  border-radius: 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.auth-role-card.primary {
  background: linear-gradient(135deg, rgba(225, 68, 85, 0.12) 0%, rgba(13, 181, 195, 0.08) 100%);
  border: 1px solid rgba(225, 68, 85, 0.35);
}

.auth-role-card.primary:hover {
  background: linear-gradient(135deg, rgba(225, 68, 85, 0.2) 0%, rgba(13, 181, 195, 0.12) 100%);
  border-color: var(--plasma);
  transform: translateY(-1px);
}

.auth-role-card.secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-role-card.secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.role-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plasma);
  flex-shrink: 0;
}

.auth-role-card.secondary .role-card-icon { color: var(--steel); }

.role-card-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.role-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
}

.role-sub {
  font-size: 0.76rem;
  color: #94A3B8;
  margin-top: 0.15rem;
}

.role-arrow {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--plasma);
  white-space: nowrap;
}

.auth-role-card.secondary .role-arrow { color: var(--steel); }

.auth-guest-footer {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.auth-guest-btn {
  background: transparent;
  border: none;
  color: #CBD5E1;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.auth-guest-btn:hover { color: #FFFFFF; }
.auth-guest-btn strong { color: var(--plasma); }

.guest-microcopy {
  display: block;
  font-size: 0.72rem;
  color: #64748B;
  margin-top: 0.25rem;
}

/* GOOGLE & FORM STYLES */
.auth-back-link {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1rem;
  transition: color 0.2s ease;
}

.auth-back-link:hover { color: #FFFFFF; }

.auth-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: #FFFFFF;
  color: #0F172A;
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-google-btn:hover {
  background: #F8FAFC;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.25rem 0;
  color: #64748B;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.auth-divider span { padding: 0 0.65rem; }

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #E2E8F0;
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-link-forgot {
  background: transparent;
  border: none;
  font-size: 0.75rem;
  color: var(--plasma);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.btn-link-forgot:hover { text-decoration: underline; }

.auth-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #FFFFFF;
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s ease;
}

.auth-input:focus {
  border-color: var(--plasma);
  background: rgba(225, 68, 85, 0.05);
  box-shadow: 0 0 0 3px rgba(225, 68, 85, 0.15);
}

.btn-toggle-password {
  position: absolute;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
}

.btn-toggle-password:hover { color: #FFFFFF; }

.field-hint {
  font-size: 0.72rem;
  color: #94A3B8;
  margin-top: 0.2rem;
}

.auth-terms-notice {
  font-size: 0.72rem;
  color: #64748B;
  line-height: 1.4;
  margin: 0;
}

.auth-terms-notice a { color: var(--plasma); text-decoration: none; }

.auth-error-box {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.4;
}

.auth-submit-btn {
  width: 100%;
  padding: 0.8rem;
  min-height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--plasma) 0%, var(--crimson) 100%);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(225, 68, 85, 0.3);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(225, 68, 85, 0.45);
}

.auth-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-submit-btn.doctor {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.auth-submit-btn.doctor:hover:not(:disabled) {
  border-color: var(--plasma);
}

.btn-spinner {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.auth-spinner-dot {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: authSpin 0.7s linear infinite;
}

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

.auth-switch-footer {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: #94A3B8;
}

.btn-switch-action {
  background: transparent;
  border: none;
  color: var(--plasma);
  font-weight: 700;
  cursor: pointer;
  margin-left: 0.25rem;
}

.btn-switch-action:hover { text-decoration: underline; }

.auth-restriction-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: #94A3B8;
  margin-top: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.auth-success-box {
  text-align: center;
  padding: 1.5rem 0;
}

.success-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
}

.success-icon-wrap.cyan {
  background: rgba(13, 181, 195, 0.12);
  border-color: rgba(13, 181, 195, 0.3);
}

/* RESPONSIVE MOBILE UX (< 840px) */
@media (max-width: 840px) {
  .auth-modal-overlay {
    padding: 1rem 0.75rem;
  }

  .auth-split-layout {
    flex-direction: column;
    min-height: auto;
  }

  .auth-left-visual {
    display: none; /* Hide visual on mobile */
  }

  .auth-right-panel {
    flex: 1 0 100%;
    border-left: none;
    padding: 2rem 1.25rem;
    max-height: 88vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .auth-modal-container {
    max-height: 92vh;
    border-radius: 24px;
    margin: auto;
  }

  .auth-close-btn {
    top: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
  }

  /* Grid Layout for Role Cards to eliminate text squishing */
  .auth-role-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon text"
      "arrow arrow";
    gap: 0.65rem 0.85rem;
    padding: 1rem 1.15rem;
    border-radius: 16px;
  }

  .role-card-icon {
    grid-area: icon;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    align-self: start;
  }

  .role-card-text {
    grid-area: text;
    width: 100%;
  }

  .role-title {
    font-size: 0.98rem;
    font-weight: 700;
  }

  .role-sub {
    font-size: 0.78rem;
    line-height: 1.35;
    margin-top: 0.2rem;
  }

  .role-arrow {
    grid-area: arrow;
    margin-top: 0.35rem;
    padding-top: 0.55rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 0.82rem;
    font-weight: 700;
  }

  .auth-role-card.primary .role-arrow {
    color: var(--plasma);
  }

  .auth-role-card.secondary .role-arrow {
    color: #94A3B8;
  }
}

/* SMARTPHONE SPECIFIC MOBILE UX (< 600px) */
@media (max-width: 600px) {
  .auth-modal-overlay {
    padding: 0.5rem;
    align-items: flex-end; /* Bottom sheet modal feel on mobile smartphones */
  }

  .auth-modal-container {
    max-height: 92vh;
    border-radius: 24px 24px 18px 18px;
    width: 100%;
  }

  .auth-right-panel {
    padding: 1.75rem 1.15rem 1.5rem 1.15rem;
  }

  .auth-top-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 0.75rem;
  }

  .auth-title {
    font-size: 1.3rem;
  }

  .auth-desc {
    font-size: 0.82rem;
  }

  .auth-options-group {
    gap: 0.75rem;
  }

  .auth-guest-footer {
    margin-top: 1.25rem;
    padding-top: 0.85rem;
  }

  .auth-guest-btn {
    font-size: 0.84rem;
  }

  .auth-google-btn {
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
  }

  .auth-input {
    padding: 0.75rem 0.9rem;
    font-size: 0.92rem;
  }

  .auth-submit-btn {
    padding: 0.85rem;
    font-size: 0.92rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   DR. INDRANI MONDAL HIRA — MY CARE PATIENT SHELL STYLES
   ═══════════════════════════════════════════════════════════════════ */

.my-care-app-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: #060A12;
  color: #F8FAFC;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  display: flex;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.my-care-app-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.my-care-shell {
  display: flex;
  width: 100%;
  height: 100vh;
}

/* Sidebar Navigation (Desktop) */
.my-care-sidebar {
  width: 280px;
  background: #0B121E;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem;
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1), padding 0.28s ease;
  box-sizing: border-box;
  overflow-x: hidden;
}

.my-care-sidebar.collapsed {
  width: 72px;
  padding: 1.25rem 0.5rem;
}

.my-care-sidebar.collapsed .my-care-brand {
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  justify-content: center;
}

.my-care-sidebar.collapsed .brand-text {
  display: none;
}

.my-care-sidebar.collapsed .doctor-link-badge {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.5rem auto;
  overflow: hidden;
  font-size: 1rem;
}

.my-care-sidebar.collapsed .doctor-link-badge .badge-text-label {
  display: none;
}

.my-care-sidebar.collapsed .my-care-nav-menu .nav-item {
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0 auto;
  justify-content: center;
  border-radius: 12px;
}

.my-care-sidebar.collapsed .my-care-nav-menu .nav-item.active {
  background: rgba(13, 181, 195, 0.2);
  color: #0DB5C3;
  box-shadow: 0 0 14px rgba(13, 181, 195, 0.3);
}

.my-care-sidebar.collapsed .nav-label {
  display: none;
}

.my-care-sidebar.collapsed .btn-close-care {
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0 auto;
  justify-content: center;
  border-radius: 12px;
}

.my-care-sidebar.collapsed .btn-close-care span {
  display: none;
}

.my-care-brand .brand-icon {
  font-size: 1.6rem;
}

.my-care-brand .brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
}

.my-care-brand .brand-subtitle {
  font-size: 0.75rem;
  color: #94A3B8;
}

.my-care-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.my-care-brand .brand-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  white-space: nowrap;
}

.my-care-brand .brand-icon {
  font-size: 1.6rem;
}

.my-care-brand .brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
}

.my-care-brand .brand-subtitle {
  font-size: 0.75rem;
  color: #94A3B8;
}

.btn-sidebar-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-sidebar-toggle:hover {
  background: rgba(13, 181, 195, 0.15);
  color: #0DB5C3;
  border-color: rgba(13, 181, 195, 0.3);
}

/* 4-State Doctor Link Badge */
.doctor-link-badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.doctor-link-badge.badge-unlinked {
  background: rgba(148, 163, 184, 0.1);
  color: #94A3B8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.doctor-link-badge.badge-pending {
  background: rgba(234, 179, 8, 0.12);
  color: #FACC15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.doctor-link-badge.badge-active {
  background: rgba(34, 197, 94, 0.12);
  color: #4ADE80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.doctor-link-badge.badge-revoked {
  background: rgba(239, 68, 68, 0.12);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Sidebar Nav Menu */
.my-care-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.my-care-nav-menu .nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.my-care-nav-menu .nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
}

.my-care-nav-menu .nav-item.active {
  background: rgba(13, 181, 195, 0.15);
  color: #0DB5C3;
  border-left: 3px solid #0DB5C3;
}

.my-care-sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-close-care {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-close-care:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

/* Main Content Area */
.my-care-main-content {
  flex: 1;
  overflow-y: auto;
  padding: 2.5rem 3rem;
  background: #060A12;
}

.guest-banner {
  background: rgba(13, 181, 195, 0.1);
  border: 1px solid rgba(13, 181, 195, 0.3);
  color: #0DB5C3;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 2rem;
}

.pane-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

/* Today Hero Card */
.today-card-hero {
  background: #0B121E;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}

.today-card-hero .card-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #E63946;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.today-card-hero .card-empty-text {
  font-size: 1.05rem;
  color: #94A3B8;
  margin-bottom: 1.25rem;
}

.btn-care-primary {
  background: linear-gradient(135deg, #0891B2 0%, #0D9488 100%);
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(8, 145, 178, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-care-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(8, 145, 178, 0.5);
  background: linear-gradient(135deg, #06B6D4 0%, #14B8A6 100%);
}

.btn-care-primary:active {
  transform: scale(0.96);
}

/* Quick Actions */
.quick-actions-section h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94A3B8;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.action-card {
  background: #0B121E;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-card:hover {
  background: rgba(13, 181, 195, 0.1);
  border-color: rgba(13, 181, 195, 0.4);
  transform: translateY(-2px);
}

.action-card .action-icon {
  font-size: 1.25rem;
  color: #0DB5C3;
}

/* Empty Placeholders */
.empty-placeholder-card {
  background: #0B121E;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 4rem 2rem;
  text-align: center;
  margin-top: 2rem;
}

.empty-placeholder-card .placeholder-icon {
  font-size: 3rem;
  color: #94A3B8;
  display: block;
  margin-bottom: 1rem;
}

.empty-placeholder-card h3 {
  font-size: 1.25rem;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.empty-placeholder-card p {
  color: #94A3B8;
  font-size: 0.95rem;
  max-width: 440px;
  margin: 0 auto;
}

/* Profile Section Card */
.profile-section-card {
  background: #0B121E;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 1.5rem;
}

.profile-section-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.care-team-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.5rem;
}

.doctor-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.doctor-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(13, 181, 195, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.doctor-avatar-img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(230, 57, 70, 0.6);
  box-shadow: 0 0 12px rgba(230, 57, 70, 0.35);
  background: #0B121E;
}

.doc-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #FFFFFF;
}

.doc-role {
  font-size: 0.85rem;
  color: #94A3B8;
}

/* Mobile Bottom Navigation Bar */
/* ── APP DOCK MOBILE NAVIGATION BAR (FLOATING CAPSULE WITH PREMIUM ANIMATIONS) ── */
.my-care-mobile-bar {
  display: none;
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  height: 64px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 99995;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.6rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
  box-sizing: border-box;
}

.mobile-nav-item {
  position: relative;
  background: transparent;
  border: none;
  color: #94A3B8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  flex: 1;
  max-width: 68px;
  border-radius: 20px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -webkit-tap-highlight-color: transparent;
}

.mobile-svg-icon {
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
}

.mobile-active-dot {
  position: absolute;
  top: 0.3rem;
  right: 0.6rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0DB5C3;
  box-shadow: 0 0 8px #0DB5C3;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Active Mobile Tab Pill State */
.mobile-nav-item.active {
  color: #0DB5C3;
  background: rgba(13, 181, 195, 0.15);
}

.mobile-nav-item.active .mobile-svg-icon {
  transform: scale(1.15) translateY(-1px);
  stroke: #0DB5C3;
  filter: drop-shadow(0 4px 10px rgba(13, 181, 195, 0.5));
}

.mobile-nav-item.active .mobile-label {
  color: #0DB5C3;
  font-weight: 700;
}

.mobile-nav-item.active .mobile-active-dot {
  opacity: 1;
  transform: scale(1);
}

.mobile-nav-item:active {
  transform: scale(0.9);
}

/* Center Quick Add Elevated Floating Button */
.mobile-nav-item.mobile-add-btn {
  background: transparent !important;
  padding: 0;
  max-width: 52px;
  margin-top: -18px;
}

.quick-add-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D91A38 0%, #A71930 100%);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(217, 26, 56, 0.6);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-nav-item.mobile-add-btn:active .quick-add-ring,
.mobile-nav-item.mobile-add-btn:hover .quick-add-ring {
  transform: scale(1.12) rotate(90deg);
  background: linear-gradient(135deg, #FF3B56 0%, #D91A38 100%);
  box-shadow: 0 14px 36px rgba(217, 26, 56, 0.8);
}

@media (max-width: 840px) {
  .my-care-sidebar {
    display: none;
  }

  .my-care-mobile-bar {
    display: flex;
  }

  .my-care-main-content {
    padding: 1.5rem 1.25rem 5rem 1.25rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   DR. INDRANI MONDAL HIRA — PHASE 2A REPORT VAULT & VIEWER STYLES
   ═══════════════════════════════════════════════════════════════════ */

/* Toast Notification System */
.my-care-toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99999;
  background: #0B121E;
  border: 1px solid rgba(13, 181, 195, 0.4);
  color: #FFFFFF;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.my-care-toast-container.show {
  opacity: 1;
  transform: translateY(0);
}

.my-care-toast-container .toast-content {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Pane Header Flex & Category Badge */
.pane-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.75rem;
}

.pane-header-titles {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pane-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0DB5C3;
  text-transform: uppercase;
  background: rgba(13, 181, 195, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  border: 1px solid rgba(13, 181, 195, 0.25);
  width: fit-content;
}

/* Month Grouped Timeline */
.month-group-container {
  margin-bottom: 2rem;
}

.month-group-header {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0DB5C3;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.4rem;
}

.reports-card-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* ── PREMIUM APP STYLE REPORT TIMELINE CARD ────────────────────────── */
.report-timeline-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
}

.report-timeline-card:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 181, 195, 0.35);
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(13, 181, 195, 0.2);
}

/* Category SVG Avatar Badge */
.card-left-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.report-timeline-card:hover .card-left-icon {
  transform: scale(1.08);
}

.card-left-icon.rose {
  background: rgba(225, 29, 72, 0.14);
  color: #FB7185;
  border: 1px solid rgba(225, 29, 72, 0.25);
}

.card-left-icon.purple {
  background: rgba(124, 58, 237, 0.14);
  color: #C084FC;
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.card-left-icon.cyan {
  background: rgba(8, 145, 178, 0.14);
  color: #22D3EE;
  border: 1px solid rgba(8, 145, 178, 0.25);
}

.card-left-icon.blue {
  background: rgba(2, 132, 199, 0.14);
  color: #38BDF8;
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.card-left-icon.amber {
  background: rgba(217, 119, 6, 0.14);
  color: #FBBF24;
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.card-center-info {
  flex: 1;
  min-width: 0;
}

.report-test-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #F8FAFC;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.report-facility-date {
  font-size: 0.82rem;
  color: #94A3B8;
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.r-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.r-dot-sep {
  color: #475569;
}

.report-uploader-badge {
  font-size: 0.74rem;
  color: #34D399;
  font-weight: 600;
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(52, 211, 153, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.btn-view-report {
  background: rgba(13, 181, 195, 0.12);
  color: #22D3EE;
  border: 1px solid rgba(13, 181, 195, 0.3);
  padding: 0.55rem 1.1rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-view-report:hover {
  background: linear-gradient(135deg, #0891B2 0%, #0D9488 100%);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.35);
  transform: translateX(2px);
}

/* Upload Modal Styles */
.my-care-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(6, 10, 18, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.my-care-modal-overlay.hidden {
  display: none;
}

.my-care-modal-box {
  background: #0B121E;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
}

.btn-modal-close {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: 1.5rem;
}

.file-dropzone {
  border: 2px dashed rgba(13, 181, 195, 0.4);
  background: rgba(13, 181, 195, 0.04);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-dropzone:hover {
  background: rgba(13, 181, 195, 0.08);
  border-color: #0DB5C3;
}

.dz-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.dz-sub {
  font-size: 0.78rem;
  color: #94A3B8;
  display: block;
  margin-top: 0.25rem;
}

.file-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.pdf-thumbnail-canvas, .img-thumbnail-tag {
  max-height: 140px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.file-preview-name {
  font-size: 0.85rem;
  color: #4ADE80;
  font-weight: 600;
}

/* ── SPLIT SCREEN DOCUMENT VIEWER & VAULT PREVIEW ──────────────────── */
.my-care-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #040711;
  color: #F8FAFC;
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

.my-care-viewer-overlay.hidden {
  display: none;
}

.my-care-viewer-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
}

/* Header Bar */
.viewer-header {
  height: 64px;
  background: #0B132B;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.viewer-title-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-viewer-back {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #38BDF8;
  padding: 0.45rem 0.95rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-viewer-back:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
  color: #FFFFFF;
  transform: translateX(-3px);
}

.viewer-doc-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.v-doc-badge-icon {
  font-size: 1.1rem;
}

.viewer-doc-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #F8FAFC;
  letter-spacing: -0.01em;
}

.viewer-actions-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-viewer-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-viewer-action.primary-action {
  background: linear-gradient(135deg, #0891B2 0%, #0D9488 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.35);
}

.btn-viewer-action.primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8, 145, 178, 0.5);
  background: linear-gradient(135deg, #06B6D4 0%, #14B8A6 100%);
}

.btn-viewer-action.danger {
  background: rgba(225, 29, 72, 0.12);
  color: #FB7185;
  border: 1px solid rgba(225, 29, 72, 0.25);
}

.btn-viewer-action.danger:hover {
  background: rgba(225, 29, 72, 0.25);
  color: #FFFFFF;
  border-color: rgba(225, 29, 72, 0.45);
}

/* Split Layout & Canvas Stage */
.viewer-split-layout {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.viewer-left-canvas-area {
  flex: 1;
  background: radial-gradient(circle at center, #0F172A 0%, #040711 100%);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Floating Centered Toolbar */
.viewer-canvas-toolbar-wrap {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

.viewer-canvas-toolbar {
  height: 44px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 40px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.85rem;
}

.v-tool-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.v-tool-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

.v-page-indicator {
  font-size: 0.82rem;
  color: #0891B2;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  background: rgba(8, 145, 178, 0.12);
  border-radius: 12px;
}

.v-zoom-level {
  font-size: 0.8rem;
  color: #38BDF8;
  font-weight: 700;
  min-width: 42px;
  text-align: center;
}

.v-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.14);
  margin: 0 0.2rem;
}

.viewer-pdf-canvas {
  display: none;
}

.viewer-pdf-canvas.active {
  display: block;
  max-width: 100%;
}

.viewer-render-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 5.5rem 2rem 2rem 2rem;
  box-sizing: border-box;
}

/* Paper Document Preview Card */
.viewer-demo-box {
  background: #FFFFFF;
  color: #0F172A;
  padding: 2.25rem;
  border-radius: 16px;
  width: 100%;
  max-width: 620px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(226, 232, 240, 0.8);
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-doc-paper {
  display: flex;
  flex-direction: column;
}

.paper-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #E2E8F0;
}

.paper-clinic-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.paper-brand-logo {
  font-size: 1.8rem;
}

.paper-brand-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: #0F172A;
  letter-spacing: -0.01em;
}

.paper-brand-sub {
  font-size: 0.75rem;
  color: #64748B;
  font-weight: 500;
}

.paper-verified-stamp {
  font-size: 0.72rem;
  font-weight: 800;
  color: #059669;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

.paper-doc-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.5rem;
}

.paper-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.25rem;
  background: #F8FAFC;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
}

.paper-meta-item {
  font-size: 0.85rem;
  display: flex;
  gap: 0.4rem;
}

.p-meta-lbl {
  color: #64748B;
  font-weight: 500;
}

.p-meta-val {
  color: #0F172A;
  font-weight: 700;
}

.paper-divider {
  border: 0;
  height: 1px;
  background: #E2E8F0;
  margin: 1.25rem 0;
}

.demo-preview-stub {
  background: #F0F9FF;
  border: 1.5px dashed #0284C7;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  text-align: center;
}

.stub-icon-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(8, 145, 178, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.stub-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0369A1;
}

.stub-sub {
  font-size: 0.82rem;
  color: #64748B;
  margin-top: 0.25rem;
}

/* Right Metadata Details Panel */
.viewer-right-panel {
  width: 340px;
  background: #0B132B;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.75rem 1.25rem;
  overflow-y: auto;
  box-sizing: border-box;
}

.panel-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0891B2;
  margin-bottom: 1.25rem;
}

.meta-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.detail-card-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  transition: all 0.2s ease;
}

.detail-card-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}

.detail-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-card-icon.cyan {
  background: rgba(8, 145, 178, 0.18);
  color: #22D3EE;
}

.detail-card-icon.blue {
  background: rgba(2, 132, 199, 0.18);
  color: #38BDF8;
}

.detail-card-icon.purple {
  background: rgba(124, 58, 237, 0.18);
  color: #C084FC;
}

.detail-card-icon.emerald {
  background: rgba(5, 150, 105, 0.18);
  color: #34D399;
}

.detail-card-icon.green {
  background: rgba(22, 163, 74, 0.18);
  color: #4ADE80;
}

.detail-card-body {
  flex: 1;
  min-width: 0;
}

.detail-card-body label {
  font-size: 0.72rem;
  color: #94A3B8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.2rem;
}

.detail-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: #F8FAFC;
}

.detail-sub-val {
  font-size: 0.76rem;
  color: #64748B;
  margin-top: 0.15rem;
}

.truncate-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-badge-vault {
  color: #4ADE80;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Light Theme Support */
html[data-theme="light"] .my-care-viewer-overlay {
  background: #F8FAFC !important;
  color: #0F172A !important;
}

html[data-theme="light"] .viewer-header {
  background: #FFFFFF !important;
  border-bottom: 1px solid #E2E8F0 !important;
}

html[data-theme="light"] .btn-viewer-back {
  background: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
  color: #0284C7 !important;
}

html[data-theme="light"] .viewer-doc-title {
  color: #0F172A !important;
}

html[data-theme="light"] .viewer-left-canvas-area {
  background: #F1F5F9 !important;
}

html[data-theme="light"] .viewer-canvas-toolbar {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] .v-tool-btn {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  color: #475569 !important;
}

html[data-theme="light"] .v-tool-btn:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
}

html[data-theme="light"] .viewer-right-panel {
  background: #FFFFFF !important;
  border-left: 1px solid #E2E8F0 !important;
}

html[data-theme="light"] .detail-card-item {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}

html[data-theme="light"] .detail-card-item:hover {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
}

html[data-theme="light"] .detail-val {
  color: #0F172A !important;
}

/* ── DOCUMENT VIEWER MOBILE RESPONSIVENESS ────────────────────────── */
@media (max-width: 900px) {
  .viewer-split-layout {
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .viewer-left-canvas-area {
    min-height: auto;
    flex: none;
    width: 100%;
    box-sizing: border-box;
  }

  .viewer-right-panel {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow-y: visible;
    box-sizing: border-box;
  }

  html[data-theme="light"] .viewer-right-panel {
    border-top: 1px solid #E2E8F0 !important;
  }
}

@media (max-width: 640px) {
  .viewer-header {
    height: 56px;
    padding: 0 0.85rem;
    gap: 0.5rem;
  }

  .viewer-title-wrap {
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }

  .btn-viewer-back {
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    justify-content: center;
    flex-shrink: 0;
  }

  .btn-viewer-back span {
    display: none;
  }

  .viewer-doc-title-badge {
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }

  .v-doc-badge-icon {
    font-size: 1rem;
    flex-shrink: 0;
  }

  .viewer-doc-title {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  .viewer-actions-top {
    gap: 0.4rem;
    flex-shrink: 0;
  }

  .btn-viewer-action span {
    display: none;
  }

  .btn-viewer-action {
    padding: 0;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    justify-content: center;
    flex-shrink: 0;
  }

  /* Floating Canvas Toolbar on Mobile */
  .viewer-canvas-toolbar-wrap {
    top: 0.6rem;
    width: calc(100% - 1.25rem);
    max-width: 360px;
  }

  .viewer-canvas-toolbar {
    height: 40px;
    padding: 0 0.4rem;
    gap: 0.25rem;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
  }

  .v-tool-btn span {
    display: none;
  }

  .v-tool-btn {
    padding: 0.35rem;
    min-width: 28px;
    justify-content: center;
  }

  .v-page-indicator {
    font-size: 0.75rem;
    padding: 0.15rem 0.45rem;
  }

  .v-zoom-level {
    font-size: 0.75rem;
    min-width: 36px;
  }

  .v-divider {
    height: 14px;
    margin: 0 0.1rem;
  }

  /* Document Stage & Mobile Paper Container */
  .viewer-render-stage {
    padding: 3.8rem 0.5rem 1.5rem 0.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .viewer-demo-box {
    padding: 1.25rem 0.75rem !important;
    border-radius: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    margin: 0 auto !important;
  }

  .paper-header-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
    padding-bottom: 0.85rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .paper-clinic-brand {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .paper-brand-logo {
    font-size: 1.4rem !important;
    flex-shrink: 0 !important;
  }

  .paper-brand-title {
    font-size: 0.85rem !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .paper-brand-sub {
    font-size: 0.7rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .paper-verified-stamp {
    font-size: 0.68rem !important;
    padding: 0.25rem 0.55rem !important;
    align-self: flex-start !important;
  }

  .paper-doc-title {
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.75rem !important;
    word-break: break-word !important;
  }

  .paper-meta-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    padding: 0.75rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .paper-meta-item {
    font-size: 0.82rem !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .p-meta-lbl {
    color: #64748B !important;
    font-weight: 500 !important;
    flex-shrink: 0 !important;
  }

  .p-meta-val {
    color: #0F172A !important;
    font-weight: 700 !important;
    text-align: right !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 0 !important;
    flex: 1 !important;
  }

  .paper-divider {
    margin: 1rem 0 !important;
  }

  .demo-preview-stub {
    padding: 1.25rem 0.85rem;
    width: 100%;
    box-sizing: border-box;
  }

  .stub-icon-ring {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
  }

  .stub-title {
    font-size: 0.88rem;
    line-height: 1.3;
  }

  .stub-sub {
    font-size: 0.78rem;
    word-break: break-all;
  }

  /* Mobile Right Panel Stack */
  .viewer-right-panel {
    padding: 1.25rem 0.85rem;
    width: 100%;
    box-sizing: border-box;
  }

  .meta-cards-stack {
    gap: 0.75rem;
  }

  .detail-card-item {
    padding: 0.75rem 0.85rem;
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
  }

  .detail-card-icon {
    width: 32px;
    height: 32px;
  }

  .detail-val {
    font-size: 0.88rem;
    word-break: break-word;
  }
}

.profile-pane-premium {
  animation: fadeIn 0.3s ease-out;
}

.profile-grid-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.5rem;
}

.premium-card {
  background: rgba(11, 18, 30, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.premium-card:hover {
  border-color: rgba(13, 181, 195, 0.25);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.card-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #E63946;
  text-transform: uppercase;
  background: rgba(230, 57, 70, 0.1);
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  border: 1px solid rgba(230, 57, 70, 0.25);
  margin-bottom: 1.25rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E63946;
  box-shadow: 0 0 8px #E63946;
}

.doctor-profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
}

.doc-portrait-frame {
  position: relative;
  width: 90px;
  height: 90px;
}

.doc-portrait-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid rgba(13, 181, 195, 0.6);
  box-shadow: 0 0 20px rgba(13, 181, 195, 0.4);
  background: #0B121E;
}

.verified-check {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: #0DB5C3;
  color: #060A12;
  font-size: 0.72rem;
  font-weight: 900;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0B121E;
}

.doc-name-hero {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.doc-degrees {
  font-size: 0.82rem;
  color: #0DB5C3;
  font-weight: 600;
}

.doc-spec {
  font-size: 0.84rem;
  color: #94A3B8;
  margin-top: 0.1rem;
  line-height: 1.35;
}

.doc-affil {
  font-size: 0.76rem;
  color: #64748B;
  margin-top: 0.2rem;
}

.connection-status-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.1rem;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.status-label {
  font-size: 0.8rem;
  color: #94A3B8;
  font-weight: 600;
}

.status-help-text {
  font-size: 0.78rem;
  color: #64748B;
  line-height: 1.4;
  margin-top: 0.65rem;
  margin-bottom: 0;
}

/* ABDM Digital Health Identity Card */
.card-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.card-title-row .card-icon {
  font-size: 1.3rem;
}

.card-title-row h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.abha-badge-box {
  background: linear-gradient(135deg, rgba(13, 181, 195, 0.12) 0%, rgba(13, 181, 195, 0.04) 100%);
  border: 1px solid rgba(13, 181, 195, 0.25);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.abha-number {
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.05em;
}

.abha-status {
  font-size: 0.78rem;
  color: #4ADE80;
  margin-top: 0.35rem;
  font-weight: 600;
}

.privacy-seal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: #94A3B8;
}

/* Form Styles */
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group-fancy label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94A3B8;
  margin-bottom: 0.4rem;
}

.lbl-icon {
  margin-right: 0.2rem;
}

.fancy-input {
  width: 100%;
  background: rgba(6, 10, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.fancy-input:focus {
  outline: none;
  border-color: #0DB5C3;
  box-shadow: 0 0 14px rgba(13, 181, 195, 0.25);
  background: rgba(6, 10, 18, 0.9);
}

.fancy-input.disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.card-subtitle-divider {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.4rem;
}

.card-subtitle-divider span {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0DB5C3;
}

@media (max-width: 900px) {
  .profile-grid-layout {
    grid-template-columns: 1fr;
  }
  .form-row-2col {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 840px) {
  .viewer-split-layout {
    flex-direction: column;
  }
  .viewer-right-panel {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* ═══════════════════════════════════════════════════════════════════
   MY SPACE & MY CARE WORKSPACE LIGHT THEME SYSTEM
   ═══════════════════════════════════════════════════════════════════ */
html[data-theme="light"] body.myspace-page {
  background-color: #F1F5F9;
  color: #0F172A;
}

html[data-theme="light"] body.myspace-page #site-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #E2E8F0;
}

html[data-theme="light"] #my-care-app.standalone-mode {
  background: #F1F5F9 !important;
}

html[data-theme="light"] .my-care-shell {
  background: #F8FAFC;
  color: #0F172A;
}

/* Sidebar Navigation */
html[data-theme="light"] .my-care-sidebar {
  background: #FFFFFF;
  border-right: 1px solid #E2E8F0;
  color: #0F172A;
}

html[data-theme="light"] .my-care-brand .brand-title {
  color: #0F172A;
}

html[data-theme="light"] .my-care-brand .brand-subtitle {
  color: #64748B;
}

html[data-theme="light"] .btn-sidebar-toggle {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #475569;
}

html[data-theme="light"] .btn-sidebar-toggle:hover {
  background: rgba(13, 181, 195, 0.12);
  color: #0891B2;
  border-color: #0891B2;
}

html[data-theme="light"] .my-care-nav-menu .nav-item {
  color: #475569;
}

html[data-theme="light"] .my-care-nav-menu .nav-item:hover {
  background: #F1F5F9;
  color: #0F172A;
}

html[data-theme="light"] .my-care-nav-menu .nav-item.active {
  background: rgba(13, 181, 195, 0.12);
  color: #0891B2;
  box-shadow: 0 0 14px rgba(13, 181, 195, 0.2);
}

html[data-theme="light"] .my-care-sidebar-footer .btn-close-care {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

html[data-theme="light"] .my-care-sidebar-footer .btn-close-care:hover {
  background: #E2E8F0;
  color: #0F172A;
}

html[data-theme="light"] .my-care-mobile-bar {
  background: rgba(255, 255, 255, 0.92) !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .mobile-nav-item {
  color: #64748B !important;
}

html[data-theme="light"] .mobile-nav-item.active {
  color: #0891B2 !important;
}

html[data-theme="light"] .mobile-nav-item.active .mobile-svg-icon {
  stroke: #0891B2 !important;
  filter: drop-shadow(0 4px 10px rgba(8, 145, 178, 0.35)) !important;
}

html[data-theme="light"] .mobile-nav-item.active .mobile-label {
  color: #0F172A !important;
}

html[data-theme="light"] .mobile-active-dot {
  background: #0891B2 !important;
  box-shadow: 0 0 8px #0891B2 !important;
}

/* Main Workspace Content & Cards */
html[data-theme="light"] .my-care-main-content {
  background: #F8FAFC;
  color: #0F172A;
}

html[data-theme="light"] .profile-pane-premium h2,
html[data-theme="light"] .tab-pane h2 {
  color: #0F172A;
}

html[data-theme="light"] .premium-card,
html[data-theme="light"] .profile-section-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  color: #0F172A;
}

html[data-theme="light"] .premium-card-header h3,
html[data-theme="light"] .profile-section-card h3 {
  color: #0F172A;
}

html[data-theme="light"] .care-team-box,
html[data-theme="light"] .connection-status-box {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
}

html[data-theme="light"] .doc-name {
  color: #0F172A;
}

html[data-theme="light"] .doc-role,
html[data-theme="light"] .status-label {
  color: #475569;
}

html[data-theme="light"] .status-help-text {
  color: #64748B;
}

html[data-theme="light"] .abha-val {
  color: #0891B2;
}

html[data-theme="light"] .abha-label,
html[data-theme="light"] .input-field-wrap label {
  color: #475569;
}

html[data-theme="light"] .input-field-wrap input,
html[data-theme="light"] .input-field-wrap select {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  color: #0F172A;
}

html[data-theme="light"] .input-field-wrap input:focus,
html[data-theme="light"] .input-field-wrap select:focus {
  background: #FFFFFF;
  border-color: #0891B2;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

html[data-theme="light"] .card-subtitle-divider {
  border-bottom: 1px solid #E2E8F0;
}

/* Home, Records, Treatment & Visit Tabs in Light Mode */
html[data-theme="light"] .quick-action-card,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .treatment-card,
html[data-theme="light"] .visit-card,
html[data-theme="light"] .report-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  color: #0F172A;
}

html[data-theme="light"] .quick-action-title,
html[data-theme="light"] .stat-value,
html[data-theme="light"] .report-title,
html[data-theme="light"] .treatment-title,
html[data-theme="light"] .visit-title {
  color: #0F172A;
}

html[data-theme="light"] .quick-action-desc,
html[data-theme="light"] .stat-label,
html[data-theme="light"] .report-meta,
html[data-theme="light"] .treatment-meta,
html[data-theme="light"] .visit-meta {
  color: #64748B;
}

html[data-theme="light"] .hero-banner {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.08) 0%, rgba(2, 132, 199, 0.05) 100%);
  border: 1px solid rgba(8, 145, 178, 0.2);
  color: #0F172A;
}

html[data-theme="light"] .hero-banner h2 {
  color: #0F172A;
}

html[data-theme="light"] .my-care-modal-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #0F172A;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .my-care-modal-box h3 {
  color: #0F172A;
}

html[data-theme="light"] .my-care-viewer-container {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #0F172A;
}

html[data-theme="light"] .viewer-top-bar {
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}

html[data-theme="light"] .viewer-right-panel {
  background: #F8FAFC;
  border-left: 1px solid #E2E8F0;
}

html[data-theme="light"] .fancy-input,
html[data-theme="light"] .fancy-input[disabled],
html[data-theme="light"] .fancy-input.disabled,
html[data-theme="light"] input.fancy-input,
html[data-theme="light"] select.fancy-input {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #0F172A !important;
}

html[data-theme="light"] .fancy-input[disabled],
html[data-theme="light"] .fancy-input.disabled {
  background: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
  color: #64748B !important;
  opacity: 1 !important;
}

html[data-theme="light"] .fancy-input:focus {
  background: #FFFFFF !important;
  border-color: #0891B2 !important;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15) !important;
}

html[data-theme="light"] select.fancy-input option {
  background: #FFFFFF !important;
  color: #0F172A !important;
}

html[data-theme="light"] .doc-name-hero {
  color: #0F172A;
}

html[data-theme="light"] .doc-spec {
  color: #475569;
}

html[data-theme="light"] .form-group-fancy label {
  color: #475569;
}

html[data-theme="light"] .connection-status-box {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
}

html[data-theme="light"] .doctor-link-badge.badge-unlinked {
  background: #F1F5F9 !important;
  color: #64748B !important;
  border: 1px solid #CBD5E1 !important;
}

html[data-theme="light"] .doctor-link-badge.badge-pending {
  background: rgba(234, 179, 8, 0.15) !important;
  color: #A16207 !important;
  border: 1px solid rgba(234, 179, 8, 0.4) !important;
}

html[data-theme="light"] .doctor-link-badge.badge-active {
  background: rgba(34, 197, 94, 0.15) !important;
  color: #15803D !important;
  border: 1px solid rgba(34, 197, 94, 0.4) !important;
}

html[data-theme="light"] .doctor-link-badge.badge-revoked {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #B91C1C !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
}

html[data-theme="light"] .privacy-seal {
  color: #64748B;
}

html[data-theme="light"] .card-title-row h3 {
  color: #0F172A !important;
}

html[data-theme="light"] .abha-badge-box {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.08) 0%, rgba(8, 145, 178, 0.03) 100%) !important;
  border: 1px solid rgba(8, 145, 178, 0.25) !important;
}

html[data-theme="light"] .abha-number {
  color: #0F172A !important;
}

html[data-theme="light"] .abha-status {
  color: #166534 !important;
}

/* My Space Page Header Light Mode Overrides */
html[data-theme="light"] body.myspace-page #site-header .logo-name {
  color: #0F172A !important;
}

html[data-theme="light"] body.myspace-page #site-header .logo-sub {
  color: #D91A38 !important;
}

html[data-theme="light"] body.myspace-page #site-header .btn-nav-auth,
html[data-theme="light"] body.myspace-page #site-header .auth-btn-label {
  color: #0F172A !important;
  border-color: rgba(15, 23, 42, 0.2) !important;
  background: rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] body.myspace-page #site-header .theme-toggle {
  color: #0F172A !important;
  border-color: rgba(15, 23, 42, 0.2) !important;
  background: rgba(15, 23, 42, 0.05) !important;
}

/* Today Card Hero & Quick Actions Light Mode Overrides */
html[data-theme="light"] .today-card-hero {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .today-card-hero .card-title {
  color: #D91A38 !important;
}

html[data-theme="light"] .today-card-hero .card-empty-text {
  color: #475569 !important;
}

html[data-theme="light"] .quick-actions-section h3 {
  color: #64748B !important;
}

html[data-theme="light"] .action-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  color: #0F172A !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03) !important;
}

html[data-theme="light"] .action-card:hover {
  background: rgba(8, 145, 178, 0.06) !important;
  border-color: rgba(8, 145, 178, 0.4) !important;
  box-shadow: 0 4px 16px rgba(8, 145, 178, 0.12) !important;
}

html[data-theme="light"] .action-card .action-icon {
  color: #0891B2 !important;
}

html[data-theme="light"] .empty-placeholder-card {
  background: #FFFFFF !important;
  border: 1px dashed #CBD5E1 !important;
  color: #475569 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03) !important;
}

html[data-theme="light"] .empty-placeholder-card h3 {
  color: #0F172A !important;
}

html[data-theme="light"] .empty-placeholder-card p {
  color: #64748B !important;
}

html[data-theme="light"] .tab-pane h2 {
  color: #0F172A !important;
}

html[data-theme="light"] .tab-pane p,
html[data-theme="light"] .tab-pane .text-muted {
  color: #64748B !important;
}

/* Month Grouped Reports Timeline Light Mode Overrides */
html[data-theme="light"] .month-group-header {
  color: #0891B2 !important;
  border-bottom: 1px solid #E2E8F0 !important;
}

html[data-theme="light"] .report-timeline-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .report-timeline-card:hover {
  background: #FFFFFF !important;
  border-color: rgba(8, 145, 178, 0.35) !important;
  box-shadow: 0 10px 28px rgba(8, 145, 178, 0.12) !important;
}

html[data-theme="light"] .report-test-title {
  color: #0F172A !important;
}

html[data-theme="light"] .report-facility-date {
  color: #64748B !important;
}

html[data-theme="light"] .r-dot-sep {
  color: #CBD5E1 !important;
}

html[data-theme="light"] .report-uploader-badge {
  color: #059669 !important;
  background: #ECFDF5 !important;
  border-color: #A7F3D0 !important;
}

html[data-theme="light"] .btn-view-report {
  background: rgba(8, 145, 178, 0.08) !important;
  color: #0891B2 !important;
  border: 1px solid rgba(8, 145, 178, 0.25) !important;
}

html[data-theme="light"] .btn-view-report:hover {
  background: linear-gradient(135deg, #0891B2 0%, #0D9488 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.3) !important;
}

html[data-theme="light"] .pane-header-flex {
  border-bottom: 1px solid #E2E8F0 !important;
}

html[data-theme="light"] .pane-category-badge {
  color: #0891B2 !important;
  background: rgba(8, 145, 178, 0.08) !important;
  border-color: rgba(8, 145, 178, 0.25) !important;
}

/* Mobile Responsiveness for Report Card & Header */
@media (max-width: 640px) {
  .pane-header-flex {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    padding-bottom: 1rem !important;
    margin-bottom: 1.25rem !important;
  }

  .btn-care-primary {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.88rem !important;
  }

  .report-timeline-card {
    padding: 1rem !important;
    gap: 0.85rem !important;
    flex-wrap: wrap !important;
  }

  .card-left-icon {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
  }

  .report-test-title {
    font-size: 0.95rem !important;
  }

  .card-right-action {
    width: 100% !important;
    margin-top: 0.25rem !important;
    display: flex !important;
    justify-content: flex-end !important;
  }

  .btn-view-report {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.55rem !important;
  }
}

/* ── LANGUAGE SELECTOR CAPSULE ─────────────────────────────────────── */
.lang-selector {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.65rem;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.lang-btn:hover {
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.08);
}

.lang-btn.active {
  background: linear-gradient(135deg, #0891B2 0%, #0D9488 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(8, 145, 178, 0.35);
}

/* Light Theme Overrides for Language Selector */
html[data-theme="light"] .lang-selector {
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
}

html[data-theme="light"] .lang-btn {
  color: #64748B !important;
}

html[data-theme="light"] .lang-btn:hover {
  color: #0F172A !important;
  background: rgba(226, 232, 240, 0.8) !important;
}

html[data-theme="light"] .lang-btn.active {
  background: linear-gradient(135deg, #0891B2 0%, #0D9488 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(8, 145, 178, 0.25) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   VAULT UPLOAD PROGRESS OVERLAY (PHASE 2A)
   ═══════════════════════════════════════════════════════════════════ */
.vault-progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(5, 8, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInOverlay 0.3s ease-out;
}
.vault-progress-overlay.hidden { display: none; }

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.vault-progress-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(8, 18, 30, 0.98));
  border: 1px solid rgba(8, 145, 178, 0.25);
  border-radius: 20px;
  padding: 40px 48px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(8, 145, 178, 0.08);
  animation: scaleInCard 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleInCard {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.vault-progress-icon {
  margin-bottom: 16px;
  animation: floatUpload 1.5s ease-in-out infinite;
}

@keyframes floatUpload {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.vault-progress-title {
  font-family: 'Inter', 'Manrope', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #F1F5F9;
  margin-bottom: 20px;
}

.vault-progress-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 12px;
}

.vault-progress-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #0891B2 0%, #06B6D4 40%, #22D3EE 80%, #67E8F9 100%);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.vault-progress-bar-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 24px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
  border-radius: 0 99px 99px 0;
  animation: shimmerBar 1.2s ease-in-out infinite;
}

@keyframes shimmerBar {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

.vault-progress-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.vault-progress-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vault-progress-pct {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #22D3EE;
}

.vault-progress-hint {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #64748B;
  margin-top: 4px;
}

/* Light theme overrides */
html[data-theme="light"] .vault-progress-overlay {
  background: rgba(241, 245, 249, 0.88);
}
html[data-theme="light"] .vault-progress-card {
  background: linear-gradient(145deg, #FFFFFF, #F8FAFC);
  border-color: rgba(8, 145, 178, 0.18);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}
html[data-theme="light"] .vault-progress-title { color: #0F172A; }
html[data-theme="light"] .vault-progress-bar-track { background: rgba(0, 0, 0, 0.06); }
html[data-theme="light"] .vault-progress-label { color: #64748B; }
html[data-theme="light"] .vault-progress-pct { color: #0891B2; }
html[data-theme="light"] .vault-progress-hint { color: #94A3B8; }