/* =====================================================
   BloodConnect — SHARED DESIGN SYSTEM
   ===================================================== */

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

/* ─── CSS Variables ─── */
:root {
  --crimson:        #c62828;
  --crimson-dark:   #8b0000;
  --crimson-deep:   #b71c1c;
  --crimson-light:  #ef5350;
  --crimson-pale:   #ffebee;
  --crimson-mid:    #d32f2f;

  --accent-gold:    #ffd54f;
  --accent-orange:  #e65100;
  --success:        #2e7d32;
  --success-light:  #e8f5e9;
  --warning:        #f57f17;
  --warning-light:  #fff8e1;
  --danger:         #c62828;
  --danger-light:   #ffebee;

  --neutral-900:    #1a1a1a;
  --neutral-800:    #2d2d2d;
  --neutral-700:    #444444;
  --neutral-600:    #666666;
  --neutral-400:    #999999;
  --neutral-200:    #eeeeee;
  --neutral-100:    #f8f8f8;
  --white:          #ffffff;

  --glass-bg:       rgba(255,255,255,0.12);
  --glass-border:   rgba(255,255,255,0.25);
  --glass-shadow:   0 8px 32px rgba(0,0,0,0.18);

  --card-shadow:    0 4px 24px rgba(198,40,40,0.12);
  --card-shadow-lg: 0 12px 40px rgba(198,40,40,0.18);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  --transition: 0.3s ease;
  --transition-slow: 0.6s ease;

  --font-base:    'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  background: #fafafa;
  color: var(--neutral-800);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height: 1.2; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-base); cursor: pointer; border: none; outline: none; }

/* ─── Navbar ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(140, 0, 0, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  transition: background var(--transition);
}

.navbar.scrolled { background: rgba(100,0,0,0.98); }

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar-brand img {
  height: 46px;
  width: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.3);
}

.navbar-brand-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.3px;
  line-height: 1.1;
}
.navbar-brand-text span { display: block; font-size: 0.65rem; font-weight: 400; opacity: 0.75; letter-spacing: 1.5px; text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.88);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.nav-cta {
  background: var(--white) !important;
  color: var(--crimson) !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-full) !important;
}
.nav-cta:hover { background: var(--accent-gold) !important; color: var(--crimson-dark) !important; transform: translateY(-1px); }

.navbar-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.navbar-hamburger span { width: 24px; height: 2px; background: white; border-radius: 2px; transition: all var(--transition); }

/* ─── Language Selector styles ─── */
.lang-selector-item {
  display: flex !important;
  align-items: center;
  padding: 0 10px;
}
#google_translate_element {
  display: inline-block;
  vertical-align: middle;
}
.goog-te-gadget {
  font-family: var(--font-base) !important;
  color: transparent !important; /* Hide "Powered by Google" text */
  font-size: 0 !important;
}
.goog-te-gadget .goog-te-combo {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.88) !important;
  border: none !important;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  font-family: var(--font-base) !important;
  outline: none !important;
  cursor: pointer !important;
  transition: all var(--transition) !important;
  margin: 0 !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.goog-te-gadget .goog-te-combo:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: white !important;
}
/* Optional: add a small custom arrow or indicator if needed, but simple is often better */
/* Hide the Google Translate branding/toolbar that appears at the top */
.goog-te-banner-frame.skiptranslate, .goog-te-gadget-icon { display: none !important; }
body { top: 0px !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background-color: transparent !important; box-shadow: none !important; }

/* ─── Page Header Banner ─── */
.page-header {
  background: linear-gradient(135deg, var(--crimson-dark) 0%, var(--crimson) 50%, var(--crimson-light) 100%);
  padding: 120px 40px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="40" fill="rgba(255,255,255,0.04)"/><circle cx="80" cy="80" r="60" fill="rgba(255,255,255,0.03)"/></svg>') center/cover;
}
.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  font-weight: 800;
  position: relative;
}
.page-header p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-top: 12px;
  position: relative;
}
.page-header .breadcrumb { position: relative; margin-bottom: 16px; }
.page-header .breadcrumb a { color: rgba(255,255,255,0.65); font-size: 0.875rem; }
.page-header .breadcrumb a:hover { color: white; }
.page-header .breadcrumb span { color: rgba(255,255,255,0.4); margin: 0 8px; font-size: 0.875rem; }

/* ─── Container ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 24px; }
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--crimson-dark);
  margin-bottom: 16px;
}
.section-subtitle { font-size: 1.1rem; color: var(--neutral-600); margin-bottom: 48px; max-width: 600px; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ─── Cards ─── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(198,40,40,0.08);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-lg); }

.card-grid { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ─── Glass Card ─── */
.glass-card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}

/* ─── Stat Cards ─── */
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  border-top: 4px solid var(--crimson);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition);
}
.stat-card:hover { transform: translateY(-4px); }
.stat-card .stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--crimson);
  line-height: 1;
}
.stat-card .stat-label { color: var(--neutral-600); font-size: 0.9rem; margin-top: 6px; font-weight: 500; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--crimson-mid), var(--crimson-dark));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(198,40,40,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(198,40,40,0.45); background: linear-gradient(135deg, var(--crimson-light), var(--crimson-mid)); }

.btn-outline {
  background: transparent;
  border-color: var(--crimson);
  color: var(--crimson);
}
.btn-outline:hover { background: var(--crimson); color: var(--white); transform: translateY(-2px); }

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

.btn-success { background: linear-gradient(135deg, #2e7d32, #1b5e20); color: white; box-shadow: 0 4px 15px rgba(46,125,50,0.35); }
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(46,125,50,0.45); }

.btn-warning { background: linear-gradient(135deg, #f57f17, #e65100); color: white; box-shadow: 0 4px 15px rgba(245,127,23,0.35); }
.btn-warning:hover { transform: translateY(-2px); }

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }
.btn-full { width: 100%; }

/* ─── Forms ─── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--neutral-700);
  margin-bottom: 6px;
}
.form-label span.required { color: var(--crimson); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-base);
  color: var(--neutral-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--crimson-light);
  box-shadow: 0 0 0 4px rgba(198,40,40,0.1);
}
.form-control::placeholder { color: var(--neutral-400); }
.form-control.error { border-color: var(--crimson); box-shadow: 0 0 0 4px rgba(198,40,40,0.1); }

.form-hint { font-size: 0.8rem; color: var(--neutral-600); margin-top: 4px; }
.form-error { font-size: 0.8rem; color: var(--crimson); margin-top: 4px; display: none; }
.form-error.show { display: block; }

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

/* ─── Auth Card ─── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--crimson-dark) 0%, var(--crimson) 60%, #ff6b6b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  animation: slideUp 0.5s ease both;
}
.auth-card-wide { max-width: 780px; }
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo img { height: 64px; width: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; }
.auth-logo h1 { font-size: 1.5rem; color: var(--crimson-dark); font-weight: 800; }
.auth-logo p { font-size: 0.875rem; color: var(--neutral-600); margin-top: 4px; }
.auth-divider { text-align: center; margin: 24px 0; color: var(--neutral-400); font-size: 0.875rem; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 35%; height: 1px; background: var(--neutral-200); }
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.875rem; color: var(--neutral-600); }
.auth-footer a { color: var(--crimson); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ─── Tables ─── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--card-shadow); }
table { width: 100%; border-collapse: collapse; background: var(--white); }
thead tr { background: linear-gradient(135deg, var(--crimson-mid), var(--crimson-dark)); color: var(--white); }
thead th { padding: 14px 16px; text-align: left; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; }
tbody tr { border-bottom: 1px solid rgba(198,40,40,0.06); transition: background var(--transition); }
tbody tr:hover { background: var(--crimson-pale); }
tbody td { padding: 14px 16px; font-size: 0.9rem; color: var(--neutral-700); }
tbody tr:last-child { border-bottom: none; }

/* ─── Badges ─── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-danger  { background: var(--danger-light); color: var(--danger); }
.badge-info    { background: #e3f2fd; color: #1565c0; }

/* Blood Group Badges */
.bg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
  flex-shrink: 0;
}

/* ─── Toast Notifications ─── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  min-width: 300px;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  border-left: 4px solid var(--crimson);
  animation: toastIn 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
  pointer-events: all;
  transition: opacity 0.3s ease;
}
.toast.success { border-left-color: var(--success); }
.toast.warning { border-left-color: var(--warning); }
.toast.info    { border-left-color: #1565c0; }
.toast-icon { font-size: 1.4rem; flex-shrink: 0; }
.toast-body { flex: 1; }
.toast-title { font-weight: 700; font-size: 0.9rem; color: var(--neutral-800); }
.toast-msg   { font-size: 0.82rem; color: var(--neutral-600); margin-top: 2px; }
.toast-close { background: none; border: none; font-size: 1.2rem; color: var(--neutral-400); cursor: pointer; line-height: 1; align-self: flex-start; }
.toast.fade-out { opacity: 0; }

/* ─── Modal ─── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  animation: slideUp 0.3s cubic-bezier(0.34,1.4,0.64,1) both;
  position: relative;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-header h3 { font-size: 1.4rem; font-weight: 700; color: var(--crimson-dark); }
.modal-close { background: none; border: none; font-size: 1.5rem; color: var(--neutral-400); cursor: pointer; transition: color var(--transition); }
.modal-close:hover { color: var(--crimson); }
.modal-hidden { display: none; }

/* ─── Alert Banners ─── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.alert-success { background: var(--success-light); border: 1px solid rgba(46,125,50,0.2); color: var(--success); }
.alert-warning { background: var(--warning-light); border: 1px solid rgba(245,127,23,0.2); color: var(--warning); }
.alert-danger  { background: var(--danger-light);  border: 1px solid rgba(198,40,40,0.2);  color: var(--danger); }
.alert-info    { background: #e3f2fd; border: 1px solid rgba(21,101,192,0.2); color: #1565c0; }
.alert-icon { font-size: 1.2rem; flex-shrink: 0; }

/* ─── Blood Group Selection Grid ─── */
.blood-group-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}
.blood-group-option {
  position: relative;
}
.blood-group-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.blood-group-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--neutral-600);
  cursor: pointer;
  transition: all var(--transition);
}
.blood-group-option input[type="radio"]:checked + label {
  background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
  border-color: var(--crimson-dark);
  color: white;
  box-shadow: 0 4px 12px rgba(198,40,40,0.3);
}
.blood-group-option label:hover { border-color: var(--crimson-light); color: var(--crimson); }

/* ─── Section Divider ─── */
.section-divider { height: 4px; background: linear-gradient(90deg, var(--crimson), var(--crimson-light), transparent); border: none; margin: 0; }

/* ─── Footer ─── */
.footer {
  background: linear-gradient(135deg, #1a0000 0%, var(--crimson-dark) 100%);
  color: rgba(255,255,255,0.8);
  padding: 60px 40px 32px;
  margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto 48px; }
.footer-brand h3 { font-family: var(--font-heading); font-size: 1.3rem; color: white; font-weight: 800; margin-bottom: 12px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.65); }
.footer-col h4 { color: white; font-weight: 700; font-size: 1rem; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,0.65); font-size: 0.875rem; margin-bottom: 8px; transition: color var(--transition); }
.footer-col a:hover { color: var(--accent-gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 0.825rem; color: rgba(255,255,255,0.4); max-width: 1200px; margin: 0 auto; }

/* ─── Animations ─── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes countUp { from { opacity: 0; } to { opacity: 1; } }

.animate-fade-in  { animation: fadeIn 0.6s ease both; }
.animate-slide-up { animation: slideUp 0.6s ease both; }
.animate-delay-1  { animation-delay: 0.1s; }
.animate-delay-2  { animation-delay: 0.2s; }
.animate-delay-3  { animation-delay: 0.3s; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ─── Status Indicators ─── */
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}
.status-dot.green  { background: #2e7d32; box-shadow: 0 0 0 3px rgba(46,125,50,0.2); }
.status-dot.orange { background: #f57f17; box-shadow: 0 0 0 3px rgba(245,127,23,0.2); }
.status-dot.red    { background: #c62828; box-shadow: 0 0 0 3px rgba(198,40,40,0.2); animation: pulse 1.5s infinite; }

/* ─── Search/Filter Bar ─── */
.filter-bar {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--card-shadow);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 32px;
}
.filter-bar .form-group { margin-bottom: 0; flex: 1; min-width: 180px; }

/* ─── Empty State ─── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--neutral-600);
}
.empty-state .empty-icon { font-size: 4rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 1.25rem; color: var(--neutral-700); margin-bottom: 8px; }
.empty-state p { font-size: 0.9rem; }

/* ─── Checkbox ─── */
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.checkbox-group input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--crimson); margin-top: 2px; flex-shrink: 0; }
.checkbox-group label { font-size: 0.875rem; color: var(--neutral-700); line-height: 1.5; }

/* ─── Loading Spinner ─── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* ─── Responsive Navbar ─── */
@media (max-width: 900px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: rgba(100,0,0,0.97); padding: 16px; gap: 4px; }
  .nav-links.open { display: flex; }
  .navbar-hamburger { display: flex; }
}
@media (max-width: 768px) {
  .page-header { padding: 100px 24px 48px; }
  .section { padding: 60px 16px; }
  .auth-card { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .modal { padding: 28px 20px; }
  .filter-bar { flex-direction: column; }
  .blood-group-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .blood-group-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
}

