/* ===== KYAMCH Blood Donation Network — style.css ===== */

:root {
  --red: #C8102E;
  --red-light: #E8192E;
  --red-dark: #8B0C1F;
  --red-glow: rgba(200,16,46,0.2);
  --gold: #F59E0B;
  --gold-light: #FEF3C7;
  --silver: #9CA3AF;
  --silver-light: #F3F4F6;
  --bronze: #B45309;
  --bronze-light: #FEF0E0;
  --cream: #FFF8F0;
  --white: #FFFFFF;
  --dark: #0F0A0A;
  --dark2: #1A1010;
  --gray: #6B7280;
  --gray-light: #F3F4F6;
  --border: rgba(200,16,46,0.15);
  --shadow: 0 20px 60px rgba(200,16,46,0.1);
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--cream); color: var(--dark); overflow-x: hidden; line-height: 1.6; transition: background 0.3s ease, color 0.3s ease; }

/* ══════════ Dark Mode ══════════ */
:root[data-theme="dark"] {
  --cream: #14100E;
  --white: #1E1815;
  --dark: #F2ECE6;
  --dark2: #FAF6F2;
  --gray: #A79E96;
  --gray-light: #241D19;
  --border: rgba(255,255,255,0.1);
  --shadow: 0 20px 60px rgba(0,0,0,0.4);
  --silver-light: #2A2420;
  --gold-light: #2E2410;
  --bronze-light: #2E1F10;
}
[data-theme="dark"] body { background: var(--cream); color: var(--dark); }
[data-theme="dark"] .navbar { background: rgba(20,16,14,0.85); }
[data-theme="dark"] .navbar.scrolled { background: rgba(20,16,14,0.97); }
[data-theme="dark"] .story-card,
[data-theme="dark"] .stories-empty,
[data-theme="dark"] .btn-sec,
[data-theme="dark"] .btn-share-story,
[data-theme="dark"] .stories-nav,
[data-theme="dark"] .info-tip,
[data-theme="dark"] .photo-preview { background: var(--white); border-color: var(--border); color: var(--dark); }
[data-theme="dark"] .info-tip { color: var(--gray); }
[data-theme="dark"] .story-avatar-photo { background: var(--gray-light); border-color: var(--white); }
[data-theme="dark"] .reg-progress-track { background: var(--gray-light); }
[data-theme="dark"] .reg-progress-num { background: var(--white); border-color: var(--gray-light); }
[data-theme="dark"] .elig-box { background: var(--gray-light); border-color: var(--border); color: var(--gray); }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea {
  background: var(--white); color: var(--dark); border-color: var(--border);
}
[data-theme="dark"] input::placeholder, [data-theme="dark"] textarea::placeholder { color: var(--gray); opacity: 0.7; }
[data-theme="dark"] .modal-box { background: var(--white); color: var(--dark); }
[data-theme="dark"] .modal-overlay { background: rgba(0,0,0,0.6); }
[data-theme="dark"] .donor-card, [data-theme="dark"] .search-box, [data-theme="dark"] .filter-select { background: var(--white); }
[data-theme="dark"] .top-donor-card, [data-theme="dark"] .reg-form-card, [data-theme="dark"] .orbit-dot { background: var(--white); }
[data-theme="dark"] .reg-progress-num { border-color: var(--gray-light); }
[data-theme="dark"] img { filter: brightness(0.92); }

/* ── Background ── */
.bg-pulse { position: fixed; top: -50vh; right: -30vw; width: 80vw; height: 80vh; background: radial-gradient(ellipse, rgba(200,16,46,0.06) 0%, transparent 70%); pointer-events: none; z-index: 0; animation: bgFloat 8s ease-in-out infinite; }
@keyframes bgFloat { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-5%,5%) scale(1.05)} }

.floating-drops { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.fdrop { position: absolute; font-size: 1.2rem; opacity: 0.06; animation: floatUp linear infinite; }
@keyframes floatUp { from{transform:translateY(100vh) rotate(0deg);opacity:0} 10%{opacity:0.06} 90%{opacity:0.06} to{transform:translateY(-10vh) rotate(360deg);opacity:0} }

/* ── Navbar ── */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 0 2rem; background: rgba(255,248,240,0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); transition: all 0.3s ease; }
.navbar.scrolled { background: rgba(255,248,240,0.97); box-shadow: 0 4px 30px rgba(200,16,46,0.08); }
.nav-inner { max-width: 1300px; margin: 0 auto; display: flex; align-items: center; height: 70px; gap: 2rem; }
.nav-logo { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.logo-drop { font-size: 2rem; animation: dropPulse 2s ease-in-out infinite; }
@keyframes dropPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.15)} }
.logo-title { display: block; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--red); }
.logo-sub { display: block; font-size: 0.65rem; color: var(--gray); line-height: 1.2; }
.nav-links { display: flex; list-style: none; gap: 0.25rem; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 500; padding: 0.4rem 0.9rem; border-radius: 8px; font-size: 0.9rem; transition: all 0.2s; }
.nav-links a:hover { background: var(--red-glow); color: var(--red); }
.nav-actions { display: flex; gap: 0.75rem; }
.btn-outline { padding: 0.45rem 1.2rem; border: 2px solid var(--red); background: transparent; color: var(--red); border-radius: 8px; font-family: var(--font-body); font-weight: 600; font-size: 0.88rem; cursor: pointer; transition: all 0.2s; }
.btn-outline:hover { background: var(--red); color: white; }
.btn-primary { padding: 0.45rem 1.2rem; border: none; background: var(--red); color: white; border-radius: 8px; font-family: var(--font-body); font-weight: 600; font-size: 0.88rem; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.btn-primary:hover { background: var(--red-light); transform: translateY(-1px); box-shadow: 0 6px 20px var(--red-glow); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; margin-left: auto; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: 0.3s; }
.mobile-menu { display: none; flex-direction: column; gap: 0.5rem; padding: 1rem 0; border-top: 1px solid var(--border); }
.mobile-menu.open { display: flex; }
.mobile-menu a { text-decoration: none; color: var(--dark); font-weight: 500; padding: 0.6rem 0; }
.w-full { width: 100%; }

/* ── Hero ── */
.hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; max-width: 1300px; margin: 0 auto; padding: 100px 2rem 4rem; gap: 4rem; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(200,16,46,0.08); border: 1px solid var(--border); border-radius: 100px; padding: 0.35rem 1rem; font-size: 0.8rem; font-weight: 600; color: var(--red); margin-bottom: 1.5rem; }
.pulse-dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(200,16,46,0.6)} 70%{box-shadow:0 0 0 8px rgba(200,16,46,0)} 100%{box-shadow:0 0 0 0 rgba(200,16,46,0)} }
.hero-title { font-family: var(--font-display); font-size: clamp(3rem,6vw,5rem); line-height: 1.05; font-weight: 900; margin-bottom: 1.25rem; animation: heroIn 0.8s ease forwards; }
.text-red { color: var(--red); }
@keyframes heroIn { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.hero-desc { color: var(--gray); font-size: 1.05rem; max-width: 480px; margin-bottom: 2rem; animation: heroIn 0.8s 0.1s ease both; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; animation: heroIn 0.8s 0.2s ease both; }
.btn-hero-primary { padding: 0.85rem 2rem; background: var(--red); color: white; border: none; border-radius: 12px; font-family: var(--font-body); font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.25s; box-shadow: 0 8px 30px rgba(200,16,46,0.3); }
.btn-hero-primary:hover { background: var(--red-light); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(200,16,46,0.4); }
.btn-hero-outline { padding: 0.85rem 2rem; background: transparent; color: var(--red); border: 2px solid var(--red); border-radius: 12px; font-family: var(--font-body); font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.25s; }
.btn-hero-outline:hover { background: var(--red-glow); }
.hero-stats { display: flex; align-items: center; gap: 1.5rem; animation: heroIn 0.8s 0.3s ease both; }
.hstat { display: flex; flex-direction: column; }
.hnum { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--red); }
.hstat span:last-child { font-size: 0.78rem; color: var(--gray); font-weight: 500; }
.hstat-div { width: 1px; height: 40px; background: var(--border); }
.hero-visual { display: flex; align-items: center; justify-content: center; position: relative; height: 450px; animation: heroIn 0.8s 0.15s ease both; }
.blood-drop-big { width: 200px; height: 240px; background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; display: flex; align-items: center; justify-content: center; box-shadow: 0 30px 80px rgba(200,16,46,0.4), 0 0 0 20px rgba(200,16,46,0.08); animation: dropFloat 3s ease-in-out infinite; position: relative; z-index: 2; }
@keyframes dropFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-15px)} }
.drop-inner { text-align: center; color: white; }
.drop-inner span { font-size: 3rem; }
.drop-inner p { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.drop-inner small { font-size: 0.7rem; opacity: 0.8; }
.orbit-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(200,16,46,0.2); animation: orbitSpin linear infinite; }
.ring1 { width: 340px; height: 340px; animation-duration: 20s; }
@keyframes orbitSpin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
.orbit-dot { position: absolute; width: 44px; height: 44px; background: white; border: 2px solid var(--red); color: var(--red); font-weight: 700; font-size: 0.8rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(200,16,46,0.15); animation: counterSpin linear 20s infinite; top: 50%; left: 50%; transform: rotate(var(--angle)) translateX(170px) rotate(calc(-1 * var(--angle))); }
@keyframes counterSpin { from{transform:rotate(var(--angle)) translateX(170px) rotate(calc(-1 * var(--angle)))} to{transform:rotate(calc(var(--angle) + 360deg)) translateX(170px) rotate(calc(-1 * (var(--angle) + 360deg)))} }

/* ── TOP DONORS SECTION ── */
.top-donors-section { padding: 5rem 2rem; background: linear-gradient(180deg, var(--cream) 0%, #fff5f5 100%); position: relative; z-index: 1; }
.section-badge { display: inline-block; background: linear-gradient(135deg, #F59E0B, #D97706); color: white; font-size: 0.78rem; font-weight: 700; padding: 0.3rem 1rem; border-radius: 100px; margin-bottom: 0.75rem; letter-spacing: 0.05em; }
.top-donors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 2rem; }

.top-donor-card { background: white; border-radius: 18px; padding: 1.75rem 1.5rem; text-align: center; position: relative; overflow: hidden; transition: all 0.3s; border: 2px solid transparent; }
.top-donor-card:hover { transform: translateY(-6px); }
.top-donor-card.rank-1 { border-color: var(--gold); background: linear-gradient(160deg, #fffbeb 0%, #fff 60%); box-shadow: 0 8px 40px rgba(245,158,11,0.2); }
.top-donor-card.rank-2 { border-color: var(--silver); background: linear-gradient(160deg, #f9fafb 0%, #fff 60%); box-shadow: 0 8px 30px rgba(156,163,175,0.15); }
.top-donor-card.rank-3 { border-color: #CD7F32; background: linear-gradient(160deg, #fdf4ea 0%, #fff 60%); box-shadow: 0 8px 30px rgba(180,83,9,0.15); }
.top-donor-card.rank-other { border-color: var(--border); box-shadow: 0 4px 20px rgba(200,16,46,0.06); }

.rank-badge { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.rank-1 .rank-badge { background: var(--gold-light); }
.rank-2 .rank-badge { background: var(--silver-light); }
.rank-3 .rank-badge { background: var(--bronze-light); }
.rank-other .rank-badge { background: rgba(200,16,46,0.08); font-size: 0.85rem; font-family: var(--font-mono); font-weight: 700; color: var(--red); }

.top-avatar { width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: white; margin: 0 auto 0.85rem; }
.rank-1 .top-avatar { background: linear-gradient(135deg, #F59E0B, #D97706); box-shadow: 0 6px 20px rgba(245,158,11,0.4); }
.rank-2 .top-avatar { background: linear-gradient(135deg, #9CA3AF, #6B7280); box-shadow: 0 6px 20px rgba(156,163,175,0.4); }
.rank-3 .top-avatar { background: linear-gradient(135deg, #CD7F32, #B45309); box-shadow: 0 6px 20px rgba(180,83,9,0.4); }
.rank-other .top-avatar { background: linear-gradient(135deg, var(--red), var(--red-dark)); box-shadow: 0 6px 20px rgba(200,16,46,0.3); }

.top-donor-name { font-weight: 700; font-size: 1rem; margin-bottom: 0.2rem; }
.top-donor-meta { font-size: 0.78rem; color: var(--gray); margin-bottom: 0.85rem; }
.top-donor-bg { display: inline-block; font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem; color: var(--red); background: rgba(200,16,46,0.08); border: 1.5px solid rgba(200,16,46,0.2); border-radius: 8px; padding: 0.2rem 0.6rem; margin-bottom: 0.85rem; }
.top-donor-count { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.rank-1 .top-donor-count { color: var(--gold); }
.rank-2 .top-donor-count { color: var(--silver); }
.rank-3 .top-donor-count { color: var(--bronze); }
.rank-other .top-donor-count { color: var(--red); }
.top-donor-count-label { font-size: 0.72rem; color: var(--gray); margin-top: 0.2rem; }
.top-contact-btn { margin-top: 1rem; width: 100%; padding: 0.55rem; border: 2px solid var(--border); background: transparent; border-radius: 8px; font-family: var(--font-body); font-weight: 600; font-size: 0.82rem; color: var(--dark); cursor: pointer; transition: all 0.2s; }
.top-contact-btn:hover { border-color: var(--red); color: var(--red); background: rgba(200,16,46,0.04); }

/* ── Shared section styles ── */
.container { max-width: 1300px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-family: var(--font-display); font-size: clamp(2rem,4vw,2.8rem); font-weight: 700; margin-bottom: 0.5rem; }
.section-header p { color: var(--gray); font-size: 1rem; }
.section-header.light h2 { color: white; }
.section-header.light p { color: rgba(255,255,255,0.7); }

/* ── Blood Group Filter ── */
.quick-filter { padding: 5rem 2rem; background: var(--white); position: relative; z-index: 1; }
.blood-group-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 2rem; }
.bg-btn { padding: 0.6rem 1.5rem; border: 2px solid var(--border); background: transparent; color: var(--dark); border-radius: 100px; font-family: var(--font-mono); font-weight: 500; font-size: 0.9rem; cursor: pointer; transition: all 0.2s; }
.bg-btn:hover, .bg-btn.active { background: var(--red); border-color: var(--red); color: white; transform: translateY(-2px); box-shadow: 0 6px 20px var(--red-glow); }

/* ── Filter Bar ── */
.filter-bar { display: flex; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.search-box { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 0.5rem; background: var(--cream); border: 2px solid var(--border); border-radius: 10px; padding: 0 1rem; color: var(--gray); transition: border-color 0.2s; }
.search-box:focus-within { border-color: var(--red); }
.search-box input { flex: 1; border: none; background: transparent; font-family: var(--font-body); font-size: 0.9rem; color: var(--dark); padding: 0.7rem 0; outline: none; }
.filter-select { padding: 0.7rem 1rem; border: 2px solid var(--border); border-radius: 10px; font-family: var(--font-body); font-size: 0.9rem; color: var(--dark); background: var(--cream); cursor: pointer; outline: none; transition: border-color 0.2s; }
.filter-select:focus { border-color: var(--red); }

/* ── "Sort by Nearest" — flagship feature banner ──────────────────────────── */
.nearest-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: linear-gradient(135deg, #FFF5F5 0%, #FFEBEE 100%);
  border: 1.5px solid #FFD3D9;
  border-radius: 18px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  transition: all 0.35s ease;
}
.nearest-banner.on {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-light) 100%);
  border-color: transparent;
  box-shadow: 0 10px 34px rgba(200,16,46,0.28);
  animation: nearestGlow 2.6s ease-in-out infinite;
}
@keyframes nearestGlow {
  0%, 100% { box-shadow: 0 10px 34px rgba(200,16,46,0.28); }
  50%      { box-shadow: 0 10px 44px rgba(200,16,46,0.45); }
}
.nearest-banner-left { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.nearest-radar { position: relative; width: 42px; height: 42px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.nearest-radar-icon { position: relative; z-index: 2; font-size: 1.35rem; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15)); }
.nearest-radar-ping {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(200,16,46,0.25);
  animation: nearestPulse 2.2s ease-out infinite;
}
.nearest-banner.on .nearest-radar-ping { background: rgba(255,255,255,0.35); }
@keyframes nearestPulse {
  0%   { transform: scale(0.5); opacity: 0.9; }
  70%  { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}
.nearest-banner-text { display: flex; flex-direction: column; min-width: 0; }
.nearest-banner-text strong { font-size: 0.95rem; color: var(--dark); font-family: var(--font-body); transition: color 0.3s; }
.nearest-banner-text span { font-size: 0.76rem; color: var(--gray); margin-top: 2px; transition: color 0.3s; }
.nearest-banner.on .nearest-banner-text strong,
.nearest-banner.on .nearest-banner-text span { color: white; }
.nearest-banner.on .nearest-banner-text span { color: rgba(255,255,255,0.85); }

.btn-nearest {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  border: none; border-radius: 999px;
  background: var(--red); color: white;
  font-family: var(--font-body); font-weight: 700; font-size: 0.85rem;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(200,16,46,0.3);
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
}
.btn-nearest:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(200,16,46,0.4); }
.btn-nearest-icon { transition: transform 0.3s; }
.btn-nearest:active .btn-nearest-icon { transform: scale(0.85); }
.nearest-banner.on .btn-nearest {
  background: white; color: var(--red);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
.nearest-banner.loading .btn-nearest { opacity: 0.75; cursor: wait; pointer-events: none; }
.nearest-banner.loading .btn-nearest-icon { animation: nearestSpin 0.9s linear infinite; }
@keyframes nearestSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.distance-tag { background: rgba(22,163,74,0.08); color: #16a34a; }

/* ── Donor Cards ── */
.donors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.donor-card { background: var(--cream); border: 1.5px solid var(--border); border-radius: 16px; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; cursor: pointer; transition: all 0.25s; position: relative; overflow: hidden; }
.donor-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--red); transform: scaleX(0); transition: transform 0.3s; transform-origin: left; }
.donor-card:hover::before { transform: scaleX(1); }
.donor-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(200,16,46,0.1); border-color: rgba(200,16,46,0.3); }
.donor-card-header { display: flex; align-items: center; gap: 1rem; }
.donor-avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--red-dark)); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: white; flex-shrink: 0; }
.donor-avatar.teacher-avatar { background: linear-gradient(135deg, #1d4ed8, #1e3a8a); }
.donor-avatar.staff-avatar { background: linear-gradient(135deg, #047857, #065f46); }
.donor-info { flex: 1; min-width: 0; }
.donor-name { font-weight: 600; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.donor-id { font-size: 0.78rem; color: var(--gray); font-family: var(--font-mono); }
.donor-bg-badge { font-family: var(--font-mono); font-weight: 700; font-size: 1rem; color: var(--red); background: rgba(200,16,46,0.08); border: 1.5px solid rgba(200,16,46,0.2); border-radius: 8px; padding: 0.3rem 0.6rem; min-width: 42px; text-align: center; }
.donor-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag { font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 6px; background: rgba(200,16,46,0.06); color: var(--red-dark); border: 1px solid rgba(200,16,46,0.12); }
.tag.program { background: #e8f4fd; color: #1a6fa8; border-color: #bee3f8; }
.tag.teacher-tag { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.tag.staff-tag { background: #f0fdf4; color: #047857; border-color: #a7f3d0; }
.tag.district-tag { background: #fdf4ff; color: #7e22ce; border-color: #e9d5ff; }
.status-row { display: flex; align-items: center; justify-content: space-between; }
.status-badge { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; font-weight: 600; padding: 0.25rem 0.7rem; border-radius: 100px; }
.status-badge.available { background: #dcfce7; color: #16a34a; }
.status-badge.unavailable { background: #fee2e2; color: #dc2626; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; }
.status-badge.available .status-dot { background: #16a34a; animation: pulse 1.5s infinite; }
.status-badge.unavailable .status-dot { background: #dc2626; }
.last-donation { font-size: 0.75rem; color: var(--gray); }
.donor-actions { display: flex; gap: 0.6rem; margin-top: 0.25rem; }
.btn-contact { flex: 1; padding: 0.55rem 1rem; background: var(--red); color: white; border: none; border-radius: 8px; font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 0.35rem; }
.btn-contact:hover { background: var(--red-light); transform: scale(1.02); }
.btn-details { padding: 0.55rem 0.75rem; background: transparent; color: var(--gray); border: 1.5px solid var(--border); border-radius: 8px; font-family: var(--font-body); font-size: 0.8rem; cursor: pointer; transition: all 0.2s; }
.btn-details:hover { border-color: var(--red); color: var(--red); }
.no-results { text-align: center; padding: 3rem; color: var(--gray); font-size: 1rem; grid-column: 1/-1; }
.hidden { display: none !important; }

/* ── Stats ── */
.stats-section { padding: 5rem 2rem; background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%); position: relative; overflow: hidden; z-index: 1; }
.stats-section::before { content: ''; position: absolute; top: -40%; right: -20%; width: 70%; height: 80%; background: radial-gradient(ellipse, rgba(200,16,46,0.15) 0%, transparent 70%); pointer-events: none; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.stat-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 2rem 1.5rem; text-align: center; transition: all 0.3s; }
.stat-card:hover { background: rgba(255,255,255,0.07); transform: translateY(-4px); }
.stat-card.highlight { background: rgba(200,16,46,0.12); border-color: rgba(200,16,46,0.3); }
.stat-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.stat-num { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: white; line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-weight: 600; color: rgba(255,255,255,0.85); font-size: 1rem; }
.stat-sub { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-top: 0.25rem; }
.distribution { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 2rem; }
.distribution h3 { font-family: var(--font-display); color: white; font-size: 1.4rem; margin-bottom: 1.5rem; }
.dist-bars { display: flex; flex-direction: column; gap: 0.75rem; }
.dist-row { display: grid; grid-template-columns: 50px 1fr 40px; align-items: center; gap: 1rem; }
.dist-label { font-family: var(--font-mono); color: var(--red); font-weight: 700; font-size: 0.85rem; }
.dist-bar-track { background: rgba(255,255,255,0.07); border-radius: 100px; height: 8px; overflow: hidden; }
.dist-bar-fill { height: 100%; background: linear-gradient(90deg, var(--red), #FF4D6B); border-radius: 100px; width: 0; transition: width 1.5s ease; }
.dist-count { font-size: 0.8rem; color: rgba(255,255,255,0.5); text-align: right; }

/* ── Emergency Banner ── */
.emergency-banner { background: linear-gradient(135deg, var(--red-dark), var(--red)); padding: 3rem 2rem; position: relative; z-index: 1; }
.em-content { max-width: 1000px; margin: 0 auto; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.em-icon { font-size: 3rem; animation: shake 2s infinite; }
@keyframes shake { 0%,100%{transform:rotate(0)} 10%{transform:rotate(-10deg)} 20%{transform:rotate(10deg)} 30%{transform:rotate(0)} }
.em-content h3 { font-family: var(--font-display); font-size: 1.6rem; color: white; margin-bottom: 0.25rem; }
.em-content p { color: rgba(255,255,255,0.8); }
.em-content > div { flex: 1; }
.btn-emergency { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 2rem; background: white; color: var(--red); font-family: var(--font-body); font-weight: 700; font-size: 1rem; border-radius: 12px; cursor: pointer; border: none; transition: all 0.25s; white-space: nowrap; box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.btn-emergency:hover { transform: scale(1.05); box-shadow: 0 12px 40px rgba(0,0,0,0.25); }

/* ── Register Section ── */
/* ── Stories / Testimonials carousel ──────────────────────────────────────── */
.stories-section { padding: 5.5rem 2rem; background: linear-gradient(180deg, white 0%, #FFF8F8 100%); position: relative; }
.stories-head { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.stories-head h2 { font-family: var(--font-display); font-size: 2.2rem; color: var(--dark); margin-bottom: 0.6rem; }
.stories-head p { color: var(--gray); font-size: 1rem; }

.stories-carousel-wrap { display: flex; align-items: center; gap: 1rem; max-width: 780px; margin: 0 auto; }
.stories-track { flex: 1; display: flex; overflow: hidden; border-radius: 22px; }
.stories-track > .story-card { min-width: 100%; box-sizing: border-box; transition: none; }
#storiesTrack { transition: transform 0.5s cubic-bezier(.4,0,.2,1); }

.story-card {
  background: white; border: 1.5px solid #FFE1E5; border-radius: 22px;
  padding: 2.5rem 2.25rem 2rem; text-align: center;
  box-shadow: 0 12px 40px rgba(200,16,46,0.08);
  min-height: 220px; display: flex; flex-direction: column; justify-content: center;
}
.story-quote-mark { font-family: var(--font-display); font-size: 3.5rem; line-height: 1; color: var(--red); opacity: 0.18; margin-bottom: -0.5rem; }
.story-content { font-size: 1.02rem; color: #374151; line-height: 1.7; font-style: italic; margin-bottom: 1.5rem; }
.story-author { display: flex; align-items: center; justify-content: center; gap: 0.75rem; }
.story-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--red-light)); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.story-avatar-photo { object-fit: cover; background: #eee; border: 2px solid white; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.story-author div:last-child { text-align: left; display: flex; flex-direction: column; }
.story-author strong { font-size: 0.9rem; color: var(--dark); }
.story-author span { font-size: 0.76rem; color: var(--gray); }

.stories-empty { width: 100%; min-height: 160px; display: flex; align-items: center; justify-content: center; color: var(--gray); font-size: 0.95rem; background: white; border: 1.5px dashed #FFD3D9; border-radius: 22px; }

/* ── Photo upload (Share Your Story modal) ────────────────────────────────── */
.photo-upload-row { display: flex; align-items: center; gap: 1rem; }
.photo-preview {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background-color: #f3f4f6; background-size: cover; background-position: center;
  border: 2px dashed #ddd; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #bbb;
}
.photo-upload-btn {
  display: inline-block; padding: 0.5rem 1.1rem; border: 2px solid var(--red); border-radius: 10px;
  color: var(--red); font-family: var(--font-body); font-weight: 700; font-size: 0.82rem;
  cursor: pointer; transition: all 0.2s;
}
.photo-upload-btn:hover { background: var(--red); color: white; }

.stories-nav {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  background: white; border: 1.5px solid #FFE1E5; color: var(--red);
  font-size: 1.5rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; box-shadow: 0 4px 14px rgba(200,16,46,0.1);
}
.stories-nav:hover { background: var(--red); color: white; transform: scale(1.08); }

.stories-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.story-dot { width: 8px; height: 8px; border-radius: 50%; background: #FFD3D9; border: none; cursor: pointer; padding: 0; transition: all 0.25s; }
.story-dot.active { background: var(--red); width: 22px; border-radius: 4px; }

.stories-cta { text-align: center; margin-top: 2.5rem; }
.btn-share-story {
  padding: 0.85rem 1.8rem; border-radius: 999px; border: 2px solid var(--red);
  background: white; color: var(--red); font-family: var(--font-body); font-weight: 700;
  font-size: 0.9rem; cursor: pointer; transition: all 0.25s;
}
.btn-share-story:hover { background: var(--red); color: white; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,16,46,0.25); }

@media (max-width: 640px) {
  .stories-carousel-wrap { gap: 0.5rem; }
  .story-card { padding: 2rem 1.4rem 1.6rem; }
  .stories-nav { width: 36px; height: 36px; font-size: 1.3rem; }
}

.register-section { padding: 6rem 2rem; background: var(--cream); position: relative; z-index: 1; }
.reg-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.reg-info h2 { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.reg-info p { color: var(--gray); margin-bottom: 1.5rem; }
.reg-perks { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.5rem; }
.reg-perks li { font-weight: 500; font-size: 0.95rem; }
.privacy-note { background: rgba(200,16,46,0.06); border: 1px solid var(--border); border-radius: 10px; padding: 0.85rem 1rem; font-size: 0.85rem; color: var(--dark); }
.reg-form-card { background: white; border: 1.5px solid var(--border); border-radius: 20px; padding: 2.5rem; box-shadow: var(--shadow); }
.reg-form-card h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 1.5rem; }

/* Role Tabs */
.role-tabs { display: flex; gap: 0.5rem; margin-top: 0.4rem; margin-bottom: 0.25rem; }
.role-tab { flex: 1; padding: 0.55rem 0.75rem; border: 2px solid var(--border); background: transparent; color: var(--gray); border-radius: 10px; font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; }
.role-tab:hover { border-color: var(--red); color: var(--red); }
.role-tab.active { background: var(--red); border-color: var(--red); color: white; }

.privacy-tag { font-size: 0.72rem; font-weight: 600; background: rgba(200,16,46,0.08); color: var(--red); border-radius: 6px; padding: 0.1rem 0.4rem; margin-left: 0.3rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group label { font-weight: 600; font-size: 0.85rem; color: var(--dark); }
.form-group input, .form-group select { padding: 0.7rem 1rem; border: 2px solid #e5e7eb; border-radius: 10px; font-family: var(--font-body); font-size: 0.9rem; color: var(--dark); background: var(--cream); outline: none; transition: border-color 0.2s; }

/* ── Registration form shared rules (used by index.html AND account.php) ──── */
.field-hint { display: block; font-size: 0.72rem; color: var(--gray); margin-top: 0.3rem; line-height: 1.4; }
.pw-wrap { position: relative; display: flex; align-items: center; }
.pw-wrap input { flex: 1; padding-right: 2.8rem !important; }
.pw-eye { position: absolute; right: .75rem; background: none; border: none; cursor: pointer; color: #9ca3af; padding: .3rem; display: flex; align-items: center; justify-content: center; border-radius: 4px; transition: color .2s; }
.pw-eye:hover { color: #C8102E; }
.gender-toggle { display: flex; gap: .5rem; }
.gender-btn { flex: 1; padding: .6rem 1rem; border: 2px solid var(--border); background: #f9fafb; border-radius: 10px; font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .2s; }
.gender-btn.active { background: var(--red); color: white; border-color: var(--red); }
.subfield-group { animation: slideDown .25s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.sub-box { background: rgba(200,16,46,.03); border: 1.5px solid rgba(200,16,46,.12); border-radius: 12px; padding: 1rem 1rem .5rem; margin-bottom: .75rem; }
.sub-box-title { font-size: .75rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem; }
.btn-contact-warn { background: rgba(217,119,6,.12) !important; color: #92400E !important; border-color: #FDE68A !important; }
.btn-contact-warn:hover { background: rgba(217,119,6,.22) !important; }
[data-theme="dark"] .gender-btn { background: var(--gray-light); border-color: var(--border); color: var(--dark); }
[data-theme="dark"] .sub-box { background: rgba(200,16,46,.08); }
.form-group input:focus, .form-group select:focus { border-color: var(--red); }
/* ── Honeypot — hidden from real users, left reachable to simple bots ────── */
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }

.form-check { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 1.25rem; }
.form-check input { margin-top: 3px; accent-color: var(--red); flex-shrink: 0; }
.form-check label { font-size: 0.82rem; color: var(--gray); }
.btn-submit { width: 100%; padding: 0.85rem; background: var(--red); color: white; border: none; border-radius: 12px; font-family: var(--font-body); font-weight: 700; font-size: 1rem; cursor: pointer; transition: all 0.25s; box-shadow: 0 8px 30px rgba(200,16,46,0.25); position: relative; overflow: hidden; }
.btn-submit:hover { background: var(--red-light); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(200,16,46,0.35); }

/* ── Realistic button progress bar (1% → 100%) ────────────────────────────── */
.btn-progress-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: rgba(255,255,255,0.22);
  transition: width 0.15s ease-out;
  z-index: 0;
}
.btn-progress-label {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.btn-progress-label b { font-variant-numeric: tabular-nums; min-width: 2.6em; display: inline-block; text-align: left; }
.btn-submit.btn-progress-active { cursor: wait; }
.btn-submit.btn-progress-active:hover { transform: none; }

/* ── Registration: animated step progress bar ────────────────────────────── */
.reg-progress { position: relative; margin-bottom: 2rem; padding: 0 0.5rem; }
.reg-progress-track { position: absolute; top: 17px; left: 16.6%; right: 16.6%; height: 4px; background: #eee; border-radius: 4px; z-index: 0; overflow: hidden; }
.reg-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--red), var(--red-light)); border-radius: 4px; transition: width 0.45s cubic-bezier(.4,0,.2,1); }
.reg-progress-steps { display: flex; justify-content: space-between; position: relative; z-index: 1; }
.reg-progress-step { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; flex: 1; }
.reg-progress-num { width: 34px; height: 34px; border-radius: 50%; background: white; border: 2.5px solid #e5e5e5; color: var(--gray); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; transition: all 0.3s cubic-bezier(.4,0,.2,1); }
.reg-progress-step.active .reg-progress-num { border-color: var(--red); background: var(--red); color: white; box-shadow: 0 0 0 6px rgba(200,16,46,0.14); transform: scale(1.08); }
.reg-progress-step.done .reg-progress-num { border-color: #16a34a; background: #16a34a; color: white; }
.reg-progress-label { font-size: 0.7rem; color: var(--gray); font-weight: 600; text-align: center; transition: color 0.3s; }
.reg-progress-step.active .reg-progress-label { color: var(--red); }
.reg-progress-step.done .reg-progress-label { color: #16a34a; }
.reg-step { animation: regStepIn 0.3s ease; }
@keyframes regStepIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }

/* ── Info icon + toggle tooltip ("micro-copy on demand") ─────────────────── */
.info-icon { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: rgba(200,16,46,0.08); color: var(--red); border: none; font-size: 0.68rem; font-weight: 700; cursor: pointer; vertical-align: middle; padding: 0; line-height: 1; transition: all 0.2s; }
.info-icon:hover, .info-icon.open { background: var(--red); color: white; }
.info-tip { display: none; font-size: 0.76rem; color: #444; background: #fafafa; border-left: 3px solid var(--red); border-radius: 0 8px 8px 0; padding: 0.55rem 0.75rem; margin-top: 0.4rem; line-height: 1.5; animation: infoTipIn 0.22s ease; }
.info-tip.open { display: block; }
@keyframes infoTipIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ── Live eligibility feedback box ────────────────────────────────────────── */
.elig-box { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.78rem; margin-top: 0.5rem; padding: 0.6rem 0.8rem; border-radius: 10px; line-height: 1.45; transition: all 0.25s; background: #F3F4F6; color: #4B5563; border: 1.5px solid #E5E7EB; }
.elig-box .elig-icon { flex-shrink: 0; font-size: 0.95rem; }
.elig-box.elig-wait { background: #FEF3C7; border-color: #FDE68A; color: #92400E; }
.elig-box.elig-ok { background: #DCFCE7; border-color: #86efac; color: #15803D; }
.elig-box.elig-error { background: #FEE2E2; border-color: #fca5a5; color: #B91C1C; }

.reg-step-actions { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.reg-step-actions .btn-submit { flex: 1; }
.btn-sec { flex: 1; padding: 0.85rem; background: white; color: var(--dark); border: 2px solid #eee; border-radius: 12px; font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: all 0.2s; }
.btn-sec:hover { border-color: var(--red); color: var(--red); }

/* ── Footer ── */
.footer { background: #0F0A0A; color: rgba(255,255,255,0.7); padding: 3rem 2rem 0; position: relative; z-index: 1; }
.footer-inner { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand { display: flex; align-items: flex-start; gap: 0.75rem; }
.footer-brand .logo-drop { font-size: 2rem; }
.footer-brand .logo-title { color: white; }
.footer-brand .logo-sub { color: rgba(255,255,255,0.5); }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links h4 { color: white; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.25rem; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--red); }
.footer-links p { font-size: 0.85rem; }
.footer-bg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
.footer-bg-grid span { background: rgba(200,16,46,0.15); color: var(--red); text-align: center; padding: 0.3rem; border-radius: 6px; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; }
.footer-bottom { max-width: 1300px; margin: 0 auto; padding: 1.25rem 0; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* ── Modals ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box { background: white; border-radius: 20px; padding: 2.5rem; max-width: 480px; width: 100%; position: relative; transform: translateY(20px); transition: transform 0.3s; max-height: 90vh; overflow-y: auto; }
.modal-overlay.active .modal-box { transform: translateY(0); }
.modal-box h2 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 0.25rem; }
.modal-box > p { color: var(--gray); margin-bottom: 1.5rem; }
.modal-close { position: absolute; top: 1.25rem; right: 1.25rem; background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--gray); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.modal-close:hover { background: var(--gray-light); color: var(--dark); }
.modal-switch { text-align: center; margin-top: 1rem; font-size: 0.88rem; color: var(--gray); }
.modal-switch button { background: none; border: none; color: var(--red); font-weight: 600; cursor: pointer; }
.donor-modal-box { max-width: 520px !important; }

/* Contact request form inside modal */
.contact-form-modal .form-group { margin-bottom: 0.75rem; }
.contact-form-modal textarea { padding: 0.7rem 1rem; border: 2px solid #e5e7eb; border-radius: 10px; font-family: var(--font-body); font-size: 0.9rem; color: var(--dark); background: var(--cream); outline: none; width: 100%; resize: vertical; min-height: 80px; transition: border-color 0.2s; }
.contact-form-modal textarea:focus { border-color: var(--red); }
.privacy-info-box { background: rgba(200,16,46,0.05); border: 1px solid var(--border); border-radius: 10px; padding: 0.75rem 1rem; font-size: 0.8rem; color: var(--gray); margin-bottom: 1rem; }

/* ── Toast ── */
/* ── Toast notifications — awesome, auto-styled by message type ──────────── */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(120px) scale(0.95);
  background: white; color: var(--dark);
  padding: 0; border-radius: 16px; font-weight: 600;
  z-index: 3000; opacity: 0;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), opacity 0.3s ease;
  box-shadow: 0 16px 50px rgba(0,0,0,0.22);
  border: 1.5px solid #eee;
  max-width: min(92vw, 420px);
  display: flex; align-items: flex-start; gap: 0.7rem;
  overflow: hidden;
}
.toast.show { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
.toast-bar { width: 5px; align-self: stretch; flex-shrink: 0; background: var(--red); }
.toast-icon { font-size: 1.15rem; flex-shrink: 0; margin: 0.85rem 0 0.85rem 0.15rem; line-height: 1; }
.toast-msg { padding: 0.85rem 1rem 0.85rem 0; font-size: 0.88rem; line-height: 1.45; white-space: normal; word-wrap: break-word; }
.toast.toast-success .toast-bar { background: #16A34A; }
.toast.toast-warning .toast-bar { background: #F59E0B; }
.toast.toast-error   .toast-bar { background: #DC2626; }
[data-theme="dark"] .toast { background: var(--white); color: var(--dark); border-color: var(--border); }
@media (max-width: 480px) {
  .toast { bottom: 1.1rem; left: 1rem; right: 1rem; transform: translateY(120px) scale(0.95); max-width: none; }
  .toast.show { transform: translateY(0) scale(1); }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding-top: 90px; text-align: center; }
  .hero-visual { display: none; }
  .hero-desc { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .reg-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .em-content { justify-content: center; text-align: center; }
  .em-content > div { width: 100%; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-hero-primary, .btn-hero-outline { width: 100%; max-width: 300px; justify-content: center; }
  .role-tabs { flex-direction: column; }
}
@media (max-width: 480px) {
  .navbar { padding: 0 1rem; }
  .hero { padding: 90px 1rem 3rem; }
  .quick-filter, .stats-section, .register-section, .top-donors-section { padding: 3rem 1rem; }
  .donors-grid, .top-donors-grid { grid-template-columns: 1fr; }
  .hstat .hnum { font-size: 1.5rem; }
  .nearest-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .nearest-banner-left { justify-content: center; }
  .btn-nearest { justify-content: center; width: 100%; }
}
