/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #C8102E;
  --red-dark: #9e0d24;
  --red-light: #fdedf0;
  --blue: #1A6FD4;
  --blue-light: #e8f1fc;
  --green: #16A34A;
  --green-light: #e8f5ee;
  --orange: #EA580C;
  --orange-light: #fef3ed;
  --wa: #25D366;
  --wa-dark: #128C7E;
  --sms: #6366f1;
  --dark: #111827;
  --dark2: #1f2937;
  --muted: #6b7280;
  --muted2: #9ca3af;
  --border: #e5e7eb;
  --bg: #f9fafb;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07);
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.1);
  --shadow-xl: 0 32px 80px rgba(0,0,0,.13);
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--dark);
  scroll-behavior: smooth;
}
body { background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; display: block; object-fit: cover; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; }
ul { list-style: none; }
h1,h2,h3 { line-height: 1.2; }
h1 { font-family: 'Outfit', sans-serif; font-size: clamp(2rem,5vw,3.2rem); font-weight: 800; }
h2 { font-family: 'Outfit', sans-serif; font-size: clamp(1.4rem,3vw,2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { line-height: 1.65; color: var(--muted); }
em { font-style: normal; color: var(--red); }
textarea { border: 1.5px solid var(--border); background: var(--bg); color: var(--dark); padding: 10px 14px; border-radius: 12px; outline: none; transition: border-color .2s, box-shadow .2s; width: 100%; resize: vertical; }
textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,.1); }

/* ===== LAYOUT ===== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--white { background: var(--white); }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* ===== PRELOADER ===== */
.preloader {
  position: fixed; inset: 0; background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; z-index: 9999;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .4s, visibility .4s;
}
.preloader.active { opacity: 1; visibility: visible; pointer-events: all; }
.loader-drop {
  width: 64px; height: 64px; border-radius: 14px;
  background: var(--red-light);
  display: grid; place-items: center;
  animation: bounce 1s ease-in-out infinite;
}
.preloader p { color: var(--muted); font-size: .9rem; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--dark); color: #fff;
  padding: 12px 22px; border-radius: 999px;
  font-size: .88rem; font-weight: 600;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: opacity .28s, transform .28s; z-index: 8000; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; font-weight: 600; font-size: .88rem;
  border: 2px solid transparent;
  transition: transform .15s, box-shadow .15s, background .2s, opacity .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 4px 12px rgba(200,16,46,.28); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: transparent; color: var(--dark); border-color: var(--border); }
.btn-outline:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: var(--red-dark); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #c2460a; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #1558a8; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 4px 12px rgba(37,211,102,.25); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-sms { background: var(--sms); color: #fff; }
.btn-sms:hover { background: #4f51d8; }
.btn-red-ghost { background: rgba(200,16,46,.08); color: var(--red); border-color: rgba(200,16,46,.2); }
.btn-red-ghost:hover { background: var(--red); color: #fff; }
.btn-lg { padding: 14px 26px; font-size: .95rem; border-radius: 14px; }
.btn-sm { padding: 8px 13px; font-size: .82rem; border-radius: 10px; }
.btn-full { width: 100%; justify-content: center; }

/* ===== PILLS & LABELS ===== */
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.pill--red { background: var(--red-light); color: var(--red); }
.pill--blue { background: var(--blue-light); color: var(--blue); }
.pill--green { background: var(--green-light); color: var(--green); }
.pill--white { background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(4px); }
.pill--purple { background: #ede9fe; color: #7c3aed; }
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--red); margin-bottom: 8px;
}
.label::before { content: ''; width: 18px; height: 3px; background: var(--red); border-radius: 99px; }

/* ===== INPUTS ===== */
input, select {
  border: 1.5px solid var(--border); background: var(--bg);
  color: var(--dark); padding: 10px 14px; border-radius: 12px;
  outline: none; transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
input:focus, select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,.1); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 32px; }
.input-sm { padding: 8px 12px; font-size: .85rem; border-radius: 10px; }
.search-wrap { position: relative; }
.search-wrap i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted2); font-size: .85rem; pointer-events: none; }
.search-wrap input { padding-left: 36px; }

/* ===== PASSWORD TOGGLE ===== */
.input-wrap--pwd { position: relative; }
.input-wrap--pwd input { padding-right: 42px; }
.pwd-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted2); cursor: pointer;
  font-size: .9rem; padding: 4px; line-height: 1;
  transition: color .2s;
}
.pwd-toggle:hover { color: var(--red); }

/* ===== BRAND ===== */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 1rem; flex-shrink: 0; }
.brand-icon--logo { background: transparent; padding: 0; overflow: hidden; border-radius: 11px; }
.brand-icon--logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-icon--lg { width: 52px; height: 52px; border-radius: 16px; font-size: 1.4rem; }
.brand-icon--sm { width: 34px; height: 34px; border-radius: 10px; }
.brand-name { font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--dark); }
.brand-name strong { color: var(--red); }

/* ===== NAVBAR (ACCUEIL) ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 700;
  background: rgba(255,255,255,.9); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-container { max-width: 1160px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 24px; height: 68px; }
.nav-links { display: flex; gap: 2px; flex: 1; }
.nav-links a { padding: 7px 13px; border-radius: 10px; font-size: .88rem; font-weight: 500; color: var(--muted); transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--red-light); color: var(--red); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hamburger { display: none; width: 40px; height: 40px; border-radius: 10px; background: var(--bg); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.hamburger span { width: 20px; height: 2px; background: var(--dark); border-radius: 99px; display: block; }
.mobile-nav {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 14px 24px 22px; z-index: 600;
  flex-direction: column; gap: 4px; box-shadow: var(--shadow-lg);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 11px 14px; border-radius: 12px; font-weight: 500; color: var(--muted); }
.mobile-nav a:hover { background: var(--red-light); color: var(--red); }
.mobile-nav hr { border: none; border-top: 1px solid var(--border); margin: 6px 0; }
.mobile-nav .btn { width: 100%; justify-content: center; margin-top: 4px; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; padding-top: 68px;
  background: linear-gradient(135deg, #fff8f9 0%, #fff 60%);
  display: flex; align-items: center; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; right: 0; top: 0; bottom: 0; width: 50%;
  background: linear-gradient(135deg, rgba(200,16,46,.06), rgba(200,16,46,.02));
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 48px 0 80px; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--red-light); color: var(--red); padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; margin-bottom: 22px; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pdot 1.6s ease-in-out infinite; }
@keyframes pdot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }
.hero-title { color: var(--dark); margin-bottom: 18px; }
.hero-desc { font-size: 1.05rem; color: var(--muted); margin-bottom: 30px; max-width: 460px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-chips span { display: inline-flex; align-items: center; gap: 7px; background: var(--white); border: 1px solid var(--border); padding: 7px 13px; border-radius: 10px; font-size: .82rem; font-weight: 500; color: var(--muted); box-shadow: var(--shadow-sm); }
.hero-chips span i { color: var(--red); }

/* Hero image */
.hero-image-wrap { position: relative; }
.hero-img-frame {
  border-radius: 28px; overflow: hidden; height: 460px;
  box-shadow: var(--shadow-xl);
}
.hero-img-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-float {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  font-size: .82rem;
}
.hero-float i { font-size: 1.3rem; }
.hero-float p { color: var(--muted); margin: 0; }
.hero-float strong { display: block; font-size: 1.1rem; color: var(--dark); }
.hero-float--tl { top: 28px; left: -28px; }
.hero-float--tl i { color: var(--red); }
.hero-float--br { bottom: 40px; right: -24px; }
.hero-float--br i { color: var(--wa); }

/* ===== STATS BAND ===== */
.stats-band { background: var(--dark); padding: 44px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat-item { display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 50px; height: 50px; border-radius: 14px; background: rgba(200,16,46,.18); color: var(--red); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.si-blue { background: rgba(26,111,212,.18); color: #60a5fa; }
.si-green { background: rgba(22,163,74,.18); color: #4ade80; }
.si-wa { background: rgba(37,211,102,.18); color: var(--wa); }
.stat-item h4 { font-family: 'Outfit',sans-serif; font-size: 1.6rem; color: #fff; margin-bottom: 2px; }
.stat-item p { color: rgba(255,255,255,.45); font-size: .82rem; margin: 0; }

/* ===== SECTION HEAD ===== */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 6px 0 8px; }
.section-head p { font-size: .92rem; }
.section-head--center { text-align: center; justify-content: center; flex-direction: column; align-items: center; }

/* ===== CAROUSEL ===== */
.carousel-nav { display: flex; gap: 8px; }
.carousel-btn {
  width: 40px; height: 40px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--muted); display: grid; place-items: center; font-size: .85rem;
  transition: border-color .2s, color .2s, background .2s;
}
.carousel-btn:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }
.carousel-track-wrap { overflow: hidden; margin: 0 -4px; }
.carousel-track {
  display: flex; gap: 16px; padding: 8px 4px 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; scroll-behavior: smooth;
}
.carousel-track::-webkit-scrollbar { display: none; }

/* Donor carousel card */
.donor-c-card {
  flex: 0 0 240px; scroll-snap-align: start;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.donor-c-card:hover { border-color: var(--red); box-shadow: 0 4px 14px rgba(200,16,46,.1); }
.donor-c-av {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--red), #e84057);
  color: #fff; display: grid; place-items: center;
  font-size: 1.3rem; font-weight: 800; position: relative;
}
.av-dot {
  position: absolute; right: 4px; bottom: 4px;
  width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--white);
}
.av-dot.online { background: var(--green); }
.av-dot.offline { background: var(--red); }
.donor-c-name { font-weight: 700; font-size: .95rem; color: var(--dark); }
.donor-c-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.blood-b { background: var(--red-light); color: var(--red); padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.donor-c-city { font-size: .8rem; color: var(--muted); }
.status-s { font-size: .75rem; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.status-s::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.status-s.online { color: var(--green); }
.status-s.online::before { background: var(--green); }
.status-s.offline { color: var(--red); }
.status-s.offline::before { background: var(--red); }
.donor-c-actions { display: flex; gap: 6px; margin-top: auto; }
.donor-c-actions .btn { flex: 1; justify-content: center; padding: 8px; font-size: .78rem; }

/* ===== AMBASSADORS ===== */
.ambassadors-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.amb-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 320px; box-shadow: var(--shadow-lg); transition: transform .3s, box-shadow .3s; }
.amb-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.amb-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.amb-overlay {
  position: absolute; inset: 0; top: auto;
  background: linear-gradient(0deg, rgba(0,0,0,.88) 0%, transparent 100%);
  padding: 24px; display: flex; flex-direction: column; gap: 6px;
}
.amb-overlay h3 { color: #fff; }
.amb-overlay p { color: rgba(255,255,255,.65); font-size: .85rem; margin: 0; }

/* ===== EVENTS ===== */
.events-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.event-card { padding: 24px; display: flex; gap: 18px; align-items: flex-start; }
.event-date { display: flex; flex-direction: column; align-items: center; background: var(--red); color: #fff; border-radius: 12px; padding: 8px 14px; min-width: 56px; flex-shrink: 0; }
.ed { font-family: 'Outfit',sans-serif; font-size: 1.5rem; font-weight: 800; line-height: 1; }
.em { font-size: .72rem; font-weight: 600; text-transform: uppercase; opacity: .85; }
.event-body { display: flex; flex-direction: column; gap: 8px; }
.event-body h3 { font-size: .95rem; }

/* ===== TIPS ===== */
.tips-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.tip-card { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.tip-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; }
.ti-red { background: var(--red-light); color: var(--red); }
.ti-blue { background: var(--blue-light); color: var(--blue); }
.ti-green { background: var(--green-light); color: var(--green); }
.tip-card ul { display: flex; flex-direction: column; gap: 8px; }
.tip-card li { padding-left: 16px; position: relative; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.tip-card li::before { content: ''; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }

/* ===== FOOTER ===== */
.footer { background: var(--dark); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: rgba(255,255,255,.45); margin: 14px 0 20px; font-size: .88rem; }
.social-row { display: flex; gap: 8px; }
.social-row a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.6); display: grid; place-items: center; font-size: .85rem; transition: background .2s, color .2s; }
.social-row a:hover { background: var(--red); color: #fff; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: #fff; font-size: .88rem; margin-bottom: 4px; }
.footer-col a { color: rgba(255,255,255,.45); font-size: .85rem; transition: color .2s; display: flex; align-items: center; gap: 8px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { color: rgba(255,255,255,.35); font-size: .82rem; margin: 0; }

/* ============================================================
   DASHBOARD
============================================================ */
.dash-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 700;
  background: var(--white); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.dash-topbar-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 20px; height: 64px;
}
.dash-nav { display: flex; gap: 2px; flex: 1; justify-content: center; }
.dash-nav-link {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 10px; font-size: .88rem; font-weight: 600;
  color: var(--muted); transition: background .2s, color .2s; position: relative;
}
.dash-nav-link i { font-size: .92rem; }
.dash-nav-link:hover { background: var(--red-light); color: var(--red); }
.dash-nav-link.active { background: var(--red); color: #fff; }
.dash-topbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.dash-user-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border);
  padding: 6px 12px 6px 6px; border-radius: 999px; font-size: .82rem; font-weight: 600;
}
.dash-user-chip .chip-av {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center;
  font-size: .82rem; font-weight: 800;
}
.notif-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--orange); color: #fff;
  min-width: 16px; height: 16px; border-radius: 999px;
  font-size: .65rem; font-weight: 800; padding: 0 4px;
}

/* Mobile dash nav */
.dash-mobile-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 700;
  background: var(--white); border-top: 1px solid var(--border);
  padding: 8px 0; box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.dmn-link {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  flex: 1; padding: 6px; font-size: .68rem; font-weight: 600; color: var(--muted);
  transition: color .2s;
}
.dmn-link i { font-size: 1.1rem; }
.dmn-link.active { color: var(--red); }

/* Dashboard body */
.dash-body { max-width: 1400px; margin: 0 auto; padding: 80px 24px 40px; }
.dash-tab { display: none; }
.dash-tab.active { display: block; }

.dash-section-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.dash-section-head h2 { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }
.dash-section-head p { font-size: .88rem; margin-top: 4px; }
.dash-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-map-controls { display: flex; gap: 10px; align-items: center; }

/* ===== MAP MAPLIBRE ===== */
.dash-map {
  width: 100%; height: 460px; border-radius: var(--radius-lg);
  border: 1.5px solid var(--border); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.dash-map .maplibregl-canvas { border-radius: var(--radius-lg); }
.maplibregl-popup-content {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: .85rem;
  border-radius: 12px !important; padding: 14px 16px !important;
  box-shadow: var(--shadow-lg) !important; min-width: 180px;
}
.maplibregl-popup-close-button { font-size: 1rem; padding: 4px 8px; color: var(--muted); }
.map-marker-user { width: 24px; height: 24px; position: relative; cursor: pointer; }
.map-marker-user .pulse {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(200,16,46,.3); animation: mapripple 1.8s ease-out infinite;
}
.map-marker-user .dot {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: #C8102E; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(200,16,46,.6);
}
@keyframes mapripple { 0%{transform:scale(1);opacity:.6} 100%{transform:scale(3);opacity:0} }
.map-donor-pin {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid #fff; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: pointer; transition: transform .2s;
}
.map-donor-pin img { width: 100%; height: 100%; object-fit: cover; }
.map-donor-pin:hover { transform: scale(1.1); }
.map-donor-pin.offline { opacity: .75; border-color: var(--red); box-shadow: 0 2px 8px rgba(200,16,46,.4); }
.map-hospital-pin {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, #1A6FD4, #3b82f6);
  border: 3px solid #fff; display: grid; place-items: center;
  font-size: .8rem; color: #fff; box-shadow: 0 2px 8px rgba(26,111,212,.4); cursor: pointer;
}
.popup-wa-btn {
  display: inline-flex; align-items: center; gap: 5px; background: #25D366; color: #fff;
  padding: 5px 10px; border-radius: 8px; font-size: .78rem; font-weight: 700;
  text-decoration: none; margin-top: 8px; margin-right: 4px;
}
.popup-call-btn {
  display: inline-flex; align-items: center; gap: 5px; background: #1A6FD4; color: #fff;
  padding: 5px 10px; border-radius: 8px; font-size: .78rem; font-weight: 700;
  text-decoration: none; margin-top: 8px;
}
.nearby-title {
  font-size: 1rem; font-weight: 700; color: var(--dark);
  margin: 24px 0 12px; display: flex; align-items: center; gap: 10px;
}
.count-badge {
  background: var(--red); color: #fff;
  padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700;
}

/* Donors full grid */
.donors-full-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 14px;
}
.donor-full-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px;
  display: flex; align-items: center; gap: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.donor-full-card:hover { border-color: var(--red); box-shadow: 0 4px 14px rgba(200,16,46,.1); }
.dfc-av {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--red), #e84057);
  color: #fff; display: grid; place-items: center;
  font-size: 1.2rem; font-weight: 800; flex-shrink: 0; position: relative;
}
.dfc-info { flex: 1; min-width: 0; }
.dfc-info h4 { font-size: .92rem; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dfc-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.dfc-actions { display: flex; gap: 5px; }
.dfc-actions .btn { padding: 6px 9px; font-size: .75rem; border-radius: 9px; }

/* ===== URGENCE ===== */
.urgence-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 8px; }
.urgence-card {
  border-radius: var(--radius-lg); padding: 24px;
  display: flex; flex-direction: column; gap: 14px; border: 2px solid;
}
.urgence-card--red { background: #fff5f6; border-color: rgba(200,16,46,.18); }
.urgence-card--orange { background: #fff8f5; border-color: rgba(234,88,12,.18); }
.urgence-card--blue { background: #f5f9ff; border-color: rgba(26,111,212,.18); }
.urgence-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: var(--red-light); color: var(--red); }
.urgence-icon--orange { background: var(--orange-light); color: var(--orange); }
.urgence-icon--blue { background: var(--blue-light); color: var(--blue); }
.urgence-info h3 { color: var(--dark); margin-bottom: 4px; }
.urgence-info p { font-size: .85rem; margin: 0; }
.urgence-num { font-family: 'Outfit',sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--dark) !important; margin-top: 4px !important; }
.urgence-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

/* Hospitals */
.hospitals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 14px; }
.hospital-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s; }
.hospital-card:hover { border-color: var(--blue); }
.h-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-light); color: var(--blue); display: grid; place-items: center; font-size: 1.1rem; }
.hospital-card h4 { font-size: .92rem; }
.hospital-card p { font-size: .82rem; }
.h-status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; width: fit-content; }
.h-status.available { background: var(--green-light); color: var(--green); }
.h-status.low { background: var(--orange-light); color: var(--orange); }
.h-status.urgent { background: var(--red-light); color: var(--red); }
.h-actions { display: flex; gap: 6px; }

/* ===== ANNONCES ===== */
.announcements-list { display: flex; flex-direction: column; gap: 16px; }
.announcement-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 24px;
  display: flex; gap: 16px; align-items: flex-start;
  box-shadow: var(--shadow-sm); transition: border-color .2s;
}
.announcement-card:hover { border-color: var(--red); }
.ann-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0;
}
.ann-icon.info { background: var(--blue-light); color: var(--blue); }
.ann-icon.event { background: var(--green-light); color: var(--green); }
.ann-icon.urgence { background: var(--red-light); color: var(--red); }
.ann-icon.formation { background: #ede9fe; color: #7c3aed; }
.ann-body { flex: 1; }
.ann-title { font-weight: 700; color: var(--dark); font-size: 1rem; margin-bottom: 6px; }
.ann-content { font-size: .88rem; color: var(--muted); line-height: 1.6; white-space: pre-wrap; }
.ann-date { font-size: .76rem; color: var(--muted2); margin-top: 8px; }
.ann-empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.ann-empty i { font-size: 2.5rem; color: var(--border); display: block; margin-bottom: 12px; }

/* ===== PROFILE ===== */
.profile-grid { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.profile-card { padding: 28px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.profile-av-wrap { position: relative; display: inline-block; overflow: visible; }
.profile-av {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #e84057);
  color: #fff; display: grid; place-items: center;
  font-size: 2rem; font-weight: 800;
  box-shadow: 0 8px 24px rgba(200,16,46,.25);
  overflow: hidden;
}
.profile-av span, .profile-av img { width: 100%; height: 100%; display: grid; place-items: center; }
.profile-photo-btn {
  position: absolute; bottom: 0; right: -4px; z-index: 5;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center; font-size: .7rem;
  box-shadow: 0 2px 8px rgba(200,16,46,.4);
  border: 2px solid #fff; cursor: pointer;
  transition: background .2s, transform .2s;
}
.profile-photo-btn:hover { background: var(--red-dark); transform: scale(1.1); }
.profile-card h2 { font-size: 1.3rem; }
.profile-sub { font-size: .88rem; }
.profile-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.profile-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; width: 100%; margin: 8px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 16px 0; }
.profile-stats > div { text-align: center; }
.profile-stats strong { display: block; font-family: 'Outfit',sans-serif; font-size: 1.4rem; color: var(--dark); }
.profile-stats p { font-size: .75rem; }
.profile-info { width: 100%; }
.profile-section { padding: 24px; }
.profile-section h3 { margin-bottom: 18px; display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.info-item label { font-size: .75rem; font-weight: 700; color: var(--muted2); text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: 4px; }
.info-item p { font-size: .92rem; color: var(--dark); font-weight: 600; margin: 0; }
.don-history { display: flex; flex-direction: column; gap: 12px; }
.don-item { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.don-item i { font-size: 1.2rem; }
.don-item > div { flex: 1; }
.don-item p { color: var(--dark); font-weight: 600; font-size: .88rem; margin: 0; }
.don-item small { color: var(--muted); font-size: .78rem; }

/* ===== MODALS ===== */
.modal { position: fixed; inset: 0; z-index: 900; background: rgba(17,24,39,.7); backdrop-filter: blur(5px); display: none; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.modal.active { display: flex; }
.modal-card { background: var(--white); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-xl); width: 100%; position: relative; animation: min .3s ease; }
.modal-card--auth { max-width: 820px; display: grid; grid-template-columns: 260px 1fr; }
.modal-card--sm { max-width: 500px; }
@keyframes min { from{opacity:0;transform:translateY(14px) scale(.97)} to{opacity:1;transform:none} }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 10; width: 34px; height: 34px; border-radius: 9px; background: rgba(0,0,0,.06); color: var(--muted); display: grid; place-items: center; font-size: .95rem; transition: background .2s, color .2s; }
.modal-close:hover { background: var(--red-light); color: var(--red); }
.modal-aside { background: linear-gradient(145deg, var(--red-dark), var(--red)); padding: 36px 24px; display: flex; flex-direction: column; }
.modal-perks { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.modal-perks li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.82); font-size: .85rem; }
.modal-perks li i { color: rgba(255,255,255,.9); width: 16px; text-align: center; }
.modal-body { padding: 32px; overflow-y: auto; max-height: 90vh; }
.auth-tabs { display: flex; background: var(--bg); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 24px; }
.auth-tab { flex: 1; padding: 10px; border-radius: 9px; font-size: .88rem; font-weight: 600; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
.auth-tab.active { background: var(--white); color: var(--dark); box-shadow: var(--shadow-sm); }
.auth-form { display: none; flex-direction: column; gap: 16px; }
.auth-form.active { display: flex; }
.auth-form h3 { font-size: 1.4rem; }
.form-sub { font-size: .88rem; margin-top: -6px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--dark2); display: flex; align-items: center; gap: 8px; }
.req-badge { background: var(--red-light); color: var(--red); padding: 2px 7px; border-radius: 6px; font-size: .7rem; font-weight: 700; }
.fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input-wrap { position: relative; }
.input-wrap > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted2); pointer-events: none; font-size: .9rem; }
.input-wrap input, .input-wrap select { padding-left: 38px; }
.input-wrap--wa i { color: var(--wa); }
.field-hint { font-size: .76rem; color: var(--muted2); }

/* Association join box */
.assoc-join-box {
  background: linear-gradient(135deg, #ede9fe, #f5f3ff);
  border: 1.5px solid #c4b5fd; border-radius: 14px; padding: 16px;
}
.assoc-join-label {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
}
.assoc-join-label input[type="checkbox"] { display: none; }
.assoc-join-check {
  width: 22px; height: 22px; border-radius: 7px;
  border: 2px solid #c4b5fd; background: #fff;
  display: grid; place-items: center; flex-shrink: 0; margin-top: 2px;
  transition: background .2s, border-color .2s;
}
.assoc-join-check i { color: #fff; font-size: .7rem; opacity: 0; transition: opacity .2s; }
.assoc-join-label input[type="checkbox"]:checked ~ .assoc-join-check { background: #7c3aed; border-color: #7c3aed; }
.assoc-join-label input[type="checkbox"]:checked ~ .assoc-join-check i { opacity: 1; }
.assoc-join-label strong { display: block; font-size: .9rem; color: #5b21b6; }
.assoc-join-label small { font-size: .78rem; color: var(--muted); }
.assoc-join-label em { color: #7c3aed; font-style: italic; }

/* Contact modal */
.contact-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.contact-av { width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, var(--red), #e84057); color: #fff; display: grid; place-items: center; font-size: 1.4rem; font-weight: 800; flex-shrink: 0; overflow: hidden; }
.contact-header h3 { margin-bottom: 2px; }
.contact-intro { font-size: .88rem; font-weight: 600; color: var(--dark); margin-bottom: 10px; }
.contact-actions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.chat-sep { height: 1px; background: var(--border); margin-bottom: 16px; }
.chat-flow { display: flex; flex-direction: column; gap: 8px; min-height: 70px; max-height: 180px; overflow-y: auto; margin-bottom: 10px; }
.chat-bubble { padding: 9px 14px; border-radius: 14px; max-width: 80%; font-size: .85rem; line-height: 1.5; }
.chat-bubble.user { align-self: flex-end; background: var(--red); color: #fff; border-radius: 14px 14px 4px 14px; }
.chat-bubble.agent { align-self: flex-start; background: var(--bg); border: 1px solid var(--border); border-radius: 14px 14px 14px 4px; }
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; }
.chat-form .btn { padding: 10px 14px; flex-shrink: 0; border-radius: 11px; }

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== STORYTELLING ===== */
.story-section { background: var(--bg); }
.story-intro { text-align: center; margin-bottom: 56px; }
.story-intro h2 { margin-top: 8px; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.story-grid--reverse { direction: rtl; }
.story-grid--reverse > * { direction: ltr; }
.story-img-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); }
.story-img-wrap img { width: 100%; height: 420px; object-fit: cover; }
.story-img-badge {
  position: absolute; bottom: 20px; right: 20px;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center; font-size: 1.2rem;
  box-shadow: 0 4px 14px rgba(200,16,46,.4);
}
.story-img-badge--green { background: var(--green); box-shadow: 0 4px 14px rgba(22,163,74,.4); }
.story-chapter { font-size: .78rem; font-weight: 700; color: var(--red); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.story-title { font-family: 'Outfit', sans-serif; font-size: clamp(1.3rem,2.5vw,1.7rem); font-weight: 800; margin-bottom: 16px; color: var(--dark); }
.story-lead { font-size: 1rem; color: var(--dark); line-height: 1.7; margin-bottom: 12px; }
.story-content p { margin-bottom: 12px; }
.story-quote {
  margin: 24px 0 0; padding: 20px 24px;
  background: var(--red-light); border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.story-quote p { color: var(--dark); font-style: italic; line-height: 1.7; margin: 0; }
.story-quote cite { display: block; margin-top: 10px; font-size: .82rem; font-weight: 700; color: var(--red); font-style: normal; }

/* ===== IMPACT SECTION ===== */
.impact-section { padding: 72px 0; background: var(--white); }
.impact-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 48px; }
.impact-card { padding: 28px 24px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--bg); text-align: center; transition: transform .25s, box-shadow .25s; }
.impact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.impact-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; margin: 0 auto 16px; }
.impact-red  { background: var(--red-light);    color: var(--red); }
.impact-blue { background: var(--blue-light);   color: var(--blue); }
.impact-green{ background: var(--green-light);  color: var(--green); }
.impact-orange{ background: var(--orange-light); color: var(--orange); }
.impact-card h3 { font-family: 'Outfit', sans-serif; font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; color: var(--dark); }
.impact-card p { font-size: .88rem; line-height: 1.6; }

/* ===== TÉMOIGNAGES ===== */
.temoignages-section { background: var(--bg); }
.temoignages-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 40px; }
.temoignage-card { padding: 28px 24px; }
.temoignage-av { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; margin-bottom: 16px; border: 3px solid var(--red-light); }
.temoignage-av img { width: 100%; height: 100%; object-fit: cover; }
.temoignage-card blockquote { font-style: italic; color: var(--dark); line-height: 1.7; margin-bottom: 14px; font-size: .95rem; }
.temoignage-card blockquote::before { content: '"'; color: var(--red); font-size: 1.8rem; line-height: 0; vertical-align: -0.4em; margin-right: 4px; }
.temoignage-card cite { font-size: .8rem; font-weight: 700; color: var(--red); font-style: normal; }

/* ===== DONOR CARD PHOTOS ===== */
.dfc-av { position: relative; width: 56px; height: 56px; flex-shrink: 0; }
.dfc-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.dfc-av-letter {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--red-light); color: var(--red);
  display: grid; place-items: center; font-weight: 800; font-size: 1.2rem;
}
.donor-c-av-wrap { position: relative; width: 64px; height: 64px; margin: 0 auto 8px; }
.donor-c-av-img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }

/* ===== ADMIN TOPBAR ===== */
.admin-topbar {
  background: var(--white); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 500; padding: 0 24px;
}

/* ===== ADMIN BODY ===== */
.admin-body { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }

/* ===== ADMIN KPI ===== */
.admin-kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 32px; }
.admin-kpi-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px 20px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-sm);
}
.admin-kpi-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.admin-kpi-value { font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 800; color: var(--dark); line-height: 1; }
.admin-kpi-label { font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* ===== ADMIN ROW ===== */
.admin-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.admin-card { padding: 24px; }
.admin-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }

/* ===== BLOOD CHART ===== */
.bc-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.bc-label { width: 32px; font-size: .8rem; font-weight: 700; color: var(--dark); flex-shrink: 0; }
.bc-bar-wrap { flex: 1; background: var(--border); border-radius: 999px; height: 10px; overflow: hidden; }
.bc-bar { height: 100%; border-radius: 999px; transition: width .6s ease; }
.bc-count { width: 24px; text-align: right; font-size: .8rem; font-weight: 700; color: var(--muted); flex-shrink: 0; }

/* ===== TOP DONORS ===== */
.top-donor-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.top-donor-row:last-child { border: none; }
.top-medal { font-size: 1.1rem; width: 28px; flex-shrink: 0; }
.top-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.top-info { flex: 1; }
.top-info strong { display: block; font-size: .9rem; }
.top-info span { font-size: .78rem; color: var(--muted); }
.top-dons { text-align: right; }
.top-dons strong { display: block; font-size: 1.1rem; font-weight: 800; color: var(--red); }
.top-dons span { font-size: .72rem; color: var(--muted); }

/* ===== ADMIN TABLE ===== */
.admin-table-card { padding: 0; overflow: hidden; }
.admin-table-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.admin-table-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.admin-table th {
  text-align: left; font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); text-transform: uppercase;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: var(--bg); white-space: nowrap;
}
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .88rem; vertical-align: middle; }
.admin-table tr:last-child td { border: none; }
.admin-table tr:hover td { background: var(--bg); }
.admin-user-cell { display: flex; align-items: center; gap: 10px; }
.admin-av-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.admin-table-footer { padding: 12px 24px; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--border); background: var(--bg); }
.activity-bar { width: 80px; height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; }
.activity-fill { height: 100%; background: linear-gradient(90deg,var(--green),#4ade80); border-radius: 999px; transition: width .6s; }

/* ===== ASSOCIATION MEMBERS ADMIN ===== */
.assoc-blood-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); gap: 10px; }
.assoc-blood-chip {
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 12px;
  padding: 12px; text-align: center; transition: border-color .2s;
}
.assoc-blood-chip:hover { border-color: #7c3aed; }
.assoc-blood-chip .bc-grp { font-family:'Outfit',sans-serif; font-size:1.3rem; font-weight:800; color:#7c3aed; }
.assoc-blood-chip .bc-nb { font-size:.8rem; color:var(--muted); margin-top:2px; }

/* ===== ADMIN MESSAGES ===== */
.admin-msg-form { display: flex; flex-direction: column; gap: 14px; }
.admin-msg-list { display: flex; flex-direction: column; gap: 12px; }
.admin-msg-item {
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 14px;
  padding: 16px 20px; display: flex; gap: 14px; align-items: flex-start;
}
.admin-msg-item .ann-icon { flex-shrink: 0; }
.admin-msg-content { flex: 1; min-width: 0; }
.admin-msg-title { font-weight: 700; font-size: .92rem; color: var(--dark); margin-bottom: 4px; }
.admin-msg-body { font-size: .85rem; color: var(--muted); line-height: 1.5; white-space: pre-wrap; }
.admin-msg-meta { font-size: .75rem; color: var(--muted2); margin-top: 6px; }
.admin-msg-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ===== CHIP AVATAR WITH PHOTO ===== */
.chip-av-img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.chip-av-img.avatar-initial, .chip-av-img:not(img) {
  display: grid; place-items: center;
  background: var(--red); color: #fff;
  font-size: .82rem; font-weight: 800;
}
.avatar-initial {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red), #e84057);
  color: #fff; font-weight: 800;
}
.top-av.avatar-initial, .admin-av-img.avatar-initial {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
}
.admin-av-img.avatar-initial { width: 36px; height: 36px; }

/* ===== TRANSPORT NOTICE ===== */
.transport-notice {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px;
  padding: 12px 14px; margin-top: 12px;
  font-size: .84rem; color: #9a3412; line-height: 1.5;
}
.transport-notice i { color: #ea580c; margin-top: 2px; flex-shrink: 0; }
.transport-notice--sm { font-size: .8rem; padding: 10px 12px; margin-top: 0; margin-bottom: 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .ambassadors-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .urgence-grid { grid-template-columns: 1fr 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: repeat(2,1fr); }
  .temoignages-grid { grid-template-columns: repeat(2,1fr); }
  .admin-kpi-grid { grid-template-columns: repeat(2,1fr); }
  .admin-row { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 32px 0 60px; }
  .hero-image-wrap { max-width: 420px; margin: 0 auto; }
  .events-grid { grid-template-columns: 1fr 1fr; }
  .tips-grid { grid-template-columns: 1fr 1fr; }
  .modal-card--auth { grid-template-columns: 1fr; }
  .modal-aside { display: none; }
  .fields-row { grid-template-columns: 1fr; }
  .dash-nav { display: none; }
  .dash-mobile-nav { display: flex; }
  .dash-topbar-inner { padding: 0 12px; gap: 8px; }
  .dash-topbar .brand-name { display: none; }
  .dash-user-chip span { display: none; }
  .dash-user-chip { padding: 4px; min-width: 36px; justify-content: center; }
  .dash-body { padding: 72px 16px 110px; }
  .profile-grid { gap: 16px; }
  .profile-card { padding: 24px 16px; width: 100%; box-sizing: border-box; }
  .profile-stats { grid-template-columns: 1fr; gap: 10px; }
  .profile-stats p { font-size: .72rem; }
  .profile-photo-btn { width: 32px; height: 32px; font-size: .75rem; right: 0; bottom: -2px; }
  .profile-av { width: 88px; height: 88px; }
  .profile-card .btn-full { min-height: 44px; }
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .story-grid--reverse { direction: ltr; }
  .impact-grid { grid-template-columns: repeat(2,1fr); }
  .temoignages-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-actions .btn-outline, .nav-actions .btn-primary { display: none; }
  .hamburger { display: flex; }
  .ambassadors-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .urgence-grid { grid-template-columns: 1fr; }
  .donors-full-grid { grid-template-columns: 1fr; }
  .donor-c-card { flex: 0 0 200px; }
  .dash-map { height: 320px; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-float--tl { left: 0; top: 16px; }
  .hero-float--br { right: 0; bottom: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .dash-topbar-right { gap: 6px; }
  .dash-topbar-right .btn-danger span { display: none; }
  .dash-topbar-right .btn-danger { padding: 8px 10px; }
  .dash-topbar-right .btn-outline { padding: 8px 10px; }
  .dash-section-head { flex-direction: column; align-items: flex-start; }
  .impact-grid { grid-template-columns: 1fr; }
  .admin-kpi-grid { grid-template-columns: 1fr 1fr; }
  .admin-table-head { flex-direction: column; align-items: flex-start; }
}
