/* =========================================================
   RED BRIGADE — Blood Bank Directory
   Palette: signal red on charcoal
   ========================================================= */

:root {
  --red: #e11d2e;
  --red-600: #c4162a;
  --red-300: #ff5a67;
  --red-soft: rgba(225, 29, 46, 0.12);
  --bg: #0b0c0e;
  --bg-2: #0f1114;
  --panel: #141619;
  --panel-2: #191b20;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --txt: #f4f4f5;
  --muted: #9aa0a8;
  --muted-2: #70767e;
  --gold: #e7c46a;
  --ok: #34d399;
  --radius: 18px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.85);
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Sora", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(225, 29, 46, 0.20), transparent 62%),
    radial-gradient(900px 520px at -10% 12%, rgba(225, 29, 46, 0.07), transparent 60%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- boot ---------- */

.boot-loading {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: var(--bg); color: var(--muted);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
}
.boot-drop {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(225, 29, 46, 0.12); border: 1px solid rgba(225, 29, 46, 0.4);
  color: var(--red-300);
  animation: beat 1.8s ease-in-out infinite;
}
.boot-drop svg { width: 22px; height: 22px; }

#error { padding: 40px 24px; color: #ffa2a9; font-family: var(--font-body); }

/* ---------- shared bits ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--red-300);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red));
}

h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; letter-spacing: -0.02em; line-height: 1.1; }

.section { padding: 78px 0; position: relative; z-index: 1; }
.section-head { max-width: 620px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; margin: 14px 0 10px; }
.section-head p { margin: 0; color: var(--muted); font-size: 15px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, #f0263a, var(--red) 55%, var(--red-600));
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(225, 29, 46, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover { box-shadow: 0 18px 38px -12px rgba(225, 29, 46, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.28); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--txt);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.26); }
.btn-sm { padding: 9px 14px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 12, 14, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { height: 74px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-drop {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(160deg, rgba(225, 29, 46, 0.22), rgba(225, 29, 46, 0.06));
  border: 1px solid rgba(225, 29, 46, 0.4);
  color: var(--red-300);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.brand-drop svg { width: 20px; height: 20px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-head); font-size: 15px; font-weight: 800; letter-spacing: 0.16em; }
.brand-text span { font-size: 11px; color: var(--muted-2); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav button {
  background: none; border: 0; cursor: pointer;
  padding: 9px 13px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  transition: color 0.16s, background 0.16s;
}
.nav button:hover { color: var(--txt); background: rgba(255, 255, 255, 0.05); }
.nav-admin {
  margin-left: 10px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 10px;
  border: 1px solid var(--line-strong);
  font-size: 12.5px; font-weight: 700; color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}
.nav-admin:hover { color: var(--txt); border-color: rgba(225, 29, 46, 0.6); background: rgba(225, 29, 46, 0.08); }
.nav-admin svg { width: 14px; height: 14px; }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 60% 20%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 60% 20%, #000, transparent 72%);
  opacity: 0.5;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 40px;
  align-items: center;
  padding: 64px 0 72px;
}
.hero-copy h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 18px 0 20px;
}
.hero-copy h1 .accent {
  display: block;
  background: linear-gradient(100deg, #ff6a74, var(--red) 45%, #b3121f);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-lede {
  color: #b9bec6;
  font-size: 16px;
  max-width: 480px;
  margin: 0 0 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 34px;
  margin-top: 44px; padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stat .v { font-family: var(--font-head); font-size: 27px; font-weight: 800; letter-spacing: -0.03em; }
.hero-stat .v small { font-size: 12px; color: var(--muted-2); font-weight: 600; letter-spacing: 0.04em; margin-left: 4px; }
.hero-stat .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-2); margin-top: 4px; }
.hero-stat.live .v { color: var(--ok); display: flex; align-items: center; gap: 8px; font-size: 18px; }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulseDot 2.2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-emblem { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.emblem-glow {
  position: absolute; width: 88%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 29, 46, 0.34) 0%, rgba(225, 29, 46, 0.10) 42%, transparent 68%);
  filter: blur(12px);
}
.emblem-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(225, 29, 46, 0.24);
}
.emblem-ring.r1 { width: 74%; aspect-ratio: 1; }
.emblem-ring.r2 { width: 96%; aspect-ratio: 1; border-style: dashed; border-color: rgba(255, 255, 255, 0.10); animation: spin 46s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.emblem-img {
  position: relative; z-index: 2;
  height: clamp(320px, 40vw, 520px);
  width: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 40px rgba(225, 29, 46, 0.25));
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- blood needed now ---------- */

.need {
  position: relative; z-index: 1;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 160% at 15% 0%, rgba(225, 29, 46, 0.12), transparent 62%),
    var(--bg);
}
.need-head {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 26px 0 16px; flex-wrap: wrap;
}
.need-label {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: #ffb3ba;
}
.need-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red-300);
  animation: needPulse 2.2s ease-out infinite;
}
@keyframes needPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 103, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(255, 90, 103, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 103, 0); }
}
.need-sub { margin: 0; font-size: 12.5px; color: var(--muted-2); }

.need-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  padding-bottom: 30px;
}
.need-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 18px 18px 16px;
  border: 1px solid rgba(225, 29, 46, 0.28);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(225, 29, 46, 0.07), rgba(255, 255, 255, 0.014));
  transition: border-color 0.2s, transform 0.2s;
}
.need-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--red); opacity: 0.85;
}
.need-card:hover { border-color: rgba(225, 29, 46, 0.55); transform: translateY(-2px); }
.need-card.urgent { border-color: rgba(225, 29, 46, 0.6); }
.need-card.urgent::before { opacity: 1; }

.need-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.need-bg {
  font-family: var(--font-head); font-weight: 800; font-size: 24px; line-height: 1;
  letter-spacing: -0.02em; color: var(--txt);
}
.need-bg i { font-style: normal; color: var(--red-300); font-size: 17px; vertical-align: super; }
.need-units { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.need-flag {
  margin-left: auto; padding: 3px 8px; border-radius: 999px;
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: #ffd7db; background: rgba(225, 29, 46, 0.24); border: 1px solid rgba(225, 29, 46, 0.5);
}
.need-card h3 {
  font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em;
  margin: 0 0 6px; min-height: 42px;
}
.need-due { margin: 0 0 4px; font-size: 12.5px; color: #ffb3ba; font-weight: 600; }
.need-hint { margin: 0 0 14px; font-size: 11.5px; color: var(--muted-2); }
.need-hint b { color: var(--muted); font-weight: 700; }
.need-hint.none b { color: #ff9aa2; }
.need-cta {
  margin-top: auto; width: 100%; justify-content: center;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-radius: 10px;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 700; letter-spacing: 0.01em;
  color: #fff; background: linear-gradient(180deg, #f0263a, var(--red) 60%, var(--red-600));
  border: 1px solid rgba(255, 255, 255, 0.1); cursor: pointer;
  transition: filter 0.18s, transform 0.18s;
}
.need-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.need-cta svg { width: 14px; height: 14px; }
.need-quiet {
  margin: 0 0 30px; padding: 16px 18px; font-size: 13px; color: var(--muted);
  border: 1px dashed var(--line-strong); border-radius: 12px; background: rgba(255, 255, 255, 0.02);
}

/* ---------- blood group strip ---------- */

.strip { border-bottom: 1px solid var(--line); background: var(--bg-2); position: relative; z-index: 1; }
.strip-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 26px 0 18px; flex-wrap: wrap;
}
.strip-head h2 { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
.strip-head p { margin: 0; font-size: 12.5px; color: var(--muted-2); }
.group-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px;
  padding-bottom: 30px;
}
.group-tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 12px 13px;
  position: relative; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.group-tile::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--red); opacity: var(--fill, 0.12);
}
.group-tile:hover { border-color: rgba(225, 29, 46, 0.45); transform: translateY(-2px); }
.group-tile .g { font-family: var(--font-head); font-weight: 800; font-size: 21px; letter-spacing: -0.01em; }
.group-tile .g span { color: var(--red-300); }
.group-tile .n { font-size: 11px; color: var(--muted-2); margin-top: 2px; letter-spacing: 0.05em; text-transform: uppercase; }
.group-tile .n b { color: var(--txt); font-weight: 700; font-size: 12.5px; }
.group-tile.zero .g { color: var(--muted-2); }

/* ---------- steps ---------- */

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
}
.step-card .num {
  font-family: var(--font-head); font-size: 12px; font-weight: 800;
  letter-spacing: 0.14em; color: var(--red-300);
  display: inline-flex; align-items: center; gap: 8px;
}
.step-card .num::after { content: ""; width: 24px; height: 1px; background: rgba(225, 29, 46, 0.55); }
.step-card h3 { font-size: 18px; font-weight: 700; margin: 16px 0 8px; }
.step-card p { margin: 0; font-size: 14px; color: var(--muted); }
.step-icon {
  position: absolute; right: -10px; bottom: -14px; width: 92px; height: 92px;
  color: rgba(225, 29, 46, 0.10);
}
.step-icon svg { width: 100%; height: 100%; }

/* ---------- registration ---------- */

.register-section { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.register-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px; align-items: start; }
.register-copy h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin: 14px 0 14px; }
.register-copy p { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.benefit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.benefit-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #c6cad0; }
.benefit-list .tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 2px;
  background: var(--red-soft); border: 1px solid rgba(225, 29, 46, 0.35); color: var(--red-300);
}
.benefit-list .tick svg { width: 12px; height: 12px; }
.eligibility {
  margin-top: 28px; padding: 16px 18px; border-radius: 12px;
  border: 1px solid rgba(231, 196, 106, 0.22);
  background: rgba(231, 196, 106, 0.05);
  font-size: 13px; color: #d8cba6; display: flex; gap: 10px;
}
.eligibility svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--gold); }

.form-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
}
.form-card::before {
  content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 90, 103, 0.65), transparent);
}
.form-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.form-head h3 { font-size: 20px; font-weight: 700; }
.form-head p { margin: 5px 0 0; font-size: 13px; color: var(--muted-2); }
.badge-required {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700;
  color: var(--muted-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; white-space: nowrap;
}

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field label .req { color: var(--red-300); margin-left: 2px; }
.control { position: relative; }
.field input,
.field select {
  width: 100%;
  height: 48px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: #0d0f12;
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 0 14px;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
  appearance: none;
}
.field input::placeholder { color: #5d636b; }
.field input[type="number"]::-webkit-outer-spin-button,
.field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.field input:hover, .field select:hover { border-color: rgba(255, 255, 255, 0.26); }
.field input:focus, .field select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.18);
  background: #0b0d10;
}
.field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa0a8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 16px;
  padding-right: 38px;
  cursor: pointer;
}
.field select:invalid { color: #5d636b; }
.field select option { background: #141619; color: var(--txt); }

.input-prefix { display: flex; align-items: center; }
.input-prefix .prefix {
  position: absolute; left: 1px; top: 1px; bottom: 1px;
  width: 52px; display: grid; place-items: center;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  border-right: 1px solid var(--line);
  border-radius: 11px 0 0 11px;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}
.input-prefix input { padding-left: 66px; letter-spacing: 0.04em; }

.err {
  min-height: 0; margin: 0; font-size: 12px; color: #ff7b85;
  display: none; align-items: center; gap: 5px;
}
.field.invalid .err { display: flex; }
.field.invalid input, .field.invalid select { border-color: #ff4d5c; box-shadow: 0 0 0 3px rgba(255, 77, 92, 0.12); }
.form-note { font-size: 11.5px; color: var(--muted-2); text-align: center; margin: 14px 0 0; }
.form-error {
  display: none; margin: 0 0 14px; padding: 11px 13px; border-radius: 10px;
  background: rgba(255, 77, 92, 0.08); border: 1px solid rgba(255, 77, 92, 0.3);
  color: #ffa2a9; font-size: 13px;
}
.form-error.show { display: flex; gap: 8px; align-items: flex-start; }

/* thank you */
.thankyou { text-align: center; padding: 18px 6px 6px; animation: fadeUp 0.5s ease both; }
.heart-shell { position: relative; width: 96px; height: 96px; margin: 6px auto 20px; display: grid; place-items: center; }
.heart-core {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 28%, #ff5d6b, var(--red) 62%, #a70f1f);
  box-shadow: 0 16px 34px -12px rgba(225, 29, 46, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: beat 1.6s ease-in-out infinite;
  color: #fff;
}
.heart-core svg { width: 34px; height: 34px; }
.heart-ripple {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(225, 29, 46, 0.45);
  animation: ripple 2.4s ease-out infinite;
}
.heart-ripple.d2 { animation-delay: 0.9s; }
@keyframes beat { 0%, 100% { transform: scale(1); } 22% { transform: scale(1.08); } 38% { transform: scale(0.99); } 55% { transform: scale(1.05); } }
@keyframes ripple { 0% { transform: scale(0.72); opacity: 0.9; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.thankyou h3 { font-size: 23px; font-weight: 800; margin: 0 0 10px; letter-spacing: -0.02em; }
.thankyou .tmsg { color: #c6cad0; font-size: 14.5px; margin: 0 auto 20px; max-width: 380px; }
.donor-chip {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03);
  margin-bottom: 22px;
}
.donor-chip .bg {
  font-family: var(--font-head); font-weight: 800; color: var(--red-300); font-size: 14px;
  border-right: 1px solid var(--line); padding-right: 12px;
}
.donor-chip .nm { font-size: 13.5px; color: var(--txt); }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 44px 0 28px; position: relative; z-index: 1; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand img { height: 74px; width: auto; opacity: 0.95; }
.footer-brand .ft strong { display: block; font-family: var(--font-head); letter-spacing: 0.16em; font-size: 13.5px; }
.footer-brand .ft span { display: block; font-size: 11.5px; color: var(--muted-2); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }
.footer-brand .ft p { margin: 10px 0 0; font-size: 12.5px; color: var(--muted-2); max-width: 320px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-body); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-2); margin: 0 0 12px; }
.footer-col a, .footer-col button {
  display: block; background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 13px; color: #b9bec6; margin-bottom: 8px; text-align: left;
}
.footer-col a:hover, .footer-col button:hover { color: var(--red-300); }
.footer-bottom {
  margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--muted-2);
}
.footer-bottom .admin-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted-2); }
.footer-bottom .admin-link:hover { color: var(--txt); }
.footer-bottom .admin-link svg { width: 12px; height: 12px; }

/* =========================================================
   ADMIN CONSOLE
   ========================================================= */

.admin-shell { min-height: 100vh; background: var(--bg); position: relative; z-index: 1; display: flex; flex-direction: column; }
.admin-topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 12, 14, 0.9);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 30;
}
.admin-topbar .inner { height: 68px; display: flex; align-items: center; gap: 14px; }
.admin-topbar .brand-drop { width: 34px; height: 34px; border-radius: 10px; }
.admin-topbar .brand-text strong { font-size: 12.5px; }
.admin-topbar .brand-text span { font-size: 10px; }
.admin-badge {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red-300); border: 1px solid rgba(225, 29, 46, 0.45);
  background: rgba(225, 29, 46, 0.08); border-radius: 5px; padding: 3px 7px;
  margin-left: 4px;
}
.admin-topbar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.login-wrap { flex: 1; display: grid; place-items: center; padding: 56px 20px 80px; position: relative; }
.login-wrap::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(620px 420px at 50% 0%, rgba(225, 29, 46, 0.16), transparent 68%);
  pointer-events: none;
}
.login-card {
  position: relative;
  width: min(430px, 100%);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 34px 32px 28px;
  box-shadow: var(--shadow);
}
.login-card.shake { animation: shake 0.42s ease; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.login-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: rgba(225, 29, 46, 0.10); border: 1px solid rgba(225, 29, 46, 0.35);
  color: var(--red-300);
}
.login-icon svg { width: 22px; height: 22px; }
.login-card h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.login-card .sub { color: var(--muted); font-size: 13.5px; margin: 8px 0 24px; }
.login-card .field { margin-bottom: 16px; }
.login-card .pw-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; color: var(--muted-2); padding: 6px;
  display: grid; place-items: center; border-radius: 6px;
}
.login-card .pw-toggle:hover { color: var(--txt); background: rgba(255,255,255,0.06); }
.login-card .pw-toggle svg { width: 17px; height: 17px; }
.login-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted-2); text-align: center; }

/* dashboard */
.dash { padding: 30px 0 70px; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.dash-head h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.dash-head p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.dash-actions { display: flex; gap: 9px; flex-wrap: wrap; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 16px;
  position: relative; overflow: hidden;
}
.kpi .lab { font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.kpi .val { font-family: var(--font-head); font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin-top: 8px; line-height: 1; }
.kpi .val .of { font-size: 14px; font-weight: 600; color: var(--muted-2); letter-spacing: 0; }
.kpi .hint { font-size: 11.5px; color: var(--muted-2); margin-top: 8px; }
.kpi.accent { border-color: rgba(225, 29, 46, 0.35); background: linear-gradient(180deg, rgba(225, 29, 46, 0.12), rgba(225, 29, 46, 0.02)); }
.kpi.accent .val { color: #ff8a92; }

.dist-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 22px; margin-bottom: 18px;
}
.dist-card h3 { font-size: 13.5px; font-weight: 700; margin-bottom: 4px; }
.dist-card .sub { font-size: 11.5px; color: var(--muted-2); margin-bottom: 16px; }
.dist-rows { display: grid; gap: 9px; max-width: 880px; }
.dist-row { display: grid; grid-template-columns: 44px 1fr 40px; gap: 12px; align-items: center; }
.dist-row .g { font-size: 12.5px; font-weight: 700; color: #c9ced5; letter-spacing: 0.01em; }
.dist-row .track { height: 7px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; }
.dist-row .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #8f0d1b, var(--red), #ff5f6c); transition: width 0.5s ease; }
.dist-row .c { font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

.table-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.table-toolbar {
  padding: 16px 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.search-box { position: relative; flex: 1; min-width: 220px; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted-2); }
.search-box input {
  width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: #0d0f12; color: var(--txt); padding: 0 12px 0 36px; font-family: var(--font-body);
  font-size: 13.5px; outline: none; transition: border-color 0.16s, box-shadow 0.16s;
}
.search-box input::placeholder { color: #5d636b; }
.search-box input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.15); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line-strong); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 6px 11px; font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { color: var(--txt); border-color: rgba(255,255,255,0.3); }
.chip.on { background: rgba(225, 29, 46, 0.16); border-color: rgba(225, 29, 46, 0.6); color: #ffb0b6; }
.chip .n { opacity: 0.65; margin-left: 5px; font-weight: 700; font-size: 11px; }

.table-scroll { max-height: 620px; overflow: auto; }
table.donors { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.donors thead th {
  position: sticky; top: 0; z-index: 2;
  background: #16181c;
  text-align: left; padding: 11px 16px;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2);
  font-weight: 700; border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
table.donors tbody td { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: middle; }
table.donors tbody tr:hover { background: rgba(255, 255, 255, 0.028); }
table.donors tbody tr:last-child td { border-bottom: 0; }
.donor-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(225, 29, 46, 0.14); border: 1px solid rgba(225, 29, 46, 0.3);
  color: #ffa6ad; font-size: 11.5px; font-weight: 800;
}
.donor-name .nm { font-weight: 600; color: var(--txt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bg-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; padding: 3px 8px; border-radius: 6px;
  background: rgba(225, 29, 46, 0.13); border: 1px solid rgba(225, 29, 46, 0.32);
  color: #ff9aa2; font-weight: 800; font-size: 12px; font-family: var(--font-head);
  letter-spacing: 0.02em;
}
.mob { color: #cfd3d9; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc { display: inline-block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; color: #cfd3d9; }
.mob:hover { color: var(--red-300); }
.date-cell { color: var(--muted); white-space: nowrap; }
.date-cell small { display: block; color: var(--muted-2); font-size: 11px; }
.icon-btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; color: #8a9098; cursor: pointer; display: grid; place-items: center;
  transition: all 0.15s;
}
.icon-btn:hover { color: #ff8a92; background: rgba(225, 29, 46, 0.12); border-color: rgba(225, 29, 46, 0.3); }
.icon-btn svg { width: 15px; height: 15px; }
.table-foot {
  padding: 12px 18px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--muted-2);
}
.empty-state { padding: 64px 24px; text-align: center; color: var(--muted); }
.empty-state .ico {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center; background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--muted-2);
}
.empty-state h4 { font-size: 15px; color: var(--txt); margin-bottom: 6px; }
.empty-state p { margin: 0; font-size: 13px; }

/* dialogs (kit) tweaks */
.rb-dialog { display: grid; gap: 6px; }
.rb-dialog p { margin: 0; font-size: 14px; color: var(--muted); }
.rb-dialog strong { color: var(--txt); }

/* password form */
.pw-form { display: grid; gap: 14px; margin-top: 4px; }

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 20px; padding: 46px 0 50px; }
  .hero-emblem { order: -1; min-height: 0; padding: 6px 0 12px; }
  .emblem-img { height: clamp(260px, 46vw, 360px); }
  .emblem-ring.r2 { display: none; }
  .hero-copy h1 { font-size: clamp(38px, 7vw, 56px); }
  .group-grid { grid-template-columns: repeat(4, 1fr); }
  .need-grid { grid-template-columns: repeat(2, 1fr); }
  .register-grid { grid-template-columns: 1fr; gap: 30px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .need-grid { grid-template-columns: 1fr; gap: 10px; padding-bottom: 24px; }
  .need-head { padding: 22px 0 14px; }
  .need-card h3 { min-height: 0; }
  .need-quiet { margin-bottom: 24px; }
  .group-tile .n .u { display: none; }
  .admin-topbar .brand-text { display: none; }
  .admin-topbar .btn { padding: 8px 10px; }
  .admin-topbar .lbl { display: none; }
  .admin-topbar .inner { gap: 8px; }
  .topbar-inner { height: 66px; gap: 12px; }
  .nav button { display: none; }
  .nav-admin { padding: 8px 11px; }
  .brand-text strong { font-size: 13px; letter-spacing: 0.12em; }
  .brand-text span { font-size: 9.5px; }
  .section { padding: 54px 0; }
  .hero-inner { padding: 30px 0 44px; }
  .hero-lede { font-size: 15px; }
  .hero-actions .btn { flex: 1; }
  .hero-stats { gap: 22px; margin-top: 32px; }
  .hero-stat .v { font-size: 22px; }
  .group-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .group-tile { padding: 11px 10px; }
  .group-tile .g { font-size: 18px; }
  .form-card { padding: 22px 18px; border-radius: 18px; }
  .field-grid { grid-template-columns: 1fr; gap: 14px; }
  .footer-top { flex-direction: column; }
  .footer-brand img { height: 60px; }
  .admin-topbar .brand-text span { display: none; }
  .admin-badge { display: none; }
  .dash { padding: 20px 0 50px; }
  .dash-actions .btn { flex: 1; }
  .table-scroll { max-height: none; }
  table.donors thead th, table.donors tbody td { padding: 10px 12px; }
  .col-age, .col-gender { display: none; }
  .pc { max-width: 92px; }
  .login-card { padding: 26px 20px 22px; }
  .kpi .val { font-size: 25px; }
  .login-wrap { padding: 34px 16px 60px; }
}

@media (max-width: 420px) {
  .brand-text span { display: none; }
  .group-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-stat .k { font-size: 10px; letter-spacing: 0.1em; }
  .dist-row { grid-template-columns: 36px 1fr 30px; gap: 8px; }
}

/* anchors under the sticky header */
#availability, #about, #register { scroll-margin-top: 86px; }

/* inner password modal */
.rb-modal-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(5, 6, 8, 0.7);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 20px;
  animation: fadeIn 0.16s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.rb-modal {
  width: min(430px, 100%);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.rb-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.rb-modal-head h3 { font-size: 17px; font-weight: 700; }
.rb-modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 6px; }
.rb-modal .form-error.show { margin-bottom: 0; }

/* ---------------- admin tabs + finder ---------------- */
.dash-tabs { display: flex; gap: 4px; margin: -4px 0 24px; border-bottom: 1px solid var(--line); }
.dash-tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 13px 13px; border: none; background: none; cursor: pointer;
  color: var(--muted); font-family: var(--font-body); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.02em; transition: color 0.16s;
}
.dash-tab svg { width: 14px; height: 14px; opacity: 0.8; }
.dash-tab:hover { color: var(--txt); }
.dash-tab.on { color: #fff; }
.dash-tab.on::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px;
  border-radius: 2px; background: var(--red);
}

.finder-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.finder-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 20px 20px 17px; border-bottom: 1px solid var(--line);
}
.finder-head h3 { font-size: 16px; font-weight: 700; margin: 0 0 5px; }
.finder-head p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; max-width: 560px; }
.finder-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.finder-bar {
  display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.014);
}
.fgroup { display: flex; flex-direction: column; gap: 6px; min-width: 168px; }
.fgroup.grow { flex: 1; min-width: 210px; }
.fgroup label {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted-2); padding-left: 2px;
}
.fgroup .sel-wrap { position: relative; }
.fgroup .sel-wrap::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.fgroup select {
  appearance: none; -webkit-appearance: none; width: 100%; height: 40px;
  padding: 0 32px 0 12px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: #0d0f12; color: var(--txt); font-family: var(--font-body); font-size: 13px;
  cursor: pointer; transition: border-color 0.16s, box-shadow 0.16s;
}
.fgroup select:hover { border-color: rgba(255, 255, 255, 0.24); }
.fgroup select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.15); }
.fgroup .search-box input { height: 40px; }

.finder-bar .link-btn {
  height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--muted); font-family: var(--font-body);
  font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.finder-bar .link-btn:hover { color: #ffd0d4; background: rgba(225, 29, 46, 0.1); }

.finder-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 20px; border-bottom: 1px solid var(--line);
}
.sum-line { font-size: 12.5px; color: var(--muted); }
.sum-line b { color: #fff; font-weight: 700; }
.sum-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.sum-pill {
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  border: 1px solid rgba(225, 29, 46, 0.3); background: rgba(225, 29, 46, 0.1);
  color: #ff9aa2; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.finder-scroll { max-height: 560px; overflow: auto; }
.finder-foot {
  padding: 12px 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--muted-2);
}
table.finder-table td .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
table.finder-table td .who b { font-weight: 600; color: var(--txt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.finder-table td .who span { font-size: 11px; color: var(--muted-2); }
.finder-empty-note { padding: 0; }

@media (max-width: 720px) {
  .finder-bar { flex-direction: column; align-items: stretch; }
  .fgroup, .fgroup.grow { min-width: 0; width: 100%; }
  .finder-actions { width: 100%; }
  .finder-actions .btn { flex: 1; justify-content: center; }
  .finder-head { padding: 18px 16px 15px; }
  .finder-bar, .finder-summary, .finder-foot { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 720px) {
  .finder-table .col-reg { display: none; }
  .finder-table thead th, .finder-table tbody td { padding: 10px 12px; }
  .finder-table .pc { max-width: 96px; }
  .finder-table td .who b { max-width: 150px; }
}

/* ---------------- blood requests ---------------- */
.tab-badge {
  min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 10px; font-weight: 800;
  display: inline-grid; place-items: center; line-height: 1;
}
.req-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.req-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px; border-bottom: 1px solid var(--line);
}
.req-head h3 { font-size: 16px; font-weight: 700; margin: 0 0 5px; }
.req-head p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; max-width: 540px; }
.req-stats {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 11px 20px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.014); font-size: 12px; color: var(--muted);
}
.req-stats b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.req-stats .sep { width: 1px; height: 12px; background: var(--line-strong); }

.req-list { display: flex; flex-direction: column; }
.rq-item { border-bottom: 1px solid var(--line); padding: 16px 20px; transition: background 0.15s; }
.rq-item:last-child { border-bottom: 0; }
.rq-item:hover { background: rgba(255, 255, 255, 0.015); }
.rq-item.fulfilled { opacity: 0.72; }
.rq-item.cancelled { opacity: 0.6; }
.req-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.req-bg { min-width: 50px; padding: 6px 10px; font-size: 13px; }
.req-body { flex: 1; min-width: 200px; }
.req-title { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--txt); }
.req-title b { font-weight: 700; }
.req-hosp { color: #e8eaee; font-weight: 600; }
.req-meta { margin-top: 3px; font-size: 11.5px; color: var(--muted-2); line-height: 1.55; }
.status {
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-strong); white-space: nowrap;
}
.status.open { color: #ffb0b6; border-color: rgba(225, 29, 46, 0.45); background: rgba(225, 29, 46, 0.14); }
.status.fulfilled { color: #7ee2a8; border-color: rgba(53, 208, 127, 0.4); background: rgba(53, 208, 127, 0.12); }
.status.cancelled { color: #9aa0a8; background: rgba(255, 255, 255, 0.04); }
.req-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.req-actions .btn-sm { padding: 7px 11px; font-size: 12px; }

.req-sug { margin-top: 14px; border: 1px solid var(--line); border-radius: 11px; background: #0d0f12; padding: 13px 14px; }
.sug-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.sug-head b { color: #fff; }
.sug-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.sug-list li { display: flex; align-items: center; gap: 10px; padding: 7px 5px; border-radius: 8px; font-size: 12.5px; }
.sug-list li:hover { background: rgba(255, 255, 255, 0.03); }
.sug-list .avatar { width: 26px; height: 26px; font-size: 10.5px; border-radius: 8px; }
.sug-name { font-weight: 600; min-width: 118px; }
.sug-place { color: var(--muted-2); font-size: 11.5px; flex: 1; }
.sug-list .mob { font-size: 12px; }
.sug-none { margin: 10px 0 0; font-size: 12px; color: var(--muted); line-height: 1.55; }
.sug-more { margin-top: 8px; font-size: 11px; color: var(--muted-2); }
.sug-compat {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2);
}
.compat-chip {
  padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(225, 29, 46, 0.3);
  background: rgba(225, 29, 46, 0.1); color: #ff9aa2;
  font-size: 11px; font-weight: 700; letter-spacing: 0; cursor: pointer; transition: background 0.15s;
}
.compat-chip:hover { background: rgba(225, 29, 46, 0.22); }
.sug-loading { font-size: 12px; color: var(--muted); }

.rb-modal-wide { width: min(540px, 100%); }
.req-form .field { margin-bottom: 12px; }
.req-form .field-grid { gap: 12px; }
.req-form .field-grid .field { margin-bottom: 12px; }
.req-form input[type="date"] { color-scheme: dark; }
.req-form select { width: 100%; }

@media (max-width: 720px) {
  .req-head { padding: 18px 16px 15px; }
  .req-stats { padding-left: 16px; padding-right: 16px; gap: 10px; }
  .rq-item { padding: 14px 16px; }
  .req-row { align-items: flex-start; }
  .req-actions { width: 100%; }
  .req-actions .btn { flex: 1; justify-content: center; }
  .sug-name { min-width: 0; }
  .sug-list li { flex-wrap: wrap; }
}

/* ---------- public blood request ---------- */
.field label .opt {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--muted-2); border: 1px solid var(--line-strong);
  border-radius: 99px; padding: 2px 7px; margin-left: 6px; text-transform: uppercase;
}
.request-section { border-top: 1px solid var(--line); }
.request-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px; align-items: start; }
.request-copy h2 { margin: 14px 0 16px; }
.request-copy > p { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0 0 24px; max-width: 46ch; }
.request-copy > p b { color: var(--txt-2); font-weight: 600; }
.request-copy .eligibility { margin-top: 22px; }

.req-done { text-align: center; padding: 20px 6px 6px; animation: fadeUp 0.5s ease both; }
.req-done-ico {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 36% 28%, #4ade80, #16a34a 70%);
  box-shadow: 0 14px 30px -14px rgba(34, 197, 94, 0.85), inset 0 1px 0 rgba(255,255,255,0.35);
}
.req-done-ico svg { width: 28px; height: 28px; }
.req-done h3 { margin: 0 0 10px; font-size: 21px; }
.req-done p { font-size: 14px; line-height: 1.68; color: var(--muted); margin: 0 auto 18px; max-width: 38ch; }
.req-done p b { color: var(--txt-2); font-weight: 600; }
.req-done-chip {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
  padding: 9px 14px; border-radius: 11px; margin-bottom: 20px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,0.025);
  font-size: 12.5px; color: var(--muted);
}
.req-done-chip b { color: var(--txt); font-weight: 700; }

/* ---------- admin: website inbox ---------- */
.web-req {
  border: 1px solid rgba(225, 29, 46, 0.34);
  border-radius: 14px; margin-bottom: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(225, 29, 46, 0.07), rgba(225, 29, 46, 0.02));
}
.web-req-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 16px; border-bottom: 1px solid rgba(225, 29, 46, 0.2); flex-wrap: wrap;
}
.web-req-title { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--txt); }
.web-req-title svg { width: 15px; height: 15px; color: var(--red-300); }
.web-req-title[hidden-count] { color: red; }
.web-req-title b {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px;
  font-size: 11px; background: var(--red); color: #fff; letter-spacing: 0;
}
.web-req-sub { font-size: 11.5px; color: var(--muted-2); }
.web-req-list { display: grid; }
.web-req-item {
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.web-req-item:last-child { border-bottom: 0; }
.web-req-main { min-width: 0; }
.web-req-line1 { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 5px; }
.web-req-group {
  font-family: var(--font-head); font-size: 12.5px; font-weight: 700;
  padding: 3px 9px; border-radius: 7px; color: #ffb3ba;
  background: rgba(225, 29, 46, 0.16); border: 1px solid rgba(225, 29, 46, 0.35);
}
.web-req-name { font-size: 14px; font-weight: 600; color: var(--txt); }
.web-req-meta { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.web-req-meta span + span::before { content: " · "; color: var(--muted-2); }
.web-req-when { font-size: 11.5px; color: var(--muted-2); margin-top: 3px; }
.web-req-actions { display: flex; gap: 8px; flex: none; }
@media (max-width: 640px) {
  .web-req-item { grid-template-columns: 1fr; }
  .web-req-actions { justify-content: flex-start; }
}

@media (max-width: 900px) {
  .request-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ===== Insights tab (registry analytics) ===== */
.ins-kpis { margin-bottom: 16px; }
.ins-note { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 16px; }
.ins-note .pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #c9ced5; border: 1px solid var(--line); background: rgba(255,255,255,0.03); padding: 7px 13px; border-radius: 999px; }
.ins-note .pill b { color: var(--txt); font-weight: 700; }
.ins-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(225,29,46,0.18); flex: none; }

.ins-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 16px; margin-bottom: 16px; }
.ins-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 20px; display: flex; flex-direction: column; }
.ins-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.ins-head h3 { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; }
.ins-head p { margin: 5px 0 0; font-size: 12px; color: var(--muted-2); }

.ins-cols { display: flex; align-items: flex-end; gap: 10px; flex: 1; min-height: 194px; padding-top: 16px; }
.ins-cols .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; height: 100%; }
.ins-cols .n { font-size: 11.5px; font-weight: 700; color: #c9ced5; font-variant-numeric: tabular-nums; }
.ins-cols .bar { width: 100%; max-width: 34px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #ff5f6c, var(--red) 60%, #9d0e1c); min-height: 3px; transition: height 0.5s ease; }
.ins-cols .col.zero .bar { background: rgba(255,255,255,0.07); min-height: 3px; }
.ins-cols .col.zero .n { color: rgba(255,255,255,0.28); }
.ins-cols .g { font-family: var(--font-head); font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }

.ins-rows { display: grid; gap: 11px; }
.ins-rows .lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 11.5px; margin-bottom: 5px; }
.ins-rows .lbl .nm { color: #c9ced5; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-rows .lbl .ct { color: var(--muted-2); font-variant-numeric: tabular-nums; font-weight: 700; flex: none; }
.ins-rows .track { height: 7px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; }
.ins-rows .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #8f0d1b, var(--red), #ff5f6c); transition: width 0.5s ease; }
.ins-rows .more { font-size: 11px; color: var(--muted-2); }

.matrix-scroll { overflow-x: auto; padding-bottom: 2px; }
table.mx { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 12px; }
table.mx th { font-family: var(--font-head); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); font-weight: 700; padding: 6px 8px; text-align: center; white-space: nowrap; }
table.mx thead th:first-child, table.mx tbody th { text-align: left; }
table.mx tbody th { font-size: 12px; text-transform: none; letter-spacing: 0; color: #c9ced5; font-weight: 600; padding: 8px; white-space: nowrap; }
table.mx tbody th .sub { display: block; font-size: 10.5px; color: var(--muted-2); font-weight: 500; margin-top: 2px; }
table.mx td { text-align: center; padding: 9px 8px; border-radius: 6px; background: rgba(255,255,255,0.03); color: #e7e9ec; font-variant-numeric: tabular-nums; font-weight: 600; min-width: 44px; }
table.mx td.zero { color: rgba(255,255,255,0.22); font-weight: 500; }
table.mx td.total { background: rgba(255,255,255,0.06); color: #fff; }
table.mx tfoot th, table.mx tfoot td { padding: 9px 8px; font-size: 11.5px; color: var(--muted); border-radius: 6px; background: rgba(255,255,255,0.02); text-align: center; font-weight: 700; }
table.mx tfoot th { text-align: left; }
.ins-legend { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; white-space: nowrap; }
.ins-legend .bar { width: 64px; height: 7px; border-radius: 999px; background: linear-gradient(90deg, rgba(225,29,46,0.12), rgba(225,29,46,0.67)); }
.ins-legend[hidden] { display: none; }
.ins-foot { margin: 12px 0 0; font-size: 11.5px; color: var(--muted-2); max-width: 88ch; }
.ins-empty { border: 1px dashed var(--line); border-radius: 14px; }

@media (max-width: 980px) { .ins-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .ins-cols { height: 160px; gap: 6px; }
  .ins-card { padding: 15px 14px 17px; }
  .ins-head { flex-direction: column; gap: 10px; }
}

@media (max-width: 640px) {
  .dash-tabs { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .dash-tabs::-webkit-scrollbar { display: none; }
  .dash-tab { flex: none; padding-left: 10px; padding-right: 10px; }
}

@media (max-width: 640px) {
  table.mx { border-spacing: 2px; font-size: 11px; }
  table.mx td { min-width: 30px; padding: 7px 4px; }
  table.mx thead th { padding: 5px 4px; font-size: 9.5px; }
  table.mx tbody th { padding: 6px 4px; font-size: 11px; }
  table.mx tfoot th, table.mx tfoot td { padding: 7px 4px; font-size: 10.5px; }
}

@media (max-width: 480px) {
  .dash-tab { padding: 9px 7px 12px; font-size: 11.5px; gap: 5px; letter-spacing: 0; }
  .dash-tab svg { display: none; }
  .dash-tab.on::after { left: 4px; right: 4px; }
  .tab-badge { margin-left: 2px; }
}

/* ===== Mobile menu (hamburger drawer) ===== */
.nav-toggle {
  display: none;
  align-items: center; justify-content: center; flex: none;
  width: 42px; height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
  color: var(--txt); cursor: pointer;
  transition: background 0.16s, border-color 0.16s;
}
.nav-toggle:hover { background: rgba(255,255,255,0.06); border-color: rgba(225,29,46,0.5); }
.nav-toggle .bars { position: relative; display: block; width: 18px; height: 12px; }
.nav-toggle .bars i {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.18s ease, top 0.25s ease;
}
.nav-toggle .bars i:nth-child(1) { top: 0; }
.nav-toggle .bars i:nth-child(2) { top: 5px; }
.nav-toggle .bars i:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.mmenu {
  position: fixed; inset: 0; z-index: 120;
  visibility: hidden;
  transition: visibility 0s linear 0.3s;
}
.mmenu.open { visibility: visible; transition-delay: 0s; }
.mmenu-backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 5, 7, 0.66);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 0.26s ease;
}
.mmenu.open .mmenu-backdrop { opacity: 1; }
.mmenu-sheet {
  position: absolute; top: 0; right: 0;
  width: min(336px, 88vw); height: 100%;
  display: flex; flex-direction: column;
  background: #0c0d10;
  border-left: 1px solid var(--line);
  box-shadow: -28px 0 70px rgba(0, 0, 0, 0.55);
  padding: 16px 18px calc(20px + env(safe-area-inset-bottom));
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 0.7, 0.24, 1);
}
.mmenu.open .mmenu-sheet { transform: translateX(0); }
.mmenu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mmenu-title {
  font-family: var(--font-head); font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2);
}
.mmenu-close {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.03); color: var(--muted); cursor: pointer;
  transition: color 0.16s, background 0.16s;
}
.mmenu-close:hover { color: var(--txt); background: rgba(255,255,255,0.07); }
.mmenu-close svg { width: 17px; height: 17px; }

.mmenu-links { display: flex; flex-direction: column; }
.mmenu-links button {
  display: flex; flex-direction: column; gap: 3px;
  text-align: left; background: none; border: 0;
  border-bottom: 1px solid var(--line);
  padding: 14px 4px; cursor: pointer;
  color: var(--txt); font-family: var(--font-head);
  font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em;
  transition: color 0.16s, padding-left 0.16s;
}
.mmenu-links button span {
  font-family: var(--font-body); font-size: 11.5px; font-weight: 500;
  color: var(--muted-2); letter-spacing: 0;
}
.mmenu-links button:hover, .mmenu-links button:active { color: var(--red-300); padding-left: 8px; }

.mmenu-foot { margin-top: auto; padding-top: 20px; display: grid; gap: 10px; }
.mmenu-foot .btn { width: 100%; justify-content: center; }
.mmenu-admin {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.02);
  color: var(--muted); font-size: 13px; font-weight: 700;
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}
.mmenu-admin:hover { color: var(--txt); border-color: rgba(225,29,46,0.6); background: rgba(225,29,46,0.08); }
.mmenu-admin svg { width: 14px; height: 14px; }
.mmenu-note { margin: 2px 0 0; text-align: center; font-size: 11px; color: var(--muted-2); }
body.menu-open { overflow: hidden; }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-admin { display: none; }
}

.rb-toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 24px;
  max-width: min(440px, calc(100% - 32px));
  padding: 12px 16px;
  border-radius: 12px;
  background: #1c1f24;
  color: var(--txt);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.rb-toast.show { opacity: 1; transform: translate(-50%, 0); }
.rb-toast.success { border-color: rgba(52, 211, 153, 0.5); }
.rb-toast.danger { border-color: rgba(225, 29, 46, 0.6); }
.rb-toast.warn { border-color: rgba(231, 196, 106, 0.55); }
