/* ==========================================================================
   INDORE PATHLAB & DIAGNOSTIC CENTRE - OFFICIAL STYLESHEET
   ISO 9001:2015 Certified Medical Design System
   ========================================================================== */

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

:root {
  /* Diagno Assist Labs Logo-Derived Palette */
  /* Diagno Royal Blue (from "D" and "Diagno") */
  --primary: #005CB9;
  --primary-hover: #004B99;
  --primary-light: #EBF4FF;
  --primary-glow: rgba(0, 92, 185, 0.28);
  
  /* Assist Medical Teal (from "+" cross and "Assist") */
  --secondary: #00A58E;
  --secondary-hover: #008B77;
  --secondary-light: #E6F8F5;
  --secondary-glow: rgba(0, 165, 142, 0.25);

  /* Wave Gradient Accents */
  --accent-aqua: #00C9A7;
  --accent-cyan: #00B4D8;
  --gradient-logo: linear-gradient(135deg, #005CB9 0%, #00A58E 100%);
  --gradient-wave: linear-gradient(90deg, #005CB9 0%, #008EC4 50%, #00A58E 100%);

  /* Warm Accent for urgent alerts & savings */
  --accent-orange: #FF6B4A;
  --accent-orange-hover: #E85D3B;
  --accent-soft: #FFF3E0;

  --success: #10B981;
  --success-bg: #ECFDF5;
  --danger: #EF4444;
  --danger-bg: #FEF2F2;
  --warning: #F59E0B;
  --warning-bg: #FFFBEB;
  --info: #0284C7;
  --info-bg: #F0F9FF;

  /* Surfaces & Backgrounds (Light Mode Default) */
  --bg-body: #F5F8FC;
  --bg-surface: #FFFFFF;
  --bg-subtle: #EDF3F9;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --border-color: #DCE6F1;
  --border-light: #EBF1F7;

  /* Text Colors */
  --text-primary: #0A1629;
  --text-secondary: #415165;
  --text-muted: #8494A8;
  --text-inverse: #FFFFFF;

  /* Shadows & Depth */
  --shadow-sm: 0 1px 3px rgba(0, 92, 185, 0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 14px -2px rgba(0, 92, 185, 0.08), 0 2px 6px -1px rgba(0,0,0,0.03);
  --shadow-lg: 0 12px 28px -4px rgba(0, 92, 185, 0.12), 0 4px 12px -2px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 40px -8px rgba(0, 92, 185, 0.16);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   DARK MODE OVERRIDES (Deep Midnight Navy & Glowing Teal)
   ========================================================================== */
[data-theme="dark"] {
  --bg-body: #080D18;
  --bg-surface: #0F1726;
  --bg-subtle: #162238;
  --bg-glass: rgba(15, 23, 38, 0.92);
  --border-color: #1E2E4A;
  --border-light: #162238;

  --text-primary: #F1F6FD;
  --text-secondary: #CBD5E1;
  --text-muted: #64748B;

  --primary-light: rgba(0, 92, 185, 0.22);
  --secondary-light: rgba(0, 165, 142, 0.22);
  --accent-soft: rgba(255, 107, 74, 0.15);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
  --shadow-md: 0 6px 16px rgba(0,0,0,0.6);
  --shadow-lg: 0 14px 32px rgba(0,0,0,0.7);
  --shadow-xl: 0 24px 48px rgba(0,0,0,0.8);
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--primary-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: all var(--transition-fast);
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

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

.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

/* Utility Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-accent {
  background: var(--accent-orange);
  color: #FFFFFF;
}
.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
}
.badge-success {
  background: var(--success-bg);
  color: var(--success);
}
.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
}
.badge-warning {
  background: var(--warning-bg);
  color: #D97706;
}
.badge-purple {
  background: #F3E8FF;
  color: #9333EA;
}
.badge-pink {
  background: #FCE7F3;
  color: #DB2777;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--secondary-hover) 100%);
  box-shadow: 0 6px 20px rgba(0, 92, 185, 0.4);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-orange) 0%, #EA580C 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(255, 107, 74, 0.35);
}
.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-orange-hover) 0%, #C2410C 100%);
  box-shadow: 0 6px 20px rgba(255, 107, 74, 0.5);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn-outline {
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  background: var(--bg-surface);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}

.btn-soft {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}
.btn-soft:hover {
  background: #D8EBFF;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}
.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   TOP NOTIFICATION BAR & HEADER
   ========================================================================== */
.top-bar {
  background: linear-gradient(90deg, #071938 0%, #003F80 50%, #005CB9 100%);
  color: #E2E8F0;
  font-size: 0.82rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.top-bar-item svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.top-bar-link {
  color: #A7F3D0;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.top-bar-link:hover {
  color: #FFFFFF;
}

/* Main Navigation Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}
.main-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1.5rem;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}
.brand-logo-img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  padding: 2px 6px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}
.brand-logo:hover .brand-logo-img {
  transform: scale(1.03);
}
.footer-logo-img {
  height: 50px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  background: #FFFFFF;
  padding: 4px 8px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.brand-mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 12px var(--primary-glow);
  position: relative;
}
.brand-mark svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}
.brand-mark::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: var(--accent-orange);
  border: 2px solid var(--bg-surface);
  border-radius: 50%;
}
.brand-text h1 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.brand-text h1 span {
  color: var(--primary);
}
.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}
.nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-secondary);
  padding: 0.5rem 0.2rem;
  position: relative;
  transition: color var(--transition-fast);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--primary);
  border-radius: var(--radius-pill);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
}

.cart-toggle-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
}
.cart-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.cart-badge {
  background: var(--accent-orange);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 3.5rem 0 4rem;
  background: radial-gradient(circle at top right, rgba(0, 92, 185, 0.1) 0%, transparent 60%),
              radial-gradient(circle at bottom left, rgba(0, 165, 142, 0.08) 0%, transparent 50%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
  border: 1px solid rgba(0, 92, 185, 0.2);
}
.hero-pill-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 165, 142, 0.3);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(0, 165, 142, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(0, 165, 142, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 165, 142, 0); }
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}
.hero-title .highlight {
  color: var(--primary);
  background: linear-gradient(135deg, #005CB9 0%, #008EC4 50%, #00A58E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 580px;
}

/* Hero Search Autocomplete Bar */
.hero-search-box {
  position: relative;
  max-width: 600px;
  margin-bottom: 2rem;
}
.hero-search-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 0.5rem 0.6rem 0.5rem 1.4rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-fast);
}
.hero-search-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.hero-search-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  padding: 0.4rem 0.5rem;
}
.hero-search-input-wrap input::placeholder {
  color: var(--text-muted);
}

.search-results-dropdown {
  position: absolute;
  top: 105%;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  max-height: 380px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}
.search-results-dropdown.active {
  display: block;
}
.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.search-result-item:hover {
  background: var(--primary-light);
}
.search-result-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.search-result-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.search-result-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

/* Trust Badges Bar */
.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}
.trust-metric {
  display: flex;
  flex-direction: column;
}
.trust-metric-val {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}
.trust-metric-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Hero Visual Media Frame */
.hero-media-wrapper {
  position: relative;
}
.hero-image-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--bg-surface);
}
.hero-image-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hero-image-frame:hover img {
  transform: scale(1.03);
}

/* Floating Overlay Cards */
.hero-float-card {
  position: absolute;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 5;
  animation: float 4s ease-in-out infinite alternate;
}
.hero-float-top {
  top: -18px;
  left: -20px;
}
.hero-float-bottom {
  bottom: -20px;
  right: -15px;
  animation-delay: -2s;
}

@keyframes float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

.float-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.float-icon-teal {
  background: var(--primary-light);
  color: var(--primary);
}
.float-icon-orange {
  background: var(--accent-soft);
  color: var(--accent-orange);
}
.float-text h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}
.float-text p {
  font-size: 0.78rem;
  margin: 0;
}

/* ==========================================================================
   QUICK ACTION CARDS SECTION
   ========================================================================== */
.quick-services-section {
  margin-top: -2rem;
  position: relative;
  z-index: 10;
  padding-bottom: 3.5rem;
}
.quick-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.quick-action-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}
.quick-action-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
}
.quick-action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.quick-action-card:hover::before {
  opacity: 1;
}

.action-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.action-card-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}
.action-card-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--accent-orange);
  color: #FFFFFF;
}
.quick-action-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.quick-action-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}
.action-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary);
}

/* ==========================================================================
   POPULAR HEALTH PACKAGES SECTION
   ========================================================================== */
.section {
  padding: 4.5rem 0;
}
.section-alt {
  background: var(--bg-subtle);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Packages Grid */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.package-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}
.package-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}
.package-card.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 8px 30px var(--primary-glow);
}

.package-top-bar {
  padding: 1.25rem 1.5rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.package-body {
  padding: 1rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.package-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.package-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

/* Package Meta Chips */
.package-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}
.meta-chip svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* Highlights List */
.package-features {
  list-style: none;
  margin-bottom: 1.5rem;
  flex: 1;
}
.package-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.package-features li svg {
  width: 16px;
  height: 16px;
  fill: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Pricing Section */
.package-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.price-display {
  display: flex;
  flex-direction: column;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.price-current {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}
.price-original {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-savings {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--success);
}

/* ==========================================================================
   TEST CATALOG & SEARCH SYSTEM
   ========================================================================== */
.catalog-controls {
  margin-bottom: 2rem;
}
.category-tabs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar {
  display: none;
}
.cat-tab-btn {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.cat-tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.cat-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.tests-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.test-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}
.test-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.test-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.test-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.test-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* ==========================================================================
   HOME SAMPLE COLLECTION SERVICE SHOWCASE & FORM
   ========================================================================== */
.home-collection-section {
  position: relative;
  overflow: hidden;
}
.home-collection-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.home-collection-media {
  position: relative;
}
.collection-img-box {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 3px solid var(--bg-surface);
}
.collection-img-box img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.collection-features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.c-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-surface);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.c-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.c-feature-text h6 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}
.c-feature-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Booking Form Container */
.booking-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
}
.booking-form-header {
  margin-bottom: 1.75rem;
}
.booking-form-header h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all var(--transition-fast);
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* ==========================================================================
   DOWNLOAD REPORTS & PATIENT PORTAL
   ========================================================================== */
.report-portal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
}
.report-search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.report-demo-chips {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.demo-chip-btn {
  background: var(--bg-subtle);
  border: 1px dashed var(--primary);
  color: var(--primary);
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  cursor: pointer;
}
.demo-chip-btn:hover {
  background: var(--primary-light);
}

/* Printable Medical Report Sheet (Rendered on Search) */
.report-result-wrapper {
  margin-top: 2rem;
  display: none;
}
.report-result-wrapper.active {
  display: block;
}

.medical-report-sheet {
  background: #FFFFFF;
  color: #1E293B;
  border-radius: var(--radius-lg);
  border: 1.5px solid #CBD5E1;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}
[data-theme="dark"] .medical-report-sheet {
  background: #0F172A;
  color: #F8FAFC;
  border-color: #334155;
}

.report-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 1.5rem;
}
.report-lab-info h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 0.2rem;
}
.report-lab-info p {
  font-size: 0.8rem;
  color: #64748B;
}
.report-cert-seal {
  text-align: right;
}
.cert-badge-pill {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  display: inline-block;
}

.report-patient-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--bg-subtle);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
  font-size: 0.86rem;
}
.report-meta-item strong {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Report Table */
.report-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.75rem;
  font-size: 0.9rem;
}
.report-table th {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  color: #FFFFFF;
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.report-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-light);
}
.report-table tr:hover td {
  background: rgba(0, 92, 185, 0.04);
}
.result-flag-high {
  color: var(--danger);
  font-weight: 700;
}
.result-flag-normal {
  color: var(--success);
  font-weight: 600;
}

.report-doctor-signoff {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}
.doc-sign-box {
  text-align: right;
}
.doc-sign-img {
  font-family: 'Brush Script MT', cursive, sans-serif;
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

/* ==========================================================================
   PRESCRIPTION UPLOAD SECTION
   ========================================================================== */
.rx-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.drop-zone {
  border: 2px dashed var(--primary);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  background: var(--bg-surface);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.drop-zone:hover, .drop-zone.dragover {
  background: var(--primary-light);
  border-color: var(--primary-hover);
}
.drop-zone-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.drop-zone-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}
.file-preview-card {
  display: none;
  background: var(--bg-subtle);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  align-items: center;
  justify-content: space-between;
}
.file-preview-card.active {
  display: flex;
}

/* ==========================================================================
   INDORE LAB LOCATOR & CENTERS
   ========================================================================== */
.locator-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.centers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.center-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}
.center-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.center-card.main-hub {
  border: 2px solid var(--primary);
}
.center-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.center-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.center-addr {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: flex;
  gap: 0.4rem;
}
.center-timings {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}
.center-features-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.center-tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

/* ==========================================================================
   CONNECTED PATIENT PORTAL & USER AUTHENTICATION
   ========================================================================== */

/* Navbar User Account Widget */
.user-nav-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.user-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 92, 185, 0.08);
  border: 1px solid rgba(0, 92, 185, 0.25);
  color: var(--primary);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.user-auth-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
}
.user-avatar-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  padding: 0.35rem 0.85rem 0.35rem 0.35rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}
.user-avatar-pill:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-aqua) 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}
.user-nav-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 250px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem 0;
  display: none;
  z-index: 1000;
  animation: fadeIn 0.15s ease-out;
}
.user-dropdown-menu.active {
  display: block;
}
.user-dropdown-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
}
.user-dropdown-header strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-primary);
}
.user-dropdown-header span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.user-dropdown-item:hover {
  background: var(--bg-subtle);
  color: var(--primary);
}
.user-dropdown-item.danger:hover {
  background: var(--danger-light);
  color: var(--danger);
}

/* Auth Modal Dialog */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 30, 61, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 1.5rem;
}
.auth-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.auth-modal-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  padding: 2rem;
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}
.auth-modal-overlay.active .auth-modal-card {
  transform: scale(1);
}
.auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.auth-modal-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-aqua) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}
.auth-modal-logo-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.auth-modal-header h3 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--text-primary);
}
.auth-modal-header p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0.15rem 0 0;
}
.auth-close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.auth-close-btn:hover {
  background: var(--bg-subtle);
  color: var(--danger);
}

/* Tabs */
.auth-tabs {
  display: flex;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 1.25rem;
}
.auth-tab-btn {
  flex: 1;
  padding: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.auth-tab-btn.active {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Demo Accounts Box */
.demo-accounts-box {
  background: rgba(0, 92, 185, 0.05);
  border: 1px dashed rgba(0, 92, 185, 0.3);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}
.demo-accounts-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.demo-chips-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.demo-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.demo-chip:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

/* Input Icon Wrap */
.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon-wrap svg {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 18px;
  fill: var(--text-secondary);
  pointer-events: none;
}
.input-icon-wrap .form-control {
  padding-left: 2.4rem;
}
.auth-form-pane {
  display: none;
}
.auth-form-pane.active {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}
.auth-switch-text {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 1.25rem;
}
.auth-switch-text a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

/* Dashboard Modal */
.dashboard-modal-card {
  max-width: 780px;
}
.dashboard-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}
.user-avatar-large {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-aqua) 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-mini-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  text-align: center;
}
.stat-mini-val {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}
.stat-mini-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dash-bookings-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.25rem;
}
.user-booking-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  transition: all var(--transition-fast);
}
.user-booking-item:hover {
  background: var(--bg-surface);
  border-color: var(--primary);
}
.dash-family-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.dash-family-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Patient Portal Container Section Styles */
.portal-dashboard-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.portal-top-banner {
  background: linear-gradient(135deg, #071E3D 0%, #005CB9 50%, #00A58E 100%);
  color: #FFFFFF;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.portal-top-banner h3 {
  font-size: 1.8rem;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
}
.portal-top-banner p {
  color: #EBF4FF;
  max-width: 600px;
  font-size: 0.95rem;
}
.portal-body {
  padding: 2.5rem;
}
.portal-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
@media (max-width: 640px) {
  .portal-features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .portal-body {
    padding: 1.25rem 1rem;
  }
}

/* ==========================================================================
   SLIDE-OVER SHOPPING CART DRAWER
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2190;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-surface);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25);
  z-index: 2200;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}
.cart-drawer.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.cart-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}
.cart-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.close-drawer-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-drawer-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}
.cart-item-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.cart-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.cart-item-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.cart-item-price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
}
.cart-remove-btn {
  color: var(--text-muted);
  padding: 0.25rem;
}
.cart-remove-btn:hover {
  color: var(--danger);
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
}
.coupon-input-wrap {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.coupon-input-wrap input {
  flex: 1;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.88rem;
}

/* ==========================================================================
   SAMPLE TRACKING MODAL / COMPONENT
   ========================================================================== */
.tracking-stepper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  padding-left: 2rem;
  margin: 1.5rem 0;
}
.tracking-stepper::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 9px;
  width: 2px;
  background: var(--border-color);
}
.step-item {
  position: relative;
  display: flex;
  flex-direction: column;
}
.step-dot {
  position: absolute;
  left: -2rem;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid var(--border-color);
  z-index: 2;
}
.step-item.completed .step-dot {
  background: var(--primary);
  border-color: var(--primary);
}
.step-item.active .step-dot {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 4px rgba(255, 107, 74, 0.25);
  animation: pulse-dot 1.5s infinite;
}
.step-content h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}
.step-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #08101C;
  color: #94A3B8;
  padding: 5rem 0 2rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer h4 {
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.65rem;
}
.footer-links a {
  color: #94A3B8;
}
.footer-links a:hover {
  color: #FFFFFF;
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.toast {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 300px;
  max-width: 420px;
  animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.toast-success { border-left-color: var(--success); }
.toast.toast-error { border-left-color: var(--danger); }
.toast.toast-accent { border-left-color: var(--accent-orange); }

@keyframes slideInUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   PRINT LAYOUT FOR OFFICIAL ISO CERTIFIED MEDICAL REPORT
   ========================================================================== */
@media print {
  body * {
    visibility: hidden;
  }
  #printableReportArea, #printableReportArea * {
    visibility: visible;
  }
  #printableReportArea {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 20px;
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  .no-print {
    display: none !important;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-menu {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
  .nav-actions .btn.btn-primary.btn-sm,
  .nav-actions .btn-primary {
    display: none !important;
  }
  .brand-sub {
    display: none !important;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-media-wrapper {
    max-width: 640px;
    margin: 0 auto;
  }
  .quick-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tests-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .centers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-collection-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash-family-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER
   ========================================================================== */
.mobile-nav-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 25, 56, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}
.mobile-nav-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-surface);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}
.mobile-nav-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-subtle);
}
.mobile-drawer-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.mobile-drawer-logo img {
  height: 34px;
  width: auto;
  border-radius: 6px;
  background: #ffffff;
  padding: 2px 4px;
}
.mobile-drawer-logo span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-primary);
}
.mobile-drawer-logo span em {
  font-style: normal;
  color: var(--primary);
}
.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background var(--transition-fast);
}
.mobile-drawer-close:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.mobile-drawer-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.mobile-drawer-link svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}
.mobile-drawer-link:hover, .mobile-drawer-link.active {
  background: var(--primary-light);
  color: var(--primary);
}
.mobile-drawer-link.active {
  box-shadow: inset 3px 0 0 var(--primary);
}

.mobile-drawer-cta-group {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.mobile-drawer-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-subtle);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Quality Assurance Grid */
.qa-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 992px) {
  .qa-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Dashboard Split Grid */
.dash-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .dash-split-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 768px) {
  /* Top Bar */
  .top-bar {
    padding: 0.35rem 0;
    font-size: 0.75rem;
  }
  .top-bar-content {
    justify-content: space-between;
    gap: 0.4rem;
  }
  .top-bar-left, .top-bar-right {
    gap: 0.6rem;
  }
  .top-bar-item.hide-mobile,
  .top-bar-link.hide-mobile {
    display: none !important;
  }

  /* Nav Header */
  .nav-wrapper {
    height: 60px;
    gap: 0.4rem;
  }
  .brand-logo-img {
    height: 36px;
    padding: 2px 4px;
    max-width: 120px;
  }
  .brand-text h1 {
    font-size: 1.05rem;
  }
  .brand-sub {
    display: none !important;
  }
  .nav-menu {
    display: none !important;
  }
  .nav-actions {
    gap: 0.4rem;
  }
  .nav-actions .btn.btn-primary.btn-sm,
  .nav-actions .btn-primary {
    display: none !important;
  }
  .cart-toggle-btn {
    padding: 0.45rem 0.6rem;
  }
  .cart-toggle-btn span:first-of-type {
    display: none !important;
  }
  .theme-toggle-btn {
    width: 36px;
    height: 36px;
  }
  .user-nav-btn {
    padding: 0.35rem 0.6rem;
  }
  .user-auth-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    gap: 0.3rem;
    white-space: nowrap;
  }
  .user-nav-name {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
    width: 38px;
    height: 38px;
    padding: 0;
    align-items: center;
    justify-content: center;
  }

  /* Hero Section */
  .hero-section {
    padding: 2rem 0 2.5rem;
  }
  .hero-title {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
  }
  .hero-subtitle {
    font-size: 0.92rem;
  }
  .hero-search-box {
    margin: 1.25rem 0 1.5rem;
    max-width: 100%;
  }
  .hero-search-input-wrap {
    padding: 4px;
    gap: 0.35rem;
  }
  .hero-search-input-wrap input {
    font-size: 0.85rem;
    padding: 0.5rem 0.4rem;
    min-width: 0;
  }
  .hero-trust-bar {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
    padding-top: 1rem;
  }
  .trust-metric-val {
    font-size: 1.25rem;
  }
  .hero-image-frame img {
    height: 260px;
  }
  .hero-float-card {
    display: none !important;
  }

  /* Grids & Cards */
  .packages-grid, .tests-grid, .centers-grid, .rx-upload-grid {
    grid-template-columns: 1fr !important;
  }
  .quick-services-grid {
    grid-template-columns: 1fr !important;
  }
  .scale-tier-grid {
    grid-template-columns: 1fr !important;
  }
  .form-row {
    grid-template-columns: 1fr !important;
  }
  .report-patient-meta-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  /* Forms & Cards Padding */
  .booking-form-card {
    padding: 1.25rem 1rem !important;
  }
  .booking-summary-card {
    padding: 1.25rem 1rem !important;
  }
  .login-card-container {
    padding: 1.5rem 1.25rem !important;
  }
  .reports-search-hero {
    padding: 2rem 1.25rem !important;
  }
  .reports-search-hero h2 {
    font-size: 1.6rem !important;
  }
  .reports-search-bar {
    flex-direction: column;
    padding: 8px;
    gap: 0.5rem;
  }
  .reports-search-bar input {
    width: 100%;
    padding: 0.6rem 0.75rem;
  }
  .reports-search-bar button {
    width: 100%;
  }

  /* Cart Drawer */
  .cart-drawer {
    max-width: 100% !important;
    width: 100% !important;
    right: 0 !important;
    transform: translateX(105%) !important;
  }
  .cart-drawer.active {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.65rem !important;
  }
  .brand-logo-img {
    height: 32px;
  }
  .brand-text h1 {
    font-size: 0.95rem;
  }
  .report-patient-meta-grid {
    grid-template-columns: 1fr !important;
  }
  .package-card, .test-card {
    padding: 1.25rem 1rem;
  }
  .package-top-bar {
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .package-pricing {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.75rem;
  }
  .package-pricing .btn {
    width: 100%;
  }
}

/* ==========================================================================
   MULTI-PAGE LAYOUTS (LOGIN, DASHBOARD, REPORTS, BOOKING)
   ========================================================================== */

/* Login Page */
.login-page-wrapper {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  background: radial-gradient(circle at 10% 20%, rgba(0, 92, 185, 0.05) 0%, transparent 60%),
              radial-gradient(circle at 90% 80%, rgba(0, 165, 142, 0.05) 0%, transparent 60%);
}
.login-card-container {
  width: 100%;
  max-width: 520px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 2.25rem;
}

/* Dashboard Page Layout */
.dashboard-page-container {
  padding: 2.5rem 0 4rem;
  min-height: calc(100vh - 200px);
}
.dashboard-grid-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}
.dashboard-sidebar-nav {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  position: sticky;
  top: 100px;
}
.dashboard-user-card-sm {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}
.dash-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  background: transparent;
  border: none;
  width: 100%;
  cursor: pointer;
  text-align: left;
}
.dash-nav-link:hover {
  background: var(--bg-subtle);
  color: var(--primary);
}
.dash-nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
  box-shadow: inset 3px 0 0 var(--primary);
}
.dash-nav-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.dashboard-main-content-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.dashboard-pane {
  display: none;
}
.dashboard-pane.active {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

/* Booking Page Layout */
.booking-page-container {
  padding: 2.5rem 0 4rem;
}
.booking-page-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

/* Reports Page Layout */
.reports-page-container {
  padding: 2.5rem 0 4rem;
  min-height: calc(100vh - 200px);
}
.reports-search-hero {
  background: linear-gradient(135deg, #071E3D 0%, #005CB9 60%, #00A58E 100%);
  color: #FFFFFF;
  padding: 3rem 2rem;
  border-radius: var(--radius-xl);
  margin-bottom: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-xl);
}
.reports-search-hero h2 {
  color: #FFFFFF;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}
.reports-search-hero p {
  color: #EBF4FF;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
}
.reports-search-bar {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  background: var(--bg-surface);
  padding: 6px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.reports-search-bar input {
  flex: 1;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  outline: none;
  background: transparent;
  color: var(--text-primary);
}

@media (max-width: 992px) {
  .dashboard-grid-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .dashboard-sidebar-nav {
    position: sticky;
    top: 60px;
    z-index: 50;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
  }
  .dashboard-user-card-sm {
    display: none;
  }
  .dash-nav-links {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .dash-nav-links::-webkit-scrollbar {
    display: none;
  }
  .dash-nav-links li {
    flex: 0 0 auto;
  }
  .dash-nav-link {
    padding: 0.45rem 0.8rem;
    font-size: 0.82rem;
    white-space: nowrap;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-subtle);
  }
  .dash-nav-link.active {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
  }
  .dash-nav-link svg {
    width: 15px;
    height: 15px;
  }
  .dashboard-sidebar-nav > div:last-child {
    display: none;
  }
  .booking-page-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   APP DOWNLOAD POPUP & FLOATING PILL
   ========================================================================== */
.app-download-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 30, 61, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.app-download-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.app-download-modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  padding: 2.25rem 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.app-download-modal-overlay.active .app-download-modal-card {
  transform: translateY(0) scale(1);
}
.app-download-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-body);
  color: var(--text-secondary);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.app-download-close-btn:hover {
  background: var(--danger-light);
  color: var(--danger);
  border-color: var(--danger);
}
.app-download-icon-box {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 92, 185, 0.12) 0%, rgba(0, 165, 142, 0.12) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-sm);
}
.app-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.app-feature-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.app-feat-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}
.app-feature-item div {
  display: flex;
  flex-direction: column;
}
.app-feature-item strong {
  font-size: 0.88rem;
  color: var(--text-primary);
}
.app-feature-item span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.app-download-btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Floating App Download Button */
.floating-app-pill {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  background: linear-gradient(135deg, #071E3D 0%, #005CB9 100%);
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 25px -5px rgba(0, 92, 185, 0.5);
  border-radius: 9999px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}
.floating-app-pill:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 28px -5px rgba(0, 92, 185, 0.65);
}
.floating-app-pill .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.8s infinite;
}
@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
@media (max-width: 600px) {
  .floating-app-pill {
    bottom: 16px;
    right: 14px;
    padding: 7px 12px;
    font-size: 0.78rem;
    z-index: 990;
  }
}

