/* ============================================================
   Components — reusable, composable building blocks
   ============================================================ */

/* ---------- App header (fixed navy nav) ---------- */
.app-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: var(--navy);
  color: var(--on-navy);
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.app-header__inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--s-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-width: 0;
}
.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,0.22), transparent 60%),
    var(--navy-600);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
  flex: none;
}
.brand__logo svg { width: 20px; height: 20px; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #fff;
}
.brand__subtitle {
  font-size: 12px;
  color: var(--on-navy-dim);
  line-height: 1.15;
}

/* Timer pill */
.timer-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: var(--on-navy);
  font-variant-numeric: tabular-nums;
  transition: background var(--dur) var(--ease);
}
.timer-pill svg { width: 15px; height: 15px; opacity: 0.85; }
.timer-pill__label { font-size: 11px; color: var(--on-navy-dim); }
.timer-pill__time { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
.timer-pill.is-urgent {
  background: rgba(255, 99, 99, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 120, 120, 0.4);
}
.timer-pill.is-urgent .timer-pill__time { color: #ffd7d7; }

/* ---------- Page shell ---------- */
.page {
  padding-top: calc(var(--header-h) + var(--s-8));
  padding-bottom: var(--s-10);
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-6);
}

/* ---------- Panel (the large white card) ---------- */
.panel {
  background: var(--surface);
  border-radius: var(--r-2xl);
  box-shadow: inset 0 0 0 1px var(--blue-outline), var(--shadow-md);
  padding: var(--s-8);
}
.panel + .panel { margin-top: var(--s-6); }
.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}
.panel__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section { padding: var(--s-6) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: var(--s-4);
}

/* ---------- Info badges row ---------- */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--surface-sunken);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
}
.badge__key { color: var(--ink-4); }
.badge__val { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.badge--accent { background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue-outline); }
.badge--accent .badge__key { color: var(--blue-strong); opacity: 0.8; }

/* ---------- Amount field ---------- */
.amount-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-6) var(--s-7);
  border-radius: var(--r-xl);
  background: var(--surface-muted);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.amount-field.is-focused {
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--blue), var(--shadow-focus);
}
.amount-field__symbol {
  font-size: 44px;
  font-weight: 600;
  color: var(--ink-3);
  line-height: 1;
  transition: color var(--dur) var(--ease);
}
.amount-field.is-focused .amount-field__symbol { color: var(--blue); }
.amount-field__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.amount-field__input::placeholder { color: var(--ink-4); }
.amount-field__suffix {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-4);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--surface-sunken);
  box-shadow: inset 0 0 0 1px var(--line);
}
.amount-hint {
  margin-top: var(--s-3);
  font-size: 13px;
  color: var(--ink-4);
}

/* ---------- Method selector cards ---------- */
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.method {
  position: relative;
  text-align: left;
  padding: var(--s-6);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur-fast) var(--ease),
    background var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.method:hover { box-shadow: inset 0 0 0 1.5px var(--line-strong), var(--shadow-sm); }
.method:active { transform: translateY(1px); }
.method.is-selected {
  box-shadow: inset 0 0 0 2px var(--blue), var(--shadow-focus);
  background: #fbfcff;
}
.method--green.is-selected {
  box-shadow: inset 0 0 0 2px var(--green), var(--shadow-focus-green);
  background: #fafffb;
}
.method__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.method__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--surface-sunken);
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.method__icon svg { width: 22px; height: 22px; }
.method--green .method__icon { background: var(--green-soft); color: var(--green-strong); box-shadow: inset 0 0 0 1px var(--green-outline); }
.method__title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.method__desc { font-size: 13px; color: var(--ink-3); }
.method__speed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding-top: var(--s-2);
}
.method__speed svg { width: 14px; height: 14px; opacity: 0.7; }

/* selection tick */
.method__tick {
  width: 24px; height: 24px;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: var(--surface-sunken);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease);
}
.method__tick svg { width: 14px; height: 14px; opacity: 0; transform: scale(0.4); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-out); color: #fff; }
.method.is-selected .method__tick { background: var(--blue); box-shadow: none; transform: scale(1.05); }
.method--green.is-selected .method__tick { background: var(--green); }
.method.is-selected .method__tick svg { opacity: 1; transform: scale(1); }

.pill-recommended {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--green-soft);
  color: var(--green-strong);
  box-shadow: inset 0 0 0 1px var(--green-outline);
}

/* ---------- Checkbox / agreement ---------- */
.agree {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-4);
  border-radius: var(--r-lg);
  background: var(--surface-muted);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  transition: box-shadow var(--dur) var(--ease);
}
.agree:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.agree input { position: absolute; opacity: 0; width: 0; height: 0; }
.agree__box {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  display: grid; place-items: center;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.agree__box svg {
  width: 13px; height: 13px; color: #fff;
  stroke-dasharray: 20; stroke-dashoffset: 20;
  transition: stroke-dashoffset var(--dur-slow) var(--ease-out);
}
.agree input:checked + .agree__box { background: var(--blue); box-shadow: none; }
.agree input:checked + .agree__box svg { stroke-dashoffset: 0; }
.agree input:focus-visible + .agree__box { box-shadow: var(--shadow-focus); }
.agree__text { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.agree__text a { font-weight: 600; }

/* ---------- Trust indicators ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.trust {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
  border-radius: var(--r-lg);
  background: var(--surface-muted);
  box-shadow: inset 0 0 0 1px var(--line);
}
.trust__icon {
  flex: none;
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue-strong);
  box-shadow: inset 0 0 0 1px var(--blue-outline);
}
.trust__icon svg { width: 19px; height: 19px; }
.trust__title { font-size: 13.5px; font-weight: 700; }
.trust__sub { font-size: 12px; color: var(--ink-3); }

/* ---------- Summary + CTA ---------- */
.summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  padding: var(--s-6) var(--s-7);
  border-radius: var(--r-xl);
  background: var(--surface-sunken);
  box-shadow: inset 0 0 0 1px var(--line);
  flex-wrap: wrap;
}
.summary__label { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.summary__amount {
  font-size: 34px; font-weight: 800; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 15px 26px;
  border-radius: var(--r-lg);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease), opacity var(--dur) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:disabled:active { transform: none; }

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 111, 237, 0.28);
}
.btn--primary:hover:not(:disabled) { background: var(--blue-strong); box-shadow: 0 12px 26px rgba(47, 111, 237, 0.34); }

.btn--green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 20px rgba(18, 168, 102, 0.28);
}
.btn--green:hover:not(:disabled) { background: var(--green-strong); box-shadow: 0 12px 26px rgba(18, 168, 102, 0.34); }

.btn--ghost {
  background: var(--surface);
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-4); color: var(--ink); }

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

/* ---------- Stepper ---------- */
.stepper {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.step {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-pill);
  background: var(--surface-muted);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.step__dot {
  width: 26px; height: 26px;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  background: var(--surface-sunken); color: var(--ink-3);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.step__dot svg { width: 14px; height: 14px; }
.step__text { display: flex; flex-direction: column; line-height: 1.15; }
.step__kicker { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); }
.step__name { font-size: 13.5px; font-weight: 700; color: var(--ink-3); }
.step-line { flex: 1; height: 2px; background: var(--line); border-radius: 2px; min-width: 20px; }

.step.is-active { background: var(--blue-soft); box-shadow: inset 0 0 0 1.5px var(--blue-outline); }
.step.is-active .step__dot { background: var(--blue); color: #fff; box-shadow: none; }
.step.is-active .step__name { color: var(--navy); }

.step.is-complete .step__dot { background: var(--green); color: #fff; box-shadow: none; }
.step.is-complete .step__name { color: var(--ink-2); }
.step-line.is-complete { background: var(--green); }

/* ---------- Certification badges ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.cert {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--s-2);
  padding: var(--s-6) var(--s-4);
  border-radius: var(--r-xl);
  background: var(--surface-muted);
  box-shadow: inset 0 0 0 1px var(--line);
}
.cert__seal {
  width: 52px; height: 52px;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--blue-outline), var(--shadow-xs);
}
.cert__seal svg { width: 24px; height: 24px; }
.cert__title { font-size: 13.5px; font-weight: 700; }
/* Fixed image slot — the image is contained inside it, never cropped. */
.cert__media {
  width: 100%;
  height: 104px;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}
.cert__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain; /* fit inside the box, never crop */
}
/* When an image is uploaded, drop the placeholder frame — only the image remains. */
.cert.is-filled {
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}
.cert.is-filled .cert__media { height: 100%; }
.cert__ph {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-4);
}

.partner-strip {
  margin-top: var(--s-5);
  height: 92px;
  border-radius: var(--r-xl);
  background:
    repeating-linear-gradient(45deg, var(--surface-muted), var(--surface-muted) 12px, #f2f6fc 12px, #f2f6fc 24px);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid;
  place-items: center;
}
.partner-strip__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-4);
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.partner-strip.has-image {
  background: transparent;   /* no gray box */
  box-shadow: none;          /* no border */
  overflow: visible;
  height: auto;              /* hug the image */
  padding: var(--s-4) 0;
  display: flex;
  align-items: center;
  justify-content: center;   /* reliably centered */
}
.partner-strip.has-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 160px;         /* comfortable size, never oversized */
  object-fit: contain;
}

/* ---------- Footer ---------- */
.app-footer {
  background: var(--navy);
  color: var(--on-navy-dim);
  padding: var(--s-8) 0 var(--s-6);
}
.app-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-6);
}
.app-footer__top {
  display: flex;
  justify-content: space-between;
  gap: var(--s-6);
  flex-wrap: wrap;
  padding-bottom: var(--s-6);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.app-footer .brand__name { font-size: 14px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-6);
}
.footer-nav a {
  color: var(--on-navy-dim);
  font-size: 13px;
  transition: color var(--dur-fast) var(--ease);
}
.footer-nav a:hover { color: #fff; }
.app-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  padding-top: var(--s-5);
  font-size: 12px;
  color: var(--on-navy-dim);
}
.app-footer__legal { display: flex; gap: var(--s-5); flex-wrap: wrap; }

/* Configurable info block above the bottom links */
.app-footer__info {
  text-align: center;
  padding-top: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: var(--on-navy-dim);
  opacity: 0.75;
}
.app-footer__info p {
  margin: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Configurable centered links row */
.app-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3) var(--s-5);
  padding-top: var(--s-5);
}
.app-footer__links a {
  color: var(--on-navy-dim);
  font-size: 12px;
  transition: color var(--dur-fast) var(--ease);
}
.app-footer__links a:hover { color: #fff; }

/* ---------- Detail rows (page 2) ---------- */
.detail-list { display: flex; flex-direction: column; gap: var(--s-3); }
.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-6);
  border-radius: var(--r-lg);
  background: var(--surface-muted);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.detail-row:hover { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-sm); background: var(--surface); }
.detail-row__main { min-width: 0; }
.detail-row__key { font-size: 12px; color: var(--ink-4); font-weight: 600; letter-spacing: 0.02em; }
.detail-row__val {
  font-size: 17px; font-weight: 700; letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.copy-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn:hover { box-shadow: inset 0 0 0 1.5px var(--blue-outline); color: var(--blue-strong); }
.copy-btn:active { transform: scale(0.96); }
.copy-btn.is-copied { background: var(--green-soft); color: var(--green-strong); box-shadow: inset 0 0 0 1.5px var(--green-outline); }

.info-panel {
  margin-top: var(--s-5);
  display: flex;
  gap: var(--s-3);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--amber-soft);
  box-shadow: inset 0 0 0 1px rgba(184,121,31,0.2);
}
.info-panel svg { width: 20px; height: 20px; color: var(--amber-text); flex: none; }
.info-panel p { font-size: 13px; color: #7a5314; line-height: 1.55; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--amber-soft);
  color: var(--amber-text);
  font-size: 12.5px; font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(184,121,31,0.25);
}
.status-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
  animation: pulse 1.6s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.action-bar {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.action-bar .btn--primary { flex: 1; }

/* ============================================================
   Overlays — modals, toast
   ============================================================ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: var(--s-6);
  background: var(--navy-glass);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.overlay.is-open { opacity: 1; visibility: visible; }

.modal {
  width: min(440px, 100%);
  background: var(--surface);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,0.6);
  padding: var(--s-8);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-slow) var(--ease-out);
}
.overlay.is-open .modal { transform: translateY(0) scale(1); opacity: 1; }

.modal__head { text-align: center; margin-bottom: var(--s-6); }
.modal__title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.modal__desc { font-size: 14px; color: var(--ink-3); margin-top: var(--s-2); }

/* verification checklist */
.verify-head {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: var(--s-3); margin-bottom: var(--s-6);
}
.verify-spinner {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--blue), rgba(47,111,237,0) 75%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 0);
  animation: spin 0.9s linear infinite;
  transform-origin: 50% 50%;
  will-change: transform;
}
@keyframes spin { to { transform: rotate(360deg); } }

.checklist { display: flex; flex-direction: column; gap: var(--s-2); }
.check-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--surface-muted);
  box-shadow: inset 0 0 0 1px var(--line);
  opacity: 0.55;
  transition: opacity var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.check-item.is-active { opacity: 1; }
.check-item.is-done { opacity: 1; background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green-outline); }
.check-item__mark {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-sunken);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.check-item__mark .mini-spin {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--blue-outline);
  border-top-color: var(--blue);
  animation: spin 0.7s linear infinite;
  transform-origin: 50% 50%;
  will-change: transform;
  display: none;
}
.check-item__mark svg {
  width: 14px; height: 14px; color: #fff;
  stroke-dasharray: 20; stroke-dashoffset: 20;
  transition: stroke-dashoffset var(--dur-slow) var(--ease-out);
}
.check-item.is-active .check-item__mark .mini-spin { display: block; }
.check-item.is-done .check-item__mark { background: var(--green); box-shadow: none; }
.check-item.is-done .check-item__mark svg { stroke-dashoffset: 0; }
.check-item__label { font-size: 14px; font-weight: 600; color: var(--ink-2); }

.modal__support-icon {
  width: 60px; height: 60px;
  margin: 0 auto var(--s-4);
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: var(--green-soft); color: var(--green-strong);
  box-shadow: inset 0 0 0 1.5px var(--green-outline);
  animation: pop var(--dur-slow) var(--ease-out) both;
}
.modal__support-icon svg { width: 30px; height: 30px; }
@keyframes pop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Toast */
.toast-region {
  position: fixed;
  top: calc(var(--header-h) + var(--s-4));
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  align-items: center;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 13px 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  transform: translateY(-16px);
  opacity: 0;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease);
}
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast__icon {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: var(--green-soft); color: var(--green-strong);
}
.toast__icon svg { width: 14px; height: 14px; }
.toast--info .toast__icon { background: var(--blue-soft); color: var(--blue-strong); }

/* fade-in on load */
.fade-in { animation: fadeUp var(--dur-slow) var(--ease-out) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
