/* ==========================================================================
   SHIV BABA MEDICAL CARE HOSPITAL (SBMC) - SCANNER LINK HUB STYLES
   Ultra-Modern, Responsive, Medical Glassmorphism Design
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-deep: #051325;
  --bg-surface: #0a1c36;
  --bg-card: rgba(13, 30, 56, 0.72);
  --bg-card-hover: rgba(18, 40, 74, 0.88);
  --bg-glass-pill: rgba(255, 255, 255, 0.06);

  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-glow: rgba(0, 184, 132, 0.35);
  --border-card-hover: rgba(0, 210, 157, 0.5);

  --brand-navy: #0b2545;
  --brand-teal: #008775;
  --brand-emerald: #00b884;
  --brand-emerald-bright: #00e5a3;
  --brand-cyan: #00b4d8;
  --brand-blue: #1d70b8;

  --text-primary: #ffffff;
  --text-secondary: #94a9c9;
  --text-muted: #627d98;

  --wa-color: #25d366;
  --fb-color: #1877f2;
  --yt-color: #ff0000;
  --insta-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);

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

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow-teal: 0 0 35px rgba(0, 184, 132, 0.22);
  --shadow-glow-blue: 0 0 35px rgba(29, 112, 184, 0.25);

  /* Transitions */
  --tr-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --tr-medium: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --tr-spring: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   AMBIENT BACKGROUND LIGHTING
   ========================================================================== */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(95px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  animation: ambientFloat 14s ease-in-out infinite alternate;
}

.orb-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(0, 184, 132, 0.35) 0%, rgba(0, 135, 117, 0.1) 70%, transparent 100%);
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  animation-duration: 12s;
}

.orb-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(29, 112, 184, 0.35) 0%, rgba(11, 37, 69, 0.15) 70%, transparent 100%);
  top: 40%;
  right: -140px;
  animation-duration: 16s;
}

.orb-3 {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.2) 0%, rgba(4, 75, 84, 0.1) 70%, transparent 100%);
  bottom: 5%;
  left: -150px;
  animation-duration: 18s;
}

@keyframes ambientFloat {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(25px) scale(1.06); }
  100% { transform: translateY(-20px) scale(0.96); }
}

/* ==========================================================================
   APP CONTAINER & LAYOUT
   ========================================================================== */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 1.25rem 1.15rem 7.5rem 1.15rem; /* bottom padding for mobile bar */
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ==========================================================================
   TOP ACTION BAR
   ========================================================================== */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.25rem;
  animation: fadeInDown 0.6s ease forwards;
}

.nav-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(0, 184, 132, 0.08);
  border: 1px solid rgba(0, 184, 132, 0.25);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #5ef4c0;
  letter-spacing: 0.02em;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--brand-emerald-bright);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--brand-emerald-bright);
  animation: pulseDot 1.8s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.icon-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--tr-fast);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.icon-action-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-emerald);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 184, 132, 0.25);
}

.icon-action-btn:active {
  transform: scale(0.95);
}

/* ==========================================================================
   HERO CARD & PROFILE BRANDING
   ========================================================================== */
.hero-card {
  background: linear-gradient(180deg, rgba(13, 33, 62, 0.85) 0%, rgba(9, 23, 44, 0.85) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 1.75rem 1.4rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md), 0 0 30px rgba(0, 184, 132, 0.08);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 0.7s ease forwards;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-emerald), var(--brand-cyan), transparent);
}

.logo-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  padding: 0.85rem 1.5rem;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform var(--tr-spring);
}

.logo-wrapper:hover {
  transform: scale(1.02);
}

.hospital-logo {
  width: 100%;
  height: auto;
  max-height: 90px;
  object-fit: contain;
  display: block;
}

.hospital-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #38ef7d;
  background: rgba(56, 239, 125, 0.1);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 239, 125, 0.2);
  margin-bottom: 0.25rem;
}

.hospital-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  line-height: 1.25;
}

.hospital-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-emerald-bright);
  letter-spacing: 0.02em;
}

.hospital-tagline {
  font-size: 0.82rem;
  color: var(--text-secondary);
  max-width: 440px;
  margin-top: 0.15rem;
  line-height: 1.45;
}

/* Quick Action Strip (Pills) */
.quick-action-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  width: 100%;
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-pill-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 0.5rem;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tr-fast);
  backdrop-filter: blur(8px);
}

.quick-pill-btn .pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: transform var(--tr-spring);
}

.call-pill .pill-icon {
  background: rgba(0, 184, 132, 0.15);
  color: var(--brand-emerald-bright);
}

.call-pill:hover {
  background: rgba(0, 184, 132, 0.12);
  border-color: var(--brand-emerald);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 184, 132, 0.2);
}

.wa-pill .pill-icon {
  background: rgba(37, 211, 102, 0.15);
  color: var(--wa-color);
}

.wa-pill:hover {
  background: rgba(37, 211, 102, 0.12);
  border-color: var(--wa-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.2);
}

.vcard-pill .pill-icon {
  background: rgba(0, 180, 216, 0.15);
  color: var(--brand-cyan);
}

.vcard-pill:hover {
  background: rgba(0, 180, 216, 0.12);
  border-color: var(--brand-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 180, 216, 0.2);
}

.quick-pill-btn:hover .pill-icon {
  transform: scale(1.12);
}

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

/* ==========================================================================
   LINKS SECTION & CARDS
   ========================================================================== */
.links-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-left: 0.25rem;
}

.mt-lg {
  margin-top: 1rem;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.links-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Generic Link Card */
.link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.15rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--tr-fast);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.link-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), var(--shadow-glow-teal);
}

.link-card:active {
  transform: scale(0.985);
}

.card-icon-box {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--tr-spring);
}

.link-card:hover .card-icon-box {
  transform: scale(1.08) rotate(3deg);
}

.site-icon {
  background: linear-gradient(135deg, rgba(29, 112, 184, 0.25) 0%, rgba(0, 184, 132, 0.25) 100%);
  border: 1px solid rgba(0, 184, 132, 0.3);
  color: #38ef7d;
}

.appoint-icon {
  background: linear-gradient(135deg, rgba(0, 184, 132, 0.25) 0%, rgba(0, 210, 157, 0.3) 100%);
  border: 1px solid rgba(0, 210, 157, 0.4);
  color: var(--brand-emerald-bright);
}

.maps-icon {
  background: linear-gradient(135deg, rgba(234, 67, 53, 0.2) 0%, rgba(251, 188, 5, 0.2) 100%);
  border: 1px solid rgba(234, 67, 53, 0.3);
  color: #ff6b6b;
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0; /* prevents flex overflow */
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.badge-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.highlight-green {
  background: rgba(0, 184, 132, 0.2);
  color: var(--brand-emerald-bright);
  border: 1px solid rgba(0, 184, 132, 0.35);
}

.card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.card-url {
  font-size: 0.74rem;
  color: var(--brand-emerald-bright);
  font-weight: 600;
  margin-top: 0.1rem;
}

.card-arrow {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tr-fast);
}

.link-card:hover .card-arrow {
  color: var(--brand-emerald-bright);
  transform: translate(3px, -3px);
}

/* Location Card Specifics */
.location-card {
  cursor: default;
}

.location-card:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: var(--border-subtle);
}

.location-address {
  font-size: 0.82rem;
  color: #c9d8eb;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border-left: 3px solid #ff6b6b;
  margin: 0.35rem 0 0.55rem;
}

.location-btn-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.loc-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--tr-fast);
  border: none;
}

.primary-loc-btn {
  background: linear-gradient(135deg, #ea4335 0%, #d93025 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(234, 67, 53, 0.3);
}

.primary-loc-btn:hover {
  background: linear-gradient(135deg, #f05345 0%, #ea4335 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(234, 67, 53, 0.45);
}

.secondary-loc-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.secondary-loc-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

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

/* ==========================================================================
   SOCIAL MEDIA CARDS GRID
   ========================================================================== */
.social-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--tr-fast);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.social-card:hover {
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.social-card:active {
  transform: scale(0.985);
}

.social-icon-circle {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform var(--tr-spring);
}

.social-card:hover .social-icon-circle {
  transform: scale(1.1);
}

.fb-circle {
  background: var(--fb-color);
}

.fb-card:hover {
  border-color: rgba(24, 119, 242, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 25px rgba(24, 119, 242, 0.25);
}

.insta-circle {
  background: var(--insta-gradient);
}

.insta-card:hover {
  border-color: rgba(220, 39, 67, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 25px rgba(220, 39, 67, 0.25);
}

.yt-circle {
  background: var(--yt-color);
}

.yt-card:hover {
  border-color: rgba(255, 0, 0, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 25px rgba(255, 0, 0, 0.25);
}

.social-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.social-title-line {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.social-platform {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
}

.social-handle {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.social-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-go {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--tr-fast);
}

.social-card:hover .social-go {
  background: rgba(255, 255, 255, 0.16);
  transform: translateX(2px);
}

/* ==========================================================================
   SPECIALTIES GRID
   ========================================================================== */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.spec-card {
  background: rgba(10, 25, 48, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  backdrop-filter: blur(12px);
  transition: all var(--tr-fast);
}

.spec-card:hover {
  background: rgba(14, 34, 64, 0.8);
  border-color: rgba(0, 184, 132, 0.35);
  transform: translateY(-2px);
}

.spec-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 184, 132, 0.15);
  color: var(--brand-emerald-bright);
  display: flex;
  align-items: center;
  justify-content: center;
}

.spec-title {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.spec-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.hospital-footer {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0 0.5rem;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  margin-bottom: 0.5rem;
}

.footer-hosp-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.footer-address {
  font-size: 0.76rem;
  color: var(--text-secondary);
  max-width: 440px;
}

.footer-contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.76rem;
}

.footer-contact-item {
  color: var(--brand-emerald-bright);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--tr-fast);
}

.footer-contact-item:hover {
  color: #ffffff;
  text-decoration: underline;
}

.dot-sep {
  color: var(--text-muted);
}

.footer-copyright {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ==========================================================================
   MOBILE FIXED EMERGENCY BAR
   ========================================================================== */
.mobile-emergency-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.65rem 1.15rem env(safe-area-inset-bottom, 0.65rem);
  background: rgba(5, 19, 37, 0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
}

.emergency-bar-inner {
  width: 100%;
  max-width: 600px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.bar-call-btn,
.bar-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
  transition: all var(--tr-fast);
}

.bar-call-btn {
  background: linear-gradient(135deg, #008775 0%, #00b884 100%);
  box-shadow: 0 4px 16px rgba(0, 184, 132, 0.3);
}

.bar-call-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.bar-wa-btn {
  background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.bar-wa-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.bar-call-btn:active,
.bar-wa-btn:active {
  transform: scale(0.97);
}

/* ==========================================================================
   MODAL DIALOG (QR CODE)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 10, 20, 0.82);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--tr-medium);
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  position: relative;
  background: linear-gradient(180deg, #0d2547 0%, #081a33 100%);
  border: 1px solid rgba(0, 184, 132, 0.35);
  border-radius: 22px;
  max-width: 380px;
  width: 100%;
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--shadow-glow-teal);
  transform: translateY(20px) scale(0.95);
  transition: all var(--tr-spring);
}

.modal-backdrop.is-open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--tr-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.modal-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 184, 132, 0.15);
  color: var(--brand-emerald-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.qr-canvas-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.25rem 0;
}

#qrCanvas {
  background: #ffffff;
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.qr-target-badge {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-emerald-bright);
  background: rgba(0, 184, 132, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 184, 132, 0.25);
}

.modal-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tr-fast);
  border: none;
}

.modal-btn.secondary-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.modal-btn.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.modal-btn.primary-btn {
  background: linear-gradient(135deg, #008775 0%, #00b884 100%);
  color: #ffffff;
}

.modal-btn.primary-btn:hover {
  filter: brightness(1.1);
}

/* ==========================================================================
   INTERACTIVE TOAST NOTIFICATION
   ========================================================================== */
.toast-notice {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  z-index: 1100;
  background: rgba(13, 37, 68, 0.95);
  border: 1px solid var(--brand-emerald);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), var(--shadow-glow-teal);
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notice.is-shown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast-icon {
  color: var(--brand-emerald-bright);
  display: flex;
  align-items: center;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (min-width: 641px) {
  .mobile-emergency-bar {
    display: none;
  }
  
  .app-container {
    padding-bottom: 3.5rem;
  }
}

@media (max-width: 600px) {
  .app-container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    gap: 1.25rem;
  }

  .hero-card {
    padding: 1.4rem 1rem 1.25rem;
    border-radius: 20px;
  }

  .logo-wrapper {
    max-width: 320px;
    padding: 0.65rem 1.1rem;
  }

  .hospital-title {
    font-size: 1.2rem;
  }

  .hospital-subtitle {
    font-size: 0.88rem;
  }

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

  .card-icon-box {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }

  .link-card {
    padding: 1rem;
    gap: 0.85rem;
  }

  .social-card {
    padding: 0.85rem 1rem;
  }

  .social-desc {
    display: none; /* keep clean on tiny screens */
  }
}
