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

/* --- CUSTOM VARIABLES --- */
:root {
  /* HSL Colors - Deep space dark mode by default */
  --bg-primary: hsl(222, 47%, 6%);
  --bg-secondary: hsl(223, 40%, 12%);
  --bg-glow-1: hsl(158, 75%, 40%); /* Emerald */
  --bg-glow-2: hsl(38, 95%, 48%);   /* Khmer Amber Gold */
  
  --text-primary: hsl(210, 40%, 98%);
  --text-muted: hsl(215, 20%, 65%);
  --text-light: hsl(0, 0%, 100%);
  
  --primary: hsl(158, 75%, 45%);
  --primary-hover: hsl(158, 85%, 50%);
  --accent: hsl(38, 95%, 52%);
  --accent-hover: hsl(38, 100%, 58%);
  
  /* Glassmorphism values */
  --glass-bg: rgba(13, 20, 38, 0.55);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: rgba(0, 0, 0, 0.4);
  --glass-highlight: rgba(255, 255, 255, 0.04);
  
  --card-radius: 20px;
  --button-radius: 12px;
  
  --font-sans: 'Roboto', 'Kantumruy Pro', sans-serif;
  --font-heading: 'Roboto', 'Kantumruy Pro', sans-serif;
}

/* --- LIGHT THEME OVERRIDES --- */
body.light-theme {
  --bg-primary: hsl(210, 40%, 97%);
  --bg-secondary: hsl(210, 30%, 94%);
  --bg-glow-1: hsl(158, 50%, 75%);
  --bg-glow-2: hsl(38, 70%, 80%);
  
  --text-primary: hsl(222, 47%, 15%);
  --text-muted: hsl(220, 15%, 45%);
  
  --primary: hsl(158, 80%, 32%);
  --primary-hover: hsl(158, 80%, 28%);
  --accent: hsl(38, 90%, 45%);
  --accent-hover: hsl(38, 95%, 40%);
  
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-shadow: rgba(31, 41, 55, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.8);
}

/* --- BASE STYLES & RESET --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* --- FLOATING GRADIENT BACKGROUND MESH --- */
.bg-mesh-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.28;
  mix-blend-mode: screen;
  animation: floatBlobs 20s infinite alternate ease-in-out;
  transition: opacity 0.5s ease;
}

body.light-theme .bg-blob {
  opacity: 0.18;
  mix-blend-mode: multiply;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background-color: var(--bg-glow-1);
  top: -100px;
  right: -50px;
  animation-delay: 0s;
}

.blob-2 {
  width: 600px;
  height: 600px;
  background-color: var(--bg-glow-2);
  bottom: -150px;
  left: -100px;
  animation-delay: 4s;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background-color: hsl(200, 80%, 40%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 8s;
  opacity: 0.12;
}

@keyframes floatBlobs {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(60px, -40px) scale(1.15) rotate(180deg);
  }
  100% {
    transform: translate(-40px, 80px) scale(0.9) rotate(360deg);
  }
}

/* --- PREMIUM GLASS STYLING UTILITIES --- */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 40px 0 var(--glass-shadow);
  border-radius: var(--card-radius);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.glass-panel-interactive:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 45px 0 rgba(0, 0, 0, 0.45);
}
body.light-theme .glass-panel-interactive:hover {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 16px 45px 0 rgba(31, 41, 55, 0.12);
}

.glass-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--button-radius);
  color: var(--text-primary);
  padding: 12px 18px;
  outline: none;
  font-family: var(--font-sans);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-theme .glass-input {
  background: rgba(0, 0, 0, 0.02);
}

.glass-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(24, 218, 140, 0.15);
}

/* --- BUTTONS --- */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), hsl(158, 85%, 38%));
  color: var(--text-light);
  border: none;
  padding: 12px 24px;
  border-radius: var(--button-radius);
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(24, 218, 140, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(24, 218, 140, 0.45);
  background: linear-gradient(135deg, var(--primary-hover), var(--primary));
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  padding: 12px 24px;
  border-radius: var(--button-radius);
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), hsl(38, 90%, 45%));
  color: var(--text-light);
  border: none;
  padding: 12px 24px;
  border-radius: var(--button-radius);
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
}

/* --- HEADER / NAVIGATION --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 15px auto;
  padding: 15px 30px;
  border-radius: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 20, 38, 0.55);
}

body.light-theme .nav-container {
  background: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 0 15px rgba(24, 218, 140, 0.4);
}

.logo-text h1 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.nav-item:hover, .nav-item.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

body.light-theme .nav-item:hover, body.light-theme .nav-item.active {
  background: rgba(0, 0, 0, 0.04);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Lang Toggle Widget */
.lang-selector {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 4px;
  border-radius: 30px;
}

body.light-theme .lang-selector {
  background: rgba(0, 0, 0, 0.03);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
}

.lang-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 10px rgba(24, 218, 140, 0.3);
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(20deg);
}

/* --- MAIN CONTAINER --- */
main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 30px 60px;
}

.tab-section {
  display: none;
  animation: tabFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.tab-section.active {
  display: block;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- HERO SECTION --- */
.hero {
  padding: 80px 0 100px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  background: rgba(24, 218, 140, 0.08);
  border: 1px solid rgba(24, 218, 140, 0.25);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-badge i {
  color: var(--accent);
}

.hero-content h2 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 70%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

.hero-content p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Hero Widget / Illustration */
.hero-widget-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-circle-accent {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.15;
  z-index: -1;
  border-radius: 50%;
  filter: blur(20px);
}

.hero-glass-dashboard {
  width: 100%;
  max-width: 450px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-glass-dashboard::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: skewX(-25deg);
  animation: shineReflect 8s infinite linear;
}

@keyframes shineReflect {
  0% { left: -100%; }
  100% { left: 200%; }
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.dash-avatar-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: 2px solid var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  color: white;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(24, 218, 140, 0.12);
  border: 1px solid rgba(24, 218, 140, 0.2);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  animation: pulsePulse 1.8s infinite;
}

@keyframes pulsePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(24, 218, 140, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(24, 218, 140, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(24, 218, 140, 0); }
}

.dash-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 25px;
}

.dash-stat-card {
  padding: 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.dash-stat-card span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.dash-stat-card h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
}

.dash-call-widget {
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.15);
  padding: 15px 20px;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-call-info h5 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.dash-call-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.call-pulse-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--accent);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
}

.call-pulse-btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--accent);
  border-radius: 50%;
  z-index: -1;
  animation: callPulsing 2s infinite;
}

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

.call-pulse-btn:hover {
  background-color: var(--accent-hover);
  transform: scale(1.05);
}

/* --- SECTION HEADERS --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-header h3 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text-primary), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* --- TAB: LIBRARY --- */
.library-search-container {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-input-wrapper i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.search-input-wrapper input {
  width: 100%;
  padding-left: 50px;
}

.category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.cat-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
}

.cat-btn.active, .cat-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.lib-card {
  padding: 25px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.lib-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lib-card-tag {
  color: var(--accent);
  font-weight: bold;
}

.lib-card-time {
  color: var(--text-muted);
}

.lib-card h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.lib-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 25px;
  flex: 1;
}

.lib-card-btn {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
  align-self: flex-start;
  transition: all 0.3s;
}

.lib-card-btn:hover {
  color: var(--primary-hover);
  transform: translateX(4px);
}

/* Article Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 20, 38, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 650px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 25px;
  right: 25px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(90deg);
}

/* --- TAB: Q&A --- */
.qa-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
}

.qa-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.qa-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.qa-card {
  padding: 30px;
}

.qa-question-block {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 20px;
}

.qa-tag-badge {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 12px;
}

.qa-question-block h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
}

.qa-answer-block {
  display: flex;
  gap: 15px;
}

.qa-doctor-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  flex-shrink: 0;
}

.qa-answer-content h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.qa-doctor-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.qa-answer-text {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Sidebar Doctors Grid */
.qa-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.dr-panel {
  padding: 25px;
}

.dr-panel h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dr-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.dr-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.dr-avatar-wrapper {
  position: relative;
}

.dr-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background-color: var(--primary);
  border: 2px solid var(--bg-secondary);
  border-radius: 50%;
}

.dr-card h5 {
  font-size: 0.88rem;
  font-weight: 600;
}

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

/* Form Styles */
.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* --- TAB: CONNECTIONS & SIMULATORS --- */
.conn-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 60px;
}

.conn-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.conn-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.conn-card.interpre-featured .conn-icon-box {
  color: var(--accent);
  background: rgba(245, 158, 11, 0.08);
}

.conn-card h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.conn-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 25px;
  flex: 1;
}

/* Multi-Step Booking Portal */
.booking-portal {
  padding: 40px;
  margin-top: 40px;
}

.booking-steps-nav {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.booking-steps-nav::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--glass-border);
  z-index: 1;
}

.step-indicator {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--text-muted);
  transition: all 0.3s;
}

.step-indicator.active .step-number {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 15px rgba(24, 218, 140, 0.4);
}

.step-indicator.completed .step-number {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.step-indicator.active .step-label {
  color: var(--text-primary);
}

.booking-step-panel {
  display: none;
}

.booking-step-panel.active {
  display: block;
}

.booking-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  border-top: 1px solid var(--glass-border);
  padding-top: 20px;
}

/* Clinic/Hospital Cards Select grid */
.hospital-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.hosp-select-card {
  padding: 15px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s;
}

.hosp-select-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.hosp-select-card.selected {
  border-color: var(--primary);
  background: rgba(24, 218, 140, 0.05);
}

.hosp-select-card i {
  color: var(--primary);
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.hosp-select-card.selected i {
  opacity: 1;
}

/* Calendar styling */
.calendar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-weight: bold;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-day-label {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  padding-bottom: 5px;
}

.cal-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.cal-cell.empty {
  cursor: default;
}

.cal-cell.filled {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
}

.cal-cell.filled:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cal-cell.selected {
  background: var(--primary) !important;
  color: white;
  font-weight: bold;
}

.time-slot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.time-slot-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 8px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s;
}

.time-slot-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.time-slot-btn.selected {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  font-weight: bold;
}

/* Digital pass ticket receipt */
.digital-pass {
  max-width: 480px;
  margin: 0 auto;
  padding: 25px;
  position: relative;
  background: linear-gradient(135deg, rgba(13, 20, 38, 0.85), rgba(24, 218, 140, 0.05));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
}

.digital-pass::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.pass-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed var(--glass-border);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.pass-barcode {
  background: linear-gradient(90deg, #fff 2px, transparent 2px, #fff 4px, transparent 4px, #fff 10px, transparent 10px);
  background-size: 15px 100%;
  height: 40px;
  opacity: 0.7;
}

/* InterPre Phone Simulator Component */
.interpre-simulator {
  max-width: 800px;
  margin: 0 auto;
}

.simulator-window {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  border-radius: var(--card-radius);
  overflow: hidden;
  height: 550px;
  border: 1px solid var(--glass-border);
}

.sim-control-side {
  background: rgba(13, 20, 38, 0.7);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border-right: 1px solid var(--glass-border);
  position: relative;
}

.sim-active-side {
  background: rgba(255, 255, 255, 0.01);
  padding: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.phone-screen {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.phone-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-glow-1), var(--bg-glow-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.2rem;
  box-shadow: 0 0 30px rgba(24, 218, 140, 0.2);
  transition: all 0.5s ease;
}

.phone-avatar.active-ring {
  animation: callRingRipple 1.5s infinite;
}

@keyframes callRingRipple {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(245, 158, 11, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.phone-avatar.active-talk {
  animation: callTalkRipple 1.8s infinite;
}

@keyframes callTalkRipple {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(24, 218, 140, 0.6); }
  70% { transform: scale(1.03); box-shadow: 0 0 0 15px rgba(24, 218, 140, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(24, 218, 140, 0); }
}

/* Pulse waves */
.voice-wave-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
  margin-top: 10px;
}

.wave-bar {
  width: 4px;
  background-color: var(--primary);
  border-radius: 4px;
  animation: pulseBar 1.2s ease-in-out infinite alternate;
}

.wave-bar:nth-child(2) { height: 15px; animation-delay: 0.15s; }
.wave-bar:nth-child(3) { height: 28px; animation-delay: 0.3s; }
.wave-bar:nth-child(4) { height: 10px; animation-delay: 0.45s; }
.wave-bar:nth-child(5) { height: 22px; animation-delay: 0.6s; }

@keyframes pulseBar {
  0% { transform: scaleY(0.4); opacity: 0.5; }
  100% { transform: scaleY(1.4); opacity: 1; }
}

.transcript-feed {
  flex: 1;
  overflow-y: auto;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--glass-border);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.transcript-msg {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  max-width: 85%;
}

.transcript-msg.dr {
  background: rgba(255, 255, 255, 0.03);
  align-self: flex-start;
}

.transcript-msg.interpre {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.15);
  align-self: center;
  color: var(--accent);
}

.transcript-msg.patient {
  background: rgba(24, 218, 140, 0.12);
  align-self: flex-end;
  color: var(--primary);
}

/* Consultation Chat UI */
.consultation-chatbot {
  max-width: 800px;
  margin: 0 auto;
  height: 500px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
}

.chat-header {
  padding: 20px;
  background: rgba(13, 20, 38, 0.6);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-bubble {
  padding: 12px 18px;
  border-radius: 16px;
  font-size: 0.9rem;
  max-width: 70%;
  line-height: 1.5;
}

.chat-bubble.assistant {
  background: rgba(255, 255, 255, 0.03);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.chat-bubble.user {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 10px rgba(24, 218, 140, 0.2);
}

.chat-footer {
  padding: 15px 20px;
  background: rgba(13, 20, 38, 0.6);
  border-top: 1px solid var(--glass-border);
  display: flex;
  gap: 10px;
}

.chat-input {
  flex: 1;
}

/* --- FOOTER --- */
footer {
  margin-top: 100px;
  border-top: 1px solid var(--glass-border);
  padding: 40px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 30px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 0.85rem;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 0;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .conn-layout {
    grid-template-columns: 1fr;
  }
  
  .qa-layout {
    grid-template-columns: 1fr;
  }
  
  .simulator-window {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .sim-control-side {
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }
  
  .hospital-select-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 15px;
    margin: 10px 10px;
    padding: 15px;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-content h2 {
    font-size: 2.3rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-right {
    align-items: center;
  }
}

/* ======================================================== */
/* PREMIUM SWIPE-TO-VERIFY & 3S CLINICAL PULSE ANIMATIONS    */
/* ======================================================== */

.slide-verify-container {
  position: relative;
  width: 100%;
  height: 56px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 25px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

body.light-theme .slide-verify-container {
  background: rgba(0, 0, 0, 0.04);
}

.slide-verify-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  user-select: none;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
  background: linear-gradient(90deg, var(--text-muted) 0%, var(--text-primary) 50%, var(--text-muted) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineVerifyText 2.5s infinite linear;
}

@keyframes shineVerifyText {
  0% { background-position: -100% 0; }
  100% { background-position: 100% 0; }
}

.slide-verify-handle {
  position: absolute;
  left: 3px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: grab;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  transition: transform 0.1s ease, box-shadow 0.3s ease;
}

.slide-verify-handle:active {
  cursor: grabbing;
}

.slide-verify-handle i {
  font-size: 1.15rem;
  animation: heartbeatBeat 1.5s infinite;
}

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

.slide-verify-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: rgba(245, 158, 11, 0.15);
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
  z-index: 1;
  pointer-events: none;
}

/* Verification Dynamic loading screen (3 seconds) */
.verification-loading-overlay {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 10px;
}

.pulse-clinical-ring {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.pulse-clinical-ring .ring-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: clinicalRingPulse 2.5s infinite ease-out;
}

.pulse-clinical-ring .ring-glow:nth-child(2) {
  animation-delay: 0.8s;
}

.pulse-clinical-ring .ring-glow:nth-child(3) {
  animation-delay: 1.6s;
}

.pulse-clinical-center {
  width: 64px;
  height: 64px;
  background: radial-gradient(circle, var(--accent) 0%, var(--accent-hover) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.6rem;
  z-index: 2;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.6);
  animation: clinicalCenterPulse 1.2s infinite alternate ease-in-out;
}

@keyframes clinicalRingPulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes clinicalCenterPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 15px rgba(245, 158, 11, 0.4); }
  100% { transform: scale(1.08); box-shadow: 0 0 30px rgba(245, 158, 11, 0.7); }
}

.countdown-bar-container {
  width: 180px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-top: 15px;
  overflow: hidden;
}

body.light-theme .countdown-bar-container {
  background: rgba(0, 0, 0, 0.08);
}

.countdown-bar-fill {
  width: 0;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: countdownBarRun 3s linear forwards;
}

@keyframes countdownBarRun {
  from { width: 0; }
  to { width: 100%; }
}

/* Post-recording Review Dashboard styling */
.intake-review-card {
  background: rgba(24, 218, 140, 0.04);
  border: 1px solid rgba(24, 218, 140, 0.15);
  border-radius: 16px;
  padding: 20px;
  margin: 20px 0;
  text-align: left;
}

.intake-review-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
