:root {
  --emerald-deep: #092F2B;
  --emerald: #14594D;
  --emerald-soft: #E8F6F1;
  --mint: #B8E5D5;
  --vital-red: #F04452;
  --dark-red: #D92F42;
  --red-glow: rgba(240, 68, 82, 0.14);
  --ivory: #F7F5EF;
  --white: #FFFFFF;
  --ink: #263C38;
  --muted: #5A706B;
  --border: rgba(9, 47, 43, 0.11);
  --border-strong: rgba(9, 47, 43, 0.2);

  /* Semantic aliases preserved for inline/dynamic references */
  --bg: var(--ivory);
  --surface: var(--white);
  --surface-soft: #F1EFE8;
  --crimson: var(--vital-red);
  --crimson-deep: var(--dark-red);
  --crimson-glow: var(--red-glow);
  --green: var(--emerald);
  --green-soft: var(--emerald-soft);
  --amber: #B45309;
  --amber-soft: #FEF3C7;

  --shadow-sm: 0 2px 10px rgba(9, 47, 43, 0.05);
  --shadow: 0 12px 32px rgba(9, 47, 43, 0.08);
  --shadow-lg: 0 24px 54px rgba(9, 47, 43, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
}

body.dark-duty {
  --bg: #071E1B;
  --surface: #0D2B27;
  --surface-soft: #123631;
  --ink: #ECF6F3;
  --muted: #9DC4BA;
  --border: rgba(184, 229, 213, 0.14);
  --border-strong: rgba(184, 229, 213, 0.26);
  --emerald-soft: rgba(20, 89, 77, 0.35);
  --green: #6EE7B7;
  --green-soft: rgba(20, 89, 77, 0.35);
  --crimson: #FF5A67;
  --crimson-deep: #F04452;
  --crimson-glow: rgba(240, 68, 82, 0.22);
  --amber: #FBBF24;
  --amber-soft: rgba(180, 83, 9, 0.22);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow: 0 16px 38px rgba(0, 0, 0, 0.48);
  --shadow-lg: 0 28px 60px rgba(0, 0, 0, 0.6);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', 'Noto Sans Bengali', system-ui, -apple-system, sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .hero-display-title, .gate-heading {
  font-family: 'Plus Jakarta Sans', 'Noto Sans Bengali', system-ui, sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hidden { display: none !important; }

.sr-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* === Mandatory Entry Gate === */
.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(9, 47, 43, 0.84);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.gate-card {
  max-width: 630px;
  width: 100%;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  max-height: 92vh;
  overflow-y: auto;
}

.gate-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald);
}
.gate-brand .pill-btn { margin-left: auto; }

.gate-heading {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  line-height: 1.15;
  margin: 14px 0 8px;
  font-weight: 800;
}

.gate-lead {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 0.94rem;
}

.gate-commitments {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.commitment-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.86rem;
}

.commitment-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--emerald-soft);
  color: var(--emerald);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.commitment-item strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 2px;
}

.gate-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1.5px solid color-mix(in srgb, var(--emerald) 35%, transparent);
  background: var(--emerald-soft);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
}
.gate-checkbox input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--emerald); flex-shrink: 0; }
.gate-status { margin: 12px 0; font-size: 0.88rem; font-weight: 600; min-height: 20px; }
.gate-actions { margin-top: 8px; }
.gate-fallback-box { margin-top: 12px; display: grid; gap: 8px; }
.gate-footnote { text-align: center; font-size: 0.77rem; color: var(--muted); margin: 14px 0 0; }

/* === Topbar Navigation === */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  box-shadow: 0 4px 24px rgba(9, 47, 43, 0.05);
}

.topbar-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
  padding: 3px 6px 3px 3px;
  border-radius: 15px;
  transition: background-color 0.2s ease;
}
.brand:hover {
  background: color-mix(in srgb, var(--surface-soft) 75%, transparent);
}

.brand-drop {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(255, 107, 120, 0.16), rgba(225, 29, 72, 0.12));
  border: 1.5px solid rgba(225, 29, 72, 0.28);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
}
body.dark-duty .brand-drop {
  background: linear-gradient(145deg, rgba(255, 107, 120, 0.2), rgba(225, 29, 72, 0.16));
  border-color: rgba(255, 107, 120, 0.35);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.25);
}
.brand:hover .brand-drop {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.28);
}

.brand-text strong {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.brand-accent {
  background: linear-gradient(135deg, var(--vital-red), #be123c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.dark-duty .brand-accent {
  background: linear-gradient(135deg, #fb7185, #f43f5e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-text small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: 8px;
  padding: 4px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface-soft) 88%, transparent);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 2px rgba(9, 47, 43, 0.04);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 11px;
  cursor: pointer;
  min-height: 36px;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.16s ease;
  white-space: nowrap;
}
.nav-btn:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}
.nav-btn.active {
  background: var(--surface);
  color: var(--emerald-deep);
  box-shadow: 0 2px 8px rgba(9, 47, 43, 0.09);
}
body.dark-duty .nav-btn.active {
  background: linear-gradient(135deg, var(--emerald), #0f766e);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(11, 110, 92, 0.35);
}

.topbar-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.verified-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid color-mix(in srgb, var(--emerald) 28%, transparent);
  white-space: nowrap;
}

.pill-btn, .icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  min-height: 38px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(9, 47, 43, 0.05);
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.16s ease, box-shadow 0.18s ease;
}
.icon-pill { width: 38px; padding: 0; }
.pill-btn:hover, .icon-pill:hover {
  border-color: var(--border-strong);
  background: var(--surface-soft);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(9, 47, 43, 0.08);
}

/* Stylish Light / Dark Mode Switch */
.theme-switch-btn {
  position: relative;
  width: 62px;
  height: 34px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(9, 47, 43, 0.07);
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, transform 0.16s ease;
}
.theme-switch-btn:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08), 0 5px 14px rgba(9, 47, 43, 0.12);
}
.theme-switch-icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}
.theme-sun { color: #b45309; opacity: 1; }
.theme-moon { color: #64748b; opacity: 0.55; }
.theme-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.26s ease;
  z-index: 1;
}
body.dark-duty .theme-switch-btn {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.4), 0 2px 10px rgba(15, 23, 42, 0.4);
}
body.dark-duty .theme-switch-thumb {
  transform: translateX(28px);
  background: #334155;
}
body.dark-duty .theme-sun { color: #94a3b8; opacity: 0.45; }
body.dark-duty .theme-moon { color: #fde047; opacity: 1; }

.lang-pill-btn {
  background: color-mix(in srgb, var(--surface-soft) 90%, transparent);
  border-color: var(--border-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Round Profile Avatar Logo & Topbar Chip */
.profile-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  text-transform: uppercase;
}
.profile-avatar-circle.profile-avatar-lg {
  width: 50px;
  height: 50px;
  font-size: 1.35rem;
  border: 2px solid rgba(255, 255, 255, 0.7);
}
.topbar-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(9, 47, 43, 0.06);
  transition: transform 0.16s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.topbar-profile-chip:hover {
  transform: translateY(-1px);
  border-color: var(--emerald);
  box-shadow: 0 4px 12px rgba(11, 110, 92, 0.14);
}
.topbar-profile-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-pill-btn {
  border-radius: 999px !important;
  padding: 7px 15px !important;
  min-height: 38px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(11, 110, 92, 0.22);
}
.auth-pill-btn.btn-signout {
  background: var(--surface-soft);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.auth-pill-btn.btn-signout:hover {
  background: rgba(240, 68, 82, 0.1);
  color: var(--vital-red);
  border-color: rgba(240, 68, 82, 0.35);
}

/* === Live Emergency Ticker (Full-Width Edge-to-Edge + Continuous ECG) === */
.emergency-ticker {
  position: relative;
  width: 100%;
  background: linear-gradient(90deg, #051D1A 0%, #092F2B 38%, #0E3E37 50%, #092F2B 62%, #051D1A 100%);
  color: var(--ivory);
  padding: 0;
  font-size: 0.82rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(240, 68, 82, 0.28);
  box-shadow: 0 4px 18px rgba(9, 47, 43, 0.22);
}

.ticker-ecg-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.62;
}

.ticker-ecg-track {
  display: flex;
  width: 200%;
  height: 100%;
  will-change: transform;
  animation: tickerEcgSlide 10s linear infinite;
}

.ticker-ecg-svg {
  width: 50%;
  height: 100%;
  flex-shrink: 0;
  display: block;
}

.ticker-ecg-path {
  fill: none;
  stroke: url(#tickerEcgGrad);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(240, 68, 82, 0.65));
}

@keyframes tickerEcgSlide {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

.ticker-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: var(--mint);
  background: rgba(5, 26, 23, 0.78);
  border: 1px solid rgba(240, 68, 82, 0.4);
  padding: 4px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  flex-shrink: 0;
}

.ticker-marquee-viewport {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.ticker-marquee-viewport::-webkit-scrollbar { display: none; }

.ticker-marquee-track,
.ticker-items {
  display: flex;
  gap: 9px;
  align-items: center;
}

.ticker-pill {
  background: rgba(9, 47, 43, 0.82);
  border: 1px solid rgba(184, 229, 213, 0.28);
  color: var(--white);
  padding: 5px 13px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.ticker-pill:hover {
  background: rgba(240, 68, 82, 0.34);
  border-color: rgba(240, 68, 82, 0.78);
  box-shadow: 0 0 12px rgba(240, 68, 82, 0.35);
  transform: translateY(-1px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vital-red);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(240, 68, 82, 0.7);
  animation: pulseRing 2s infinite;
  flex-shrink: 0;
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(240, 68, 82, 0.65); }
  70% { box-shadow: 0 0 0 9px rgba(240, 68, 82, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 68, 82, 0); }
}

/* === Main Shell & Views === */
.main-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 92px;
}
.view { display: none; }
.view.active { display: block; animation: viewFade 0.28s ease-out; }
.view:not(#view-search) { padding-top: 22px; }
@keyframes viewFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Full-Width Deep Emerald Hero Banner === */
.hero-banner-emerald {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 26px;
  padding: 42px 28px 46px;
  color: var(--white);
  background: linear-gradient(135deg, #092F2B 0%, #0D423A 52%, #14594D 100%);
  box-shadow: 0 22px 54px rgba(9, 47, 43, 0.22);
  overflow: hidden;
  border-bottom: 1px solid rgba(184, 229, 213, 0.18);
}

.hero-banner-emerald::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(184, 229, 213, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
}

.hero-ambient-glow {
  position: absolute;
  inset: -35% -15%;
  background:
    radial-gradient(circle at 50% 48%, rgba(240, 68, 82, 0.2), transparent 46%),
    radial-gradient(circle at 22% 30%, rgba(184, 229, 213, 0.14), transparent 44%),
    radial-gradient(circle at 78% 68%, rgba(184, 229, 213, 0.12), transparent 48%);
  animation: ambientShift 14s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes ambientShift {
  0% { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  100% { transform: translate3d(1.5%, 1.5%, 0) scale(1.04); }
}

/* Large Blurred Background Blood Drop Logo */
.hero-bg-drop {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(380px, 46vw, 660px);
  height: clamp(420px, 50vw, 720px);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: 0.15;
  filter: blur(22px) drop-shadow(0 0 65px rgba(240, 68, 82, 0.65));
}
.hero-bg-drop-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-grid-3 {
  position: relative;
  z-index: 2;
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(290px, 1fr) minmax(350px, 1.18fr) minmax(290px, 1fr);
  gap: 26px;
  align-items: stretch;
}

.hero-side-card {
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  color: var(--ink);
  border-radius: 22px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 22px 48px rgba(4, 22, 20, 0.28);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s ease;
}
.hero-side-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px rgba(4, 22, 20, 0.36);
}

.hsc-head { display: flex; align-items: center; gap: 11px; }
.hsc-head h2 { margin: 0; font-size: 1.24rem; font-weight: 800; }
.hsc-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hsc-icon-red { background: rgba(240, 68, 82, 0.12); color: var(--vital-red); }
.hsc-icon-green { background: var(--emerald-soft); color: var(--emerald); }
.hsc-tag-red { color: var(--vital-red); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em; display: block; }
.hsc-tag-green { color: var(--emerald); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em; display: block; }

.hsc-live-badge {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(240, 68, 82, 0.12);
  color: var(--dark-red);
  border: 1px solid rgba(240, 68, 82, 0.24);
}
.hsc-sub-row { font-size: 0.85rem; color: var(--muted); }
.hsc-req-list { display: grid; gap: 8px; }
.hsc-req-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 11px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}
.hsc-req-item:hover { border-color: var(--vital-red); transform: translateX(3px); background: var(--surface); }

.hsc-bg-pill {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--vital-red), var(--dark-red));
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.92rem;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 4px 10px rgba(240, 68, 82, 0.24);
}
.hsc-req-item strong { display: block; font-size: 0.85rem; line-height: 1.25; }
.hsc-req-item small { display: block; font-size: 0.74rem; color: var(--muted); }

.hsc-link-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--emerald);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  padding: 2px 0;
}
.hsc-link-all:hover { text-decoration: underline; }

.hsc-desc { font-size: 0.87rem; color: var(--muted); margin: 0; }
.hsc-rules-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rule-box {
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 10px 6px;
  text-align: center;
  background: var(--bg);
}
.rule-box strong {
  display: block;
  font-size: 1.12rem;
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}
.rule-box small { font-size: 0.71rem; color: var(--muted); }

.hsc-quote-box {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid color-mix(in srgb, var(--emerald) 18%, transparent);
  border-radius: 13px;
  padding: 10px 12px;
  font-size: 0.82rem;
  display: flex;
  gap: 9px;
  align-items: center;
  font-weight: 600;
}
.hsc-quote-box svg { flex-shrink: 0; }
.hsc-foot { margin: 0; text-align: center; font-size: 0.76rem; color: var(--muted); }

/* Hero Centerpiece */
.hero-centerpiece {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 14px;
  min-width: 0;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(184, 229, 213, 0.15);
  border: 1px solid rgba(184, 229, 213, 0.36);
  color: var(--mint);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
}

.hero-display-title {
  font-size: clamp(2.15rem, 3.4vw, 3rem);
  line-height: 1.08;
  margin: 16px 0 12px;
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 6px 26px rgba(0, 0, 0, 0.32);
}

.hero-display-sub {
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(247, 245, 239, 0.9);
  max-width: 44ch;
  margin: 0 0 10px;
}

.animated-drop-stage {
  width: 240px;
  height: 164px;
  margin: 4px 0 6px;
}
.drop-heartbeat-svg { width: 100%; height: 100%; overflow: visible; }
.floating-drop { animation: floatDrop 3.4s ease-in-out infinite; transform-origin: center; }
.drop-shadow-pulse { animation: shadowPulse 3.4s ease-in-out infinite; transform-origin: center; }
.beating-heart { animation: beatHeart 1.4s ease-in-out infinite; transform-origin: 160px 124px; }
.hero-ekg-line {
  fill: none;
  stroke: rgba(184, 229, 213, 0.55);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: ekgDraw 3s linear infinite;
}

@keyframes ekgDraw {
  0% { stroke-dashoffset: 340; }
  65% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -340; }
}
@keyframes floatDrop {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
@keyframes shadowPulse {
  0%, 100% { transform: scaleX(1); opacity: 0.85; }
  50% { transform: scaleX(0.84); opacity: 0.5; }
}
@keyframes beatHeart {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.16); }
  45% { transform: scale(0.95); }
  65% { transform: scale(1.09); }
}

.hero-ready-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(9, 47, 43, 0.65);
  border: 1px solid rgba(184, 229, 213, 0.25);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--ivory);
}
.hero-ready-pill strong { color: var(--mint); font-family: 'JetBrains Mono', monospace; }
.hero-ready-pill .sep { opacity: 0.45; }

/* Staggered hero entrance */
.hero-stagger-1 { animation: heroReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: 0.04s; }
.hero-stagger-2 { animation: heroReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: 0.12s; }
.hero-stagger-3 { animation: heroReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: 0.2s; }

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

/* === Interactive Blood Group Pill Selectors === */
.search-blood-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.search-blood-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
}
.search-blood-label svg { color: var(--vital-red); }

.bg-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.bg-pill {
  min-width: 48px;
  min-height: 40px;
  padding: 6px 13px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.bg-pill:hover {
  border-color: var(--vital-red);
  transform: translateY(-2px);
  background: var(--surface);
}
.bg-pill.active {
  background: linear-gradient(145deg, var(--vital-red), var(--dark-red));
  border-color: var(--dark-red);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(240, 68, 82, 0.28);
}

/* === Search Panel === */
.search-panel, .results-column, .map-column, .panel, .compat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.search-panel { margin-bottom: 20px; }

.search-grid-enhanced {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 150px auto;
  gap: 12px;
  align-items: end;
}
.mt-6 { margin-top: 6px; }

.search-toggles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* === Split Map & Results === */
.map-split {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 20px;
  align-items: start;
}

.column-head, .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.column-head h2, .panel-head h2 { margin: 0; font-size: 1.18rem; font-weight: 800; }

.count-badge, .badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--ink);
}
.badge-red {
  background: rgba(240, 68, 82, 0.12);
  color: var(--dark-red);
  border-color: rgba(240, 68, 82, 0.35);
}

.privacy-banner {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid color-mix(in srgb, var(--emerald) 18%, transparent);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.81rem;
  margin-bottom: 12px;
}
.privacy-banner svg { flex-shrink: 0; margin-top: 1px; }

.donor-list {
  display: grid;
  gap: 10px;
  max-height: 490px;
  overflow-y: auto;
  padding-right: 4px;
}

.donor-card {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--bg);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.donor-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.blood-badge {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--vital-red), var(--dark-red));
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 6px 14px rgba(240, 68, 82, 0.26);
}

.donor-meta strong { display: block; font-size: 0.94rem; }
.donor-meta small { display: block; color: var(--muted); font-size: 0.79rem; }
.donor-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.71rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.tag-green { background: var(--emerald-soft); color: var(--emerald); border-color: transparent; }
.tag-amber { background: var(--amber-soft); color: var(--amber); border-color: transparent; }

.donor-actions-col { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.direct-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-weight: 600;
  font-size: 0.78rem;
}
.direct-contact-pill a { color: inherit; text-decoration: none; }
.direct-contact-pill a:hover { text-decoration: underline; }

.results-footer-actions { margin-top: 14px; }

/* === Map === */
.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.map-legend { display: flex; gap: 12px; align-items: center; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }
.dot-hosp { background: var(--emerald); }
.dot-exact { background: var(--vital-red); }
.dot-compat { background: #D97706; }

.leaflet-canvas {
  width: 100%;
  height: 560px;
  border-radius: 15px;
  border: 1px solid var(--border);
  z-index: 1;
}

/* === Compatibility Visualizer === */
.compat-card { margin-top: 20px; }
.compat-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.compat-head h3 { margin: 0 0 4px; font-weight: 800; }
.compat-head p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.compat-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.compat-pill {
  min-width: 46px;
  min-height: 42px;
  border-radius: 11px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.compat-pill:hover { border-color: var(--vital-red); transform: translateY(-1px); }
.compat-pill.active {
  background: linear-gradient(145deg, var(--vital-red), var(--dark-red));
  color: var(--white);
  border-color: var(--dark-red);
  box-shadow: 0 5px 14px rgba(240, 68, 82, 0.25);
}

.compat-output {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}
.compat-cell {
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 12px 6px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  opacity: 0.42;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.compat-cell.can-give {
  opacity: 1;
  background: var(--emerald-soft);
  border-color: color-mix(in srgb, var(--emerald) 45%, transparent);
  color: var(--emerald);
}
.compat-cell.exact-match {
  opacity: 1;
  background: rgba(240, 68, 82, 0.12);
  border-color: var(--vital-red);
  color: var(--dark-red);
  transform: translateY(-2px);
}
.compat-cell small { display: block; font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 600; margin-top: 3px; }

/* === Forms & Buttons === */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.81rem; font-weight: 600; color: var(--muted); }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="date"], input[type="time"], select, textarea {
  width: 100%;
  padding: 10px 13px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--emerald);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(20, 89, 77, 0.14);
}
input[type="range"] { accent-color: var(--vital-red); cursor: pointer; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 17px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.18s ease, filter 0.18s ease, background-color 0.18s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--vital-red), var(--dark-red));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(240, 68, 82, 0.28);
}
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 12px 24px rgba(240, 68, 82, 0.34); }

.btn-emerald {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-deep));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(9, 47, 43, 0.24);
}
.btn-emerald:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 12px 24px rgba(9, 47, 43, 0.3); }

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

.btn-danger { background: #881322; color: var(--white); }
.btn-danger:hover { filter: brightness(1.08); }

.btn-accept { background: var(--emerald); color: var(--white); }
.btn-accept:hover { filter: brightness(1.08); }

.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 0.82rem; border-radius: 10px; }
.btn-lg { min-height: 50px; font-size: 0.98rem; width: 100%; }
.btn-block { width: 100%; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--emerald);
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 2px 4px;
}
.link-btn:hover { text-decoration: underline; }

.toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.toggle-chip input { width: 18px; height: 18px; accent-color: var(--emerald); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.form-stack { display: grid; gap: 13px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.smart-paste-box {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px;
  margin-bottom: 14px;
}
.smart-paste-box label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.smart-paste-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }

.guest-otp-box, .dev-otp-note {
  background: var(--amber-soft);
  border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 0.85rem;
}

.feedback-msg { margin-top: 10px; font-weight: 600; font-size: 0.88rem; }
.muted-note { color: var(--muted); font-size: 0.85rem; }
.mt-16 { margin-top: 16px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.danger-zone { display: flex; flex-wrap: wrap; gap: 10px; }

/* === Sign-in Lock & Privacy Shield === */
.signin-lock-box {
  border: 1.5px dashed color-mix(in srgb, var(--emerald) 55%, transparent);
  background: var(--emerald-soft);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  margin-bottom: 12px;
}
.lock-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 15px;
  background: var(--surface);
  color: var(--emerald);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}

.privacy-controls-box {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px;
  display: grid;
  gap: 9px;
}

.privacy-shield-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid color-mix(in srgb, var(--emerald) 25%, transparent);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 0.8rem;
}
.privacy-shield-note svg { flex-shrink: 0; margin-top: 1px; }

/* === Dashboards, Lists & Leaderboard === */
.dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 15px 17px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.stat-card small { color: var(--muted); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-card strong { display: block; font-family: 'JetBrains Mono', monospace; font-size: 1.55rem; margin-top: 4px; color: var(--emerald); }

.stack-list { display: grid; gap: 10px; }
.item-row {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 15px;
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  transition: border-color 0.18s ease;
}
.item-row:hover { border-color: var(--border-strong); }

.area-bars { display: grid; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 50px; gap: 10px; align-items: center; font-size: 0.88rem; }
.bar-track { height: 10px; border-radius: 999px; background: var(--surface-soft); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--emerald), var(--vital-red)); }
.center-panel { max-width: 560px; margin: 24px auto; text-align: center; }

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 16px;
  padding-top: 22px;
}
@media (max-width: 720px) {
  .podium-grid {
    grid-template-columns: 1fr;
    padding-top: 4px;
  }
}
.podium-card {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 20px 16px;
  background: var(--bg);
  text-align: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.podium-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.podium-1 {
  border-color: #F59E0B;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.22), rgba(251, 191, 36, 0.06) 55%, var(--bg));
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.18);
  padding-top: 26px;
  padding-bottom: 24px;
}
@media (min-width: 721px) {
  .podium-1 { transform: translateY(-18px); }
  .podium-1:hover { transform: translateY(-22px); }
}
.podium-2 {
  border-color: #60A5FA;
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.18), rgba(148, 163, 184, 0.06) 55%, var(--bg));
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.12);
}
.podium-3 {
  border-color: #FB923C;
  background: linear-gradient(180deg, rgba(251, 146, 60, 0.18), rgba(180, 83, 9, 0.06) 55%, var(--bg));
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.12);
}
.podium-rank-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.podium-1 .podium-rank-pill { background: #F59E0B; color: #FFFFFF; }
.podium-2 .podium-rank-pill { background: #3B82F6; color: #FFFFFF; }
.podium-3 .podium-rank-pill { background: #EA580C; color: #FFFFFF; }
.podium-medal {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 2px solid currentColor;
  box-shadow: var(--shadow-sm);
}
.podium-stat-pill {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--emerald-soft);
  color: var(--emerald);
}
.lb-row-top {
  border-left: 4px solid #F59E0B;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.08), var(--bg));
}
.inline-verify-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.inline-verify-row input { flex: 1; min-width: 0; }
.profile-section-card { display: grid; gap: 14px; }
.profile-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.profile-section-head h3 { margin: 0; }
.profile-section-head p { margin: 2px 0 0; }
.profile-section-badge {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.82rem;
  background: linear-gradient(135deg, var(--emerald), #0EA5E9);
  color: #FFFFFF;
  flex-shrink: 0;
}
.profile-group-box {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
}
.profile-group-title {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--emerald);
}

/* === Modals === */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(9, 47, 43, 0.72);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal-card {
  max-width: 480px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-wide { max-width: 680px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-head h3 { margin: 0; font-weight: 800; }

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.auth-tab {
  min-height: 40px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.auth-tab.active { background: var(--emerald); color: var(--white); border-color: var(--emerald); }

.gate-terms-details { margin: 10px 0; font-size: 0.85rem; }
.gate-terms-details summary { cursor: pointer; font-weight: 700; color: var(--emerald); }
.gate-terms-scroll {
  max-height: 220px;
  overflow-y: auto;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  font-size: 0.82rem;
}

/* === Animations & Scroll Reveal === */
.animate-pop { animation: popIn 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.animate-float-in { animation: floatIn 0.42s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes popIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Mobile Bottom Nav & Footer === */
.mobile-bottom-nav { display: none; }
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 22px 20px 84px;
  margin-top: 32px;
}
.footer-inner { max-width: 1340px; margin: 0 auto; font-size: 0.83rem; color: var(--muted); }
.footer-inner p { margin: 4px 0; }

/* === Responsive Breakpoints === */
@media (max-width: 1240px) {
  .hero-banner-emerald { padding: 32px 20px 36px; }
  .hero-grid-3 { gap: 18px; grid-template-columns: minmax(265px, 1fr) minmax(310px, 1.12fr) minmax(265px, 1fr); }
  .hero-side-card { padding: 18px; }
}

@media (max-width: 1080px) {
  .hero-grid-3 { grid-template-columns: 1fr 1fr; }
  .hero-centerpiece { grid-column: 1 / -1; order: -1; padding: 4px 8px 12px; }
  .search-grid-enhanced { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .map-split, .two-col { grid-template-columns: 1fr; }
  .compat-output { grid-template-columns: repeat(4, 1fr); }
  .leaflet-canvas { height: 400px; }
}

@media (max-width: 760px) {
  .nav-links, .verified-pill { display: none; }
  .topbar-inner { padding: 10px 14px; gap: 10px; }
  .ticker-inner { padding: 8px 12px; gap: 10px; }
  .ticker-label { font-size: 0.66rem; padding: 4px 9px; }

  .hero-banner-emerald { padding: 24px 14px 28px; }
  .hero-grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .hero-centerpiece { order: 1; padding: 0 4px 8px; }
  .hero-grid-3 > .hero-side-card:first-child { order: 2; }
  .hero-grid-3 > .hero-side-card:last-child { order: 3; }
  .hero-bg-drop { width: 320px; height: 360px; filter: blur(18px) drop-shadow(0 0 48px rgba(240, 68, 82, 0.55)); }
  .hero-display-title { font-size: clamp(1.75rem, 7vw, 2.25rem); }

  .search-blood-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .bg-pill-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .bg-pill-group::-webkit-scrollbar { display: none; }
  .bg-pill { flex-shrink: 0; }
  .search-cta .btn { width: 100%; }

  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(9, 47, 43, 0.08);
  }
  .mobile-bottom-nav button {
    background: none;
    border: none;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 4px;
    border-radius: 12px;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.16s ease, background-color 0.16s ease;
  }
  .mobile-bottom-nav button.active {
    color: var(--vital-red);
    background: rgba(240, 68, 82, 0.08);
    font-weight: 700;
  }
}

@media (max-width: 640px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  .topbar-inner { padding: 8px 10px; gap: 8px; }
  .brand { gap: 8px; padding: 2px; }
  .brand-drop { width: 34px; height: 34px; border-radius: 11px; }
  .brand-text strong { font-size: 1.02rem; }
  .brand-text small { display: none; }
  .topbar-tools { gap: 6px; }
  .theme-switch-btn { width: 52px; height: 30px; padding: 0 5px; }
  .theme-switch-thumb { width: 22px; height: 22px; }
  body.dark-duty .theme-switch-thumb { transform: translateX(22px); }
  .lang-pill-btn { padding: 5px 10px; min-height: 34px; font-size: 0.74rem; }
  .lang-pill-btn svg { display: none; }
  .topbar-profile-chip { min-height: 34px; padding: 3px 9px 3px 3px; gap: 6px; font-size: 0.75rem; }
  .profile-avatar-circle { width: 26px; height: 26px; font-size: 0.78rem; }
  .auth-pill-btn { min-height: 34px !important; padding: 5px 11px !important; font-size: 0.75rem !important; }

  .search-grid-enhanced { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .main-shell { padding: 0 12px 92px; }
  .search-panel, .results-column, .map-column, .panel, .compat-card { padding: 14px; }
  .compat-output { grid-template-columns: repeat(2, 1fr); }
  .donor-card { grid-template-columns: 46px 1fr; }
  .donor-actions-col { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
  .home-donate-list { max-height: 380px; }
  .home-req-actions { flex-direction: row; }
  .modal-card { width: calc(100vw - 20px); max-height: 90dvh; overflow-y: auto; padding: 16px; }
  input, select, textarea { font-size: 16px; }
}

@media (max-width: 440px) {
  .topbar-profile-chip { padding: 3px; border-radius: 50%; }
  .topbar-profile-name { display: none; }
  .ticker-hospital-status { display: none; }
}

/* === Reduced Motion Accessibility === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* === Encrypted Chat Modal & Health Advice Notifications === */
.modal-chat {
  max-width: 540px;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}
.chat-e2e-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: rgba(20, 89, 77, 0.09);
  border: 1px solid rgba(20, 89, 77, 0.22);
  color: var(--emerald, #14594D);
  font-size: 0.82rem;
  font-weight: 600;
}
.chat-messages-list {
  flex: 1;
  min-height: 240px;
  max-height: 46vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  margin-bottom: 12px;
}
.chat-bubble {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  word-break: break-word;
}
.chat-bubble.mine {
  align-self: flex-end;
  background: var(--emerald, #14594D);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-bubble.theirs {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-bubble-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.72rem;
  opacity: 0.78;
  margin-top: 4px;
}
.chat-send-form {
  display: flex;
  gap: 8px;
}
.chat-send-form input {
  flex: 1;
}
.notif-card {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.notif-card.advice {
  border-left: 4px solid var(--emerald, #14594D);
  background: rgba(20, 89, 77, 0.05);
}
.notif-card pre {
  margin: 6px 0 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Future Blood Booking Calendar */
.calendar-panel {
  margin-top: 20px;
}
.calendar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.calendar-month-label {
  min-width: 130px;
  text-align: center;
  font-size: 0.95rem;
}
.calendar-split {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 18px;
  margin-top: 14px;
}
@media (max-width: 860px) {
  .calendar-split {
    grid-template-columns: 1fr;
  }
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 6px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.calendar-cell {
  min-height: 62px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  transition: border-color 0.15s ease, transform 0.12s ease, background 0.15s ease;
}
.calendar-cell:hover {
  border-color: var(--emerald-bright, #198773);
  transform: translateY(-1px);
}
.calendar-cell.is-empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
  pointer-events: none;
}
.calendar-cell.is-today {
  border-color: var(--emerald-bright, #198773);
  box-shadow: inset 0 0 0 1px var(--emerald-bright, #198773);
}
.calendar-cell.is-selected {
  background: rgba(20, 89, 77, 0.12);
  border-color: var(--emerald, #14594D);
}
.calendar-cell.has-bookings {
  background: rgba(240, 68, 82, 0.06);
}
.calendar-day-num {
  font-weight: 700;
  font-size: 0.85rem;
}
.calendar-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--crimson, #D92F42);
  color: #fff;
  align-self: flex-start;
}
.calendar-day-detail {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.calendar-booking-item {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* Bibhag -> Zela -> Area Location Box in Registration */
.label-hint {
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--muted);
}
.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 680px) {
  .form-row-3 { grid-template-columns: 1fr; }
}
.bibhag-loc-box {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(20, 89, 77, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bibhag-loc-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--emerald);
}
.sms-notice-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: #b45309;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}
[data-theme="dark"] .sms-notice-pill {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.14);
}

/* Leaderboard Transparent Blood Logo & Aesthetic Polish */
.lb-blood-watermark {
  position: absolute;
  right: 12px;
  bottom: -10px;
  width: 68px;
  height: 84px;
  color: var(--crimson, #e11d48);
  pointer-events: none;
  z-index: 0;
  transform: rotate(-8deg);
}
.podium-card .lb-blood-watermark {
  right: 8px;
  top: 8px;
  bottom: auto;
  width: 74px;
  height: 90px;
  transform: rotate(10deg);
}
.podium-card > *:not(.lb-blood-watermark),
.lb-user-row > *:not(.lb-blood-watermark) {
  position: relative;
  z-index: 1;
}
.podium-blood-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}
.podium-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}
.podium-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lb-user-row {
  position: relative;
  overflow: hidden;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface, var(--bg));
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.lb-user-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(225, 29, 72, 0.09);
  border-color: rgba(225, 29, 72, 0.28);
}
.lb-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.lb-rank-badge {
  min-width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  background: var(--surface-soft);
  color: var(--ink);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.lb-rank-1 { background: rgba(245, 158, 11, 0.16); color: #d97706; border-color: rgba(245, 158, 11, 0.45); }
.lb-rank-2 { background: rgba(59, 130, 246, 0.14); color: #2563eb; border-color: rgba(59, 130, 246, 0.4); }
.lb-rank-3 { background: rgba(234, 88, 12, 0.14); color: #ea580c; border-color: rgba(234, 88, 12, 0.4); }
.lb-blood-drop-chip {
  position: relative;
  width: 38px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--crimson, #e11d48);
  padding-top: 6px;
}
.lb-chip-drop-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.lb-blood-drop-chip span {
  position: relative;
  z-index: 1;
}
.lb-user-info { min-width: 0; }
.lb-user-name {
  display: block;
  font-size: 0.98rem;
  line-height: 1.25;
}
.lb-user-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 3px;
}
.lb-user-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lb-row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* Floating Toast Notifications */
.toast-container {
  position: fixed;
  top: 76px;
  right: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
  pointer-events: none;
}
.toast-item {
  pointer-events: auto;
  padding: 11px 15px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast-item.show { opacity: 1; transform: translateY(0); }
.toast-item.toast-success { border-color: rgba(16, 185, 129, 0.5); background: #ecfdf5; color: #065f46; }
.toast-item.toast-error { border-color: rgba(225, 29, 72, 0.5); background: #fff1f2; color: #9f1239; }
.toast-item.toast-info { border-color: rgba(59, 130, 246, 0.45); background: #eff6ff; color: #1e40af; }

/* ==========================================================================
   Live Broadcast Ambulance, Hospital & Marquee Upgrades
   ========================================================================== */
.ticker-ambulance-svg {
  flex-shrink: 0;
  animation: ambulanceDrive 2.2s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(184, 229, 213, 0.45));
}
.ticker-ambulance-svg .ambulance-beacon {
  animation: beaconFlash 0.85s ease-in-out infinite;
}
.ticker-hospital-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--mint);
  background: rgba(20, 89, 77, 0.55);
  border: 1px solid rgba(184, 229, 213, 0.28);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-hospital-svg {
  color: #6EE7B7;
  animation: hospitalPulse 2.6s ease-in-out infinite;
}
.ticker-marquee-viewport {
  mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
}
.ticker-marquee-track.is-marquee {
  width: max-content;
  animation: tickerMarqueeScroll 34s linear infinite;
}
.ticker-marquee-viewport:hover .ticker-marquee-track.is-marquee,
.ticker-marquee-viewport:focus-within .ticker-marquee-track.is-marquee {
  animation-play-state: paused;
}
.ticker-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 7px;
}
.ticker-bg-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--vital-red), var(--dark-red));
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(240, 68, 82, 0.45);
}
.ticker-pill-hosp-icon {
  color: var(--mint);
  flex-shrink: 0;
}
.ticker-units-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(184, 229, 213, 0.16);
  color: var(--mint);
}
.ticker-pill-critical {
  border-color: rgba(240, 68, 82, 0.55);
  background: rgba(110, 18, 28, 0.55);
}

@keyframes ambulanceDrive {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-1.5px) translateX(2px); }
}
@keyframes beaconFlash {
  0%, 100% { fill: #F04452; opacity: 1; }
  50% { fill: #FBBF24; opacity: 0.45; }
}
@keyframes hospitalPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes tickerMarqueeScroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 900px) {
  .ticker-hospital-status { display: none; }
}

/* ==========================================================================
   Unified Searchable Hospital Combobox (Blood Request Page)
   ========================================================================== */
.hospital-combobox {
  position: relative;
  width: 100%;
}
.hospital-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.hospital-input-wrap:focus-within {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(20, 89, 77, 0.14);
}
.hospital-input-icon {
  margin-left: 12px;
  color: var(--emerald);
  flex-shrink: 0;
  pointer-events: none;
}
.hospital-input-wrap input[type="text"] {
  flex: 1;
  min-width: 0;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 10px 8px;
  font-size: 0.92rem;
  color: var(--ink);
  outline: none;
}
.hospital-clear-btn,
.hospital-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.hospital-clear-btn { font-size: 1.15rem; line-height: 1; }
.hospital-clear-btn:hover,
.hospital-toggle-btn:hover {
  color: var(--ink);
  background: var(--surface-soft);
}
.hospital-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  max-height: 250px;
  overflow-y: auto;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
}
.hospital-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  padding: 9px 11px;
  border: none;
  background: transparent;
  color: var(--ink);
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.14s ease, transform 0.12s ease;
}
.hospital-option:hover,
.hospital-option.is-highlighted {
  background: var(--emerald-soft);
}
.hospital-option.is-selected {
  background: rgba(20, 89, 77, 0.15);
  border-left: 3px solid var(--emerald);
}
.hospital-option-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hospital-option-main strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.hospital-option-main small {
  font-size: 0.75rem;
  color: var(--muted);
}
.hospital-option-area {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--emerald);
  background: var(--emerald-soft);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.hospital-option-empty {
  padding: 14px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--muted);
}
.hospital-selected-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid rgba(20, 89, 77, 0.25);
}
.hospital-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
}

/* ==========================================================================
   Appealing Click-Anywhere Date & Time Schedule Card
   ========================================================================== */
.schedule-card {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.06) 0%, rgba(20, 89, 77, 0.05) 100%);
  border: 1.5px solid rgba(20, 89, 77, 0.18);
  border-radius: 16px;
  padding: 14px 15px;
  display: grid;
  gap: 12px;
}
.schedule-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.schedule-card-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
}
.schedule-card-title svg {
  color: #0284C7;
}
.schedule-optional-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #0284C7;
  background: rgba(14, 165, 233, 0.12);
  padding: 3px 9px;
  border-radius: 999px;
}
.picker-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  min-height: 44px;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.14s ease;
}
.picker-field:hover {
  border-color: #0284C7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12);
  transform: translateY(-1px);
}
.picker-field:focus-within {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(20, 89, 77, 0.15);
}
.picker-icon {
  display: inline-flex;
  color: #0284C7;
  flex-shrink: 0;
  pointer-events: none;
}
.picker-chevron {
  display: inline-flex;
  color: var(--muted);
  flex-shrink: 0;
  pointer-events: none;
}
.picker-field input[type="date"],
.picker-field input[type="time"] {
  flex: 1;
  width: 100%;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 6px 2px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  position: relative;
}
/* Stretch native picker indicator across the whole input so tapping anywhere triggers it */
.picker-field input[type="date"]::-webkit-calendar-picker-indicator,
.picker-field input[type="time"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.quick-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.quick-chip {
  padding: 5px 11px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.quick-chip:hover {
  border-color: #0284C7;
  color: #0284C7;
  background: rgba(14, 165, 233, 0.08);
  transform: translateY(-1px);
}
.quick-chip.is-active {
  background: linear-gradient(135deg, var(--emerald), #0E7490);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 10px rgba(20, 89, 77, 0.24);
}
.datetime-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}
.datetime-summary-pill.is-scheduled {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(2, 132, 199, 0.35);
  color: #0369A1;
}
body.night-duty .datetime-summary-pill.is-scheduled {
  color: #7DD3FC;
}

/* ==========================================================================
   Secondary Pages UI Polish, Graphics, Animations & Refreshing Accents
   ========================================================================== */
.view-hero-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  animation: heroStripSlide 0.35s ease-out both;
}
.view-hero-strip::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--emerald);
}
.view-hero-request::before { background: linear-gradient(180deg, var(--vital-red), #0284C7); }
.view-hero-gold::before { background: linear-gradient(180deg, #F59E0B, #D97706); }
.view-hero-emerald::before { background: linear-gradient(180deg, var(--emerald), #10B981); }
.view-hero-sky::before { background: linear-gradient(180deg, #0284C7, var(--emerald)); }
.view-hero-crimson::before { background: linear-gradient(180deg, var(--vital-red), #9F1239); }

.view-hero-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--emerald-soft);
  color: var(--emerald);
  animation: iconFloat 3.4s ease-in-out infinite;
}
.view-hero-request .view-hero-icon { background: rgba(240, 68, 82, 0.12); color: var(--vital-red); }
.view-hero-gold .view-hero-icon { background: rgba(245, 158, 11, 0.15); color: #D97706; }
.view-hero-sky .view-hero-icon { background: rgba(14, 165, 233, 0.14); color: #0284C7; }
.view-hero-crimson .view-hero-icon { background: rgba(240, 68, 82, 0.14); color: var(--dark-red); }

.view-hero-copy {
  flex: 1;
  min-width: 0;
}
.view-hero-copy h3 {
  margin: 0 0 3px;
  font-size: 1.08rem;
  color: var(--ink);
}
.view-hero-copy p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.view-hero-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.accent-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.accent-pill-sky { background: rgba(14, 165, 233, 0.14); color: #0369A1; }
.accent-pill-red { background: rgba(240, 68, 82, 0.14); color: var(--dark-red); }
.accent-pill-amber { background: rgba(245, 158, 11, 0.16); color: #B45309; }
.accent-pill-emerald { background: var(--emerald-soft); color: var(--emerald); }
body.night-duty .accent-pill-sky { color: #7DD3FC; }
body.night-duty .accent-pill-amber { color: #FCD34D; }
body.night-duty .accent-pill-red { color: #FDA4AF; }

.panel-accent-crimson { border-top: 3px solid var(--vital-red); }
.panel-accent-amber { border-top: 3px solid #F59E0B; }
.panel-accent-emerald { border-top: 3px solid var(--emerald); }
.panel-accent-sky { border-top: 3px solid #0284C7; }

/* Stats cards refreshing accent bars */
#view-stats .stat-card:nth-child(1),
#view-admin .stat-card:nth-child(1) { border-top: 3px solid var(--vital-red); }
#view-stats .stat-card:nth-child(2),
#view-admin .stat-card:nth-child(2) { border-top: 3px solid var(--emerald); }
#view-stats .stat-card:nth-child(3),
#view-admin .stat-card:nth-child(3) { border-top: 3px solid #0284C7; }
#view-stats .stat-card:nth-child(4),
#view-admin .stat-card:nth-child(4) { border-top: 3px solid #F59E0B; }
#view-stats .stat-card:nth-child(5) { border-top: 3px solid #8B5CF6; }

#view-stats .bar-fill {
  background: linear-gradient(90deg, var(--emerald), #0284C7, #10B981);
  background-size: 200% 100%;
  animation: barShimmer 4s ease infinite;
}

@keyframes heroStripSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes barShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (max-width: 760px) {
  .view-hero-strip { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-ambulance-svg,
  .ticker-ambulance-svg .ambulance-beacon,
  .ticker-hospital-svg,
  .ticker-marquee-track.is-marquee,
  .view-hero-strip,
  .view-hero-icon,
  #view-stats .bar-fill {
    animation: none !important;
  }
}

/* ==========================================================================
   News Accident Emergency Broadcast & Hospital Help Desk Modal
   ========================================================================== */
.ticker-pill-news {
  background: rgba(180, 83, 9, 0.38);
  border-color: rgba(251, 191, 36, 0.55);
}
.ticker-news-chip {
  padding: 2px 7px;
  border-radius: 999px;
  background: #F59E0B;
  color: #1F1300;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.accident-modal-body {
  display: grid;
  gap: 14px;
}
.accident-headline-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(240, 68, 82, 0.08);
  border: 1px solid rgba(240, 68, 82, 0.25);
}
.accident-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.accident-headline-card h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.4;
}
.accident-news-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0284C7;
  text-decoration: none;
}
.accident-news-link:hover { text-decoration: underline; }
.accident-hospital-card {
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}
.accident-hosp-head h4 {
  margin: 4px 0 2px;
  font-size: 1.02rem;
}
.accident-phone-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.accident-phone-box {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.accident-phone-box:hover {
  transform: translateY(-2px);
  border-color: var(--emerald);
}
.accident-phone-box small {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}
.accident-phone-box strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
  color: var(--emerald);
}
.accident-phone-blood strong { color: var(--vital-red); }
.accident-phone-999 strong { color: #D97706; }

@media (max-width: 680px) {
  .accident-phone-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   RoktoBot AI Blood Assistant Widget
   ========================================================================== */
.roktobot-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 95;
}
.roktobot-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(184, 229, 213, 0.35);
  background: linear-gradient(135deg, var(--emerald-deep), var(--emerald));
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(9, 47, 43, 0.32);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.roktobot-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(9, 47, 43, 0.4);
}
.roktobot-drawer {
  position: absolute;
  right: 0;
  bottom: 58px;
  width: min(370px, calc(100vw - 28px));
  max-height: 500px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.roktobot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--emerald-deep), var(--emerald));
  color: #fff;
}
.roktobot-head strong { display: block; font-size: 0.94rem; }
.roktobot-head small { display: block; font-size: 0.72rem; opacity: 0.85; }
.roktobot-head .icon-pill { color: #fff; background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.25); }
.roktobot-head-actions { display: flex; align-items: center; gap: 6px; }
.roktobot-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px 12px;
  max-height: 86px;
  overflow-y: auto;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border);
}
.roktobot-messages {
  flex: 1;
  min-height: 190px;
  max-height: 280px;
  overflow-y: auto;
  padding: 12px;
  display: grid;
  gap: 8px;
}
.roktobot-msg {
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 0.83rem;
  line-height: 1.45;
  max-width: 92%;
}
.roktobot-msg.bot {
  justify-self: start;
  background: var(--surface-soft);
  color: var(--ink);
  border: 1px solid var(--border);
}
.roktobot-msg.user {
  justify-self: end;
  background: var(--emerald);
  color: #fff;
}
.roktobot-disclaimer {
  display: block;
  margin-top: 6px;
  font-size: 0.7rem;
  color: var(--muted);
  border-top: 1px dashed var(--border);
  padding-top: 4px;
}
.roktobot-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.roktobot-form input {
  flex: 1;
  min-width: 0;
}
@media (max-width: 760px) {
  .roktobot-widget {
    bottom: 76px;
    right: 12px;
  }
}

/* ==========================================================================
   Home Page: Donor Blood Request Selection (List inside Want to Donate)
   ========================================================================== */
.home-donate-subhead {
  margin-bottom: 8px;
}
.home-donate-title {
  display: block;
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--ink);
}
.home-donate-sub {
  font-size: 0.76rem;
  margin: 2px 0 0;
}
.home-donate-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.home-donate-filters select {
  flex: 1 1 130px;
  min-width: 120px;
  font-size: 0.8rem;
  padding: 7px 10px;
  min-height: 36px;
}
.home-donate-filters .toggle-chip {
  font-size: 0.78rem;
  padding: 6px 10px;
  min-height: 36px;
}
.home-donate-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 2px;
}
.home-req-row {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.home-req-row:hover {
  border-color: var(--emerald);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.home-req-row-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.home-req-row-info {
  flex: 1;
  min-width: 0;
}
.home-req-row-info strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.28;
  word-break: break-word;
}
.home-req-row-info small {
  display: block;
  font-size: 0.73rem;
  color: var(--muted);
  margin-top: 2px;
}
.home-req-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin-top: 5px;
}
.home-req-actions {
  display: flex;
  gap: 7px;
  padding-top: 2px;
}
.home-req-actions .btn {
  flex: 1;
  min-height: 34px;
  font-size: 0.78rem;
}
.home-req-empty {
  padding: 14px 10px;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
}

/* Request Details Modal */
.modal-card-wide {
  max-width: 560px;
  width: 100%;
}
.req-details-body {
  margin-top: 12px;
}
.req-details-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.req-details-badges {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.req-details-meta {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}
.req-details-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.req-details-actions .btn {
  flex: 1 1 160px;
}
.hsc-req-donate-btn {
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid rgba(11, 110, 92, 0.35);
  background: var(--emerald-soft);
  color: var(--emerald);
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.hsc-req-donate-btn:hover {
  background: var(--emerald);
  color: #fff;
}
