/* ===== 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; }

/* ── 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); }

/* ── 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 ── */
.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; }
.form-group input:focus, .form-group select:focus { border-color: var(--red); }
.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); }
.btn-submit:hover { background: var(--red-light); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(200,16,46,0.35); }

/* ── Footer ── */
.footer { background: var(--dark); 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 { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--dark); color: white; padding: 0.85rem 1.75rem; border-radius: 12px; font-weight: 600; z-index: 3000; transition: transform 0.4s ease; box-shadow: 0 10px 40px rgba(0,0,0,0.3); border-left: 4px solid var(--red); white-space: nowrap; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── 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; }
}
