/* =============================================
   ThanksMD.com — Global Design System
   GoDaddy-compatible: pure CSS, no build tools
   ============================================= */

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

/* ─── CSS Tokens ─── */
:root {
  /* Brand Colors */
  --teal-50:  #f0fdfc;
  --teal-100: #ccfbf7;
  --teal-200: #99f6ee;
  --teal-400: #2dd4c8;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;

  /* Neutrals */
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Semantic */
  --accent:   #14b8a6;
  --accent-2: #06b6d4;
  --success:  #10b981;
  --warning:  #f59e0b;
  --danger:   #ef4444;
  --info:     #3b82f6;

  /* Surfaces */
  --bg-primary:   #0a1628;
  --bg-secondary: #0f2040;
  --bg-card:      #111f38;
  --bg-card-hover:#162847;
  --border:       rgba(255,255,255,0.08);
  --border-glow:  rgba(20,184,166,0.3);

  /* Text */
  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;

  /* Gradients */
  --grad-brand:  linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
  --grad-hero:   linear-gradient(135deg, #0a1628 0%, #0f2040 50%, #0a1628 100%);
  --grad-card:   linear-gradient(135deg, rgba(20,184,166,0.1) 0%, rgba(6,182,212,0.05) 100%);
  --grad-glow:   radial-gradient(circle at 50% 50%, rgba(20,184,166,0.15) 0%, transparent 70%);

  /* Spacing */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px rgba(20,184,166,0.2);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p  { color: var(--text-secondary); }

/* ─── Layout ─── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.grid { display: grid; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* ─── Navbar ─── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,22,40,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.navbar-logo {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem; font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.navbar-logo svg { width: 36px; height: 36px; }
.navbar-logo-dot { color: var(--teal-400); }
.navbar-links { display: flex; align-items: center; gap: 0.25rem; }
.navbar-link {
  padding: 0.5rem 1rem; border-radius: var(--radius-full);
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  transition: all 0.2s;
}
.navbar-link:hover, .navbar-link.active {
  background: rgba(20,184,166,0.1); color: var(--teal-400);
}
.navbar-portal-switch {
  display: flex; background: rgba(255,255,255,0.05);
  border-radius: var(--radius-full); padding: 3px;
}
.portal-btn {
  padding: 0.4rem 1rem; border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  transition: all 0.2s;
}
.portal-btn.active { background: var(--grad-brand); color: white; }
.navbar-actions { display: flex; align-items: center; gap: 0.75rem; }
.navbar-hider { display: flex; align-items: center; gap: 0.5rem; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.5rem; border-radius: var(--radius-full);
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em;
  transition: all 0.25s; white-space: nowrap;
}
.btn-primary {
  background: var(--grad-brand); color: white;
  box-shadow: 0 4px 15px rgba(20,184,166,0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(20,184,166,0.45);
}
.btn-ghost {
  background: rgba(255,255,255,0.05); color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.btn-outline {
  background: transparent; color: var(--teal-400);
  border: 1.5px solid var(--teal-400);
}
.btn-outline:hover { background: rgba(20,184,166,0.1); }
.btn-danger { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.btn-success { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.btn-warning { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-xl { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-icon { padding: 0.6rem; border-radius: var(--radius-md); }
.btn-block { width: 100%; justify-content: center; }

/* ─── Cards ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s;
}
.card-hover:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.card-gradient { background: var(--grad-card); }
.card-glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
}

/* ─── Forms ─── */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--teal-500);
  background: rgba(20,184,166,0.05);
  box-shadow: 0 0 0 3px rgba(20,184,166,0.1);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control option { background: var(--bg-secondary); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ─── Badges ─── */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.75rem; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600;
}
.badge-teal    { background: rgba(20,184,166,0.15); color: var(--teal-400); }
.badge-green   { background: rgba(16,185,129,0.15); color: #34d399; }
.badge-yellow  { background: rgba(245,158,11,0.15); color: #fbbf24; }
.badge-red     { background: rgba(239,68,68,0.15);  color: #f87171; }
.badge-blue    { background: rgba(59,130,246,0.15); color: #60a5fa; }
.badge-purple  { background: rgba(139,92,246,0.15); color: #a78bfa; }
.badge-gray    { background: rgba(148,163,184,0.1); color: var(--text-secondary); }
.badge-dot::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; display: inline-block;
}

/* ─── Stars ─── */
.stars { display: flex; gap: 2px; }
.star { color: #fbbf24; font-size: 0.9rem; }
.star.empty { color: var(--gray-600); }

/* ─── Avatar ─── */
.avatar {
  border-radius: 50%; object-fit: cover;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: white; font-family: 'Plus Jakarta Sans', sans-serif;
  flex-shrink: 0;
}
.avatar-sm  { width: 36px; height: 36px; font-size: 0.85rem; }
.avatar-md  { width: 48px; height: 48px; font-size: 1rem; }
.avatar-lg  { width: 64px; height: 64px; font-size: 1.25rem; }
.avatar-xl  { width: 96px; height: 96px; font-size: 1.75rem; }
.avatar-xxl { width: 120px; height: 120px; font-size: 2rem; }

/* ─── Status Indicators ─── */
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
}
.status-online  { background: var(--success); box-shadow: 0 0 6px var(--success); }
.status-away    { background: var(--warning); }
.status-offline { background: var(--gray-500); }
.status-busy    { background: var(--danger); }

/* ─── Tables ─── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
thead { background: rgba(255,255,255,0.03); }
th {
  padding: 1rem 1.25rem; text-align: left;
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 1rem 1.25rem; font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.03); }

/* ─── Sidebar Layout ─── */
.portal-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 1.5rem 1rem;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.sidebar-logo {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem; margin-bottom: 2rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem; font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sidebar-section-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
  padding: 0.5rem 0.75rem; margin-bottom: 0.25rem;
}
.sidebar-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0.75rem; border-radius: var(--radius-md);
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  transition: all 0.2s; margin-bottom: 0.25rem;
}
.sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.7; }
.sidebar-link:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.sidebar-link.active {
  background: rgba(20,184,166,0.12);
  color: var(--teal-400);
  border-left: 3px solid var(--teal-400);
}
.sidebar-link.active svg { opacity: 1; }
.sidebar-link .badge { margin-left: auto; }
.sidebar-bottom { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); }
.sidebar-user { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem; }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.sidebar-user-role { font-size: 0.75rem; color: var(--text-muted); }
.portal-main { flex: 1; overflow-y: auto; }
.portal-content { padding: 2rem; max-width: 1200px; }
.portal-header { margin-bottom: 2rem; }
.portal-header h1 { font-size: 1.75rem; margin-bottom: 0.25rem; }
.portal-header p { color: var(--text-secondary); font-size: 0.9rem; }

/* ─── KPI Cards ─── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem; margin-bottom: 2rem;
}
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative; overflow: hidden;
  transition: all 0.3s;
}
.kpi-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--grad-brand);
}
.kpi-card:hover { border-color: var(--border-glow); transform: translateY(-2px); }
.kpi-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: rgba(20,184,166,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 1.25rem;
}
.kpi-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem; font-weight: 800; color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.kpi-label { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.75rem; }
.kpi-change { font-size: 0.8rem; font-weight: 600; }
.kpi-change.up { color: var(--success); }
.kpi-change.down { color: var(--danger); }

/* ─── Search Bar ─── */
.search-hero {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 0.5rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  align-items: center;
  backdrop-filter: blur(10px);
}
.search-field {
  flex: 1; min-width: 180px;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-right: 1px solid var(--border);
}
.search-field:last-of-type { border-right: none; }
.search-field-icon { color: var(--teal-400); flex-shrink: 0; }
.search-field input, .search-field select {
  background: none; border: none; outline: none;
  color: var(--text-primary); font-size: 0.9rem; width: 100%;
}
.search-field input::placeholder { color: var(--text-muted); }
.search-field select option { background: var(--bg-secondary); }

/* ─── Doctor Card ─── */
.doctor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s; display: flex; flex-direction: column;
}
.doctor-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}
.doctor-card-header { display: flex; gap: 1rem; margin-bottom: 1rem; }
.doctor-card-avatar { position: relative; }
.doctor-card-avatar .status-dot {
  position: absolute; bottom: 2px; right: 2px;
  border: 2px solid var(--bg-card);
}
.doctor-card-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; }
.doctor-card-specialty { font-size: 0.82rem; color: var(--teal-400); font-weight: 500; margin-bottom: 0.4rem; }
.doctor-card-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.8rem; color: var(--text-muted); }
.doctor-card-stats {
  display: flex; gap: 1rem; padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.doctor-stat { text-align: center; flex: 1; }
.doctor-stat-value { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.doctor-stat-label { font-size: 0.72rem; color: var(--text-muted); }
.doctor-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.fee-display { font-family: 'Plus Jakarta Sans', sans-serif; }
.fee-amount { font-size: 1.25rem; font-weight: 800; color: var(--teal-400); }
.fee-label { font-size: 0.72rem; color: var(--text-muted); }
.fee-old { text-decoration: line-through; color: var(--text-muted); font-size: 0.8rem; }

/* ─── Slot Picker ─── */
.slots-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 0.5rem;
}
.slot-btn {
  padding: 0.5rem; border-radius: var(--radius-md); text-align: center;
  font-size: 0.82rem; font-weight: 600;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--text-secondary); cursor: pointer; transition: all 0.2s;
}
.slot-btn:hover { border-color: var(--teal-400); color: var(--teal-400); background: rgba(20,184,166,0.05); }
.slot-btn.selected { background: var(--grad-brand); color: white; border-color: transparent; }
.slot-btn.taken { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

/* ─── Profile Page ─── */
.profile-hero {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-bottom: 2rem;
}
.profile-hero-inner { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; }
.profile-main-info { flex: 1; min-width: 240px; }
.profile-name { font-size: 2rem; font-weight: 800; margin-bottom: 0.4rem; }
.profile-specialty {
  font-size: 1rem; color: var(--teal-400); font-weight: 600; margin-bottom: 1rem;
}
.profile-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.profile-quick-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.profile-quick-stat { text-align: center; }
.profile-quick-stat-value { font-size: 1.5rem; font-weight: 800; color: var(--teal-400); }
.profile-quick-stat-label { font-size: 0.75rem; color: var(--text-muted); }

/* ─── Prescription Pad ─── */
.rx-header {
  display: flex; align-items: center; gap: 1rem;
  padding-bottom: 1rem; margin-bottom: 1.5rem;
  border-bottom: 2px dashed rgba(20,184,166,0.3);
}
.rx-symbol {
  font-size: 3rem; font-weight: 900; color: var(--teal-400); line-height: 1;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.rx-doctor-info { flex: 1; }
.rx-doc-name { font-size: 1.2rem; font-weight: 700; }
.rx-doc-meta { font-size: 0.8rem; color: var(--text-muted); }
.med-row {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem; margin-bottom: 0.75rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 0.75rem; align-items: center;
}
.med-number {
  width: 26px; height: 26px; background: var(--grad-brand);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: white; flex-shrink: 0;
}
@media (max-width: 768px) { .med-row { grid-template-columns: 1fr; } }

/* ─── Video Room ─── */
.video-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; height: calc(100vh - 160px); }
.video-main { background: #000; border-radius: var(--radius-xl); position: relative; overflow: hidden; }
.video-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #0a1628 0%, #0f2040 100%);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1rem;
}
.patient-self-view {
  position: absolute; bottom: 1rem; right: 1rem;
  width: 140px; height: 100px;
  background: #1a2840; border-radius: var(--radius-md);
  border: 2px solid var(--border); overflow: hidden;
}
.video-controls {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  display: flex; align-items: center; justify-content: center; gap: 1rem;
}
.video-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; cursor: pointer; transition: all 0.2s;
  border: none;
}
.video-btn.active { background: rgba(255,255,255,0.1); color: white; }
.video-btn.end-call { background: var(--danger); color: white; width: 60px; height: 60px; font-size: 1.5rem; }
.video-btn.muted { background: rgba(239,68,68,0.2); color: #f87171; }
.waiting-room-panel { display: flex; flex-direction: column; gap: 1rem; overflow-y: auto; }
.waiting-patient {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.timer {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3.5rem; font-weight: 800;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-align: center;
}

/* ─── Chart Bars (CSS-only) ─── */
.chart-bar-group { display: flex; align-items: flex-end; gap: 0.4rem; height: 80px; }
.chart-bar {
  flex: 1; background: var(--grad-brand);
  border-radius: 4px 4px 0 0; opacity: 0.7; transition: opacity 0.2s;
  position: relative;
}
.chart-bar:hover { opacity: 1; }
.chart-labels { display: flex; gap: 0.4rem; margin-top: 0.4rem; }
.chart-label { flex: 1; text-align: center; font-size: 0.65rem; color: var(--text-muted); }

/* ─── EHR Vault ─── */
.upload-zone {
  border: 2px dashed var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  background: rgba(20,184,166,0.03);
  cursor: pointer; transition: all 0.3s;
}
.upload-zone:hover { background: rgba(20,184,166,0.07); border-color: var(--teal-400); }
.upload-zone-icon { font-size: 3rem; margin-bottom: 1rem; }
.file-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  margin-bottom: 0.5rem; transition: all 0.2s;
}
.file-row:hover { border-color: var(--border-glow); }
.file-icon { font-size: 1.5rem; flex-shrink: 0; }
.file-info { flex: 1; min-width: 0; }
.file-name { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.file-meta { font-size: 0.78rem; color: var(--text-muted); }

/* ─── Notification Toast ─── */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  background: var(--bg-card); border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg); padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
  box-shadow: var(--shadow-glow);
  animation: slideInToast 0.3s ease;
  max-width: 360px;
}
.toast.success { border-color: rgba(16,185,129,0.4); }
.toast.error   { border-color: rgba(239,68,68,0.4); }
@keyframes slideInToast {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.toast-icon { font-size: 1.25rem; }
.toast-msg  { font-size: 0.88rem; color: var(--text-primary); font-weight: 500; }

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.animate-fade-up { animation: fadeUp 0.6s ease forwards; }
.animate-float   { animation: float 3s ease-in-out infinite; }
.animate-pulse   { animation: pulse 2s ease-in-out infinite; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }
.delay-5 { animation-delay: 0.5s; opacity: 0; }

/* ─── Call Window ─── */
@keyframes call-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50%       { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
}
.call-btn-active {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: white !important;
  border-color: transparent !important;
  animation: call-pulse 1.5s infinite;
}
.active-call-banner {
  background: linear-gradient(135deg, rgba(16,185,129,.15), rgba(5,150,105,.1));
  border: 1px solid rgba(16,185,129,.4);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  animation: call-pulse 2s infinite;
}
.call-live-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 1s infinite;
  flex-shrink: 0;
}


/* ─── Section Headings ─── */
.section-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal-400);
  margin-bottom: 1rem;
}
.section-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-400); display: inline-block;
}
.section-heading { margin-bottom: 1rem; }
.section-subtext { color: var(--text-secondary); max-width: 600px; }
.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ─── Divider ─── */
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }
.divider-glow { background: linear-gradient(to right, transparent, var(--teal-400), transparent); }

/* ─── Progress Bar ─── */
.progress { background: rgba(255,255,255,0.1); border-radius: var(--radius-full); height: 8px; }
.progress-fill { height: 100%; border-radius: var(--radius-full); background: var(--grad-brand); }

/* ─── Modal ─── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px); z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2rem;
  max-width: 540px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  animation: fadeUp 0.3s ease;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.modal-title { font-size: 1.2rem; font-weight: 700; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .video-layout { grid-template-columns: 1fr; }
  .waiting-room-panel { height: 300px; }
}
@media (max-width: 768px) {
  .sidebar { display: none; }
  .navbar-links { display: none; }
  .portal-content { padding: 1rem; padding-bottom: calc(70px + env(safe-area-inset-bottom) + 1rem); }
  .search-hero { flex-direction: column; border-radius: var(--radius-lg); }
  .search-field { border-right: none; border-bottom: 1px solid var(--border); }
  .search-field:last-of-type { border-bottom: none; }
  .profile-hero-inner { flex-direction: column; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .responsive-grid-2 { grid-template-columns: 1fr !important; }
}
@media (max-width: 400px) {
  .kpi-grid { grid-template-columns: 1fr; }
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(20,184,166,0.4); }

/* ─── Footer ─── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.9rem; color: var(--text-muted); margin-top: 1rem; max-width: 280px; }
.footer-col-title { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1rem; }
.footer-link { display: block; font-size: 0.85rem; color: var(--text-muted); padding: 0.2rem 0; transition: color 0.2s; }
.footer-link:hover { color: var(--teal-400); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 2rem; border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text-muted);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ─── Booking Steps ─── */
.step-indicator {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  opacity: 0.4; transition: all 0.3s;
}
.step-indicator.active { opacity: 1; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-card); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: var(--text-muted);
}
.active .step-num { background: var(--grad-brand); border-color: transparent; color: white; box-shadow: var(--shadow-glow); }
.step-label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.active .step-label { color: var(--teal-400); }
.step-line { flex: 1; height: 2px; background: var(--border); max-width: 60px; margin-top: 16px; transition: all 0.3s; }
.step-line.active { background: var(--teal-400); }

/* ─── Portal Sidebar (Standalone Architecture) ─── */
.portal-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 10;
}
.portal-sidebar-header {
  margin-bottom: 2rem;
  padding: 0.25rem 0.5rem;
}
.portal-sidebar-header .navbar-logo {
  -webkit-text-fill-color: transparent;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 1.3rem;
  font-weight: 800;
}
.portal-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.15rem;
}
.portal-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}
.portal-nav-link span { font-size: 1.1rem; flex-shrink: 0; }
.portal-nav-link:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
}
.portal-nav-link.active {
  background: rgba(20,184,166,0.12);
  color: var(--teal-400);
  border-left: 3px solid var(--teal-400);
  padding-left: calc(0.85rem - 3px);
  font-weight: 600;
}
.portal-sidebar-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.5rem;
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* Responsive: collapse sidebar on mobile */
@media (max-width: 768px) {
  .portal-sidebar { display: none; }
  .portal-layout { flex-direction: column; }
}

/* ─── Mobile Bottom Navigation Bar ─── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: rgba(15, 32, 64, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  /* hide behind drawer when open */
}
.mobile-bottom-nav-inner {
  display: flex;
  align-items: stretch;
  height: 62px;
}
.mob-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s, background 0.2s;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.mob-tab-icon {
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s;
}
.mob-tab.active { color: var(--teal-400); }
.mob-tab.active .mob-tab-icon { transform: scale(1.1); }
.mob-tab.active::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 2px;
  background: var(--teal-400);
  border-radius: 0 0 3px 3px;
}
.mob-tab:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }

/* ─── More Drawer (slide up) ─── */
.mob-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 290;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
}
.mob-drawer-overlay.open { display: block; }
.mob-drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 295;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 0.75rem 1.25rem 1.5rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.mob-drawer.open { transform: translateY(0); }
.mob-drawer-handle {
  width: 36px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 1.25rem;
}
.mob-drawer-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding: 0 0.25rem;
}
.mob-drawer-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
  border: none;
  background: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.mob-drawer-link .mob-drawer-icon { font-size: 1.2rem; flex-shrink: 0; }
.mob-drawer-link:hover, .mob-drawer-link:active {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
}
.mob-drawer-link.danger { color: #f87171; }
.mob-drawer-link.danger:hover { background: rgba(239,68,68,0.1); }
.mob-drawer-divider { height: 1px; background: var(--border); margin: 0.5rem 0; }

@media (max-width: 768px) {
  .mobile-bottom-nav { display: flex; flex-direction: column; }
}

/* ─── Consultation Page — Mobile Drawer Sidebar ─── */
@media (max-width: 768px) {
  body.consult-page { overflow: auto; }
  .consult-layout { flex-direction: column; height: auto; min-height: 100svh; }
  .consult-sidebar {
    display: none !important; /* replaced by bottom drawer */
  }
  .consult-main {
    height: 100svh;
    flex-direction: column;
  }
  .video-grid { padding: 0.25rem; }
  .controls-bar {
    padding: 0.75rem 0.5rem;
    gap: 0.5rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }
  .ctrl-btn { width: 46px; height: 46px; font-size: 1.15rem; }
  .ctrl-btn.end-call { width: 54px; height: 54px; font-size: 1.3rem; }
  .pip { width: 110px; height: 80px; }

  /* Consult info drawer */
  .consult-mob-drawer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 400;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 78svh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  }
  .consult-mob-drawer.open { transform: translateY(0); }
  .consult-mob-drawer-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 390;
  }
  .consult-mob-drawer-overlay.open { display: block; }

  /* Bottom fab tray for consult tabs */
  .consult-mob-tray {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 350;
    background: rgba(2,6,23,0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
  }
}
/* show tray only on mobile */
.consult-mob-tray { display: none; }
@media (max-width: 768px) {
  .consult-mob-tray { display: flex; }
  /* push controls up above tray */
  .consult-main .controls-bar {
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px) + 0.6rem);
  }
}

