/* =============================================================
   Lifeline — Blood Donor Community
   Design system · light theme · red + off-white
   ============================================================= */

:root {
  /* Core palette */
  --red-900: #4A0710;
  --red-800: #6B0B18;
  --red-700: #8C0D1F;
  --red-600: #A50E27;
  --red:     #C8102E;
  --red-500: #D92142;
  --red-300: #F0A6B1;
  --red-100: #FBE3E7;
  --red-50:  #FDF2F4;

  --paper:      #FBF7F4;
  --paper-2:    #F5EDE9;
  --surface:    #FFFFFF;
  --surface-2:  #FFF9F8;

  --ink:   #26141A;
  --ink-2: #5B454C;
  --muted: #8A747B;
  --line:  #EBDFDA;
  --line-2:#E1D2CC;

  --ok:    #1F8A5B;
  --ok-bg: #E7F5EE;
  --warn:  #B4700B;
  --warn-bg:#FBF0DC;
  --danger:#B3122B;

  /* Type */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --font-display: "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, sans-serif;

  /* Shape + depth */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --sh-1: 0 1px 2px rgba(74, 7, 16, .05), 0 6px 18px -12px rgba(74, 7, 16, .25);
  --sh-2: 0 2px 6px rgba(74, 7, 16, .06), 0 18px 40px -22px rgba(74, 7, 16, .35);
  --sh-3: 0 24px 60px -28px rgba(140, 13, 31, .45);

  --header-h: 68px;
  --ease: cubic-bezier(.22, .68, .32, 1);
}

/* --------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* No browser-default blue rings on click; themed ring for keyboard users only. */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--red-500); outline-offset: 2px; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
img, svg { display: block; max-width: 100%; }
input, button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--red-700); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.015em; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.16rem; }
p { overflow-wrap: break-word; }
ul, ol { padding-left: 1.15rem; }
::selection { background: var(--red); color: #fff; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: min(1180px, 100% - 1.6rem); } }

.muted { color: var(--muted); }
.small { font-size: .845rem; }
.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.hidden { display: none !important; }
.only-mobile { display: none !important; }
@media (max-width: 900px) { .only-mobile { display: flex !important; } .desktop { display: none !important; } }

.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 90;
  background: linear-gradient(90deg, var(--red-500), var(--red-800));
  box-shadow: 0 0 10px rgba(200, 16, 46, .55);
  transition: width .12s linear;
}

.skip {
  position: fixed; top: -60px; left: 12px; z-index: 200;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 10px;
  transition: top .2s;
}
.skip:focus { top: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--red-500); outline-offset: 2px; border-radius: 6px; }

.no-scroll { overflow: hidden; }

/* ------------------------------------------------- utilities */
[hidden] { display: none !important; }
.ico { display: inline-flex; width: 1.15em; height: 1.15em; flex: none; }
.ico svg { width: 100%; height: 100%; }

.btn {
  --bg: var(--surface); --fg: var(--ink);
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .72rem 1.15rem;
  border-radius: 999px;
  font-weight: 650; font-size: .95rem;
  border: 1.5px solid var(--line-2);
  background: var(--bg); color: var(--fg);
  transition: transform .18s var(--ease), box-shadow .22s var(--ease), background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-2); color: var(--fg); }
.btn:active { transform: translateY(0) scale(.985); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-sm { padding: .55rem .95rem; font-size: .875rem; }
.btn-xs { padding: .35rem .7rem; font-size: .78rem; border-radius: 999px; }
.btn-primary { --bg: linear-gradient(160deg, var(--red-500), var(--red-700)); --fg: #fff; border-color: transparent; box-shadow: 0 10px 26px -14px rgba(200, 16, 46, .8); }
.btn-primary:hover { box-shadow: 0 16px 34px -14px rgba(200, 16, 46, .9); }
.btn-ghost { --bg: transparent; --fg: var(--ink-2); }
.btn-ghost:hover { border-color: var(--red-300); color: var(--red-700); background: var(--red-50); }
.btn-ghost.danger:hover, .btn.danger:hover { border-color: #F0B4BD; color: var(--danger); background: #FDEDEF; }
.btn-light { --bg: #fff; --fg: var(--red-700); border-color: transparent; }
.btn-ghost-light { --bg: transparent; --fg: #F6DEE2; border-color: rgba(255, 255, 255, .3); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.link-btn { color: var(--red-700); font-weight: 650; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--red); }

@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 247, 244, .82);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 10px 30px -26px rgba(74, 7, 16, .6); background: rgba(255, 255, 255, .92); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .6rem; color: inherit; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 8px 20px -12px rgba(74, 7, 16, .5);
  position: relative; overflow: hidden; flex: none;
}
.brand-img { width: 78%; height: 78%; object-fit: contain; animation: drop-beat 2.4s var(--ease) infinite; }
.brand-accent { color: var(--red); }
.brand-accent-light { color: #FF6B81; }
@keyframes drop-beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.14); } 24% { transform: scale(1); } 36% { transform: scale(1.08); } 50% { transform: scale(1); } }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.06rem; letter-spacing: -.02em; }
.brand-text em { font-style: normal; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.navlink {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem .8rem; border-radius: 999px;
  font-size: .92rem; font-weight: 600; color: var(--ink-2);
  position: relative; transition: color .2s, background .2s;
}
.navlink:hover { color: var(--red-700); background: var(--red-50); }
.navlink.is-active { color: var(--red-700); }
.navlink.is-active::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 20px; height: 3px; border-radius: 3px; background: var(--red);
}
.navlink[data-nav-urgent] { color: var(--red-700); }
.navlink[data-nav-urgent] .ico { animation: siren 2.6s var(--ease) infinite; }
@keyframes siren { 0%, 100% { transform: rotate(0); } 8% { transform: rotate(-9deg); } 16% { transform: rotate(9deg); } 24% { transform: rotate(0); } }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-actions { flex: none; }
@media (max-width: 560px) {
  .header-actions .btn-sm span:not(.ico) { display: none; }
  .header-actions .btn-sm { padding: .6rem .72rem; }
  .brand-text em { display: none; }
}
@media (max-width: 400px) {
  .header-inner { gap: .5rem; }
  .brand-text strong { font-size: .98rem; }
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  position: relative; transition: .2s;
}
.icon-btn:hover { border-color: var(--red-300); color: var(--red-700); }
.icon-btn[aria-pressed="true"] { border-color: var(--red); color: var(--red); background: var(--red-50); }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px var(--surface); }

.nav.mobile {
  flex-direction: column; align-items: stretch; gap: 0;
  padding: .4rem 1.25rem 1rem; border-top: 1px solid var(--line);
  background: var(--surface); margin-left: 0;
}
.nav.mobile .navlink { padding: .85rem .4rem; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.nav.mobile .navlink.is-active::after { display: none; }

.netbar {
  display: flex; align-items: center; gap: .6rem; justify-content: center;
  background: var(--warn-bg); color: #6B4407; border-bottom: 1px solid #EBD6AE;
  padding: .55rem 1rem; font-size: .85rem; text-align: center;
}

@media (max-width: 480px) {
  .hero-actions .btn, .success-actions .btn, .my-actions .btn, .empty-actions .btn {
    white-space: normal; text-align: center; justify-content: center;
  }
}
@media (max-width: 360px) {
  .bb-item { font-size: .62rem; padding: .3rem .35rem; }
}

@keyframes rise-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero .eyebrow    { animation: rise-in .7s var(--ease) .05s both; }
.hero h1          { animation: rise-in .7s var(--ease) .16s both; }
.hero-sub         { animation: rise-in .7s var(--ease) .27s both; }
.hero .quick-search { animation: rise-in .7s var(--ease) .38s both; }
.hero-actions     { animation: rise-in .7s var(--ease) .49s both; }
.hero-trust       { animation: rise-in .7s var(--ease) .6s both; }
.hero-visual      { animation: rise-in .9s var(--ease) .3s both; }

/* floating ambient drops in the hero */
.float-drops { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.float-drops i {
  position: absolute; bottom: -40px; left: var(--x);
  width: var(--s); height: calc(var(--s) * 1.25);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'%3E%3Cpath d='M12 1.6c.3 0 .5.1.7.4 1.5 2 5.9 7 5.9 11A6.6 6.6 0 0 1 12 29a6.6 6.6 0 0 1-6.6-6c0-4 4.4-9 5.9-11 .2-.3.4-.4.7-.4Z' fill='%23C8102E' fill-opacity='.14'/%3E%3C/svg%3E") no-repeat center / contain;
  animation: float-up var(--d) linear var(--delay) infinite;
  opacity: 0;
}
@keyframes float-up {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  85% { opacity: .9; }
  100% { transform: translateY(-108vh) rotate(14deg); opacity: 0; }
}

/* ---------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(2.6rem, 6vw, 5.2rem) 0 clamp(2rem, 4vw, 3.4rem);
  background:
    radial-gradient(1100px 520px at 88% -10%, rgba(200, 16, 46, .13), transparent 62%),
    radial-gradient(760px 420px at 4% 4%, rgba(240, 166, 177, .3), transparent 60%),
    linear-gradient(180deg, #FFFDFC 0%, var(--paper) 100%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M60 34c1.6 2.4 8 9.8 8 15a8 8 0 1 1-16 0c0-5.2 6.4-12.6 8-15Z' fill='%23C8102E' fill-opacity='.055'/%3E%3C/svg%3E");
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 78%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3.4rem); align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .8rem .35rem .55rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2);
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red-700);
  box-shadow: var(--sh-1);
}
.eyebrow .beat { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(200, 16, 46, .55); animation: beat 1.8s infinite; }
@keyframes beat { 70% { box-shadow: 0 0 0 10px rgba(200, 16, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0); } }

.hero h1 { margin: 1rem 0 .8rem; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--red-600), var(--red-300));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(1rem, 1.5vw, 1.14rem); color: var(--ink-2); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 1.6rem; font-size: .85rem; color: var(--muted); }
.hero-trust span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-trust .ico { color: var(--ok); }

/* quick search */
.quick-search {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: .6rem; display: grid; grid-template-columns: 1fr 150px auto; gap: .5rem;
  box-shadow: var(--sh-2); margin-top: 1.7rem; max-width: 620px;
}
.quick-search input, .quick-search select {
  border: 0; background: transparent; padding: .65rem .8rem; border-radius: var(--r-sm);
  font-size: .95rem; width: 100%;
}
.quick-search input:focus, .quick-search select:focus { outline: none; background: var(--paper-2); }
@media (max-width: 620px) { .quick-search { grid-template-columns: 1fr; } }

/* hero visual */
.hero-visual { position: relative; display: grid; place-items: center; }
.drop-stage {
  position: relative; width: min(320px, 74vw); aspect-ratio: 1;
  display: grid; place-items: center;
}
.drop-stage .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px dashed rgba(200, 16, 46, .28);
  animation: spin 42s linear infinite;
}
.drop-stage .ring.r2 { inset: 12%; border-style: solid; border-color: rgba(200, 16, 46, .14); animation-duration: 30s; animation-direction: reverse; }
.drop-core {
  position: relative; width: 58%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0 12%, var(--red-500) 42%, var(--red-800) 100%);
  box-shadow: var(--sh-3), inset 0 -12px 30px rgba(0, 0, 0, .25);
  display: grid; place-items: center; color: #fff;
  animation: core-pulse 3.2s var(--ease) infinite;
}
@keyframes core-pulse { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.035); } }
.drop-core .ico { width: 44%; height: 44%; opacity: .95; }
.orbit {
  position: absolute; width: 44px; height: 44px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; font-weight: 800; font-size: .82rem; color: var(--red-700);
  box-shadow: var(--sh-1);
}
.orbit.o1 { top: 2%; left: 50%; transform: translateX(-50%); }
.orbit.o2 { bottom: 6%; left: 4%; }
.orbit.o3 { bottom: 6%; right: 4%; }
.orbit.o4 { top: 42%; left: -6%; }
.orbit.o5 { top: 42%; right: -6%; }

/* --------------------------------------------- ECG divider */
.ecg { position: relative; height: 46px; overflow: hidden; }
.ecg svg { width: 100%; height: 100%; }
.ecg .trace, .hero-ecg .trace { stroke: var(--red); stroke-width: 2; fill: none; opacity: .45; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 5.5s linear infinite; }
@keyframes draw { to { stroke-dashoffset: -1200; } }

.hero-ecg { position: absolute; left: 0; right: 0; bottom: 12%; height: 70px; opacity: .5; pointer-events: none; }
.hero-ecg svg { width: 100%; height: 100%; }

.drop-stage .pulse-ring {
  position: absolute; inset: 6%; border-radius: 50%;
  border: 2px solid rgba(200, 16, 46, .34);
  animation: ring 3.4s var(--ease) infinite;
}
.drop-stage .pulse-ring.p2 { animation-delay: 1.7s; }
@keyframes ring { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.22); opacity: 0; } }

.ticker { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; padding: .5rem 0; }
.ticker-track { display: flex; gap: .5rem; width: max-content; animation: ticker 32s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker-item {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .28rem .8rem; border-radius: 999px;
  background: var(--red-50); border: 1px solid var(--red-100);
  color: var(--red-700); font-weight: 700; font-size: .8rem; white-space: nowrap;
}
.ticker-item b { color: var(--red-800); font-variant-numeric: tabular-nums; }
.ticker-item .tdot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -45%; width: 36%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg); transition: left .55s var(--ease); pointer-events: none;
}
.btn-primary:hover::after { left: 115%; }

/* ------------------------------------------------ sections */
.section { padding: clamp(2.6rem, 6vw, 4.6rem) 0; }
.section.alt { background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 2rem; }
.section-head .kicker { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red-700); }
.section-head .kicker::before { content: ''; width: 22px; height: 2px; background: var(--red); border-radius: 2px; }
.section-head h2 { margin: .5rem 0 .5rem; }
.section-head p { color: var(--ink-2); }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.4rem; box-shadow: var(--sh-1);
}
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }

/* ----------------------------------------------- statistics */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin-bottom: 1.2rem; }
.stat-grid-sm { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } .stat-grid-sm { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.1rem 1.15rem; position: relative; overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.stat-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--red-500), var(--red-700));
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.stat-card .sc-ico { position: absolute; right: 12px; top: 12px; color: hsl(var(--hue, 355) 60% 86%); width: 26px; height: 26px; }
.stat-card .sc-ico .ico { width: 100%; height: 100%; }
.stat-value { display: block; font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; color: var(--red-700); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { display: block; font-weight: 700; font-size: .92rem; margin-top: .15rem; }
.stat-sub { display: block; font-size: .78rem; color: var(--muted); }
.stat-mini { padding: .9rem 1rem; }
.stat-mini .stat-value { font-size: 1.5rem; }

.bars { display: grid; gap: .5rem; }
.bar-row { display: grid; grid-template-columns: 46px 1fr 40px; align-items: center; gap: .7rem; color: inherit; padding: .2rem 0; }
.bar-row:hover .bar-fill { filter: brightness(1.08); }
.bar-label { font-weight: 800; font-size: .86rem; color: var(--ink-2); }
.bar-track { height: 12px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.bar-fill {
  display: block; height: 100%; width: var(--w);
  border-radius: 999px;
  background: linear-gradient(90deg, hsl(var(--hue) 74% 62%), hsl(var(--hue) 78% 42%));
  transform-origin: left; animation: grow .9s var(--ease) both;
}
@keyframes grow { from { transform: scaleX(0); } }
.bar-value { font-variant-numeric: tabular-nums; font-weight: 700; font-size: .86rem; text-align: right; color: var(--ink-2); }
.bar-note { margin-top: .8rem; }

/* ------------------------------------------- blood quick pick */
.group-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
@media (max-width: 700px) { .group-grid { grid-template-columns: repeat(2, 1fr); } }
.group-tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: .35rem;
  padding: 1.1rem; border-radius: var(--r-md);
  background: var(--surface); border: 1.5px solid var(--line);
  color: var(--ink); text-align: left;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.group-tile:hover { transform: translateY(-4px); border-color: var(--red-300); box-shadow: var(--sh-2); }
.group-tile .gt-type { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--red-700); }
.group-tile .gt-count { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.group-tile .gt-go { margin-top: auto; font-size: .8rem; font-weight: 700; color: var(--red); opacity: 0; transform: translateX(-6px); transition: .22s var(--ease); }
.group-tile:hover .gt-go { opacity: 1; transform: none; }
.group-tile::after {
  content: ''; position: absolute; right: -18px; bottom: -22px; width: 74px; height: 74px;
  background: var(--red-50); border-radius: 50%; transition: .3s var(--ease);
}
.group-tile:hover::after { transform: scale(1.35); }
.group-tile .gt-drop { position: absolute; right: 12px; top: 12px; width: 26px; height: 26px; color: hsl(355 68% 88%); z-index: 1; transition: .25s var(--ease); }
.group-tile:hover .gt-drop { color: hsl(355 68% 78%); transform: scale(1.12) rotate(-6deg); }
.group-tile .gt-count { background: var(--red-50); border: 1px solid var(--red-100); border-radius: 999px; padding: .1rem .55rem; color: var(--red-700); font-weight: 700; }

/* -------------------------------------------------- badges */
.badge-blood {
  display: inline-grid; place-items: center; flex: none;
  border-radius: 14px;
  background: linear-gradient(160deg, hsl(var(--h, 355) 72% 96%), hsl(var(--h, 355) 68% 91%));
  border: 1.5px solid hsl(var(--h, 355) 62% 82%);
  color: hsl(var(--h, 355) 74% 30%);
  font-weight: 800; letter-spacing: -.02em;
}
.badge-sm { width: 34px; height: 34px; font-size: .78rem; border-radius: 11px; }
.badge-md { width: 44px; height: 44px; font-size: .95rem; }
.badge-lg { width: 56px; height: 56px; font-size: 1.2rem; border-radius: 17px; }
.badge-blood[data-group="A+"]  { --h: 355; } .badge-blood[data-group="A-"]  { --h: 348; }
.badge-blood[data-group="B+"]  { --h: 12;  } .badge-blood[data-group="B-"]  { --h: 6; }
.badge-blood[data-group="AB+"] { --h: 330; } .badge-blood[data-group="AB-"] { --h: 322; }
.badge-blood[data-group="O+"]  { --h: 0;   } .badge-blood[data-group="O-"]  { --h: 352; }

.avatar {
  width: 44px; height: 44px; border-radius: 14px; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: .92rem;
  background: linear-gradient(155deg, hsl(var(--hue, 355) 70% 94%), hsl(var(--hue, 355) 62% 86%));
  color: hsl(var(--hue, 355) 72% 32%);
  border: 1.5px solid hsl(var(--hue, 355) 60% 84%);
}

/* --------------------------------------------------- chips */
.chip-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  padding: .45rem .85rem; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: var(--surface);
  font-size: .86rem; font-weight: 700; color: var(--ink-2);
  transition: .18s var(--ease);
}
.chip:hover { border-color: var(--red-300); color: var(--red-700); }
.chip.is-active { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 8px 20px -12px rgba(200, 16, 46, .9); }
.chip-static { padding: .3rem .6rem; border-radius: 9px; font-size: .8rem; font-weight: 800; border: 1.5px solid var(--line-2); }
.chip-static.yes { background: var(--ok-bg); border-color: #BEE3D0; color: var(--ok); }
.chip-static.no { color: #C4B3B8; background: var(--paper-2); }

/* --------------------------------------------- donor cards */
.toolbar {
  display: grid; gap: .8rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1rem; box-shadow: var(--sh-1); margin-bottom: 1.2rem;
}
.toolbar-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.search-field { position: relative; flex: 1 1 260px; }
.search-field .ico { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-field input { padding-left: 2.5rem; }

.input, .search-field input, select.input, textarea.input {
  width: 100%; padding: .72rem .9rem; border-radius: var(--r-sm);
  border: 1.5px solid var(--line-2); background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--red-300); box-shadow: 0 0 0 4px var(--red-50); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%238A747B' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.2rem; }
.search-field input { padding-left: 2.6rem; }
.switch { display: inline-flex; align-items: center; gap: .55rem; font-size: .88rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.switch input { appearance: none; width: 40px; height: 23px; border-radius: 999px; background: var(--line-2); position: relative; transition: .2s; flex: none; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: .2s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked { background: var(--red); }
.switch input:checked::after { transform: translateX(17px); }

.mode-pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface); }
.mp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.mode-pill.is-live .mp-dot { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.mode-pill.is-local .mp-dot { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-bg); }

.donor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1rem; }
.donor-card {
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid hsl(var(--hue, 355) 66% 80%); border-radius: var(--r-lg);
  padding: 1.15rem; display: flex; flex-direction: column; gap: .8rem;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
  position: relative; overflow: hidden;
}
.donor-card::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--red-500), transparent);
  opacity: 0; transition: opacity .25s;
}
.donor-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--red-100); }
.donor-card:hover::before { opacity: 1; }
.donor-card.is-busy { background: var(--surface-2); }
.donor-card.is-busy .dc-name { color: var(--ink-2); }

.dc-top { display: flex; align-items: center; gap: .75rem; }
.dc-id { min-width: 0; flex: 1; }
.dc-name { font-size: 1.05rem; display: flex; align-items: center; gap: .35rem; }
.dc-name .tick { color: var(--ok); width: 16px; height: 16px; display: inline-flex; }
.dc-name .tick .ico { width: 100%; height: 100%; }
.dc-place { display: flex; align-items: center; gap: .3rem; font-size: .83rem; color: var(--muted); margin-top: .15rem; }
.dc-place .ico { width: 14px; height: 14px; }

.dc-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; font-weight: 700; padding: .28rem .6rem; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); }
.tag .ico { width: 13px; height: 13px; }
.tag-ok { background: var(--ok-bg); border-color: #C9E7D8; color: var(--ok); }
.tag-off { background: var(--warn-bg); border-color: #EBD6AE; color: #7C5409; }
.tag-dist { background: var(--red-50); border-color: var(--red-100); color: var(--red-700); }
.dc-note { font-size: .89rem; color: var(--ink-2); }
.dc-fact { margin-top: auto; }
.dc-actions { display: flex; flex-wrap: wrap; gap: .4rem; }

/* skeleton */
.donor-card.skeleton { pointer-events: none; }
.sk-avatar { width: 44px; height: 44px; border-radius: 14px; background: var(--paper-2); }
.sk-badge { width: 56px; height: 56px; border-radius: 17px; background: var(--paper-2); margin-left: auto; }
.sk-lines { flex: 1; display: grid; gap: .4rem; }
.sk-lines i, .sk-tags i, .sk-line { display: block; height: 12px; border-radius: 6px; background: var(--paper-2); }
.sk-lines i:first-child { width: 60%; } .sk-lines i:last-child { width: 40%; }
.sk-tags { display: flex; gap: .35rem; } .sk-tags i { width: 64px; }
.sk-line { width: 100%; } .sk-line.short { width: 55%; }
.skeleton > * { animation: shimmer 1.4s ease-in-out infinite alternate; }
@keyframes shimmer { from { opacity: .55; } to { opacity: 1; } }

/* ---------------------------------------------- empty state */
.empty {
  grid-column: 1 / -1; text-align: center; padding: 3rem 1.5rem;
  background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-lg);
}
.empty-mark { width: 62px; height: 62px; margin: 0 auto 1rem; border-radius: 20px; display: grid; place-items: center; background: var(--red-50); color: var(--red); }
.empty-mark.ok { background: var(--ok-bg); color: var(--ok); }
.empty-mark .ico { width: 30px; height: 30px; }
.empty h3 { margin-bottom: .4rem; }
.empty p { color: var(--muted); max-width: 46ch; margin: 0 auto 1.2rem; }
.empty-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.empty-soft { padding: 2.4rem 1.5rem; }

/* ------------------------------------------- emergency cards */
.req-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; }
.req-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--red-100); border-radius: var(--r-lg);
  padding: 1.15rem; display: flex; flex-direction: column; gap: .75rem;
  box-shadow: 0 10px 30px -24px rgba(140, 13, 31, .6);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.req-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--red-500), var(--red-700));
}
.req-card.is-critical { border-color: #F3C6CD; background: linear-gradient(180deg, #FFF7F8, #fff); }
.req-card.is-critical::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 120px at 0% 0%, rgba(200, 16, 46, .1), transparent 70%);
}
.req-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.req-card.is-closed { opacity: .72; }
.req-card.is-closed::before { background: var(--line-2); }

.req-head { display: flex; align-items: center; gap: .8rem; position: relative; }
.req-title { flex: 1; min-width: 0; }
.req-title h3 { font-size: 1.06rem; }
.req-hospital { display: flex; gap: .3rem; align-items: flex-start; font-size: .83rem; color: var(--muted); margin-top: .15rem; }
.req-hospital .ico { width: 14px; height: 14px; flex: none; margin-top: .2rem; }
.req-live { display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.req-live .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: beat 1.6s infinite; }
.req-state { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .25rem .55rem; border-radius: 999px; background: var(--paper-2); color: var(--muted); }
.req-state.state-fulfilled { background: var(--ok-bg); color: var(--ok); }

.req-facts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem .8rem; }
.req-facts li { display: flex; flex-direction: column; font-size: .8rem; }
.req-facts span { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.req-facts strong { font-weight: 700; }
.req-count { color: var(--red); font-variant-numeric: tabular-nums; }
.req-count.is-overdue { color: var(--muted); }
.req-note { font-size: .9rem; color: var(--ink-2); background: var(--red-50); border: 1px solid var(--red-100); padding: .6rem .75rem; border-radius: var(--r-sm); }
.req-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }

.feed-loading, .all-clear { display: flex; align-items: center; gap: .6rem; padding: 1.1rem; border-radius: var(--r-md); background: var(--surface); border: 1px dashed var(--line-2); color: var(--muted); font-size: .9rem; }
.all-clear { color: var(--ok); background: var(--ok-bg); border-color: #C9E7D8; border-style: solid; }
.all-clear .ico { width: 18px; height: 18px; }
.see-all { display: inline-block; margin-top: .9rem; font-weight: 700; }

.closed-wrap { margin-top: 1.4rem; }
.closed-wrap summary { cursor: pointer; font-weight: 700; color: var(--ink-2); padding: .5rem 0; }
.closed-list { display: grid; gap: .8rem; margin-top: .6rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* --------------------------------------------- announcements */
.announce {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .9rem 1.1rem; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--red);
  margin-bottom: .7rem; box-shadow: var(--sh-1);
}
.announce-info { border-left-color: #4C7DF0; }
.announce .ico { color: var(--red); width: 20px; height: 20px; margin-top: .15rem; }
.announce-info .ico { color: #3563C9; }
.announce p { font-size: .9rem; color: var(--ink-2); }

/* --------------------------------------------------- forms */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
@media (max-width: 940px) { .form-layout { grid-template-columns: 1fr; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--sh-2); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: .35rem; }
.field > label { font-weight: 700; font-size: .88rem; }
.field .hint { font-size: .78rem; color: var(--muted); }
.field-error { font-size: .8rem; color: var(--danger); font-weight: 600; }
.field.is-invalid .input, .field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #E58496; background: #FFF7F8; }
.field.is-valid .input, .field.is-valid input, .field.is-valid select { border-color: #9FD3BB; }
.form-progress { height: 6px; border-radius: 999px; background: var(--paper-2); overflow: hidden; margin-bottom: 1.2rem; }
.form-progress span { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--red-500), var(--red-700)); transition: width .4s var(--ease); }

.consent { display: flex; gap: .7rem; align-items: flex-start; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .9rem 1rem; }
.consent input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.consent p { font-size: .85rem; color: var(--ink-2); }

.profile-status { display: flex; gap: .8rem; align-items: flex-start; background: var(--ok-bg); border: 1px solid #C9E7D8; border-radius: var(--r-md); padding: .9rem 1rem; margin-bottom: 1.2rem; }
.profile-status .ico { color: var(--ok); width: 20px; height: 20px; flex: none; }
.profile-status div { display: flex; flex-direction: column; }
.profile-status span { font-size: .84rem; color: #14623F; }
.profile-status .link-btn { margin-top: .3rem; text-align: left; }

.loc-ok { display: inline-flex; gap: .4rem; align-items: center; font-size: .84rem; color: var(--ok); font-weight: 600; }
.loc-fallback { display: inline-flex; gap: .4rem; align-items: center; font-size: .84rem; color: var(--warn); font-weight: 600; }

#badgePreview { min-height: 56px; display: flex; align-items: center; }

/* ------------------------------------------------- success */
.success-panel { margin-top: 1.4rem; }
.success-inner {
  text-align: center; padding: clamp(1.4rem, 4vw, 2.4rem);
  background: linear-gradient(180deg, #FFFDFC, var(--surface));
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2);
}
.success-mark { width: 62px; height: 62px; margin: 0 auto .8rem; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); animation: pop .5s var(--ease) both; }
.success-mark .ico { width: 32px; height: 32px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.success-card {
  display: flex; align-items: center; gap: .9rem; text-align: left;
  margin: 1.2rem auto; max-width: 460px; padding: 1rem;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md);
}
.success-card div { display: flex; flex-direction: column; flex: 1; }
.success-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }

/* ------------------------------------------------ how works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 1.4rem 1.2rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: .22s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.step-num { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; background: var(--red-50); color: var(--red-700); border: 1.5px solid var(--red-100); margin-bottom: .8rem; }
.step h3 { margin-bottom: .3rem; }
.step p { font-size: .9rem; color: var(--ink-2); }

/* ------------------------------------------- eligibility */
.elig { display: grid; grid-template-columns: 300px 1fr; gap: 1.6rem; align-items: center; }
@media (max-width: 760px) { .elig { grid-template-columns: 1fr; } }
.elig-form { display: grid; gap: .8rem; }
.elig-out { display: flex; gap: 1.2rem; align-items: center; }
@media (max-width: 560px) { .elig-out { flex-direction: column; text-align: center; } }
.elig-gauge { position: relative; width: 132px; height: 132px; flex: none; }
.elig-gauge svg { transform: rotate(-90deg); }
.elig-gauge .g-bg { fill: none; stroke: var(--paper-2); stroke-width: 10; }
.elig-gauge .g-fg {
  fill: none; stroke: url(#eligGrad); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 339.3; stroke-dashoffset: 339.3;
  transition: stroke-dashoffset 1s var(--ease);
}
.elig-gauge .g-mid {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
}
.elig-gauge .g-mid b { font-size: 1.5rem; color: var(--red-700); letter-spacing: -.03em; display: block; line-height: 1; }
.elig-gauge .g-mid span { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.elig-out.is-ok .g-fg { stroke: var(--ok); }
.elig-out.is-ok .g-mid b { color: var(--ok); }
.elig-copy h3 { margin-bottom: .3rem; }
.elig-copy p { font-size: .9rem; color: var(--ink-2); }

/* ---------------------------------------------- compat box */
.compat { display: grid; grid-template-columns: 240px 1fr; gap: 1.4rem; align-items: start; }
@media (max-width: 760px) { .compat { grid-template-columns: 1fr; } }
.compat-pick { display: flex; flex-direction: column; gap: .4rem; }
.compat-pick label { font-weight: 700; font-size: .88rem; }
.compat-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.compat-note { font-size: .86rem; color: var(--muted); margin: .8rem 0; }

.compat-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.compat-table th, .compat-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); text-align: center; }
.compat-table th:first-child, .compat-table td:first-child { text-align: left; font-weight: 700; }
.compat-table thead th { background: var(--paper-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.compat-table td .yes-dot { color: var(--ok); font-weight: 800; }
.compat-table td .no-dot { color: #D8C8CC; }

/* -------------------------------------------------- toasts */
.toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 120; display: flex; flex-direction: column; gap: .5rem; max-width: min(360px, calc(100vw - 2rem)); }
@media (max-width: 900px) { .toasts { bottom: calc(4.6rem + env(safe-area-inset-bottom)); right: .8rem; left: .8rem; max-width: none; } }
.toast {
  display: flex; align-items: center; gap: .6rem;
  background: #2A1519; color: #FFF3F4; padding: .8rem 1rem; border-radius: var(--r-sm);
  font-size: .89rem; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
  transform: translateY(12px); opacity: 0; transition: .26s var(--ease); cursor: pointer;
}
.toast.in { transform: none; opacity: 1; }
.toast-success { background: #12503A; }
.toast-error { background: #7C0C1E; }
.toast .ico { flex: none; }

/* -------------------------------------------------- modals */
.modal { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 1.2rem; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(38, 20, 26, .5); backdrop-filter: blur(3px); animation: fade .2s ease both; }
@keyframes fade { from { opacity: 0; } }
.modal-card {
  position: relative; width: min(520px, 100%); max-height: 86vh; overflow: auto;
  background: var(--surface); border-radius: var(--r-lg); padding: 1.4rem;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .5);
  animation: rise .26s var(--ease) both;
}
@keyframes rise { from { transform: translateY(16px) scale(.98); opacity: 0; } }
.modal-card h2 { font-size: 1.25rem; margin-bottom: .6rem; }
.modal-body p { color: var(--ink-2); }
.modal-actions { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 1.2rem; }

.reveal-card { text-align: center; }
.reveal-num { font-size: 1.5rem; font-weight: 800; letter-spacing: .01em; color: var(--red-700); font-variant-numeric: tabular-nums; margin: .4rem 0 .6rem; }
.reveal-card .modal-actions { justify-content: center; }

.info-grid { display: grid; gap: 1rem; }
.info-grid dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem .9rem; font-size: .9rem; }
.info-grid dt { color: var(--muted); }
.info-grid dd { font-weight: 650; }

.share-list { display: grid; gap: .4rem; margin-bottom: .6rem; }
.share-row { display: flex; align-items: center; gap: .7rem; padding: .75rem .9rem; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--surface); font-weight: 650; transition: .18s; text-align: left; }
.share-row:hover { border-color: var(--red-300); background: var(--red-50); color: var(--red-700); }

.install-steps { display: grid; gap: .5rem; padding-left: 1.1rem; font-size: .9rem; color: var(--ink-2); }

.offer-list { list-style: none; padding: 0; display: grid; gap: .4rem; margin-top: .4rem; }
.offer-list li { display: flex; justify-content: space-between; gap: .6rem; align-items: center; padding: .55rem .7rem; border-radius: var(--r-sm); background: var(--paper-2); font-size: .88rem; }

.split-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
@media (max-width: 900px) { .split-2 { grid-template-columns: 1fr; } }

/* ---------------------------------------------- admin panel */
.admin-tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); padding-bottom: .6rem; }
.admin-tabs button { padding: .55rem .95rem; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--ink-2); }
.admin-tabs button.is-active { background: var(--red); color: #fff; }
.admin-tabs button:hover:not(.is-active) { background: var(--red-50); color: var(--red-700); }

.gate { max-width: 560px; margin: 2rem auto; text-align: center; }
.gate .gate-uid { font-family: ui-monospace, monospace; background: var(--paper-2); border: 1px solid var(--line-2); padding: .7rem .9rem; border-radius: var(--r-sm); word-break: break-all; margin: 1rem 0; display: flex; gap: .6rem; align-items: center; justify-content: space-between; }
.gate code { background: var(--paper-2); padding: .1rem .35rem; border-radius: 6px; font-size: .85em; }

.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th, .data-table td { padding: .7rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.data-table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--paper-2); }
.data-table tbody tr:hover { background: var(--surface-2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.cell-user { display: flex; gap: .6rem; align-items: center; }
.cell-user div { display: flex; flex-direction: column; }
.cell-actions { display: flex; gap: .3rem; flex-wrap: wrap; }
.pill { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: .2rem .5rem; border-radius: 999px; }
.pill-verified { background: var(--ok-bg); color: var(--ok); }
.pill-pending { background: var(--warn-bg); color: #7C5409; }
.pill-suspended, .pill-cancelled, .pill-expired { background: #F3E4E6; color: #8E1B2C; }
.pill-fulfilled { background: var(--ok-bg); color: var(--ok); }
.pill-off { background: var(--paper-2); color: var(--muted); }

.admin-tools { margin-top: 1.4rem; }
.tool-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: .7rem 0; }
.admin-note { background: var(--red-50); border: 1px solid var(--red-100); border-radius: var(--r-sm); padding: .9rem 1rem; font-size: .86rem; color: var(--ink-2); margin-top: .8rem; }

/* --- admin: view header, filter bar, CSV export --- */
.admin-view-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 1rem;
}
.admin-view-head > div:first-child { max-width: 62ch; }
.admin-view-title { font-size: 1.2rem; margin-bottom: .3rem; }
.admin-view-actions { display: flex; gap: .5rem; flex-wrap: wrap; flex: none; }

.filter-bar {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: .6rem .7rem; margin-bottom: .9rem; box-shadow: var(--sh-1);
}
.filter-bar .search-field { flex: 1 1 220px; min-width: 180px; }
.filter-bar select.input { flex: 0 1 150px; }
.filter-bar .switch { margin-left: .2rem; }
.filter-bar #donorCount { margin-left: auto; white-space: nowrap; }
@media (max-width: 720px) {
  .filter-bar select.input { flex: 1 1 140px; }
  .filter-bar #donorCount { margin-left: 0; }
  .admin-view-actions { width: 100%; }
  .admin-view-actions .btn { flex: 1 1 auto; justify-content: center; }
}

.data-table thead th { position: sticky; top: 0; z-index: 2; }
.table-wrap { max-height: 72vh; overflow: auto; }
.table-wrap table { min-width: 720px; }

.csv-note {
  display: flex; gap: .45rem; align-items: flex-start;
  margin-top: .8rem; font-size: .78rem; color: var(--muted);
}
.csv-note .ico { color: var(--muted); width: 15px; height: 15px; margin-top: .15rem; flex: none; }

/* export dialog */
.export-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem;
  margin: 1rem 0 .9rem;
}
.export-facts > div {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: .6rem .7rem; display: flex; flex-direction: column; gap: .1rem; min-width: 0;
}
.export-facts span { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.export-facts strong { font-size: .95rem; overflow-wrap: anywhere; }

.check-line {
  display: flex; gap: .65rem; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: .7rem .8rem; margin-bottom: .5rem; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.check-line:hover { border-color: var(--red-300); background: var(--red-50); }
.check-line input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--red); flex: none; }
.check-line input:disabled { opacity: .45; }
.check-line > span { display: flex; flex-direction: column; font-size: .88rem; font-weight: 650; }
.check-line em { font-style: normal; font-size: .76rem; font-weight: 500; color: var(--muted); }

.export-preview {
  margin-top: .9rem; background: var(--surface-2); border: 1px dashed var(--line-2);
  border-radius: var(--r-sm); padding: .7rem .8rem;
}
.export-preview span { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; margin-bottom: .3rem; }
.export-preview code { font-size: .74rem; color: var(--ink-2); line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 520px) { .export-facts { grid-template-columns: 1fr 1fr; } .export-facts > div:last-child { grid-column: span 2; } }

.msg-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem; margin-bottom: .7rem; }
.msg-card.is-unread { border-left: 4px solid var(--red); }
.msg-card header { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.msg-card footer { display: flex; justify-content: space-between; align-items: center; margin-top: .6rem; font-size: .82rem; color: var(--muted); }

.ann-row { display: flex; align-items: center; gap: .7rem; padding: .7rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ann-row div { flex: 1; min-width: 200px; display: flex; flex-direction: column; }

/* -------------------------------------------------- footer */
.site-footer { margin-top: 3rem; background: linear-gradient(165deg, #35070F 0%, #22050A 100%); color: #E9CDD2; position: relative; }
.site-footer::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='26' viewBox='0 0 120 26'%3E%3Cpath d='M0 0h120v6c-6 0-8 8-14 8S96 6 90 6s-8 12-16 12-10-12-18-12-10 8-16 8-8-8-14-8S8 14 0 14V0Z' fill='%23FBF7F4'/%3E%3C/svg%3E") repeat-x;
  background-size: 120px 26px;
  transform: rotate(180deg);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; padding: 3.4rem 0 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { color: #fff; margin-bottom: .9rem; }
.footer-brand .brand-mark { border-color: rgba(255, 255, 255, .25); }
.footer-brand .brand-text em { color: #C99BA4; }
.footer-brand p { font-size: .9rem; color: #C9A5AC; max-width: 40ch; }
.footer-cta { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.1rem; }
.footer-col h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .8rem; }
.footer-col a:not(.btn) { display: block; color: #D3AEB5; font-size: .9rem; padding: .22rem 0; transition: .18s; }
.footer-col a:not(.btn):hover { color: #fff; transform: translateX(3px); }
.footer-cta .btn-light { color: var(--red-700); white-space: nowrap; }
.footer-cta .btn-light .ico, .footer-cta .btn-light svg { color: var(--red-700); }

.footer-credits { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.3rem 0 5.2rem; }
@media (min-width: 901px) { .footer-credits { padding-bottom: 1.6rem; } }
.credit-line { display: flex; gap: 1.6rem; flex-wrap: wrap; font-size: .88rem; }
.credit { display: flex; flex-direction: column; color: #C9A5AC; }
.credit strong { color: #fff; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .1rem; }
.credit a { color: #FF9BAA; font-weight: 700; }
.credit a:hover { color: #fff; }
.credit-meta { margin-top: .9rem; font-size: .78rem; color: #9C7C84; }
.credit-meta .hotline { color: #FF9BAA; font-weight: 700; }

/* ---------------------------------------------- bottom bar */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: .4rem .3rem calc(.4rem + env(safe-area-inset-bottom));
  justify-content: space-around;
}
.bb-item { display: flex; flex-direction: column; align-items: center; gap: .1rem; font-size: .68rem; font-weight: 700; color: var(--muted); padding: .35rem .6rem; border-radius: 12px; flex: 1; }
.bb-item .ico { width: 20px; height: 20px; }
.bb-item.is-active { color: var(--red-700); background: var(--red-50); }
.bb-urgent { color: #fff; }
.bb-urgent .ico { width: 24px; height: 24px; }
.bb-urgent span { color: #fff; }
.bb-urgent { background: linear-gradient(160deg, var(--red-500), var(--red-700)); box-shadow: 0 10px 24px -12px rgba(200, 16, 46, .9); transform: translateY(-6px); border-radius: 16px; padding: .5rem .6rem; flex: 0 0 auto; animation: urgent-glow 2.6s ease-in-out infinite; }
@keyframes urgent-glow { 0%, 100% { box-shadow: 0 10px 24px -12px rgba(200, 16, 46, .9); } 50% { box-shadow: 0 14px 30px -10px rgba(200, 16, 46, 1); } }

.gate-mark { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 20px; display: grid; place-items: center;
  background: linear-gradient(155deg, var(--red-500), var(--red-700)); color: #fff; box-shadow: var(--sh-3); }
.gate-mark .ico { width: 30px; height: 30px; }
.gate form { text-align: left; margin: 1.1rem 0 .4rem; display: grid; gap: .7rem; }
.gate form .field { display: grid; gap: .3rem; }
.gate-error { min-height: 1.2em; color: var(--red-700); font-size: .86rem; font-weight: 600; }
.admin-session { display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  background: var(--red-50); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: .55rem .9rem; margin-bottom: 1rem; }
.offer-attendant { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--red-50); border: 1px dashed var(--red-300);
  border-radius: var(--r-sm); padding: .8rem 1rem; margin: .9rem 0; text-align: left; }
.offer-attendant-who { display: grid; }
.gate-uid-legacy { display: none; }
.gate-uid { display: flex; gap: .6rem; align-items: center; justify-content: space-between;
  background: var(--paper-2); border: 1.5px dashed var(--line-2); border-radius: var(--r-sm); padding: .7rem .9rem; }
.gate-uid code { font-size: .82rem; word-break: break-all; text-align: left; }
.gate-steps { text-align: left; padding-left: 1.2rem; display: grid; gap: .45rem; margin: .4rem 0 1rem; font-size: .86rem; color: var(--ink-2); }
.gate-steps code { background: var(--paper-2); border-radius: 6px; padding: .05rem .35rem; font-size: .8em; }

/* -------------------------------------------------- reveal */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

.page-hero { position: relative; overflow: hidden; }
.page-hero::after {
  content: ''; position: absolute; right: 3%; top: 12%; width: 170px; height: 210px;
  pointer-events: none; opacity: .9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6c.3 0 .5.1.7.4 1.5 1.9 5.9 6.7 5.9 10.6A6.6 6.6 0 0 1 12 20.4a6.6 6.6 0 0 1-6.6-6.8c0-3.9 4.4-8.7 5.9-10.6.2-.3.4-.4.7-.4Z' fill='none' stroke='%23C8102E' stroke-opacity='.16' stroke-width='1.1'/%3E%3C/svg%3E") no-repeat center / contain;
}
@media (max-width: 700px) { .page-hero::after { width: 110px; height: 140px; right: -12px; } }

/* ---------------------------------------------- page hero */
.page-hero { padding: clamp(2rem, 5vw, 3.4rem) 0 1.4rem; background: linear-gradient(180deg, #FFFDFC, var(--paper)); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin: .6rem 0 .5rem; }
.page-hero p { color: var(--ink-2); max-width: 62ch; }
.crumbs { font-size: .8rem; color: var(--muted); display: flex; gap: .4rem; align-items: center; }
.crumbs a { color: var(--muted); }

.mob-extra { border-top: 1px solid var(--line); margin-top: .55rem; padding-top: .55rem; display: grid; gap: .15rem; }
.mob-extra .navlink { color: var(--red-700); font-weight: 700; }

/* hero action trio */
.hero-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 1.2rem; }
.action-tile { display: grid; gap: .3rem; padding: 1.05rem 1.15rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md, 16px); text-decoration: none; color: var(--ink);
  box-shadow: 0 12px 28px -20px rgba(74, 7, 16, .4); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.action-tile:hover { transform: translateY(-3px); border-color: var(--red-300); box-shadow: 0 20px 36px -20px rgba(140, 13, 31, .45); }
.action-tile strong { font-size: 1.02rem; }
.action-tile > span:not(.at-ico) { color: var(--ink-2); font-size: .82rem; line-height: 1.4; }
.at-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--red-100); color: var(--red-700); margin-bottom: .35rem; }
.at-ico svg { width: 21px; height: 21px; }
.action-tile.at-urgent { background: linear-gradient(150deg, var(--red-500, #C8102E), var(--red-700)); border-color: transparent; color: #fff; }
.action-tile.at-urgent > span:not(.at-ico) { color: #F6DEE2; }
.action-tile.at-urgent .at-ico { background: rgba(255,255,255,.16); color: #fff; }
@media (max-width: 700px) { .hero-trio { grid-template-columns: 1fr; } }

/* verification tags */
.tag-verified { background: #E5F5EB; color: #177245; border-color: #BFE3CD; font-weight: 700; }
.tag-self { background: #FFF6E6; color: #9A6B15; border-color: #F0DDB8; }

.about-logo { text-align: center; margin: 0 auto 2rem; }
.about-logo img { width: min(300px, 70vw); margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(140, 13, 31, .18)); }

/* --------------------------------------------- prose page */
.prose { max-width: 78ch; }
.prose h2 { margin: 2.2rem 0 .7rem; font-size: 1.5rem; }
.prose h3 { margin: 1.5rem 0 .5rem; }
.prose p, .prose li { color: var(--ink-2); margin-bottom: .7rem; }
.prose ul { margin-bottom: 1rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.callout { background: var(--red-50); border: 1px solid var(--red-100); border-left: 4px solid var(--red); border-radius: var(--r-sm); padding: 1rem 1.2rem; margin: 1.2rem 0; }
.callout.ok { background: var(--ok-bg); border-color: #C9E7D8; border-left-color: var(--ok); }
.callout p:last-child { margin-bottom: 0; }

.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); margin-bottom: .7rem; overflow: hidden; }
.faq-item summary { padding: 1rem 1.2rem; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--red); transition: .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--red-700); }
.faq-item .faq-body { padding: 0 1.2rem 1.1rem; color: var(--ink-2); font-size: .93rem; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.team-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem; }
.team-card strong { display: block; }
.team-card span { font-size: .84rem; color: var(--muted); }

.my-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; box-shadow: var(--sh-1); max-width: 720px; }
.my-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.2rem; }
.my-head div { flex: 1; }
.my-facts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-bottom: 1.2rem; }
.my-facts li { background: var(--paper-2); border-radius: var(--r-sm); padding: .7rem .9rem; display: flex; flex-direction: column; }
.my-facts span { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.my-facts strong { font-size: .95rem; }
.my-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ============================================ WhatsApp community
   One accent colour, used only for community surfaces: the card, the
   home band, the footer chip and the join button. Everything else keeps
   the red/paper palette. */

.wa-card {
  --wa: #25D366; --wa-dark: #128C7E; --wa-deep: #075E54; --wa-tint: #EEFBF3;
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--wa-tint) 190%);
  border: 1px solid #CFEBDB;
  border-radius: var(--r-lg);
  padding: 1.15rem 1.2rem 1.05rem 1.35rem;
  box-shadow: 0 16px 36px -28px rgba(7, 94, 84, .65);
}
.wa-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, var(--wa), var(--wa-dark)); }
.wa-card::after {
  content: ''; position: absolute; right: -34px; top: -34px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 211, 102, .14) 0%, rgba(37, 211, 102, 0) 70%);
  pointer-events: none;
}
.wa-head { display: flex; gap: .7rem; align-items: center; margin-bottom: .55rem; }
.wa-logo {
  width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(150deg, #2EDB71, var(--wa-dark)); color: #fff;
  box-shadow: 0 12px 24px -14px rgba(18, 140, 126, .95);
}
.wa-logo svg { width: 24px; height: 24px; }
.wa-head-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.wa-head-text strong { font-size: .97rem; color: var(--ink); }
.wa-head-text span {
  font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #0E7C6E;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wa-text { font-size: .865rem; color: var(--ink-2); }
.wa-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .85rem; }
.wa-note { margin-top: .55rem; font-size: .73rem; color: #467E71; }
.btn-wa {
  --bg: linear-gradient(150deg, #2EDB71, var(--wa-dark, #128C7E)); --fg: #fff;
  border-color: transparent; box-shadow: 0 12px 26px -16px rgba(18, 140, 126, .95);
}
.btn-wa:hover { box-shadow: 0 18px 34px -16px rgba(18, 140, 126, 1); color: #fff; }
.btn-wa .ico { width: 1.2em; height: 1.2em; }

/* inside the profile-published screen and My Donor */
.success-inner .wa-card { text-align: left; max-width: 460px; margin: 1.25rem auto 0; }
#myDonorHost .wa-card { max-width: 720px; margin-top: 1rem; }

/* register page sidebar wrapper */
.form-side { display: grid; gap: 1rem; align-content: start; }

/* home page band */
.wa-band {
  position: relative; overflow: hidden;
  border-radius: clamp(20px, 3vw, 30px);
  padding: clamp(1.5rem, 4vw, 2.9rem);
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(1.4rem, 3vw, 2.4rem); align-items: center;
  color: #F1D9DD;
  background:
    radial-gradient(90% 130% at 102% -10%, rgba(37, 211, 102, .30) 0%, rgba(37, 211, 102, 0) 58%),
    linear-gradient(155deg, #3B0810 0%, #22050A 72%);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 34px 70px -46px rgba(74, 7, 16, .95);
}
@media (max-width: 860px) { .wa-band { grid-template-columns: 1fr; } }
.wa-band-kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8FE9B7; }
.wa-band-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa, #25D366); box-shadow: 0 0 0 4px rgba(37, 211, 102, .2); animation: wa-pulse 2.6s var(--ease) infinite; }
@keyframes wa-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(37, 211, 102, .2); } 50% { box-shadow: 0 0 0 9px rgba(37, 211, 102, .04); } }
.wa-band h2 { color: #fff; margin: .55rem 0 .65rem; }
.wa-band p { color: #D9B9BF; font-size: .94rem; max-width: 54ch; }
.wa-band-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .45rem; }
.wa-band-list li { position: relative; padding-left: 1.55rem; font-size: .875rem; color: #E7CFD3; }
.wa-band-list li::before { content: ''; position: absolute; left: 1px; top: .45em; width: .86em; height: .48em; border-left: 2px solid #35D97A; border-bottom: 2px solid #35D97A; transform: rotate(-45deg); }
.wa-band-actions { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: 1.35rem; }
.wa-band-note { margin-top: .85rem; font-size: .74rem !important; color: #A98A90 !important; }

.wa-invite {
  display: grid; justify-items: center; text-align: center; gap: .1rem;
  max-width: 300px; margin-inline: auto; padding: 1.35rem 1.15rem 1.25rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 22px; color: #F1D9DD;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s var(--ease);
}
.wa-invite:hover, .wa-invite:focus-visible { transform: translateY(-3px); background: rgba(255, 255, 255, .1); border-color: rgba(37, 211, 102, .55); color: #fff; box-shadow: 0 26px 50px -34px rgba(0, 0, 0, .9); }
.wa-invite-logo {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin-bottom: .65rem;
  background: linear-gradient(150deg, #2EDB71, #128C7E); color: #fff;
  box-shadow: 0 18px 32px -16px rgba(37, 211, 102, .9);
}
.wa-invite-logo svg { width: 34px; height: 34px; }
.wa-invite strong { font-size: 1.02rem; color: #fff; }
.wa-invite em { font-style: normal; font-size: .7rem; letter-spacing: .11em; text-transform: uppercase; font-weight: 800; color: #8FE9B7; }
.wa-invite p { font-size: .8rem; margin: .55rem 0 .9rem; max-width: 24ch; }
.wa-invite-join { display: inline-flex; align-items: center; gap: .4rem; background: #25D366; color: #06301F; font-weight: 800; font-size: .82rem; padding: .5rem 1.15rem; border-radius: 999px; }

/* footer chip — present on every page */
.footer-col a.footer-wa {
  display: flex; align-items: center; gap: .65rem; max-width: 340px; padding: .65rem .8rem; margin-top: 1rem;
  border-radius: 14px; background: rgba(37, 211, 102, .09); border: 1px solid rgba(37, 211, 102, .32);
  color: #DFF6E7; transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.footer-col a.footer-wa:hover { background: rgba(37, 211, 102, .17); border-color: rgba(37, 211, 102, .6); color: #fff; transform: translateY(-2px); }
.footer-wa-ico { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(150deg, #2EDB71, #128C7E); color: #fff; }
.footer-wa-ico svg { width: 21px; height: 21px; }
.footer-wa-text { display: flex; flex-direction: column; line-height: 1.25; }
.footer-wa-text strong { font-size: .85rem; color: #fff; }
.footer-wa-text em { font-style: normal; font-size: .73rem; color: #A9D8C2; }
.footer-wa-go { margin-left: auto; color: #8FE0B4; font-weight: 700; }

/* mobile menu link */
.nav.mobile .navlink-wa { color: #0E7C6E; }
.nav.mobile .navlink-wa .ico { color: #128C7E; }

@media (max-width: 480px) {
  .wa-actions .btn { flex: 1 1 100%; justify-content: center; white-space: normal; }
  .wa-head-text strong { font-size: .93rem; }
}

/* ------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .ecg .trace { stroke-dashoffset: 0; }
}

/* ------------------------------------------------ print */
@media print {
  .site-header, .bottom-bar, .site-footer, .toasts, .btn { display: none !important; }
  body { background: #fff; }
}

/* ------------------------------------------------- admin tweaks */
/* Stat cards double as navigation shortcuts when they carry data-jump. */
button.stat-card { text-align: left; font: inherit; color: inherit; cursor: pointer; }
button.stat-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--red-300); }
button.stat-card:focus-visible { outline: 3px solid var(--red-500); outline-offset: 2px; }
