/* =============================================================
   RAFFLE TEMPLATE — STYLES
   Single-file CSS. All colour, type, and spacing tokens live in
   :root and are overridable per-deployment via config.js (which
   sets CSS variables on documentElement at load time).
   ============================================================= */

/* ---------- 1. Design tokens (overridable from config.js) ---------- */

:root {
  /* Brand */
  --brand-primary:      #0b1736;
  --brand-primary-ink:  #ffffff;
  --brand-accent:       #fcd34d;
  --brand-accent-ink:   #3a2400;

  /* Neutrals */
  --bg:                 #fbf7ef;     /* warm cream — community feel */
  --surface:            #ffffff;
  --surface-elev:       #fffdf7;
  --surface-tint:       #f4ecd8;
  --ink:                #1a1f2c;
  --ink-soft:           #4a5066;
  --muted:              #757b8c;
  --border:             #ebe3cf;
  --border-strong:      #d8cca9;

  /* Status */
  --success:            #16a34a;
  --warning:            #d97706;
  --danger:             #dc2626;

  /* Type */
  --font-display:       system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:          system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Geometry */
  --radius-sm:          8px;
  --radius:             14px;
  --radius-lg:          22px;
  --radius-xl:          32px;

  /* Shadow */
  --shadow-soft:        0 1px 2px rgba(20,20,30,0.04), 0 6px 24px rgba(20,20,30,0.06);
  --shadow-pop:         0 4px 10px rgba(20,20,30,0.06), 0 20px 50px rgba(20,20,30,0.10);
  --shadow-pull:        0 30px 60px -20px rgba(11,23,54,0.25);

  /* Layout */
  --max-w:              1180px;
  --max-w-narrow:       760px;
  --gutter:             clamp(20px, 4vw, 48px);

  /* Motion */
  --ease:               cubic-bezier(0.22, 1, 0.36, 1);
}

/* Optional dark theme variant (config.theme === "dark") */
[data-theme="dark"] {
  --bg:                 #070f24;
  --surface:            #0d1838;
  --surface-elev:       #112050;
  --surface-tint:       #142552;
  --ink:                #eaf1ff;
  --ink-soft:           #c8d3eb;
  --muted:              #94a3c5;
  --border:             #1d2c5c;
  --border-strong:      #2a3b73;
  --shadow-soft:        0 1px 2px rgba(0,0,0,0.30), 0 8px 24px rgba(0,0,0,0.35);
  --shadow-pop:         0 4px 10px rgba(0,0,0,0.35), 0 20px 50px rgba(0,0,0,0.45);
  --shadow-pull:        0 30px 60px -20px rgba(0,0,0,0.6);
}

/* ---------- 2. Reset + base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
[data-theme="dark"] a { color: var(--brand-accent); }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }

/* Avoid flash before config hydrates */
body[data-theme-loaded="false"] [data-config],
body[data-theme-loaded="false"] [data-config-html],
body[data-theme-loaded="false"] [data-config-money],
body[data-theme-loaded="false"] [data-config-date],
body[data-theme-loaded="false"] [data-config-number] {
  color: transparent;
  background: rgba(0,0,0,0.04);
  border-radius: 4px;
}

/* ---------- 3. Reusable elements ---------- */

.eyebrow,
.section__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 14px;
}
[data-theme="dark"] .eyebrow,
[data-theme="dark"] .section__eyebrow { color: var(--brand-accent); }

.section {
  padding: clamp(56px, 8vw, 110px) var(--gutter);
}
.section--cause     { background: var(--surface-tint); }
.section--prize     { background: var(--surface); }
.section--tickets   { background: var(--surface-elev); }
.section--dates     { background: var(--surface-tint); }
.section--about     { background: var(--surface); }
.section--compliance{ background: var(--surface-elev); border-top: 1px dashed var(--border-strong); }

.section__container {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section__container--narrow {
  max-width: var(--max-w-narrow);
}
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--ink);
}
.section__lede {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 32px;
}
.section__finePrint {
  font-size: 13px;
  color: var(--muted);
  margin: 24px 0 0;
}
.section__finePrint a { color: inherit; }

/* Prose (HTML injected from config) */
.prose { color: var(--ink-soft); font-size: 1rem; max-width: 64ch; }
.prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--ink); margin: 1.4em 0 0.4em; }
.prose p { margin: 0 0 1em; }
.prose ul { margin: 0 0 1em 1.2em; padding: 0; list-style: disc; }
.prose ul li { margin: 0 0 0.4em; }
.prose a { color: var(--brand-primary); }
[data-theme="dark"] .prose a { color: var(--brand-accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brand-primary);
  color: var(--brand-primary-ink);
  box-shadow: var(--shadow-pop);
}
.btn--primary:hover { background: color-mix(in oklab, var(--brand-primary) 88%, white); }

.btn--accent {
  background: var(--brand-accent);
  color: var(--brand-accent-ink);
  box-shadow: 0 14px 30px -10px color-mix(in oklab, var(--brand-accent) 60%, transparent);
}
.btn--accent:hover { background: color-mix(in oklab, var(--brand-accent) 88%, white); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--surface-elev); }

.btn--lg { padding: 16px 28px; font-size: 17px; }
.btn--block { width: 100%; }

/* ---------- 4. Site header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
}
.org-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.org-strip__logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface-elev);
  box-shadow: var(--shadow-soft);
}
.org-strip__copy { display: flex; flex-direction: column; line-height: 1.1; }
.org-strip__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
}
.org-strip__sub {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); }
.site-nav__cta {
  background: var(--brand-primary);
  color: var(--brand-primary-ink) !important;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.site-nav__cta:hover { background: color-mix(in oklab, var(--brand-primary) 88%, white); }
@media (max-width: 720px) {
  .site-nav { gap: 12px; }
  .site-nav a:not(.site-nav__cta) { display: none; }
}

/* ---------- 5. Hero ---------- */

.hero {
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(56px, 8vw, 100px);
  background:
    radial-gradient(900px 500px at 90% 0%, color-mix(in oklab, var(--brand-accent) 18%, transparent), transparent 70%),
    radial-gradient(700px 500px at 0% 10%, color-mix(in oklab, var(--brand-primary) 8%, transparent), transparent 70%),
    var(--bg);
}
[data-theme="dark"] .hero {
  background:
    radial-gradient(1100px 600px at 88% -6%, rgba(192,132,252,0.22), transparent 60%),
    radial-gradient(900px 560px at 2% 8%, rgba(94,234,212,0.18), transparent 58%),
    var(--bg);
}
.hero__container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__container { grid-template-columns: 1fr; }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 1.4rem + 4.5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  color: var(--ink);
}
.hero__title-line { display: block; }
.hero__title-accent {
  display: block;
  background: linear-gradient(110deg, var(--brand-primary), color-mix(in oklab, var(--brand-primary) 60%, var(--brand-accent)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 32px;
}
.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { color: var(--success); }

.hero__media {
  position: relative;
  margin: 0;
}
.hero__media-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-pull);
  background: var(--surface-elev);
  aspect-ratio: 4 / 3;
}
.hero__media-frame img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__ribbon {
  position: absolute;
  top: 22px; left: 22px;
  background: var(--brand-accent);
  color: var(--brand-accent-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.hero__media-caption {
  position: absolute;
  bottom: -32px;
  right: -8px;
  display: flex;
  gap: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 26px;
  box-shadow: var(--shadow-pop);
}
@media (max-width: 900px) {
  .hero__media-caption { position: static; margin: 22px auto -10px; justify-content: center; }
}
.hero__media-value-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.hero__media-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero__media-value--sm { font-size: 1.15rem; }

/* ---------- 6. Live counter strip ---------- */

.counter-strip {
  background: var(--brand-primary);
  color: var(--brand-primary-ink);
  padding: 28px var(--gutter) 0;
}
.counter-strip__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
}
.counter-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.counter-strip__big {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem);
  letter-spacing: -0.01em;
  color: var(--brand-accent);
  line-height: 1.05;
}
.counter-strip__label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--brand-primary-ink) 80%, transparent);
  margin-top: 4px;
}
.counter-strip__divider {
  width: 1px;
  height: 38px;
  background: color-mix(in oklab, var(--brand-primary-ink) 20%, transparent);
}
@media (max-width: 700px) {
  .counter-strip__divider { display: none; }
  .counter-strip__inner { flex-wrap: wrap; gap: 22px; }
}
.counter-strip__progress {
  height: 4px;
  background: color-mix(in oklab, var(--brand-primary-ink) 14%, transparent);
}
.counter-strip__progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand-accent), color-mix(in oklab, var(--brand-accent) 50%, white));
  transition: width 0.6s var(--ease);
}

/* ---------- 7. Cause section / impact grid ---------- */

.impact-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.impact-grid li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.impact-grid__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: color-mix(in oklab, var(--brand-accent) 25%, var(--surface));
  font-size: 22px;
  margin-bottom: 12px;
}
.impact-grid__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 6px;
  color: var(--ink);
}
.impact-grid__desc { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ---------- 8. Prize detail + gallery ---------- */

.prize-detail {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  margin: 16px 0 40px;
}
@media (max-width: 800px) {
  .prize-detail { grid-template-columns: 1fr; }
}
.prize-detail__inclusions {
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prize-detail__inclusions li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink-soft);
}
.prize-detail__inclusions li::before {
  content: "";
  display: block;
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}

.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery__item {
  position: relative;
  background: var(--surface-tint);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item:first-child { grid-row: 1 / 3; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 180px 180px; }
  .gallery__item:first-child { grid-column: 1 / 3; grid-row: auto; }
}

.prize-vault {
  margin-top: 42px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}
.prize-vault__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
@media (max-width: 720px) {
  .prize-vault__header {
    flex-direction: column;
    align-items: flex-start;
  }
}
.prize-vault__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 8px;
}
[data-theme="dark"] .prize-vault__eyebrow { color: var(--brand-accent); }
.prize-vault__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.prize-vault__lede {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  max-width: 44ch;
}
.prize-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.prize-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-elev) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.prize-card__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.prize-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-pop);
}
.prize-card--featured {
  border-color: color-mix(in oklab, var(--brand-primary) 42%, var(--border));
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--brand-primary) 16%, transparent), var(--shadow-pop);
}
.prize-card__media {
  position: relative;
  overflow: visible;
  display: block;
  padding: 0;
  background: #2c1c10;
}
.prize-card__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.prize-card__icon {
  font-size: clamp(3rem, 2rem + 2vw, 4.5rem);
  line-height: 1;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.16));
}
.prize-card__value {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--brand-primary) 9%, var(--surface));
  border: 1px solid color-mix(in oklab, var(--brand-primary) 16%, var(--border));
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--brand-primary);
}
[data-theme="dark"] .prize-card__value {
  color: var(--brand-accent);
  background: color-mix(in oklab, var(--brand-accent) 10%, var(--surface));
  border-color: color-mix(in oklab, var(--brand-accent) 24%, var(--border));
}
.prize-card__body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 20px 20px 22px;
}
.prize-card__badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-primary);
}
[data-theme="dark"] .prize-card__badge { color: var(--brand-accent); }
.prize-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.prize-card__byline {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0;
}
.prize-card__desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ---------- 9. Ticket bundles ---------- */

.bundles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.bundle {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.bundle:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-pop);
}
.bundle--popular {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 1px var(--brand-primary), var(--shadow-pop);
}
.bundle.is-selected {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--brand-accent) 45%, transparent), var(--shadow-pop);
}
.bundle__badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-primary);
  color: var(--brand-primary-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.bundle__qty {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.bundle__qty small { font-weight: 400; color: var(--muted); font-size: 0.7em; margin-left: 6px; }
.bundle__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.bundle__price-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
}
.bundle__price-per {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.bundle__save {
  font-size: 12px;
  font-weight: 700;
  color: var(--success);
}
.bundle__label {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: -6px;
}
.bundle__cta { margin-top: auto; }

/* ---------- 10. Timeline ---------- */

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 16px; bottom: 16px;
  left: 11px;
  width: 2px;
  background: var(--border-strong);
}
.timeline__item {
  position: relative;
  padding: 14px 18px 14px 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: 4px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--brand-primary);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--brand-primary);
}
.timeline__item--done::before { background: var(--success); box-shadow: 0 0 0 2px var(--success); }
.timeline__item--next::before { background: var(--brand-accent); box-shadow: 0 0 0 2px var(--brand-accent); }
.timeline__date {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 2px;
}
.timeline__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
}
.timeline__desc { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- 11. Org card ---------- */

.org-card {
  margin-top: 28px;
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.org-card__logo {
  width: 64px; height: 64px;
  border-radius: 14px;
  background: var(--surface);
  object-fit: cover;
  flex-shrink: 0;
}
.org-card__body { display: flex; flex-direction: column; gap: 4px; }
.org-card__name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.org-card__meta { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.org-card__meta a { color: var(--brand-primary); text-decoration: none; }
.org-card__meta a:hover { text-decoration: underline; }

/* ---------- 12. Payment footer ---------- */

.payment-footer {
  background: var(--brand-primary);
  color: color-mix(in oklab, var(--brand-primary-ink) 90%, transparent);
  padding: 36px var(--gutter) 110px;     /* extra bottom space for sticky banner */
  border-top: 4px solid var(--brand-accent);
}
.payment-footer__container { max-width: var(--max-w); margin: 0 auto; }
.payment-footer__row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.payment-footer__icon { color: var(--brand-accent); flex-shrink: 0; }
.payment-footer p { margin: 0; font-size: 14.5px; }
.payment-footer__small {
  margin-top: 10px !important;
  font-size: 12.5px !important;
  color: color-mix(in oklab, var(--brand-primary-ink) 65%, transparent) !important;
}

/* ---------- 13. Sticky buy banner (RaffleLink-style) ---------- */

.buy-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 30px rgba(20,20,30,0.15);
  transform: translateY(100%);
  transition: transform 0.35s var(--ease);
}
.buy-banner.is-visible { transform: translateY(0); }
.buy-banner__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px var(--gutter);
}
.buy-banner__info { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.buy-banner__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.buy-banner__meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.buy-banner__cta-group {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.buy-banner__bundle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 88px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--surface-tint);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  text-decoration: none;
  transition: background-color 0.15s var(--ease);
}
.buy-banner__bundle:hover { background: var(--brand-accent); border-color: var(--brand-accent); color: var(--brand-accent-ink); }
.buy-banner__bundle.is-selected {
  background: var(--brand-accent);
  color: var(--brand-accent-ink);
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--brand-accent) 35%, transparent);
}
.buy-banner__bundle.is-selected:hover {
  background: color-mix(in oklab, var(--brand-accent) 88%, white);
}
.buy-banner__bundle small { font-size: 11px; font-weight: 600; opacity: 0.75; }
.buy-banner__bundle strong { font-size: 14px; font-weight: 800; }

@media (max-width: 760px) {
  .buy-banner__inner { flex-wrap: wrap; gap: 10px; padding: 12px var(--gutter); }
  .buy-banner__info { flex: 1 1 auto; }
  .buy-banner__cta-group { width: 100%; justify-content: stretch; }
  .buy-banner__bundle { flex: 1; justify-content: center; padding: 8px 6px; font-size: 12px; }
}

/* ---------- 14. Floating share rail (right) ---------- */

.share-rail {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.share-rail__toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-pop);
}
.share-rail__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px;
  box-shadow: var(--shadow-pop);
}
.share-rail__items button,
.share-rail__items a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease), transform 0.15s var(--ease);
}
.share-rail__items button:hover,
.share-rail__items a:hover {
  background: var(--brand-primary);
  color: var(--brand-primary-ink);
  transform: scale(1.06);
}
.share-rail__toast {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
  white-space: nowrap;
}
.share-rail__toast.is-visible { opacity: 1; }

@media (max-width: 900px) {
  .share-rail { right: 12px; bottom: 90px; top: auto; transform: none; }
  .share-rail__toggle { display: inline-flex; }
  .share-rail__items {
    flex-direction: column;
    position: absolute;
    right: 0;
    bottom: 54px;
    border-radius: var(--radius-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .share-rail[data-open="true"] .share-rail__items {
    opacity: 1; pointer-events: auto; transform: translateY(0);
  }
}

/* ---------- 15. Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 16. Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
