/* ============================================
   CrowdChange donation form — visual baseline
   Config-driven across Kadimah-minimal ↔ QA-max
   ============================================ */

/* -------- Tokens (overridden from JS at render) -------- */
:root {
  --primary: #1054a1;
  --primary-dark: #0b3d77;
  --primary-tint: #e8f0fa;
  --header-bg: #ffffff;
  --header-bar-bg: #1054a1;
  --footer-bg: #444444;
  --footer-text: #ffffff;

  /* Live measured: form labels use rgb(26, 31, 43); banner uses rgb(38, 43, 54) — see banner overrides below. */
  --ink: rgb(26, 31, 43);
  --ink-mute: rgba(25, 27, 33, 0.65);
  --ink-faint: rgba(26, 31, 43, 0.45);
  --bg-page: rgb(247, 247, 248);
  --bg-card: #ffffff;
  --bg-card-soft: rgb(238, 240, 244);

  --border-soft: rgba(66, 80, 108, 0.18);
  --border-strong: rgba(66, 80, 108, 0.30);

  --disabled-bg: rgba(66, 80, 108, 0.08);
  --disabled-text: rgba(66, 80, 108, 0.30);

  /* Live Kadimah uses 4px as the standard small radius across cards, buttons, inputs.
     Was 6px — adjusted to match. */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04);
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* -------- Reset / base -------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-page);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* -------- Header -------- */
.site-header {
  background: var(--header-bg);
}
.site-header__inner {
  /* Header content hugs the viewport edges (logo far left, nav far right),
     rather than centering inside the same max-width as the form content.
     Matches the live Kadimah/QA layout. */
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  /* Live header is 106px tall (was 96 — gave logo more breathing room). */
  min-height: 106px;
}
/* Live logo renders at 80px tall (was 64). */
.site-header__logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
/* Suppress the default a:hover underline on the logo — the cursor-pointer affordance
   is enough for a clickable brand mark. (a:hover{text-decoration:underline} has
   higher specificity than .site-header__logo, so we need an explicit :hover rule.) */
.site-header__logo:hover { text-decoration: none; }
.site-header__logo-mark {
  /* Using -tight.png which has whitespace auto-trimmed (was 1024² with 28% margin,
     now 460×515 with only ~8px breathing room). The image's box now matches the
     mark's visual edges, so a normal flex gap is all we need. */
  height: 60px; width: auto;
}
/* Wordmark — split-color, brand blue + magenta, matches the mark's two figures.
   Tight letter-spacing + heavy weight reads as a finished foundation logotype. */
.site-header__wordmark {
  display: inline-flex; align-items: baseline; line-height: 1;
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  /* Lato ships 300/400/700/900 only — 800 would faux-bold. Use Black (900)
     for the wordmark to feel like a confident logotype. */
  font-weight: 900; font-size: 26px; letter-spacing: -0.4px;
}
/* Sampled directly from the mark PNG (most-common pixel after ignoring antialiasing).
   Using these exact values instead of the site's --primary brand-blue keeps the
   logo internally coherent — same two colors in the mark and the wordmark, not
   "close enough" pairs. */
.site-header__wordmark--a { color: #0f5a82; }
.site-header__wordmark--b { color: #c03570; }
/* Older single-img rule kept as fallback in case any legacy markup persists. */
.site-header__logo > img:not(.site-header__logo-mark) { height: 64px; width: auto; }
.site-header__nav {
  display: flex;
  /* Tightened from the live ~44px for a more compact uppercase nav. */
  gap: 28px;
  align-items: center;
  margin-left: auto;
}
.site-header__nav a {
  color: var(--ink);
  font-weight: 400;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
}
.site-header__nav a:hover { color: var(--primary); text-decoration: none; }
.site-header__right { display: flex; align-items: center; gap: 12px; }
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f1f1;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 6px 10px 6px 12px;
  font-size: 14px;
  color: var(--ink);
}
.lang-switcher .material-icons-outlined { font-size: 18px; }
.site-header__hamburger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  color: var(--ink);
}
.site-header__hamburger .material-icons-outlined { font-size: 28px; }

/* -------- Logged-in user widget (header right) --------
   Pixel-calibrated against live Kadimah's authenticated header (2026-05-29).
   Whole widget is 32px tall. Divider is a border-left on the container itself
   (not a separate div). Avatar 32×32. Name and email share color + weight 400.
   Badge is a flat red circle, no white border. */
.user-menu {
  display: flex; align-items: center; gap: 8px;
  height: 32px;
  /* Divider lives on this border, with the padding pushing content to the right. */
  border-left: 1px solid #cfd5dd;
  padding-left: 24px;
  /* Divider hidden in legacy markup that still has .user-menu__divider — those just
     collapse since we set width via the spacer rule below. */
}
.user-menu__divider { display: none; } /* obsolete — kept for backward-compat, no longer used */
.user-menu__profile {
  display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0;
  cursor: pointer; font: inherit; color: inherit; border-radius: 6px;
}
.user-menu__profile:hover { opacity: 0.85; }
.user-menu__avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: #b836c8;
  color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0;
}
.user-menu__stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 16px; min-width: 0; }
.user-menu__name { font-size: 14px; font-weight: 400; color: rgb(68, 68, 68); line-height: 16px; }
.user-menu__email {
  font-size: 12px; font-weight: 400; color: rgb(68, 68, 68); line-height: 16px;
  max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-menu__chevron {
  /* Live uses a tiny ~10px chevron, not the 24px material default. */
  color: rgb(68, 68, 68); font-size: 18px;
}
.user-menu__bell {
  position: relative; background: none; border: 0; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgb(68, 68, 68);
}
.user-menu__bell:hover { color: var(--ink); }
.user-menu__bell .material-icons-outlined { font-size: 24px; }
.user-menu__badge {
  position: absolute; top: -2px; right: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgb(246, 43, 18); color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  /* No white border ring — live is a flat circle. */
  border: 0;
}

/* -------- Logged-in banner (replaces the email field on Step 1) --------
   Calibrated against live Kadimah's General Information section when authenticated.
   Compact gray card: avatar | "You're logged in as X." | outlined Logout button. */
.loggedin-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f3f4f6;
  border-radius: 4px;
}
.loggedin-banner__avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: #b836c8; color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 0;
  flex-shrink: 0;
}
.loggedin-banner__text {
  flex: 1; min-width: 0;
  font-size: 14px; color: rgb(68, 68, 68); line-height: 20px;
}
.loggedin-banner__logout {
  background: #fff; color: rgb(68, 68, 68);
  border: 1px solid #cfd5dd; border-radius: 4px;
  padding: 6px 14px;
  /* Lato has 400/700 — using regular (400) keeps the button quiet,
     letting the border carry the affordance. */
  font-size: 12px; font-weight: 400;
  cursor: pointer;
  flex-shrink: 0;
}
.loggedin-banner__logout:hover { background: #f9fafb; }

/* Receipt destination line on Step 2 — same look as statement-descriptor (matches live) */
.receipt-destination { margin-top: 4px; }

/* -------- Brand bar -------- */
.brand-bar {
  /* Live brand bar is closer to 10px tall (was 16). */
  height: 10px;
  background: var(--header-bar-bg);
}

/* -------- Campaign banner -------- */
.campaign-banner {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  /* Match .page-main's horizontal padding so the inner column centers in the same
     box as .page-grid — this is what makes the thumbnail share the form's left edge. */
  padding: 0 24px;
}
.campaign-banner__inner {
  /* Same max-width + centering context as .page-grid → thumbnail left edge == form
     left edge (130px at 1440, matching live). Horizontal padding lives on the section
     above (like page-main), not here, so the math matches the grid exactly. */
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  /* Live thumb->copy gap is 8px (was 16). */
  gap: 8px;
}
.campaign-banner__thumb img {
  /* Live renders a landscape crop ~87x52, not a 64px square. */
  width: 87px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
}
.campaign-banner__title {
  margin: 0;
  /* Live banner title is 16px / 700; enlarged to 34px here for a prominent headline (desktop). */
  font-size: 34px;
  font-weight: 700;
  color: rgb(38, 43, 54);
}
.campaign-banner__subtitle {
  /* Live: 14px, same ink as the title (NOT muted), 8px below it. */
  margin: 8px 0 0;
  font-size: 14px;
  color: rgb(38, 43, 54);
  font-weight: 400;
}

/* -------- Main grid -------- */
.page-main { padding: 32px 24px 64px; }
.page-grid {
  /* Live Kadimah's content column measures 1180px at 1440 viewport (left edge 130,
     right edge 1310, symmetric). Split: form col + 108 gap + 400 summary. The banner
     row shares this exact left edge — see .campaign-banner below. (Earlier 1100/680
     estimate was too narrow, which pushed the centered column ~40px too far right.) */
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 108px;
  align-items: start;
}
.page-grid--single { grid-template-columns: minmax(0, 720px); margin: 0 auto; }
.form-col { min-width: 0; }

/* -------- Form section -------- */
.form-section { margin-bottom: 32px; }
.form-section__title {
  /* Live uses 24px line-height (not the default ~30px) and 0 margin-bottom —
     the content below provides its own top spacing. */
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  color: var(--ink);
}
.form-section__lede {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--ink-mute);
}

/* -------- Frequency selector (3 cards) -------- */
.freq-card {
  /* Live: 3 pills float on the page background with no wrapper card.
     Was previously wrapped in a white-bg + bordered container. */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 0;
  margin-top: 16px;
}
.freq-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.freq-option:hover { border-color: var(--primary); }
.freq-option__radio {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  flex-shrink: 0;
  position: relative;
  background: var(--bg-card);
}
.freq-option--selected { border-color: var(--primary); border-width: 1.5px; }
.freq-option--selected .freq-option__radio {
  border-color: var(--primary);
}
.freq-option--selected .freq-option__radio::after {
  content: ''; position: absolute; inset: 3px;
  border-radius: 999px; background: var(--primary);
}

/* -------- Amount card (container for presets) -------- */
.amount-card {
  background: var(--bg-card);
  border: 1px solid #f2f2f2;
  border-radius: 14px;
  padding: 24px;
  margin-top: 16px;
}

/* Simple variant — grid of buttons */
.amount-card--simple {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.amount-btn {
  /* Live: 14px font, 4px radius, 42px height with no internal padding (flex centers the label),
     bg #E8EAF0 (a touch darker than my soft-bg token). */
  appearance: none;
  background: #e8eaf0;
  border: 3px solid transparent;
  border-radius: 10px;
  padding: 0;
  height: 42px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.amount-btn:hover { background: #d6d9e0; }
.amount-btn--selected {
  /* Solid brand blue — was a 135deg gradient (primary → #2a72c9), but at high
     zoom the 45% color-stop showed visible banding and the gradient + outline
     interaction rendered unevenly at the corners. Matches the active-pill
     treatment (solid primary + floating ring). */
  background: var(--primary);
  color: #ffffff;
  /* Floating ring at 3px offset — matches the active pill treatment. Base
     .amount-btn keeps its 3px transparent border so the fill reaches the
     button edge and toggling selection causes no layout shift. */
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.amount-btn--selected:hover {
  /* Hover darkens to primary-dark. Without this rule .amount-btn:hover would
     set background: #d6d9e0 (which also nukes background-image), collapsing
     the selected button to flat grey. */
  background: var(--primary-dark);
}
.amount-btn--other {
  grid-column: 1 / -1;
  margin-top: 4px;
  /* Live "Other amount" matches the preset buttons exactly (#e8eaf0),
     so it inherits .amount-btn rather than the lighter soft-card shade. */
}
/* FundraiseUp-style persistent amount field below the presets: large value + currency code. */
.amount-display {
  grid-column: 1 / -1;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid rgba(66, 80, 108, 0.3);
  border-radius: 10px;
}
.amount-display:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 84, 161, 0.12);
}
/* Subtle fade+rise for monetary values (amount field + summary). These elements are
   rebuilt on every state change (renderAmount / renderSummary set innerHTML), so a CSS
   animation re-fires automatically on each render — no JS hook needed. */
@keyframes ccValueFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .amount-display__value,
  .summary-card__row--value,
  .summary-card__total-value { animation: none; }
}
.amount-display__value {
  display: flex; align-items: center; flex: 1; min-width: 0;
  animation: ccValueFadeIn 0.35s ease-out;
}
.amount-display__symbol {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}
.amount-display__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 0;
  background: transparent;
  font-family: inherit;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  -moz-appearance: textfield;
}
.amount-display__input::-webkit-outer-spin-button,
.amount-display__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amount-display__code {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 400;
  color: rgba(66, 80, 108, 0.6);
}

/* -------- Recognition group: name-display + hide-amount grouped (presentation only) -------- */
.recognition-group { display: flex; flex-direction: column; gap: 12px; }
.recognition-group__label { display: block; }
/* Grouped fields drop their own margins so the group's gap controls spacing. */
.recognition-group__field { margin: 0; }

/* Rich variant — image cards */
.amount-card--rich {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  background: transparent;
  border: 0;
  padding: 0;
}
.amount-rich {
  background: var(--bg-card);
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color .15s;
}
.amount-rich:hover { border-color: var(--primary); }
.amount-rich--selected { border-color: var(--primary); }
.amount-rich__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 16px;
}
.amount-rich__title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
}
.amount-rich__desc-wrap {
  /* Wrapping the desc + see-more in a positioned container so the link
     overlays the truncated text inline (matches live's "...See more" treatment). */
  position: relative;
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
}
.amount-rich__desc {
  margin: 0;
  color: var(--ink-mute);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.amount-rich--expanded .amount-rich__desc {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}
.amount-rich__see-more {
  /* Pinned to the bottom-right of the clamped area with a white gradient
     fade-in so it appears inline with the truncation. */
  position: absolute;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0, #fff 16px, #fff 100%);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  border: 0;
  padding: 0 0 0 24px;
  cursor: pointer;
}
.amount-rich--expanded .amount-rich__see-more {
  /* When the card is expanded, the link sits inline at the end of the text. */
  position: static;
  background: none;
  padding: 0 0 0 4px;
}
.amount-rich__radio {
  width: 22px; height: 22px; border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  flex-shrink: 0; position: relative;
  display: inline-flex; align-items: center; justify-content: center;
}
.amount-rich--selected .amount-rich__radio { border-color: var(--primary); }
.amount-rich--selected .amount-rich__radio::after {
  content: 'check'; font-family: 'Material Icons Outlined';
  color: var(--primary); font-size: 18px;
}
.amount-rich__media { aspect-ratio: 460 / 220; background: var(--primary-dark); }
.amount-rich__media img { width: 100%; height: 100%; object-fit: cover; }

/* Inline custom amount card (rich variant) */
.amount-rich--custom {
  align-items: center;
  justify-content: center;
  padding: 16px;
  gap: 12px;
}
.amount-rich--custom .amount-rich__field {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 16px 0;
}
.amount-rich--custom input {
  width: 100%;
  max-width: 220px;
  text-align: center;
  font-size: 18px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}
.amount-rich--custom .amount-rich__help {
  margin: 0;
  font-size: 13px;
  color: var(--ink-mute);
}
.amount-rich--custom .amount-rich__heart {
  background: var(--bg-card-soft);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}
.amount-rich--custom .amount-rich__heart .material-icons-outlined {
  color: var(--primary);
  font-size: 72px;
}

/* -------- Info notes -------- */
.info-notes { margin-top: 16px; }
.info-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  /* Live: 16px font with 20px line-height (was inheriting body's 1.5 = 24px). */
  font-size: 16px;
  line-height: 20px;
  color: var(--ink);
  margin-bottom: 6px;
}
.info-note .material-icons-outlined {
  font-size: 18px;
  color: var(--ink-mute);
  margin-top: 1px;
}

/* Compact variant — small rounded box rendered under the summary card
   so tax-receipt and minimum-donation notes don't bloat the main column.
   Subtle 135deg wash that brightens to pure white in the bottom-right corner
   gives the box a touch of depth without weight. */
.info-notes-mini {
  margin-top: 12px;
  padding: 13px 16px 12px;
  background: linear-gradient(135deg, #f7f8fa 0%, #fafbfc 60%, #fdfdfe 100%);
  border-radius: 10px;
}
.info-notes-mini:empty { display: none; }
.info-notes-mini .info-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-mute);
  /* Kill the browser-default <p> top margin (~1em) so the first note sits flush
     against the container's padding-top rather than stacking margins on top. */
  margin: 0 0 8px;
  gap: 6px;
}
.info-notes-mini .info-note:last-child { margin-bottom: 0; }
.info-notes-mini .info-note .material-icons-outlined {
  font-size: 15px;
  margin-top: 1px;
}

/* -------- Checkbox -------- */
.cc-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-top: 16px;
  font-size: 15px;
}
.cc-checkbox input { position: absolute; opacity: 0; pointer-events: none; }
.cc-checkbox__box {
  width: 18px; height: 18px;
  border: 1.5px solid var(--primary);
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
  position: relative;
  background: var(--bg-card);
}
.cc-checkbox input:checked + .cc-checkbox__box {
  background: var(--primary);
}
.cc-checkbox input:checked + .cc-checkbox__box::after {
  content: '';
  position: absolute;
  left: 4px; top: 0;
  width: 6px; height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.cc-checkbox input:focus-visible + .cc-checkbox__box {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.cc-checkbox--inline { margin: 4px 0 12px; }

/* -------- Recurring nudge banner -------- */
.recurring-nudge {
  margin-top: 16px;
  background: #fff7d6;
  border: 1px solid #f0d97a;
  border-radius: var(--radius-md);
  padding: 16px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}
.recurring-nudge__icon {
  width: 48px; height: 48px; border-radius: 999px;
  background: #fff; display: flex; align-items: center; justify-content: center;
  border: 1px solid #f0d97a;
}
.recurring-nudge__icon .material-icons-outlined {
  color: var(--primary); font-size: 24px;
}
.recurring-nudge__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}
.recurring-nudge__body {
  margin: 0;
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.5;
}
.recurring-nudge__cta {
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
  text-align: center;
}
.recurring-nudge__cta:hover { border-color: var(--primary); color: var(--primary); }

/* -------- Form controls -------- */
/* Live spaces stacked fields with a 24px flex gap (was 16px margin). */
.cc-form-group { margin-bottom: 24px; }
.cc-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.cc-form-row .cc-form-group { margin-bottom: 24px; }
.cc-form-label {
  display: block;
  /* Live field labels: 14px, medium (500) weight, 0.5px tracking (was 15/700). */
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 6px;
}
.cc-required { color: #d32f2f; font-weight: 700; }
.cc-form-control {
  display: block;
  width: 100%;
  height: 50px;
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.cc-form-control:focus {
  outline: none;
  /* Soft, calm focus indication — neutral border tint plus a faint glow. The
     brand-primary at 100% read as a heavy ring; this softens without losing the
     a11y affordance. */
  border-color: #b8cee8;
  box-shadow: 0 0 0 3px rgba(16, 84, 161, 0.08);
}
.cc-form-control::placeholder { color: var(--ink-faint); }
.cc-form-control--textarea { height: auto; resize: vertical; min-height: 100px; }
select.cc-form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23191B21' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.cc-form-help {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-mute);
}

/* Phone field (intl-tel-input stub) */
.iti-stub {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg-card);
  overflow: hidden;
}
.iti-stub:focus-within {
  border-color: #b8cee8;
  box-shadow: 0 0 0 3px rgba(16, 84, 161, 0.08);
}
.iti-stub__flag {
  background: transparent;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0 8px 0 12px;
  border-right: 0;
}
.iti-stub__flag-emoji { font-size: 18px; }
.iti-stub__dial-code {
  display: inline-flex;
  align-items: center;
  padding: 0 8px 0 0;
  color: var(--ink);
  font-size: 16px;
}
.cc-form-control--phone {
  border: 0;
  border-radius: 0;
  flex: 1;
  height: 48px;
  padding-left: 4px;
}
.cc-form-control--phone:focus { box-shadow: none; }

/* Custom fields (radio variant) */
.custom-field-radio {
  margin-bottom: 16px;
}
.custom-field-radio__legend {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.custom-field-radio__options { display: flex; flex-direction: column; gap: 6px; }
.custom-field-radio__option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
}
.custom-field-radio__option input { position: absolute; opacity: 0; pointer-events: none; }
.custom-field-radio__bullet {
  width: 18px; height: 18px;
  border-radius: 999px;
  border: 1.5px solid var(--primary);
  position: relative;
  flex-shrink: 0;
  background: var(--bg-card);
}
.custom-field-radio__option input:checked + .custom-field-radio__bullet::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: var(--primary);
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s, opacity .15s;
  line-height: 1.2;
  text-decoration: none;
}
.btn--primary {
  /* Live calibration: 500 weight (not 700), 4px radius, 0.5px letter-spacing —
     softer brand weight than our default .btn. */
  background: var(--primary);
  color: #fff;
  font-weight: 500;
  letter-spacing: 0;
  border-radius: var(--radius-sm);
}
.btn--primary:hover:not(:disabled) { background: var(--primary-dark); text-decoration: none; }
.btn--primary:disabled,
.btn--primary[disabled] {
  /* Live disabled alpha is 0.10, not 0.08 — barely visible diff but matches. */
  background: rgba(66, 80, 108, 0.10);
  color: var(--disabled-text);
  cursor: not-allowed;
}
.btn--outline {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }
.btn--block { display: flex; width: 100%; }
.btn--inline { padding: 12px 16px; font-size: 15px; }

/* -------- Summary card -------- */
.summary-card {
  background: var(--bg-card-soft);
  /* Match the match-callout bar's corner radius (16px) for visual consistency. */
  border-radius: 16px;
  overflow: hidden;
  position: sticky;
  top: 24px;
}
.summary-card__body {
  padding: 24px;
}
.summary-card__heading {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
}
.summary-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
}
.summary-card__row--label { color: var(--ink); }
.summary-card__row--value { font-weight: 700; animation: ccValueFadeIn 0.35s ease-out; }
.summary-card__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: rgb(228, 231, 236);
  font-size: 20px;
}
.summary-card__total-label { font-weight: 700; }
.summary-card__total-value { font-weight: 700; animation: ccValueFadeIn 0.35s ease-out; }
.summary-card__fee-row { color: var(--ink); margin-top: 12px; }

/* -------- Tribute entry -------- */
.tribute-summary {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--primary-tint);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tribute-summary__text { font-size: 15px; color: var(--ink); }
.tribute-summary__actions { display: flex; gap: 12px; }
.tribute-summary__action {
  background: none; border: 0; padding: 0;
  color: var(--primary); font-weight: 700; cursor: pointer;
  font-size: 14px;
}

/* -------- Step 2 (Payment) -------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 16px;
}
.back-link:hover { text-decoration: none; color: var(--primary); }

.payment-methods {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 8px 16px;
}
.payment-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--border-soft);
}
.payment-method:last-child { border-bottom: 0; }
.payment-method__icon {
  width: 38px; height: 26px;
  border-radius: 4px;
  background: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.payment-method__icon .material-icons-outlined { font-size: 18px; }
.payment-method__label { flex: 1; font-size: 15px; font-weight: 700; }
.payment-method__chevron { color: var(--ink-mute); }
.payment-method--selected .payment-method__chevron { display: none; }

.payment-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 20px;
}
.payment-card__heading {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}
.payment-card__rule {
  border: 0; border-top: 1px solid var(--border-soft);
  margin: 0 -20px 16px;
}

/* Stripe placeholder stub */
.stripe-stub {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
}
.stripe-stub__row {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
}
.stripe-stub__row:last-child { border-bottom: 0; }
.stripe-stub__row--split > * { flex: 1; }
.stripe-stub__placeholder {
  color: var(--ink-faint);
  font-size: 16px;
  flex: 1;
}
.stripe-stub__brands { display: flex; gap: 8px; }
.stripe-stub__brand {
  font-size: 10px;
  font-weight: 900;
  background: var(--bg-card-soft);
  padding: 3px 6px;
  border-radius: 3px;
  color: var(--ink-mute);
}

.statement-descriptor {
  margin: 16px 0 8px;
  font-size: 14px;
  color: var(--ink-mute);
}
.terms-line {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.5;
}

/* -------- Cover-fees modal -------- */
.cc-modal {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
}
.cc-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.cc-modal__panel {
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 28px 24px;
  width: min(420px, 92vw);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}
.cc-modal__close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: 0; color: var(--primary);
  display: inline-flex; align-items: center;
}
.cc-modal__close .material-icons-outlined { font-size: 22px; }
.cc-modal__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}
.cc-modal__body {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}
.cc-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* -------- Loading overlay -------- */
.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex; align-items: center; justify-content: center;
  z-index: 300;
}
.loading-overlay__card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 18px 32px;
  text-align: center;
  min-width: 200px;
}
.loading-overlay__label {
  margin: 0 0 8px;
  font-size: 16px;
}
.loading-overlay__bars {
  display: inline-flex;
  gap: 3px;
  height: 24px;
  align-items: center;
}
.loading-overlay__bars span {
  width: 4px; height: 100%;
  background: var(--primary);
  animation: bar 1s ease-in-out infinite;
}
.loading-overlay__bars span:nth-child(1) { animation-delay: 0s; }
.loading-overlay__bars span:nth-child(2) { animation-delay: 0.1s; }
.loading-overlay__bars span:nth-child(3) { animation-delay: 0.2s; }
.loading-overlay__bars span:nth-child(4) { animation-delay: 0.3s; }
.loading-overlay__bars span:nth-child(5) { animation-delay: 0.4s; }
@keyframes bar { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }

/* -------- Footer -------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 48px 24px 0;
}
.site-footer__inner {
  /* Live content workspace is ~1180px (was 1240); aligns columns to the form. */
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding-bottom: 32px;
}
.footer-col__heading {
  margin: 0 0 16px;
  /* Live (re-measured hands-on): 16px / 400 weight / 0.5px tracking.
     Uppercased via the already-cased content strings, not text-transform. */
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
}
.footer-col__list { list-style: none; padding: 0; margin: 0; }
.footer-col__list li { margin-bottom: 8px; font-size: 14px; line-height: 1.5; }
.footer-col__list a { color: var(--footer-text); text-decoration: none; }
.footer-col__list a:hover { text-decoration: underline; }
.footer-col__list strong {
  display: block;
  /* "Mailing Address" sub-heading: live matches the column-heading typography. */
  font-weight: 600;
  letter-spacing: 0;
}
/* Subfooter on live is a full-width darker band (div.copyright):
   bg rgba(0,0,0,0.3) + 1px solid #ccc top border. Content stays centered. */
.site-footer__subwrap {
  /* Break out of .site-footer's 24px horizontal padding to span full width. */
  margin: 0 -24px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgb(204, 204, 204);
}
.site-footer__sub {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.site-footer__sub a { color: var(--footer-text); text-decoration: underline; }

/* When footer bg is light, soften the band + border */
[data-footer-light="1"] .site-footer__subwrap {
  background: rgba(0, 0, 0, 0.04);
  border-top-color: rgba(0, 0, 0, 0.12);
}

/* -------- Dev panel -------- */
.dev-panel {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 320px;
  max-height: calc(100vh - 24px);
  background: #1c1f24;
  color: #e7eaf0;
  border-radius: 10px;
  font-size: 13px;
  z-index: 400;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .25s ease;
}
.dev-panel--collapsed {
  /* Keep only a thin handle peeking out on the right edge of the screen.
     The whole strip is clickable to expand (wired in JS). */
  transform: translateX(calc(100% - 36px));
  cursor: pointer;
}
.dev-panel--collapsed::before {
  /* Vertical "Preview config" label on the handle so the affordance is legible */
  content: 'Preview config';
  position: absolute;
  top: 16px;
  left: 8px;
  width: 20px;
  color: #98a0ab;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}
.dev-panel--collapsed::after {
  /* Chevron pointing left, telling the user the strip expands leftward */
  content: 'chevron_left';
  font-family: 'Material Icons Outlined';
  position: absolute;
  bottom: 12px;
  left: 6px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}
.dev-panel--collapsed .dev-panel__header,
.dev-panel--collapsed .dev-panel__body {
  /* Hide the leaked content so the strip reads as a clean handle */
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
.dev-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #2a2f37;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.dev-panel__title { font-weight: 700; letter-spacing: 0; font-size: 13px; }
.dev-panel__toggle {
  background: none; border: 0; color: #e7eaf0;
  display: inline-flex; align-items: center; padding: 4px;
}
.dev-panel--collapsed .dev-panel__toggle .material-icons-outlined { transform: rotate(180deg); }
.dev-panel__body {
  padding: 14px;
  overflow-y: auto;
  flex: 1;
}
.dev-panel__group {
  margin-bottom: 16px;
}
.dev-panel__group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  color: #98a0ab;
  margin-bottom: 6px;
}
.dev-panel__preset-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.dev-panel__preset {
  background: #3b424c;
  color: #fff;
  border: 0;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: inline-block;
}
a.dev-panel__preset:hover { text-decoration: none; }
.dev-panel__preset:hover { background: #4a5260; }
.dev-panel__preset--active {
  background: var(--primary);
}
.dev-panel__toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dev-panel__toggle-row:last-child { border-bottom: 0; }
.dev-panel__toggle-label { font-size: 12px; }
.dev-panel__switch {
  /* Reset the native button so the pill geometry isn't warped by
     default border / padding / appearance. */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;

  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  box-sizing: border-box;

  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #4a5260;
  cursor: pointer;
  transition: background .15s;
}
.dev-panel__switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .15s;
}
.dev-panel__switch--on { background: #4caf50; }
.dev-panel__switch--on::after { transform: translateX(16px); }

/* ===== Experiments panel — categorized + scenarios ===== */
.dev-panel__group--xp { border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 12px; }

/* Top controls: search input + active count + clear */
.xp-controls { margin-bottom: 10px; }
.xp-search {
  width: 100%; box-sizing: border-box;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff; font-size: 12px;
  padding: 6px 10px; border-radius: 6px;
  outline: none; transition: border-color 120ms ease;
}
.xp-search::placeholder { color: rgba(255, 255, 255, 0.4); }
.xp-search:focus { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.09); }
.xp-status {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 6px; font-size: 11px;
}
.xp-status__count { color: rgba(255, 255, 255, 0.6); font-weight: 700; }
/* Inline select for dev panel rows (e.g. match multiplier picker) */
.dev-panel__select--inline {
  width: auto; min-width: 64px;
  font-size: 12px; padding: 4px 8px;
  background: rgba(255, 255, 255, 0.06); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 5px;
}
.xp-status__clear {
  background: transparent; border: 0; color: rgba(255, 255, 255, 0.55);
  font-size: 11px; cursor: pointer; padding: 2px 6px; border-radius: 4px;
}
.xp-status__clear:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

/* Sections list */
.xp-sections { display: flex; flex-direction: column; gap: 4px; }
.xp-section { border-radius: 6px; overflow: hidden; }
.xp-section--active { background: rgba(76, 175, 80, 0.05); border: 1px solid rgba(76, 175, 80, 0.18); }
.xp-section__header {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: transparent; border: 0; color: #fff; cursor: pointer;
  padding: 6px 4px; font-size: 11px; text-align: left;
  font-weight: 600; letter-spacing: 0;
}
.xp-section__chev { font-size: 9px; color: rgba(255, 255, 255, 0.55); width: 10px; flex-shrink: 0; }
.xp-section__title { flex: 1; color: rgba(255, 255, 255, 0.75); }
.xp-section--active .xp-section__title { color: rgba(150, 220, 160, 0.9); }
.xp-section__count {
  background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.65);
  font-size: 10px; padding: 1px 6px; border-radius: 8px; font-weight: 600;
}
.xp-section__body { padding: 2px 4px 6px; display: flex; flex-direction: column; gap: 6px; }

/* Per-experiment row */
.xp-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 6px 4px 6px 8px;
  border-radius: 5px;
  border-left: 3px solid transparent;
  transition: border-color 120ms ease, background 120ms ease;
}
.xp-row:hover { background: rgba(255, 255, 255, 0.03); }
/* Active state — left edge highlight + faint green wash. Keeps the row in its
   category but makes it scannable in a list. */
.xp-row--active {
  border-left-color: rgba(76, 175, 80, 0.7);
  background: rgba(76, 175, 80, 0.05);
}
.xp-row--active:hover { background: rgba(76, 175, 80, 0.09); }
.xp-row .dev-panel__switch { flex-shrink: 0; margin-top: 2px; }
.xp-row__meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.xp-row__label { font-size: 12px; font-weight: 600; color: #fff; line-height: 1.25; }
.xp-row__desc { font-size: 11px; line-height: 1.4; color: rgba(255, 255, 255, 0.5); }
.xp-row__chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.xp-chip {
  font-size: 9px; padding: 1px 6px; border-radius: 8px;
  font-weight: 600; letter-spacing: 0; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.65);
}
.xp-chip--cat { background: rgba(120, 165, 220, 0.15); color: rgba(160, 200, 240, 0.85); }
.xp-chip--scope { background: rgba(220, 165, 120, 0.15); color: rgba(240, 200, 160, 0.85); }

/* Scenarios row */
.xp-scenarios {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; flex-direction: column; gap: 6px;
}
.xp-scenarios__row { display: flex; gap: 6px; align-items: center; }
.xp-scenarios__select {
  flex: 1; min-width: 0;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff; font-size: 11px; padding: 5px 8px; border-radius: 5px;
}
.xp-scenarios__manage-toggle {
  background: transparent; border: 0; color: rgba(255, 255, 255, 0.5);
  font-size: 10px; padding: 2px 4px; cursor: pointer; text-align: left;
}
.xp-scenarios__manage-toggle:hover { color: #fff; }
.xp-scenarios__manage {
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(0, 0, 0, 0.2); border-radius: 6px; padding: 6px 8px;
}
.xp-scenarios__item {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: rgba(255, 255, 255, 0.8);
}
.xp-scenarios__del {
  background: transparent; border: 0; color: rgba(255, 130, 130, 0.7);
  font-size: 10px; padding: 2px 4px; cursor: pointer; border-radius: 3px;
}
.xp-scenarios__del:hover { background: rgba(255, 100, 100, 0.1); color: rgba(255, 180, 180, 1); }

/* Footer actions (share URL + status) */
.xp-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding-top: 10px; margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.dev-panel__xp-btn {
  background: rgba(255, 255, 255, 0.08); border: 0; color: #fff;
  padding: 6px 10px; border-radius: 6px; font-size: 11px; cursor: pointer;
}
.dev-panel__xp-btn:hover { background: rgba(255, 255, 255, 0.14); }
.dev-panel__xp-btn--ghost { background: transparent; color: rgba(255, 255, 255, 0.6); }
.dev-panel__xp-btn--ghost:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.dev-panel__xp-status { font-size: 11px; color: rgba(150, 220, 160, 0.9); }
.dev-panel__select {
  width: 100%;
  margin-top: 4px;
  background: #2a2f37;
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 12px;
}

/* -------- Responsive -------- */
@media (max-width: 900px) {
  .site-header__inner { min-height: 72px; }
  .site-header__logo-mark { height: 44px; }
  .site-header__wordmark { font-size: 20px; }
  .site-header__nav { display: none; }
  .site-header__hamburger { display: inline-flex; }
  .brand-bar { height: 8px; }
  .page-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  /* Keep banner padding equal to page-main's (16px) so thumb stays aligned on mobile. */
  .campaign-banner { padding: 0 16px; }
  /* On mobile the nav collapses to hamburger; collapse the user widget to just
     avatar + bell to save space. Divider (border-left) and stack hide too. */
  .user-menu__stack, .user-menu__chevron { display: none; }
  .user-menu { border-left: 0; padding-left: 0; gap: 6px; }
  .summary-col { order: -1; }
  .summary-card { position: static; }
  .page-main { padding: 16px; }
  .amount-card--simple { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .amount-card--rich { grid-template-columns: 1fr; }
  .freq-card { grid-template-columns: 1fr; }
  .cc-form-row { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .site-footer__sub { flex-direction: column; gap: 8px; text-align: center; }
  .dev-panel { width: 280px; max-width: calc(100% - 24px); }
  /* On small screens, start collapsed so the form is visible */
  .dev-panel { transform: translateX(calc(100% - 36px)); }
  .dev-panel--open { transform: none; }
  .recurring-nudge { grid-template-columns: 36px 1fr; }
  .recurring-nudge__cta { grid-column: 1 / -1; }

  /* Mobile touch targets */
  .btn, .amount-btn, .freq-option, .payment-method, .iti-stub__flag { min-height: 44px; }
}

@media (max-width: 480px) {
  .amount-card--simple { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
