@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&display=swap');

/* ==========================================================================
   BINAFARM CLINICAL BLUE EDITION (Modern MedTech & Clean Hospital Clinic)
   Sistem de Design Dual: MedTech Dark (Obsidian Navy & Cyan) + Clinic Light (Pure White & Hospital Blue)
   ========================================================================== */

:root, [data-theme="dark"], body.theme-dark {
  /* Paletă Culori Fundal & Suprafețe - Deep Medical Navy & Obsidian */
  --bg-void-black: #070d1e;
  --surface-container-lowest: #0a1329;
  --surface-container-low: #0f1c3d;
  --surface-container: #14244d;
  --surface-container-high: #1b2f63;
  --surface-container-highest: #233c7c;

  /* Culori Principale Medical Blue & Electric Cyan */
  --color-gold-primary: #00a6fb;
  --color-gold-bright: #38bdf8;
  --color-gold-dim: #0284c7;
  --color-gold-dark: #0369a1;
  --color-gold-glow: rgba(0, 166, 251, 0.28);

  /* Culori Terțiare & Vitalitate (Mint/Teal Medical) */
  --color-vitality: #059669;
  --color-vitality-light: #34d399;
  --color-vitality-bright: #6ee7b7;

  /* Text & Contraste */
  --text-on-surface: #f0f6fc;
  --text-on-surface-muted: #cbd5e1;
  --text-dim: #94a3b8;

  /* Sticlă & Sticlire (Glassmorphic MedTech) */
  --glass-bg: rgba(11, 19, 43, 0.65);
  --glass-card: rgba(15, 28, 61, 0.72);
  --glass-blur: blur(20px);
  --glass-blur-heavy: blur(40px);
  --border-gold-subtle: rgba(56, 189, 248, 0.22);
  --border-gold-bright: rgba(0, 166, 251, 0.55);
  --border-glass: rgba(255, 255, 255, 0.1);

  /* Dimensiuni & Raza */
  --max-width: 1440px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Animații */
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ☀️ LIGHT HOSPITAL / CLEAN CLINIC THEME */
[data-theme="light"], body.theme-light {
  --bg-void-black: #f8fafc;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #ffffff;
  --surface-container: #f1f5f9;
  --surface-container-high: #e2e8f0;
  --surface-container-highest: #cbd5e1;

  --color-gold-primary: #0284c7;
  --color-gold-bright: #0369a1;
  --color-gold-dim: #0284c7;
  --color-gold-dark: #075985;
  --color-gold-glow: rgba(2, 132, 199, 0.16);

  --color-vitality: #0d9488;
  --color-vitality-light: #0d9488;
  --color-vitality-bright: #14b8a6;

  --text-on-surface: #0f172a;
  --text-on-surface-muted: #334155;
  --text-dim: #64748b;

  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-card: rgba(255, 255, 255, 0.96);
  --glass-blur: blur(20px);
  --glass-blur-heavy: blur(40px);
  --border-gold-subtle: rgba(2, 132, 199, 0.18);
  --border-gold-bright: rgba(2, 132, 199, 0.45);
  --border-glass: rgba(15, 23, 42, 0.08);
}

/* Reset & Bază */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-void-black);
  color: var(--text-on-surface);
  scroll-behavior: smooth;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background: var(--bg-void-black);
  min-height: 100vh;
}

/* Elemente Tipografice */
h1, h2, h3, h4, .font-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--text-on-surface);
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

/* Degradé Auriu pentru Text */
.gold-gradient-text, .text-gold-gradient {
  background: linear-gradient(135deg, var(--color-gold-bright) 0%, var(--color-gold-primary) 50%, var(--color-gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gold { color: var(--color-gold-primary); }
.text-dim { color: var(--text-dim); }
.text-vitality { color: var(--color-vitality-light); }

/* Panou Sticlă Glassmorphic Zenith */
.glass-panel {
  background: rgba(18, 18, 18, 0.45);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--border-gold-bright);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 20px var(--color-gold-glow);
}

/* Glow Auriu Ambiental */
.ambient-gold-glow {
  position: relative;
}

.ambient-gold-glow::before {
  content: '';
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}

/* Carduri Medicale Standardizate */
.bina-card {
  background: var(--surface-container-low);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bina-card:hover {
  border-color: var(--color-gold-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.7), 0 0 15px var(--color-gold-glow);
}

.bina-card > .btn-gold,
.bina-card > .btn-outline-gold,
.bina-card > .btn-primary,
.bina-card > a[class*="btn-"],
.bina-card > button[class*="btn-"],
.bina-card .card-cta-btn,
.bina-card .card-body > a[class*="btn-"],
.bina-card .card-body > button[class*="btn-"] {
  margin-top: auto;
}

/* Carduri Foto Medicale Uniforme */
.bina-card.photo-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.photo-card .card-photo-wrap {
  position: relative;
  width: 100%;
  height: 185px;
  overflow: hidden;
  background: #080704;
  flex-shrink: 0;
}

.photo-card .card-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.photo-card:hover .card-photo-wrap img {
  transform: scale(1.06);
}

.photo-card .card-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(25, 21, 13, 0.92) 100%);
  pointer-events: none;
}

.photo-card .card-photo-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.photo-card .card-photo-icon {
  position: absolute;
  bottom: 12px;
  left: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(17, 14, 7, 0.88);
  border: 1px solid var(--border-gold-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.photo-card .card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Material Symbols Icon Safety */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  vertical-align: middle;
}

/* Embleme & Iconițe */
.logo-emblem {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 166, 251, 0.08);
  border: 1px solid var(--border-gold-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

/* Butoane de Acțiune VIP */
.btn-gold, .btn-primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: var(--transition-fast);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.25);
}

.btn-gold:hover, .btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 166, 251, 0.4);
}

.btn-outline-gold {
  background: transparent;
  color: var(--color-gold-primary);
  border: 1px solid var(--color-gold-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-outline-gold:hover {
  background: rgba(0, 166, 251, 0.08);
  box-shadow: 0 0 12px var(--color-gold-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-on-surface-muted);
  border: none;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-ghost:hover {
  color: var(--color-gold-primary);
}

/* Insigne / Badges */
.bina-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 166, 251, 0.12);
  border: 1px solid var(--color-gold-dim);
  color: var(--color-gold-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
}

.bina-badge-vitality {
  background: rgba(155, 219, 201, 0.12);
  border-color: var(--color-vitality-light);
  color: var(--color-vitality-bright);
}

.label-caps {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-primary);
}

/* Modul Senior "Vedere Clară" */
body.vedere-clara {
  background-color: #000000 !important;
  color: #ffffff !important;
  font-size: 115% !important;
}

body.vedere-clara .bina-card,
body.vedere-clara .glass-panel {
  background: #111111 !important;
  border: 2px solid #00a6fb !important;
}

body.vedere-clara h1, body.vedere-clara h2, body.vedere-clara h3,
body.vedere-clara p, body.vedere-clara span, body.vedere-clara a {
  color: #ffffff !important;
}

body.vedere-clara .text-gold,
body.vedere-clara .gold-gradient-text {
  color: #38bdf8 !important;
  -webkit-text-fill-color: initial !important;
}

/* Canvas background WebGL */
#bina-shader-wrap {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

#bina-shader-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Meniu Mobil Drawer & Buton Hamburger */
.mobile-menu-btn {
  display: none;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-sm);
  color: var(--color-gold-primary);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
  padding: 0;
}

.mobile-menu-btn:hover, .mobile-menu-btn:active {
  background: var(--color-gold-primary);
  color: #050505;
  box-shadow: 0 0 15px var(--color-gold-glow);
}

.mobile-menu-drawer {
  position: fixed;
  inset: 0;
  background: rgba(17, 14, 7, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.8rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-menu-drawer.drawer-open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-gold-subtle);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mobile-nav-links a {
  color: var(--text-on-surface);
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.85rem 0.5rem;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.mobile-nav-links a:hover, .mobile-nav-links a:active {
  background: rgba(2, 132, 199, 0.08);
  color: var(--color-gold-primary);
  padding-left: 0.8rem;
}

/* Fixed Mobile Bottom Navigation Bar */












@media (max-width: 1024px) {
  nav.bina-nav {
    display: none !important;
  }
  .nav-desktop-only {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
}

/* Luxury Social Links */
.social-links-wrap {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gold-subtle);
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12), rgba(28, 24, 17, 0.85));
  color: var(--color-gold-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  position: relative;
}

.social-icon-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease, filter 0.25s ease;
  fill: currentColor;
}

.social-icon-btn:hover {
  background: var(--gradient-gold);
  color: #050505;
  border-color: var(--color-gold-bright);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 16px var(--color-gold-glow);
}

.social-icon-btn:hover svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

/* Hero Search & Quick Tags */
.hero-search-wrap {
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-search-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(31, 27, 19, 0.85);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.6rem 0.45rem 1rem;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

.hero-search-box:focus-within {
  border-color: var(--color-gold-primary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 15px var(--color-gold-glow);
}

.hero-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-on-surface);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
}

.hero-search-input::placeholder {
  color: var(--text-dim);
}

.quick-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.65rem;
  color: var(--color-gold-bright);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 500;
  transition: var(--transition-fast);
  cursor: pointer;
}

.quick-tag:hover {
  background: var(--color-gold-primary);
  color: #050505;
  border-color: var(--color-gold-primary);
}

/* Google Maps Embed Container */
.map-embed-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-gold-subtle);
  background: #110e07;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
}

.map-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: contrast(1.15) brightness(0.92) saturate(0.9);
  transition: filter 0.3s ease;
}

.map-embed-wrapper:hover iframe {
  filter: none;
}

/* Gateway Cards EasyMedical */
.gateway-slider-wrapper {
  position: relative;
  width: 100%;
}

.gateway-slider-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.gateway-card {
  background: rgba(31, 27, 19, 0.75);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition-smooth);
  box-sizing: border-box;
}

.gateway-card:hover {
  background: var(--surface-container-high);
  border-color: var(--color-gold-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 20px var(--color-gold-glow);
}

.gateway-slider-controls {
  display: none;
}

@media (max-width: 992px) {
  .gateway-slider-track {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0.5rem 1rem;
    margin: 0;
  }

  .gateway-slider-track::-webkit-scrollbar {
    display: none;
  }

  .gateway-slide {
    flex: 0 0 88%;
    max-width: 88%;
    min-width: 290px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 2rem 1.6rem;
  }

  .gateway-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 0.8rem;
  }

  .gateway-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #19150d;
    border: 1.5px solid var(--color-gold-primary);
    color: var(--color-gold-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
  }

  .gateway-nav-btn:active {
    background: var(--color-gold-primary);
    color: #050505;
    transform: scale(0.95);
  }

  .gateway-slider-dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .gateway-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition-fast);
    cursor: pointer;
  }

  .gateway-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--color-gold-primary);
    box-shadow: 0 0 8px var(--color-gold-glow);
  }
}

/* Header Portal Buttons */
.header-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-sm);
  color: var(--color-gold-bright);
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.header-portal-btn:hover {
  background: rgba(2, 132, 199, 0.18);
  border-color: var(--color-gold-primary);
  color: #ffffff;
  box-shadow: 0 0 12px var(--color-gold-glow);
  transform: translateY(-1px);
}

.header-portal-medic {
  background: rgba(155, 219, 201, 0.06);
  border-color: rgba(155, 219, 201, 0.2);
  color: var(--color-vitality-light);
}

.header-portal-medic:hover {
  background: rgba(155, 219, 201, 0.15);
  border-color: var(--color-vitality-light);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(155, 219, 201, 0.3);
}

.nav-link.nav-active {
  color: var(--color-gold-primary) !important;
  border-bottom: 2px solid var(--color-gold-primary);
}

/* ==================== Q&A / FAQ ACCORDION SECTION STYLES ==================== */
.bina-faq-wrap {
  margin: 4rem auto;
  max-width: var(--max-width);
  padding: 0 1.5rem;
}

.faq-accordion-item {
  background: var(--glass-card);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-accordion-item:hover {
  border-color: var(--color-gold-primary);
  background: rgba(2, 132, 199, 0.04);
}

.faq-accordion-item.faq-open {
  border-color: var(--color-gold-bright);
  background: rgba(2, 132, 199, 0.07);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-on-surface);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  gap: 1rem;
}

.faq-question-btn .faq-icon {
  color: var(--color-gold-primary);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 22px;
  flex-shrink: 0;
}

.faq-accordion-item.faq-open .faq-icon {
  transform: rotate(180deg);
  color: var(--color-gold-bright);
}

.faq-answer-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
  padding: 0 1.5rem;
  color: var(--text-on-surface-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-accordion-item.faq-open .faq-answer-content {
  max-height: 500px;
  padding: 0 1.5rem 1.4rem 1.5rem;
}

/* ==================== BINAFARM TOPBAR & HEADER ==================== */
.bina-topbar {
  background: #0d0b07;
  border-bottom: 1px solid rgba(2, 132, 199, 0.15);
  color: var(--text-on-surface-muted);
  font-size: 0.82rem;
  padding: 0.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  position: relative;
  z-index: 1001;
}

.bina-topbar a {
  color: var(--color-gold-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
}

.bina-topbar a:hover {
  color: var(--color-gold-bright);
  text-decoration: underline;
}

.bina-topbar .material-symbols-outlined {
  font-size: 15px;
  vertical-align: -2px;
  color: var(--color-gold-primary);
}

.bina-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(11, 9, 5, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-gold-subtle);
  transition: background-color 0.3s ease;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

.bina-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: nowrap;
}

.bina-nav a, .nav-link {
  color: var(--text-on-surface-muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.4rem 0.2rem;
  transition: var(--transition-fast);
  white-space: nowrap;
  position: relative;
}

.bina-nav a:hover, .bina-nav a.nav-link-active, .bina-nav a.nav-active {
  color: var(--color-gold-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.header-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid var(--color-gold-primary);
  color: var(--color-gold-bright);
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
  box-sizing: border-box;
  max-width: 100%;
}

.header-portal-btn:hover {
  background: rgba(2, 132, 199, 0.2);
  border-color: var(--color-gold-bright);
  color: #ffffff;
  box-shadow: 0 0 12px var(--color-gold-glow);
}

.header-portal-medic {
  background: rgba(155, 219, 201, 0.1);
  border-color: var(--color-vitality-light);
  color: var(--color-vitality-light);
}

.header-portal-medic:hover {
  background: rgba(155, 219, 201, 0.2);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(155, 219, 201, 0.3);
}

@media (max-width: 1100px) {
  .bina-nav {
    display: none !important;
  }
  .nav-desktop-only {
    display: none !important;
  }
  .mobile-menu-btn {
    display: inline-flex !important;
  }
  .bina-topbar {
    display: none;
  }
}


/* ==================== FLOATING CONSILIER CLINIC WIDGET (BOTTOM-LEFT) ==================== */
.floating-assistant-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface-container-high);
  border: 1.5px solid var(--color-gold-primary);
  color: var(--text-on-surface);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(2, 132, 199, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.floating-assistant-btn:hover {
  background: var(--color-gold-primary);
  color: #070d1e;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.85), 0 0 25px var(--color-gold-glow);
  transform: translateY(-3px);
}

.floating-assistant-btn .material-symbols-outlined {
  font-size: 20px;
  color: var(--color-gold-primary);
  transition: var(--transition-fast);
}

.floating-assistant-btn:hover .material-symbols-outlined {
  color: #070d1e;
}

[data-theme="light"] .floating-assistant-btn {
  background: #ffffff;
  border-color: #0284c7;
  color: #0f172a;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.15);
}

[data-theme="light"] .floating-assistant-btn:hover {
  background: #0284c7;
  color: #ffffff;
}

[data-theme="light"] .floating-assistant-btn .material-symbols-outlined {
  color: #0284c7;
}

[data-theme="light"] .floating-assistant-btn:hover .material-symbols-outlined {
  color: #ffffff;
}

.pulsing-status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}


/* ==================== MODUL HĂRȚI & TRANSPORT HUB ==================== */
.map-embed-wrapper {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-gold-subtle);
  background: var(--surface-container-lowest);
  box-shadow: 0 12px 35px rgba(0,0,0,0.6);
}

#bina-interactive-map {
  width: 100%;
  height: 100%;
  background: #110e07;
}

/* Custom dark styling for Leaflet tiles if default tiles are used */
.leaflet-dark-tiles .leaflet-tile-pane {
  filter: brightness(0.7) invert(1) contrast(2.6) hue-rotate(200deg) saturate(0.3) brightness(0.7);
}

.leaflet-popup-content-wrapper {
  background: rgba(22, 19, 11, 0.95) !important;
  color: var(--text-on-surface) !important;
  border: 1px solid var(--color-gold-primary) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px rgba(2, 132, 199, 0.3) !important;
  backdrop-filter: blur(12px) !important;
}

.leaflet-popup-tip {
  background: rgba(22, 19, 11, 0.95) !important;
  border: 1px solid var(--color-gold-primary) !important;
}

.leaflet-container a.leaflet-popup-close-button {
  color: var(--color-gold-primary) !important;
  padding: 6px !important;
}

.transport-tab-btn {
  background: rgba(31, 27, 19, 0.6);
  border: 1px solid var(--border-gold-subtle);
  color: var(--text-on-surface-muted);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.transport-tab-btn:hover {
  background: rgba(45, 38, 25, 0.8);
  color: #fff;
  border-color: var(--color-gold-primary);
}

.transport-tab-btn.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.2), rgba(3, 105, 161, 0.3));
  border-color: var(--color-gold-primary);
  color: var(--color-gold-bright);
}

.transport-tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.transport-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== CONSILIER CLINIC PROFESIONAL (AI MEDICAL GRADE) ==================== */
.clinical-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}

.clinical-badge-preanalytic {
  background: rgba(155, 219, 201, 0.15);
  color: var(--color-vitality-light);
  border: 1px solid rgba(155, 219, 201, 0.3);
}

.clinical-badge-triage {
  background: rgba(0, 166, 251, 0.15);
  color: var(--color-gold-bright);
  border: 1px solid rgba(0, 166, 251, 0.35);
}

.clinical-badge-biomarker {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.clinical-action-card {
  margin-top: 0.9rem;
  padding: 0.85rem 1rem;
  background: rgba(17, 14, 7, 0.7);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.clinical-typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.5rem 1rem;
  background: rgba(31, 27, 19, 0.8);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  color: var(--color-gold-bright);
}

.clinical-typing-dot {
  width: 6px;
  height: 6px;
  background: var(--color-gold-primary);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.clinical-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.clinical-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   MODUL DOSAR PERSONAL PACIENT & CONFIGURATOR TELEMETRIE (2026)
   ========================================================================== */
.patient-profile-container {
  background: linear-gradient(145deg, rgba(31, 27, 19, 0.85), rgba(18, 14, 8, 0.95));
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(2, 132, 199, 0.08);
  position: relative;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.patient-profile-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold-primary), var(--color-vitality-light), transparent);
}

.profile-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--border-gold-subtle);
  padding-bottom: 1.2rem;
}

.profile-preset-list {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.preset-pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-on-surface-muted);
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.preset-pill-btn:hover {
  background: rgba(2, 132, 199, 0.12);
  border-color: var(--color-gold-primary);
  color: #fff;
  transform: translateY(-1px);
}

.preset-pill-btn.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25), rgba(3, 105, 161, 0.3));
  border-color: var(--color-gold-bright);
  color: var(--color-gold-bright);
  font-weight: 600;
  box-shadow: 0 0 12px var(--color-gold-glow);
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  margin-bottom: 1.8rem;
}

.profile-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.profile-field-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-field-input {
  background: rgba(17, 14, 7, 0.8);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition-fast);
}

.profile-field-input:focus {
  outline: none;
  border-color: var(--color-gold-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  background: rgba(25, 20, 10, 0.95);
}

.bio-age-box {
  background: linear-gradient(135deg, rgba(0, 77, 64, 0.35), rgba(16, 185, 129, 0.1));
  border: 1px solid var(--color-vitality-light);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.bio-age-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-vitality-light);
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1;
}

/* Toast Notifications */
.bina-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.bina-toast {
  background: linear-gradient(135deg, rgba(28, 24, 15, 0.96), rgba(17, 14, 7, 0.98));
  border: 1px solid var(--color-gold-primary);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.4rem;
  color: #fff;
  font-size: 0.88rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px var(--color-gold-glow);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(50px) scale(0.9); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastSlideOut {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to { opacity: 0; transform: translateX(50px) scale(0.9); }
}

.dosar-sync-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-vitality-light);
  box-shadow: 0 0 8px var(--color-vitality-light);
  animation: pulseLight 1.8s infinite;
}

@keyframes pulseLight {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}


/* ==========================================================================
   THEME SWITCHER DOCK & LIGHT MODE CLINICAL OVERRIDES
   ========================================================================== */

/* Floating Theme Switcher Dock */
.bina-theme-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-dock-inner {
  background: var(--glass-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-gold-bright);
  border-radius: var(--radius-full);
  padding: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 20px var(--color-gold-glow);
  transition: var(--transition-smooth);
}

.theme-dock-inner:hover {
  transform: translateY(-2px);
  border-color: var(--color-gold-bright);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55), 0 0 25px var(--color-gold-glow);
}

.bina-theme-switcher-btn {
  background: transparent;
  color: var(--text-on-surface);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.55rem 1.1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.bina-theme-switcher-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  color: var(--color-gold-bright);
}

.bina-theme-switcher-btn .theme-icon {
  font-size: 20px;
  color: var(--color-gold-primary);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bina-theme-switcher-btn:hover .theme-icon {
  transform: rotate(30deg) scale(1.1);
}

.theme-badge-pill {
  background: var(--color-gold-primary);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

[data-theme="light"] .theme-badge-pill {
  background: #0284c7;
  color: #ffffff;
}

/* Toast Message */
.bina-theme-toast-msg {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--surface-container-highest);
  color: var(--text-on-surface);
  border: 1px solid var(--color-gold-primary);
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 10000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bina-theme-toast-msg.toast-active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Light Theme Card & Header Overrides */
[data-theme="light"] body {
  background-color: #f8fafc;
  color: #0f172a;
}

[data-theme="light"] .bina-card {
  background: #ffffff;
  border-color: rgba(2, 132, 199, 0.16);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .bina-card:hover {
  border-color: #0284c7;
  box-shadow: 0 14px 30px rgba(2, 132, 199, 0.12), 0 0 12px rgba(2, 132, 199, 0.15);
}

[data-theme="light"] .glass-panel {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(2, 132, 199, 0.18);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] header.main-header,
[data-theme="light"] .bina-topbar {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom-color: rgba(2, 132, 199, 0.15);
}

[data-theme="light"] 

[data-theme="light"] .mobile-menu-drawer {
  background: rgba(248, 250, 252, 0.98) !important;
}

[data-theme="light"] .footer-section {
  background: #f1f5f9;
  border-top-color: rgba(2, 132, 199, 0.15);
}

[data-theme="light"] .btn-gold,
[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

[data-theme="light"] .btn-outline-gold {
  color: #0284c7;
  border-color: #0284c7;
}

[data-theme="light"] .btn-outline-gold:hover {
  background: rgba(2, 132, 199, 0.08);
}

/* ==========================================================================
   HEADER, LOGO & THEME SWITCHER - DUAL THEME PERFECTION
   ========================================================================== */

header.bina-header, header.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 13, 30, 0.92) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.22) !important;
  padding: 0.85rem 1.8rem;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="light"] header.bina-header,
[data-theme="light"] header.main-header {
  background: rgba(255, 255, 255, 0.97) !important;
  border-bottom: 1px solid rgba(2, 132, 199, 0.2) !important;
  box-shadow: 0 4px 25px rgba(15, 23, 42, 0.07) !important;
}

.bina-topbar {
  background: #050a17 !important;
  color: #cbd5e1 !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15) !important;
  font-size: 0.82rem;
  padding: 0.45rem 1.8rem;
  transition: all 0.3s ease;
}

[data-theme="light"] .bina-topbar {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border-bottom: 1px solid rgba(2, 132, 199, 0.15) !important;
}

[data-theme="light"] .bina-topbar a {
  color: #0284c7 !important;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo-wrap .logo-dark-theme { display: inline-block !important; height: 38px; width: auto; }
[data-theme="light"] .logo-dark-theme { display: none !important; }
[data-theme="light"] .logo-dark-theme { display: inline-block !important; height: 38px; width: auto; }
[data-theme="light"] .logo-dark-theme { display: none !important; }

.brand-logo-wrap .logo-light-theme { display: none !important; height: 38px; width: auto; }
[data-theme="light"] .logo-light-theme { display: inline-block !important; }
[data-theme="light"] .logo-light-theme { display: none !important; height: 38px; width: auto; }
[data-theme="light"] .logo-light-theme { display: inline-block !important; }

[data-theme="light"] .brand-logo-wrap .logo-dark-theme { display: inline-block !important; height: 38px; width: auto; }
[data-theme="light"] .logo-dark-theme { display: none !important; }
[data-theme="light"] .logo-dark-theme { display: inline-block !important; height: 38px; width: auto; }
[data-theme="light"] .logo-dark-theme { display: none !important; }

[data-theme="light"] .brand-logo-wrap .logo-light-theme { display: none !important; height: 38px; width: auto; }
[data-theme="light"] .logo-light-theme { display: inline-block !important; }
[data-theme="light"] .logo-light-theme { display: none !important; height: 38px; width: auto; }
[data-theme="light"] .logo-light-theme { display: inline-block !important; }

nav.bina-nav a {
  color: var(--text-on-surface-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition-fast);
  padding: 0.4rem 0;
}

nav.bina-nav a:hover, nav.bina-nav a.nav-link-active {
  color: var(--color-gold-primary) !important;
}

[data-theme="light"] nav.bina-nav a {
  color: #334155;
}

[data-theme="light"] nav.bina-nav a:hover,
[data-theme="light"] nav.bina-nav a.nav-link-active {
  color: #0284c7 !important;
}

/* Header Action Theme Switcher Button */
.header-theme-toggle {
  background: var(--surface-container-high);
  color: var(--text-on-surface);
  border: 1px solid var(--border-gold-bright);
  border-radius: var(--radius-full);
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.header-theme-toggle:hover {
  background: rgba(0, 166, 251, 0.15);
  border-color: var(--color-gold-primary);
  color: var(--color-gold-bright);
  transform: translateY(-1px);
}

[data-theme="light"] .header-theme-toggle {
  background: #f1f5f9;
  color: #0f172a;
  border-color: rgba(2, 132, 199, 0.35);
}

[data-theme="light"] .header-theme-toggle:hover {
  background: rgba(2, 132, 199, 0.12);
  border-color: #0284c7;
  color: #0284c7;
}

.header-theme-toggle .theme-icon {
  font-size: 18px;
  color: var(--color-gold-primary);
}

/* ==========================================================================
   COMPREHENSIVE DUAL-THEME ENGINE (Dark MedTech & Light Hospital Clinic)
   ========================================================================== */

/* 1. Header & Navigation */
header.bina-header, header.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 13, 30, 0.94) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.22) !important;
  padding: 0.85rem 1.8rem;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="light"] header.bina-header,
[data-theme="light"] header.main-header {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid rgba(2, 132, 199, 0.2) !important;
  box-shadow: 0 4px 25px rgba(15, 23, 42, 0.08) !important;
}

/* 2. Topbar */
.bina-topbar {
  background: #050a17 !important;
  color: #cbd5e1 !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15) !important;
  font-size: 0.82rem;
  padding: 0.45rem 1.8rem;
  transition: all 0.3s ease;
}

[data-theme="light"] .bina-topbar {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border-bottom: 1px solid rgba(2, 132, 199, 0.15) !important;
}

[data-theme="light"] .bina-topbar a {
  color: #0284c7 !important;
}

/* 3. Logo Adaptive Visibility */
.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.logo-dark-theme { display: inline-block !important; height: 38px; width: auto; }
[data-theme="light"] .logo-dark-theme { display: none !important; }
[data-theme="light"] .logo-dark-theme { display: inline-block !important; height: 38px; width: auto; }
[data-theme="light"] .logo-dark-theme { display: none !important; }

.logo-light-theme { display: none !important; height: 38px; width: auto; }
[data-theme="light"] .logo-light-theme { display: inline-block !important; }
[data-theme="light"] .logo-light-theme { display: none !important; height: 38px; width: auto; }
[data-theme="light"] .logo-light-theme { display: inline-block !important; }

[data-theme="light"] .logo-dark-theme { display: inline-block !important; height: 38px; width: auto; }
[data-theme="light"] .logo-dark-theme { display: none !important; }
[data-theme="light"] .logo-dark-theme { display: inline-block !important; height: 38px; width: auto; }
[data-theme="light"] .logo-dark-theme { display: none !important; }

[data-theme="light"] .logo-light-theme { display: none !important; height: 38px; width: auto; }
[data-theme="light"] .logo-light-theme { display: inline-block !important; }
[data-theme="light"] .logo-light-theme { display: none !important; height: 38px; width: auto; }
[data-theme="light"] .logo-light-theme { display: inline-block !important; }

/* 4. Nav Links */
nav.bina-nav a {
  color: var(--text-on-surface-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition-fast);
  padding: 0.4rem 0;
}

nav.bina-nav a:hover, nav.bina-nav a.nav-link-active {
  color: var(--color-gold-primary) !important;
}

[data-theme="light"] nav.bina-nav a {
  color: #334155 !important;
}

[data-theme="light"] nav.bina-nav a:hover,
[data-theme="light"] nav.bina-nav a.nav-link-active {
  color: #0284c7 !important;
}

/* 5. Header Theme Toggle Button */
.header-theme-toggle {
  background: var(--surface-container-high);
  color: var(--text-on-surface);
  border: 1px solid var(--border-gold-bright);
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.header-theme-toggle:hover {
  background: rgba(0, 166, 251, 0.15);
  border-color: var(--color-gold-primary);
  color: var(--color-gold-bright);
  transform: translateY(-1px);
}

[data-theme="light"] .header-theme-toggle {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .header-theme-toggle:hover {
  background: rgba(2, 132, 199, 0.08);
  border-color: #0284c7;
  color: #0284c7;
}

.header-theme-toggle .theme-icon {
  font-size: 19px;
  color: var(--color-gold-primary);
}

/* 6. Footer Dual-Theme */
footer.bina-footer, .footer-section {
  background: #050a17 !important;
  border-top: 1px solid rgba(56, 189, 248, 0.2) !important;
  color: #94a3b8 !important;
  padding: 4.5rem 1.8rem 2.5rem;
  transition: all 0.3s ease;
}

[data-theme="light"] footer.bina-footer,
[data-theme="light"] .footer-section {
  background: #f1f5f9 !important;
  border-top: 1px solid rgba(2, 132, 199, 0.18) !important;
  color: #475569 !important;
}

[data-theme="light"] footer.bina-footer h4,
[data-theme="light"] footer.bina-footer .footer-col-title {
  color: #0f172a !important;
}

[data-theme="light"] footer.bina-footer a {
  color: #334155 !important;
}

[data-theme="light"] footer.bina-footer a:hover {
  color: #0284c7 !important;
}

[data-theme="light"] .footer-bottom {
  border-top-color: rgba(2, 132, 199, 0.15) !important;
  color: #64748b !important;
}

/* 7. Social Links in Footer */
.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gold-subtle);
  background: rgba(15, 28, 61, 0.85);
  color: var(--color-gold-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-icon-btn:hover {
  background: var(--color-gold-primary);
  color: #ffffff;
  box-shadow: 0 0 16px var(--color-gold-glow);
}

[data-theme="light"] .social-icon-btn {
  background: #ffffff;
  border-color: rgba(2, 132, 199, 0.25);
  color: #0284c7;
}

[data-theme="light"] .social-icon-btn:hover {
  background: #0284c7;
  color: #ffffff;
}

/* 8. Floating Theme Dock */
.bina-theme-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  align-items: center;
}

.theme-dock-inner {
  background: var(--glass-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 2px solid var(--color-gold-primary);
  border-radius: var(--radius-full);
  padding: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px var(--color-gold-glow);
  transition: var(--transition-smooth);
}

[data-theme="light"] .theme-dock-inner {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.2), 0 2px 10px rgba(15, 23, 42, 0.08);
}


/* Hide floating dock completely */
.bina-theme-dock, #bina-floating-theme-switcher { display: none !important; }


/* ==========================================================================
   FLOATING ACCESSIBILITY & THEME CONTROLS (DESKTOP)
   ========================================================================== */
.accessibility-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}

.btn-schimba-tema, .btn-vedere-clara {
  background: var(--surface-container-high);
  border: 1px solid var(--color-gold-primary);
  color: var(--text-on-surface);
  border-radius: var(--radius-full);
  padding: 0.55rem 1.05rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  transition: var(--transition-fast);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-decoration: none;
}

.btn-schimba-tema:hover, .btn-vedere-clara:hover {
  background: var(--color-gold-primary);
  color: #070d1e;
  box-shadow: 0 0 16px var(--color-gold-glow);
  transform: translateY(-2px);
}

.btn-schimba-tema .material-symbols-outlined,
.btn-vedere-clara .material-symbols-outlined {
  font-size: 19px;
  color: var(--color-gold-primary);
  transition: var(--transition-fast);
}

.btn-schimba-tema:hover .material-symbols-outlined,
.btn-vedere-clara:hover .material-symbols-outlined {
  color: #070d1e;
}

.btn-vedere-clara.btn-vedere-clara-active {
  background: var(--color-gold-primary) !important;
  color: #070d1e !important;
  font-weight: 800 !important;
  box-shadow: 0 0 20px var(--color-gold-glow) !important;
}

.btn-vedere-clara.btn-vedere-clara-active .material-symbols-outlined {
  color: #070d1e !important;
}

/* Light Mode Overrides for Floating Controls */
[data-theme="light"] .btn-schimba-tema,
[data-theme="light"] .btn-vedere-clara {
  background: #ffffff;
  border-color: rgba(2, 132, 199, 0.4);
  color: #0f172a;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .btn-schimba-tema:hover,
[data-theme="light"] .btn-vedere-clara:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.3);
}

[data-theme="light"] .btn-schimba-tema .material-symbols-outlined,
[data-theme="light"] .btn-vedere-clara .material-symbols-outlined {
  color: #0284c7;
}

[data-theme="light"] .btn-schimba-tema:hover .material-symbols-outlined,
[data-theme="light"] .btn-vedere-clara:hover .material-symbols-outlined {
  color: #ffffff;
}

/* ==================== FOOTER OFICIAL BINAFARM ==================== */
footer.bina-footer {
  border-top: 1px solid var(--border-gold-subtle);
  background: #110e07;
  padding: 4rem 1.8rem 2.5rem;
  margin-top: 5rem;
  width: 100%;
  box-sizing: border-box;
}

[data-theme="light"] footer.bina-footer {
  background: #f8fafc;
  border-top-color: rgba(2, 132, 199, 0.2);
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto 2.8rem;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  footer.bina-footer {
    padding: 3rem 1.2rem 2rem;
    margin-top: 3.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 60px;
  background: rgba(17, 14, 7, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-gold-subtle);
  z-index: 999;
  display: none;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.8);
  padding: 0 0.2rem;
  box-sizing: border-box;
}

[data-theme="light"] .mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.96);
  border-top-color: rgba(2, 132, 199, 0.2);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
}

.mobile-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-on-surface-muted);
  text-decoration: none;
  background: transparent;
  border: none;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  gap: 0.2rem;
  padding: 0.25rem 0.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
  border-radius: var(--radius-sm);
  flex: 1 1 20%;
  max-width: 20%;
  text-align: center;
  box-sizing: border-box;
}

.mobile-bottom-nav-item .material-symbols-outlined {
  font-size: 20px !important;
  width: 22px;
  height: 22px;
  line-height: 22px;
  display: inline-block;
  text-align: center;
  overflow: hidden;
}

.mobile-bottom-nav-item:hover, .mobile-bottom-nav-item.active-nav {
  color: var(--color-gold-primary);
}

.mobile-nav-center {
  color: var(--color-gold-bright);
}

.mobile-nav-center .material-symbols-outlined {
  color: var(--color-gold-primary);
}

.mobile-bottom-cta {
  color: var(--color-gold-bright);
}

.mobile-bottom-cta .material-symbols-outlined {
  color: var(--color-gold-primary);
}

/* ==========================================================================
   CLEAN UNIFIED MOBILE STYLING (@media max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body {
    padding-bottom: 75px !important;
  }
  .bina-topbar {
    display: none !important;
  }
  .bina-header {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  .header-inner {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.6rem 1rem !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }
  .brand-logo-wrap {
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
  }
  .brand-logo-img {
    height: 34px !important;
    max-width: 140px !important;
    width: auto !important;
    display: inline-block;
  }
  .header-actions {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-shrink: 0 !important;
  }
  .header-actions .btn-gold {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.45rem 0.85rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    height: 36px !important;
    letter-spacing: 0.02em !important;
    border-radius: var(--radius-sm) !important;
    gap: 0.35rem !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }
  .header-actions .btn-gold .material-symbols-outlined {
    font-size: 16px !important;
  }
  .header-actions .header-portal-btn {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
  }
  .hero-container {
    padding: 1.5rem 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
  .hero-content-grid {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
  .section-wrap {
    padding: 0 1rem !important;
    margin: 2rem auto !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .cards-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
  .bina-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .bina-card[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  h1, h2, h3, h4, p, span, a, div {
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }
  .hero-search-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 1.2rem !important;
    box-sizing: border-box !important;
  }
  .hero-search-box {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.35rem 0.45rem 0.35rem 0.75rem !important;
    gap: 0.35rem !important;
    box-sizing: border-box !important;
  }
  .hero-search-box .btn-gold {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    word-break: keep-all !important;
  }
  .accessibility-bar {
    bottom: 72px !important;
    right: 10px !important;
    z-index: 900 !important;
  }
  .floating-assistant-btn {
    bottom: 72px !important;
    left: 10px !important;
    padding: 0.45rem 0.75rem !important;
    height: 38px !important;
    box-sizing: border-box !important;
    z-index: 900 !important;
  }
  .floating-assistant-btn .material-symbols-outlined {
    font-size: 19px !important;
  }
  .floating-assistant-label {
    font-size: 0.8rem !important;
    white-space: nowrap !important;
  }
  .btn-vedere-clara, .btn-schimba-tema {
    padding: 0.45rem 0.75rem !important;
    font-size: 0.78rem !important;
    height: 38px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }
  .btn-vedere-clara .material-symbols-outlined,
  .btn-schimba-tema .material-symbols-outlined {
    font-size: 18px !important;
  }
  .mobile-bottom-nav {
    display: flex !important;
  }
  footer.bina-footer {
    padding-bottom: 4.5rem !important;
  }
  .clinical-chat-card {
    max-width: 100%;
    height: 90vh;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
  }
}

@media (max-width: 380px) {
  .floating-assistant-label {
    display: none !important;
  }
  .floating-assistant-btn {
    padding: 0.5rem 0.65rem !important;
  }
}

/* ==================== MODAL & POPUP CHAT CONSILIER CLINIC (BLUE DUAL-THEME) ==================== */
.clinical-chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.clinical-chat-card {
  width: 100%;
  max-width: 540px;
  height: 640px;
  max-height: 88vh;
  background: linear-gradient(165deg, #0b1526, #060d19);
  border: 1.5px solid #0284c7;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95), 0 0 35px rgba(2, 132, 199, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #f8fafc;
}

[data-theme="light"] .clinical-chat-card {
  background: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25), 0 0 25px rgba(2, 132, 199, 0.2) !important;
  color: #0f172a !important;
}

.clinical-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.4rem;
  background: linear-gradient(135deg, #0d1e38, #081324);
  border-bottom: 1px solid rgba(2, 132, 199, 0.25);
  color: #ffffff;
}

[data-theme="light"] .clinical-chat-header {
  background: #f0f9ff !important;
  border-bottom-color: #bae6fd !important;
  color: #0c4a6e !important;
}

.clinical-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  scroll-behavior: smooth;
  background: radial-gradient(circle at top right, rgba(2, 132, 199, 0.06), transparent 60%);
}

[data-theme="light"] .clinical-chat-body {
  background: #f8fafc !important;
}

.clinical-quick-bar {
  background: rgba(11, 21, 38, 0.96);
}

[data-theme="light"] .clinical-quick-bar {
  background: #e0f2fe !important;
  border-top-color: #bae6fd !important;
}

.clinical-chat-footer {
  padding: 0.85rem 1.2rem;
  background: #081220;
  border-top: 1px solid rgba(2, 132, 199, 0.25);
}

[data-theme="light"] .clinical-chat-footer {
  background: #f0f9ff !important;
  border-top-color: #bae6fd !important;
}

.advisor-incoming-bubble {
  max-width: 92%;
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius-md);
  background: #0e203c;
  color: #f1f5f9;
  border: 1px solid rgba(2, 132, 199, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  line-height: 1.65;
  font-size: 0.9rem;
}

[data-theme="light"] .advisor-incoming-bubble {
  background: #ffffff !important;
  color: #1e293b !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

.advisor-user-bubble {
  max-width: 90%;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
  line-height: 1.6;
  font-size: 0.9rem;
}

.clinical-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.4rem;
}
.clinical-badge-preanalytic {
  background: rgba(2, 132, 199, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(2, 132, 199, 0.3);
}
.clinical-badge-biomarker {
  background: rgba(14, 165, 233, 0.15);
  color: #0284c7;
  border: 1px solid rgba(14, 165, 233, 0.3);
}
.clinical-badge-triage {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.clinical-action-card {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

[data-theme="light"] .clinical-action-card {
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}

.clinical-typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.6rem 1rem;
  background: #0e203c;
  border: 1px solid rgba(2, 132, 199, 0.3);
  border-radius: var(--radius-full);
  color: #38bdf8;
}

[data-theme="light"] .clinical-typing-indicator {
  background: #e0f2fe !important;
  border-color: #bae6fd !important;
  color: #0284c7 !important;
}

.clinical-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0284c7;
  display: inline-block;
  animation: typingBounce 1.4s infinite ease-in-out both;
}
.clinical-typing-dot:nth-child(2) { animation-delay: -0.32s; }
.clinical-typing-dot:nth-child(3) { animation-delay: -0.16s; }

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
  .clinical-chat-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
    justify-content: center !important;
  }
  .clinical-chat-card {
    max-width: 100% !important;
    width: 100% !important;
    height: 92vh !important;
    max-height: 92vh !important;
    border-radius: 20px 20px 0 0 !important;
    border-bottom: none !important;
    margin: 0 !important;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}
