/* ==========================================================================
   GLASSMORPHISM.CSS - Glass UI, Ambient Glow, Sections, Cards & Chatbot
   ========================================================================== */

/* Ambient Glowing Background Mesh */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
  animation: floatAmbient 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.45) 0%, rgba(6, 182, 212, 0.05) 70%);
  top: -120px;
  left: -100px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, rgba(20, 184, 166, 0.05) 70%);
  top: 35%;
  right: -150px;
  animation-delay: -5s;
  animation-duration: 22s;
}

.orb-3 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, rgba(129, 140, 248, 0.05) 70%);
  bottom: 10%;
  left: -80px;
  animation-delay: -10s;
  animation-duration: 25s;
}

.orb-4 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
  bottom: -100px;
  right: 15%;
  animation-delay: -3s;
}

@keyframes floatAmbient {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, 50px) scale(0.95); }
}

/* Glass Card Component */
.glass-card {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  box-shadow: var(--glass-shadow), var(--glass-inset-glow);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), var(--glass-inset-glow);
}

/* Top Announcement Banner */
.top-banner {
  background: rgba(10, 18, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.82rem;
  padding: 0.45rem 0;
  position: relative;
  z-index: 100;
}

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

.badge-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--teal-400);
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--emerald-400);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.banner-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
}

.banner-divider {
  color: var(--border-glass-light);
}

.banner-link {
  color: var(--cyan-400);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.banner-link:hover {
  color: #ffffff;
}

/* Sticky Glass Navbar */
.glass-navbar {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(7, 13, 24, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.85rem 0;
  transition: all var(--transition-normal);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-icon-wrapper {
  width: 42px;
  height: 42px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #04101e;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.35);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-icon {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

/* PIL MediBot logo image inside brand wrappers */
.brand-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}

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

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--cyan-400);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: #ffffff;
}

.admin-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-sm);
  color: var(--indigo-400);
}

.admin-nav-link:hover {
  background: rgba(99, 102, 241, 0.25);
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0.4rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  padding: 5rem 0 4rem 0;
  position: relative;
  z-index: 2;
}

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

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: var(--radius-full);
  color: var(--teal-400);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.25rem;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

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

.hero-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: #e2e8f0;
  font-weight: 500;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-glass);
}

.trust-stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.stat-separator {
  width: 1px;
  height: 32px;
  background: var(--border-glass);
}

/* HERO DOCTOR CARD */
.doctor-hero-card {
  padding: 2.2rem;
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  text-align: center;
}

.card-glow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: radial-gradient(circle at 50% -20%, rgba(14, 165, 233, 0.25), transparent 70%);
  pointer-events: none;
}

.doctor-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  color: var(--emerald-400);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 8px var(--emerald-400);
}

.doctor-avatar-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 1.25rem auto;
}

.doctor-avatar-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 4px;
  background: var(--grad-primary);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

.doctor-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0d1b2a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-400);
}

.doc-icon-large {
  width: 48px;
  height: 48px;
}

.verified-seal {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #0d1b2a;
  color: var(--cyan-400);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doctor-hero-info {
  margin-bottom: 1.5rem;
}

.doctor-name {
  font-size: 1.65rem;
  margin-bottom: 0.25rem;
}

.doctor-degrees {
  font-size: 0.92rem;
  color: var(--teal-400);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.doctor-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.doctor-reg {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.doctor-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0.85rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.meta-box {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.highlight-fee {
  color: var(--teal-400);
}

.card-action-box {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* ==========================================================================
   DOCTOR FULL PROFILE SECTION
   ========================================================================== */

.doctor-full-profile {
  padding: 3rem;
  background: var(--bg-surface);
}

.doctor-profile-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
}

.profile-sidebar {
  text-align: center;
  padding-right: 2rem;
  border-right: 1px solid var(--border-glass);
}

.profile-avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(16, 185, 129, 0.2) 100%);
  border: 2px solid var(--teal-400);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-400);
  margin: 0 auto 1.25rem auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.avatar-big-icon {
  width: 56px;
  height: 56px;
}

.profile-name {
  font-size: 1.55rem;
  margin-bottom: 0.2rem;
}

.profile-qual {
  color: var(--cyan-400);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.profile-quick-stats {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-align: left;
  background: rgba(0, 0, 0, 0.25);
  padding: 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.pstat-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.pstat-item strong {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.pstat-item span {
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 600;
}

.profile-main-content {
  display: flex;
  flex-direction: column;
}

.block-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
  color: #ffffff;
}

.bio-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.spec-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: #e2e8f0;
  transition: all var(--transition-fast);
}

.spec-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cyan-400);
  transform: translateY(-2px);
}

.spec-pill i {
  color: var(--teal-400);
  width: 16px;
  height: 16px;
}

.care-philosophy-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.35rem;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--radius-md);
}

.philosophy-text h5 {
  font-size: 0.95rem;
  color: var(--cyan-400);
  margin-bottom: 0.35rem;
}

.philosophy-text p {
  font-size: 0.92rem;
  color: #cbd5e1;
  font-style: italic;
  line-height: 1.6;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.service-card {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.35);
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: var(--cyan-400);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  transition: transform var(--transition-normal);
}

.service-card:hover .service-icon-box {
  transform: scale(1.1) rotate(5deg);
}

.icon-cyan { background: rgba(56, 189, 248, 0.15); border-color: rgba(56, 189, 248, 0.3); color: var(--cyan-400); }
.icon-emerald { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.3); color: var(--emerald-400); }
.icon-indigo { background: rgba(99, 102, 241, 0.15); border-color: rgba(99, 102, 241, 0.3); color: var(--indigo-400); }
.icon-teal { background: rgba(20, 184, 166, 0.15); border-color: rgba(20, 184, 166, 0.3); color: var(--teal-400); }
.icon-purple { background: rgba(168, 85, 247, 0.15); border-color: rgba(168, 85, 247, 0.3); color: #c084fc; }

.service-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-glass);
}

.service-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.service-link {
  color: var(--cyan-400);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--transition-fast);
}

.service-link:hover {
  gap: 0.6rem;
  color: #ffffff;
}

/* ==========================================================================
   FEES & TIMINGS SECTION
   ========================================================================== */

.fees-timings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.timings-card, .fees-card {
  padding: 2.5rem;
}

.timings-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.card-top-icon {
  margin-bottom: 0.25rem;
}

.clinic-live-status-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.live-status-pill.open {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #34d399;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}

.live-status-pill.closed {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #e2e8f0;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: liveStatusPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.live-status-dot-closed {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #94a3b8;
}

.live-status-text {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.live-status-sub {
  font-weight: 400;
  font-size: 0.78rem;
  opacity: 0.85;
}

.live-tz-note {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.5);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.live-tz-note strong {
  color: var(--cyan-400);
  font-weight: 600;
}

@keyframes liveStatusPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.25);
  }
}

.card-heading {
  font-size: 1.65rem;
  margin-bottom: 0.35rem;
}

.card-subheading {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1.75rem;
}

.timings-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.timing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 1.15rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.timing-day {
  font-weight: 600;
  color: #ffffff;
}

.timing-time {
  color: var(--cyan-400);
  font-weight: 600;
  font-size: 0.9rem;
}

.closed-row .timing-time {
  color: var(--rose-400);
}

.timing-note-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  background: rgba(14, 165, 233, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(14, 165, 233, 0.2);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.fees-pricing-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.fee-row.featured-fee {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
}

.fee-info {
  display: flex;
  flex-direction: column;
}

.fee-info strong {
  font-size: 0.98rem;
  color: #ffffff;
}

.fee-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.fee-amount {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--teal-400);
}

.senior-discount-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: rgba(251, 113, 133, 0.1);
  border: 1px solid rgba(251, 113, 133, 0.25);
  border-radius: var(--radius-md);
  color: var(--rose-400);
  font-size: 0.88rem;
  font-weight: 600;
}

.payment-modes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.payment-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.payment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ptag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: #cbd5e1;
}

/* Insurance Strip */
.insurance-strip {
  padding: 2rem 2.5rem;
}

.insurance-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.ins-text h4 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.ins-text p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.ins-tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: 380px;
  justify-content: flex-end;
}

.ins-badge {
  padding: 0.4rem 0.85rem;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-full);
  color: var(--cyan-400);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ==========================================================================
   LOCATION SECTION
   ========================================================================== */

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.location-info-card {
  padding: 2.5rem;
}

.loc-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-glass);
}

.loc-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loc-clinic-name {
  font-size: 1.35rem;
  margin-bottom: 0.15rem;
}

.loc-subtitle {
  color: var(--cyan-400);
  font-size: 0.85rem;
}

.loc-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-bottom: 2rem;
}

.loc-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.loc-item-icon {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.loc-item strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.loc-item p {
  color: #e2e8f0;
  font-size: 0.95rem;
}

.loc-action-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Simulated Visual Map */
.map-visual-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.map-visual-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  background: #081324;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-grid-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 35px 35px;
}

.map-pin-glow {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pin-core {
  width: 50px;
  height: 50px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #04101e;
  box-shadow: 0 0 25px rgba(14, 165, 233, 0.8);
  position: relative;
  z-index: 2;
}

.pin-ring {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--teal-400);
  opacity: 0.75;
  animation: radarWave 2.5s infinite;
  top: -15px;
}

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

.pin-label {
  margin-top: 1rem;
  background: rgba(15, 25, 44, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass-light);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.pin-label strong {
  font-size: 0.95rem;
  color: #ffffff;
}

.pin-label span {
  font-size: 0.75rem;
  color: var(--cyan-400);
}

.map-controls-overlay {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  z-index: 3;
}

.map-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: rgba(7, 13, 24, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: #e2e8f0;
}

/* ==========================================================================
   BOOKING SECTION & FORMS
   ========================================================================== */

.booking-hero-container {
  padding: 3.5rem;
  background: var(--bg-surface-elevated);
}

.booking-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}

.booking-pane-title {
  font-size: 2.2rem;
  margin-top: 0.5rem;
  margin-bottom: 0.85rem;
}

.booking-pane-desc {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.booking-perks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.bperk-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #f1f5f9;
  font-weight: 500;
}

.ai-pitch-card {
  padding: 1.5rem;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
}

.ai-pitch-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ai-avatar-mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #04101e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-pitch-header strong {
  display: block;
  font-size: 0.92rem;
  color: #ffffff;
}

.ai-pitch-header p {
  font-size: 0.78rem;
  color: var(--cyan-400);
}

/* Glass Form Elements */
.glass-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 2.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
}

.form-title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.textarea-icon {
  top: 0.85rem;
}

.glass-input, .glass-textarea, .glass-select {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.8rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.glass-textarea {
  resize: vertical;
  min-height: 75px;
}

.glass-input:focus, .glass-textarea:focus, .glass-select:focus {
  border-color: var(--cyan-400);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.slot-chips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.slot-chip {
  padding: 0.55rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slot-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--cyan-400);
}

.slot-chip.selected {
  background: var(--grad-primary);
  color: #04101e;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.35);
}

.booking-summary-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.1rem;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--radius-md);
}

.summary-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.summary-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--teal-400);
}

.summary-tag {
  font-size: 0.75rem;
  color: var(--cyan-400);
  background: rgba(56, 189, 248, 0.15);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.booking-alert-msg {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
}

.booking-alert-msg.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald-400);
}

.booking-alert-msg.error {
  background: rgba(251, 113, 133, 0.15);
  border: 1px solid rgba(251, 113, 133, 0.35);
  color: var(--rose-400);
}

/* ==========================================================================
   "PILL" AI CHATBOT WIDGET STYLES
   ========================================================================== */

.pill-chat-wrapper {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  font-family: var(--font-body);
}

.pill-chat-wrapper.is-obscured {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Floating Launcher Capsule */
.pill-launcher-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 10px 35px rgba(14, 165, 233, 0.4);
  transition: all var(--transition-bounce);
  outline: none;
  overflow: hidden;
}

.pill-launcher-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 45px rgba(14, 165, 233, 0.55);
}

.launcher-icon-wrapper {
  color: #04101e;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
}

.pill-bot-icon {
  width: 32px;
  height: 32px;
}

/* PIL MediBot logo in floating launcher */
.pill-bot-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}

.unread-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: var(--rose-400);
  border: 2px solid #070d18;
  border-radius: 50%;
  animation: pulseAnimation 2s infinite;
}

.launcher-tooltip {
  position: absolute;
  right: 76px;
  background: rgba(15, 25, 44, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass-light);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.pill-launcher-btn:hover .launcher-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.tooltip-badge {
  font-size: 0.68rem;
  color: var(--teal-400);
  font-weight: 700;
  text-transform: uppercase;
}

.tooltip-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
}

/* ==========================================================================
   MEDIBOT LARGE MODAL AI CHAT WINDOW & BACKDROP
   ========================================================================== */

/* Full Screen Modal Backdrop Overlay */
.chat-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 10, 24, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Large Medical AI Chat Dialog */
.medibot-large-modal,
.pill-chat-window {
  position: relative;
  width: min(1050px, 78vw);
  height: min(850px, 82vh);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: rgba(11, 20, 38, 0.95);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8), 0 0 40px rgba(14, 165, 233, 0.15), var(--glass-inset-glow);
  transform: scale(0.95) translateY(15px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.chat-modal-backdrop.active .medibot-large-modal,
.pill-chat-window.active {
  transform: scale(1) translateY(0);
}

body.chat-modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  touch-action: none;
}

/* Demo Onboarding Banner & Helper Tags */
.demo-onboarding-banner {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.15), rgba(99, 102, 241, 0.2), rgba(16, 185, 129, 0.15));
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: #e2e8f0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  z-index: 100;
}

.demo-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.demo-banner-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(14, 165, 233, 0.2);
  border: 1px solid rgba(14, 165, 233, 0.4);
  color: var(--cyan-400);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.demo-banner-text {
  flex: 1;
  min-width: 260px;
}

.demo-banner-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--teal-400);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s ease;
}

.demo-banner-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.onboarding-field-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-400);
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.35rem;
}

.close-modal-btn {
  color: #94a3b8;
  transition: all 0.2s ease;
}

.close-modal-btn:hover {
  color: #ffffff;
  background: rgba(244, 63, 94, 0.2) !important;
  border-color: rgba(244, 63, 94, 0.4) !important;
}

/* Chat Header */
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.25rem;
  background: rgba(15, 25, 44, 0.85);
  border-bottom: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.chat-bot-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bot-avatar-frame {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #04101e;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.bot-header-icon {
  width: 20px;
  height: 20px;
}

/* PIL MediBot logo in chat modal header */
.bot-header-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}

.bot-online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: var(--emerald-400);
  border: 2px solid #0d1b2a;
  border-radius: 50%;
}

.bot-name-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bot-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
}

.bot-tag {
  font-size: 0.68rem;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: var(--cyan-400);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.bot-status {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.header-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.header-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Guardrail banner */
.chat-guardrail-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(14, 165, 233, 0.1);
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.72rem;
  color: var(--cyan-400);
  font-weight: 500;
  flex-shrink: 0;
}

/* Messages container */
.chat-messages-container {
  flex: 1 1 0%;
  min-height: 0;  /* essential: lets the flex item shrink so input bar stays visible */
  padding: 1.25rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
}

.chat-messages-container::-webkit-scrollbar {
  width: 5px;
}
.chat-messages-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.chat-bubble {
  display: flex;
  gap: 0.65rem;
  max-width: 88%;
  font-size: 0.9rem;
  line-height: 1.55;
  animation: messageSlide 0.25s ease-out;
}

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

.chat-bubble.bot {
  align-self: flex-start;
}

.chat-bubble.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.bubble-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #04101e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user .bubble-avatar {
  background: var(--grad-accent);
}

.bubble-content {
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  color: #f1f5f9;
}

.bot .bubble-content {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-glass);
  border-top-left-radius: 4px;
}

.user .bubble-content {
  background: var(--grad-primary);
  color: #04101e;
  font-weight: 600;
  border-top-right-radius: 4px;
}

/* Guardrail Alert Bubble */
.bubble-guardrail {
  background: rgba(251, 113, 133, 0.12) !important;
  border: 1px solid rgba(251, 113, 133, 0.35) !important;
}

.bubble-guardrail strong {
  color: var(--rose-400);
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid var(--border-glass);
  width: fit-content;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan-400);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out;
}
.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-6px); opacity: 1; }
}

/* Chat Suggestions Carousel */
.chat-suggestions-carousel {
  padding: 0.5rem 1rem;
  display: flex;
  flex-wrap: wrap;  /* allow date chips to wrap on narrow screens */
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: rgba(10, 18, 32, 0.4);
  border-top: 1px solid var(--border-glass);
  flex-shrink: 0;  /* never collapse the suggestions row */
}
.chat-suggestions-carousel::-webkit-scrollbar {
  display: none;
}

.chip-btn {
  padding: 0.4rem 0.8rem;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-full);
  color: var(--cyan-400);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.chip-btn:hover {
  background: rgba(14, 165, 233, 0.25);
  color: #ffffff;
  border-color: var(--teal-400);
}

/* Chat Input Bar */
.chat-input-bar {
  padding: 0.85rem 1rem;
  padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 0.5rem;
  background: rgba(15, 25, 44, 0.95);
  border-top: 1px solid var(--border-glass);
  flex-shrink: 0;  /* never collapse the input bar */
}

.chat-input-field {
  flex-grow: 1;
  padding: 0.75rem 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
}

.chat-input-field:focus {
  border-color: var(--cyan-400);
  background: rgba(255, 255, 255, 0.1);
}

.chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad-primary);
  border: none;
  color: #04101e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chat-send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

/* ==========================================================================
   ROLE SELECTION ENTRY MODAL (PATIENT VS CLINIC OWNER / DOCTOR)
   ========================================================================== */

.role-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  visibility: hidden;
}

.role-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

body.role-modal-open {
  overflow: hidden !important;
}

.role-modal-card {
  width: 90%;
  max-width: 760px;
  padding: 2.75rem 2.5rem;
  background: rgba(11, 20, 36, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), var(--glass-inset-glow);
  position: relative;
  overflow: hidden;
  transform: scale(0.92) translateY(15px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.role-modal-backdrop.active .role-modal-card {
  transform: scale(1) translateY(0);
}

.role-modal-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: radial-gradient(circle at 50% -20%, rgba(14, 165, 233, 0.35), transparent 75%);
  pointer-events: none;
}

.role-brand-icon {
  width: 48px;
  height: 48px;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.role-clinic-tag {
  font-size: 0.76rem;
  color: var(--cyan-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.role-modal-title {
  font-size: 2.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.role-modal-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

.role-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.role-option-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 1.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass-light);
  border-radius: var(--radius-lg);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  font-family: var(--font-body);
  text-decoration: none;
  outline: none;
  width: 100%;
}

.role-card-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.patient-glow {
  background: rgba(45, 212, 191, 0.5);
}

.admin-glow {
  background: rgba(99, 102, 241, 0.5);
}

.role-option-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.07);
}

.role-patient-card:hover {
  border-color: var(--teal-400);
  box-shadow: 0 16px 40px rgba(45, 212, 191, 0.2);
}

.role-admin-card:hover {
  border-color: var(--indigo-400);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.22);
}

.role-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform var(--transition-bounce);
}

.role-patient-card .role-icon-box {
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.3);
}

.role-admin-card .role-icon-box {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
}

.role-option-card:hover .role-icon-box {
  transform: scale(1.1) rotate(4deg);
}

.role-text-box {
  flex-grow: 1;
}

.role-tag-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-400);
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.65rem;
}

.badge-admin {
  color: var(--indigo-400);
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
}

.role-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.role-card-sub {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.role-action-arrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 1rem;
  border-top: 1px solid var(--border-glass);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--teal-400);
  transition: all var(--transition-fast);
}

.arrow-admin {
  color: var(--indigo-400);
}

.role-option-card:hover .role-action-arrow {
  color: #ffffff;
  padding-left: 0.25rem;
}

.role-modal-footer {
  text-align: center;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-glass);
}

.role-footer-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   MODAL & CONFIRMATION
   ========================================================================== */

.glass-modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 460px;
  width: 90%;
  margin: auto;
}

.glass-modal::backdrop {
  background: rgba(4, 8, 16, 0.8);
  backdrop-filter: blur(12px);
}

.modal-card {
  padding: 2.5rem;
  text-align: center;
  background: rgba(15, 25, 44, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.modal-success-icon {
  margin-bottom: 1rem;
}

.modal-title {
  font-size: 1.65rem;
  margin-bottom: 0.35rem;
}

.modal-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.modal-ticket-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed var(--border-glass-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: left;
}

.ticket-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.modal-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.glass-footer {
  position: relative;
  z-index: 2;
  background: rgba(4, 8, 16, 0.85);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  padding: 4.5rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--teal-400);
}

.footer-heading {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--cyan-400);
}

.footer-schedule {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.emergency-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(251, 113, 133, 0.1);
  border: 1px solid rgba(251, 113, 133, 0.25);
  border-radius: var(--radius-md);
}

.emg-label {
  display: block;
  font-size: 0.72rem;
  color: var(--rose-400);
  font-weight: 600;
  text-transform: uppercase;
}

.emg-phone {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.privacy-trust-box {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.privacy-trust-box p {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.55;
}

.privacy-trust-box strong {
  color: var(--teal-400);
}

.medical-disclaimer-box {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.25rem 1.5rem;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius-md);
  margin-bottom: 2.5rem;
}

.medical-disclaimer-box p {
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.6;
}

.medical-disclaimer-box strong {
  color: var(--amber-400);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass);
  font-size: 0.82rem;
  color: var(--text-muted);
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-role-switch-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--cyan-400);
  text-decoration: none;
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.footer-role-switch-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: var(--teal-400);
}

.bot-credit strong {
  color: var(--cyan-400);
}

/* Chat Confirmation Card & Action Strips */
.chat-action-strip {
  margin-top: 0.75rem;
}

.chat-confirmation-card {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.confirm-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--teal-400);
  font-size: 0.95rem;
  font-weight: 700;
}

.confirm-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

.confirm-body div {
  display: flex;
  justify-content: space-between;
}

.confirm-body span {
  color: var(--text-muted);
}

.confirm-body strong {
  color: #ffffff;
}

.confirm-foot small {
  color: var(--cyan-400);
  font-size: 0.75rem;
  display: block;
}

/* Language Toggle Pill */
.lang-toggle-group {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass-light);
  border-radius: var(--radius-full);
  padding: 2px;
  gap: 2px;
  margin-right: 0.35rem;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.active {
  background: var(--grad-primary);
  color: #04101e;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.4);
}

/* Mobile Nav Backdrop & Mobile Nav Actions */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 16, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-actions {
  display: none;
}

body.mobile-menu-open {
  overflow: hidden;
}

/* ==========================================================================
   RESPONSIVENESS & BREAKPOINTS (DESKTOP -> TABLET -> MOBILE -> 360PX)
   ========================================================================== */

/* --- TABLET (<= 1024px) --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .doctor-profile-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .profile-sidebar {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 2rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .booking-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  
  .insurance-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .ins-tags-wrapper {
    justify-content: flex-start;
    min-width: 100%;
  }
}

/* --- MOBILE & PHONES (<= 768px) --- */
@media (max-width: 768px) {
  /* Container & Section Spacings */
  .container {
    padding: 0 1.25rem;
  }

  .section-padding {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .section-description {
    font-size: 0.95rem;
  }

  /* Announcement Top Banner */
  .top-banner {
    padding: 0.5rem 0;
  }

  .top-banner-content {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }

  .banner-right {
    font-size: 0.78rem;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .banner-link {
    min-height: 36px;
  }

  /* Navbar & Mobile Drawer */
  .glass-navbar {
    padding: 0.65rem 0;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .brand-subtitle {
    font-size: 0.68rem;
  }

  .brand-icon-wrapper {
    width: 38px;
    height: 38px;
  }

  .brand-icon-img {
    width: 100%;
    height: 100%;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    background: rgba(10, 18, 34, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    z-index: 100;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }

  .nav-links.active {
    display: flex;
    animation: slideDownMobileNav 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes slideDownMobileNav {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    min-height: 44px;
  }

  .nav-link:hover, .nav-link:active {
    background: rgba(255, 255, 255, 0.08);
  }

  .admin-nav-link {
    justify-content: flex-start;
  }

  .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
  }

  .mobile-nav-actions .btn {
    min-height: 44px;
  }

  .nav-desktop-chat-btn, .nav-desktop-book-btn {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
  }

  /* Hero Section */
  .hero-section {
    padding: 2.75rem 0 2.25rem 0;
  }

  .hero-grid {
    gap: 2.25rem;
  }

  .hero-title {
    font-size: 2.15rem;
    line-height: 1.22;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero-trust-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    text-align: center;
    padding-top: 1.25rem;
  }

  .stat-separator {
    display: none;
  }

  .stat-number {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  /* Doctor Hero Card */
  .doctor-hero-card {
    padding: 1.6rem 1.25rem;
  }

  .doctor-name {
    font-size: 1.45rem;
  }

  .doctor-degrees {
    font-size: 0.85rem;
  }

  .card-action-box .btn {
    min-height: 44px;
  }

  /* Doctor Full Profile Section */
  .doctor-full-profile {
    padding: 1.6rem 1.25rem;
  }

  .profile-name {
    font-size: 1.35rem;
  }

  .specialties-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .spec-pill {
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
    min-height: 44px;
  }

  .care-philosophy-card {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-card {
    padding: 1.6rem 1.25rem;
  }

  .service-link {
    min-height: 44px;
    padding: 0.35rem 0;
  }

  /* Timings & Fees Section */
  .fees-timings-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .timings-card, .fees-card {
    padding: 1.6rem 1.25rem;
  }

  .timings-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .clinic-live-status-badge {
    align-items: flex-start;
    width: 100%;
  }

  .live-status-pill {
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
    font-size: 0.78rem;
    padding: 0.4rem 0.75rem;
  }

  .live-tz-note {
    font-size: 0.72rem;
    line-height: 1.35;
    word-break: break-word;
  }

  .timing-row {
    padding: 0.85rem 1rem;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .timing-day, .timing-time {
    font-size: 0.86rem;
  }

  .fee-row {
    padding: 0.85rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .insurance-strip {
    padding: 1.6rem 1.25rem;
  }

  /* Location Section */
  .location-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .location-info-card {
    padding: 1.6rem 1.25rem;
  }

  .loc-action-btns {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .loc-action-btns .btn {
    min-height: 46px;
  }

  .map-visual-card {
    padding: 1.25rem;
    min-height: 300px;
  }

  .map-controls-overlay {
    flex-direction: column;
    gap: 0.35rem;
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0.6rem;
  }

  /* Booking Hero & Form */
  .booking-hero-container {
    padding: 1.6rem 1.25rem;
  }

  .booking-pane-title {
    font-size: 1.75rem;
  }

  .glass-form {
    padding: 1.5rem 1.15rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .glass-input, .glass-textarea, .glass-select {
    font-size: 16px; /* Prevents auto-zoom on mobile iOS/Android */
    min-height: 44px;
    padding: 0.75rem 1rem 0.75rem 2.6rem;
  }

  .slot-chips-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .slot-chip {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    padding: 0.6rem 0.4rem;
  }

  #submitBookingBtn {
    min-height: 50px;
  }

  /* ==========================================================================
     MEDIBOT AI CHATBOT - MOBILE RESPONSIVE FULL SHEET (<= 768px)
     ========================================================================== */
  .pill-chat-wrapper {
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    right: calc(1.25rem + env(safe-area-inset-right, 0px));
  }

  .pill-launcher-btn {
    width: 58px;
    height: 58px;
    min-width: 48px;
    min-height: 48px;
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.45);
  }

  .pill-bot-icon {
    width: 28px;
    height: 28px;
  }

  .pill-bot-logo-img {
    width: 100%;
    height: 100%;
  }

  .launcher-tooltip {
    display: none; /* Hide hover tooltip on touch devices to avoid layout clipping */
  }

  /* Mobile Full Screen Chat Panel */
  .chat-modal-backdrop {
    padding: 0;
    background: rgba(4, 10, 24, 0.95);
  }

  .medibot-large-modal,
  .pill-chat-window {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
    z-index: 10000;
    box-shadow: none;
    /* Safe-area insets for iPhone notch & home indicator */
    padding-top: env(safe-area-inset-top, 0px);
  }

  .chat-header {
    padding: 0.75rem 0.85rem;
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .chat-bot-identity {
    gap: 0.5rem;
    min-width: 0;
  }

  .bot-avatar-frame {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }

  .bot-name-row {
    gap: 0.25rem;
  }

  .bot-name {
    font-size: 0.95rem;
  }

  .bot-tag {
    display: none; /* Hide on mobile header to preserve room for lang and control buttons */
  }

  .bot-status {
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
  }

  .chat-header-actions {
    gap: 0.25rem;
    flex-shrink: 0;
  }

  .lang-toggle-group {
    padding: 2px;
    margin-right: 0;
  }

  .lang-btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
    min-height: 30px;
  }

  .header-icon-btn {
    min-width: 34px;
    min-height: 34px;
    padding: 0.35rem;
  }

  .chat-guardrail-banner {
    padding: 0.4rem 0.85rem;
    font-size: 0.68rem;
    flex-shrink: 0;
  }

  .chat-messages-container {
    padding: 0.9rem 0.85rem;
    gap: 0.8rem;
    flex: 1 1 0%;
    min-height: 0;
  }

  .chat-bubble {
    max-width: 92%;
    font-size: 0.88rem;
  }

  .bubble-avatar {
    width: 26px;
    height: 26px;
  }

  .bubble-content {
    padding: 0.75rem 0.95rem;
  }

  .chat-suggestions-carousel {
    padding: 0.45rem 0.75rem;
    gap: 0.45rem;
    flex-wrap: wrap;
    overflow-x: visible;
    flex-shrink: 0;
  }

  .chip-btn {
    min-height: 36px;
    padding: 0.45rem 0.75rem;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .chat-input-bar {
    padding: 0.75rem 0.85rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .chat-input-field {
    font-size: 16px; /* iOS zoom prevention */
    min-height: 44px;
    padding: 0.65rem 1rem;
  }

  .chat-send-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  /* Booking Success Modal */
  .glass-modal {
    width: 92%;
    max-width: 400px;
  }

  .modal-card {
    padding: 1.6rem 1.15rem;
  }

  .modal-title {
    font-size: 1.45rem;
  }

  /* Footer */
  .glass-footer {
    padding: 3.5rem 0 1.5rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .footer-links a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }

  /* Role Selection Modal (Mobile <= 768px) */
  .role-modal-card {
    padding: 1.75rem 1.25rem;
    width: 94%;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }

  .role-modal-title {
    font-size: 1.65rem;
  }

  .role-modal-desc {
    font-size: 0.9rem;
    margin-bottom: 1.4rem;
  }

  .role-options-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
  }

  .role-option-card {
    padding: 1.25rem 1.1rem;
  }

  .role-card-title {
    font-size: 1.2rem;
  }

  .role-card-sub {
    margin-bottom: 1rem;
    font-size: 0.84rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .footer-bottom-links {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
}

/* --- SMALL MOBILES & PHONES (<= 480px / 360px) --- */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .section-padding {
    padding: 3rem 0;
  }

  /* Role Selection Modal (Small Mobile <= 480px / 360px) */
  .role-modal-card {
    padding: 1.4rem 1rem;
    border-radius: var(--radius-lg);
  }

  .role-modal-title {
    font-size: 1.45rem;
  }

  .role-modal-desc {
    font-size: 0.85rem;
  }

  .role-option-card {
    padding: 1.1rem 0.95rem;
    border-radius: var(--radius-md);
  }

  .role-card-title {
    font-size: 1.15rem;
  }

  .role-icon-box {
    width: 44px;
    height: 44px;
    margin-bottom: 0.85rem;
  }

  .role-action-arrow {
    padding-top: 0.75rem;
    font-size: 0.85rem;
  }

  .hero-section {
    padding: 2rem 0 1.75rem 0;
  }

  .hero-title {
    font-size: 1.85rem;
    letter-spacing: -0.02em;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .hero-pill-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
    white-space: normal;
    text-align: left;
  }

  .hero-trust-bar {
    gap: 0.35rem;
  }

  .stat-number {
    font-size: 1.15rem;
  }

  .stat-label {
    font-size: 0.68rem;
  }

  .doctor-hero-card {
    padding: 1.35rem 1rem;
  }

  .doctor-name {
    font-size: 1.35rem;
  }

  .doctor-meta-grid {
    padding: 0.65rem;
    gap: 0.5rem;
  }

  .meta-label {
    font-size: 0.68rem;
  }

  .meta-val {
    font-size: 0.88rem;
  }

  .doctor-full-profile, .timings-card, .fees-card, .location-info-card, .booking-hero-container, .glass-form {
    padding: 1.25rem 0.95rem;
    border-radius: var(--radius-md);
  }

  .card-heading {
    font-size: 1.35rem;
  }

  .booking-pane-title {
    font-size: 1.45rem;
  }

  .slot-chips-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pill-chat-wrapper {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    right: calc(1rem + env(safe-area-inset-right, 0px));
  }

  .pill-launcher-btn {
    width: 52px;
    height: 52px;
  }

  .pill-chat-window {
    top: 8px;
    bottom: 8px;
    left: 8px;
    right: 8px;
    border-radius: 16px;
  }
}

