:root {
  /* Pocket Clinic (V4) — mapped to legacy token names for compatibility */
  --navy: #0f1c1a;
  --navy-800: #16352f;
  --navy-700: #1a4a42;
  --navy-600: #0d6b5c;
  --navy-200: #b8d9d0;
  --navy-100: #d8f0ea;
  --gold: #a67c2d;
  --gold-l: #f0c75e;
  --gold-p: #fef6e8;
  --bg: #f3f7f5;
  --surface: #ffffff;
  --sf2: #eef5f2;
  --sf3: #e2ece8;
  --border: #d5e0dc;
  --blt: #e4eeea;
  --text: #0f1c1a;
  --text2: #3d524e;
  --text3: #6b7f7a;
  --white: #ffffff;
  --green: #0d6b5c;
  --green-bg: #d8f0ea;
  --red: #c53030;
  --red-bg: #fef2f2;
  --amber: #8a4b12;
  --amber-bg: #fef6e8;
  --blue-bg: #e8f4f1;
  --donate: #0d6b5c;
  --donate-h: #085044;
  --sw: 286px;
  --hh: 64px;
  --r: 14px;
  --rs: 12px;
  --rl: 18px;
  --sh0: 0 1px 2px rgba(15, 28, 26, 0.04);
  --sh1: 0 4px 16px rgba(15, 28, 26, 0.06);
  --sh2: 0 10px 28px rgba(15, 28, 26, 0.08);
  --sh3: 0 16px 40px rgba(15, 28, 26, 0.12);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-b: rgba(255, 255, 255, 0.14);
  --ring-gold: 0 0 0 3px rgba(240, 199, 94, 0.35);
  --ring-navy: 0 0 0 3px rgba(13, 107, 92, 0.28);
  --font: "Instrument Sans", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --brand: "Instrument Sans", system-ui, sans-serif;
  --t: 0.42s ease;
  --t-fast: 0.28s ease;
  --bnav-h: 72px;
  --accent-soft: #d8f0ea;
  --teal: #0d6b5c;
  --teal-d: #085044;
  --teal-soft: #d8f0ea;
  --ink: #0f1c1a;
  --paper: #f3f7f5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 1.06rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

a {
  color: var(--navy-600);
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

/* ── VIEWS ── */
.view {
  display: none;
}
.view.on {
  display: block;
}
#view-app.on {
  display: flex;
  min-height: 100vh;
}

/* ── LANDING NAV · premium floating rail ── */
.lp-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 10px 12px 0;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  padding-left: calc(12px + env(safe-area-inset-left, 0px));
  padding-right: calc(12px + env(safe-area-inset-right, 0px));
  pointer-events: none;
  background: transparent;
  border: 0;
  max-width: 100%;
}

.lp-nav > * {
  pointer-events: auto;
}

.lp-nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 10px 8px 12px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 42%, rgba(240, 199, 94, 0.05) 100%),
    rgba(12, 24, 22, 0.55);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 12px 40px rgba(0, 0, 0, 0.22);
  transition:
    background-color 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease,
    transform 0.45s ease;
}

.lp-nav-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(159, 212, 196, 0.22), transparent 35%, transparent 65%, rgba(240, 199, 94, 0.18));
  opacity: 0.55;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1px;
}

.lp-nav.scrolled .lp-nav-shell {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(13, 107, 92, 0.12) 100%),
    rgba(10, 20, 18, 0.92);
  border-color: rgba(240, 199, 94, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(240, 199, 94, 0.06);
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
  min-width: 0;
  text-decoration: none;
  flex-shrink: 0;
  border-radius: 12px;
  transition: opacity 0.35s ease;
}
.lp-brand:hover { opacity: 0.92; }
.lp-brand:focus-visible {
  outline: 2px solid rgba(240, 199, 94, 0.5);
  outline-offset: 3px;
}

.lp-brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(159, 212, 196, 0.18), rgba(13, 107, 92, 0.28));
  border: 1px solid rgba(159, 212, 196, 0.28);
  overflow: hidden;
}
.lp-brand-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 40% 35%, rgba(159, 212, 196, 0.45), transparent 62%);
  opacity: 0.7;
  animation: lp-brand-breathe 5.5s ease-in-out infinite;
}
.lp-brand-mark .logo-mark {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
}

@keyframes lp-brand-breathe {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.08); }
}

.lp-brand-name {
  font-family: var(--brand);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.lp-brand-name .wm-report { color: #fff; font-weight: 600; }
.lp-brand-name .wm-epi,
.lp-brand-name span.wm-epi {
  color: var(--gold-l);
  font-weight: 800;
}

.lp-nav-trust {
  display: none;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(159, 212, 196, 0.22);
  background: rgba(13, 107, 92, 0.18);
  color: rgba(208, 232, 224, 0.88);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.lp-nav-right {
  display: none;
  align-items: center;
  gap: 18px;
}

.lp-nav-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-nav-cta-group {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lp-nav-donate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(159, 212, 196, 0.28);
  background: rgba(13, 107, 92, 0.2);
  color: #9fd4c4;
  cursor: pointer;
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, transform 0.35s ease;
}
.lp-nav-donate-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.lp-nav-donate svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.lp-nav-donate:hover,
.lp-nav-donate:focus-visible {
  background: rgba(13, 107, 92, 0.38);
  border-color: rgba(159, 212, 196, 0.5);
  color: #fff;
  transform: translateY(-1px);
}
.lp-nav-donate:focus-visible {
  outline: 2px solid rgba(240, 199, 94, 0.45);
  outline-offset: 2px;
}

.lp-nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.35s ease, background-color 0.35s ease;
}
.lp-nav-login:hover,
.lp-nav-login:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.lp-nav-login:focus-visible {
  outline: 2px solid rgba(240, 199, 94, 0.45);
  outline-offset: 2px;
}

.lp-nav-start {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #f5d78a 0%, var(--gold-l) 48%, #d4a93a 100%);
  color: #1a1408;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 8px 22px rgba(240, 199, 94, 0.28);
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}
.lp-nav-start::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
}
.lp-nav-start:hover,
.lp-nav-start:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 12px 28px rgba(240, 199, 94, 0.38);
  filter: brightness(1.03);
}
.lp-nav-start:hover::after,
.lp-nav-start:focus-visible::after {
  transform: translateX(120%);
}
.lp-nav-start:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}
.lp-nav-start-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.35s ease;
}
.lp-nav-start:hover .lp-nav-start-arrow,
.lp-nav-start:focus-visible .lp-nav-start-arrow {
  transform: translateX(2px);
}

.lp-nav-start--mobile {
  display: inline-flex;
  padding: 0 14px;
  min-height: 38px;
  font-size: 0.82rem;
}
.lp-nav-start--mobile .lp-nav-start-arrow { display: none; }

.lp-menu-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
.lp-menu-btn:hover,
.lp-menu-btn:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}
.lp-menu-btn:focus-visible {
  outline: 2px solid rgba(240, 199, 94, 0.45);
  outline-offset: 2px;
}

.lp-menu-btn-bars,
.lp-menu-btn-bars::before,
.lp-menu-btn-bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.lp-menu-btn-bars {
  position: relative;
}
.lp-menu-btn-bars::before,
.lp-menu-btn-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.lp-menu-btn-bars::before { top: -5px; }
.lp-menu-btn-bars::after { top: 5px; }
.lp-menu-btn[aria-expanded="true"] .lp-menu-btn-bars {
  background: transparent;
}
.lp-menu-btn[aria-expanded="true"] .lp-menu-btn-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.lp-menu-btn[aria-expanded="true"] .lp-menu-btn-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.lp-menu {
  display: none;
  width: 100%;
  max-width: 1120px;
  margin: 8px auto 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  position: relative;
}

.lp-menu.open {
  display: block;
}

.lp-menu-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(10, 20, 18, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}

.lp-menu .locale-switch,
.lp-menu .lp-nav-login,
.lp-menu .lp-nav-start,
.lp-menu .lp-nav-donate {
  width: 100%;
  justify-content: center;
  min-height: 48px;
}
.lp-menu .lp-nav-donate--menu {
  width: 100%;
  height: auto;
  gap: 8px;
  border-radius: 12px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(13, 107, 92, 0.22);
}
.lp-menu .lp-nav-donate--menu .lp-nav-donate-label,
.lp-menu .lp-nav-donate--menu span {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  white-space: normal;
}
.lp-menu .lp-nav-login {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}
.lp-menu .lp-nav-start {
  border-radius: 12px;
  min-height: 50px;
}

.lp-nav-locale-host:empty { display: none; }

.lang-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  border-radius: var(--rs);
  padding: 8px 28px 8px 10px;
  font-size: 0.8rem;
  font-weight: 500;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,.7)' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
}

.lang-select option {
  color: var(--navy);
  background: var(--white);
}

.lang-select-light {
  background-color: var(--sf2);
  border-color: var(--border);
  color: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238896AA' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

/* ── LANDING HERO (layout via Tailwind; keep base resets only) ── */
.lp-hero {
  position: relative;
  min-height: auto;
  display: block;
  align-items: unset;
  color: #fff;
  overflow: hidden;
  background: #0a1628;
}

/* Obsolete full-bleed photo hero — disabled */
.lp-hero-bg {
  display: none !important;
}

.lp-hero-content,
.lp-hero-brand,
.lp-hero-lead {
  /* legacy hooks neutralized; markup uses Tailwind utilities */
  all: unset;
}

.lp-cta-row {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.lp-cta-row .btn {
  width: 100%;
  min-height: 48px;
}

.lp-hero .hero-cta-primary {
  border: none;
  min-height: 52px;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 28px rgba(201, 166, 70, 0.35);
}

.lp-hero .hero-cta-secondary {
  min-height: 44px;
  box-shadow: none;
  font-weight: 500;
  font-size: 0.88rem;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.55);
}

.lp-hero .hero-cta-secondary:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
}

.lp-hero-copy {
  animation: riseIn 0.85s ease both;
}

.lp-hero-visual {
  animation: riseIn 1s ease 0.12s both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── LANDING SECTIONS ── */
.lp-section {
  padding: 56px 16px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.lp-section-head {
  max-width: 540px;
  margin-bottom: 40px;
}

.lp-section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--navy);
  font-weight: 400;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.lp-section-head p {
  color: var(--text2);
  font-size: 0.95rem;
}

.lp-who {
  background: var(--surface);
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.who-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--rl);
  min-height: 280px;
  isolation: isolate;
  max-width: 100%;
}

.who-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.who-item:hover img {
  transform: scale(1.05);
}

.who-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 31, 58, 0.92) 0%, rgba(11, 31, 58, 0.25) 55%, transparent 100%);
  z-index: 1;
}

.who-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px;
  color: var(--white);
}

.who-copy h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.who-copy p {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
}

.lp-features {
  background: linear-gradient(180deg, var(--bg) 0%, var(--navy-100) 100%);
}

.feat-list {
  display: grid;
  gap: 18px;
}

.feat-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  animation: riseIn 0.7s ease both;
}

.feat-row:last-child {
  border-bottom: none;
}

.feat-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
}

.feat-row h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.feat-row p {
  font-size: 0.9rem;
  color: var(--text2);
}

.lp-donate {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 70% at 85% 20%, rgba(45, 106, 79, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(201, 166, 70, 0.18), transparent 50%),
    linear-gradient(160deg, #07111f 0%, var(--navy) 45%, #0c2238 100%);
  color: var(--white);
  padding: 56px 16px;
}

.lp-donate-glow {
  position: absolute;
  inset: auto -20% -40% auto;
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 166, 70, 0.16), transparent 68%);
  pointer-events: none;
  animation: donateGlow 8s ease-in-out infinite alternate;
}

@keyframes donateGlow {
  from { transform: translate(0, 0) scale(1); opacity: 0.7; }
  to { transform: translate(-30px, -20px) scale(1.08); opacity: 1; }
}

.lp-donate-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  width: 100%;
}

.donate-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold-l);
}

.lp-donate-copy h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.55rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 14px;
  max-width: 16ch;
}

.lp-donate-copy > p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.02rem;
  line-height: 1.55;
  margin-bottom: 24px;
  max-width: 38ch;
}

.donate-cta {
  position: relative;
  box-shadow: 0 0 0 0 rgba(45, 106, 79, 0.45);
  animation: donateCtaPulse 2.8s ease-out infinite;
}

@keyframes donateCtaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 106, 79, 0.45); }
  50% { box-shadow: 0 0 0 12px rgba(45, 106, 79, 0); }
}

.lp-donate-visual {
  border-radius: var(--rl);
  overflow: hidden;
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(15, 40, 71, 0.95), rgba(11, 31, 58, 0.7)),
    linear-gradient(135deg, rgba(201, 166, 70, 0.12), rgba(45, 106, 79, 0.08));
  box-shadow: var(--sh3);
}

.donate-visual-stage {
  padding: 22px 20px 24px;
  display: grid;
  gap: 8px;
}

.donate-network {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  display: block;
}

.donate-net-path {
  stroke-dashoffset: 0;
  animation: donateDash 6s linear infinite;
}

.donate-net-path-delay {
  animation-delay: -2.5s;
}

@keyframes donateDash {
  to { stroke-dashoffset: -72; }
}

.donate-node-pulse {
  transform-origin: 164px 96px;
  animation: donateNodePulse 2.4s ease-in-out infinite;
}

@keyframes donateNodePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .lp-donate-glow,
  .donate-cta,
  .donate-net-path,
  .donate-node-pulse {
    animation: none;
  }
}

.donate-impact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.donate-impact-list li {
  position: relative;
  padding: 10px 12px 10px 34px;
  border-radius: var(--rs);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
}

.donate-impact-list li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px rgba(201, 166, 70, 0.2);
}

.lp-footer {
  background: var(--navy-800);
  color: rgba(255, 255, 255, 0.45);
  padding: 24px 16px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
}

.lp-footer strong {
  color: rgba(255, 255, 255, 0.8);
}

/* ── AUTH ── */
/* ── AUTH ── */
#auth-screen {
  min-height: 100vh;
  display: flex;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.auth-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 72% -8%, rgba(184, 150, 58, 0.16), transparent 58%),
    radial-gradient(ellipse 55% 70% at -8% 85%, rgba(20, 50, 88, 0.55), transparent 58%),
    linear-gradient(160deg, rgba(7, 21, 37, 0.72), rgba(7, 21, 37, 0.88)),
    url("https://images.unsplash.com/photo-1631217868264-e5b90bb7e133?auto=format&fit=crop&w=1600&q=80")
      center / cover no-repeat;
  opacity: 1;
  pointer-events: none;
}

.auth-left {
  display: none;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 64px 72px;
  position: relative;
  z-index: 1;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 52px;
}

.auth-logo-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--gold-l);
}

.auth-logo-icon--sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--navy-100);
  border-color: var(--navy-200);
  color: var(--navy);
}

.auth-logo-name {
  font-family: var(--brand);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}
.auth-logo-name .wm-epi {
  color: var(--gold-l);
}

.auth-brand-mobile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.auth-brand-mobile .auth-logo-name {
  color: var(--navy);
  font-size: 1.15rem;
}
.auth-brand-mobile .wm-epi {
  color: var(--gold);
}

.auth-tagline {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 2.65rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}
.auth-tagline em {
  font-style: italic;
  color: var(--gold-l);
}

.auth-sub {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.62);
  max-width: 380px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.auth-feat {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-feat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.01em;
}

.auth-feat-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(184, 150, 58, 0.18);
}

.auth-right {
  width: 100%;
  max-width: 100%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 22px 28px;
  z-index: 1;
  overflow-y: auto;
  box-shadow: -24px 0 64px rgba(7, 21, 37, 0.18);
}

.auth-title {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.auth-sub2 {
  font-size: 0.9rem;
  color: var(--text3);
  margin-bottom: 22px;
  line-height: 1.55;
}

.auth-lang-row {
  margin-bottom: 18px;
}

.btn-google {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rs);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--sh0);
  transition: var(--t);
}
.btn-google:hover {
  border-color: var(--navy-200);
  background: var(--sf2);
  box-shadow: var(--sh1);
}
.btn-google.is-busy::after {
  border-color: rgba(7, 21, 37, 0.2);
  border-top-color: var(--navy);
  color: var(--navy);
}
.google-icon {
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 16px;
  color: var(--text3);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-tabs {
  display: flex;
  background: var(--sf2);
  border-radius: var(--rs);
  padding: 4px;
  margin-bottom: 22px;
  border: 1px solid var(--blt);
}

.auth-tab {
  flex: 1;
  text-align: center;
  background: none;
  border: none;
  padding: 10px 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text3);
  border-radius: calc(var(--rs) - 2px);
  transition: var(--t);
}

.auth-tab.active {
  background: var(--surface);
  color: var(--navy);
  font-weight: 600;
  box-shadow: var(--sh0);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-form[hidden],
.auth-panel-alt[hidden],
#auth-panel-main[hidden],
#auth-demo-box[hidden] {
  display: none !important;
}

.flabel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.flabel-row .flabel {
  margin-bottom: 0;
}

.auth-text-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-600);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--t-fast);
}
.auth-text-link:hover {
  color: var(--navy);
  text-decoration: underline;
}

.auth-switch {
  text-align: center;
  margin-top: 2px;
}
.auth-switch .auth-text-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text3);
}

.ffield-hint {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--text3);
}

.auth-panel-alt {
  animation: authFadeIn 0.28s ease;
}

.auth-back-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text3);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 18px;
  padding: 0;
}
.auth-back-inline:hover {
  color: var(--navy);
}

@keyframes authFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.demo-box {
  margin-top: 28px;
  padding: 14px;
  background: linear-gradient(180deg, var(--navy-100), #f5f8fc);
  border-radius: var(--r);
  border: 1px solid var(--navy-200);
}

.demo-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--navy-600);
  margin-bottom: 9px;
}

.demo-btn {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rs);
  padding: 11px 13px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text2);
  text-align: left;
  transition: var(--t);
  display: flex;
  align-items: center;
  gap: 9px;
}

.demo-btn:hover {
  border-color: var(--navy-600);
  color: var(--navy);
  background: var(--surface);
  box-shadow: var(--sh0);
}

.demo-btn-label {
  font-weight: 600;
}

.demo-btn-cred {
  font-size: 0.72rem;
  color: var(--text3);
  margin-left: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.auth-back {
  margin-top: 18px;
  text-align: center;
}

.auth-back button {
  background: none;
  border: none;
  font-size: 0.8rem;
  color: var(--text3);
  text-decoration: underline;
}
.auth-back button:hover {
  color: var(--navy);
}

/* ── APP ── */
.sidebar {
  width: var(--sw);
  max-width: 100%;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform var(--t);
}

.sidebar.open {
  transform: translateX(0);
  box-shadow: var(--sh3);
}

.sb-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sb-logo-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.sb-logo-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1;
}
.sb-logo-name span {
  color: var(--gold-l);
}

.sb-logo-sub {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.sb-user {
  margin: 12px 10px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  gap: 9px;
}

.sb-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--gold), #a87b1e);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
}

.sb-uname {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-urole {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sb-nav {
  flex: 1;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  min-height: 44px;
  border-radius: var(--rs);
  font-size: 0.845rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.52);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: var(--t);
}

.nav-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.65;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

.nav-item.active {
  background: rgba(201, 166, 70, 0.15);
  color: var(--gold-l);
  font-weight: 600;
}

.nav-item.active svg {
  opacity: 1;
}

.sb-foot {
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sb-lang {
  width: 100%;
}

.sb-foot .btn-donate {
  width: 100%;
  min-height: 44px;
}

.btn-logout {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  min-height: 44px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--rs);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.42);
  transition: var(--t);
}

.btn-logout svg {
  width: 13px;
  height: 13px;
}

.btn-logout:hover {
  background: rgba(197, 48, 48, 0.15);
  color: #fc8181;
  border-color: rgba(197, 48, 48, 0.3);
}

.main {
  margin-left: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 100%;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--hh);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  flex: 1;
}

.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  color: var(--navy);
}

.hamburger svg {
  width: 20px;
  height: 20px;
}

.body {
  flex: 1;
  padding: 18px 14px;
  max-width: 1060px;
  width: 100%;
}

.sb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 199;
}

.sb-overlay.on {
  display: block;
}

/* ── FORMS ── */
.fg {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.flabel {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.65px;
  color: var(--text2);
}

.fhint {
  font-size: 0.76rem;
  color: var(--text3);
  font-style: italic;
  margin-top: 2px;
}

.finput,
.fselect,
.ftarea {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--rs);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  padding: 9px 12px;
  outline: none;
  width: 100%;
  transition: border-color var(--t), box-shadow var(--t);
}

.finput:focus,
.fselect:focus,
.ftarea:focus {
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.08);
}

.finput::placeholder,
.ftarea::placeholder {
  color: var(--text3);
}

.fselect {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238896AA' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 34px;
  cursor: pointer;
}

.ftarea {
  resize: vertical;
  min-height: 76px;
}

.fgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}

/* ── BUTTONS ── */
.btn {
  border: none;
  border-radius: var(--rs);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 9px 18px;
  min-height: 44px;
  transition: var(--t);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  max-width: 100%;
}

.btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  width: 100%;
}
.btn-primary:hover {
  background: var(--navy-700);
  box-shadow: var(--sh1);
}

.btn-solid {
  background: var(--navy);
  color: var(--white);
}
.btn-solid:hover {
  background: var(--navy-700);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline-dark {
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text2);
}
.btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--navy-100);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}
.btn-gold:hover {
  background: var(--gold-l);
}

.btn-donate {
  background: var(--donate);
  color: var(--white);
  font-weight: 700;
}
.btn-donate:hover {
  background: var(--donate-h);
}

.btn-sm {
  padding: 6px 13px;
  font-size: 0.79rem;
  min-height: 44px;
}
.btn-xs {
  padding: 4px 9px;
  font-size: 0.74rem;
  min-height: 32px;
}
.btn-lg {
  padding: 12px 26px;
  font-size: 0.95rem;
  min-height: 48px;
}
.btn-block {
  width: 100%;
}

.btn-edit {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text2);
  padding: 4px 9px;
  font-size: 0.74rem;
}
.btn-edit:hover {
  border-color: var(--navy-600);
  color: var(--navy-600);
  background: var(--navy-100);
}

.btn-del {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--red);
  padding: 4px 9px;
  font-size: 0.74rem;
}
.btn-del:hover {
  border-color: var(--red);
  background: var(--red-bg);
}

/* ── CARDS / STATS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
  box-shadow: var(--sh0);
  transition: box-shadow var(--t);
}
.card:hover {
  box-shadow: var(--sh1);
}

.card-lbl {
  font-size: 0.71rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text3);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-lbl::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--blt);
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px;
  box-shadow: var(--sh0);
  position: relative;
  overflow: hidden;
  transition: var(--t);
}
.stat-card:hover {
  box-shadow: var(--sh1);
  transform: translateY(-2px);
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  border-radius: 0 2px 2px 0;
}
.sc-navy::before {
  background: var(--navy);
}
.sc-gold::before {
  background: var(--gold);
}
.sc-green::before {
  background: var(--green);
}
.sc-red::before {
  background: var(--red);
}

.stat-num {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-lbl {
  font-size: 0.71rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text3);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-bottom: 22px;
}

.alert {
  border-radius: var(--rs);
  padding: 12px 15px;
  font-size: 0.86rem;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-left: 3px solid;
}
.al-info {
  background: var(--blue-bg);
  border-color: var(--navy-600);
  color: var(--navy);
}
.al-ok {
  background: var(--green-bg);
  border-color: var(--green);
  color: var(--green);
}

/* ── MODAL / TOAST ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 58, 0.45);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--surface);
  border-radius: var(--rl);
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--sh3);
  animation: mIn 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.modal-lg {
  max-width: 680px;
}

@keyframes mIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-hdr {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--blt);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

.modal-close {
  width: 28px;
  height: 28px;
  background: var(--sf2);
  border: 1px solid var(--border);
  border-radius: var(--rs);
  display: grid;
  place-items: center;
  color: var(--text3);
}
.modal-close:hover {
  background: var(--sf3);
  color: var(--text);
}

.modal-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--blt);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

#toasts {
  position: fixed;
  bottom: 22px;
  right: 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  z-index: 9999;
}

.toast {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  border-radius: var(--rs);
  padding: 12px 17px;
  font-size: 0.84rem;
  box-shadow: var(--sh3);
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 320px;
  animation: tIn 0.26s ease;
}

.toast-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.t-ok .toast-dot {
  background: #68d391;
}
.t-err .toast-dot {
  background: #fc8181;
}
.t-info .toast-dot {
  background: var(--gold-l);
}

@keyframes tIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── PAGE / TABLE / BADGE ── */
.page-hdr {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--blt);
}
.page-hdr h1 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.3px;
  margin-bottom: 3px;
}
.page-hdr p {
  font-size: 0.86rem;
  color: var(--text3);
}

.twrap {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh0);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
th {
  background: var(--sf2);
  padding: 10px 15px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text3);
  border-bottom: 1px solid var(--border);
}
td {
  padding: 11px 15px;
  border-bottom: 1px solid var(--blt);
  color: var(--text);
}
tr:last-child td {
  border-bottom: none;
}
tr:hover td {
  background: var(--sf2);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.b-navy {
  background: var(--navy-100);
  color: var(--navy-600);
}
.b-gold {
  background: var(--gold-p);
  color: #7a5e10;
}

.mode-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: var(--gold-p);
  color: #7a5e10;
  border: 1px solid rgba(201, 166, 70, 0.35);
  white-space: nowrap;
}

.rc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 15px 17px;
  box-shadow: var(--sh0);
  transition: var(--t);
  position: relative;
  overflow: hidden;
}
.rc::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 0 2px 2px 0;
}
.rc-focal::before {
  background: var(--navy-600);
}
.rc-gen::before {
  background: var(--gold);
}
.rc-aus::before {
  background: var(--green);
}
.rc-unk::before {
  background: var(--text3);
}
.rc:hover {
  box-shadow: var(--sh1);
}

.rc-hdr {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}
.rc-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
}
.rc-date {
  font-size: 0.76rem;
  color: var(--text3);
  white-space: nowrap;
}
.rc-meta {
  font-size: 0.79rem;
  color: var(--text2);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.rc-actions {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--blt);
  display: flex;
  gap: 6px;
}

.edu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh0);
  transition: var(--t);
  cursor: pointer;
}
.edu-card:hover {
  box-shadow: var(--sh1);
  transform: translateY(-2px);
}

.edu-top {
  padding: 20px 20px 13px;
  background: linear-gradient(135deg, var(--navy), var(--navy-600));
  display: flex;
  align-items: center;
  gap: 11px;
}

.edu-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.edu-icon svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, 0.9);
}

.edu-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}

.edu-body {
  padding: 16px 20px;
}
.edu-body p {
  font-size: 0.84rem;
  color: var(--text2);
  line-height: 1.6;
}

.edu-src {
  margin-top: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text3);
}

.quick-bar {
  background: linear-gradient(135deg, var(--navy), var(--navy-600));
  border-radius: var(--r);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  box-shadow: var(--sh1);
}

.quick-text h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}
.quick-text p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.help-box {
  background: var(--navy-100);
  border: 1px solid var(--navy-200);
  border-radius: var(--rs);
  padding: 11px 13px;
  font-size: 0.81rem;
  color: var(--navy-600);
  margin-bottom: 8px;
  line-height: 1.6;
}
.help-box strong {
  color: var(--navy);
}

.empty-st {
  text-align: center;
  padding: 50px 20px;
}
.empty-icon {
  width: 52px;
  height: 52px;
  background: var(--sf2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}
.empty-icon svg {
  width: 22px;
  height: 22px;
  color: var(--text3);
}
.empty-st h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
}
.empty-st p {
  font-size: 0.86rem;
  color: var(--text3);
  margin-bottom: 18px;
}

.screen {
  display: none;
}
.screen.active {
  display: block;
  animation: sIn 0.28s ease both;
}

@keyframes sIn {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rlist {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.g2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}
.mt16 {
  margin-top: 16px;
}

.brand-foot {
  padding: 18px 24px;
  border-top: 1px solid var(--blt);
  font-size: 0.75rem;
  color: var(--text3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.brand-foot strong {
  color: var(--navy);
}

#loader {
  position: fixed;
  inset: 0;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  z-index: 9999;
  transition: opacity 0.4s ease;
}
#loader.fade {
  opacity: 0;
  pointer-events: none;
}

.loader-logo {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--white);
}
.loader-logo span {
  color: var(--gold-l);
}

.loader-bar {
  width: 190px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  animation: lf 1.2s ease forwards;
}

@keyframes lf {
  0% {
    width: 0;
  }
  60% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

.pdf-preview {
  background: var(--sf2);
  border: 1px dashed var(--border);
  border-radius: var(--r);
  padding: 20px;
  font-size: 0.84rem;
  color: var(--text2);
  line-height: 1.7;
}

.pdf-preview h3 {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

/* ── RESPONSIVE (mobile-first enhancements) ── */
@media (min-width: 640px) {
  .lp-nav {
    padding: 12px 20px 0;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    padding-left: calc(20px + env(safe-area-inset-left, 0px));
    padding-right: calc(20px + env(safe-area-inset-right, 0px));
  }

  .lp-nav-shell {
    min-height: 62px;
    padding: 8px 12px 8px 14px;
    border-radius: 20px;
  }

  .lp-cta-row {
    flex-direction: row;
  }

  .lp-cta-row .btn {
    width: auto;
  }

  .lp-section {
    padding: 64px 24px;
  }

  .lp-donate {
    padding: 56px 24px;
  }

  .lp-footer {
    padding: 26px 24px;
  }

  .who-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .who-item {
    min-height: 300px;
  }

  .feat-row {
    grid-template-columns: 72px 1fr;
    gap: 16px;
    align-items: center;
  }

  .auth-right {
    padding: 40px 32px;
  }

  .body {
    padding: 22px 20px;
  }

  .g2,
  .fgrid {
    grid-template-columns: 1fr 1fr;
  }

  .quick-bar {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 18px 22px;
  }

  .edu-grid {
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  }
}

@media (min-width: 900px) {
  .lp-nav {
    padding: 14px 28px 0;
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
    padding-left: calc(28px + env(safe-area-inset-left, 0px));
    padding-right: calc(28px + env(safe-area-inset-right, 0px));
  }

  .lp-nav-shell {
    min-height: 64px;
    padding: 8px 10px 8px 16px;
  }

  .lp-menu-btn {
    display: none;
  }

  .lp-menu {
    display: none !important;
  }

  .lp-nav-right {
    display: flex;
  }

  .lp-nav-start--mobile {
    display: none;
  }

  .lp-nav-right .lp-nav-login,
  .lp-nav-right .lp-nav-start {
    min-height: 40px;
  }

  .lp-section {
    padding: 88px 32px;
  }

  .who-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .who-item {
    min-height: 340px;
  }

  .feat-row {
    grid-template-columns: 120px 1fr;
    gap: 22px;
  }

  .lp-donate {
    padding: 72px 32px;
  }

  .lp-donate-inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
  }

  .lp-footer {
    padding: 28px 32px;
  }

  .auth-left {
    display: flex;
  }

  .auth-brand-mobile {
    display: none;
  }

  .auth-right {
    width: 460px;
    max-width: 460px;
    padding: 52px 44px;
  }

  .sidebar {
    transform: translateX(0);
  }

  .sidebar.open {
    box-shadow: none;
  }

  .main {
    margin-left: var(--sw);
  }

  .hamburger {
    display: none;
  }

  .body {
    padding: 26px 24px;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1100px) {
  .lp-nav {
    padding-left: calc(36px + env(safe-area-inset-left, 0px));
    padding-right: calc(36px + env(safe-area-inset-right, 0px));
  }

  .lp-nav-trust {
    display: inline-flex;
    align-items: center;
  }

  .lp-section {
    padding: 96px 40px;
  }

  .lp-donate {
    padding: 80px 40px;
  }

  .body {
    padding: 28px 28px;
  }
}

/* Evidence / who cards / report / trust (research-informed landing) */
.donate-note { margin-top: 14px; font-size: 0.78rem; color: rgba(255,255,255,0.4); }
.lp-evidence { background: var(--surface); border-bottom: 1px solid var(--border); }
.lp-evidence-inner { padding-top: 40px; padding-bottom: 40px; }
.evidence-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.evidence-card { background: var(--sf2); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 16px; }
.evidence-stat { font-family: var(--serif); font-size: 1.75rem; color: var(--navy); line-height: 1.1; margin-bottom: 8px; }
.evidence-text { font-size: 0.88rem; color: var(--text2); line-height: 1.5; margin-bottom: 10px; }
.evidence-src { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: var(--navy-600); }
.who-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.who-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rl); padding: 22px 20px; box-shadow: var(--sh0); }
.who-card-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--navy-100); color: var(--navy); display: grid; place-items: center; margin-bottom: 14px; }
.who-card-ico svg { width: 20px; height: 20px; }
.who-card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.who-card p { font-size: 0.9rem; color: var(--text2); line-height: 1.55; }
.lp-report { background: linear-gradient(180deg, #f7f9fc 0%, var(--navy-100) 100%); }
.lp-report-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.report-icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 4px;
}
.report-icon-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--rs);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
}
.report-icon-item svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
}
.report-checklist { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.report-checklist li { position: relative; padding: 10px 12px 10px 36px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--rs); font-size: 0.88rem; color: var(--text2); line-height: 1.45; }
.report-checklist li::before { content: ""; position: absolute; left: 12px; top: 14px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 3px var(--gold-p); }
.report-panel { background: #0a1628; color: rgba(255,255,255,0.85); border-radius: var(--rl); padding: 22px 20px; box-shadow: var(--sh2); }
.report-panel-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.7px; text-transform: uppercase; color: rgba(232,201,106,0.9); margin-bottom: 14px; }
.report-panel-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 0.86rem; }
.report-panel-row span { color: rgba(255,255,255,0.45); }
.report-panel-row strong { color: #fff; font-weight: 600; text-align: right; }
.report-panel-note { margin-top: 14px; font-size: 0.78rem; color: rgba(255,255,255,0.4); line-height: 1.5; }
.lp-trust { background: var(--surface); border-top: 1px solid var(--border); }
.lp-trust-inner { max-width: 780px; }
.lp-trust h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--navy); font-weight: 400; margin-bottom: 10px; }
.lp-trust-inner > p { color: var(--text2); font-size: 0.95rem; margin-bottom: 18px; }
.trust-points { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.trust-points li { padding: 12px 14px; border-left: 3px solid var(--gold); background: var(--sf2); border-radius: 0 var(--rs) var(--rs) 0; font-size: 0.88rem; color: var(--text2); line-height: 1.5; }
@media (min-width: 640px) {
  .evidence-grid { grid-template-columns: repeat(3, 1fr); }
  .who-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .who-cards { grid-template-columns: repeat(3, 1fr); }
  .lp-report-grid { grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center; }
}

/* Types / ILAE section (Phase 5) */
.lp-types {
  background: var(--sf2);
  border-bottom: 1px solid var(--border);
}
.types-intro {
  max-width: 720px;
  margin: 0 0 28px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--rs);
  font-size: 0.92rem;
  color: var(--text2);
  line-height: 1.55;
}
.types-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
.types-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.type-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 18px 16px;
  box-shadow: var(--sh0);
}
.type-card-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy-100);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.type-card-ico svg {
  width: 28px;
  height: 28px;
}
.type-card h3 {
  font-size: 1.02rem;
  color: var(--navy);
  margin-bottom: 6px;
  font-weight: 700;
}
.type-card p {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.5;
}
.types-eeg {
  margin: 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rl);
}
.types-eeg-svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.types-eeg figcaption {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text3);
  line-height: 1.45;
  text-align: center;
}
@media (min-width: 640px) {
  .types-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .types-layout { grid-template-columns: 1.35fr 0.85fr; gap: 32px; align-items: center; }
  .types-grid { grid-template-columns: repeat(3, 1fr); }
  .types-grid .type-card:nth-child(4),
  .types-grid .type-card:nth-child(5) { grid-column: span 1; }
  .types-eeg figcaption { text-align: left; }
}

/* Wordmark + welcome popup (Fases 2-3) */
.wordmark { font-family: var(--brand); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.wordmark .wm-report { color: inherit; font-weight: 600; }
.wordmark .wm-epi { color: var(--gold-l); font-weight: 800; letter-spacing: 0.02em; }
.auth-logo-name.wordmark { font-size: 1.85rem; color: var(--white); }
.loader-logo.wordmark { font-size: 2.55rem; color: var(--white); }
.sb-logo-name.wordmark { font-size: 1.4rem; color: var(--white); }
.welcome-brand.wordmark { font-size: 2.15rem; color: var(--navy); margin-bottom: 18px; }
.welcome-overlay { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(10, 22, 40, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.welcome-overlay[hidden] { display: none !important; }
.welcome-card { width: 100%; max-width: 440px; background: var(--surface); border-radius: 18px; padding: 32px 28px 28px; box-shadow: 0 24px 64px rgba(10, 22, 40, 0.35); border: 1px solid rgba(201, 166, 70, 0.28); animation: welcomeIn 0.28s ease both; }
@keyframes welcomeIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.welcome-title { font-family: var(--serif); font-size: 1.65rem; font-weight: 600; color: var(--navy); line-height: 1.25; margin-bottom: 10px; }
.welcome-body { font-size: 1.05rem; color: var(--text2); line-height: 1.6; margin-bottom: 22px; }
.welcome-lang-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text3); margin-bottom: 10px; }
.welcome-langs { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 22px; }
@media (min-width: 420px) { .welcome-langs { grid-template-columns: repeat(3, 1fr); } }
.welcome-lang-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; min-height: 56px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--sf2); color: var(--text); text-align: left; transition: var(--t); cursor: pointer; font-family: inherit; }
.welcome-lang-btn:hover { border-color: var(--navy-200); background: var(--navy-100); }
.welcome-lang-btn.is-active { border-color: var(--gold); background: var(--gold-p); box-shadow: 0 0 0 1px rgba(201, 166, 70, 0.35); }
.welcome-lang-code { font-family: var(--brand); font-weight: 800; font-size: 0.95rem; color: var(--navy); }
.welcome-lang-name { font-size: 0.82rem; color: var(--text2); }
.welcome-continue { width: 100%; min-height: 48px; font-size: 1.02rem; }
.lp-footer-right { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: flex-end; }
.footer-lang { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); }
.lang-select-footer { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.75); font-size: 0.78rem; padding: 6px 28px 6px 10px; min-height: 36px; }
.sb-lang-label { display: flex; flex-direction: column; gap: 6px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.35); margin-bottom: 4px; }
.sb-lang-label .lang-select { text-transform: none; letter-spacing: 0; font-weight: 500; }
.btn { font-size: 0.92rem; }
.btn-lg { font-size: 1.02rem; padding: 13px 26px; }
.page-hdr h1, .auth-title, .lp-section-head h2 { font-family: var(--serif); }

/* ═══════════════════════════════════════════
   DESIGN SYSTEM V2 — premium digital health
   ═══════════════════════════════════════════ */

body {
  background:
    radial-gradient(ellipse 90% 50% at 100% -10%, rgba(201, 166, 70, 0.07), transparent 45%),
    radial-gradient(ellipse 70% 40% at -10% 30%, rgba(30, 63, 110, 0.06), transparent 40%),
    var(--bg);
}

.hero-brand-name .wm-epi {
  color: var(--gold-l);
}

/* Scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger .reveal-child {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible .reveal-child {
  opacity: 1;
  transform: translateY(0);
}
.reveal.is-visible .reveal-child:nth-child(1) { transition-delay: 0.05s; }
.reveal.is-visible .reveal-child:nth-child(2) { transition-delay: 0.12s; }
.reveal.is-visible .reveal-child:nth-child(3) { transition-delay: 0.19s; }
.reveal.is-visible .reveal-child:nth-child(4) { transition-delay: 0.26s; }
.reveal.is-visible .reveal-child:nth-child(5) { transition-delay: 0.33s; }
.reveal.is-visible .reveal-child:nth-child(6) { transition-delay: 0.4s; }

/* Landing cards premium */
.evidence-card,
.type-card,
.who-card,
.feat-row {
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.evidence-card:hover,
.type-card:hover,
.who-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh2);
  border-color: rgba(201, 166, 70, 0.35);
}
.lp-section-head h2 {
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.2;
}
.lp-section-head p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text2);
  max-width: 52ch;
}

/* Buttons upgraded */
.btn {
  position: relative;
  overflow: hidden;
  border-radius: var(--rs);
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t), border-color var(--t), color var(--t), opacity var(--t-fast);
}
.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}
.btn:active:not(:disabled) {
  transform: translateY(0);
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-l) 0%, var(--gold) 100%);
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(201, 166, 70, 0.28);
}
.btn-gold:hover {
  background: linear-gradient(180deg, #f0d78a 0%, var(--gold-l) 100%);
  box-shadow: 0 12px 28px rgba(201, 166, 70, 0.38);
}
.btn-primary,
.btn-solid {
  background: linear-gradient(180deg, var(--navy-700) 0%, var(--navy) 100%);
  box-shadow: 0 6px 18px rgba(10, 22, 40, 0.18);
}
.btn-primary:hover,
.btn-solid:hover {
  background: linear-gradient(180deg, var(--navy-600) 0%, var(--navy-700) 100%);
}
.btn-donate {
  background: linear-gradient(180deg, #3a7d5e 0%, var(--donate) 100%);
  box-shadow: 0 8px 20px rgba(45, 106, 79, 0.28);
}
.btn.is-busy {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn.is-busy::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -8px;
  color: var(--navy);
}
.btn-primary.is-busy::after,
.btn-solid.is-busy::after,
.btn-donate.is-busy::after {
  border-color: rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  color: #fff;
}
@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* Forms — premium focus + validation */
.finput,
.fselect,
.ftarea {
  border-radius: var(--rs);
  background: var(--sf2);
  border-color: transparent;
  min-height: 46px;
  font-size: 0.94rem;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.finput:hover,
.fselect:hover,
.ftarea:hover {
  background: var(--surface);
  border-color: var(--border);
}
.finput:focus,
.fselect:focus,
.ftarea:focus {
  background: var(--surface);
  border-color: var(--gold);
  box-shadow: var(--ring-gold);
}
.finput.is-invalid,
.fselect.is-invalid,
.ftarea.is-invalid {
  border-color: var(--red);
  background: var(--red-bg);
  box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.14);
  animation: fieldShake 0.35s ease;
}
@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.flabel {
  letter-spacing: 0.04em;
  color: var(--text2);
  font-size: 0.78rem;
}

/* App shell premium */
.sidebar {
  background:
    radial-gradient(ellipse 80% 40% at 0% 0%, rgba(201, 166, 70, 0.12), transparent 50%),
    linear-gradient(180deg, #0c1c34 0%, var(--navy) 40%, #07101c 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.sb-logo {
  padding: 24px 20px 18px;
  gap: 14px;
}
.sb-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(201, 166, 70, 0.32), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(232, 201, 106, 0.35);
}
.sb-logo-sub {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: rgba(232, 201, 106, 0.55);
  margin-top: 4px;
}
.sb-user {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px;
}
.nav-item {
  border-radius: 12px;
  margin: 2px 8px;
  padding: 11px 14px;
  transition: background var(--t), color var(--t), transform var(--t-fast), box-shadow var(--t);
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(2px);
}
.nav-item.active {
  background: linear-gradient(90deg, rgba(201, 166, 70, 0.22), rgba(201, 166, 70, 0.08));
  color: var(--gold-l);
  box-shadow: inset 3px 0 0 var(--gold);
  font-weight: 600;
}
.topbar {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(213, 222, 235, 0.8);
  min-height: var(--hh);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
.topbar-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.body {
  background: transparent;
}
.page-hdr {
  margin-bottom: 22px;
}
.page-hdr h1 {
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 6px;
}
.page-hdr p {
  font-size: 0.98rem;
  color: var(--text2);
  max-width: 54ch;
}

/* Dashboard / lists */
.quick-bar {
  position: relative;
  overflow: hidden;
  border-radius: var(--rl);
  padding: 22px 20px;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(201, 166, 70, 0.28), transparent 55%),
    linear-gradient(135deg, #0c1c34 0%, var(--navy-700) 55%, var(--navy-600) 100%);
  box-shadow: var(--sh2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.quick-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.04) 50%, transparent 60%);
  pointer-events: none;
}
.quick-text h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
}
.stat-card {
  border-radius: var(--r);
  border: 1px solid rgba(213, 222, 235, 0.9);
  background: linear-gradient(180deg, #fff 0%, #fafbfd 100%);
  box-shadow: var(--sh0);
  padding: 20px 18px;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh2);
  border-color: rgba(201, 166, 70, 0.35);
}
.stat-num {
  font-size: 2.15rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sc-gold .stat-num {
  background: linear-gradient(135deg, #a87b1e 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.card {
  border-radius: var(--rl);
  border: 1px solid rgba(213, 222, 235, 0.9);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: var(--sh1);
  padding: 24px;
}
.card:hover {
  box-shadow: var(--sh2);
}
.rc {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--sh0);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  padding: 16px 16px;
}
.rc:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh1);
  border-color: rgba(201, 166, 70, 0.3);
}
.help-box {
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-100) 0%, #f7fafc 100%);
  border: 1px solid var(--navy-200);
  padding: 14px 16px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.edu-card {
  border-radius: var(--rl);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--sh0);
}
.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh2);
  border-color: rgba(201, 166, 70, 0.4);
}
.edu-icon {
  background: linear-gradient(145deg, var(--navy-100), #fff);
  border: 1px solid var(--navy-200);
}

/* Modals & toasts */
.modal-overlay {
  background: rgba(8, 16, 30, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal {
  border-radius: 18px;
  border: 1px solid rgba(201, 166, 70, 0.2);
  box-shadow: 0 28px 64px rgba(10, 22, 40, 0.35);
  overflow: hidden;
}
.modal-hdr {
  background: linear-gradient(180deg, #fbfcfe 0%, #f3f6fb 100%);
  border-bottom: 1px solid var(--blt);
}
.modal-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}
.toast {
  border-radius: 12px;
  padding: 14px 18px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 22, 40, 0.94);
  box-shadow: var(--sh3);
  font-size: 0.9rem;
}
.t-ok {
  border-left: 3px solid #68d391;
}
.t-err {
  border-left: 3px solid #fc8181;
}
.t-info {
  border-left: 3px solid var(--gold-l);
}

/* Auth polish */
.auth-logo-icon:not(.auth-logo-icon--sm) {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(184, 150, 58, 0.28), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(212, 180, 92, 0.35);
}
.auth-right {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
}
.auth-tab.active {
  box-shadow: var(--sh1);
}

/* App enter stagger */
.app-rise {
  animation: appRise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes appRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.pdf-preview {
  border-radius: var(--rl);
  border: 1px dashed rgba(201, 166, 70, 0.45);
  background:
    linear-gradient(180deg, rgba(251, 245, 230, 0.5) 0%, rgba(255,255,255,0.9) 40%),
    var(--surface);
}

.empty-st {
  border-radius: var(--rl);
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.6);
  padding: 36px 20px;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger .reveal-child,
  .app-rise,
  .btn:hover:not(:disabled),
  .stat-card:hover,
  .rc:hover,
  .edu-card:hover,
  .evidence-card:hover,
  .type-card:hover,
  .who-card:hover {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* -- UX improvements: FAB, quick log, calm UI, onboarding -- */
.calm-ui .lp-donate-glow,
.calm-ui .donate-node-pulse {
  animation: none !important;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.btn-outline-light {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  min-height: 44px;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.al-warn {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  border-radius: var(--rs);
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  font-weight: 600;
}

.b-amber {
  background: #fff7ed;
  color: #9a3412;
}

.rc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 2px;
}
.rc-sym,
.rc-extra {
  font-size: 0.81rem;
  color: var(--text2);
  margin-top: 7px;
  line-height: 1.55;
}
.rc-needs {
  border-left: 3px solid #d97706;
}

.seg-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.seg-btn {
  min-height: 48px;
  border-radius: var(--rs);
  border: 1.5px solid var(--border);
  background: var(--sf2);
  color: var(--text2);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 12px;
  cursor: pointer;
  text-align: center;
  line-height: 1.25;
}
.seg-btn.on {
  background: var(--navy-100);
  border-color: var(--navy-600);
  color: var(--navy);
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 14px;
  font-size: 0.92rem;
  color: var(--text);
  cursor: pointer;
}
.check-row input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.clinical-details {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: var(--rs);
  padding: 4px 12px 8px;
  background: var(--sf2);
}
.clinical-details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  padding: 10px 0;
  list-style: none;
}
.clinical-details summary::-webkit-details-marker { display: none; }
.clinical-body { padding-bottom: 6px; }

.quick-sheet {
  text-align: center;
  padding: 8px 4px 4px;
}
.quick-sheet-lead {
  color: var(--text2);
  margin-bottom: 18px;
  font-size: 1.02rem;
  line-height: 1.5;
}
.mt12 { margin-top: 12px; }

.modal-simple .modal {
  max-width: 420px;
}
.modal-simple .modal-foot {
  justify-content: center;
}

.fab-crisis {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 400;
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px 0 16px;
  border: none;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1408;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(7, 21, 37, 0.28);
}
.fab-crisis:hover { background: var(--gold-l); }
.fab-crisis:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}
.fab-label { display: none; }

@media (max-width: 899px) {
  .fab-crisis:not([hidden]) {
    display: inline-flex;
  }
  .fab-label { display: inline; }
  .modal-overlay.open .modal {
    max-height: 96vh;
    border-radius: 18px 18px 12px 12px;
  }
  .quick-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .quick-actions {
    width: 100%;
  }
  .quick-actions .btn {
    flex: 1 1 auto;
    width: 100%;
  }
}

.onboard-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.onboard-steps li {
  background: var(--navy-100);
  border-radius: var(--rs);
  padding: 14px 16px;
  display: grid;
  gap: 4px;
}
.onboard-steps strong {
  color: var(--navy);
  font-size: 1.05rem;
}
.onboard-steps span {
  color: var(--text2);
  font-size: 0.92rem;
  line-height: 1.45;
}

.lp-more-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 16px 28px;
}
.lp-more-btn {
  min-height: 44px;
}
.lp-more[hidden] {
  display: none !important;
}
.lp-more:not([hidden]) {
  display: block;
}

.btn:focus-visible,
.seg-btn:focus-visible,
.finput:focus-visible,
.fselect:focus-visible,
.ftarea:focus-visible {
  outline: 3px solid rgba(184, 150, 58, 0.55);
  outline-offset: 2px;
}

.al-warn-btn {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.al-warn-btn:hover {
  filter: brightness(0.98);
}
.al-warn-btn:focus-visible {
  outline: 3px solid rgba(184, 150, 58, 0.55);
  outline-offset: 2px;
}

/* Dual-site locale switcher ES | EN */
.locale-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
}
.locale-switch--pill {
  gap: 2px;
  padding: 3px 4px 3px 6px;
}
.locale-globe {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.45);
  margin-right: 1px;
}
.locale-globe svg {
  width: 13px;
  height: 13px;
}
.lp-nav .locale-switch { color: #fff; }
.sidebar .locale-switch,
.sb-foot .locale-switch {
  margin: 0 0 10px;
  width: 100%;
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.locale-link {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.5);
  padding: 6px 9px;
  border-radius: 999px;
  transition: background-color 0.35s ease, color 0.35s ease;
}
.locale-link:hover { color: rgba(255, 255, 255, 0.92); }
.locale-link.is-active {
  color: #0f1c1a;
  background: var(--gold-l);
  box-shadow: 0 4px 12px rgba(240, 199, 94, 0.25);
}
.locale-sep { display: none; }
.lp-menu .locale-switch {
  margin: 0;
  width: 100%;
  justify-content: center;
  min-height: 48px;
  padding: 6px 10px;
}

/* =========================================================
   UX REDESIGN 2026 - trust, guidance, responsive, epilepsy-safe
   ========================================================= */

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(7, 21, 37, 0.18);
  transition: opacity var(--t), transform var(--t);
}
.logo-mark--sm { width: 34px; height: 34px; border-radius: 10px; }
.logo-mark--lg { width: 48px; height: 48px; border-radius: 14px; }
.lp-brand-icon,
.sb-logo-icon,
.auth-logo-icon,
.hero-brand-icon {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible;
}
.lp-brand-icon .logo-mark,
.sb-logo-icon .logo-mark,
.auth-logo-icon .logo-mark { width: 100%; height: 100%; }
.lp-brand-icon { width: 40px; height: 40px; }
.sb-logo-icon { width: 44px; height: 44px; }
.auth-logo-icon:not(.auth-logo-icon--sm) { width: 48px; height: 48px; }
.auth-logo-icon--sm { width: 36px; height: 36px; }
.hero-brand-icon { width: 56px !important; height: 56px !important; }

/* Soft, slow motion � no flashes / shakes / strobes */
.modal {
  animation: mInSoft 0.45s ease both;
}
@keyframes mInSoft {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.app-rise {
  animation: appRiseSoft 0.55s ease both;
}
@keyframes appRiseSoft {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.finput.is-invalid,
.fselect.is-invalid,
.ftarea.is-invalid {
  animation: none;
}
.stat-card:hover,
.rc:hover,
.edu-card:hover,
.nav-item:hover {
  transform: none;
}
.lp-donate-glow,
.donate-node-pulse,
.donate-cta-pulse {
  animation: none !important;
}

/* Sidebar navigation � clearer hierarchy */
.sb-nav {
  gap: 4px;
  padding: 8px 10px 16px;
}
.nav-group {
  margin: 10px 6px 6px;
}
.nav-group-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(212, 180, 92, 0.55);
  padding: 4px 10px 8px;
}
.nav-item {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 52px;
  padding: 10px 12px 10px 14px;
  margin: 2px 4px;
  border-radius: 12px;
  position: relative;
}
.nav-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.nav-item svg {
  width: 18px;
  height: 18px;
}
.nav-item-label {
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.2;
}
.nav-item-hint {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.38);
  padding-left: 30px;
  line-height: 1.3;
  max-width: 100%;
}
.nav-item.active .nav-item-hint {
  color: rgba(232, 201, 106, 0.65);
}
.nav-item--primary {
  background: rgba(184, 150, 58, 0.12);
  border: 1px solid rgba(184, 150, 58, 0.22);
  margin-bottom: 8px;
}
.nav-item--primary.active {
  background: linear-gradient(90deg, rgba(201, 166, 70, 0.28), rgba(201, 166, 70, 0.1));
}
.nav-item.active {
  box-shadow: inset 3px 0 0 var(--gold);
}

/* Topbar brand on mobile */
.topbar {
  gap: 10px;
  padding: 0 14px;
  padding-left: max(14px, env(safe-area-inset-left));
  padding-right: max(14px, env(safe-area-inset-right));
}
.topbar-brand {
  display: none;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.topbar-brand .logo-mark { width: 32px; height: 32px; border-radius: 9px; }
.topbar-brand-name {
  font-family: var(--brand);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.topbar-brand-name .wm-epi { color: var(--gold); }
.topbar-title {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
}

/* Dashboard guide + typography */
.guide-strip {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
@media (min-width: 700px) {
  .guide-strip { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
.guide-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 14px 14px 16px;
  border-left: 3px solid var(--gold);
  box-shadow: var(--sh0);
  transition: border-color var(--t), background-color var(--t), box-shadow var(--t);
}
.guide-step:hover {
  border-color: rgba(184, 150, 58, 0.45);
  box-shadow: var(--sh1);
}
.guide-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-p);
  color: #7a5e10;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.guide-step strong {
  display: block;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 4px;
  font-weight: 700;
}
.guide-step span {
  display: block;
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.45;
}
.guide-step button {
  margin-top: 10px;
  width: 100%;
}

.page-hdr h1 {
  font-size: clamp(1.65rem, 3.2vw, 2.05rem);
}
.page-hdr p {
  font-size: 1.02rem;
}
.stat-num {
  font-size: clamp(1.85rem, 3vw, 2.25rem);
  color: var(--navy);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}
.sc-gold .stat-num {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #8a6a18;
}
.rc-title {
  font-size: 1.02rem;
}
.rc-date {
  font-size: 0.88rem;
}
.rc-meta {
  font-size: 0.9rem;
}
.quick-text h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
}
.quick-text p {
  font-size: 0.98rem;
  opacity: 0.9;
  max-width: 42ch;
}
.quick-actions .btn {
  min-height: 52px;
  font-size: 1rem;
  font-weight: 700;
}
.flabel {
  font-size: 0.82rem;
}
.finput,
.fselect,
.ftarea {
  min-height: 52px;
  font-size: 1.02rem;
}
.modal-title {
  font-size: 1.25rem;
}
.help-box {
  font-size: 0.98rem;
  padding: 16px 18px;
}

/* Mobile bottom navigation */
.bnav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 350;
  height: calc(var(--bnav-h) + env(safe-area-inset-bottom, 0px));
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(7, 21, 37, 0.06);
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}
.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  border: 0;
  background: transparent;
  color: var(--text3);
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 12px;
  padding: 6px 4px;
  cursor: pointer;
  transition: background-color var(--t), color var(--t);
}
.bnav-item svg {
  width: 22px;
  height: 22px;
}
.bnav-item.active {
  color: var(--navy);
  background: var(--navy-100);
}
.bnav-item--crisis.active {
  color: #7a5e10;
  background: var(--gold-p);
}
.bnav-item:focus-visible {
  outline: 3px solid rgba(184, 150, 58, 0.5);
  outline-offset: 1px;
}

@media (max-width: 899px) {
  #view-app.on .bnav:not([hidden]) {
    display: grid;
  }
  #view-app.on .body {
    padding-bottom: calc(var(--bnav-h) + 28px + env(safe-area-inset-bottom, 0px));
  }
  #view-app.on .brand-foot {
    padding-bottom: calc(12px + var(--bnav-h) + env(safe-area-inset-bottom, 0px));
  }
  .topbar-brand { display: flex; }
  .topbar-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .fab-crisis {
    bottom: calc(var(--bnav-h) + 14px + env(safe-area-inset-bottom, 0px));
    right: max(14px, env(safe-area-inset-right));
  }
  .fab-label { display: none; }
  .fab-crisis {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}

@media (min-width: 900px) {
  .bnav { display: none !important; }
  .topbar-brand { display: none; }
  .topbar { padding: 0 24px; }
}

/* Auth readability */
.auth-title {
  font-size: clamp(1.55rem, 3vw, 1.85rem);
}
.auth-sub2 {
  font-size: 1rem;
  line-height: 1.5;
}

/* Crisis form clarity */
.seg-btn {
  min-height: 52px;
  font-size: 0.95rem;
}
.quick-sheet-lead {
  font-size: 1.08rem;
}
.save-primary-hint {
  text-align: center;
  color: var(--text3);
  font-size: 0.9rem;
  margin-top: -4px;
  margin-bottom: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .modal,
  .app-rise,
  .toast,
  .logo-mark {
    animation: none !important;
    transition: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   Stages 1–3 — crisis wizard, guide, first aid
   Calm blues / greens · mobile-first · 44px+ targets
   ═══════════════════════════════════════════════════════════ */

:root {
  --calm-blue: #1a5f7a;
  --calm-blue-soft: #e6f3f7;
  --calm-green: #1f6f5a;
  --calm-green-soft: #e7f5f0;
  --calm-mist: #f3f7f9;
}

.modal-wizard .modal {
  max-width: 520px;
  width: calc(100% - 20px);
  max-height: min(92vh, 780px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f7fbfc 0%, #fff 40%);
  border: 1px solid rgba(26, 95, 122, 0.12);
}
.modal-wizard .modal-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 18px 8px;
}
.modal-wizard .modal-hdr {
  background: var(--calm-mist);
  border-bottom: 1px solid rgba(26, 95, 122, 0.1);
}
.modal-wizard .modal-foot {
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid rgba(26, 95, 122, 0.1);
}

.wiz { color: var(--navy); }
.wiz-progress { margin-bottom: 14px; }
.wiz-progress-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--calm-blue);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.wiz-progress-track {
  height: 6px;
  border-radius: 99px;
  background: rgba(26, 95, 122, 0.12);
  overflow: hidden;
}
.wiz-progress-bar {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--calm-blue), var(--calm-green));
  transition: width 0.28s ease;
}
.wiz-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 6px;
  color: var(--navy);
}
.wiz-lead {
  margin: 0 0 18px;
  color: var(--text2);
  font-size: 0.95rem;
  line-height: 1.45;
}

.wiz-btn-xl,
.wiz-btn-touch {
  min-height: 48px;
  min-width: 48px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 14px;
  padding: 14px 18px;
  touch-action: manipulation;
}
.wiz-btn-xl {
  width: 100%;
  border: 2px solid var(--calm-blue);
  background: var(--calm-blue);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
}
.wiz-btn-xl:hover { filter: brightness(1.05); }
.wiz-btn-xl.on {
  background: var(--calm-green);
  border-color: var(--calm-green);
}
.wiz-just-now { margin-bottom: 16px; }
.wiz-datetime .wiz-input {
  min-height: 48px;
  font-size: 1.05rem;
}

.wiz-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.wiz-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 108px;
  padding: 14px 10px;
  border-radius: 16px;
  border: 2px solid rgba(26, 95, 122, 0.18);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
  touch-action: manipulation;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.wiz-type-card:active { transform: scale(0.98); }
.wiz-type-card.on {
  border-color: var(--calm-blue);
  background: var(--calm-blue-soft);
  box-shadow: 0 0 0 1px var(--calm-blue);
}
.wiz-type-ico {
  width: 44px;
  height: 44px;
  color: var(--calm-blue);
}
.wiz-type-ico svg { width: 100%; height: 100%; }
.wiz-type-label {
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}
.wiz-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  padding: 0;
  border: none;
  background: none;
  color: var(--calm-blue);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.wiz-timer {
  text-align: center;
  padding: 18px 12px;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--calm-blue-soft), var(--calm-green-soft));
}
.wiz-timer-display {
  font-variant-numeric: tabular-nums;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin-bottom: 14px;
}
.wiz-timer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wiz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wiz-chip {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(26, 95, 122, 0.22);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 550;
  cursor: pointer;
  touch-action: manipulation;
}
.wiz-chip.on {
  background: var(--calm-green-soft);
  border-color: var(--calm-green);
  color: var(--calm-green);
}
.wiz-check {
  min-height: 48px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--calm-mist);
}

.wiz-role-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wiz-role-card {
  text-align: left;
  min-height: 72px;
  padding: 16px;
  border-radius: 16px;
  border: 2px solid rgba(26, 95, 122, 0.18);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  touch-action: manipulation;
}
.wiz-role-card strong {
  display: block;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.wiz-role-card span {
  color: var(--text2);
  font-size: 0.88rem;
  line-height: 1.35;
}
.wiz-role-card.on {
  border-color: var(--calm-blue);
  background: var(--calm-blue-soft);
}

.wiz-summary { display: flex; flex-direction: column; gap: 8px; }
.wiz-sum-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--calm-mist);
}
.wiz-sum-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--calm-blue);
  margin-bottom: 2px;
}
.wiz-sum-value {
  display: block;
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.35;
}
.wiz-sum-edit {
  flex-shrink: 0;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(26, 95, 122, 0.25);
  background: #fff;
  color: var(--calm-blue);
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.wiz-summary-hint {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--text2);
}

#m-crisis-foot-wizard {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.modal-wizard #m-crisis-foot-default { display: none !important; }
.modal-wizard #m-crisis-foot-wizard { display: flex !important; }
#wiz-back,
#wiz-next {
  min-height: 48px;
  min-width: 44%;
  flex: 1;
  font-size: 1.02rem;
  font-weight: 600;
  border-radius: 14px;
  touch-action: manipulation;
}
#wiz-back[hidden] { display: none !important; }

.help-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(26, 95, 122, 0.28);
  background: var(--calm-blue-soft);
  color: var(--calm-blue);
  font: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  touch-action: manipulation;
}
.help-fab:hover { background: #d5ebf2; }
.topbar-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-page,
.firstaid-page {
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 32px;
}
.faq-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.faq-item {
  border-radius: 14px;
  border: 1px solid rgba(26, 95, 122, 0.14);
  background: #fff;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  min-height: 52px;
  padding: 14px 16px;
  font-weight: 650;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  touch-action: manipulation;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--calm-blue);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body {
  padding: 0 16px 16px;
  color: var(--text2);
  line-height: 1.5;
  font-size: 0.95rem;
}
.guide-settings {
  margin-top: 28px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--calm-mist), var(--calm-blue-soft));
}
.guide-settings h2 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0 0 10px;
}

.firstaid-page .fa-disclaimer {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 14px;
  border-left: 4px solid #b45309;
  background: #fff8eb;
  color: #5c3d0e;
  font-size: 0.9rem;
  line-height: 1.45;
}
.fa-section {
  margin-bottom: 22px;
  padding: 18px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(31, 111, 90, 0.14);
}
.fa-section--aura {
  background: linear-gradient(165deg, #fff 30%, var(--calm-blue-soft));
}
.fa-section--during {
  background: linear-gradient(165deg, #fff 30%, var(--calm-green-soft));
}
.fa-section--emergency {
  background: linear-gradient(165deg, #fff 40%, #fff1f0);
  border-color: rgba(185, 70, 70, 0.2);
}
.fa-section h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 12px;
  color: var(--navy);
}
.fa-section ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text2);
  line-height: 1.55;
}
.fa-section li { margin-bottom: 8px; }
.fa-source {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text3);
}

.onboard-carousel { text-align: center; padding: 8px 4px 4px; }
.onboard-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}
.onboard-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(26, 95, 122, 0.25);
}
.onboard-dot.on { background: var(--calm-blue); width: 22px; border-radius: 99px; }
.onboard-illus {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--calm-green-soft);
  color: var(--calm-green);
}
.onboard-illus svg { width: 36px; height: 36px; }
.onboard-carousel h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 0 8px;
  color: var(--navy);
}
.onboard-carousel p {
  margin: 0;
  color: var(--text2);
  line-height: 1.45;
  font-size: 0.98rem;
}
#m-onboard-foot {
  display: flex;
  gap: 8px;
  width: 100%;
}
#m-onboard-skip,
#m-onboard-ok {
  flex: 1;
  min-height: 48px;
  border-radius: 14px;
  font-weight: 600;
}

@media (min-width: 560px) {
  .wiz-type-grid { grid-template-columns: repeat(3, 1fr); }
  .wiz-timer-actions {
    flex-direction: row;
    justify-content: center;
  }
  .wiz-timer-actions .wiz-btn-xl { width: auto; min-width: 180px; }
}

/* —— Stages 4–7: brand, PDF email, bilingual topbar, mobile polish —— */
.locale-switch--topbar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 6px;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(10, 42, 61, 0.06);
  min-height: 44px;
}
.locale-switch--topbar .locale-link {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text2);
  cursor: pointer;
  min-width: 36px;
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 8px;
}
.locale-switch--topbar .locale-link.is-active {
  color: #0a2a3d;
  background: #fff;
  box-shadow: 0 1px 3px rgba(10, 42, 61, 0.12);
}
.locale-switch--topbar .locale-sep {
  color: var(--text3);
  opacity: 0.6;
}
.topbar .topbar-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pdf-actions .btn {
  min-height: 52px;
  font-size: 1.05rem;
  width: 100%;
}
.pdf-actions .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
@media (min-width: 560px) {
  .pdf-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .pdf-actions .btn {
    width: auto;
    flex: 1;
    min-width: 140px;
  }
}

.email-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}
.email-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(26, 95, 122, 0.18);
  background: #f3faf8;
  cursor: pointer;
  font: inherit;
  color: var(--text);
}
.email-chip:active { transform: scale(0.99); }
.email-chip strong {
  font-size: 1rem;
  font-weight: 650;
}
.email-chip span {
  font-size: 0.92rem;
  color: var(--text2);
}
.email-save-row {
  margin: 12px 0 8px;
  font-size: 1rem;
  gap: 10px;
}
#m-email .modal-foot .btn {
  min-height: 48px;
  flex: 1;
}
#m-email .finput,
#m-email .ftextarea {
  font-size: 16px;
  min-height: 48px;
}
#m-email .ftextarea {
  min-height: 120px;
  line-height: 1.5;
}

.wiz-progress-label {
  font-size: 1rem;
  min-height: 24px;
}
.wiz-title {
  font-size: clamp(1.25rem, 4.5vw, 1.55rem);
  line-height: 1.25;
}
.wiz-lead {
  font-size: 1.02rem;
  line-height: 1.5;
}
.wiz-btn-xl,
.wiz-btn-touch,
.wiz-type-card,
.wiz-chip,
.wiz-role-card,
.wiz-sum-edit {
  min-height: 48px;
}
.wiz-timer-display {
  font-size: clamp(2.4rem, 10vw, 3.2rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  padding: 16px 8px;
}
.wiz-type-label,
.wiz-chip {
  font-size: 1rem;
}
.modal-wizard .modal {
  width: calc(100% - 12px);
  max-height: min(94vh, 820px);
}
@media (max-width: 380px) {
  .wiz-type-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .locale-switch--topbar { margin-right: 2px; padding: 2px 4px; }
  .topbar-brand-name { display: none; }
}

.wm-epi {
  color: #1a7a6a;
}

/* =========================================================
   POCKET CLINIC (V4) — production theme layer
   ========================================================= */

body.theme-pocket,
body {
  background: var(--paper, var(--bg));
}

/* Auth — dark teal + white card (mobile-first) */
.auth-bg {
  background:
    radial-gradient(ellipse 90% 50% at 50% 0%, #1a4a42 0%, transparent 60%),
    linear-gradient(180deg, #0f1c1a 0%, #16352f 48%, #f3f7f5 48%) !important;
  opacity: 1 !important;
}
@media (min-width: 900px) {
  .auth-bg {
    background:
      radial-gradient(ellipse 80% 55% at 70% 0%, rgba(13,107,92,.35), transparent 55%),
      linear-gradient(160deg, #0f1c1a, #16352f) !important;
  }
}
.auth-logo-icon:not(.auth-logo-icon--sm) {
  background: var(--teal) !important;
  border: none !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.auth-tagline {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.auth-tagline em { color: var(--gold-l); font-style: italic; }
@media (max-width: 899px) {
  #auth-screen {
    background: transparent;
    align-items: stretch;
  }
  .auth-right {
    width: 100%;
    max-width: none;
    margin: auto 16px 24px;
    padding: 22px 18px !important;
    border-radius: 20px;
    background: #fff !important;
    box-shadow: 0 12px 32px rgba(15,28,26,.12);
    min-height: auto;
  }
  .auth-brand-mobile {
    display: none;
  }
  .auth-left {
    display: flex !important;
    flex: 0 0 auto;
    padding: 36px 20px 20px;
    justify-content: flex-start;
  }
  .auth-left .auth-feat { display: none; }
  .auth-sub { margin-bottom: 0; max-width: 28ch; }
  .auth-logo { margin-bottom: 18px; }
  .auth-tagline { font-size: 1.85rem; margin-bottom: 10px; max-width: 14ch; }
}
.btn-primary,
.btn-solid {
  background: var(--teal);
  border-color: var(--teal-d);
}
.btn-primary:hover,
.btn-solid:hover {
  background: var(--teal-d);
}
.btn-gold {
  background: var(--gold-l);
  color: #1a1408;
  border-color: transparent;
}
.btn-gold:hover { background: #e6b94a; color: #1a1408; }

/* Sidebar Pocket Clinic */
.sidebar {
  background:
    radial-gradient(ellipse 80% 40% at 0% 0%, rgba(13,107,92,.22), transparent 50%),
    linear-gradient(180deg, #16352f 0%, #0f1c1a 45%, #0a1412 100%) !important;
}
.nav-item.active {
  background: linear-gradient(90deg, rgba(13,107,92,.32), rgba(13,107,92,.1)) !important;
  color: #d8f0ea !important;
  box-shadow: inset 3px 0 0 var(--gold-l) !important;
}
.nav-group-label { color: rgba(208, 232, 224, 0.55) !important; }
.sb-avatar {
  background: linear-gradient(135deg, var(--gold-l), #a67c2d) !important;
  color: #0f1c1a !important;
}

/* Topbar */
.topbar {
  background: rgba(243, 247, 245, 0.92) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.topbar-title {
  font-family: var(--serif);
  font-weight: 600;
}

/* Dashboard Pocket Clinic */
.pocket-home { max-width: 640px; }
.pocket-hello {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.pocket-hello h1 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.pocket-date {
  color: var(--text3);
  font-size: 0.9rem;
  margin-top: 2px;
}
.pocket-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-d);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}
.hero-cta {
  margin: 0 0 18px;
  padding: 20px 18px;
  background: linear-gradient(160deg, #0f2f2a, #0d6b5c);
  border-radius: 18px;
  color: #fff;
  box-shadow: 0 10px 28px rgba(13, 107, 92, 0.28);
}
.hero-cta h2 {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3.5vw, 1.4rem);
  font-weight: 600;
  margin-bottom: 6px;
}
.hero-cta p {
  opacity: 0.88;
  font-size: 0.98rem;
  margin-bottom: 16px;
  max-width: 32ch;
  line-height: 1.45;
}
.btn-xl-gold {
  width: 100%;
  min-height: 62px;
  border: 0;
  border-radius: 14px;
  background: var(--gold-l);
  color: #1a1408;
  font-weight: 800;
  font-size: 1.08rem;
  cursor: pointer;
  transition: background-color var(--t);
}
.btn-xl-gold:hover { background: #e6b94a; }
.btn-xl-gold:focus-visible {
  outline: 3px solid rgba(255,255,255,.55);
  outline-offset: 3px;
}
.btn-sec-light {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.35);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--t), border-color var(--t);
}
.btn-sec-light:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.55);
}
.section-lbl {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text3);
  margin: 6px 0 10px;
}

/* Stats / cards / records */
.stat-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.stat-num {
  color: var(--ink) !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}
.sc-gold .stat-num { color: #8a6a18 !important; }
.rc {
  border-radius: 14px;
  border-left-width: 3px;
}
.rc-focal::before,
.rc.rc-focal { border-left-color: var(--teal); }
.quick-bar {
  background: linear-gradient(160deg, #0f2f2a, #0d6b5c) !important;
  border-radius: 18px !important;
}

/* Bottom nav — teal active */
.bnav {
  height: calc(var(--bnav-h) + env(safe-area-inset-bottom, 0px));
  grid-template-columns: repeat(4, 1fr) !important;
  background: rgba(255,255,255,.94) !important;
  border-top: 1px solid var(--border);
}
.bnav-item.active,
.bnav-item--crisis.active {
  color: var(--teal-d) !important;
  background: var(--teal-soft) !important;
}
.bnav-item:focus-visible {
  outline: 3px solid rgba(13,107,92,.45);
}

/* FAB */
.fab-crisis {
  background: var(--gold-l) !important;
  color: #1a1408 !important;
  box-shadow: 0 8px 24px rgba(15,28,26,.28) !important;
}
.fab-crisis:hover { background: #e6b94a !important; }

/* Forms & modal */
.finput,
.fselect,
.ftarea {
  min-height: 52px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #fafcfb;
}
.finput:focus,
.fselect:focus,
.ftarea:focus {
  border-color: var(--teal);
  box-shadow: var(--ring-navy);
  background: #fff;
}
.seg-btn.on {
  background: var(--teal) !important;
  border-color: var(--teal-d) !important;
  color: #fff !important;
}
.modal {
  border-radius: 18px;
  border: 1px solid rgba(13,107,92,.18);
}
.modal-title {
  font-family: var(--serif);
  font-weight: 600;
}
.wiz-btn-xl,
.btn.wiz-btn-xl {
  min-height: 60px;
  background: var(--teal);
  color: #fff;
  border-radius: 14px;
  font-weight: 800;
}

/* Landing soft alignment to Pocket Clinic */
.lp-hero.bg-navy,
.lp-hero {
  background: #0f1c1a !important;
}

@media (max-width: 899px) {
  #view-app.on .body {
    padding-bottom: calc(var(--bnav-h) + 28px + env(safe-area-inset-bottom, 0px));
  }
  .fab-crisis {
    bottom: calc(var(--bnav-h) + 14px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cta,
  .btn-xl-gold,
  .btn-sec-light,
  .bnav-item,
  .pocket-avatar,
  .lp-nav,
  .lp-nav-shell,
  .lp-nav-donate,
  .lp-nav-login,
  .lp-nav-start,
  .lp-nav-start-arrow,
  .lp-nav-start::after,
  .locale-link,
  .lp-brand-glow,
  .lp-menu-btn-bars,
  .lp-menu-btn-bars::before,
  .lp-menu-btn-bars::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Auth gate popups — about + path choice */
.modal-auth-gate {
  max-width: 440px;
  border: 1px solid rgba(13, 107, 92, 0.2);
}
.auth-gate-body {
  gap: 14px;
}
.auth-gate-lead {
  font-size: 1.02rem;
  color: var(--text2);
  line-height: 1.5;
  margin: 0;
}
.auth-gate-list {
  margin: 0;
  padding-left: 1.15em;
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.45;
}
.auth-gate-note {
  margin: 4px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--navy-100);
  color: var(--text2);
  font-size: 0.88rem;
  line-height: 1.45;
}
.auth-gate-foot {
  justify-content: stretch;
  flex-direction: column;
  gap: 8px;
}
.auth-gate-foot .btn-block,
.btn.btn-block {
  width: 100%;
}
.auth-path-choices {
  display: grid;
  gap: 10px;
}
.auth-path-card {
  text-align: left;
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 16px 14px;
  cursor: pointer;
  display: grid;
  gap: 6px;
  transition: border-color var(--t), background-color var(--t), box-shadow var(--t);
  min-height: 110px;
}
.auth-path-card:hover,
.auth-path-card:focus-visible {
  border-color: var(--teal);
  background: #f7fbf9;
  box-shadow: var(--sh1);
  outline: none;
}
.auth-path-card:focus-visible {
  outline: 3px solid rgba(13, 107, 92, 0.35);
  outline-offset: 2px;
}
.auth-path-card strong {
  font-size: 1.08rem;
  color: var(--ink);
  font-weight: 800;
}
.auth-path-card > span:not(.auth-path-cta) {
  font-size: 0.92rem;
  color: var(--text2);
  line-height: 1.4;
}
.auth-path-cta {
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--teal-d);
}
.auth-path-card--demo {
  border-color: rgba(166, 124, 45, 0.35);
  background: linear-gradient(180deg, #fffdf7 0%, #fff 100%);
}
.auth-path-card--demo .auth-path-cta {
  color: #8a6a18;
}
.auth-path-card--demo:hover,
.auth-path-card--demo:focus-visible {
  border-color: var(--gold);
  background: var(--gold-p);
}

.auth-lang-grid {
  display: grid;
  gap: 10px;
}
.auth-lang-btn {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  text-align: left;
  width: 100%;
  min-height: 64px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--t), background-color var(--t), box-shadow var(--t);
}
.auth-lang-btn:hover,
.auth-lang-btn:focus-visible {
  border-color: var(--teal);
  background: #f7fbf9;
  outline: none;
}
.auth-lang-btn:focus-visible {
  outline: 3px solid rgba(13, 107, 92, 0.35);
  outline-offset: 2px;
}
.auth-lang-btn.is-active {
  border-color: var(--teal);
  background: var(--teal-soft);
  box-shadow: inset 3px 0 0 var(--teal);
}
.auth-lang-code {
  grid-row: 1 / span 2;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  background: var(--navy);
  color: #fff;
}
.auth-lang-btn.is-active .auth-lang-code {
  background: var(--teal);
}
.auth-lang-name {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--ink);
}
.auth-lang-hint {
  font-size: 0.82rem;
  color: var(--text3);
}

@media (prefers-reduced-motion: reduce) {
  .auth-path-card {
    transition: none !important;
  }
}
