:root {
  --ink: #172033;
  --ink-2: #24304a;
  --muted: #667085;
  --paper: #fffaf0;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --cream: #fff3d7;
  --yellow: #ffd84d;
  --blue: #244fc8;
  --blue-dark: #132a72;
  --red: #df3344;
  --green: #15835f;
  --line: rgba(23, 32, 51, 0.11);
  --line-strong: rgba(23, 32, 51, 0.18);
  --shadow: 0 24px 70px rgba(23, 32, 51, 0.14);
  --shadow-soft: 0 12px 38px rgba(23, 32, 51, 0.09);
  --radius: 24px;
  --radius-lg: 34px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.58;
  background:
    radial-gradient(circle at 7% 5%, rgba(255, 216, 77, 0.58), transparent 30rem),
    radial-gradient(circle at 92% 2%, rgba(36, 79, 200, 0.20), transparent 34rem),
    radial-gradient(circle at 83% 78%, rgba(223, 51, 68, 0.15), transparent 30rem),
    linear-gradient(180deg, #fff5df 0%, #fffaf2 46%, #f7fbff 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(135deg, rgba(36, 79, 200, 0.065) 25%, transparent 25%),
    linear-gradient(225deg, rgba(223, 51, 68, 0.05) 25%, transparent 25%);
  background-size: 44px 44px;
  opacity: 0.18;
  mask-image: linear-gradient(to bottom, black 0%, transparent 68%);
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.88rem clamp(1rem, 4vw, 2rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 250, 241, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(23, 32, 51, 0.06);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 16px;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--yellow) 0 35%, var(--blue) 35% 68%, var(--red) 68% 100%);
  border: 3px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(23, 32, 51, 0.16);
}
.brand strong { display: block; line-height: 1.08; font-size: 0.98rem; }
.brand small { display: block; margin-top: 0.08rem; color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 0.22rem; margin-left: auto; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.55rem 0.78rem;
  border-radius: 999px;
  color: #586273;
  font-weight: 760;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.9); color: var(--ink); transform: translateY(-1px); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.22rem;
  border: 1px solid rgba(23, 32, 51, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 26px rgba(23, 32, 51, 0.07);
}
.language-switcher button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0.38rem 0.62rem;
  color: #596476;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}
.language-switcher button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 8px 18px rgba(36, 79, 200, 0.20);
}
.language-switcher button:focus-visible {
  outline: 3px solid rgba(36, 79, 200, 0.24);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  border-radius: 14px;
  padding: 0.62rem 0.82rem;
  box-shadow: var(--shadow-soft);
}

.section, .hero {
  position: relative;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 5.7rem) 0;
}
.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  gap: clamp(1.4rem, 4vw, 4rem);
  align-items: center;
}
.hero {
  min-height: 80vh;
  display: grid;
  align-items: center;
}
.hero-copy h1, .section-heading h2, .section h1 {
  margin: 0 0 1rem;
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.hero-copy h1 {
  max-width: 850px;
  font-size: clamp(2.7rem, 7vw, 6rem);
  background: linear-gradient(90deg, #111827 0%, var(--blue) 62%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  max-width: 66ch;
  margin: 0;
  color: #4f5966;
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
}
.eyebrow {
  margin: 0 0 0.68rem;
  color: var(--red);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.78rem; margin: 1.8rem 0 1.25rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.44rem;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0.84rem 1.16rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; box-shadow: 0 18px 42px rgba(36, 79, 200, 0.28); }
.button.secondary { background: rgba(255, 255, 255, 0.92); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.button.danger { background: #fff0f0; color: #9d1818; border: 1px solid #ffc7c7; }
.button.small { min-height: 38px; padding: 0.58rem 0.82rem; font-size: 0.84rem; }
.button.wide { width: 100%; }
.button[disabled] { cursor: not-allowed; opacity: 0.52; transform: none; box-shadow: none; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 0.62rem; }
.trust-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 0.46rem 0.72rem;
  background: rgba(255, 255, 255, 0.72);
  color: #596476;
  font-size: 0.84rem;
  font-weight: 760;
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.06);
}
.trust-strip span::before { content: "✓"; margin-right: 0.38rem; color: var(--green); font-weight: 950; }

.hero-recovery-card {
  position: relative;
  min-height: min(68vh, 720px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  margin: 0;
  background: #111827;
  box-shadow: 0 32px 90px rgba(23, 32, 51, 0.22);
}
.hero-recovery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 10, 22, 0.02), rgba(5, 10, 22, 0.34)),
    linear-gradient(90deg, rgba(5, 10, 22, 0.2), rgba(5, 10, 22, 0));
}
.hero-recovery-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: 50% 54%;
  filter: brightness(1.16) contrast(0.98) saturate(1.06);
}
.hero-recovery-card figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  width: fit-content;
  max-width: calc(100% - 2rem);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 0.55rem 0.78rem;
  background: rgba(6, 12, 27, 0.74);
  color: #f8fafc;
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.35;
  backdrop-filter: blur(14px);
}

.passport-card {
  position: relative;
  min-height: 588px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.91), rgba(255,248,230,0.84)),
    linear-gradient(135deg, rgba(255,216,77,0.96), rgba(36,79,200,0.72) 52%, rgba(223,51,68,0.76));
  box-shadow: 0 32px 90px rgba(23, 32, 51, 0.18);
}
.passport-card::before,
.passport-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}
.passport-card::before { right: -82px; bottom: -80px; width: 250px; height: 250px; background: rgba(223, 51, 68, 0.17); }
.passport-card::after { left: -70px; top: 72px; width: 190px; height: 190px; background: rgba(36, 79, 200, 0.18); }
.passport-topline {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.52rem 0.8rem;
  background: #111827;
  color: #fff;
  font-weight: 920;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.18);
}
.passport-topline::before { content: "✦"; margin-right: 0.42rem; color: var(--yellow); }
.passport-card h2 { position: relative; z-index: 2; margin: 1.08rem 0 0.22rem; font-size: clamp(1.75rem, 3vw, 2.3rem); line-height: 1.02; letter-spacing: -0.045em; }
.passport-card p { position: relative; z-index: 2; margin: 0; color: #5d6674; }
.hero-pass-figure {
  position: relative;
  z-index: 1;
  margin: 1rem 0 0;
}
.hero-pass-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.84);
  background: #fff;
  box-shadow: 0 18px 40px rgba(23, 32, 51, 0.12);
}
.passport-card-copy {
  position: relative;
  z-index: 2;
  margin-top: 1rem;
}
.token-meta { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1rem; }
.token-meta span { border: 1px solid var(--line); border-radius: 999px; padding: 0.46rem 0.68rem; background: rgba(255, 255, 255, 0.72); color: #4c5666; font-size: 0.84rem; font-weight: 750; }
.mascot-scene {
  position: relative;
  z-index: 1;
  height: 315px;
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 18%, rgba(255,216,77,0.88), transparent 5rem),
    linear-gradient(180deg, rgba(36,79,200,0.12), transparent 52%),
    repeating-linear-gradient(90deg, rgba(36,79,200,0.08) 0 2px, transparent 2px 22px),
    linear-gradient(135deg, #fffaf0, #f7fbff);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7);
}
.mascot-scene::before {
  content: "";
  position: absolute;
  left: -14%;
  right: -14%;
  bottom: -44px;
  height: 120px;
  background: linear-gradient(90deg, var(--yellow) 0 33.3%, var(--blue) 33.3% 66.6%, var(--red) 66.6% 100%);
  transform: rotate(-4deg);
  opacity: 0.88;
}
.sun { position: absolute; right: 36px; top: 30px; width: 84px; height: 84px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 14px rgba(255,216,77,0.20); }
.mascot { position: absolute; bottom: 20px; width: 130px; height: 220px; filter: drop-shadow(0 18px 18px rgba(23,32,51,0.18)); }
.mascot span { position: absolute; display: block; }
.mascot-female { left: 62px; }
.mascot-baseball { right: 62px; }
.hair { left: 8px; top: 0; width: 114px; height: 130px; border-radius: 54px 54px 44px 44px; background: #251f3d; }
.face { left: 22px; top: 34px; width: 86px; height: 86px; border-radius: 50%; background: #f2b790; box-shadow: inset 0 -8px rgba(0,0,0,0.05); }
.dress { left: 2px; bottom: 0; width: 126px; height: 120px; border-radius: 44px 44px 20px 20px; background: linear-gradient(180deg, var(--yellow) 0 33%, var(--blue) 33% 66%, var(--red) 66%); }
.cap { left: 16px; top: 12px; width: 100px; height: 44px; border-radius: 44px 44px 10px 10px; background: var(--blue); }
.cap::after { content: ""; position: absolute; right: -28px; bottom: 0; width: 50px; height: 14px; border-radius: 999px; background: var(--yellow); }
.shirt { left: 4px; bottom: 0; width: 122px; height: 120px; border: 6px solid var(--red); border-radius: 36px 36px 18px 18px; background: linear-gradient(135deg, #fff, #ffe9d4); }

.notice-card {
  width: min(100% - 2rem, var(--max));
  margin: -1.35rem auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.44rem;
  padding: 1rem 1.14rem;
  border: 1px solid rgba(245, 199, 82, 0.62);
  border-radius: 20px;
  background: rgba(255, 245, 210, 0.82);
  color: #5d4800;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}
.partner-proof {
  width: min(100% - 2rem, var(--max));
  margin: 1rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
.partner-proof article {
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  padding: 1.15rem 1.2rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}
.partner-proof strong { display: block; color: var(--blue); font-size: clamp(1.45rem, 3vw, 2.2rem); line-height: 1; letter-spacing: -0.045em; }
.partner-proof span { color: var(--muted); font-size: 0.95rem; line-height: 1.35; }

.alt-section {
  width: 100%;
  max-width: none;
  padding-inline: max(1rem, calc((100% - var(--max)) / 2));
  border-block: 1px solid rgba(23, 32, 51, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,255,255,0.34));
}
.section-heading { max-width: 760px; margin-bottom: 1.9rem; }
.section-heading h2, .section h1 { font-size: clamp(2rem, 4.6vw, 4.08rem); }
.section-heading p, .section > p { color: var(--muted); }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; max-width: none; }
.split-heading > p { max-width: 430px; margin: 0 0 0.8rem; }

.source-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: -0.5rem 0 1.4rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(36, 79, 200, 0.16);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(239,246,255,0.92));
  box-shadow: var(--shadow-soft);
}
.source-card strong { display: block; margin-bottom: 0.2rem; color: var(--blue-dark); font-size: 1rem; }
.source-card p { margin: 0; color: var(--muted); max-width: 76ch; font-size: 0.94rem; }

.impact-section {
  align-items: stretch;
  padding-top: clamp(2.8rem, 5vw, 5rem);
  padding-bottom: clamp(2.8rem, 5vw, 5rem);
}
.impact-copy {
  align-self: center;
}
.impact-copy h2 {
  margin: 0 0 1rem;
  max-width: 720px;
  font-size: clamp(2.05rem, 4.4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.impact-copy p:not(.eyebrow) {
  max-width: 66ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
}
.impact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.55rem;
}
.impact-visual {
  position: relative;
  min-height: 460px;
  margin: 0;
  padding: 1.15rem;
  border: 1px solid rgba(36, 79, 200, 0.18);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.9)),
    radial-gradient(circle at 20% 18%, rgba(255, 216, 77, 0.28), transparent 18rem);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.impact-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 8px solid transparent;
  border-image: linear-gradient(90deg, var(--yellow), #a5c1ff, #ff7b98) 1;
  pointer-events: none;
}
.impact-map {
  position: relative;
  min-height: 320px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 42% 44%, rgba(36, 79, 200, 0.18), transparent 13rem),
    linear-gradient(160deg, rgba(19, 42, 114, 0.95), rgba(23, 32, 51, 0.94));
  overflow: hidden;
}
.impact-map::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 40% 60% 52% 48% / 54% 40% 60% 46%;
  transform: rotate(-10deg);
}
.map-shape {
  position: absolute;
  display: block;
  background: linear-gradient(135deg, rgba(255, 216, 77, 0.95), rgba(255, 123, 152, 0.9));
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.22));
}
.shape-a {
  width: 42%;
  height: 46%;
  left: 21%;
  top: 22%;
  border-radius: 56% 44% 62% 38% / 46% 56% 44% 54%;
  transform: rotate(-18deg);
}
.shape-b {
  width: 27%;
  height: 30%;
  right: 16%;
  bottom: 18%;
  border-radius: 54% 46% 46% 54% / 48% 58% 42% 52%;
  background: linear-gradient(135deg, rgba(165, 193, 255, 0.95), rgba(255, 255, 255, 0.78));
  transform: rotate(12deg);
}
.map-pulse {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--red);
  border: 5px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 12px rgba(223, 51, 68, 0.2);
}
.pulse-a { left: 44%; top: 39%; }
.pulse-b { right: 30%; bottom: 31%; background: var(--blue); box-shadow: 0 0 0 12px rgba(36, 79, 200, 0.22); }
.map-line {
  position: absolute;
  height: 2px;
  background: rgba(255, 255, 255, 0.38);
  transform-origin: left center;
}
.line-a { width: 34%; left: 46%; top: 43%; transform: rotate(24deg); }
.line-b { width: 30%; left: 36%; top: 51%; transform: rotate(-32deg); }
.map-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.34rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-weight: 900;
  font-size: 0.84rem;
}
.label-water { left: 9%; top: 14%; }
.label-food { right: 9%; top: 20%; }
.label-shelter { left: 14%; bottom: 13%; }
.impact-visual figcaption {
  display: grid;
  gap: 0.34rem;
  padding: 1rem 0.2rem 0;
}
.impact-visual figcaption strong {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.18;
}
.impact-visual figcaption span {
  color: var(--muted);
  font-weight: 720;
}
.impact-needs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.4rem;
}
.impact-needs article {
  padding: 1.15rem;
  border: 1px solid rgba(36, 79, 200, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}
.impact-needs span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.75rem;
  border-radius: 14px;
  color: #172033;
  background: var(--yellow);
  font-weight: 950;
}
.impact-needs strong {
  display: block;
  margin-bottom: 0.34rem;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.2;
}
.impact-needs p {
  margin: 0;
  color: var(--muted);
}

.verification-section {
  padding-top: clamp(2.5rem, 5vw, 4.6rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.6rem);
}
.verification-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.verification-grid .panel {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  min-height: 230px;
}
.verification-grid h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.14;
}
.verification-grid p {
  margin: 0;
  color: var(--muted);
}
.verification-note {
  margin: 1rem 0 0;
  padding: 1rem 1.12rem;
  border-left: 4px solid var(--red);
  border-radius: 0 18px 18px 0;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-weight: 760;
}

.steps, .card-grid, .stats-grid { display: grid; gap: 1rem; }
.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps article, .org-card, .partner-card, .panel, .stat-card, .admin-card, details {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}
.steps article, .org-card, .partner-card, .mini-token, .panel { transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.steps article:hover, .org-card:hover, .partner-card:hover, .mini-token:hover, .panel:hover { transform: translateY(-3px); box-shadow: 0 24px 60px rgba(23,32,51,0.12); }
.steps article { padding: 1.12rem; }
.steps span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 14px; color: var(--blue); background: var(--yellow); font-weight: 950; }
.steps h3, .org-card h3, .partner-card h3, .panel h3 { margin: 0.85rem 0 0.36rem; line-height: 1.12; letter-spacing: -0.025em; }
.steps p, .org-card p, .partner-card p { margin: 0; color: var(--muted); }

.org-card, .partner-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 0.72rem; padding: 1.18rem; }
.org-card { min-height: 370px; }
.org-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 7px; background: linear-gradient(90deg, var(--yellow), var(--blue), var(--red)); }
.org-card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.org-badge { display: inline-grid; place-items: center; min-width: 64px; height: 44px; padding-inline: 0.65rem; border-radius: 14px; color: #fff; background: #111827; font-weight: 950; letter-spacing: -0.025em; }
.verified-pill { display: inline-flex; align-items: center; border: 1px solid #c9ecd9; border-radius: 999px; padding: 0.36rem 0.58rem; background: #eaf8f2; color: #0f664a; font-size: 0.75rem; font-weight: 920; white-space: nowrap; }
.verified-pill::before { content: "✓"; margin-right: 0.34rem; }
.org-card h3 { font-size: 1.32rem; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag { display: inline-flex; align-items: center; border: 1px solid rgba(234, 219, 197, 0.88); border-radius: 999px; padding: 0.36rem 0.56rem; color: #594b40; background: rgba(255, 246, 229, 0.92); font-size: 0.77rem; font-weight: 780; }
.card-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: auto; }
.external-note { font-size: 0.84rem; color: #5c6570; }
.partner-card { min-height: 220px; background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,251,242,0.9)); }
.partner-card h3::after { content: "協力候補"; margin-left: 0.5rem; padding: 0.22rem 0.45rem; border-radius: 999px; color: var(--blue); background: rgba(36,79,200,0.08); font-size: 0.72rem; vertical-align: middle; }

.form-grid { grid-template-columns: minmax(360px, 0.88fr) minmax(420px, 0.92fr); align-items: stretch; }
.panel { padding: 1.28rem; }
.form-panel { display: grid; gap: 1rem; border-top: 7px solid var(--blue); }
label { display: grid; gap: 0.34rem; color: var(--ink); font-weight: 800; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  outline: none;
  padding: 0.84rem 0.9rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  transition: border 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
textarea { min-height: 112px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(36, 79, 200, 0.12), 0 12px 24px rgba(36, 79, 200, 0.06); }

.submission-section { align-items: stretch; }
.submission-info {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.05rem;
  min-height: 640px;
  overflow: hidden;
  border-top: 7px solid var(--red);
  background:
    radial-gradient(circle at 12% 14%, rgba(255,216,77,0.28), transparent 15rem),
    radial-gradient(circle at 90% 92%, rgba(36,79,200,0.13), transparent 17rem),
    rgba(255,255,255,0.88);
}
.submission-info::after {
  content: "SUPPORT";
  position: absolute;
  right: -1.2rem;
  bottom: -1.35rem;
  color: rgba(36,79,200,0.055);
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  font-weight: 950;
  letter-spacing: -0.08em;
  line-height: 1;
  pointer-events: none;
}
.submission-info > * { position: relative; z-index: 1; }
.submission-info h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: -0.052em;
}
.submission-lead {
  max-width: 52ch;
  margin: 0;
  color: #4e596b;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
}
.supporter-pass-preview {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0.25rem 0 0.2rem;
  padding: 0.95rem;
  border: 1px solid rgba(36,79,200,0.16);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(255,246,220,0.9));
  box-shadow: 0 14px 36px rgba(23,32,51,0.08);
}
.preview-token {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  border-radius: 24px;
  color: #fff;
  font-weight: 950;
  letter-spacing: -0.04em;
  background: linear-gradient(145deg, var(--yellow) 0 28%, var(--blue) 28% 66%, var(--red) 66% 100%);
  border: 4px solid rgba(255,255,255,0.92);
  box-shadow: 0 16px 34px rgba(23,32,51,0.16);
}
.supporter-pass-preview span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 880;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.supporter-pass-preview strong {
  display: block;
  margin-top: 0.12rem;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.2;
}
.submission-steps {
  display: grid;
  gap: 0.74rem;
}
.submission-steps article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.78rem;
  align-items: start;
  padding: 0.82rem;
  border: 1px solid rgba(23,32,51,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
}
.submission-steps span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: var(--blue);
  background: rgba(255,216,77,0.78);
  font-weight: 950;
}
.submission-steps strong { display: block; line-height: 1.18; }
.submission-steps p { margin: 0.18rem 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.receipt-note {
  margin: 0.15rem 0 0;
  padding-left: 0.95rem;
  border-left: 3px solid rgba(223,51,68,0.42);
  color: #636e7d;
  font-size: 0.92rem;
}
.checkbox-label { display: flex; align-items: flex-start; gap: 0.68rem; color: var(--muted); font-weight: 620; }
.checkbox-label input { width: auto; margin-top: 0.25rem; }
.muted { color: var(--muted); font-weight: 560; }
.form-feedback { min-height: 1.4rem; margin: 0; color: var(--muted); }
.form-feedback.success { color: var(--green); }
.form-feedback.error { color: var(--red); }
.check-list { display: grid; gap: 0.64rem; padding-left: 0; list-style: none; color: var(--muted); }
.check-list li { position: relative; padding-left: 1.64rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 950; }
.lookup-result { margin-top: 1rem; }
.result-card, .token-certificate, .coupon-item { border: 1px solid var(--line); border-radius: 18px; padding: 1rem; background: #fffdfa; }
.result-card.pending { border-color: #efd176; background: #fff8dc; }
.result-card.approved { border-color: #b9dfce; background: #f0fff8; }
.result-card.rejected { border-color: #ffc1c1; background: #fff3f3; }
.token-certificate { margin-top: 1rem; background: #fff; }
.coupon-list { display: grid; gap: 0.72rem; margin-top: 0.85rem; }
.coupon-item { border-style: dashed; background: #fffaf0; }
.coupon-code { display: inline-block; margin-top: 0.34rem; color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 950; letter-spacing: 0.08em; }
.reward-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  margin-top: 0.8rem;
}
.reward-note {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.partner-soon-card {
  grid-column: 1 / -1;
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
}
.partner-soon-card h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.partner-soon-card p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  max-width: 760px;
}
.partner-soon-card .check-list {
  margin: 1rem 0;
}

.kit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.kit-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 220px;
}
.kit-card-featured {
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(255,248,230,0.92));
}
.kit-chip {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 0.36rem 0.68rem;
  background: rgba(36,79,200,0.10);
  color: var(--blue);
  font-weight: 900;
  font-size: 0.82rem;
}
.kit-card h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.15;
}
.kit-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.token-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.mini-token {
  position: relative;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 28px;
  padding: 1.2rem;
  color: #fff;
  box-shadow: var(--shadow);
}
.mini-token::before { content: "✦"; position: absolute; right: 24px; top: 20px; font-size: 4.2rem; opacity: 0.22; }
.mini-token::after { content: "VSPJ"; position: absolute; left: 1.1rem; top: 1.1rem; border-radius: 999px; padding: 0.32rem 0.52rem; background: rgba(255,255,255,0.22); font-size: 0.76rem; font-weight: 950; }
.mini-token.yellow { color: #2a2100; background: linear-gradient(135deg, #d19400, var(--yellow)); }
.mini-token.blue { background: linear-gradient(135deg, #173b98, var(--blue)); }
.mini-token.red { background: linear-gradient(135deg, #7a1212, var(--red)); }
.mini-token span { font-weight: 790; opacity: 0.88; }
.mini-token strong { font-size: 2rem; line-height: 1; }
.token-gallery-rich {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.asset-preview-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.82);
  border-radius: 28px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-soft);
}
.asset-preview-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #fff;
}
.asset-preview-card figcaption {
  display: grid;
  gap: 0.42rem;
  padding: 1rem 1rem 1.1rem;
}
.asset-preview-card h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.1;
}
.asset-preview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.token-explainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
}
.token-explainer h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.check-list.compact {
  gap: 0.56rem;
  margin: 0;
}
.pitch-panel { position: relative; overflow: hidden; }
.pitch-panel::after { content: "PARTNER KIT"; position: absolute; right: -1.5rem; bottom: 0.55rem; color: rgba(36,79,200,0.07); font-size: 3.4rem; font-weight: 950; letter-spacing: -0.08em; }

.faq-section details { margin-bottom: 0.82rem; padding: 1rem 1.18rem; }
summary { cursor: pointer; font-weight: 920; }
details p { color: var(--muted); }
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 2rem);
  border-top: 1px solid rgba(17, 24, 39, 0.18);
  background: #fff5df;
  color: #334155;
}
.site-footer a {
  color: #10266d;
  font-weight: 850;
  text-underline-offset: 0.14em;
  text-decoration-thickness: 0.08em;
}

.admin-main .section { padding-top: 2.5rem; }
.admin-toolbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.stat-card, .admin-card { padding: 1rem; }
.stat-card strong { display: block; font-size: 2rem; }
.admin-list { display: grid; gap: 1rem; }
.admin-card header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.receipt-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: clamp(0.75rem, 3vw, 2rem);
}
.receipt-preview-modal.is-open {
  display: grid;
}
.receipt-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 34, 0.62);
  backdrop-filter: blur(6px);
}
.receipt-preview-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(100%, 980px);
  height: min(86vh, 820px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background: #fffdfa;
  box-shadow: var(--shadow);
}
.receipt-preview-dialog header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}
.receipt-preview-dialog h2 {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.receipt-preview-body {
  min-height: 0;
  padding: 1rem;
  background: #f5f7fb;
}
.receipt-preview-body img,
.receipt-preview-body iframe {
  display: none;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 14px;
  background: #fff;
}
.receipt-preview-body img {
  object-fit: contain;
}
.receipt-preview-body .is-active {
  display: block;
}
.receipt-preview-fallback {
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
}
.status-pill { display: inline-flex; border-radius: 999px; padding: 0.35rem 0.55rem; font-weight: 920; font-size: 0.78rem; }
.status-pending { background: #fff1b5; color: #6b5000; }
.status-approved { background: #d9f7e8; color: #126144; }
.status-rejected { background: #ffe0e0; color: #951b1b; }
.policy-page { max-width: 860px; }
.policy-page h2 { margin-top: 2rem; }
.visible-desktop { display: flex; }

@media (max-width: 1040px) {
  .site-nav a { padding-inline: 0.58rem; font-size: 0.84rem; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; }
  .site-nav { order: 3; }
  .header-actions { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,0.96);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .visible-desktop { display: none; }
  .section-grid, .form-grid, .split-heading { display: grid; grid-template-columns: 1fr; }
  .steps, .token-gallery, .stats-grid, .partner-proof, 
.partner-soon-card {
  grid-column: 1 / -1;
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
}
.partner-soon-card h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.partner-soon-card p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  max-width: 760px;
}
.partner-soon-card .check-list {
  margin: 1rem 0;
}

.kit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .passport-card { min-height: 500px; }
  .org-card { min-height: auto; }
  .admin-toolbar { grid-template-columns: 1fr; }
  .submission-info { min-height: auto; justify-content: start; }
  .submission-info h2 { max-width: none; }
}

@media (max-width: 620px) {
  .site-header {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.55rem;
    min-height: 74px;
    padding: 0.68rem 0.78rem;
  }
  .brand {
    flex: 1 1 auto;
    max-width: none;
    gap: 0.58rem;
    padding-right: 0;
  }
  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }
  .header-actions {
    gap: 0.42rem;
    margin-left: auto;
  }
  .language-switcher {
    padding: 0.16rem;
  }
  .language-switcher button { padding-inline: 0.48rem; font-size: 0.72rem; }
  .language-switcher button {
    min-height: 30px;
    padding-inline: 0.42rem;
    font-size: 0.68rem;
  }
  .nav-toggle {
    min-height: 38px;
    padding: 0.5rem 0.66rem;
    border-radius: 12px;
  }
  .brand strong {
    font-size: 0.82rem;
    line-height: 1.12;
    white-space: normal;
  }
  .hero-recovery-card {
    min-height: 440px;
    border-radius: 24px;
  }
  .hero-recovery-card figcaption {
    border-radius: 16px;
    font-size: 0.7rem;
  }
  .section, .hero { width: min(100% - 1.1rem, var(--max)); padding: 2.8rem 0; }
  .hero { min-height: auto; }
  .hero-copy h1 {
    font-size: clamp(2.05rem, 10vw, 2.8rem);
    line-height: 1.02;
    letter-spacing: -0.048em;
  }
  .hero-lead { font-size: 1.03rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .brand small { display: none; }
  .card-grid, .steps, .token-gallery, .stats-grid, .partner-proof, 
.partner-soon-card {
  grid-column: 1 / -1;
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
}

.partner-soon-card h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.partner-soon-card p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  max-width: 760px;
}
.partner-soon-card .check-list {
  margin: 1rem 0;
}

.kit-grid { grid-template-columns: 1fr; }
  .passport-card { min-height: 458px; padding: 1rem; }
  .mascot-scene { height: 270px; }
  .mascot { transform: scale(0.84); transform-origin: bottom center; }
  .mascot-female { left: 8px; }
  .mascot-baseball { right: 8px; }
  .org-card-top { align-items: flex-start; flex-direction: column; }
  .supporter-pass-preview { align-items: flex-start; flex-direction: column; }
  .submission-steps article { grid-template-columns: 36px 1fr; }
  .submission-steps span { width: 36px; height: 36px; }
  .site-footer { display: block; }
}

@media (max-width: 430px) {
  .brand strong {
    max-width: 11rem;
  }
  .language-switcher button {
    padding-inline: 0.34rem;
  }
}

@media (max-width: 860px) {
  .impact-section.section-grid {
    grid-template-columns: 1fr;
  }
  .impact-visual {
    min-height: auto;
  }
  .impact-map {
    min-height: 280px;
  }
  .impact-needs {
    grid-template-columns: 1fr;
  }
  .impact-actions .button {
    width: 100%;
  }
}

html[data-theme="dark"] .impact-copy p:not(.eyebrow),
html[data-theme="dark"] .impact-visual figcaption span,
html[data-theme="dark"] .impact-needs p {
  color: #cbd5e1;
}

html[data-theme="dark"] .impact-visual {
  border-color: rgba(165, 193, 255, 0.24);
  background:
    linear-gradient(145deg, rgba(17, 25, 42, 0.96), rgba(21, 34, 58, 0.92)),
    radial-gradient(circle at 20% 18%, rgba(255, 216, 77, 0.16), transparent 18rem);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .impact-map {
  background:
    radial-gradient(circle at 42% 44%, rgba(165, 193, 255, 0.18), transparent 13rem),
    linear-gradient(160deg, rgba(8, 14, 26, 0.98), rgba(18, 31, 54, 0.96));
}

html[data-theme="dark"] .impact-visual figcaption strong,
html[data-theme="dark"] .impact-needs strong {
  color: #f8fafc;
}

html[data-theme="dark"] .impact-needs article {
  border-color: rgba(165, 193, 255, 0.22);
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .impact-needs span {
  color: #172033;
  background: #ffd95a;
  text-shadow: none;
}

/* QA polish pass */
.source-card .button {
  flex: 0 0 auto;
}
.verified-pill {
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}
.reference-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(247,250,255,0.88));
}
.reference-note {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 1px dashed rgba(36, 79, 200, 0.22);
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  color: #536179;
  background: rgba(239, 246, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 800;
}
.pitch-panel {
  display: flex;
  flex-direction: column;
}
.pitch-panel > * {
  position: relative;
  z-index: 1;
}
.pitch-panel .button {
  align-self: center;
  margin-top: 1.1rem;
  min-width: min(100%, 320px);
}
.pitch-panel::after {
  z-index: 0;
  opacity: 0.82;
}

@media (max-width: 900px) {
  .source-card {
    display: grid;
    text-align: left;
  }
  .source-card .button {
    justify-self: center;
  }
}

/* Category selector redesign */
.category-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.35rem 0 1rem;
}
.category-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 62px;
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: 22px;
  padding: 0.85rem 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  font-weight: 920;
  text-align: left;
}
.category-tab strong {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: #111827;
  font-size: 0.86rem;
}
.category-tab.active {
  border-color: rgba(36, 79, 200, 0.42);
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(239,246,255,0.96));
  box-shadow: 0 18px 42px rgba(36, 79, 200, 0.14);
}
.category-tab.active span { color: var(--blue-dark); }
.category-tab.active strong { background: var(--blue); }
.category-intro {
  margin: 0 0 1.2rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid rgba(36, 79, 200, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
}
.category-intro h3 { margin: 0.2rem 0 0.2rem; font-size: 1.25rem; }
.category-intro p { margin: 0; color: var(--muted); }
.category-kicker {
  display: inline-flex;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 920;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.customer-copy p { max-width: 78ch; }
.org-more {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.org-more summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 34px;
  border: 1px solid rgba(36, 79, 200, 0.14);
  border-radius: 999px;
  padding: 0.4rem 0.62rem;
  color: var(--blue-dark);
  background: rgba(239, 246, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
}
.org-more summary::-webkit-details-marker { display: none; }
.org-more summary::marker { content: ""; }
.org-more p {
  margin: 0.55rem 0 0;
  color: #5c6570;
  font-size: 0.84rem;
}
.org-card { min-height: 340px; }
.org-card .card-tags { margin-top: auto; }

@media (max-width: 760px) {
  .category-tabs { grid-template-columns: 1fr; }
  .category-tab { min-height: 54px; }
}

/* Multilingual header and partner-card polish */
.partner-card h3::after { content: none; }

/* Language layout QA: keep the header from crowding long Spanish labels */
.site-header {
  justify-content: flex-start;
}
.brand {
  flex: 0 1 310px;
  max-width: 340px;
  padding-right: clamp(0.4rem, 1.4vw, 1.2rem);
}
.brand strong {
  white-space: nowrap;
}
.site-nav {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
  margin-left: clamp(0.5rem, 1.8vw, 1.8rem);
}
.header-actions {
  flex: 0 0 auto;
  margin-left: auto;
}

html[lang="es"] .hero-copy {
  padding-left: clamp(0.45rem, 1.2vw, 1.1rem);
}
html[lang="es"] .hero-copy h1 {
  max-width: 780px;
  font-size: clamp(3rem, 6.2vw, 5.45rem);
  line-height: 1;
  letter-spacing: -0.058em;
}
html[lang="es"] .hero.section-grid {
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.92fr);
  gap: clamp(2rem, 5vw, 5.5rem);
}

@media (max-width: 1180px) {
  .site-header { flex-wrap: wrap; }
  .site-nav { order: 3; }
  .header-actions { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,0.96);
    box-shadow: var(--shadow);
    margin-left: 0;
  }
  .site-nav.is-open { display: flex; }
}

@media (max-width: 900px) {
  html[lang="es"] .hero-copy {
    padding-left: 0;
  }
  html[lang="es"] .hero-copy h1 {
    font-size: clamp(2.45rem, 11vw, 3.45rem);
  }
}

/* Receipt section compact pass: keep form and reward guide visible on laptop screens */
#submit.section {
  padding-top: clamp(2rem, 4vw, 3.4rem);
  padding-bottom: clamp(2rem, 4vw, 3.4rem);
}
.submission-section.form-grid {
  grid-template-columns: minmax(340px, 0.9fr) minmax(420px, 0.94fr);
  gap: clamp(1rem, 3vw, 2.2rem);
  align-items: center;
}
.submission-section .panel {
  padding: clamp(1rem, 1.8vw, 1.22rem);
  border-radius: 26px;
}
.submission-info {
  min-height: 560px;
  justify-content: center;
  gap: 0.78rem;
}
.submission-info h2 {
  max-width: 13ch;
  font-size: clamp(1.9rem, 3.35vw, 2.7rem);
  line-height: 1.06;
  letter-spacing: -0.047em;
}
.submission-lead {
  font-size: clamp(0.96rem, 1.18vw, 1.05rem);
  line-height: 1.5;
  max-width: 54ch;
}
.supporter-pass-preview {
  gap: 0.78rem;
  margin: 0.08rem 0;
  padding: 0.72rem;
  border-radius: 18px;
}
.preview-token {
  width: 56px;
  height: 56px;
  border-radius: 19px;
  border-width: 3px;
}
.supporter-pass-preview span {
  font-size: 0.68rem;
  letter-spacing: 0.075em;
}
.supporter-pass-preview strong {
  font-size: 0.92rem;
}
.submission-steps {
  gap: 0.58rem;
}
.submission-steps article {
  grid-template-columns: 34px 1fr;
  gap: 0.66rem;
  padding: 0.64rem 0.72rem;
  border-radius: 15px;
}
.submission-steps span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 0.92rem;
}
.submission-steps strong {
  font-size: 0.94rem;
}
.submission-steps p {
  margin-top: 0.1rem;
  font-size: 0.83rem;
  line-height: 1.36;
}
.receipt-note {
  margin-top: 0.04rem;
  font-size: 0.84rem;
  line-height: 1.42;
}
.form-panel {
  gap: 0.66rem;
  border-top-width: 6px;
}
.form-panel label {
  gap: 0.22rem;
  font-size: 0.93rem;
}
.form-panel input,
.form-panel select,
.form-panel textarea {
  border-radius: 13px;
  padding: 0.62rem 0.78rem;
  min-height: 44px;
  font-size: 0.94rem;
}
.form-panel textarea {
  min-height: 76px;
}
.file-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.78rem;
  min-height: 54px;
  border: 2px solid var(--blue);
  border-radius: 14px;
  padding: 0.48rem 0.62rem;
  background: var(--input-bg);
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 8px 0 rgba(31, 73, 189, 0.22);
}
.file-picker input[type="file"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-picker-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 10px;
  padding: 0.44rem 0.74rem;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(31, 73, 189, 0.28);
}
.file-picker-name {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-picker:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--focus-ring);
}
.form-panel .checkbox-label {
  gap: 0.55rem;
  font-size: 0.86rem;
  line-height: 1.45;
}
.form-panel .button.wide {
  min-height: 48px;
}
.form-panel .form-feedback {
  min-height: 1rem;
  font-size: 0.86rem;
}

html[lang="es"] .submission-info h2 {
  max-width: 12.5ch;
  font-size: clamp(1.82rem, 3.15vw, 2.52rem);
}
html[lang="es"] .submission-lead {
  font-size: 0.97rem;
}

@media (max-width: 900px) {
  .submission-section.form-grid {
    grid-template-columns: 1fr;
  }
  .submission-info {
    min-height: auto;
  }
  .submission-info h2,
  html[lang="es"] .submission-info h2 {
    max-width: none;
  }
}


.admin-heading-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.admin-empty a { color: var(--blue); font-weight: 800; text-decoration: none; }
.admin-empty a:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .admin-heading-actions { justify-content: flex-start; }
}

/* Review dashboard reliability improvements */
.admin-toolbar {
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: end;
}
.admin-toolbar .form-feedback {
  grid-column: 1 / -1;
  min-height: 1.4rem;
  font-weight: 780;
}
.admin-empty {
  border: 1px solid rgba(31, 80, 203, 0.14);
  background: rgba(255, 255, 255, 0.76);
}
.small-note {
  font-size: 0.9rem;
}
@media (max-width: 720px) {
  .admin-toolbar {
    grid-template-columns: 1fr;
  }
}

/* Admin dashboard: prevent receipt cards from overlapping long emails or confirmation IDs */
.admin-card {
  overflow: hidden;
}
.admin-card header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 1rem;
}
.admin-card header > div:first-child {
  min-width: 0;
}
.admin-card h3,
.admin-card p,
.coupon-item,
.coupon-code {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.admin-card header > .muted:last-child {
  justify-self: end;
  max-width: min(240px, 32vw);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  padding-top: 0.2rem;
}
@media (max-width: 760px) {
  .admin-card header {
    grid-template-columns: 1fr;
  }
  .admin-card header > .muted:last-child {
    justify-self: start;
    max-width: 100%;
    text-align: left;
  }
}

/* Admin dashboard privacy/security note */
.admin-security-note {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.admin-security-note strong {
  color: var(--ink);
}

/* Authenticated admin controls */
.is-hidden { display: none !important; }
.admin-only-actions {
  opacity: 1;
}
.admin-toolbar.unlocked {
  border-color: rgba(21, 128, 82, 0.22);
  box-shadow: 0 16px 38px rgba(21, 128, 82, 0.08);
}

/* Admin privacy/layout polish: no dashboard cards before unlock, no visual collision */
.stats-grid:empty { display: none; }
.admin-main .stats-grid { margin: 1.35rem 0 1rem; }
.admin-main .admin-list { margin-top: 1rem; }
.admin-main .admin-empty { margin-top: 0; clear: both; }
.admin-toolbar { position: relative; z-index: 2; }
.admin-card, .stat-card, .admin-empty { position: relative; z-index: 1; }

/* Responsive QA pass: prevent skinny cards and vertical text wrapping on tablet widths */
* { min-width: 0; }
html, body { max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; }
.asset-preview-card img {
  object-fit: contain;
  padding: 0.45rem;
  background: #fffaf0;
}
.token-gallery-rich {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(320px, 1.05fr);
}

/* Final mobile header pass: keep brand/actions on one row after later QA rules. */
@media (max-width: 620px) {
  .site-header {
    flex-wrap: nowrap;
    align-items: center;
    min-height: 72px;
    padding: 0.62rem 0.78rem;
  }
  .brand {
    flex: 0 1 auto;
    width: auto;
    max-width: calc(100% - 178px);
    padding-right: 0;
  }
  .brand strong {
    font-size: 0.82rem;
    line-height: 1.12;
    white-space: normal;
  }
  .brand small {
    display: none;
  }
  .header-actions {
    flex: 0 0 auto;
    gap: 0.42rem;
    margin-left: auto;
  }
  .language-switcher button {
    min-height: 30px;
    padding: 0.32rem 0.42rem;
    font-size: 0.68rem;
  }
  .nav-toggle {
    min-height: 38px;
    padding: 0.5rem 0.66rem;
    border-radius: 12px;
  }
  .hero-copy h1 {
    font-size: clamp(2.05rem, 10vw, 2.8rem);
    line-height: 1.02;
    letter-spacing: -0.048em;
  }
}

@media (max-width: 430px) {
  .brand > span:last-child {
    display: none;
  }
  .brand {
    max-width: 48px;
  }
}

/* Theme and simple WCAG contrast pass */
:root {
  color-scheme: light;
  --ink: #111827;
  --ink-2: #1f2937;
  --muted: #4b5565;
  --paper: #fff8e8;
  --surface: rgba(255, 255, 255, 0.93);
  --surface-solid: #ffffff;
  --cream: #fff0c7;
  --blue: #1f49bd;
  --blue-dark: #10266d;
  --red: #c81e35;
  --green: #106b4d;
  --line: rgba(17, 24, 39, 0.16);
  --line-strong: rgba(17, 24, 39, 0.28);
  --body-bg:
    radial-gradient(circle at 7% 5%, rgba(255, 216, 77, 0.46), transparent 30rem),
    radial-gradient(circle at 92% 2%, rgba(31, 73, 189, 0.18), transparent 34rem),
    radial-gradient(circle at 83% 78%, rgba(200, 30, 53, 0.13), transparent 30rem),
    linear-gradient(180deg, #fff3d4 0%, #fffaf2 46%, #f3f8ff 100%);
  --header-bg: rgba(255, 250, 241, 0.9);
  --chip-bg: rgba(255, 255, 255, 0.88);
  --input-bg: rgba(255, 255, 255, 0.96);
  --input-focus-bg: #ffffff;
  --soft-blue-bg: rgba(232, 240, 255, 0.86);
  --soft-yellow-bg: #fff6d2;
  --soft-green-bg: #e4f7ee;
  --soft-red-bg: #fff0f2;
  --focus-ring: rgba(31, 73, 189, 0.35);
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.16);
  --shadow-soft: 0 12px 38px rgba(17, 24, 39, 0.10);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f8fafc;
  --ink-2: #e5e7eb;
  --muted: #cbd5e1;
  --paper: #0d1220;
  --surface: rgba(20, 27, 43, 0.92);
  --surface-solid: #141b2b;
  --cream: #2a2230;
  --yellow: #ffd95a;
  --blue: #91b5ff;
  --blue-dark: #c5d7ff;
  --red: #ff8ca0;
  --green: #76d7ae;
  --line: rgba(226, 232, 240, 0.18);
  --line-strong: rgba(226, 232, 240, 0.32);
  --body-bg:
    radial-gradient(circle at 6% 4%, rgba(255, 217, 90, 0.18), transparent 28rem),
    radial-gradient(circle at 93% 2%, rgba(145, 181, 255, 0.24), transparent 34rem),
    radial-gradient(circle at 80% 82%, rgba(255, 140, 160, 0.16), transparent 30rem),
    linear-gradient(180deg, #080c16 0%, #0d1220 48%, #101827 100%);
  --header-bg: rgba(11, 17, 30, 0.88);
  --chip-bg: rgba(30, 41, 59, 0.84);
  --input-bg: rgba(15, 23, 42, 0.92);
  --input-focus-bg: #111c31;
  --soft-blue-bg: rgba(37, 65, 122, 0.46);
  --soft-yellow-bg: rgba(94, 74, 20, 0.44);
  --soft-green-bg: rgba(19, 89, 65, 0.42);
  --soft-red-bg: rgba(110, 32, 48, 0.38);
  --focus-ring: rgba(145, 181, 255, 0.45);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 12px 38px rgba(0, 0, 0, 0.30);
}

body {
  background: var(--body-bg);
}

html[data-theme="dark"] body::before {
  opacity: 0.08;
}

.site-header {
  background: var(--header-bg);
  border-bottom-color: var(--line);
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--chip-bg);
  box-shadow: var(--shadow-soft);
  font-size: 1.05rem;
  font-weight: 950;
}

.theme-toggle:focus-visible,
.nav-toggle:focus-visible,
.button:focus-visible,
.site-nav a:focus-visible,
.language-switcher button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.site-nav a,
.language-switcher button,
.trust-strip span,
.token-meta span,
.external-note,
.submission-steps p,
.receipt-note,
.reward-note,
.small-note,
.partner-proof span {
  color: var(--muted);
}

.site-nav a:hover,
.button.secondary,
.nav-toggle,
.language-switcher,
.trust-strip span,
.token-meta span,
.category-tab,
.category-intro,
.source-card,
.panel,
.steps article,
.org-card,
.partner-card,
.stat-card,
.admin-card,
details,
.asset-preview-card,
.receipt-preview-dialog {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.button.secondary,
.nav-toggle,
.theme-toggle {
  background: var(--chip-bg);
}

.button.primary,
.language-switcher button.active {
  background: linear-gradient(135deg, #1f49bd, #10266d);
  color: #ffffff;
}

html[data-theme="dark"] .button.primary,
html[data-theme="dark"] .language-switcher button.active {
  background: linear-gradient(135deg, #b9ccff, #91b5ff);
  color: #07111f;
}

.button.danger {
  background: var(--soft-red-bg);
  color: #9d1818;
  border-color: rgba(200, 30, 53, 0.32);
}

html[data-theme="dark"] .button.danger {
  color: #ffd2d8;
  border-color: rgba(255, 140, 160, 0.46);
}

.hero-lead,
.section-heading p,
.section > p,
.source-card p,
.steps p,
.org-card p,
.partner-card p,
.kit-card p,
.asset-preview-card p,
details p,
.muted,
.form-feedback,
.check-list {
  color: var(--muted);
}

input,
select,
textarea {
  background: var(--input-bg);
  color: var(--ink);
  border-color: var(--line-strong);
}

input:focus,
select:focus,
textarea:focus {
  background: var(--input-focus-bg);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 78%, transparent);
}

.notice-card {
  background: var(--soft-yellow-bg);
  color: var(--ink);
  border-color: rgba(176, 130, 0, 0.34);
}

.source-card {
  background: linear-gradient(135deg, var(--surface), var(--soft-blue-bg));
}

.submission-info,
.kit-card-featured,
.passport-card,
.partner-card,
.reference-card {
  background: var(--surface);
}

.passport-card p,
.org-more p {
  color: var(--muted);
}

.verified-pill,
.result-card.approved,
.status-approved {
  background: var(--soft-green-bg);
  color: var(--green);
  border-color: rgba(16, 107, 77, 0.30);
}

.result-card.pending,
.status-pending {
  background: var(--soft-yellow-bg);
  color: #6b5000;
}

html[data-theme="dark"] .result-card.pending,
html[data-theme="dark"] .status-pending {
  color: #ffe08a;
}

.result-card.rejected,
.status-rejected {
  background: var(--soft-red-bg);
  color: var(--red);
}

.result-card,
.token-certificate,
.coupon-item,
.receipt-preview-body img,
.receipt-preview-body iframe {
  background: var(--surface-solid);
  color: var(--ink);
  border-color: var(--line);
}

.coupon-item,
.tag,
.org-more summary,
.reference-note,
.kit-chip {
  background: var(--chip-bg);
  color: var(--ink);
  border-color: var(--line);
}

.coupon-code,
.admin-empty a,
.source-card strong,
.category-tab.active span,
.org-more summary {
  color: var(--blue-dark);
}

.org-more {
  margin-top: 0.15rem;
}

.org-more summary {
  width: 100%;
  justify-content: space-between;
  min-height: 42px;
  padding: 0.62rem 0.82rem;
  border: 1px solid rgba(31, 73, 189, 0.24);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(232, 240, 255, 0.95), rgba(255, 255, 255, 0.94));
  color: #173a95;
  box-shadow: 0 10px 24px rgba(31, 73, 189, 0.10);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.org-more summary::after {
  content: "›";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #244fc8;
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform 0.18s ease, background 0.18s ease;
}

.org-more summary:hover,
.org-more summary:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(31, 73, 189, 0.42);
  background: linear-gradient(135deg, rgba(219, 232, 255, 0.98), #ffffff);
  box-shadow: 0 14px 30px rgba(31, 73, 189, 0.15);
}

.org-more[open] summary {
  border-color: rgba(31, 73, 189, 0.44);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  background: linear-gradient(135deg, #244fc8, #173a95);
  color: #ffffff;
}

.org-more[open] summary::after {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(-90deg);
}

.org-more[open] {
  border: 1px solid rgba(31, 73, 189, 0.18);
  border-radius: 16px;
  background: rgba(248, 251, 255, 0.82);
  padding: 0;
}

.org-more[open] p {
  padding-inline: 0.82rem;
}

.org-more[open] p:last-child {
  padding-bottom: 0.82rem;
}

html[data-theme="dark"] .hero-copy h1 {
  background: linear-gradient(90deg, #ffffff 0%, #a9c2ff 58%, #ff9fb0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.receipt-preview-backdrop {
  background: rgba(3, 7, 18, 0.72);
}

.receipt-preview-body {
  background: color-mix(in srgb, var(--paper) 82%, #000 18%);
}

html[data-theme="dark"] .mini-token.yellow {
  color: #241900;
}

@media (max-width: 620px) {
  .theme-toggle {
    width: 38px;
    height: 38px;
  }
  .brand {
    max-width: calc(100% - 220px);
  }
}

@media (max-width: 1180px) {
  .split-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .split-heading > p {
    max-width: 760px;
    margin: 0;
  }
  .token-gallery-rich {
    grid-template-columns: repeat(2, minmax(280px, 1fr)) !important;
  }
  .token-gallery-rich .token-explainer {
    grid-column: 1 / -1;
  }
  .token-explainer {
    justify-content: flex-start;
  }
  .kit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .steps,
  .token-gallery,
  .token-gallery-rich,
  .stats-grid,
  .partner-proof,
  .kit-grid {
    width: 100%;
  }
  .partner-soon-card {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 860px;
  }
}

@media (max-width: 760px) {
  .token-gallery-rich,
  .kit-grid,
  .card-grid,
  .steps,
  .partner-proof,
  .stats-grid {
    grid-template-columns: 1fr !important;
  }
  .token-gallery-rich .token-explainer {
    grid-column: auto;
  }
  .asset-preview-card,
  .token-explainer,
  .partner-soon-card {
    border-radius: 22px;
  }
  .asset-preview-card figcaption {
    padding: 0.9rem 0.95rem 1rem;
  }
  .token-explainer h3,
  .partner-soon-card h3 {
    font-size: clamp(1.55rem, 7vw, 2.15rem);
    line-height: 1.08;
  }
  .token-explainer .check-list,
  .partner-soon-card .check-list {
    gap: 0.55rem;
  }
  .token-explainer .check-list li,
  .partner-soon-card .check-list li {
    line-height: 1.45;
  }
  .section-heading h2,
  .section h1 {
    font-size: clamp(2rem, 10vw, 3.15rem);
  }
}


@media (max-width: 760px) {
  .partner-proof {
    gap: 1rem;
  }
  .partner-proof article {
    min-height: 150px;
    padding: 1.35rem 1.45rem;
    justify-content: center;
    gap: 0.7rem;
  }
  .partner-proof strong {
    font-size: clamp(2rem, 13vw, 3rem);
  }
  .partner-proof span {
    font-size: clamp(1rem, 5vw, 1.2rem);
  }
}

@media (max-width: 430px) {
  .section,
  .hero {
    width: min(100% - 0.9rem, var(--max));
  }
  .token-gallery,
  .token-gallery-rich {
    gap: 0.8rem;
  }
  .asset-preview-card img {
    padding: 0.3rem;
  }
  .button.small {
    width: 100%;
    justify-content: center;
  }
}

.reward-link { user-select: none; -webkit-user-select: none; text-decoration: none; cursor: pointer; }
.reward-link[aria-busy="true"] { opacity: 0.82; pointer-events: none; }

/* Sticky header reliability: avoid overflow-hidden ancestors breaking sticky behavior. */
html,
body {
  overflow-x: clip;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Contrast polish: final theme decisions for readable light/dark modes. */
:root {
  --body-bg:
    radial-gradient(circle at 8% 4%, rgba(255, 216, 77, 0.38), transparent 28rem),
    radial-gradient(circle at 92% 0%, rgba(36, 79, 200, 0.16), transparent 34rem),
    radial-gradient(circle at 82% 82%, rgba(223, 51, 68, 0.12), transparent 30rem),
    linear-gradient(180deg, #fff0c9 0%, #fbf2e2 44%, #eef5ff 100%);
}

html[data-theme="dark"] {
  --ink: #f8fafc;
  --ink-2: #e7edf7;
  --muted: #c9d4e5;
  --paper: #070b14;
  --surface: #101827;
  --surface-solid: #121c2e;
  --cream: #1d2638;
  --yellow: #ffd95a;
  --blue: #8fb4ff;
  --blue-dark: #d7e4ff;
  --red: #ff7f95;
  --green: #7ee0b5;
  --line: rgba(211, 224, 244, 0.24);
  --line-strong: rgba(226, 232, 240, 0.38);
  --body-bg:
    radial-gradient(circle at 10% 0%, rgba(255, 217, 90, 0.14), transparent 26rem),
    radial-gradient(circle at 88% 5%, rgba(43, 90, 190, 0.22), transparent 34rem),
    radial-gradient(circle at 82% 86%, rgba(223, 51, 68, 0.12), transparent 28rem),
    linear-gradient(180deg, #050914 0%, #080d18 44%, #0b1220 100%);
  --header-bg: rgba(8, 13, 24, 0.92);
  --chip-bg: #182235;
  --input-bg: #0d1728;
  --input-focus-bg: #111d32;
  --soft-blue-bg: #172b52;
  --soft-yellow-bg: #2f2815;
  --soft-green-bg: #102f26;
  --soft-red-bg: #351520;
}

html[data-theme="dark"] body::before {
  opacity: 0.035;
}

html[data-theme="dark"] .site-header {
  background: rgba(8, 13, 24, 0.9);
  border-bottom-color: rgba(211, 224, 244, 0.18);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] .brand,
html[data-theme="dark"] .brand small,
html[data-theme="dark"] .site-nav a {
  color: var(--ink);
}

html[data-theme="dark"] .site-nav a:hover,
html[data-theme="dark"] .language-switcher,
html[data-theme="dark"] .nav-toggle,
html[data-theme="dark"] .theme-toggle {
  background: #182235;
  color: #ffffff;
}

html[data-theme="dark"] .partner-proof article,
html[data-theme="dark"] .steps article,
html[data-theme="dark"] .org-card,
html[data-theme="dark"] .partner-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .admin-card,
html[data-theme="dark"] details,
html[data-theme="dark"] .asset-preview-card,
html[data-theme="dark"] .category-intro,
html[data-theme="dark"] .result-card,
html[data-theme="dark"] .token-certificate,
html[data-theme="dark"] .coupon-item,
html[data-theme="dark"] .receipt-preview-dialog {
  background: linear-gradient(180deg, #121c2e 0%, #0f1728 100%);
  border-color: rgba(211, 224, 244, 0.24);
  color: #f8fafc;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .partner-proof article {
  background: linear-gradient(135deg, #111b2e 0%, #17233a 100%);
  border-color: rgba(143, 180, 255, 0.34);
}

html[data-theme="dark"] .partner-proof strong,
html[data-theme="dark"] .stat-card strong {
  color: #ffd95a;
}

html[data-theme="dark"] .partner-proof span,
html[data-theme="dark"] .steps p,
html[data-theme="dark"] .org-card p,
html[data-theme="dark"] .partner-card p,
html[data-theme="dark"] .section-heading p,
html[data-theme="dark"] .section > p,
html[data-theme="dark"] .hero-lead,
html[data-theme="dark"] .submission-lead,
html[data-theme="dark"] .receipt-note,
html[data-theme="dark"] .small-note,
html[data-theme="dark"] .muted {
  color: #cbd8ea;
}

html[data-theme="dark"] .steps span,
html[data-theme="dark"] .submission-steps span,
html[data-theme="dark"] .category-tab strong {
  background: #ffd95a;
  color: #182235;
}

html[data-theme="dark"] .source-card {
  background: linear-gradient(135deg, #17233a 0%, #22395f 100%);
  border-color: rgba(143, 180, 255, 0.38);
  color: #f8fafc;
}

html[data-theme="dark"] .source-card strong {
  color: #ffffff;
}

html[data-theme="dark"] .source-card p {
  color: #d7e2f1;
}

html[data-theme="dark"] .source-card .button.secondary {
  background: #ffd95a;
  border-color: #ffd95a;
  color: #111827;
}

html[data-theme="dark"] .category-tab {
  background: #121c2e;
  border-color: rgba(211, 224, 244, 0.24);
  color: #f8fafc;
}

html[data-theme="dark"] .category-tab.active {
  background: linear-gradient(135deg, #ffd95a 0%, #ffeb9a 100%);
  border-color: #ffd95a;
  box-shadow: 0 18px 42px rgba(255, 217, 90, 0.18);
}

html[data-theme="dark"] .category-tab.active span {
  color: #15203a;
}

html[data-theme="dark"] .category-tab.active strong {
  background: #10266d;
  color: #ffffff;
}

html[data-theme="dark"] .submission-info {
  background: linear-gradient(180deg, #101827 0%, #0c1424 100%);
  border-color: rgba(211, 224, 244, 0.28);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] .supporter-pass-preview {
  background: linear-gradient(135deg, #15213a 0%, #1d2d4b 100%);
  border-color: rgba(255, 217, 90, 0.42);
}

html[data-theme="dark"] .supporter-pass-preview span {
  color: #b9c7da;
}

html[data-theme="dark"] .supporter-pass-preview strong,
html[data-theme="dark"] .submission-steps strong {
  color: #ffffff;
}

html[data-theme="dark"] .submission-steps article {
  background: #172235;
  border-color: rgba(211, 224, 244, 0.22);
}

html[data-theme="dark"] .submission-steps p {
  color: #d4deec;
}

html[data-theme="dark"] .notice-card {
  background: linear-gradient(135deg, #2f2815 0%, #382c14 100%);
  border-color: rgba(255, 217, 90, 0.42);
  color: #fff2bd;
}

html[data-theme="dark"] .alt-section {
  background: linear-gradient(180deg, rgba(14, 22, 38, 0.92), rgba(10, 16, 28, 0.92));
  border-block-color: rgba(211, 224, 244, 0.16);
}

html[data-theme="dark"] .button.secondary {
  background: #182235;
  border-color: rgba(211, 224, 244, 0.24);
  color: #f8fafc;
}

html[data-theme="dark"] .verified-pill,
html[data-theme="dark"] .result-card.approved,
html[data-theme="dark"] .status-approved {
  background: #102f26;
  border-color: rgba(126, 224, 181, 0.38);
  color: #98f1c8;
}

html[data-theme="dark"] .result-card.pending,
html[data-theme="dark"] .status-pending {
  background: #2f2815;
  border-color: rgba(255, 217, 90, 0.38);
  color: #ffe596;
}

html[data-theme="dark"] .tag,
html[data-theme="dark"] .org-more summary,
html[data-theme="dark"] .reference-note,
html[data-theme="dark"] .kit-chip {
  background: #182235;
  border-color: rgba(211, 224, 244, 0.24);
  color: #f8fafc;
}

html[data-theme="dark"] .org-more summary {
  background: linear-gradient(135deg, #172b52, #1d335f);
  border-color: rgba(143, 180, 255, 0.42);
  color: #f8fafc;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .org-more summary::after {
  background: #ffd95a;
  color: #101827;
}

html[data-theme="dark"] .org-more summary:hover,
html[data-theme="dark"] .org-more summary:focus-visible {
  background: linear-gradient(135deg, #1f3b70, #274982);
  border-color: rgba(255, 217, 90, 0.48);
}

html[data-theme="dark"] .org-more[open] {
  background: #101827;
  border-color: rgba(143, 180, 255, 0.30);
}

html[data-theme="dark"] .org-more[open] summary {
  background: linear-gradient(135deg, #8fb4ff, #315dd4);
  border-color: rgba(143, 180, 255, 0.70);
  color: #07111f;
}

html[data-theme="dark"] .file-picker {
  background: #0d1728;
  border-color: #8fb4ff;
  box-shadow: 0 8px 0 rgba(143, 180, 255, 0.22);
}

html[data-theme="dark"] .file-picker-button {
  background: linear-gradient(135deg, #ffd95a, #ffeb9a);
  border-color: rgba(255, 255, 255, 0.55);
  color: #101827;
  box-shadow: 0 10px 24px rgba(255, 217, 90, 0.22);
}

html[data-theme="dark"] .file-picker-name {
  color: #f8fafc;
}

html[data-theme="dark"] .verification-grid p {
  color: #cbd8ea;
}

html[data-theme="dark"] .verification-note {
  background: #121c2e;
  border-left-color: #ff7f95;
  color: #f8fafc;
}

html[data-theme="dark"] .site-footer {
  background: #070b14;
  border-top-color: rgba(211, 224, 244, 0.22);
  color: #dbe6f5;
}

html[data-theme="dark"] .site-footer a {
  color: #ffd95a;
}

@media (max-width: 1180px) {
  html[data-theme="dark"] .site-nav {
    background: #101827;
    border-color: rgba(211, 224, 244, 0.28);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
  }

  html[data-theme="dark"] .site-nav a {
    color: #f8fafc;
    background: transparent;
  }

  html[data-theme="dark"] .site-nav a:hover,
  html[data-theme="dark"] .site-nav a:focus-visible {
    background: #182235;
    color: #ffd95a;
  }
}

/* Header/hero conversion pass: stronger urgency, clearer donation action, less empty first screen. */
:root {
  --hero-accent: var(--blue);
  --hero-accent-dark: var(--blue-dark);
  --hero-accent-soft: rgba(232, 240, 255, 0.96);
  --hero-accent-ink: #173a95;
}

.site-nav a[href="#donate"] {
  background: linear-gradient(135deg, var(--hero-accent), var(--hero-accent-dark));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(31, 73, 189, 0.24);
}

.site-nav a[href="#donate"]:hover,
.site-nav a[href="#donate"]:focus-visible {
  background: linear-gradient(135deg, #315dd4, #10266d);
  color: #ffffff;
}

.hero.section-grid {
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
  gap: clamp(1.35rem, 3vw, 3.1rem);
}

.hero {
  min-height: calc(100vh - 74px);
  padding-top: clamp(2.2rem, 5vw, 4.4rem);
  padding-bottom: clamp(2.8rem, 5vw, 4.8rem);
}

.hero-alert {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 1.05rem;
  padding: 0.36rem 0.48rem 0.36rem 0.36rem;
  border: 1px solid rgba(31, 73, 189, 0.26);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), var(--hero-accent-soft));
  color: var(--hero-accent-ink);
  box-shadow: 0 14px 34px rgba(31, 73, 189, 0.14);
}

.hero-alert span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: var(--hero-accent);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.hero-alert strong {
  font-size: 0.88rem;
  font-weight: 920;
  line-height: 1.25;
  background: linear-gradient(90deg, #111827 0%, var(--blue) 62%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy h1 {
  max-width: 760px;
  margin-bottom: 1.05rem;
  font-size: clamp(3rem, 5vw, 4.7rem);
  letter-spacing: 0;
  line-height: 1;
  background: linear-gradient(90deg, #111827 0%, var(--blue) 58%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy .eyebrow {
  color: var(--hero-accent-dark);
}

.hero-lead {
  max-width: 58ch;
}

.hero-need-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.hero-need-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.46rem 0.7rem;
  border: 1px solid rgba(36, 79, 200, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #172033;
  font-size: 0.84rem;
  font-weight: 880;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.07);
}

.hero-need-row span:nth-child(1) { border-color: rgba(36, 79, 200, 0.26); }
.hero-need-row span:nth-child(2) { border-color: rgba(255, 216, 77, 0.74); }
.hero-need-row span:nth-child(3) { border-color: rgba(31, 73, 189, 0.32); }
.hero-need-row span:nth-child(4) { border-color: rgba(21, 131, 95, 0.28); }

.hero-actions {
  margin-top: 1.45rem;
}

.hero-actions .button.primary {
  background: linear-gradient(135deg, var(--hero-accent), var(--hero-accent-dark));
  box-shadow: 0 20px 46px rgba(31, 73, 189, 0.30);
}

.hero-recovery-card {
  min-height: 560px;
  height: min(66vh, 640px);
  max-height: 640px;
  border-radius: 28px;
  transform: translateY(-0.35rem);
}

.hero-recovery-card::after {
  background:
    linear-gradient(180deg, rgba(5, 10, 22, 0.01), rgba(5, 10, 22, 0.38)),
    linear-gradient(90deg, rgba(5, 10, 22, 0.24), rgba(5, 10, 22, 0.01) 62%);
}

.hero-photo-panel,
.hero-route-badge {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(6, 12, 27, 0.76);
  color: #ffffff;
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.hero-photo-panel {
  top: 1.15rem;
  left: 1.15rem;
  right: auto;
  bottom: auto;
  width: min(340px, calc(100% - 2.3rem));
  border-radius: 18px;
  padding: 0.82rem 0.9rem;
  background: rgba(6, 12, 27, 0.62);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.20);
}

.hero-photo-panel span {
  display: block;
  margin-bottom: 0.24rem;
  color: #ffd95a;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-photo-panel strong {
  display: block;
  font-size: clamp(1rem, 1.5vw, 1.24rem);
  line-height: 1.12;
}

.hero-photo-panel p {
  margin: 0.38rem 0 0;
  color: #edf3ff;
  font-size: 0.78rem;
  line-height: 1.38;
}

.hero-route-badge {
  top: 1rem;
  right: 1rem;
  display: grid;
  gap: 0.05rem;
  min-width: 112px;
  border-radius: 20px;
  padding: 0.78rem 0.9rem;
  text-align: center;
}

.hero-route-badge strong {
  color: #ffd95a;
  font-size: 2rem;
  line-height: 1;
}

.hero-route-badge span {
  color: #edf3ff;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.2;
}

@media (min-width: 621px) {
  html[lang="es"] .hero-photo-panel {
    width: min(430px, calc(100% - 2.3rem));
  }

  html[lang="es"] .hero-route-badge {
    top: auto;
    right: 1rem;
    bottom: 5.6rem;
  }
}

html[data-theme="dark"] .site-nav a[href="#donate"],
html[data-theme="dark"] .site-nav a[href="#donate"]:hover,
html[data-theme="dark"] .site-nav a[href="#donate"]:focus-visible {
  background: linear-gradient(135deg, #ffd95a, #ffeb9a);
  color: #07111f;
}

html[data-theme="dark"] .hero-alert {
  background: linear-gradient(135deg, rgba(24, 34, 53, 0.96), rgba(64, 52, 20, 0.82));
  color: #fff6d5;
  border-color: rgba(255, 217, 90, 0.42);
}

html[data-theme="dark"] .hero-alert span {
  background: linear-gradient(135deg, #ffd95a, #ffeb9a);
  color: #07111f;
}

html[data-theme="dark"] .hero-alert strong {
  background: linear-gradient(90deg, #ffffff 0%, #a9c2ff 58%, #ff9fb0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="dark"] .hero-need-row span {
  background: rgba(24, 34, 53, 0.86);
  color: #f8fafc;
  border-color: rgba(143, 180, 255, 0.28);
}

html[data-theme="dark"] .hero-actions .button.primary {
  background: linear-gradient(135deg, #ffd95a, #ffeb9a);
  color: #07111f;
  box-shadow: 0 20px 46px rgba(255, 217, 90, 0.24);
}

/* Android/mobile header and multilingual hero fix. */
@media (max-width: 1040px) {
  .section-grid,
  html[lang="es"] .hero.section-grid {
    grid-template-columns: 1fr;
  }

  .verification-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  html[lang="es"] .hero-copy h1 {
    max-width: min(100%, 760px);
    font-size: clamp(2.45rem, 8vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: 0;
    overflow-wrap: normal;
    text-wrap: balance;
  }
}

@media (max-width: 620px) {
  .hero-copy h1,
  html[lang="es"] .hero-copy h1 {
    font-size: clamp(2.05rem, 9vw, 2.85rem);
    line-height: 1.06;
    letter-spacing: 0;
  }
}

@media (max-width: 430px) {
  .site-header {
    flex-wrap: wrap;
    gap: 0.55rem;
    min-height: 112px;
    padding: 0.62rem 0.78rem 0.7rem;
  }

  .brand,
  .brand > span:last-child {
    display: inline-flex;
  }

  .brand {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    gap: 0.62rem;
  }

  .brand > span:last-child {
    min-width: 0;
    flex-direction: column;
  }

  .brand strong {
    max-width: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(0.98rem, 5vw, 1.15rem);
  }

  .brand small {
    display: block;
    font-size: 0.72rem;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .hero-copy h1,
  html[lang="es"] .hero-copy h1 {
    font-size: clamp(1.95rem, 10vw, 2.45rem);
  }
}

@media (max-width: 1040px) {
  .hero {
    min-height: auto;
  }

  .hero.section-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .hero-recovery-card {
    height: auto;
    max-height: none;
    min-height: 500px;
    transform: none;
  }
}

@media (max-width: 620px) {
  .site-nav a[href="#donate"] {
    justify-content: center;
  }

  .hero-alert {
    align-items: flex-start;
    width: 100%;
    border-radius: 18px;
  }

  .hero-alert strong {
    padding-top: 0.12rem;
  }

  .hero-need-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-need-row span {
    justify-content: center;
    min-width: 0;
  }

  .hero-recovery-card {
    min-height: 430px;
  }

  .hero-photo-panel {
    top: 5.65rem;
    bottom: auto;
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    max-width: none;
    border-radius: 16px;
    padding: 0.74rem 0.78rem;
  }

  .hero-photo-panel strong {
    font-size: 1rem;
  }

  .hero-photo-panel p {
    font-size: 0.74rem;
  }

  .hero-route-badge {
    top: 0.75rem;
    right: 0.75rem;
    min-width: 92px;
    border-radius: 16px;
    padding: 0.64rem 0.7rem;
  }

  .hero-route-badge strong {
    font-size: 1.6rem;
  }

  .hero-recovery-card figcaption {
    position: static;
    width: auto;
    max-width: none;
    border-inline: 0;
    border-bottom: 0;
    border-radius: 0;
    margin: 0;
    background: rgba(6, 12, 27, 0.88);
  }
}

@media (max-width: 430px) {
  .hero-alert {
    display: grid;
    gap: 0.45rem;
  }

  .hero-alert span {
    width: fit-content;
  }

  .hero-photo-panel {
    top: 5.45rem;
  }
}
