/* ============================================================
   SARVDHARAM BLOOD — Premium Design System
   Sarv Dharam Sewa Foundation · Blood Donor & Seeker Platform
   Style: Premium Medical + NGO · Glassmorphism + Soft Shadows
   ============================================================ */

:root {
  --red: #D91F3A;
  --red-hover: #C51532;
  --red-deep: #B3122D;
  --red-light: #E53955;
  --red-soft: #FDEDEF;
  --red-softer: #FEF6F7;
  --navy: #142B4D;
  --navy-deep: #0D1E38;
  --text: #132238;
  --text-2: #5E6B84;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --border: #E6ECF2;
  --green: #16A34A;
  --green-soft: #EAF7EF;
  --amber: #D97706;
  --amber-soft: #FEF4E6;
  --blue: #2563EB;
  --blue-soft: #EBF1FE;
  --wa: #25D366;

  --grad-red: linear-gradient(135deg, #B3122D 0%, #D91F3A 55%, #E53955 100%);
  --grad-navy: linear-gradient(135deg, #0D1E38 0%, #142B4D 60%, #1D3A66 100%);

  /* Vital Glass tokens: Plus Jakarta Sans headlines, navy-tinted ambient shadows */
  --font-head: "Plus Jakarta Sans", "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --shadow-sm: 0 4px 20px rgba(20, 43, 77, .05);
  --shadow-md: 0 4px 12px rgba(20, 43, 77, .06), 0 12px 32px rgba(20, 43, 77, .08);
  --shadow-lg: 0 12px 24px rgba(20, 43, 77, .08), 0 32px 72px rgba(20, 43, 77, .14);
  --shadow-red: 0 10px 26px rgba(217, 31, 58, .32);
  --shadow-red-lg: 0 18px 44px rgba(217, 31, 58, .38);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;

  --container: 1280px;
  --nav-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--red); color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--text); font-weight: 700; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* Skip link (a11y) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(217, 31, 58, .45); outline-offset: 2px; border-radius: 6px;
}

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announce {
  background: var(--grad-red);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  position: relative;
  z-index: 60;
}
.announce .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 42px; padding-top: 6px; padding-bottom: 6px;
}
.announce-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.announce-left .dot { opacity: .55; }
.announce-right { display: flex; align-items: center; gap: 20px; white-space: nowrap; }
.announce a { display: inline-flex; align-items: center; gap: 6px; opacity: .95; transition: opacity .2s; }
.announce a:hover { opacity: 1; text-decoration: underline; }
.announce .phone { font-weight: 700; letter-spacing: .3px; }

/* ============================================================
   NAVIGATION (sticky glass)
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid rgba(230, 236, 242, .9);
  transition: box-shadow .3s var(--ease);
}
.nav.scrolled { box-shadow: 0 8px 30px rgba(19, 34, 56, .07); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 46px; height: 46px; filter: drop-shadow(0 4px 10px rgba(217, 31, 58, .3)); }
.brand-logo {
  width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
  background: #fff; box-shadow: 0 2px 10px rgba(20, 43, 77, .16);
  transition: transform .3s var(--ease);
}
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.05); }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 21px; line-height: 1.1; color: var(--navy); }
.brand-name .accent { color: var(--red); }
.brand-sub { font-size: 10.5px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--text-2); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 10px 14px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--text);
  position: relative; transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--red); background: var(--red-softer); }
.nav-links a.active { color: var(--red); font-weight: 600; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px;
  border-radius: 3px; background: var(--grad-red);
}
.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-burger {
  display: none; width: 48px; height: 48px; border-radius: 12px;
  border: 1.5px solid var(--border); align-items: center; justify-content: center; background: #fff;
  flex-shrink: 0;
}
.nav-burger svg { width: 22px; height: 22px; stroke: var(--navy); }

/* Mobile drawer — sits below announce bar + nav */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 48;
  background: rgba(255, 255, 255, .98);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  padding: 0 0 40px; overflow-y: auto;
  /* The JS sets padding-top dynamically via --menu-offset */
  padding-top: var(--menu-offset, 118px);
}
.mobile-menu.open { display: block; animation: fadeIn .22s var(--ease); }
.mobile-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--border);
  min-height: 56px;
}
.mobile-menu a:first-child { border-top: 1px solid var(--border); }
.mobile-menu a.active { color: var(--red); }
.mobile-menu .btn { margin: 22px 24px 0; width: calc(100% - 48px); justify-content: center; min-height: 52px; font-size: 16px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: var(--r-md);
  font-family: var(--font-head); font-weight: 600; font-size: 15.5px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .2s, color .2s, border-color .2s;
  will-change: transform;
  border: 1.5px solid transparent;
  white-space: nowrap;
  min-height: 48px; /* Accessibility: minimum tap target */
  touch-action: manipulation;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:active { transform: translateY(1px) scale(.98); }

.btn-primary { background: var(--grad-red); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-red-lg); }

.btn-navy { background: var(--grad-navy); color: #fff; box-shadow: 0 10px 26px rgba(20, 43, 77, .3); }
.btn-navy:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(20, 43, 77, .38); }

.btn-outline { border-color: var(--red); color: var(--red); background: #fff; }
.btn-outline:hover { background: var(--red-soft); transform: translateY(-2px); }

.btn-ghost { color: var(--navy); background: transparent; border-color: var(--border); }
.btn-ghost:hover { border-color: var(--navy); background: #fff; transform: translateY(-2px); }

.btn-white { background: #fff; color: var(--red); box-shadow: 0 10px 28px rgba(0, 0, 0, .18); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0, 0, 0, .25); }

.btn-success { background: linear-gradient(135deg, #128C4B, #16A34A); color: #fff; box-shadow: 0 10px 24px rgba(22, 163, 74, .3); }
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(22, 163, 74, .4); }

.btn-lg { padding: 18px 34px; font-size: 17px; border-radius: var(--r-lg); min-height: 56px; }
.btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 10px; min-height: 44px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 620px at 82% 8%, rgba(217, 31, 58, .10), transparent 62%),
    radial-gradient(800px 500px at -8% 78%, rgba(20, 43, 77, .07), transparent 60%),
    linear-gradient(180deg, #FFF5F6 0%, #FDF3F4 42%, var(--bg) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: 40px;
  padding: 64px 0 26px; position: relative; z-index: 2;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(217, 31, 58, .18);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--red); font-weight: 600; font-size: 14px;
  padding: 9px 18px 9px 12px; border-radius: 100px;
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow .heart { animation: heartbeat 1.6s ease-in-out infinite; transform-origin: center; }
.hero h1 {
  font-size: clamp(42px, 5.4vw, 66px);
  font-weight: 800; letter-spacing: -1.6px; margin: 22px 0 18px;
  color: var(--navy);
}
.hero h1 .accent {
  background: var(--grad-red);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 560px; margin-bottom: 30px; }

.hero-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 38px; }
.hero-badge {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--r-lg); padding: 12px 18px 12px 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.hero-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.hero-badge .ico {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
}
.hero-badge .ico svg { width: 21px; height: 21px; }
.hero-badge .t { font-weight: 700; font-size: 14.5px; line-height: 1.25; font-family: var(--font-head); }
.hero-badge .s { font-size: 12.5px; color: var(--text-2); }
.ico-red { background: var(--red-soft); color: var(--red); }
.ico-blue { background: var(--blue-soft); color: var(--blue); }
.ico-amber { background: var(--amber-soft); color: var(--amber); }
.ico-green { background: var(--green-soft); color: var(--green); }
.ico-navy { background: #E9EEF6; color: var(--navy); }

/* 3D stage */
.hero-visual { position: relative; height: 560px; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-visual .glow {
  position: absolute; left: 50%; top: 52%; width: 480px; height: 480px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(217, 31, 58, .16) 0%, rgba(229, 57, 85, .07) 45%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.ecg-line { position: absolute; left: -4%; right: -4%; top: 50%; width: 108%; opacity: .5; pointer-events: none; }
.ecg-line path {
  fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round;
  stroke-dasharray: 640; stroke-dashoffset: 640;
  animation: ecg 4.5s linear infinite;
  filter: drop-shadow(0 0 6px rgba(217, 31, 58, .5));
}

/* floating glass chips over 3D */
.float-chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 14px; padding: 10px 16px;
  box-shadow: var(--shadow-md);
  font-size: 13.5px; font-weight: 600;
  animation: floaty 6s ease-in-out infinite;
}
.float-chip .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.float-chip .ico svg { width: 17px; height: 17px; }
.float-chip small { display: block; font-size: 11.5px; font-weight: 500; color: var(--text-2); }
.chip-1 { top: 8%; left: 2%; animation-delay: 0s; }
.chip-2 { bottom: 16%; right: 0%; animation-delay: 1.6s; }
.chip-3 { bottom: 4%; left: 10%; animation-delay: 3.2s; }

/* ============================================================
   SEARCH CARD
   ============================================================ */
.search-wrap { position: relative; z-index: 5; padding-bottom: 34px; }
.search-card {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 30px;
}
.search-fields {
  display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 16px; align-items: end;
}
.field label {
  display: flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 9px;
  font-family: var(--font-head);
}
.field label svg { width: 15px; height: 15px; color: var(--red); }
.field .req { color: var(--red); }

.input, .select {
  width: 100%; height: 58px;
  border: 1.5px solid var(--border); border-radius: var(--r-lg);
  background: #fff; padding: 0 18px; font-size: 15.5px;
  transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
textarea.input { height: auto; min-height: 110px; padding: 15px 18px; resize: vertical; }
.select {
  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='%235E6B84' stroke-width='2.4' 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 16px center;
  padding-right: 44px;
}
.input:hover, .select:hover { border-color: #CBD5E1; }
.input:focus, .select:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(217, 31, 58, .12);
}
.input::placeholder { color: #9AA6B8; }
.input.error, .select.error { border-color: var(--red); background: var(--red-softer); }
.field-error { display: none; font-size: 12.5px; color: var(--red); margin-top: 6px; font-weight: 500; }
.field.has-error .field-error { display: block; }

.search-card .btn-search { height: 58px; padding: 0 32px; border-radius: var(--r-lg); font-size: 16px; }
.search-meta { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 18px; }
.search-meta span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.search-meta svg { width: 15px; height: 15px; color: var(--green); }

/* ============================================================
   STATS
   ============================================================ */
.stats { padding: 20px 0 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 24px 26px; display: flex; align-items: center; gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  transform-style: preserve-3d;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stat-ico { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; }
.stat-ico svg { width: 27px; height: 27px; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: 30px; line-height: 1.05; letter-spacing: -.5px; }
.stat-label { font-weight: 600; font-size: 14.5px; margin-top: 3px; }
.stat-sub { font-size: 12.5px; color: var(--text-2); }
.c-red { color: var(--red); } .c-green { color: var(--green); } .c-blue { color: var(--blue); } .c-amber { color: var(--amber); } .c-navy { color: var(--navy); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 88px 0; }
.section.tight { padding: 64px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 54px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--red); font-weight: 700; font-size: 13px; letter-spacing: 2.2px; text-transform: uppercase;
  font-family: var(--font-head); margin-bottom: 14px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--red); border-radius: 2px; opacity: .5; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -1px; color: var(--navy); }
.section-head p { color: var(--text-2); font-size: 17.5px; margin-top: 14px; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head.left .eyebrow::before { display: none; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.step-card {
  position: relative; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 40px 32px 34px; text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  transform-style: preserve-3d; perspective: 800px;
}
.step-card:hover { box-shadow: var(--shadow-lg); }
.step-num {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad-red); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 17px;
  display: grid; place-items: center;
  box-shadow: var(--shadow-red);
}
.step-ico {
  width: 84px; height: 84px; margin: 6px auto 22px; border-radius: 26px;
  background: linear-gradient(145deg, #FFF0F2, #FDE3E7);
  display: grid; place-items: center; color: var(--red);
  box-shadow: inset 0 -4px 10px rgba(217, 31, 58, .08), 0 10px 22px rgba(217, 31, 58, .12);
  transform: translateZ(30px);
}
.step-ico svg { width: 38px; height: 38px; }
.step-card h3 { font-size: 21px; margin-bottom: 10px; }
.step-card p { color: var(--text-2); font-size: 15.5px; }
.step-arrow {
  position: absolute; top: 50%; right: -22px; z-index: 2; color: #E3B7BE;
  transform: translateY(-50%); width: 34px; height: 34px;
}

/* ============================================================
   TRUST BAND
   ============================================================ */
.trust-band { background: var(--grad-navy); position: relative; overflow: hidden; padding: 58px 0; }
.trust-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 10% 0%, rgba(217, 31, 58, .22), transparent 60%),
    radial-gradient(500px 300px at 95% 100%, rgba(37, 99, 235, .18), transparent 60%);
}
.trust-band .container { position: relative; z-index: 2; }
.trust-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.trust-item { display: flex; gap: 16px; align-items: flex-start; color: #fff; }
.trust-item .ico {
  width: 52px; height: 52px; border-radius: 15px; flex-shrink: 0;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: grid; place-items: center; color: #FF8FA0;
}
.trust-item .ico svg { width: 25px; height: 25px; }
.trust-item h3 { color: #fff; font-size: 17.5px; margin-bottom: 6px; }
.trust-item p { color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.55; }

/* ============================================================
   WHY CHOOSE (feature cards)
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 34px 30px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
  position: relative; overflow: hidden;
}
.why-card::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px;
  background: var(--grad-red); opacity: 0; transition: opacity .3s;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(217, 31, 58, .25); }
.why-card:hover::after { opacity: 1; }
.why-card .ico {
  width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 22px;
}
.why-card .ico svg { width: 29px; height: 29px; }
.why-card h3 { font-size: 19.5px; margin-bottom: 10px; }
.why-card p { color: var(--text-2); font-size: 15px; }

/* ============================================================
   REQUEST CARDS
   ============================================================ */
.req-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.req-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 24px; box-shadow: var(--shadow-sm); position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column; gap: 14px;
}
.req-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.req-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bg-badge {
  width: 62px; height: 62px; border-radius: 18px; flex-shrink: 0;
  background: var(--grad-red); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 21px;
  box-shadow: var(--shadow-red);
  position: relative;
}
.bg-badge::after {
  content: ""; position: absolute; inset: -5px; border-radius: 22px;
  border: 2px solid rgba(217, 31, 58, .25);
}
.bg-badge.pulse::after { animation: pulse-ring 1.8s ease-out infinite; }
.urgency { font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 6px 12px; border-radius: 100px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); }
.urgency::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.u-critical { background: var(--red-soft); color: var(--red); }
.u-critical::before { animation: blink 1s infinite; }
.u-urgent { background: var(--amber-soft); color: var(--amber); }
.u-scheduled { background: var(--blue-soft); color: var(--blue); }
.u-fulfilled { background: var(--green-soft); color: var(--green); }
.req-card h3 { font-size: 17.5px; line-height: 1.35; }
.req-meta { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-2); }
.req-meta span { display: flex; align-items: center; gap: 9px; }
.req-meta svg { width: 15.5px; height: 15.5px; color: var(--red); flex-shrink: 0; }
.req-foot { margin-top: auto; display: flex; gap: 10px; align-items: center; justify-content: space-between; border-top: 1px dashed var(--border); padding-top: 15px; }
.req-ref { font-size: 12px; color: var(--text-2); font-weight: 600; letter-spacing: .4px; }

/* ============================================================
   DONOR CARDS (Vital Glass v2 — per Stitch search-results design)
   ============================================================ */
.donor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.donor-card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column; gap: 15px;
}
.donor-card::before {
  content: ""; position: absolute; top: -46px; right: -46px; width: 130px; height: 130px;
  border-radius: 50%; background: radial-gradient(circle, rgba(217, 31, 58, .09), rgba(217, 31, 58, 0) 70%);
  pointer-events: none;
}
.donor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.donor-top { display: flex; gap: 14px; align-items: flex-start; }
.avatar {
  width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 21px; color: #fff;
  background: var(--grad-red); box-shadow: 0 6px 14px rgba(217, 31, 58, .25);
}
.avatar.f { background: linear-gradient(135deg, #8E2A5C, #C2447F); box-shadow: 0 6px 14px rgba(142, 42, 92, .25); }
.donor-name { font-family: var(--font-head); font-weight: 700; font-size: 17.5px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.donor-name .vbadge { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--blue); color: #fff; }
.donor-name .vbadge svg { width: 11px; height: 11px; }
.donor-loc { font-size: 13.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.donor-loc svg { width: 13px; height: 13px; }
.donor-bg {
  position: relative; margin-left: auto; flex-shrink: 0; text-align: center;
  color: var(--red); font-family: var(--font-head);
}
.donor-bg .val { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.5px; display: block; }
.donor-bg .cap { font-size: 9px; font-weight: 700; letter-spacing: 1.4px; color: var(--text-2); text-transform: uppercase; display: block; margin-top: 4px; }
.status-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 100px; margin-top: 6px;
}
.status-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-avail { background: var(--green-soft); color: var(--green); }
.status-avail::before { box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.status-cooldown { background: #F1F4F8; color: var(--text-2); }
.cooldown-bar {
  background: #F1F4F8; color: var(--text-2); border-radius: 10px;
  height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13.5px; font-weight: 600;
}
.cooldown-bar svg { width: 15px; height: 15px; }
.donor-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 100px; display: inline-flex; align-items: center; gap: 6px; }
.tag svg { width: 12px; height: 12px; }
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-gray { background: #F1F4F8; color: var(--text-2); }
.tag-blue { background: var(--blue-soft); color: var(--blue); }
.tag-amber { background: var(--amber-soft); color: var(--amber); }
.tag-red { background: var(--red-soft); color: var(--red); }
.donor-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.donor-actions.has-sms { grid-template-columns: 1fr 1fr 44px; }
.act-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 44px; border-radius: 100px; font-weight: 600; font-size: 13.5px;
  font-family: var(--font-head);
  border: 1.5px solid transparent; color: #fff;
  transition: all .22s var(--ease);
}
.act-btn svg { width: 16px; height: 16px; }
.act-btn.call { background: var(--navy); box-shadow: 0 6px 14px rgba(20, 43, 77, .22); }
.act-btn.call:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(20, 43, 77, .3); }
.act-btn.wa { background: #1FBF59; box-shadow: 0 6px 14px rgba(31, 191, 89, .28); }
.act-btn.wa:hover { background: #17A94C; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(31, 191, 89, .36); }
.act-btn.sms { background: #fff; border-color: var(--border); color: var(--text-2); }
.act-btn.sms:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }
.act-btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.donor-flag { font-size: 12.5px; color: var(--text-2); text-align: center; }
.donor-flag button { color: var(--text-2); text-decoration: underline; font-size: 12.5px; }
.donor-flag button:hover { color: var(--red); }

/* ============================================================
   CAMPS
   ============================================================ */
.camps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.camp-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 26px; display: flex; gap: 20px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.camp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.camp-date {
  width: 76px; flex-shrink: 0; border-radius: 16px; overflow: hidden; text-align: center;
  border: 1.5px solid var(--border); background: #fff; height: fit-content;
  font-family: var(--font-head);
}
.camp-date .m { background: var(--grad-red); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; padding: 6px 0; text-transform: uppercase; }
.camp-date .d { font-size: 27px; font-weight: 800; padding: 8px 0 2px; color: var(--navy); }
.camp-date .y { font-size: 11.5px; color: var(--text-2); padding-bottom: 8px; }
.camp-body { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.camp-body h3 { font-size: 18.5px; }
.camp-meta { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-2); }
.camp-meta span { display: flex; gap: 8px; align-items: center; }
.camp-meta svg { width: 15px; height: 15px; color: var(--red); flex-shrink: 0; }
.camp-progress { margin-top: 6px; }
.camp-progress .bar { height: 8px; border-radius: 6px; background: #F1F4F8; overflow: hidden; }
.camp-progress .fill { height: 100%; border-radius: 6px; background: var(--grad-red); transition: width 1.2s var(--ease); }
.camp-progress .nums { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); margin-top: 6px; font-weight: 500; }
.camp-foot { display: flex; align-items: center; gap: 12px; margin-top: 8px; }

/* ============================================================
   STORIES
   ============================================================ */
.stories-band { background: linear-gradient(180deg, var(--bg) 0%, #FDF1F3 55%, var(--bg) 100%); }
.stories-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.story-card {
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .95); border-radius: var(--r-xl);
  padding: 32px; box-shadow: var(--shadow-sm); position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.story-card .quote-mark { font-family: Georgia, serif; font-size: 74px; line-height: .6; color: rgba(217, 31, 58, .18); display: block; margin-bottom: 16px; }
.story-card p { font-size: 16px; color: var(--text); font-style: italic; margin-bottom: 22px; }
.story-who { display: flex; align-items: center; gap: 13px; }
.story-who .avatar { width: 46px; height: 46px; font-size: 18px; border-radius: 13px; }
.story-who .n { font-weight: 700; font-size: 15px; font-family: var(--font-head); }
.story-who .r { font-size: 13px; color: var(--text-2); }
.story-stars { display: flex; gap: 3px; color: #F5A623; margin-left: auto; }
.story-stars svg { width: 15px; height: 15px; }

/* ============================================================
   FACTS / COMPATIBILITY
   ============================================================ */
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.fact-list { display: flex; flex-direction: column; gap: 16px; }
.fact-item {
  display: flex; gap: 16px; background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.fact-item:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.fact-item .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; }
.fact-item .ico svg { width: 22px; height: 22px; }
.fact-item h4 { font-size: 16px; margin-bottom: 4px; }
.fact-item p { font-size: 14px; color: var(--text-2); }

.compat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 30px; box-shadow: var(--shadow-md); position: sticky; top: calc(var(--nav-h) + 20px);
}
.compat-card h3 { font-size: 20px; margin-bottom: 6px; }
.compat-card > p { font-size: 14px; color: var(--text-2); margin-bottom: 20px; }
.bg-selector { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.bg-selector button {
  height: 52px; border-radius: 13px; border: 1.5px solid var(--border);
  font-family: var(--font-head); font-weight: 700; font-size: 16.5px; color: var(--text);
  background: #fff; transition: all .2s var(--ease);
}
.bg-selector button:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.bg-selector button.active { background: var(--grad-red); color: #fff; border-color: transparent; box-shadow: var(--shadow-red); }
.compat-result { display: grid; gap: 14px; }
.compat-row { border-radius: 15px; padding: 16px 18px; }
.compat-row.give { background: var(--green-soft); }
.compat-row.receive { background: var(--blue-soft); }
.compat-row .lbl { font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-family: var(--font-head); display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.compat-row.give .lbl { color: var(--green); }
.compat-row.receive .lbl { color: var(--blue); }
.compat-row .lbl svg { width: 15px; height: 15px; }
.compat-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.compat-pills span { background: #fff; border-radius: 9px; padding: 6px 13px; font-weight: 700; font-family: var(--font-head); font-size: 14px; box-shadow: var(--shadow-sm); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; transition: box-shadow .3s, border-color .3s;
}
.faq-item.open { box-shadow: var(--shadow-md); border-color: rgba(217, 31, 58, .28); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 21px 26px; text-align: left;
  font-family: var(--font-head); font-weight: 600; font-size: 16.5px; color: var(--text);
}
.faq-q .chev {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--red-soft); color: var(--red);
  display: grid; place-items: center; transition: transform .3s var(--ease), background .3s, color .3s;
}
.faq-q .chev svg { width: 16px; height: 16px; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); background: var(--red); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a-inner { padding: 0 26px 24px; color: var(--text-2); font-size: 15.5px; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { padding: 0 0 96px; }
.cta-card {
  position: relative; overflow: hidden;
  background: var(--grad-red);
  border-radius: var(--r-2xl); padding: 74px 60px;
  text-align: center; color: #fff;
  box-shadow: var(--shadow-red-lg);
}
.cta-card::before, .cta-card::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.cta-card::before { width: 420px; height: 420px; top: -220px; right: -140px; }
.cta-card::after { width: 340px; height: 340px; bottom: -190px; left: -110px; }
.cta-card .drop-float {
  position: absolute; opacity: .12; color: #fff; animation: floaty 7s ease-in-out infinite;
}
.cta-card h2 { position: relative; color: #fff; font-size: clamp(30px, 3.8vw, 46px); font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; }
.cta-card p { position: relative; font-size: 18px; opacity: .92; max-width: 620px; margin: 0 auto 36px; }
.cta-actions { position: relative; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, .75); position: relative; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 320px at 88% 0%, rgba(217, 31, 58, .14), transparent 60%);
}
.footer-warning {
  position: relative;
  background: rgba(217, 31, 58, .14); border-bottom: 1px solid rgba(217, 31, 58, .3);
  padding: 15px 0;
}
.footer-warning .container { display: flex; gap: 12px; align-items: center; justify-content: center; text-align: center; }
.footer-warning svg { width: 20px; height: 20px; color: #FF8FA0; flex-shrink: 0; }
.footer-warning p { font-size: 13.5px; color: #FFD3DA; font-weight: 500; }

.footer-main { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; padding: 64px 0 48px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 14.5px; margin: 18px 0 22px; max-width: 340px; }
.footer h4 { color: #fff; font-size: 15.5px; margin-bottom: 20px; letter-spacing: .3px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14.5px; transition: color .2s, transform .2s; display: inline-block; }
.footer-links a:hover { color: #fff; transform: translateX(4px); }
.footer-contact { display: flex; flex-direction: column; gap: 15px; }
.footer-contact div { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--red-light); flex-shrink: 0; margin-top: 2px; }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
  transition: background .25s, transform .25s;
}
.footer-social a:hover { background: var(--red); transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; color: #fff; }
.footer-bottom {
  position: relative; border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 13.5px;
}
.footer-bottom .made { display: flex; align-items: center; gap: 6px; }
.footer-bottom .made svg { width: 14px; height: 14px; color: var(--red-light); animation: heartbeat 1.6s infinite; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 400px at 88% 0%, rgba(217, 31, 58, .10), transparent 60%),
    linear-gradient(180deg, #FFF5F6 0%, var(--bg) 100%);
  padding: 58px 0 46px; text-align: center;
}
.page-hero h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -1px; color: var(--navy); margin-top: 16px; }
.page-hero h1 .accent { color: var(--red); }
.page-hero p { color: var(--text-2); font-size: 17.5px; max-width: 640px; margin: 14px auto 0; }
.breadcrumb { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb svg { width: 13px; height: 13px; opacity: .5; }

/* ============================================================
   FORMS / WIZARD
   ============================================================ */
.form-shell { max-width: 860px; margin: 0 auto; }
.form-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 40px; box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-section-title {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
  margin: 34px 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.form-section-title:first-child { margin-top: 0; }
.form-section-title .n {
  width: 32px; height: 32px; border-radius: 10px; background: var(--red-soft); color: var(--red);
  display: grid; place-items: center; font-size: 15px; flex-shrink: 0;
}
.hint { font-size: 13px; color: var(--text-2); margin-top: 7px; }
.field .check-row { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1.5px solid var(--border); border-radius: var(--r-lg); transition: border-color .2s, background .2s; cursor: pointer; }
.check-row:hover { border-color: rgba(217, 31, 58, .35); }
.check-row.checked { border-color: var(--red); background: var(--red-softer); }
.check-row input { width: 20px; height: 20px; accent-color: var(--red); margin-top: 3px; flex-shrink: 0; cursor: pointer; }
.check-row .t { font-weight: 600; font-size: 14.5px; }
.check-row .s { font-size: 13px; color: var(--text-2); }

.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.field .radio-card {
  display: block;
  border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 16px;
  text-align: center; cursor: pointer; transition: all .2s var(--ease); background: #fff;
}
.radio-card:hover { border-color: rgba(217, 31, 58, .4); transform: translateY(-2px); }
.radio-card.selected { border-color: var(--red); background: var(--red-softer); box-shadow: 0 0 0 4px rgba(217, 31, 58, .1); }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card .ico { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.radio-card .ico svg { width: 21px; height: 21px; }
.radio-card .t { font-weight: 700; font-size: 14px; font-family: var(--font-head); }
.radio-card .s { font-size: 12px; color: var(--text-2); margin-top: 3px; }

/* Blood group quick-pick pills */
.bg-pills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.bg-pill {
  height: 54px; border-radius: 13px; border: 1.5px solid var(--border); background: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  transition: all .2s var(--ease);
  touch-action: manipulation;
  min-height: 48px;
}
.bg-pill:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.bg-pill.selected { background: var(--grad-red); border-color: transparent; color: #fff; box-shadow: var(--shadow-red); }

/* Wizard steps */
.wizard-steps { display: flex; justify-content: center; gap: 0; margin-bottom: 38px; overflow-x: auto; padding-bottom: 4px; }
.wstep { display: flex; align-items: center; }
.wstep .dot-wrap { display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 100px; }
.wstep .dot {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--border); background: #fff; color: var(--text-2);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700;
  transition: all .3s var(--ease); flex-shrink: 0;
}
.wstep .dot svg { width: 20px; height: 20px; }
.wstep .lbl { font-size: 12px; font-weight: 600; color: var(--text-2); font-family: var(--font-head); text-align: center; white-space: nowrap; }
.wstep.active .dot { border-color: var(--red); background: var(--grad-red); color: #fff; box-shadow: var(--shadow-red); }
.wstep.active .lbl { color: var(--red); }
.wstep.done .dot { border-color: var(--green); background: var(--green); color: #fff; }
.wstep.done .lbl { color: var(--green); }
.wstep .line { width: 60px; height: 2.5px; background: var(--border); margin: 0 4px 26px; border-radius: 2px; flex-shrink: 0; }
.wstep.done .line { background: var(--green); }
.wizard-pane { display: none; }
.wizard-pane.active { display: block; animation: fadeUp .4s var(--ease); }
.wizard-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.wizard-nav .btn { min-width: 120px; }

/* Success panel */
.success-panel { text-align: center; padding: 30px 10px; }
.success-ico {
  width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 50%;
  background: var(--green-soft); color: var(--green); display: grid; place-items: center;
  animation: popIn .5s var(--ease);
}
.success-ico svg { width: 46px; height: 46px; }
.success-panel h2 { font-size: 30px; color: var(--navy); margin-bottom: 12px; letter-spacing: -.5px; }
.success-panel p { color: var(--text-2); max-width: 480px; margin: 0 auto 8px; }
.ref-chip {
  display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 26px;
  background: var(--navy); color: #fff; border-radius: 13px; padding: 13px 22px;
  font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: 1.5px;
}

/* ============================================================
   FILTER BAR (find donor / requests)
   ============================================================ */
.filter-bar {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 22px; box-shadow: var(--shadow-md); margin-bottom: 30px;
  position: relative; z-index: 10;
}
.filter-fields { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 14px; align-items: end; }
.filter-toggles { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--text-2); }
.switch input { position: absolute; opacity: 0; }
.switch .track {
  width: 44px; height: 25px; border-radius: 100px; background: #D6DEE8; position: relative; transition: background .25s; flex-shrink: 0;
}
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
  transition: transform .25s var(--ease);
}
.switch input:checked + .track { background: var(--red); }
.switch input:checked + .track::after { transform: translateX(19px); }
.switch input:focus-visible + .track { outline: 3px solid rgba(217, 31, 58, .45); outline-offset: 2px; }

.results-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.results-head h2 { font-size: 22px; }
.results-head .count { color: var(--red); }
.sort-wrap { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.sort-wrap select { height: 44px; border-radius: 11px; padding: 0 36px 0 14px; font-size: 14px; }

.empty-state { text-align: center; padding: 70px 20px; }
.empty-state .ico { width: 88px; height: 88px; margin: 0 auto 22px; border-radius: 26px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.empty-state .ico svg { width: 40px; height: 40px; }
.empty-state h3 { font-size: 22px; margin-bottom: 10px; }
.empty-state p { color: var(--text-2); max-width: 440px; margin: 0 auto 24px; }

/* ============================================================
   GUIDE PAGE
   ============================================================ */
.elig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.elig-card { border-radius: var(--r-xl); padding: 32px; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-sm); }
.elig-card h3 { display: flex; align-items: center; gap: 12px; font-size: 20px; margin-bottom: 20px; }
.elig-card h3 .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.elig-card h3 .ico svg { width: 20px; height: 20px; }
.elig-card ul { display: flex; flex-direction: column; gap: 13px; }
.elig-card li { display: flex; gap: 11px; font-size: 15px; color: var(--text-2); align-items: flex-start; }
.elig-card li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }
.elig-can li svg { color: var(--green); }
.elig-cant li svg { color: var(--red); }

.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: pstep; }
.process-step {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 28px 24px;
  box-shadow: var(--shadow-sm); position: relative; counter-increment: pstep;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.process-step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.process-step::before {
  content: "0" counter(pstep);
  font-family: var(--font-head); font-weight: 800; font-size: 42px;
  color: rgba(217, 31, 58, .12); position: absolute; top: 14px; right: 20px; line-height: 1;
}
.process-step .ico { width: 52px; height: 52px; border-radius: 15px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; margin-bottom: 18px; }
.process-step .ico svg { width: 25px; height: 25px; }
.process-step h4 { font-size: 16.5px; margin-bottom: 8px; }
.process-step p { font-size: 13.5px; color: var(--text-2); }

/* ============================================================
   LOGIN / DASHBOARD DEMO
   ============================================================ */
.auth-shell { max-width: 460px; margin: 0 auto; }
.auth-card {
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .95); border-radius: var(--r-xl);
  padding: 42px 38px; box-shadow: var(--shadow-lg); text-align: center;
}
.auth-card .brand-mark { width: 66px; height: 66px; margin: 0 auto 20px; }
.auth-card h1 { font-size: 27px; letter-spacing: -.5px; margin-bottom: 8px; }
.auth-card > p { color: var(--text-2); font-size: 15px; margin-bottom: 28px; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--text-2); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dash-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-sm); }
.dash-card h4 { font-size: 14px; color: var(--text-2); font-weight: 600; margin-bottom: 10px; font-family: var(--font-body); }
.dash-card .big { font-family: var(--font-head); font-weight: 800; font-size: 26px; }
.progress-ring { height: 10px; background: #F1F4F8; border-radius: 6px; overflow: hidden; margin-top: 12px; }
.progress-ring .fill { height: 100%; background: var(--grad-red); border-radius: 6px; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(13, 30, 56, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; animation: fadeIn .25s var(--ease); }
.modal {
  background: #fff; border-radius: var(--r-xl); max-width: 480px; width: 100%;
  padding: 36px; box-shadow: var(--shadow-lg); position: relative;
  animation: popIn .35s var(--ease); max-height: 90vh; overflow-y: auto;
}
.modal h3 { font-size: 21px; margin-bottom: 8px; }
.modal > p { color: var(--text-2); font-size: 14.5px; margin-bottom: 22px; }
.modal-close {
  position: absolute; top: 18px; right: 18px; width: 38px; height: 38px;
  border-radius: 50%; background: #F1F4F8; display: grid; place-items: center;
  transition: background .2s, transform .2s;
}
.modal-close:hover { background: var(--red-soft); color: var(--red); transform: rotate(90deg); }
.modal-close svg { width: 17px; height: 17px; }

/* Toast */
.toast-wrap { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  display: flex; align-items: center; gap: 11px;
  background: var(--navy-deep); color: #fff; border-radius: 14px;
  padding: 14px 22px; font-size: 14.5px; font-weight: 500;
  box-shadow: var(--shadow-lg); animation: toastIn .35s var(--ease);
  max-width: min(92vw, 480px);
}
.toast svg { width: 19px; height: 19px; flex-shrink: 0; }
.toast.success svg { color: #4ADE80; }
.toast.error svg { color: #FF8FA0; }

/* ============================================================
   VITAL GLASS ADDITIONS (from Stitch design system)
   ============================================================ */

/* Glass panel — Level 2 elevation per Vital Glass spec */
.glass-panel {
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(20, 43, 77, .05);
}

/* Dotted ambience for form journeys (post request / become donor) */
.dotted-bg {
  background-image:
    radial-gradient(rgba(20, 43, 77, .055) 1px, transparent 1px),
    radial-gradient(720px 420px at 100% 0%, rgba(217, 31, 58, .06), transparent 65%),
    radial-gradient(720px 420px at 0% 100%, rgba(74, 95, 132, .08), transparent 65%);
  background-size: 22px 22px, 100% 100%, 100% 100%;
}

/* Dynamic results headline (find donor) */
.results-hero h1 { color: var(--red); }
.results-hero h1 .accent { color: var(--red); }

/* Live "broadcasting" chip with ping dot */
.live-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .85); border: 1px solid rgba(217, 31, 58, .3);
  color: var(--red); border-radius: 100px; padding: 9px 18px;
  font-family: var(--font-head); font-weight: 600; font-size: 13.5px;
}
.live-chip .ping { position: relative; width: 11px; height: 11px; flex-shrink: 0; }
.live-chip .ping::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--red); opacity: .75; animation: ping 1.4s cubic-bezier(0, 0, .2, 1) infinite;
}
.live-chip .ping::after { content: ""; position: absolute; inset: 1.5px; border-radius: 50%; background: var(--red); }
@keyframes ping { 75%, 100% { transform: scale(2.1); opacity: 0; } }

/* Success heart icon v2 — gradient heart + glow ring + check badge */
.success-heart { position: relative; width: 116px; height: 116px; margin: 0 auto 28px; }
.success-heart .halo {
  position: absolute; inset: -26px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 179, 178, .75) 0%, rgba(255, 218, 217, .4) 45%, rgba(255, 218, 217, 0) 72%);
  animation: haloPulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
}
.success-heart .core {
  position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%;
  background: var(--grad-red); display: grid; place-items: center;
  box-shadow: var(--shadow-red-lg); animation: popIn .5s var(--ease);
}
.success-heart .core > svg { width: 52px; height: 52px; color: #fff; animation: heartbeat 1.6s ease-in-out infinite; }
.success-heart .badge {
  position: absolute; z-index: 2; right: -4px; bottom: -4px;
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  display: grid; place-items: center; color: var(--green);
}
.success-heart .badge svg { width: 20px; height: 20px; }
@keyframes haloPulse { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: .25; transform: scale(1.08); } }

/* Reference panel (success screens) */
.ref-panel {
  background: #F2F4F6; border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 24px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin: 24px 0; text-align: left;
}
.ref-panel .lbl { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--navy); opacity: .65; font-family: var(--font-head); }
.ref-panel .val { font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: .5px; color: var(--text); }

/* Split shell — emotive left panel + form right (become donor) */
.split-shell { display: grid; grid-template-columns: .9fr 1.35fr; gap: 40px; align-items: start; }
.split-shell[hidden] { display: none; }
.split-side { position: sticky; top: calc(var(--nav-h) + 24px); }
.split-side h2 { font-size: clamp(30px, 3vw, 42px); font-weight: 800; letter-spacing: -1px; color: var(--navy); margin-bottom: 16px; }
.split-side h2 .accent { color: var(--red); }
.split-side > p { color: var(--text-2); font-size: 16.5px; margin-bottom: 26px; }
.emotive-card {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(160deg, #16344F 0%, #1D4E68 55%, #2E7D8A 100%);
  min-height: 240px; padding: 26px; display: flex; align-items: flex-end;
  box-shadow: var(--shadow-md); margin-bottom: 22px;
}
.emotive-card .caption { position: relative; z-index: 2; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.emotive-card .deco { position: absolute; pointer-events: none; }
.trust-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trust-mini {
  display: flex; gap: 12px; align-items: center;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.trust-mini .ico { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; }
.trust-mini .ico svg { width: 20px; height: 20px; }
.trust-mini .t { font-weight: 700; font-size: 14px; font-family: var(--font-head); }
.trust-mini .s { font-size: 12.5px; color: var(--text-2); }

/* Inline trust markers under form cards */
.trust-inline { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 22px; }
.trust-inline span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.trust-inline svg { width: 16px; height: 16px; color: var(--red); }

/* Ambient WebGL shader layer (heartbeat) */
.shader-holder { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shader-holder canvas { width: 100%; height: 100%; display: block; opacity: .5; }

/* ============================================================
   UTILITIES & ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }

.tilt { transform-style: preserve-3d; will-change: transform; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(.7); } 70% { transform: scale(1.04); } 100% { opacity: 1; transform: scale(1); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.22); } 28% { transform: scale(1); } 42% { transform: scale(1.16); } 56% { transform: scale(1); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes pulse-ring { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.28); opacity: 0; } }
@keyframes ecg { 0% { stroke-dashoffset: 640; opacity: 0; } 8% { opacity: 1; } 62% { stroke-dashoffset: 0; opacity: 1; } 78% { opacity: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
  .search-fields { grid-template-columns: repeat(4, 1fr); }
  .search-card .btn-search { grid-column: 1 / -1; }
  .filter-fields { grid-template-columns: repeat(4, 1fr); }
  .filter-fields .btn { grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-cta .btn { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 10px; padding-top: 46px; }
  .hero-visual { height: 420px; order: -1; }
  .steps-grid, .why-grid, .req-grid, .donor-grid { grid-template-columns: repeat(2, 1fr); }
  .step-arrow { display: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid { grid-template-columns: 1fr; }
  .compat-card { position: static; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) and (min-width: 769px) {
  .split-shell { grid-template-columns: 1fr; }
  .split-side { position: static; }
}
/* ---- Tablet (768px) ---- */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .announce { font-size: 13px; }
  .announce .container { justify-content: center; flex-wrap: wrap; gap: 8px; }
  .announce-right { display: none; }
  .split-shell { grid-template-columns: 1fr; }
  .split-side { position: static; }
  .trust-mini-grid { grid-template-columns: 1fr; }
  .ref-panel { justify-content: center; text-align: center; }
  .ref-panel .lbl { text-align: center; }
  .hero h1 { letter-spacing: -0.8px; }
  .hero-visual { height: 300px; }
  .hero-badges { gap: 10px; }
  .hero-badge { padding: 10px 14px 10px 10px; }
  .search-card { padding: 20px 18px; }
  .search-fields { grid-template-columns: 1fr 1fr; gap: 12px; }
  .search-card .btn-search { grid-column: 1 / -1; min-height: 52px; }
  .steps-grid, .why-grid, .req-grid, .donor-grid, .camps-grid, .stories-grid, .elig-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 44px 22px; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }
  .form-card { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .radio-cards { grid-template-columns: 1fr; }
  .radio-cards-tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .radio-cards-tiles .radio-card { padding: 12px 6px; }
  .radio-cards-tiles .radio-card .ico { width: 36px; height: 36px; margin-bottom: 8px; }
  .radio-cards-tiles .radio-card .ico svg { width: 18px; height: 18px; }
  .radio-cards-tiles .radio-card .t { font-size: 12.5px; }
  .bg-pills { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .wstep .line { width: 28px; }
  .wstep .dot-wrap { min-width: 80px; }
  .filter-fields { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
  .section.tight { padding: 44px 0; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { justify-content: center; text-align: center; flex-direction: column; }
  .float-chip { display: none; }
  .dash-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  /* Nav CTA button stays hidden alongside the burger below 1080px — brand + button + burger
     don't fit in one row on phones/tablets; Register is already in the burger drawer. */
  /* Modal full-width on mobile */
  .modal { padding: 28px 20px; border-radius: 20px 20px 0 0; max-height: 85vh; }
  .modal-overlay { padding: 0; align-items: flex-end; }
  /* Results head stacks */
  .results-head { flex-direction: column; align-items: flex-start; }
  .results-head .btn { width: 100%; justify-content: center; }
}
/* ---- Phone (480px) ---- */
@media (max-width: 480px) {
  :root { --nav-h: 68px; }
  .container { padding: 0 16px; }
  .announce-left { font-size: 12.5px; }
  .brand-name { font-size: 18px; }
  .brand-sub { display: none; }
  .hero h1 { font-size: 34px; letter-spacing: -.6px; }
  .hero-sub { font-size: 16px; }
  .hero-badges { flex-direction: column; gap: 8px; }
  .hero-badge { width: 100%; }
  .search-fields, .filter-fields { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 16px 14px; gap: 10px; }
  .stat-card > span:last-child { min-width: 0; }
  .stat-ico { width: 40px; height: 40px; border-radius: 12px; }
  .stat-ico svg { width: 20px; height: 20px; }
  .stat-num { font-size: 22px; }
  .stat-label { font-size: 13px; }
  .stat-sub { font-size: 11.5px; }
  .bg-pills { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .bg-pill { height: 48px; font-size: 14px; }
  .bg-selector { grid-template-columns: repeat(4, 1fr); }
  .donor-actions { grid-template-columns: 1fr; }
  .donor-actions .btn { min-height: 52px; }
  .wizard-steps { justify-content: flex-start; }
  .wstep .dot-wrap { min-width: 70px; }
  .wstep .lbl { font-size: 10px; }
  .wstep .line { width: 20px; }
  .cta-card { padding: 36px 16px; border-radius: 20px; }
  .cta-card h2 { font-size: 26px; }
  .cta-card p { font-size: 15px; }
  .section-head h2 { font-size: 26px; }
  .section { padding: 44px 0; }
  .section.tight { padding: 34px 0; }
  .form-card { padding: 20px 14px; }
  .trust-band { padding: 40px 0; }
  .trust-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 40px 0 32px; }
  .page-hero h1 { font-size: 28px; }
  .filter-bar { padding: 16px 14px; }
  .filter-bar .btn { min-height: 50px; width: 100%; }
  .req-card, .donor-card { padding: 18px 16px; }
  .camp-card { flex-direction: column; }
  .camp-date { width: 100%; display: flex; gap: 10px; align-items: center; justify-content: flex-start; border-radius: 12px; }
  .camp-date .m { padding: 8px 12px; border-radius: 8px; }
  .footer-main { gap: 24px; }
  .modal-close { width: 34px; height: 34px; top: 14px; right: 14px; }
}
/* ---- Small phone (360px) ---- */
@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .hero h1 { font-size: 28px; }
  .bg-pills { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 16px; }
  .nav-burger { width: 42px; height: 42px; }
  .search-card { padding: 16px 12px; }
  .input, .select { height: 52px; font-size: 15px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
