/* High-performance system-fallback typography + zero render-blocking */
:root {
  --primary: #0A3663;
  --primary-dark: #072545;
  --primary-light: #0284C7;
  --primary-soft: #F0F7FF;
  --primary-gradient: linear-gradient(135deg, #0A2F57 0%, #0D4785 50%, #0284C7 100%);
  
  --secondary: #059669;
  --secondary-dark: #047857;
  --secondary-light: #ECFDF5;
  --secondary-gradient: linear-gradient(135deg, #059669 0%, #10B981 100%);
  
  --accent: #E11D48;
  --accent-soft: #FFF1F2;
  --warning: #D97706;
  --warning-soft: #FFFBEB;
  
  --dark: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94A3B8;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --white: #FFFFFF;
  
  --bg: #F4F7FB;
  --card-bg: #FFFFFF;
  --border: #E2E8F0;
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 18px rgba(10, 47, 87, 0.08);
  --shadow-lg: 0 12px 30px rgba(10, 47, 87, 0.12);
  
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --font-family: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bottom-nav-height: 64px;
  --transition-fast: all 0.12s ease-out;
  --transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & Speed Enhancements */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: var(--font-family);
  background-color: var(--bg);
  color: var(--slate-800);
  line-height: 1.5;
  font-size: 14px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  padding-bottom: calc(var(--bottom-nav-height) + 12px);
}

@media (min-width: 861px) {
  body {
    padding-bottom: 0;
  }
}

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

a, button, input, select, textarea {
  touch-action: manipulation;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========================================================================
   TOP ANNOUNCEMENT BAR
   ========================================================================== */
.top-bar {
  background: var(--dark);
  color: #E2E8F0;
  font-size: 11.5px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.top-emergency-badge {
  background: var(--accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   SITE HEADER & NAVIGATION (Ultra-Fast, Crisp Logo & Hospital Title)
   ========================================================================== */
.site-header {
  background: rgba(255, 255, 255, 0.98);
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.brand-logo:active {
  transform: scale(0.98);
}

.logo-shield {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(10, 54, 99, 0.28);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.logo-shield svg, .logo-shield i {
  display: block;
}

.logo-shield::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
  pointer-events: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.hospital-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.4px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hospital-tagline {
  font-size: 10px;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  text-transform: uppercase;
}

.badge-mini-nabh {
  background: #ECFDF5;
  color: #059669;
  font-size: 8.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid #A7F3D0;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 12px;
}

@media (min-width: 861px) {
  .nav-links {
    display: flex;
  }
}

.nav-links li a {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--slate-800);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.nav-links li a:active {
  transform: scale(0.96);
}

.header-right-action {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-quick-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--secondary-light);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition-fast);
  border: 1px solid #A7F3D0;
}

.phone-quick-btn:hover {
  background: var(--secondary);
  color: #fff;
}

.phone-quick-btn:active {
  transform: scale(0.92);
}

/* ==========================================================================
   BUTTONS (Ultra-Snappy, Touch-Friendly, Vector Icons)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-fast);
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 12px rgba(10, 54, 99, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 6px 16px rgba(10, 54, 99, 0.3);
  color: #fff;
}

.btn-secondary {
  background: var(--secondary-gradient);
  color: #fff;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-secondary:hover {
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 22px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   TOP HERO BANNER (Luxury Healthcare Banner with Photographic Backing)
   ========================================================================== */
.brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.hero-banner {
  background: linear-gradient(135deg, rgba(7, 31, 59, 0.92) 0%, rgba(10, 54, 99, 0.85) 50%, rgba(12, 77, 141, 0.80) 100%), url('../images/banners/hero-banner.jpg') center/cover no-repeat;
  color: #fff;
  padding: 26px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
}

/* Quick Promo Slider Cards */
.hero-promo-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  margin-top: 14px;
}

.hero-promo-scroll::-webkit-scrollbar {
  display: none;
}

.hero-promo-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  height: 125px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  color: #fff;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-promo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 31, 56, 0.2) 0%, rgba(10, 31, 56, 0.9) 80%);
}

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

/* ==========================================================================
   LUXURY DEPARTMENT PHOTO GRID (With Real Medical Visuals)
   ========================================================================== */
.department-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

@media (max-width: 640px) {
  .department-photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.dept-photo-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0A2540;
  box-shadow: var(--shadow-sm);
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  text-decoration: none;
  color: #fff;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dept-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: #fff;
}

.dept-photo-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  opacity: 0.85;
}

.dept-photo-card:hover img {
  transform: scale(1.08);
  opacity: 0.95;
}

.dept-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 31, 56, 0.1) 0%, rgba(10, 31, 56, 0.75) 55%, rgba(7, 23, 43, 0.96) 100%);
  pointer-events: none;
}

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

.dept-photo-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 9.5px;
  font-weight: 700;
  color: #34D399;
  margin-bottom: 3px;
}

.dept-photo-card h4 {
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  margin: 0 0 2px;
  line-height: 1.25;
}

.dept-photo-card p {
  font-size: 10.5px;
  color: #CBD5E1;
  margin: 0 0 4px;
  line-height: 1.25;
}

.dept-consult-link {
  font-size: 11px;
  font-weight: 700;
  color: #38BDF8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (min-width: 861px) {
  .hero-grid-box {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 30px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  width: fit-content;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
}

.hero-banner h1 {
  color: #fff;
  font-size: 24px;
  line-height: 1.25;
}

@media (min-width: 861px) {
  .hero-banner h1 {
    font-size: 34px;
  }
}

.hero-banner h1 span {
  color: #34D399;
}

.hero-banner p {
  color: #CBD5E1;
  font-size: 12.5px;
  line-height: 1.5;
  max-width: 480px;
}

.hero-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ==========================================================================
   4-CARD QUICK APP GRID (Apollo/Practo Mobile App Style)
   ========================================================================== */
.quick-app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: -18px;
  margin-bottom: 24px;
  position: relative;
  z-index: 10;
}

.app-card-item {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 12px 4px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: transform 0.15s ease;
}

.app-card-item:active {
  transform: scale(0.95);
}

.app-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.icon-blue { background: #EBF4FC; color: var(--primary-light); }
.icon-green { background: #ECFDF5; color: var(--secondary); }
.icon-purple { background: #F3E8FF; color: #7E22CE; }
.icon-red { background: #FFF1F2; color: var(--accent); }

.app-card-item span {
  font-size: 11px;
  font-weight: 700;
  color: var(--dark);
}

/* ==========================================================================
   SECTIONS & SECTION HEADERS
   ========================================================================== */
.section {
  padding: 22px 0;
}

.section-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
}

.section-title-bar h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-title-bar h2 i {
  color: var(--primary-light);
  font-size: 15px;
}

.section-title-bar a {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-light);
}

/* ==========================================================================
   DOCTOR CARDS & SYMPTOMS QUICK SELECT
   ========================================================================== */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
  margin: 0 0 2px;
}

.symptom-quick-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.symptom-quick-scroll::-webkit-scrollbar {
  display: none;
}

.symptom-chip {
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--slate-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: var(--transition-fast);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.symptom-chip i {
  color: var(--primary-light);
}

.symptom-chip:hover, .symptom-chip:active {
  background: var(--primary-soft);
  border-color: var(--primary-light);
  color: var(--primary);
  transform: scale(0.96);
}

.doctor-scroll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

@media (max-width: 640px) {
  .doctor-scroll-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.doc-card-modern {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.doc-card-modern:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.doc-img-box {
  position: relative;
  height: 150px;
  background: #E2E8F0;
  overflow: hidden;
}

.doc-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.doc-card-modern:hover .doc-img-box img {
  transform: scale(1.05);
}

.doc-live-chip {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
}

.doc-live-chip .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--secondary);
}

.doc-card-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.doc-card-body h3 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 2px;
  line-height: 1.2;
}

.doc-spec-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 2px;
  line-height: 1.2;
}

.doc-exp {
  font-size: 10px;
  color: var(--slate-600);
  margin-bottom: 8px;
  flex-grow: 1;
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

@media (max-width: 600px) {
  .doctors-grid {
    grid-template-columns: 1fr;
  }
}

.doctor-item-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.doc-img-container {
  position: relative;
  height: 170px;
  background: #E2E8F0;
}

.doc-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doc-status-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
}

.doc-status-pill .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--secondary);
}

.doc-card-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.doc-card-content h3 {
  font-size: 14.5px;
  margin-bottom: 2px;
}

.doc-speciality {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 4px;
}

.doc-details {
  font-size: 11px;
  color: var(--slate-600);
  margin-bottom: 10px;
  flex-grow: 1;
}

/* ==========================================================================
   SERVICES GRID
   ========================================================================== */
.services-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 600px) {
  .services-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card-clean {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  transition: var(--transition);
}

.service-card-clean i {
  font-size: 20px;
  color: var(--primary-light);
  margin-bottom: 6px;
  display: block;
}

.service-card-clean h4 {
  font-size: 12px;
  margin-bottom: 2px;
}

.service-card-clean p {
  font-size: 10.5px;
  color: var(--slate-600);
}

/* ==========================================================================
   FORMS & INPUTS (Clean, Responsive)
   ========================================================================== */
.form-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 12px;
}

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

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.form-label .req {
  color: var(--accent);
}

.form-control {
  width: 100%;
  padding: 9px 11px;
  font-size: 13px;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--dark);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-light);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230284C7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  padding-right: 28px;
}

/* Alerts */
.alert {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 12px;
}

.alert-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-danger { background: #FFF1F2; color: #9F1239; border: 1px solid #FECDD3; }
.alert-info { background: #F0F9FF; color: #0369A1; border: 1px solid #BAE6FD; }

/* ==========================================================================
   PHARMACY & CART
   ========================================================================== */
.pharmacy-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 992px) {
  .pharmacy-layout {
    grid-template-columns: 1fr 310px;
  }
}

.category-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.pill-btn {
  background: #F1F5F9;
  border: 1px solid var(--border);
  color: var(--dark);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.pill-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.meds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

@media (max-width: 480px) {
  .meds-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

.med-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.med-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  width: fit-content;
}

.badge-Tablet { background: #EBF4FC; color: var(--primary); }
.badge-Syrup { background: #FEF3C7; color: #B45309; }
.badge-Injection { background: #FEE2E2; color: #B91C1C; }
.badge-Drops { background: #CCFBF1; color: #0F766E; }
.badge-Capsule { background: #F3E8FF; color: #7E22CE; }

.med-name {
  font-size: 12.5px;
  font-weight: 700;
  margin: 4px 0 2px;
}

.med-mfg {
  font-size: 10px;
  color: var(--slate-400);
  margin-bottom: 4px;
}

.med-desc {
  font-size: 10.5px;
  color: var(--slate-600);
  line-height: 1.3;
  margin-bottom: 8px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.med-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}

.cart-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   MOBILE APP BOTTOM NAVIGATION BAR
   ========================================================================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--bottom-nav-height);
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
  z-index: 9999;
  padding: 4px 6px;
}

@media (min-width: 861px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.bottom-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 100%;
  align-items: center;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  font-size: 10px;
  font-weight: 600;
  gap: 2px;
  padding: 3px 0;
}

.bottom-nav-item i {
  font-size: 16px;
}

.bottom-nav-item.active {
  color: var(--primary-light);
}

.bottom-nav-item.central-cta .nav-icon-bubble {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-top: -20px;
  box-shadow: 0 4px 12px rgba(10, 54, 99, 0.35);
  border: 3px solid #fff;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 700;
}

.status-Pending { background: #FEF3C7; color: #B45309; }
.status-Confirmed { background: #EBF4FC; color: var(--primary); }
.status-Completed, .status-Verified { background: #ECFDF5; color: #065F46; }
.status-Cancelled, .status-Failed { background: #FFF1F2; color: #9F1239; }
.status-Uploaded { background: #EEF2FF; color: #4338CA; }

/* Footer */
.site-footer {
  background: var(--dark);
  color: #94A3B8;
  padding: 24px 0 14px;
  font-size: 11.5px;
}

.footer-bottom {
  text-align: center;
}

/* Toast */
#toast-container {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toast-success { background: #059669; }
.toast-error { background: #DC2626; }
.toast-info { background: #0284C7; }

.toast-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
