/* ──────────────────────────────────────────
   Fingerblip — style.css
   Light "Paper" theme
   ────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--fb-bg1);
  color: var(--fb-fg2);
  font-family: var(--fb-font-sans);
  font-size: var(--fb-body-size);
  font-weight: 400;
  line-height: var(--fb-body-leading);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  line-height: 1.2;
}

h1 {
  font-size: var(--fb-display-size);
  font-weight: var(--fb-display-weight);
  letter-spacing: var(--fb-display-track);
  line-height: var(--fb-display-leading);
  color: var(--fb-fg1);
}

h2 {
  font-size: var(--fb-h2-size);
  font-weight: 300;
  letter-spacing: var(--fb-h2-track);
  text-transform: uppercase;
  color: var(--fb-fg1);
}

h3 {
  font-size: var(--fb-h3-size);
  font-weight: 300;
  letter-spacing: var(--fb-h3-track);
  text-transform: uppercase;
  color: var(--fb-fg3);
}

a {
  color: var(--fb-fg2);
  text-decoration: none;
  transition: var(--fb-transition);
}
a:hover { color: var(--fb-fg1); }

/* ──────────────────────────────────────────
   HEADER
   ────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  border-bottom: 1px solid var(--fb-border);
  position: sticky;
  top: 0;
  background-color: var(--fb-bg1);
  z-index: 100;
}

.logo img {
  display: block;
  height: 36px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 36px;
  list-style: none;
}

.site-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fb-fg3);
  transition: var(--fb-transition);
}
.site-nav a:hover { color: var(--fb-fg1); }

/* ── Header right group ── */
.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* ── Language dropdown ── */
.lang-dropdown { position: relative; }

.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--fb-border-strong);
  border-radius: var(--fb-radius-input);
  color: var(--fb-fg2);
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 12px;
  transition: var(--fb-transition);
  white-space: nowrap;
  user-select: none;
}
.lang-current:hover { border-color: var(--fb-fg1); color: var(--fb-fg1); }
.lang-current svg { transition: transform 200ms ease; flex-shrink: 0; }
.lang-dropdown.open .lang-current svg { transform: rotate(180deg); }

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--fb-bg2);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-input);
  overflow: hidden;
  min-width: 100%;
  z-index: 200;
  box-shadow: var(--fb-shadow-card);
}
.lang-dropdown.open .lang-menu { display: block; }

.lang-option {
  display: block;
  width: 100%;
  padding: 9px 16px;
  background: transparent;
  border: none;
  color: var(--fb-fg3);
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--fb-transition);
}
.lang-option:hover { background: var(--fb-bg3); color: var(--fb-fg1); }
.lang-option.active { color: var(--fb-fg1); }

/* ──────────────────────────────────────────
   HERO
   ────────────────────────────────────────── */
.hero {
  padding: 80px 48px 96px;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}

.hero-text { padding-top: 8px; }

.hero-text h1 { margin-bottom: 14px; }

.hero-text p {
  font-size: 1rem;
  color: var(--fb-fg3);
  letter-spacing: 0.05em;
}

/* ──────────────────────────────────────────
   WIDGET CARD
   ────────────────────────────────────────── */
.widget {
  background: var(--fb-bg2);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-card);
  padding: 40px;
  width: 500px;
  flex-shrink: 0;
  box-shadow: var(--fb-shadow-card);
  height: 760px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* ── Maintenance Banner ─────────────────────────────────────────────────── */
.maintenance-banner {
  background: var(--fb-bg2);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-card);
  padding: 40px 36px;
  width: 500px;
  flex-shrink: 0;
  box-shadow: var(--fb-shadow-card);
  height: 760px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.maintenance-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--fb-bg3);
  border: 1px solid var(--fb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fb-canopy);
  animation: maint-breathe 3s ease-in-out infinite;
}

@keyframes maint-breathe {
  0%, 100% { box-shadow: none; }
  50%       { box-shadow: var(--fb-shadow-card); }
}

.maintenance-title {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--fb-fg1);
  margin: 0;
  letter-spacing: 0.06em;
}

.maintenance-msg {
  font-size: 0.9rem;
  color: var(--fb-fg3);
  line-height: 1.6;
  margin: 0;
  max-width: 340px;
}

.maintenance-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-input);
  background: var(--fb-bg3);
  margin-top: 2px;
}

.maintenance-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fb-signal);
  flex-shrink: 0;
  animation: maint-pulse 1.8s ease-in-out infinite;
}

@keyframes maint-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.maintenance-status {
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fb-fg3);
}

/* ──────────────────────────────────────────
   INVITE GATE
   ────────────────────────────────────────── */
.invite-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--fb-bg1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.invite-gate[hidden] { display: none !important; }

.invite-gate-card {
  background: var(--fb-bg2);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-card);
  padding: 48px 44px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--fb-shadow-modal);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.invite-gate-logo {
  display: block;
  margin-bottom: 32px;
}

.invite-gate-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.invite-gate-eyebrow {
  font-size: var(--fb-eyebrow-size);
  letter-spacing: var(--fb-eyebrow-track);
  text-transform: uppercase;
  color: var(--fb-signal);
  margin-bottom: 10px;
}

.invite-gate-headline {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: var(--fb-display-weight);
  letter-spacing: var(--fb-display-track);
  color: var(--fb-fg1);
  line-height: var(--fb-display-leading);
  margin-bottom: 12px;
}

.invite-gate-desc {
  font-size: 0.88rem;
  color: var(--fb-fg3);
  line-height: 1.6;
  margin-bottom: 28px;
}

.invite-gate-field { margin-bottom: 0; }

.invite-code-input {
  width: 100%;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-align: center;
  padding: 14px 16px;
  background: var(--fb-bg1);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-input);
  color: var(--fb-fg1);
  font-family: var(--fb-font-mono);
  outline: none;
  transition: var(--fb-transition);
  -webkit-appearance: none;
  appearance: none;
  display: block;
}

.invite-code-input:focus {
  border-color: var(--fb-signal);
  box-shadow: 0 0 0 3px var(--fb-signal-fill);
}

.invite-code-input.error {
  border-color: var(--fb-danger);
  box-shadow: 0 0 0 3px var(--fb-danger-fill);
}

.invite-code-error {
  font-size: 0.78rem;
  color: var(--fb-danger);
  margin-top: 8px;
  display: none;
}
.invite-code-error.visible { display: block; }

@media (max-width: 480px) {
  .invite-gate-card { padding: 36px 24px 32px; }
  .invite-code-input { font-size: 1.25rem; letter-spacing: 0.2em; }
}

/* ──────────────────────────────────────────
   STEP VISIBILITY & INDICATOR
   ────────────────────────────────────────── */
.step { display: none; }
.step.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* Push the primary CTA (or CTA-containing sub-section) to the bottom of the
   widget so the Get-quote / Continue / Confirm / Start-new buttons all sit at
   the same vertical position across steps. */
.step.active > .btn-cta:last-of-type { margin-top: auto; }
.step.active > .step-foot,
.step.active > #address-section:not([hidden]),
.step.active > #confirm-section:not([hidden]) {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}
.step.active > .complete-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.step.active > .complete-wrap > .btn-cta:last-of-type { margin-top: auto; }

/* Step indicator — 5 dots with mini-labels under each */
.step-indicator {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 8px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-sizing: border-box;
  flex-shrink: 0;
  background-color: var(--fb-step-dot-default);
  pointer-events: none;
  transition: background-color 220ms var(--fb-ease);
}

/* Both active and done dots use the signal orange. No scale, no overshoot —
   the differentiation between active and done lives in the label color. */
.step-dot.done,
.step-dot.active {
  background-color: var(--fb-signal);
}

.step-label {
  font-family: var(--fb-font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fb-fg3);
  text-align: center;
  white-space: nowrap;
  transition: color 220ms var(--fb-ease);
}

.step-item.done  .step-label { color: var(--fb-fg2); }
.step-item.active .step-label { color: var(--fb-signal); }

/* ──────────────────────────────────────────
   WIDGET SECTIONS & INPUTS
   ────────────────────────────────────────── */
.widget-section { margin-bottom: 24px; }

.widget-section-label {
  font-size: var(--fb-label-size);
  letter-spacing: var(--fb-label-track);
  text-transform: uppercase;
  color: var(--fb-fg3);
  margin-bottom: 8px;
}

.input-row { display: flex; gap: 10px; }

input[type="number"],
input[type="text"],
select,
textarea {
  background: var(--fb-bg2);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-input);
  color: var(--fb-fg1);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 11px 14px;
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  -webkit-appearance: none;
  appearance: none;
}

input[type="number"]:focus,
input[type="text"]:focus,
select:focus,
textarea:focus {
  border-color: var(--fb-signal);
  box-shadow: 0 0 0 3px var(--fb-signal-fill);
}

input[type="number"]::placeholder,
input[type="text"]::placeholder,
textarea::placeholder {
  color: var(--fb-fg4);
}

.amount-input {
  flex: 1;
  min-width: 0;
  font-family: var(--fb-font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.currency-select {
  min-width: 150px;
  width: auto;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%235a8a78'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* ── Swap-currencies button (FIN-55) ──
   Sits between You-send and You-receive. Overlaps both widget-sections
   by sliding up — the surrounding margin-bottom on the send block and
   margin-top on the receive block already total ~24+24px, so a 36px
   button needs negative margins to feel centered. */
.swap-row {
  display: flex;
  justify-content: flex-end;
  margin: -16px 0 -16px;
  position: relative;
  z-index: 1;
}

.swap-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fb-bg2);
  border: 1px solid var(--fb-border);
  color: var(--fb-fg2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: border-color 150ms ease, color 150ms ease, transform 200ms ease, background 150ms ease;
}

.swap-btn:hover,
.swap-btn:focus-visible {
  border-color: var(--fb-signal);
  color: var(--fb-signal);
  outline: none;
}

.swap-btn:focus-visible {
  box-shadow: 0 0 0 3px var(--fb-signal-fill);
}

.swap-btn:active { transform: scale(0.92); }

.swap-btn.is-spinning svg { animation: swap-spin 220ms ease-out; }

@keyframes swap-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(180deg); }
}

/* ── Rate info ── */
.rate-info {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--fb-bg3);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-input);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rate-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.rate-value {
  font-family: var(--fb-font-mono);
  color: var(--fb-fg1);
}

.rate-countdown {
  font-size: 0.72rem;
  color: var(--fb-fg3);
  letter-spacing: 0.06em;
}

.fee-label {
  color: var(--fb-fg3);
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 6px;
  min-width: 0;
}
.fee-value { font-family: var(--fb-font-mono); color: var(--fb-fg1); flex-shrink: 0; }

.fee-label-hint {
  font-size: 0.7rem;
  color: var(--fb-fg4);
}
.fee-label-hint::before {
  content: '·';
  margin-right: 4px;
  opacity: 0.55;
}

/* ── Receive row ── */
.receive-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.receive-amount {
  flex: 1;
  min-width: 0;
  font-family: var(--fb-font-mono);
  font-size: 1.1rem;
  color: var(--fb-fg1);
  background: var(--fb-bg2);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-input);
  padding: 11px 14px;
  letter-spacing: 0.03em;
}

/* ── USD hints ── */
.usd-hint {
  font-size: 0.72rem;
  color: var(--fb-fg4);
  text-align: right;
  margin-top: 4px;
  min-height: 16px;
}

.usd-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--fb-fg4);
  margin-top: 2px;
}

/* ── CTA Button ── */
.btn-cta {
  width: 100%;
  padding: 14px 24px;
  margin-top: 28px;
  background: var(--fb-signal);
  color: #fff;
  border: none;
  border-radius: var(--fb-radius-input);
  font-family: inherit;
  font-size: var(--fb-button-size);
  font-weight: 500;
  letter-spacing: var(--fb-button-track);
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms ease;
}
.btn-cta:hover { background: var(--fb-signal-lt); }
.btn-cta:disabled { opacity: 0.45; pointer-events: none; }

/* ── Secondary button ── */
.btn-secondary {
  background: var(--fb-bg2);
  border: 1px solid var(--fb-border-strong);
  color: var(--fb-fg2);
  border-radius: var(--fb-radius-input);
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 10px 18px;
  transition: var(--fb-transition);
}
.btn-secondary:hover { border-color: var(--fb-fg1); color: var(--fb-fg1); }

/* ──────────────────────────────────────────
   STEP 2 — QUOTE
   ────────────────────────────────────────── */
.summary-card {
  background: var(--fb-bg3);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-input);
  padding: 18px 20px;
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--fb-divider);
}
.summary-row:last-child { border-bottom: none; }
.summary-row[hidden] { display: none !important; }

.summary-key { color: var(--fb-fg3); }
.summary-val {
  font-family: var(--fb-font-mono);
  color: var(--fb-fg1);
  text-align: right;
}

/* Hero the primary transaction values — "You send" and "You receive" —
   so the amount + coin reads as the dominant figure on the quote card.
   Other rows (rate, fee, locked-for, order ID) stay at base weight. */
.summary-row:has(#q-send-val) .summary-val,
.summary-row:has(#q-receive-val) .summary-val {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fb-signal);
  letter-spacing: 0.02em;
}
.summary-row:has(#q-send-val) .summary-val .usd-sub,
.summary-row:has(#q-receive-val) .summary-val .usd-sub {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--fb-fg4);
  letter-spacing: 0;
}

.rate-lock-hint {
  font-size: 0.72rem;
  color: var(--fb-fg4);
  text-align: center;
  margin-top: 6px;
}

/* Inline copy button inside summary card */
.btn-copy-inline {
  font-family: var(--fb-font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--fb-fg3);
  background: var(--fb-bg2);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-pill);
  padding: 2px 8px;
  cursor: pointer;
  transition: color 120ms, background 120ms;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-copy-inline:hover { color: var(--fb-fg1); background: var(--fb-bg3); }
.btn-copy-inline.copied { color: var(--fb-success, #16a34a); border-color: var(--fb-success, #16a34a); }

/* Amber warning box above the confirm button */
.confirm-warning-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--fb-signal-fill, #fef9ee);
  border: 1px solid var(--fb-signal-border, #f6c86e);
  border-radius: var(--fb-radius-input);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--fb-fg2);
  line-height: 1.55;
}
.confirm-warning-icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--fb-signal, #d97706);
}

.addr-label-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.addr-hint-inline {
  font-size: 0.7rem;
  color: var(--fb-fg4);
  text-transform: none;
  letter-spacing: 0;
  font-weight: normal;
}

.addr-hint-inline:not(:empty)::before {
  content: '·';
  margin-right: 6px;
  opacity: 0.5;
}

.address-input-wrap { margin-top: 4px; }

.address-input {
  width: 100%;
  font-family: var(--fb-font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.field-error {
  font-size: 0.72rem;
  color: var(--fb-danger);
  margin-top: 6px;
  display: none;
}
.field-error.visible { display: block; }

/* ──────────────────────────────────────────
   STEP 3 — PAYMENT
   ────────────────────────────────────────── */

/* Order ID tag — sits on the right of the amount-label row inside the card */
.payment-order-tag {
  font-family: var(--fb-font-mono);
  font-size: 0.78rem;
  color: var(--fb-fg2);
  flex-shrink: 0;
}

.payment-sub {
  font-size: 0.76rem;
  color: var(--fb-fg3);
  letter-spacing: 0.04em;
  margin-bottom: var(--fb-space-6);
}

/* Unified payment card */
.payment-card {
  background: var(--fb-bg3);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-card);
  padding: 24px;
  margin-bottom: var(--fb-space-6);
}

.payment-qr-wrap {
  display: flex;
  justify-content: center;
}

.payment-qr-wrap > div {
  background: var(--fb-bg2);
  padding: 12px;
  border-radius: var(--fb-radius-input);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.payment-divider {
  height: 1px;
  background: var(--fb-divider);
  margin: 20px 0;
}
.payment-divider--sm { margin: 16px 0; }

.payment-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.payment-field-label {
  font-size: var(--fb-label-size);
  letter-spacing: var(--fb-label-track);
  text-transform: uppercase;
  color: var(--fb-fg3);
}

.payment-address-value {
  font-family: var(--fb-font-mono);
  font-size: 0.78rem;
  color: var(--fb-fg1);
  word-break: break-all;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* The amount-to-send is the hero of the payment card — bigger, bolder,
   in signal colour. Targets `#pay-amount-display` regardless of the
   shared .payment-address-value class. */
#pay-amount-display {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fb-signal);
  letter-spacing: 0.03em;
  line-height: 1.25;
  margin-bottom: 4px;
}

.payment-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payment-meta-value {
  font-family: var(--fb-font-mono);
  font-size: 0.82rem;
  color: var(--fb-fg1);
  letter-spacing: 0.08em;
}

/* Copy button (address) */
.btn-copy {
  background: transparent;
  border: 1px solid var(--fb-border-strong);
  color: var(--fb-fg2);
  border-radius: var(--fb-radius-input);
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 5px 12px;
  white-space: nowrap;
  transition: var(--fb-transition);
}
.btn-copy:hover { border-color: var(--fb-fg1); color: var(--fb-fg1); }
.btn-copy.copied {
  color: #8a5410;
  border-color: var(--fb-signal-border);
  background: var(--fb-signal-fill);
}

.btn-caveat {
  font-size: 0.72rem;
  color: var(--fb-fg4);
  text-align: center;
  margin-top: 6px;
  line-height: 1.4;
}

/* Live status block — matches .notif.notif-info appearance */
.status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--fb-bg3);
  border: 0.5px solid var(--fb-border);
  border-radius: var(--fb-radius-input);
  margin-bottom: var(--fb-space-6);
  color: var(--fb-fg1);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.status-visual {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-text {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--fb-success);
}

/* Loader & confirm SVG styling (light theme) */
.fingerblip-loader, .status-icon { --l-ink: var(--fb-success); --l-accent: var(--fb-signal); }
.fingerblip-loader .trace, .status-icon .trace { stroke: var(--l-ink); stroke-width: 0.8; stroke-dasharray: 2.5 2; opacity: 0.35; }
.fingerblip-loader .r1, .fingerblip-loader .r2, .fingerblip-loader .r3, .fingerblip-loader .r4,
.status-icon .r1, .status-icon .r2, .status-icon .r3, .status-icon .r4 { stroke: var(--l-ink); stroke-linecap: round; fill: none; stroke-width: 2.5; stroke-dashoffset: 0; }
.fingerblip-loader .r4, .status-icon .r4 { stroke-width: 1.5; }
.fingerblip-loader .focal, .status-icon .focal { fill: var(--l-ink); }
.fingerblip-loader .br, .status-icon .br { fill: none; stroke: var(--l-accent); stroke-width: 1.4; opacity: 0.4; }
.fingerblip-loader .bd, .status-icon .bd { fill: var(--l-accent); }

/* Fingerprint row */
.fingerprint-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  cursor: pointer;
  user-select: none;
}
.fingerprint-label {
  font-size: var(--fb-label-size);
  color: var(--fb-fg3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.fingerprint-value {
  font-family: var(--fb-font-mono);
  font-size: 0.72rem;
  text-align: right;
  max-width: 70%;
  word-break: break-all;
}
.fingerprint-mask {
  color: var(--fb-fg3);
  font-family: inherit;
  font-style: italic;
  border-bottom: 1px dashed var(--fb-border-strong);
}
.fingerprint-text { color: var(--fb-fg2); }

/* ──────────────────────────────────────────
   STEP 4 — COMPLETE
   ────────────────────────────────────────── */
.complete-wrap {
  text-align: center;
  padding: 16px 0 8px;
}

.complete-mark {
  margin: 0 auto 20px;
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

/* Complete mark SVG tokens */
.complete-mark { --l-ink: var(--fb-deep); --l-accent: var(--fb-signal); }
.complete-mark .trace { stroke: var(--l-ink); stroke-width: 0.8; stroke-dasharray: 2.5 2; opacity: 0.35; }
.complete-mark .r1, .complete-mark .r2, .complete-mark .r3, .complete-mark .r4 { stroke: var(--l-ink); stroke-linecap: round; fill: none; stroke-width: 2.5; }
.complete-mark .r4 { stroke-width: 1.5; }
.complete-mark .focal { fill: var(--l-ink); }
.complete-mark .br { fill: none; stroke: var(--l-accent); stroke-width: 1.4; opacity: 0.4; }
.complete-mark .bd { fill: var(--l-accent); }
.complete-mark .check { stroke: #fff; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.complete-mark .burst1, .complete-mark .burst2 { fill: none; stroke: var(--l-accent); stroke-width: 1.2; opacity: 0; }

.complete-title {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--fb-fg1);
  margin-bottom: 28px;
}

.complete-summary {
  text-align: left;
  background: var(--fb-bg3);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-input);
  padding: 18px 20px;
  margin-bottom: 28px;
}

.complete-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--fb-divider);
}
.complete-row:last-child { border-bottom: none; }
.complete-key { color: var(--fb-fg3); }
.complete-val {
  font-family: var(--fb-font-mono);
  color: var(--fb-fg1);
  text-align: right;
}

/* ── Share section ── */
.share-section { margin-bottom: 24px; text-align: left; }

.share-label {
  font-size: var(--fb-label-size);
  letter-spacing: var(--fb-label-track);
  text-transform: uppercase;
  color: var(--fb-fg3);
  margin-bottom: 12px;
}

.share-buttons { display: flex; gap: 10px; }

.share-btn {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid var(--fb-border-strong);
  border-radius: var(--fb-radius-input);
  color: var(--fb-fg3);
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: var(--fb-transition);
  white-space: nowrap;
}

.share-icon { display: flex; align-items: center; flex-shrink: 0; }
.share-icon svg { width: 14px; height: 14px; fill: currentColor; display: block; }

.share-btn:hover { border-color: var(--fb-fg1); color: var(--fb-fg1); }

/* ──────────────────────────────────────────
   HOW IT WORKS
   ────────────────────────────────────────── */
#how-it-works {
  border-top: 1px solid var(--fb-border);
  padding: 80px 48px;
}

.how-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: var(--fb-eyebrow-size);
  letter-spacing: var(--fb-eyebrow-track);
  text-transform: uppercase;
  color: var(--fb-signal);
  margin-bottom: 48px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
}

.how-step {
  position: relative;
  padding-top: 20px;
}

.how-step::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--fb-signal);
  margin-bottom: 20px;
}

.how-step-num {
  font-size: var(--fb-eyebrow-size);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fb-signal);
  margin-bottom: 12px;
  font-family: var(--fb-font-mono);
}

.how-step-title {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--fb-fg1);
  margin-bottom: 12px;
}

.how-step-desc {
  font-size: 0.85rem;
  color: var(--fb-fg3);
  line-height: 1.65;
}

/* ──────────────────────────────────────────
   FAQ
   ────────────────────────────────────────── */
#faq {
  border-top: 1px solid var(--fb-border);
  padding: 80px 48px;
}

.faq-inner {
  max-width: 680px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--fb-border);
  padding: 22px 0;
}

.faq-question {
  font-size: 0.9rem;
  color: var(--fb-fg1);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.faq-answer {
  font-size: 0.83rem;
  color: var(--fb-fg3);
  line-height: 1.7;
}

/* FAQ blocks — block-level collapse (single open at a time) */
.faq-block { margin-bottom: 16px; }

.faq-block-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 16px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--fb-border);
  padding: 14px 0 12px;
  margin: 0;
  font-family: inherit;
  font-size: var(--fb-eyebrow-size);
  letter-spacing: var(--fb-eyebrow-track);
  text-transform: uppercase;
  color: var(--fb-signal);
  text-align: left;
  cursor: pointer;
  user-select: none;
  transition: color 150ms ease;
}

.faq-block-heading:hover { color: var(--fb-signal-lt); }
.faq-block-heading:focus-visible {
  outline: 2px solid var(--fb-signal);
  outline-offset: 4px;
}

.faq-block-toggle {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--fb-fg3);
  font-size: 1rem;
  line-height: 1;
  transition: transform 200ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.faq-block.open .faq-block-toggle { transform: rotate(45deg); }

.faq-block:not(.open) .faq-item { display: none; }

.faq-block.open .faq-item:last-child { border-bottom: 0; }

/* ──────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--fb-border);
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  min-width: 0;
}

.footer-logo img {
  height: 28px;
  opacity: 0.8;
}

.footer-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fb-fg3);
}

.footer-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.footer-link {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fb-fg3);
  cursor: pointer;
  transition: var(--fb-transition);
}
.footer-link:hover { color: var(--fb-fg1); }

.footer-end {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.footer-right {
  font-size: 0.72rem;
  color: var(--fb-fg3);
  letter-spacing: 0.06em;
}

/* ──────────────────────────────────────────
   MODALS
   ────────────────────────────────────────── */
.modal[hidden] { display: none !important; }

.modal:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7,27,23,0.5);
  cursor: pointer;
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: min(88vh, 640px);
  display: flex;
  flex-direction: column;
  background: var(--fb-bg2);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-card);
  box-shadow: var(--fb-shadow-modal);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--fb-border);
  flex-shrink: 0;
}

.modal-title {
  font-size: var(--fb-h2-size);
  font-weight: 300;
  letter-spacing: var(--fb-h2-track);
  text-transform: uppercase;
  color: var(--fb-fg1);
  margin: 0;
}

.modal-close {
  background: transparent;
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-input);
  color: var(--fb-fg3);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
  transition: var(--fb-transition);
}
.modal-close:hover { border-color: var(--fb-fg1); color: var(--fb-fg1); }

.modal-body {
  padding: 22px;
  overflow-y: auto;
  color: var(--fb-fg2);
  font-size: 0.9rem;
  line-height: 1.7;
}

.modal-body--legal p {
  margin-bottom: 14px;
  color: var(--fb-fg3);
}
.modal-body--legal p:last-child { margin-bottom: 0; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--fb-label-size);
  letter-spacing: var(--fb-label-track);
  text-transform: uppercase;
  color: var(--fb-fg3);
}

.form-field input,
.form-field textarea {
  font-family: inherit;
  font-size: 0.92rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--fb-fg1);
  background: var(--fb-bg1);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-input);
  padding: 10px 12px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--fb-signal);
  box-shadow: 0 0 0 3px var(--fb-signal-fill);
}
.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.input-order-id { letter-spacing: 0.06em; }

.contact-form-success {
  font-size: 0.88rem;
  color: var(--fb-success);
  margin: 0;
}
.contact-form-success:not([hidden]) { display: block; }

.contact-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.btn-modal-primary,
.btn-modal-secondary {
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: var(--fb-radius-input);
  cursor: pointer;
  transition: var(--fb-transition);
}

.btn-modal-secondary {
  background: transparent;
  border: 1px solid var(--fb-border-strong);
  color: var(--fb-fg3);
}
.btn-modal-secondary:hover { border-color: var(--fb-fg1); color: var(--fb-fg1); }

.btn-modal-primary {
  background: var(--fb-signal);
  border: none;
  color: #fff;
}
.btn-modal-primary:hover { background: var(--fb-signal-lt); }

body.modal-open { overflow: hidden; }

/* ──────────────────────────────────────────
   KYC STEP
   ────────────────────────────────────────── */
.kyc-header { margin-bottom: 20px; }

.kyc-note {
  font-size: 0.8rem;
  color: var(--fb-fg3);
  line-height: 1.5;
  margin-top: 6px;
}

.kyc-hint {
  font-size: 0.78rem;
  color: var(--fb-fg3);
  line-height: 1.5;
  margin-top: 12px;
  text-align: center;
}

.kyc-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.kyc-label {
  font-size: var(--fb-label-size);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fb-fg3);
}

.kyc-input {
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--fb-fg1);
  background: var(--fb-bg2);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-input);
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  appearance: none;
  -webkit-appearance: none;
}

.kyc-input:focus {
  border-color: var(--fb-signal);
  box-shadow: 0 0 0 3px var(--fb-signal-fill);
}

.kyc-input::placeholder {
  color: var(--fb-fg4);
}

.kyc-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6' viewBox='0 0 9 6'%3E%3Cpath d='M1 1l3.5 4L8 1' stroke='%235a8a78' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

.kyc-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.kyc-error {
  font-size: 0.82rem;
  color: var(--fb-danger);
  background: var(--fb-danger-fill);
  border: 1px solid var(--fb-danger-border);
  border-radius: var(--fb-radius-input);
  padding: 10px 12px;
  margin-bottom: 12px;
}

#kyc-doc-ready[hidden] { display: none !important; }

#kyc-doc-ready {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 8px;
}

#kyc-qr-container {
  padding: 12px;
  background: var(--fb-bg2);
  border-radius: var(--fb-radius-input);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 224px;
  min-height: 224px;
  border: 1px solid var(--fb-border);
}

#kyc-qr-container img,
#kyc-qr-container canvas { display: block; }

.kyc-qr-loading,
.kyc-qr-error {
  font-size: 0.82rem;
  color: var(--fb-fg3);
  text-align: center;
  padding: 16px;
}

.kyc-instruction {
  font-size: 0.82rem;
  color: var(--fb-fg3);
  line-height: 1.5;
  margin-top: 14px;
  text-align: center;
}

.kyc-open-link {
  margin-top: 6px;
  font-size: 0.80rem;
  color: var(--fb-fg3);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.kyc-open-link:hover { color: var(--fb-fg1); }

.kyc-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.82rem;
}

.kyc-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.kyc-status--waiting { color: var(--fb-fg3); }
.kyc-status--waiting .kyc-status-dot {
  background: var(--fb-signal);
  animation: kyc-dot-pulse 1.4s ease-in-out infinite;
}

.kyc-status--verified { color: var(--fb-success); }
.kyc-status--verified .kyc-status-dot { display: none; }

@keyframes kyc-dot-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

.kyc-doc-intro {
  font-size: 0.82rem;
  color: var(--fb-fg3);
  line-height: 1.5;
  margin-top: 4px;
  margin-bottom: 12px;
}

.kyc-qr-label {
  font-size: 0.72rem;
  color: var(--fb-fg4);
  letter-spacing: 0.04em;
  margin-top: 12px;
}

.kyc-status-meta {
  font-size: 0.72rem;
  color: var(--fb-fg4);
  text-align: center;
  margin-top: 6px;
}

/* Compact quote summary shown on KYC step */
.kyc-summary-mini {
  margin-bottom: 16px;
  padding: 10px 14px;
}
.kyc-summary-mini .summary-row { padding: 6px 0; }

@media (max-width: 480px) {
  .kyc-row-2 { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────
   OTP PANEL (inline on step 2)
   ────────────────────────────────────────── */
.otp-section { margin-bottom: 0; }

.otp-section-sub {
  font-size: 0.8rem;
  color: var(--fb-fg3);
  margin-top: -2px;
  margin-bottom: 14px;
  line-height: 1.4;
}

.secured-by {
  font-size: 0.72rem;
  color: var(--fb-fg4);
  margin-top: 10px;
  text-align: center;
}

/* ── Compliance pending panel ── */
.compliance-pending-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 20px;
  text-align: center;
}

.compliance-pending-icon {
  color: var(--fb-signal);
  opacity: 0.85;
  animation: compliance-pulse 2s ease-in-out infinite;
}

@keyframes compliance-pulse {
  0%, 100% { opacity: 0.55; }
  50%       { opacity: 1; }
}

.compliance-pending-msg {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--fb-fg2);
  max-width: 320px;
}

.compliance-pending-sub {
  margin: 0;
  font-size: 0.78rem;
  color: var(--fb-fg3);
}

/* ── Phase 1: contact entry ── */
.otp-contact-label {
  display: block;
  font-size: var(--fb-label-size);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fb-fg3);
  margin-bottom: 6px;
}

.otp-input-group {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.otp-country-select {
  flex-shrink: 0;
  /* Fits flag emoji + 3-char dial code ("+44") + select chevron + padding.
     Was 76px which truncated 2-digit codes like +44/+49 on Safari. */
  width: 104px;
  padding-left: 8px;
  padding-right: 22px;
  font-size: 0.82rem;
}

.otp-contact-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.otp-contact-input {
  width: 100%;
  box-sizing: border-box;
  padding-right: 52px;
}

.otp-type-badge {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: var(--fb-radius-pill);
  pointer-events: none;
}

.otp-type-badge--sms   { background: var(--fb-bg3); color: var(--fb-canopy); }
.otp-type-badge--email { background: rgba(13,61,50,0.08); color: var(--fb-canopy); }

.btn-otp-action {
  flex-shrink: 0;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--fb-signal);
  color: #fff;
  border: none;
  border-radius: var(--fb-radius-input);
  cursor: pointer;
  white-space: nowrap;
  transition: background 200ms ease;
}
.btn-otp-action:hover:not(:disabled) { background: var(--fb-signal-lt); }
.btn-otp-action:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── Phase 2: code entry ── */
.otp-hint {
  font-size: 0.78rem;
  color: var(--fb-fg3);
  line-height: 1.4;
  margin-bottom: 14px;
}

.otp-boxes {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.otp-box {
  flex: 1;
  min-width: 0;
  height: 48px;
  text-align: center;
  font-size: 1.15rem;
  font-family: var(--fb-font-mono);
  border: 1px solid #1a5c4e;
  border-radius: var(--fb-radius-input);
  background: var(--fb-bg2);
  color: var(--fb-fg1);
  caret-color: transparent;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.otp-box:focus { outline: none; border: 1.5px solid #c97b12; box-shadow: 0 0 0 3px rgba(201, 123, 18, 0.18); }
.otp-box--filled { border-color: #2a6e5e; }
.otp-box:disabled { opacity: 0.45; cursor: not-allowed; }

@keyframes otp-shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-4px); }
  40%       { transform: translateX(4px); }
  60%       { transform: translateX(-3px); }
  80%       { transform: translateX(3px); }
}
.otp-boxes--error { animation: otp-shake 0.35s ease; }

.otp-timer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.otp-ring {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  transform: rotate(-90deg);
}
.otp-ring-track {
  fill: none;
  stroke: var(--fb-border);
  stroke-width: 3.5;
}
.otp-ring-fill {
  fill: none;
  stroke: #c97b12;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke 0.6s ease;
}

.otp-timer-label {
  font-size: 0.8rem;
  color: var(--fb-fg2);
  font-family: var(--fb-font-mono);
  font-variant-numeric: tabular-nums;
  min-width: 34px;
}

.btn-otp-resend {
  margin-left: auto;
  padding: 5px 12px;
  font-family: inherit;
  font-size: 0.78rem;
  background: transparent;
  color: var(--fb-fg3);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-input);
  cursor: pointer;
  transition: var(--fb-transition);
}
.btn-otp-resend:hover:not(:disabled) { color: var(--fb-fg1); border-color: var(--fb-border-strong); }
.btn-otp-resend:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-otp-verify {
  width: 100%;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #1a5c4e;
  color: #5a8a78;
  border: none;
  border-radius: var(--fb-radius-input);
  cursor: not-allowed;
  margin-bottom: 8px;
  transition: background 200ms ease, color 200ms ease;
}
.btn-otp-verify:not(:disabled) {
  background: #c97b12;
  color: #071b17;
  cursor: pointer;
}
.btn-otp-verify:hover:not(:disabled) { background: #b86d10; }
.btn-otp-verify:disabled { opacity: 1; }

/* Timer expired state */
.otp-timer--expired .otp-timer-label { color: var(--fb-danger); }
.otp-resend--urgent { border-color: var(--fb-signal-border) !important; color: #8a5410 !important; opacity: 1 !important; }

/* ── Success flash ── */
.otp-success {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  animation: otp-pop 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes otp-pop {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

/* ──────────────────────────────────────────
   MOTION PRIMITIVES
   ────────────────────────────────────────── */

/* 01 · Blockchain listener */
@keyframes fb-pulse-out {
  0%   { r: 3; opacity: 0.9; }
  100% { r: 9; opacity: 0; }
}
.fb-listen-chain .r1 { animation: fb-pulse-out 2s ease-out infinite; }
.fb-listen-chain .r2 { animation: fb-pulse-out 2s ease-out infinite; animation-delay: 0.66s; }
.fb-listen-chain .r3 { animation: fb-pulse-out 2s ease-out infinite; animation-delay: 1.33s; }
.fb-listen-chain { color: var(--fb-signal-lt); }
.fb-listen-chain .dot { fill: currentColor; stroke: none; }

/* 02 · Verification listener */
.fb-listen-verify .r1 { animation: fb-pulse-out 4s ease-out infinite; }
.fb-listen-verify .r2 { animation: fb-pulse-out 4s ease-out infinite; animation-delay: 1.33s; }
.fb-listen-verify .r3 { animation: fb-pulse-out 4s ease-out infinite; animation-delay: 2.66s; }
.fb-listen-verify { color: var(--fb-signal); }
.fb-listen-verify .dot { fill: currentColor; stroke: none; }

/* 03 · OTP transit */
@keyframes fb-fly {
  0%   { transform: translateX(0);    opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateX(26px); opacity: 0; }
}
.fb-otp-transit { color: var(--fb-signal-lt); }
.fb-otp-transit .pkt { animation: fb-fly 800ms ease-in-out; transform-origin: center; }
.fb-otp-transit.run .pkt { animation: fb-fly 800ms ease-in-out; }

/* 04 · Rate-lock countdown */
@keyframes fb-deplete {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: 56.5; }
}
.fb-rate-timer { color: var(--fb-signal-lt); }
.fb-rate-timer .ring { stroke-dasharray: 56.5; animation: fb-deplete 10s linear infinite; transform-origin: 10px 10px; transform: rotate(-90deg); }
.fb-rate-timer.urgent   { color: var(--fb-signal); }
.fb-rate-timer.critical { color: var(--fb-danger); }

/* 05 · Rate-refresh tick */
@keyframes fb-refresh-flash {
  0%, 100% { color: var(--fb-fg1); }
  50%      { color: var(--fb-signal-lt); }
}
@keyframes fb-digit-flip {
  0%   { transform: translateY(0);    opacity: 1; }
  50%  { transform: translateY(-6px); opacity: 0; }
  51%  { transform: translateY(6px);  opacity: 0; }
  100% { transform: translateY(0);    opacity: 1; }
}
.fb-refresh-value { font-family: var(--fb-font-mono); font-size: 0.9rem; color: var(--fb-fg1); letter-spacing: 0.02em; display: inline-block; }
.fb-refresh-value.tick { animation: fb-refresh-flash 400ms ease-in-out; }
.fb-refresh-value .d { display: inline-block; }
.fb-refresh-value.tick .d { animation: fb-digit-flip 400ms ease-in-out; }

/* 05b · Rate value tick on existing .rate-value elements */
.rate-value.tick { animation: fb-refresh-flash 400ms ease-in-out; }

/* 06 · Copy success */
.fb-copy-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--fb-border-strong); color: var(--fb-fg2); padding: 6px 10px; border-radius: var(--fb-radius-input); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; font-family: inherit; cursor: pointer; transition: var(--fb-transition); }
.fb-copy-btn:hover { border-color: var(--fb-fg1); color: var(--fb-fg1); }
.fb-copy-btn .fb-ico { width: 14px; height: 14px; }
.fb-copy-btn .copy-g, .fb-copy-btn .check-g { transition: opacity 120ms ease, transform 180ms cubic-bezier(.4,0,.2,1); }
.fb-copy-btn .check-g { opacity: 0; transform: scale(.6); transform-origin: center; }
.fb-copy-btn.copied { color: #8a5410; border-color: var(--fb-signal-border); background: var(--fb-signal-fill); }
.fb-copy-btn.copied .copy-g { opacity: 0; transform: scale(.6); }
.fb-copy-btn.copied .check-g { opacity: 1; transform: scale(1); }

/* 07 · OTP digit pop / 08 · OTP shake */
@keyframes fb-otp-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.fb-otp-box { width: 32px; height: 38px; display: flex; align-items: center; justify-content: center; background: var(--fb-bg2); border: 1px solid var(--fb-border-strong); border-radius: var(--fb-radius-input); font-family: var(--fb-font-mono); font-size: 0.95rem; color: var(--fb-fg1); transition: border-color 120ms ease, background 120ms ease, transform 120ms ease; }
.fb-otp-box.filled { border-color: var(--fb-fg2); animation: fb-otp-pop 160ms ease-out; }
@keyframes fb-shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-3px); }
  40%      { transform: translateX(3px); }
  60%      { transform: translateX(-2px); }
  80%      { transform: translateX(2px); }
}
.fb-otp-row.error .fb-otp-box { border-color: var(--fb-danger); color: var(--fb-danger); animation: fb-shake 300ms ease-in-out; }

/* 09 · Verify success */
@keyframes fb-boxes-out { to { opacity: 0; transform: translateY(-6px) scale(.94); } }
@keyframes fb-check-in  { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes fb-check-draw { from { stroke-dashoffset: 20; } to { stroke-dashoffset: 0; } }
.fb-verify-transition { position: relative; display: flex; align-items: center; justify-content: center; height: 38px; }
.fb-verify-transition .boxes { display: flex; gap: 6px; }
.fb-verify-transition .check-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; color: var(--fb-signal-lt); }
.fb-verify-transition.done .boxes { animation: fb-boxes-out 280ms ease-out forwards; }
.fb-verify-transition.done .check-wrap { animation: fb-check-in 320ms cubic-bezier(.4,0,.2,1) 200ms forwards; }
.fb-verify-transition.done .check-stroke { stroke-dasharray: 20; stroke-dashoffset: 20; animation: fb-check-draw 320ms ease-out 200ms forwards; }

/* 10 · Compliance breathing dots */
@keyframes fb-breathe {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1); }
}
.fb-compliance-dots { display: inline-flex; gap: 6px; align-items: center; color: var(--fb-signal); }
.fb-compliance-dots span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: fb-breathe 2.4s ease-in-out infinite; }
.fb-compliance-dots span:nth-child(2) { animation-delay: 0.35s; }
.fb-compliance-dots span:nth-child(3) { animation-delay: 0.7s; }

/* 12 · Done checkmark */
@keyframes fb-done-circle-draw { from { stroke-dashoffset: 57; } to { stroke-dashoffset: 0; } }
@keyframes fb-done-check-draw  { from { stroke-dashoffset: 14; } to { stroke-dashoffset: 0; } }
.fb-done-check { color: var(--fb-signal-lt); }
.fb-done-check .circle { stroke-dasharray: 57; stroke-dashoffset: 57; animation: fb-done-circle-draw 400ms ease-out forwards; }
.fb-done-check .tick   { stroke-dasharray: 14; stroke-dashoffset: 14; animation: fb-done-check-draw 300ms ease-out 300ms forwards; }
.fb-done-check.replay .circle { animation: fb-done-circle-draw 400ms ease-out forwards; }
.fb-done-check.replay .tick   { animation: fb-done-check-draw 300ms ease-out 300ms forwards; }

/* ── Shared icon base ── */
.fb-ico { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; color: var(--fb-fg2); }
.fb-ico.lg { width: 28px; height: 28px; }
.fb-ico.xl { width: 40px; height: 40px; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .fb-listen-chain .r1, .fb-listen-chain .r2, .fb-listen-chain .r3,
  .fb-listen-verify .r1, .fb-listen-verify .r2, .fb-listen-verify .r3,
  .fb-otp-transit .pkt,
  .fb-rate-timer .ring,
  .fb-refresh-value.tick, .fb-refresh-value.tick .d,
  .fb-compliance-dots span,
  .fb-step-dot.enter,
  .fb-done-check .circle, .fb-done-check .tick,
  .maintenance-icon, .maintenance-dot,
  .compliance-pending-icon { animation: none !important; }
  .fb-done-check .circle, .fb-done-check .tick { stroke-dashoffset: 0; }
  .fb-otp-transit .pkt { opacity: 1; transform: translateX(13px); }
  .step-dot, .step-label { transition: none !important; }
}

body.fb-reduced .fb-listen-chain .r1, body.fb-reduced .fb-listen-chain .r2, body.fb-reduced .fb-listen-chain .r3,
body.fb-reduced .fb-listen-verify .r1, body.fb-reduced .fb-listen-verify .r2, body.fb-reduced .fb-listen-verify .r3,
body.fb-reduced .fb-otp-transit .pkt,
body.fb-reduced .fb-rate-timer .ring,
body.fb-reduced .fb-compliance-dots span,
body.fb-reduced .fb-step-dot.enter,
body.fb-reduced .fb-done-check .circle,
body.fb-reduced .fb-done-check .tick { animation: none !important; }
body.fb-reduced .fb-done-check .circle, body.fb-reduced .fb-done-check .tick { stroke-dashoffset: 0; }
body.fb-reduced .fb-otp-transit .pkt { opacity: 1; transform: translateX(13px); }
body.fb-reduced .step-dot, body.fb-reduced .step-label { transition: none !important; }

/* ──────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 56px 48px 72px;
  }
  .widget,
  .maintenance-banner {
    width: 100%;
    max-width: 560px;
  }
}

@media (max-width: 768px) {
  .site-header     { padding: 18px 24px; }
  .hero            { padding: 48px 24px 64px; }
  #how-it-works    { padding: 56px 24px; }
  #faq             { padding: 56px 24px; }
  .site-footer {
    padding: 32px 24px;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
  }
  .footer-brand {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: none;
  }
  .footer-end {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 12px;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
  }
  .footer-right {
    opacity: 0.55;
    font-size: 0.66rem;
  }
  .site-nav        { gap: 20px; }

  /* How it works → vertical timeline on mobile (no orphan rows) */
  .section-eyebrow { margin-bottom: 32px; }
  .steps-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 520px;
  }
  .how-step {
    padding: 0 0 0 20px;
  }
  /* Horizontal orange dash becomes a vertical connector line down the left */
  .how-step::before {
    width: 1px;
    height: auto;
    margin: 0;
    position: absolute;
    left: 0;
    top: 0;
    bottom: -28px;
    background: var(--fb-signal-border);
  }
  .how-step:last-child::before { bottom: 0; }
  .how-step-num   { margin-bottom: 8px; }
  .how-step-title { margin-bottom: 6px; }
}

@media (max-width: 480px) {
  .widget          { padding: 28px 20px; }
  h1               { letter-spacing: 0.06em; }
  .step-indicator  { gap: 4px; }
  .step-label      { font-size: 0.56rem; letter-spacing: 0.12em; }
}

/* ── Discount code row — single bordered container with internal divider ── */
.referral-toggle-wrap {
  margin-top: 24px;
  margin-bottom: 24px;
}

.referral-input-row {
  display: flex;
  gap: 0;
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-input);
  overflow: hidden;
  height: 40px;
  transition: border-color 200ms ease;
}
.referral-input-row:focus-within { border-color: var(--fb-signal); }
.referral-input-row:has(.referral-code-input.is-valid)   { border-color: var(--fb-success); }
.referral-input-row:has(.referral-code-input.is-invalid) { border-color: var(--fb-danger); }

input.referral-code-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: var(--fb-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fb-fg1);
  height: 100%;
  padding: 0 14px;
  outline: none;
}
.referral-code-input::placeholder {
  color: var(--fb-fg4);
  letter-spacing: 0.14em;
}
.referral-code-input:focus { border: none; outline: none; box-shadow: none; }
.referral-code-input.is-valid,
.referral-code-input.is-invalid { border: none; }

.btn-referral-apply {
  width: 78px;
  background: transparent;
  border: none;
  border-left: 1px solid var(--fb-border);
  color: var(--fb-fg2);
  font-family: inherit;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 0;
  height: 100%;
  cursor: pointer;
  transition: var(--fb-transition);
}
.btn-referral-apply:hover    { background: var(--fb-bg3); color: var(--fb-fg1); }
.btn-referral-apply:disabled { opacity: 0.45; cursor: not-allowed; }

.referral-feedback {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
}
.referral-feedback.is-valid   { color: var(--fb-success, #16a34a); }
.referral-feedback.is-invalid { color: var(--fb-danger, #dc2626); }

/* Referral discount in Step 2 fee row */
.fee-original {
  color: var(--fb-fg3);
  text-decoration: line-through;
  margin-right: 6px;
  font-size: 0.92em;
}
.fee-discount-label {
  display: block;
  font-size: 11px;
  color: var(--fb-fg3);
  margin-top: 1px;
  font-style: italic;
}

/* ──────────────────────────────────────────
   NOTIFICATION COMPONENT — two types only:
     .notif-info    neutral / informational
     .notif-action  amber / user must act
   ────────────────────────────────────────── */
.notif {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--fb-radius-input);
  width: 100%;
  margin: 8px 0;
  box-sizing: border-box;
  font-size: 0.76rem;
  line-height: 1.45;
  border: 1px solid;
}
.notif-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}
.notif-icon svg { width: 14px; height: 14px; display: block; }
.notif-body { flex: 1; min-width: 0; }
.notif-title {
  font-weight: 500;
  margin-bottom: 1px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.notif-sub { line-height: 1.45; }

/* Info — neutral surface (used for waiting / informational states) */
.notif-info {
  background: var(--fb-bg3);
  border-color: var(--fb-border-faint);
  color: var(--fb-fg2);
}
.notif-info .notif-title { color: var(--fb-fg1); }
.notif-info .notif-sub   { color: var(--fb-fg2); }

/* Action — amber, user must act */
.notif-action {
  background: var(--fb-signal-fill);
  border-color: var(--fb-signal-border);
  color: #8a5410;
}
.notif-action .notif-title { color: #633806; }
.notif-action .notif-sub   { color: #854F0B; }

/* Danger — red, critical / hard error */
.notif-danger {
  background: var(--fb-danger-fill);
  border-color: var(--fb-danger-border);
  color: var(--fb-danger);
}
.notif-danger .notif-title { color: var(--fb-danger); }
.notif-danger .notif-sub   { color: var(--fb-danger); }

/* Success — green, positive informational (e.g. "Code sent") */
.notif-success {
  background: var(--fb-success-fill);
  border-color: var(--fb-success-border);
  color: var(--fb-success);
}
.notif-success .notif-title { color: var(--fb-success); }
.notif-success .notif-sub   { color: var(--fb-success); }

/* Pending dots (used inside info type) */
.notif-dots {
  display: inline-flex;
  gap: 3px;
  vertical-align: middle;
  margin-left: 4px;
}
.notif-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--fb-fg3);
  animation: notif-pulse 1.2s ease-in-out infinite;
}
.notif-dot:nth-child(2) { animation-delay: 0.2s; }
.notif-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes notif-pulse {
  0%,80%,100% { opacity:.2; transform:scale(.8); }
  40%         { opacity:1;  transform:scale(1); }
}

/* ──────────────────────────────────────────
   ACTION ZONE — fixed-height layout below summary card
   ────────────────────────────────────────── */
.action-zone {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.notif-slot {
  min-height: 88px;
  display: flex;
  align-items: center;
}

/* Invisible but still occupies space when empty */
.notif-slot:empty { visibility: hidden; }

/* Notification inside slot: no extra margin, full width */
.notif-slot .notif {
  margin: 0;
  width: 100%;
}

.btn-slot { min-height: 52px; }

/* Space is held; content invisible */
.btn-slot.empty { visibility: hidden; }

#btn-accept-order {
  width: 100%;
  height: 52px;
}

/* Address input slot — reserves vertical space, fades when hidden */
.address-slot {
  min-height: 80px;
  overflow: hidden;
  transition: opacity 0.2s ease;
}
