/* ==========================================================================
   Medico Directory & Appointments - Professional Design System
   ========================================================================== */

:root {
  /* Primary Medical Blues & Teals */
  --primary: #0ea5e9;
  --primary-hover: #0284c7;
  --primary-light: #e0f2fe;
  --primary-glow: rgba(14, 165, 233, 0.2);
  
  --secondary: #14b8a6;
  --secondary-hover: #0d9488;
  --secondary-light: #ccfbf1;
  
  --accent: #818cf8;
  --accent-light: #eef2ff;

  /* Neutrals & Dark Luxury */
  --dark: #0a1628;
  --dark-surface: #0f172a;
  --dark-muted: #1e293b;
  --text-main: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --bg-page: #f1f5f9;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #38bdf8;
  
  /* Status Colors */
  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --star-gold: #fbbf24;
  
  /* Geometry & Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;
  
  /* High-End Layered Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 4px 8px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 24px 48px -12px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 20px 40px -15px rgba(14, 165, 233, 0.1), 0 1px 3px rgba(15, 23, 42, 0.05);

  --container-max: 1240px;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
a:hover {
  color: var(--primary-hover);
}

.med-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Global SVG Icon Guard — prevents full-size SVG anywhere
   ========================================================================== */
.med-icon, svg.med-icon {
  width: 20px;
  height: 20px;
  max-width: 100%;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.med-btn svg,
.med-btn .med-icon,
button > svg,
.med-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Explicit size controls for specific icon contexts */
.med-specialty-icon-box > svg,
.med-specialty-icon-box > .med-icon {
  width: 32px !important;
  height: 32px !important;
}
.med-benefit-icon > svg,
.med-benefit-icon > .med-icon {
  width: 28px !important;
  height: 28px !important;
}
.med-stat-icon-wrap > svg,
.med-stat-icon-wrap > .med-icon {
  width: 26px !important;
  height: 26px !important;
}
.med-doctor-verified-icon svg,
.med-doctor-verified-icon .med-icon {
  width: 14px !important;
  height: 14px !important;
}
.med-meta-rating svg,
.med-meta-rating .med-icon {
  width: 14px !important;
  height: 14px !important;
}
.med-doctor-location svg,
.med-doctor-location-row svg,
.med-doctor-location .med-icon,
.med-doctor-location-row .med-icon {
  width: 16px !important;
  height: 16px !important;
  color: var(--primary);
  flex-shrink: 0;
}
.med-drawer-links a svg {
  width: 20px !important;
  height: 20px !important;
}
.med-bottom-nav-item svg {
  width: 20px !important;
  height: 20px !important;
}
.med-dash-nav-btn svg {
  width: 18px !important;
  height: 18px !important;
}
.medp-card-icon > svg {
  width: 22px !important;
  height: 22px !important;
}

/* ==========================================================================
   Top Utility Bar
   ========================================================================== */
.med-topbar {
  background: #091322;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 8px 0;
}

.med-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.med-topbar-left,
.med-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.med-topbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.med-topbar-separator {
  color: #334155;
}

.med-topbar-link {
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}
.med-topbar-link:hover {
  color: #ffffff;
}

.med-topbar-link.med-highlight {
  color: #38bdf8;
  font-weight: 600;
}
.med-topbar-link.med-highlight:hover {
  color: #7dd3fc;
}

.med-topbar-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.med-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: medPulse 2s infinite;
  display: inline-block;
}

@keyframes medPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.med-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
}

.med-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.med-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.med-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px -2px rgba(2, 132, 199, 0.35);
  transition: transform 0.2s ease;
}
.med-brand:hover .med-logo-icon {
  transform: scale(1.05);
}
.med-logo-icon svg {
  width: 24px;
  height: 24px;
}

.med-brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.med-brand-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.med-nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.med-nav-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: all 0.15s ease;
}
.med-nav-link:hover {
  background: var(--bg-page);
  color: var(--primary);
}
.med-nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

.med-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Elevated Buttons */
.med-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  font-family: inherit;
}

.med-btn-primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}
.med-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
}

.med-btn-gradient {
  background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.3);
}
.med-btn-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(20, 184, 166, 0.4);
}

.med-btn-ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid transparent;
}
.med-btn-ghost:hover {
  background: var(--bg-page);
  color: var(--dark);
}

.med-btn-ghost-dark {
  background: var(--bg-page);
  border-color: var(--border-color);
  color: var(--dark);
}
.med-btn-ghost-dark:hover {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.med-btn-outline {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  box-shadow: var(--shadow-xs);
}
.med-btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.med-btn-pill {
  border-radius: var(--radius-full);
}

.med-btn-dashboard {
  background: var(--primary-light);
  border-color: rgba(2, 132, 199, 0.2);
  color: var(--primary) !important;
}
.med-btn-dashboard:hover {
  background: #0284c7;
  color: #ffffff !important;
}

.med-btn-icon-only {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.med-btn-logout {
  background: #fef2f2;
  border-color: #fee2e2;
  color: #ef4444;
}
.med-btn-logout:hover {
  background: #fee2e2;
}

.med-btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}
.med-btn-lg {
  padding: 13px 26px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Hero Section - Ultra Modern Premium Dark
   ========================================================================== */
.med-hero {
  position: relative;
  background: linear-gradient(135deg, #050e1f 0%, #0a1628 40%, #0c1f3f 70%, #071520 100%);
  padding: 90px 0 80px;
  overflow: hidden;
}

/* Decorative dot grid */
.med-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(14, 165, 233, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.med-hero-glow-1 {
  position: absolute;
  top: -80px;
  left: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, rgba(14, 165, 233, 0) 65%);
  pointer-events: none;
  animation: medFloatGlow 8s ease-in-out infinite alternate;
}

.med-hero-glow-2 {
  position: absolute;
  top: 60px;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, rgba(20, 184, 166, 0) 65%);
  pointer-events: none;
  animation: medFloatGlow 10s ease-in-out infinite alternate-reverse;
}

@keyframes medFloatGlow {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(20px, 30px) scale(1.08); }
}

.med-hero-center {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.med-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.12);
  letter-spacing: 0.3px;
}

.med-hero-title {
  font-size: 58px;
  font-weight: 800;
  line-height: 1.12;
  color: #f0f9ff;
  margin-bottom: 22px;
  letter-spacing: -1.5px;
}
.med-hero-title span {
  background: linear-gradient(135deg, #38bdf8 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.med-hero-desc {
  font-size: 18px;
  color: #94a3b8;
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* Floating Search Bar - elevated against dark hero */
.med-search-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-xl);
  padding: 10px;
  box-shadow: 0 32px 64px -8px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.1);
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  text-align: left;
  position: relative;
  overflow: visible;
  z-index: 25;
}

.med-search-col {
  flex: 1 1 180px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1.5px solid #e2e8f0;
  transition: all 0.2s ease;
  min-width: 0;
  position: relative;
  overflow: visible;
}
.med-search-col:focus-within,
.med-search-col.has-dropdown-open {
  background: #ffffff;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
  z-index: 50;
}

.med-search-col-icon {
  color: #0ea5e9;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.med-search-col-icon svg, .med-search-col-icon .med-icon {
  width: 18px;
  height: 18px;
}

.med-search-input-wrap {
  flex: 1;
  min-width: 0;
  overflow: visible;
  position: relative;
}

.med-search-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  margin-bottom: 2px;
  white-space: nowrap;
}

.med-search-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  font-family: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ══ Modern HTML5 / CSS3 Custom Select Dropdown UI ══════════════════════════ */
.med-search-select-hidden {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  pointer-events: none !important;
  clip: rect(0, 0, 0, 0) !important;
  margin: -1px !important;
}

.med-custom-select-box {
  position: relative;
  width: 100%;
  cursor: pointer;
  user-select: none;
}

.med-custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

.med-custom-select-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.med-custom-select-arrow {
  width: 14px;
  height: 14px;
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.med-custom-select-box.is-open .med-custom-select-arrow {
  transform: rotate(180deg);
  color: #0284c7;
}

.med-custom-select-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: -14px;
  right: -14px;
  min-width: 250px;
  background: #ffffff;
  border-radius: 18px;
  border: 1.5px solid #bae6fd;
  box-shadow: 0 24px 50px -10px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(14, 165, 233, 0.12);
  padding: 8px;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.med-custom-select-box.is-open .med-custom-select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.med-custom-select-list {
  max-height: 250px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.med-custom-select-list::-webkit-scrollbar {
  width: 5px;
}
.med-custom-select-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.med-custom-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  transition: all 0.15s ease;
  cursor: pointer;
}

.med-custom-select-option:hover {
  background: #f0f9ff;
  color: #0284c7;
  transform: translateX(3px);
}

.med-custom-select-option.is-selected {
  background: #e0f2fe;
  color: #0284c7;
  font-weight: 800;
}

.med-custom-select-option .med-custom-check {
  width: 15px;
  height: 15px;
  color: #0284c7;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.med-custom-select-option.is-selected .med-custom-check {
  opacity: 1;
  transform: scale(1);
}

/* Fallback styling for standard selects */
.med-search-select,
.med-form-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%230ea5e9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 24px;
}

.med-search-btn-col {
  flex: 0 0 auto;
}
.med-btn-search {
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
}

/* Quick Tags */
.med-quick-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
  font-size: 13px;
}
.med-quick-label {
  color: #94a3b8;
  font-weight: 600;
}
.med-quick-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.med-chip {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.med-chip:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: rgba(14, 165, 233, 0.5);
  color: #7dd3fc;
}

/* Floating Stats Bar */
.med-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-top: 52px;
  text-align: left;
}

.med-stat-card-hero {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.25s ease;
}
.med-stat-card-hero:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(14, 165, 233, 0.3);
  transform: translateY(-2px);
}

.med-stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.med-stat-icon-wrap svg, .med-stat-icon-wrap .med-icon {
  width: 22px;
  height: 22px;
}

.med-stat-val {
  font-size: 20px;
  font-weight: 800;
  color: #f0f9ff;
  line-height: 1.1;
}

.med-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 2px;
}

/* ==========================================================================
   Sections Common
   ========================================================================== */
.med-section {
  padding: 70px 0;
}

.med-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
}

.med-section-header-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.med-section-tag {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.med-section-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.6px;
  line-height: 1.25;
}

.med-section-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  margin-top: 10px;
}

/* ==========================================================================
   Specialties Grid
   ========================================================================== */
.med-specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.med-specialty-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.med-specialty-card:hover {
  transform: translateY(-5px);
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: var(--shadow-card);
}

.med-specialty-icon-box {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: all 0.25s ease;
}
.med-specialty-card:hover .med-specialty-icon-box {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.05);
}
.med-specialty-icon-box svg {
  width: 26px;
  height: 26px;
}

.med-specialty-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}

.med-specialty-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  flex-grow: 1;
}

.med-specialty-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.med-specialty-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary);
  background: var(--secondary-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.med-specialty-arrow {
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.2s ease;
}
.med-specialty-card:hover .med-specialty-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   Featured Doctors Grid
   ========================================================================== */
.med-section-doctors {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.med-doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.med-doctor-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.med-doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(2, 132, 199, 0.3);
}

.med-doctor-top {
  position: relative;
  height: 240px;
  background: #e2e8f0;
  overflow: hidden;
}
.med-doctor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}
.med-doctor-card:hover .med-doctor-img {
  transform: scale(1.03);
}

.med-doctor-badge-status {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.med-pulse-dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.med-doctor-fee-pill {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.med-fee-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}
.med-fee-amount {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}

.med-doctor-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.med-doctor-specialty-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.med-doctor-specialty-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.med-doctor-verified-icon {
  color: #059669;
  display: flex;
}
.med-doctor-verified-icon svg {
  width: 18px;
  height: 18px;
}

.med-doctor-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.3;
}
.med-doctor-name a {
  color: var(--dark);
}
.med-doctor-name a:hover {
  color: var(--primary);
}

.med-doctor-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13px;
}

.med-meta-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--star-gold);
  font-weight: 700;
}
.med-meta-rating svg {
  width: 16px;
  height: 16px;
}
.med-meta-rating span {
  color: var(--text-muted);
  font-weight: normal;
  font-size: 12px;
}

.med-meta-exp {
  color: var(--text-muted);
  font-size: 13px;
}

.med-doctor-location-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.med-doctor-location-row svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

.med-doctor-footer-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}
.med-doctor-footer-actions .med-btn {
  flex: 1;
}

/* ==========================================================================
   Benefits Section
   ========================================================================== */
.med-section-benefits {
  background: var(--bg-page);
}

.med-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.med-benefit-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 30px 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease;
}
.med-benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.med-benefit-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.med-benefit-icon svg {
  width: 26px;
  height: 26px;
}

.med-benefit-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}

.med-benefit-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   How It Works Steps
   ========================================================================== */
.med-section-steps {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.med-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.med-step-card {
  background: var(--bg-page);
  border-radius: var(--radius-xl);
  padding: 34px 28px;
  border: 1px solid var(--border-color);
  position: relative;
}

.med-step-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 14px;
  opacity: 0.85;
}

.med-step-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}

.med-step-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Doctor Call To Action Banner
   ========================================================================== */
.med-cta-banner {
  padding: 60px 0;
  background: var(--bg-page);
}

.med-cta-box {
  background: linear-gradient(135deg, #091322 0%, #0f172a 100%);
  border-radius: var(--radius-xl);
  padding: 50px 48px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 36px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.med-cta-content {
  max-width: 660px;
}

.med-cta-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #38bdf8;
  margin-bottom: 12px;
}

.med-cta-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.med-cta-desc {
  font-size: 16px;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 22px;
}

.med-cta-checks {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
  color: #38bdf8;
}

.med-btn-cta {
  background: #ffffff;
  color: var(--dark) !important;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.med-btn-cta:hover {
  background: #f0f9ff;
  color: var(--primary) !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   Modals & Popups
   ========================================================================== */
.med-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 19, 34, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.med-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.med-modal-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.97);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 34px;
  position: relative;
  border: 1px solid var(--border-color);
}
.med-modal-overlay.active .med-modal-box {
  transform: translateY(0) scale(1);
}

.med-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-page);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.med-modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
}

.med-modal-tabs {
  display: flex;
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 24px;
}
.med-tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  font-family: inherit;
}
.med-tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.med-form-group {
  margin-bottom: 18px;
}
.med-form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.med-form-input,
.med-form-select,
.med-form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  background: #ffffff;
  transition: all 0.2s ease;
  color: var(--dark);
}
.med-form-input:focus,
.med-form-select:focus,
.med-form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Toast Notifications */
.med-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.med-toast {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  animation: slideIn 0.3s ease;
  min-width: 300px;
  max-width: 420px;
}
.med-toast.success { border-left-color: var(--success); }
.med-toast.error { border-left-color: var(--danger); }
.med-toast.warning { border-left-color: var(--warning); }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   Footer & Pre-Footer Assistance Bar (Ultra-Premium Redesign)
   ========================================================================== */
.med-footer-pre {
  background: linear-gradient(135deg, #091528 0%, #0e223f 50%, #0a182d 100%);
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 0;
  position: relative;
  overflow: hidden;
}
.med-footer-pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #0ea5e9, transparent);
}
.med-footer-pre-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.med-footer-pre-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.med-footer-pre-icon {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex-shrink: 0;
}
.med-footer-pre-icon svg {
  width: 26px !important;
  height: 26px !important;
}
.med-footer-pre-title {
  color: #f8fafc;
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}
.med-footer-pre-desc {
  color: #94a3b8;
  font-size: 14px;
  margin: 0;
  max-width: 600px;
}
.med-footer-pre-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.med-footer-hotline-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: #ffffff;
  text-decoration: none;
  transition: all 0.25s ease;
}
.med-footer-hotline-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  color: #ffffff;
}
.med-footer-hotline-btn svg {
  width: 22px !important;
  height: 22px !important;
  color: #38bdf8;
}
.med-hotline-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #94a3b8;
  font-weight: 600;
}
.med-hotline-number {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}
.med-footer-wa-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #16a34a;
  color: #ffffff;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
  transition: all 0.25s ease;
}
.med-footer-wa-btn:hover {
  background: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.45);
  color: #ffffff;
}
.med-footer-wa-btn svg {
  width: 18px !important;
  height: 18px !important;
}

/* Main Footer */
.med-footer {
  background: #060e1c;
  color: #94a3b8;
  padding: 68px 0 28px;
  position: relative;
}
.med-footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 1.2fr 1.6fr;
  gap: 48px;
  margin-bottom: 56px;
}
.med-footer-brand {
  margin-bottom: 18px;
}
.med-footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  margin-bottom: 16px;
}
.med-footer-logo-img {
  height: 52px;
  width: 52px;
  object-fit: contain;
  background: #ffffff;
  padding: 4px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.med-footer-brand-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.4px;
  color: #ffffff;
  line-height: 1.1;
  display: block;
}
.med-footer-brand-sub {
  font-size: 12px;
  font-weight: 600;
  color: #38bdf8;
  display: block;
  letter-spacing: 0.3px;
}
.med-footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 22px;
}

/* Footer Trust Badges */
.med-footer-trust-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.med-footer-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #cbd5e1;
}
.med-footer-trust-item svg {
  width: 16px !important;
  height: 16px !important;
  color: #38bdf8;
  flex-shrink: 0;
}

/* Footer Social Icons */
.med-footer-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.med-footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all 0.2s ease;
  text-decoration: none;
}
.med-footer-social-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}
.med-footer-social-btn svg {
  width: 17px !important;
  height: 17px !important;
}

/* Titles & Navigation Columns */
.med-footer-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: -0.2px;
  position: relative;
  padding-bottom: 10px;
}
.med-footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: #38bdf8;
  border-radius: 2px;
}
.med-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
}
.med-footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.med-footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}
.med-footer-links a span.med-link-arrow {
  color: #38bdf8;
  font-size: 12px;
  transition: transform 0.2s ease;
}
.med-footer-links a:hover span.med-link-arrow {
  transform: translateX(3px);
}

/* Footer Doctor Card Callout */
.med-footer-doctor-cta-box {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(2, 132, 199, 0.03) 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.med-footer-doctor-cta-box h5 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
}
.med-footer-doctor-cta-box p {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.med-footer-contact-mini {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: #94a3b8;
}
.med-footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
}
.med-footer-contact-item svg {
  width: 15px !important;
  height: 15px !important;
  color: #38bdf8;
  flex-shrink: 0;
}

/* Bottom Bar */
.med-footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}
.med-footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.med-footer-bottom-links a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}
.med-footer-bottom-links a:hover {
  color: #cbd5e1;
}
.med-footer-credit a {
  color: #38bdf8;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}
.med-footer-credit a:hover {
  color: #7dd3fc;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}
.med-scroll-top-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.med-scroll-top-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-3px);
}
.med-scroll-top-btn svg {
  width: 16px !important;
  height: 16px !important;
}

/* ==========================================================================
   Doctor Profile & Interactive Booking Styles
   ========================================================================== */
.med-profile-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 36px;
  margin: 40px 0 80px;
  align-items: start;
}

.med-profile-header-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 28px;
  margin-bottom: 28px;
  align-items: center;
}

.med-profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
  border: 3px solid #ffffff;
  outline: 1px solid var(--border-color);
}

.med-profile-details {
  display: flex;
  flex-direction: column;
}

.med-profile-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.med-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}
.med-badge-verified {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}
.med-badge-specialty {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.med-profile-name {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.med-profile-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.med-profile-card-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.med-profile-card-title svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

/* Booking Widget Card */
.med-booking-widget {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  position: sticky;
  top: 96px;
}

.med-booking-price-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-color);
}
.med-booking-price-header .label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.med-booking-price-header .price {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

/* Slots Selector */
.med-slots-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  margin-top: 10px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}

.med-slot-btn {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  padding: 9px 4px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  font-family: inherit;
}
.med-slot-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.med-slot-btn.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

/* ==========================================================================
   Logo & Mobile Navigation Components
   ========================================================================== */
.med-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease;
}
.med-header-logo-img {
  height: 54px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.med-brand:hover .med-logo-img,
.med-brand:hover .med-header-logo-img {
  transform: scale(1.03);
}

/* Mobile Toggle Hamburger */
.med-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
}
.med-mobile-toggle .med-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* Mobile Slide-over Drawer */
.med-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 19, 34, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.med-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.med-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background: #ffffff;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}
.med-drawer-overlay.active .med-drawer-content {
  transform: translateX(0);
}

.med-drawer-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}
.med-drawer-close {
  background: var(--bg-page);
  border: none;
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.med-drawer-close:hover {
  background: #fee2e2;
  color: #ef4444;
}

.med-drawer-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.med-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}
.med-drawer-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--dark);
  font-weight: 700;
  font-size: 15px;
  transition: all 0.15s ease;
}
.med-drawer-links a svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}
.med-drawer-links a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.med-drawer-actions {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.med-drawer-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

/* Mobile Bottom App Navigation Bar (Phones) */
.med-mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  z-index: 999;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
}

.med-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}
.med-bottom-nav-item svg {
  width: 22px;
  height: 22px;
}
.med-bottom-nav-item:hover,
.med-bottom-nav-item.active {
  color: var(--primary);
}

/* ==========================================================================
   Responsive Adaptations & UX Refinements
   ========================================================================== */
@media (max-width: 991px) {
  .med-nav-menu { display: none; }
  .med-mobile-toggle { display: flex; }
  .med-hide-mobile { display: none !important; }
  
  .med-hero-title { font-size: 42px; }
  .med-profile-grid { grid-template-columns: 1fr; }
  .med-booking-widget { position: static; margin-top: 20px; }
  .med-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .med-footer-pre-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .med-footer-pre-left {
    flex-direction: column;
    text-align: center;
  }
  .med-footer-pre-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .med-cta-box { padding: 36px 28px; }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 70px; /* Space for bottom app nav */
  }
  
  .med-mobile-bottom-nav {
    display: flex;
  }
  
  .med-topbar { display: none; }
  
  .med-header-inner {
    height: 68px;
  }
  .med-logo-img,
  .med-header-logo-img {
    height: 42px;
    max-width: 170px;
  }
  .med-brand-sub {
    font-size: 10px;
  }

  .med-hero {
    padding: 52px 0 44px;
  }
  .med-hero-title {
    font-size: 34px;
    letter-spacing: -0.8px;
  }
  .med-hero-desc {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .med-search-card {
    flex-direction: column;
    padding: 14px;
    gap: 10px;
  }
  .med-search-col {
    width: 100%;
    padding: 12px 14px;
  }
  .med-search-btn-col {
    width: 100%;
  }
  .med-btn-search {
    width: 100%;
    padding: 14px;
  }

  .med-stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 30px;
  }
  .med-stat-card-hero {
    padding: 12px;
    gap: 10px;
  }
  .med-stat-icon-wrap {
    width: 38px;
    height: 38px;
  }
  .med-stat-val {
    font-size: 18px;
  }
  .med-stat-label {
    font-size: 11px;
  }

  .med-doctors-grid {
    grid-template-columns: 1fr;
  }
  .med-specialties-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .med-specialty-card {
    padding: 18px;
  }

  .med-profile-header-card {
    flex-direction: column;
    text-align: center;
    padding: 22px;
  }
  .med-profile-avatar {
    width: 110px;
    height: 110px;
  }
  .med-profile-details {
    align-items: center;
  }
  .med-profile-name {
    font-size: 24px;
  }

  .med-footer-pre-actions {
    flex-direction: column;
    width: 100%;
  }
  .med-footer-hotline-btn,
  .med-footer-wa-btn {
    width: 100%;
    justify-content: center;
  }

  .med-footer {
    padding: 48px 0 24px;
  }
  .med-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .med-footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .med-footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .med-hero-title {
    font-size: 28px;
    letter-spacing: -0.5px;
  }
  .med-hero-desc {
    font-size: 14px;
  }
  .med-specialties-grid {
    grid-template-columns: 1fr;
  }
  .med-stats-bar {
    grid-template-columns: 1fr 1fr;
  }
}
