:root {
  --fp-primary: #1a5cff;
  --fp-primary-dark: #0d3fb8;
  --fp-primary-soft: #eaf1ff;
  --fp-ink: #0f172a;
  --fp-muted: #64748b;
  --fp-line: #e8ecf2;
  --fp-bg: #f4f6fa;
  --fp-bg-warm: #f7f8fb;
  --fp-surface: #ffffff;
  --fp-success: #12b76a;
  --fp-success-soft: #ecfdf3;
  --fp-danger: #f04438;
  --fp-danger-soft: #fef3f2;
  --fp-warning: #f79009;
  --fp-radius: 14px;
  --fp-radius-sm: 10px;
  --fp-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px rgba(15, 23, 42, 0.05);
  --fp-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --fp-font: "DM Sans", "Segoe UI", sans-serif;
  --fp-display: "Fraunces", Georgia, serif;
  --fp-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--fp-font);
  color: var(--fp-ink);
  background:
    radial-gradient(1100px 520px at -5% -10%, rgba(26, 92, 255, 0.09), transparent 58%),
    radial-gradient(800px 420px at 105% 5%, rgba(26, 92, 255, 0.04), transparent 52%),
    linear-gradient(180deg, #f8faff 0%, var(--fp-bg) 42%, #f3f5f9 100%);
  min-height: 100vh;
  line-height: 1.55;
  letter-spacing: -0.011em;
}
a { color: var(--fp-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, .btn { font-family: inherit; cursor: pointer; }

@keyframes fp-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fp-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.fp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: var(--fp-radius-sm);
  padding: 0.72rem 1.2rem;
  font-weight: 600;
  font-size: 0.94rem;
  transition: transform 0.18s var(--fp-ease), background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.fp-btn:active { transform: translateY(1px); }
.fp-btn-primary {
  background: var(--fp-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 92, 255, 0.22);
}
.fp-btn-primary:hover {
  background: var(--fp-primary-dark);
  text-decoration: none;
  color: #fff;
  box-shadow: 0 6px 18px rgba(26, 92, 255, 0.28);
  transform: translateY(-1px);
}
.fp-btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--fp-ink);
  border: 1px solid var(--fp-line);
}
.fp-btn-ghost:hover {
  background: #fff;
  border-color: #d0d7e2;
  text-decoration: none;
}
.fp-btn-danger {
  background: var(--fp-danger-soft);
  color: var(--fp-danger);
  border: none;
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
}
.fp-btn-danger:hover { filter: brightness(0.98); text-decoration: none; }
.fp-btn:disabled, .fp-btn.is-disabled {
  background: #e4e7ec;
  color: #98a2b3;
  box-shadow: none;
  pointer-events: none;
  transform: none;
}

.fp-input, .fp-select, .fp-textarea {
  width: 100%;
  border: 1px solid var(--fp-line);
  border-radius: var(--fp-radius-sm);
  padding: 0.72rem 0.9rem;
  font: inherit;
  background: #fff;
  color: var(--fp-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fp-input:hover, .fp-select:hover, .fp-textarea:hover {
  border-color: #d0d5dd;
}
.fp-input:focus, .fp-select:focus, .fp-textarea:focus {
  outline: none;
  border-color: var(--fp-primary);
  box-shadow: 0 0 0 3px rgba(26, 92, 255, 0.14);
}
.fp-input::placeholder, .fp-textarea::placeholder { color: #98a2b3; }
.fp-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--fp-muted);
  margin-bottom: 0.4rem;
}
.fp-field { margin-bottom: 1.1rem; }
.fp-error { color: var(--fp-danger); font-size: 0.85rem; margin-top: 0.25rem; }

.fp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
}
.fp-badge-success { background: var(--fp-success-soft); color: #027a48; }
.fp-badge-danger { background: var(--fp-danger-soft); color: #b42318; }
.fp-badge-pending { background: #fffaeb; color: #b54708; }
.fp-badge-live { background: var(--fp-success-soft); color: #027a48; }
.fp-badge-test { background: #fffaeb; color: #b54708; }
.fp-badge-owner { background: #f63d68; color: #fff; letter-spacing: 0.04em; }
.fp-badge-new {
  display: inline-flex;
  align-items: center;
  background: var(--fp-primary-soft);
  color: var(--fp-primary);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.1rem 0.38rem;
  border-radius: 999px;
  margin-left: 0.35rem;
}
.fp-badge .fp-check { margin-left: 0.2rem; font-size: 0.72rem; }

.fp-messages { list-style: none; padding: 0; margin: 0 0 1.15rem; }
.fp-messages li {
  padding: 0.8rem 1.05rem;
  border-radius: var(--fp-radius-sm);
  margin-bottom: 0.5rem;
  background: var(--fp-primary-soft);
  color: var(--fp-primary-dark);
  font-size: 0.92rem;
  animation: fp-fade 0.35s var(--fp-ease) both;
}
.fp-messages li.error { background: var(--fp-danger-soft); color: #b42318; }
.fp-messages li.success { background: var(--fp-success-soft); color: #027a48; }

.fp-landing {
  --fp-land-ink: #0c1222;
  --fp-land-muted: #5b6578;
  --fp-land-sea: #0e7a6b;
  --fp-land-wash: #eef4f1;
  --fp-landing-nav-space: 5rem;
  --fp-nav-t: 0.38s;
  min-height: 100vh;
  color: var(--fp-land-ink);
  background:
    radial-gradient(900px 480px at 8% -8%, rgba(26, 92, 255, 0.14), transparent 58%),
    radial-gradient(720px 420px at 92% 4%, rgba(14, 122, 107, 0.11), transparent 55%),
    radial-gradient(600px 360px at 50% 28%, rgba(255, 255, 255, 0.65), transparent 70%),
    linear-gradient(180deg, #f5f8f7 0%, var(--fp-land-wash) 42%, #e8eef6 100%);
  overflow-x: clip;
  padding-top: var(--fp-landing-nav-space);
}
.fp-landing-nav {
  --fp-nav-pad-y: 1.15rem;
  --fp-nav-mark: 36px;
  --fp-nav-word: 1.05rem;
  --fp-nav-btn-pad-y: 0.62rem;
  --fp-nav-btn-pad-x: 1.1rem;
  --fp-nav-btn-size: 0.92rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition:
    background var(--fp-nav-t) var(--fp-ease),
    border-color var(--fp-nav-t) ease,
    box-shadow var(--fp-nav-t) var(--fp-ease),
    backdrop-filter var(--fp-nav-t) ease,
    -webkit-backdrop-filter var(--fp-nav-t) ease;
}
.fp-landing-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem 1.25rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--fp-nav-pad-y) 1.5rem;
  transition:
    padding var(--fp-nav-t) var(--fp-ease),
    gap var(--fp-nav-t) var(--fp-ease);
}
.fp-landing-nav-brand {
  gap: 0.7rem;
  min-width: 0;
  flex-shrink: 0;
  transition: gap var(--fp-nav-t) var(--fp-ease);
}
.fp-landing-nav-brand .fp-mark {
  width: var(--fp-nav-mark);
  height: var(--fp-nav-mark);
  font-size: calc(var(--fp-nav-mark) * 0.24);
  transition:
    width var(--fp-nav-t) var(--fp-ease),
    height var(--fp-nav-t) var(--fp-ease),
    font-size var(--fp-nav-t) var(--fp-ease),
    box-shadow var(--fp-nav-t) ease;
}
.fp-landing-nav-wordmark {
  font-size: var(--fp-nav-word);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fp-land-ink);
  transition: font-size var(--fp-nav-t) var(--fp-ease);
}
.fp-landing-nav-links {
  --fp-nav-link-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent, #000 0.4rem, #000 calc(100% - 0.4rem), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 0.4rem, #000 calc(100% - 0.4rem), transparent);
}
.fp-landing-nav-links::-webkit-scrollbar { display: none; }
.fp-landing-nav-links a {
  flex-shrink: 0;
  font-size: var(--fp-nav-link-size);
  font-weight: 560;
  letter-spacing: -0.015em;
  color: rgba(15, 23, 42, 0.72);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.2rem 0;
  border-bottom: 1.5px solid transparent;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    font-size var(--fp-nav-t) var(--fp-ease);
}
.fp-landing-nav-links a:hover,
.fp-landing-nav-links a:focus-visible {
  color: var(--fp-land-ink, var(--fp-ink));
  text-decoration: none;
  border-bottom-color: rgba(26, 92, 255, 0.45);
}
.fp-landing-nav-links a:focus-visible {
  outline: 2px solid var(--fp-primary);
  outline-offset: 3px;
  border-radius: 2px;
}
.fp-landing-nav-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
  transition: gap var(--fp-nav-t) var(--fp-ease);
}
.fp-landing-nav-actions .fp-btn {
  padding: var(--fp-nav-btn-pad-y) var(--fp-nav-btn-pad-x);
  font-size: var(--fp-nav-btn-size);
  white-space: nowrap;
  transition:
    transform 0.18s var(--fp-ease),
    background 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    padding var(--fp-nav-t) var(--fp-ease),
    font-size var(--fp-nav-t) var(--fp-ease);
}
.fp-landing-nav-login:focus-visible,
.fp-landing-nav-cta:focus-visible {
  outline: 2px solid var(--fp-primary);
  outline-offset: 2px;
}
.fp-landing-nav-login:hover,
.fp-landing-nav-login:active {
  text-decoration: none;
}
.fp-landing-nav-cta:hover,
.fp-landing-nav-cta:active {
  text-decoration: none;
}

/* Compact / scrolled: shorter bar, frosted surface, softer mark */
.fp-landing-nav.is-scrolled,
.fp-landing-nav.fp-nav--compact {
  --fp-nav-pad-y: 0.55rem;
  --fp-nav-mark: 30px;
  --fp-nav-word: 0.92rem;
  --fp-nav-btn-pad-y: 0.42rem;
  --fp-nav-btn-pad-x: 0.9rem;
  --fp-nav-btn-size: 0.84rem;
  background: rgba(255, 255, 255, 0.78);
  border-bottom-color: rgba(15, 23, 42, 0.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 8px 28px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(14px) saturate(1.35);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
}
.fp-landing-nav.is-scrolled .fp-landing-nav-brand,
.fp-landing-nav.fp-nav--compact .fp-landing-nav-brand {
  gap: 0.55rem;
}
.fp-landing-nav.is-scrolled .fp-landing-nav-brand .fp-mark,
.fp-landing-nav.fp-nav--compact .fp-landing-nav-brand .fp-mark {
  box-shadow: 0 3px 10px rgba(26, 92, 255, 0.18);
}
.fp-landing-nav.is-scrolled .fp-landing-nav-actions,
.fp-landing-nav.fp-nav--compact .fp-landing-nav-actions {
  gap: 0.4rem;
}
.fp-landing-nav.is-scrolled .fp-landing-nav-links,
.fp-landing-nav.fp-nav--compact .fp-landing-nav-links {
  --fp-nav-link-size: 0.82rem;
  gap: 0.1rem 0.95rem;
}
.fp-landing-nav.is-scrolled .fp-landing-nav-links a,
.fp-landing-nav.fp-nav--compact .fp-landing-nav-links a {
  color: rgba(15, 23, 42, 0.78);
}

/* Anchor targets clear the fixed nav */
.fp-landing [id="how-it-works"],
.fp-landing [id="payments"],
.fp-landing [id="developers"],
.fp-landing [id="get-started"],
.fp-landing [id="contact"],
.fp-landing [id="collect"],
.fp-landing [id="hold"],
.fp-landing [id="move"] {
  scroll-margin-top: calc(var(--fp-landing-nav-space) + 0.75rem);
}

@media (prefers-reduced-motion: reduce) {
  .fp-landing {
    --fp-nav-t: 0.01ms;
  }
}
.fp-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  color: var(--fp-ink);
  text-decoration: none;
}
.fp-brand:hover { text-decoration: none; }
.fp-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #3b82f6, #1a5cff 55%, #0d3fb8);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 6px 16px rgba(26, 92, 255, 0.22);
  flex-shrink: 0;
}
.fp-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 3.5rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  position: relative;
}
@media (min-width: 920px) {
  .fp-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: calc(100vh - var(--fp-landing-nav-space));
    padding-top: 1.5rem;
    padding-bottom: 4rem;
    gap: 3rem;
  }
}
.fp-hero-copy {
  position: relative;
  z-index: 1;
  animation: fp-rise 0.7s var(--fp-ease) both;
}
.fp-hero-brand {
  display: block;
  font-family: var(--fp-display);
  font-size: clamp(3rem, 8vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--fp-land-ink);
  margin: 0 0 1.1rem;
}
.fp-hero h1 {
  font-family: var(--fp-font);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  color: var(--fp-land-ink);
  max-width: 22rem;
}
.fp-hero-lead {
  color: var(--fp-land-muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 28rem;
  margin: 0;
}
.fp-hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}
.fp-hero-plane {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  min-height: clamp(300px, 52vh, 460px);
  border-radius: 0;
  margin-inline: -1.5rem;
  padding: 1.75rem 1rem 2rem;
  background:
    radial-gradient(ellipse 80% 70% at 30% 20%, rgba(120, 190, 255, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 50% at 78% 78%, rgba(14, 122, 107, 0.35), transparent 50%),
    linear-gradient(155deg, #0a2f8a 0%, #1a5cff 42%, #0c5c52 100%);
  color: #fff;
  overflow: hidden;
  animation: fp-rise 0.85s var(--fp-ease) 0.1s both;
}
@media (min-width: 920px) {
  .fp-hero-plane {
    margin-inline: 0;
    margin-right: calc(-1 * max(0px, (100vw - 1120px) / 2));
    border-radius: 28px 0 0 28px;
    min-height: min(70vh, 520px);
    padding: 2rem 1.5rem 2.5rem;
  }
}
.fp-hero-plane-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
  animation: fp-land-drift 10s ease-in-out infinite alternate;
  pointer-events: none;
}
/* Phone + orbit share one stage; flat stacking so front arc can paint over the device */
.fp-hero-orbit-stage {
  position: relative;
  z-index: 1;
  width: min(100%, clamp(420px, 92%, 520px));
  aspect-ratio: 1;
  max-height: 520px;
  margin: auto;
  display: grid;
  place-items: center;
  perspective: 1100px;
  perspective-origin: 50% 42%;
}
/* Large faint halo — scale cue behind everything */
.fp-hero-orbit-halo {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  transform: rotate(-12deg);
  pointer-events: none;
  box-sizing: border-box;
}
.fp-hero-orbit-halo::before {
  content: "";
  position: absolute;
  inset: -7%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}
/* Outer halo: slowly rotating method tokens + fintech icons */
.fp-hero-halo-track {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transform: rotate(-12deg);
}
.fp-hero-halo-spin {
  position: absolute;
  inset: 0;
  transform-origin: center center;
  animation: fp-land-orbit-spin 64s linear infinite;
}
.fp-hero-halo-node {
  position: absolute;
  inset: 0;
  transform: rotate(var(--a));
}
.fp-hero-halo-tok,
.fp-hero-halo-ico {
  position: absolute;
  left: 50%;
  top: -1px;
  display: grid;
  place-items: center;
  margin-left: -11px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-style: normal;
  font-weight: 800;
  font-size: 0.5rem;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(8, 32, 78, 0.42);
  border: 1px solid rgba(180, 220, 255, 0.32);
  box-shadow: 0 0 10px rgba(120, 200, 255, 0.16);
  /* Keep glyphs upright while the track spins */
  animation: fp-land-orbit-spin 64s linear infinite reverse;
}
.fp-hero-halo-tok:nth-of-type(1),
.fp-hero-halo-node:nth-child(1) .fp-hero-halo-tok {
  background: linear-gradient(145deg, rgba(255, 138, 61, 0.85), rgba(232, 93, 4, 0.75));
  border-color: rgba(255, 200, 150, 0.45);
}
.fp-hero-halo-node:nth-child(3) .fp-hero-halo-tok {
  background: linear-gradient(145deg, rgba(56, 140, 255, 0.9), rgba(26, 92, 255, 0.8));
  border-color: rgba(180, 210, 255, 0.5);
}
.fp-hero-halo-node:nth-child(5) .fp-hero-halo-tok {
  background: linear-gradient(145deg, rgba(45, 212, 168, 0.85), rgba(14, 122, 107, 0.8));
  border-color: rgba(160, 230, 210, 0.45);
}
.fp-hero-halo-ico--wallet {
  background: rgba(8, 32, 78, 0.42);
}
.fp-hero-halo-ico--wallet::before {
  content: "";
  width: 10px;
  height: 7px;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  border-radius: 2px;
  box-sizing: border-box;
}
.fp-hero-halo-ico--wallet::after {
  content: "";
  position: absolute;
  right: 5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}
.fp-hero-halo-ico--shield {
  background: rgba(8, 32, 78, 0.42);
}
.fp-hero-halo-ico--shield::before {
  content: "";
  width: 8px;
  height: 9px;
  background: rgba(120, 200, 255, 0.28);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-sizing: border-box;
  clip-path: polygon(50% 0, 100% 16%, 100% 58%, 50% 100%, 0 58%, 0 16%);
}
/* Mid data-stream: dashed ring + packet dots */
.fp-hero-orbit-stream {
  position: absolute;
  z-index: 0;
  width: 88%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  margin: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(180, 220, 255, 0.34);
  border-top-color: rgba(255, 255, 255, 0.12);
  border-right-color: rgba(14, 122, 107, 0.28);
  border-bottom-color: rgba(180, 220, 255, 0.22);
  box-sizing: border-box;
  transform: translate(-50%, -50%) rotate(-12deg);
  transform-origin: center center;
  pointer-events: none;
  opacity: 0.85;
  animation: fp-land-orbit-spin 48s linear infinite reverse;
}
.fp-hero-stream-pkt {
  position: absolute;
  inset: 0;
  transform: rotate(var(--a));
}
.fp-hero-stream-pkt::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 6px 1px rgba(120, 200, 255, 0.55),
    0 0 12px 3px rgba(14, 122, 107, 0.22);
}
.fp-hero-stream-pkt:nth-child(odd)::before {
  width: 4px;
  height: 4px;
  margin-left: -2px;
  top: -2px;
  background: rgba(180, 230, 220, 0.95);
  box-shadow: 0 0 8px 2px rgba(14, 122, 107, 0.35);
}
.fp-hero-stream-pkt:nth-child(3)::before {
  width: 9px;
  height: 3px;
  margin-left: -4.5px;
  top: -1px;
  border-radius: 2px;
  background: rgba(180, 210, 255, 0.85);
  box-shadow: 0 0 8px 1px rgba(120, 200, 255, 0.4);
}
/* Sparse fintech chips — fixed anchors on the outer halo (behind phone) */
.fp-hero-orbit-chips {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transform: rotate(-12deg);
}
.fp-hero-orbit-chip {
  position: absolute;
  inset: 0;
  transform: rotate(var(--chip-a));
  animation: fp-orbit-chip-fade 7.5s ease-in-out infinite;
  font-size: 0;
  color: transparent;
}
.fp-hero-orbit-chip::after {
  content: attr(data-chip);
  position: absolute;
  left: 50%;
  top: -2px;
  transform: translateX(-50%) rotate(calc(-1 * var(--chip-a) + 12deg));
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  padding: 0.22rem 0.48rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  background: rgba(8, 28, 72, 0.28);
  box-shadow: 0 0 12px rgba(120, 200, 255, 0.12);
  white-space: nowrap;
}
.fp-hero-orbit-chip--ussd {
  --chip-a: -54deg;
  animation-delay: 0.4s;
}
.fp-hero-orbit-chip--ussd::after { content: "USSD"; }
.fp-hero-orbit-chip--api {
  --chip-a: 62deg;
  animation-delay: 2.6s;
}
.fp-hero-orbit-chip--api::after { content: "API"; }
.fp-hero-orbit-chip--sle {
  --chip-a: 148deg;
  animation-delay: 4.8s;
}
.fp-hero-orbit-chip--sle::after { content: "SLE"; }
/*
  Portal ring: diameter cuts through the phone so the stroke crosses the bezel.
  Split into back (z1) / front (z3) so the lower arc reads as a halo through the device.
*/
.fp-hero-plane-orbit {
  position: absolute;
  z-index: 1;
  width: 74%;
  aspect-ratio: 1;
  margin: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  transform-origin: center center;
  pointer-events: none;
  opacity: 0.92;
  box-sizing: border-box;
}
/* Portal status pips + brand sparks — behind phone where rings cross the device */
.fp-hero-portal-pips {
  position: absolute;
  z-index: 1;
  width: 74%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  pointer-events: none;
}
.fp-hero-portal-arm {
  position: absolute;
  inset: 0;
  transform: rotate(var(--a));
}
.fp-hero-portal-pip {
  position: absolute;
  left: 50%;
  top: -2px;
  transform: translateX(-50%) rotate(calc(-1 * var(--a) + 12deg));
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.18rem 0.42rem;
  border-radius: 6px;
  border: 1px solid rgba(180, 220, 255, 0.3);
  background: rgba(6, 28, 72, 0.42);
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(120, 200, 255, 0.12);
  animation: fp-orbit-chip-fade 8.5s ease-in-out infinite;
}
.fp-hero-portal-pip--live {
  border-color: rgba(45, 212, 168, 0.42);
  background: rgba(6, 40, 60, 0.48);
  padding-left: 0.32rem;
}
.fp-hero-portal-pip--live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2dd4a8;
  box-shadow: 0 0 6px rgba(45, 212, 168, 0.7);
  flex-shrink: 0;
}
.fp-hero-portal-pip--sle {
  animation-delay: 2.2s;
}
.fp-hero-portal-spark {
  position: absolute;
  inset: 0;
  transform: rotate(var(--a));
  pointer-events: none;
}
.fp-hero-portal-spark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 8px 2px rgba(120, 200, 255, 0.35);
  animation: fp-portal-spark-twinkle 3.6s ease-in-out infinite;
}
.fp-hero-portal-spark:nth-child(3)::before { animation-delay: 0.6s; }
.fp-hero-portal-spark:nth-child(4)::before { animation-delay: 1.2s; }
.fp-hero-portal-spark:nth-child(5)::before { animation-delay: 1.8s; }
.fp-hero-portal-spark:nth-child(6)::before { animation-delay: 2.4s; }
/* Top + upper sides stay behind the phone */
.fp-hero-plane-orbit--back {
  z-index: 1;
  clip-path: inset(0 0 48% 0);
}
/* Lower arc + wrapping sides paint over the device (portal rim) */
.fp-hero-plane-orbit--front {
  z-index: 3;
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    0 0 18px rgba(120, 200, 255, 0.18),
    inset 0 0 18px rgba(255, 255, 255, 0.04);
  clip-path: inset(42% 0 0 0);
}
/* Brief transmit ripple when the tip crosses the phone (synced to tip orbit) */
.fp-hero-orbit-ripple {
  position: absolute;
  z-index: 3;
  width: 74%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  margin: 0;
  border-radius: 50%;
  box-sizing: border-box;
  transform: translate(-50%, -50%) rotate(-12deg);
  pointer-events: none;
  border: 1.5px solid transparent;
  opacity: 0;
  animation: fp-orbit-transmit 22s linear 0.85s infinite;
}
/* Tip rides the portal ring; above front arc so it stays on the rim */
.fp-hero-orbit-tip-layer {
  position: absolute;
  z-index: 4;
  width: 74%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  pointer-events: none;
}
/* Tip rides a spinner arm; starts near 6-o'clock then orbits the portal ring */
.fp-hero-orbit-spinner {
  position: absolute;
  inset: 0;
  transform-origin: center center;
  animation: fp-land-orbit-spin 22s linear 0.85s infinite;
}
/* Soft trailing crumbs that fade behind the tip along the ring */
.fp-hero-orbit-crumb {
  position: absolute;
  inset: 0;
  transform: rotate(calc(var(--i) * -12deg));
  pointer-events: none;
  opacity: 0;
  animation: fp-orbit-crumb-in 0.7s ease 1.45s both;
}
.fp-hero-orbit-crumb::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% - 3.5px);
  width: calc(7px - var(--i) * 0.85px);
  height: calc(7px - var(--i) * 0.85px);
  margin-left: calc((7px - var(--i) * 0.85px) / -2);
  border-radius: 50%;
  background: rgba(255, 255, 255, calc(0.55 - var(--i) * 0.1));
  box-shadow:
    0 0 8px 1px rgba(120, 200, 255, calc(0.45 - var(--i) * 0.08)),
    0 0 16px 4px rgba(14, 122, 107, calc(0.18 - var(--i) * 0.03));
  opacity: calc(0.68 - var(--i) * 0.12);
}
.fp-hero-orbit-tip {
  position: absolute;
  left: 50%;
  top: calc(100% - 5px);
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 10px 2px rgba(255, 255, 255, 0.65),
    0 0 22px 6px rgba(120, 200, 255, 0.4);
  /* Grow from near the bezel onto the rim, then stay on path */
  animation: fp-orbit-tip-emerge 1.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Hero phone mock — checkout / payment methods */
.fp-hero-phone {
  position: relative;
  z-index: 2;
  width: min(48%, 248px);
  transform: rotateY(-8deg) rotateX(7deg);
  animation: fp-hero-phone-float 5.5s ease-in-out infinite;
}
/* Soft contact shadow that grounds the phone in the teal plane */
.fp-hero-phone::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -16px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(4, 14, 40, 0.55) 0%, transparent 70%);
  filter: blur(8px);
  z-index: -1;
  pointer-events: none;
}
.fp-hero-phone-frame {
  position: relative;
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(160deg, #1a2336 0%, #0f172a 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 4px 10px rgba(6, 18, 48, 0.2),
    0 22px 48px rgba(6, 18, 48, 0.42),
    0 40px 72px rgba(4, 12, 36, 0.28),
    0 12px 28px rgba(6, 40, 60, 0.22);
}
.fp-hero-phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 8px;
  border-radius: 999px;
  background: #0a0f1a;
  z-index: 2;
}
.fp-hero-phone-screen {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  color: var(--fp-ink);
  padding: 0.55rem 0.7rem 0.85rem;
  min-height: 410px;
  display: flex;
  flex-direction: column;
}
.fp-hero-phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.62rem;
  font-weight: 600;
  color: #334155;
  padding: 0.15rem 0.2rem 0.45rem;
  letter-spacing: 0.02em;
}
.fp-hero-phone-status-icons {
  display: flex;
  align-items: center;
  gap: 0.28rem;
}
.fp-hero-sig,
.fp-hero-wifi,
.fp-hero-batt {
  display: block;
  flex-shrink: 0;
}
.fp-hero-sig {
  width: 10px;
  height: 8px;
  background:
    linear-gradient(#334155, #334155) 0 100% / 2px 3px no-repeat,
    linear-gradient(#334155, #334155) 3px 100% / 2px 5px no-repeat,
    linear-gradient(#334155, #334155) 6px 100% / 2px 7px no-repeat,
    linear-gradient(#334155, #334155) 9px 100% / 2px 8px no-repeat;
}
.fp-hero-wifi {
  width: 11px;
  height: 8px;
  border: 1.5px solid #334155;
  border-color: #334155 transparent transparent;
  border-radius: 50% 50% 0 0;
  box-sizing: border-box;
  position: relative;
}
.fp-hero-wifi::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2px;
  height: 2px;
  margin-left: -1px;
  border-radius: 50%;
  background: #334155;
}
.fp-hero-batt {
  width: 14px;
  height: 8px;
  border: 1.5px solid #334155;
  border-radius: 2px;
  position: relative;
  box-sizing: border-box;
}
.fp-hero-batt::before {
  content: "";
  position: absolute;
  inset: 1.5px;
  right: 3px;
  background: #334155;
  border-radius: 1px;
}
.fp-hero-batt::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 1.5px;
  width: 2px;
  height: 3px;
  background: #334155;
  border-radius: 0 1px 1px 0;
}
.fp-hero-phone-appbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  padding: 0 0.1rem;
}
.fp-hero-phone-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(145deg, #3b82f6, #1a5cff 55%, #0d3fb8);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.fp-hero-phone-appbar strong {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fp-land-ink);
}
.fp-hero-phone-collect {
  background: linear-gradient(145deg, #0a2f8a 0%, #1a5cff 55%, #0e7a6b 120%);
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 8px 20px rgba(26, 92, 255, 0.22);
}
.fp-hero-phone-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}
.fp-hero-phone-amount {
  font-family: var(--fp-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.fp-hero-phone-merchant {
  font-size: 0.68rem;
  opacity: 0.82;
  margin-top: 0.15rem;
}
.fp-hero-phone-pick {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--fp-muted);
  letter-spacing: 0.02em;
}
.fp-hero-phone-methods {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.32rem;
  flex: 1;
}
.fp-hero-phone-methods li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e4e9f0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--fp-land-ink);
  animation: fp-hero-method-in 0.55s var(--fp-ease) both;
}
.fp-hero-phone-methods li:nth-child(1) { animation-delay: 0.35s; }
.fp-hero-phone-methods li:nth-child(2) { animation-delay: 0.45s; }
.fp-hero-phone-methods li:nth-child(3) { animation-delay: 0.55s; }
.fp-hero-phone-methods li:nth-child(4) { animation-delay: 0.65s; }
.fp-hero-phone-methods li:nth-child(5) { animation-delay: 0.75s; }
.fp-hero-phone-methods li:first-child {
  border-color: rgba(26, 92, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(26, 92, 255, 0.12);
}
.fp-hero-method-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  flex-shrink: 0;
}
.fp-hero-method-om { background: linear-gradient(145deg, #ff8a3d, #e85d04); }
.fp-hero-method-af { background: linear-gradient(145deg, #2dd4a8, #0e7a6b); }
.fp-hero-method-qm { background: linear-gradient(145deg, #c084fc, #7c3aed); }
.fp-hero-method-card { background: linear-gradient(145deg, #5b8cff, #1a5cff); }
.fp-hero-method-bank { background: linear-gradient(145deg, #64748b, #334155); }
.fp-hero-card-glyph {
  display: block;
  width: 14px;
  height: 10px;
  border: 1.5px solid #fff;
  border-radius: 2px;
  position: relative;
}
.fp-hero-card-glyph::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 2px;
  height: 2px;
  background: #fff;
}
.fp-hero-bank-glyph {
  display: block;
  width: 12px;
  height: 10px;
  position: relative;
  background:
    linear-gradient(#fff, #fff) 0 100% / 100% 1.5px no-repeat,
    linear-gradient(#fff, #fff) 1.5px 3px / 2px 7px no-repeat,
    linear-gradient(#fff, #fff) 5px 3px / 2px 7px no-repeat,
    linear-gradient(#fff, #fff) 8.5px 3px / 2px 7px no-repeat;
}
.fp-hero-bank-glyph::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 3px solid #fff;
}
.fp-hero-phone-flow {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0.45rem 0.35rem 0.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  border-top: 1px solid #e4e9f0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}
.fp-hero-phone-flow li {
  position: relative;
  flex: 1;
  text-align: center;
}
.fp-hero-phone-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.15rem;
  width: 0.35rem;
  height: 0.35rem;
  border-right: 1.5px solid #cbd5e1;
  border-top: 1.5px solid #cbd5e1;
  transform: translateY(-50%) rotate(45deg);
}
.fp-hero-phone-flow li.is-active {
  color: var(--fp-primary);
}
@keyframes fp-land-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-6%, 8%) scale(1.08); }
}
@keyframes fp-land-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes fp-orbit-tip-emerge {
  from {
    top: 78%;
    opacity: 0;
    transform: scale(0.25);
    box-shadow: none;
  }
  to {
    top: calc(100% - 5px);
    opacity: 1;
    transform: scale(1);
    box-shadow:
      0 0 10px 2px rgba(255, 255, 255, 0.65),
      0 0 22px 6px rgba(120, 200, 255, 0.4);
  }
}
/* Sync with tip orbit: pulse at phone crossings (bottom ~0°, top ~50%) */
@keyframes fp-orbit-transmit {
  0%, 2.5% {
    opacity: 0.85;
    border-color: rgba(180, 220, 255, 0.55);
    box-shadow:
      0 0 0 0 rgba(120, 200, 255, 0.4),
      0 0 20px rgba(14, 122, 107, 0.28);
  }
  10% {
    opacity: 0;
    border-color: transparent;
    box-shadow:
      0 0 0 16px rgba(120, 200, 255, 0),
      0 0 0 transparent;
  }
  10.01%, 49.5% {
    opacity: 0;
    border-color: transparent;
    box-shadow: none;
  }
  50%, 52.5% {
    opacity: 0.65;
    border-color: rgba(180, 220, 255, 0.4);
    box-shadow:
      0 0 0 0 rgba(120, 200, 255, 0.32),
      0 0 14px rgba(14, 122, 107, 0.2);
  }
  60% {
    opacity: 0;
    border-color: transparent;
    box-shadow:
      0 0 0 12px rgba(120, 200, 255, 0),
      0 0 0 transparent;
  }
  60.01%, 100% {
    opacity: 0;
    border-color: transparent;
    box-shadow: none;
  }
}
@keyframes fp-orbit-chip-fade {
  0%, 100% { opacity: 0.22; }
  35%, 55% { opacity: 0.88; }
}
@keyframes fp-orbit-crumb-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fp-portal-spark-twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}
@keyframes fp-hero-phone-float {
  0%, 100% { transform: rotateY(-8deg) rotateX(7deg) translateY(0); }
  50% { transform: rotateY(-8deg) rotateX(7deg) translateY(-8px); }
}
@keyframes fp-hero-method-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .fp-hero-phone {
    animation: none;
    transform: rotateY(-8deg) rotateX(7deg);
  }
  .fp-hero-phone-methods li { animation: none; }
  .fp-hero-orbit-spinner,
  .fp-hero-orbit-tip,
  .fp-hero-orbit-stream,
  .fp-hero-orbit-ripple,
  .fp-hero-orbit-chip,
  .fp-hero-orbit-crumb,
  .fp-hero-halo-spin,
  .fp-hero-halo-tok,
  .fp-hero-halo-ico,
  .fp-hero-portal-pip,
  .fp-hero-portal-spark::before { animation: none; }
  .fp-hero-orbit-tip {
    top: calc(100% - 5px);
    opacity: 1;
    transform: scale(1);
    box-shadow:
      0 0 10px 2px rgba(255, 255, 255, 0.65),
      0 0 22px 6px rgba(120, 200, 255, 0.4);
  }
  .fp-hero-orbit-crumb { display: none; }
  .fp-hero-orbit-stream {
    opacity: 0.4;
    transform: translate(-50%, -50%) rotate(-12deg);
  }
  .fp-hero-orbit-ripple { opacity: 0; }
  .fp-hero-orbit-chip,
  .fp-hero-portal-pip { opacity: 0.6; }
  .fp-hero-portal-spark::before {
    opacity: 0.55;
    transform: none;
  }
}
@media (max-width: 919px) {
  .fp-hero-orbit-stage {
    width: min(100%, clamp(360px, 88%, 460px));
  }
  .fp-hero-phone { width: min(48%, 220px); }
  .fp-hero-phone-screen { min-height: 370px; }
  .fp-hero-orbit-crumb:nth-child(n + 3) { display: none; }
  .fp-hero-orbit-chip--sle { display: none; }
  .fp-hero-orbit-stream { opacity: 0.5; }
  .fp-hero-halo-node:nth-child(5),
  .fp-hero-stream-pkt:nth-child(n + 4),
  .fp-hero-portal-spark:nth-child(n + 5) { display: none; }
}
@media (max-width: 400px) {
  .fp-hero-orbit-stage {
    width: min(100%, clamp(300px, 92%, 380px));
  }
  .fp-hero-phone { width: min(52%, 200px); }
  .fp-hero-phone-screen { min-height: 340px; padding-inline: 0.55rem; }
  .fp-hero-phone-amount { font-size: 1.35rem; }
  .fp-hero-phone-methods { gap: 0.28rem; }
  .fp-hero-phone-methods li { padding: 0.34rem 0.5rem; font-size: 0.68rem; }
  .fp-hero-orbit-crumb:nth-child(n + 2) { display: none; }
  .fp-hero-orbit-chips { display: none; }
  .fp-hero-orbit-stream { opacity: 0.35; }
  .fp-hero-halo-node:nth-child(n + 4),
  .fp-hero-stream-pkt:nth-child(n + 3),
  .fp-hero-portal-spark,
  .fp-hero-portal-pip--sle { display: none; }
}

/* Auth card layout lives in auth.css (login). Register keeps a light shared wrap. */
.fp-auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(800px 400px at 15% 0%, rgba(26, 92, 255, 0.08), transparent 55%),
    #eef1f6;
}
.fp-auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--fp-surface);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--fp-shadow);
  border: none;
  animation: fp-rise 0.5s var(--fp-ease) both;
}
.fp-auth-card h1 {
  font-family: var(--fp-font);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0.75rem 0 0.35rem;
}

.fp-shell { display: flex; min-height: 100vh; }
.fp-sidebar {
  width: 260px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-right: 1px solid var(--fp-line);
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
}
.fp-sidebar .fp-brand {
  margin-bottom: 1.5rem;
  padding: 0 0.35rem;
}
.fp-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 0.9rem;
  border-radius: var(--fp-radius-sm);
  color: var(--fp-muted);
  font-weight: 500;
  margin-bottom: 0.2rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.fp-sidebar nav a:hover { background: rgba(15, 23, 42, 0.04); text-decoration: none; color: var(--fp-ink); }
.fp-sidebar nav a.active {
  background: var(--fp-primary-soft);
  color: var(--fp-primary);
  font-weight: 600;
  box-shadow: none;
}
.fp-sidebar-foot {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--fp-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.fp-sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.fp-sidebar-user strong {
  display: block;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-sidebar-user span {
  color: var(--fp-muted);
  font-size: 0.8rem;
}
.fp-main {
  flex: 1;
  padding: 2rem 1.75rem 3rem;
  max-width: 1100px;
  animation: fp-rise 0.45s var(--fp-ease) both;
}
.fp-page-title {
  font-family: var(--fp-display);
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.fp-page-sub { color: var(--fp-muted); margin: 0 0 1.65rem; font-size: 0.98rem; }
.fp-section-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fp-ink);
}
.fp-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.85rem;
  gap: 1rem;
}
.fp-section-head h2 {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fp-muted);
  margin: 0;
  font-weight: 600;
}
.fp-section-head span { color: var(--fp-muted); font-size: 0.85rem; }

.fp-create-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(26, 92, 255, 0.18);
  background: linear-gradient(105deg, #f3f7ff 0%, #fff 55%);
  border-radius: var(--fp-radius);
  padding: 1.2rem 1.3rem;
  color: inherit;
  margin-bottom: 1.65rem;
  transition: box-shadow 0.2s var(--fp-ease), transform 0.2s var(--fp-ease), border-color 0.2s ease;
}
.fp-create-card:hover {
  text-decoration: none;
  box-shadow: var(--fp-shadow);
  transform: translateY(-2px);
  border-color: rgba(26, 92, 255, 0.32);
}
.fp-create-card .plus {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--fp-primary); color: #fff;
  display: grid; place-items: center; font-size: 1.55rem; font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(26, 92, 255, 0.25);
}
.fp-create-card strong { display: block; font-size: 1.02rem; letter-spacing: -0.01em; }
.fp-create-card .fp-create-sub { color: var(--fp-muted); font-size: 0.9rem; margin-top: 0.15rem; }
.fp-space-list { display: grid; gap: 0.65rem; }
.fp-space-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid transparent;
  border-radius: var(--fp-radius);
  padding: 0.95rem 1.05rem;
  box-shadow: var(--fp-shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.2s var(--fp-ease), transform 0.2s var(--fp-ease);
}
.fp-space-row:hover {
  border-color: rgba(26, 92, 255, 0.2);
  box-shadow: var(--fp-shadow);
  transform: translateY(-1px);
}
.fp-space-row .fp-open {
  opacity: 0;
  font-weight: 600;
  color: var(--fp-primary);
  text-decoration: none;
  transition: opacity 0.15s ease;
  flex-shrink: 0;
}
.fp-space-row:hover .fp-open { opacity: 1; }
.fp-space-row-main {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.fp-space-row-main:hover { text-decoration: none; color: inherit; }
.fp-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; color: #fff; flex-shrink: 0;
}
.fp-space-meta { flex: 1; min-width: 0; }
.fp-space-meta strong { display: block; }
.fp-space-meta span { color: var(--fp-muted); font-size: 0.85rem; word-break: break-all; }

.fp-dash {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  background: transparent;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
}
.fp-dash-main {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
.fp-space-side {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 250, 255, 0.94) 100%);
  border-right: 1px solid rgba(26, 92, 255, 0.06);
  padding: 1.15rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1;
}
.fp-space-side.is-collapsed {
  display: none;
}
.fp-space-side.is-minimal {
  height: auto;
  position: relative;
}
.fp-dash:has(.fp-space-side.is-collapsed) {
  grid-template-columns: 1fr;
}
.fp-side-backdrop {
  display: none;
}
.fp-nav-toggle,
.fp-side-close {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--fp-ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.fp-nav-toggle:hover,
.fp-side-close:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--fp-primary);
}
.fp-side-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}
.fp-side-head-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}
.fp-side-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.fp-side-brand:hover { text-decoration: none; }
.fp-side-brand-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.fp-side-brand-text strong {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-side-brand-text span {
  font-size: 0.72rem;
  color: var(--fp-primary);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.fp-side-leave {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fp-muted);
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
}
.fp-side-leave:hover {
  text-decoration: none;
  color: var(--fp-ink);
  background: rgba(15, 23, 42, 0.04);
}
.fp-mod-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.2rem;
  padding: 0.25rem;
  margin-bottom: 1rem;
  background: rgba(15, 23, 42, 0.035);
  border-radius: 12px;
}
.fp-mod-switch a {
  text-align: center;
  padding: 0.45rem 0.25rem;
  border-radius: 9px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--fp-muted);
  letter-spacing: -0.01em;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.fp-mod-switch a:hover {
  text-decoration: none;
  color: var(--fp-ink);
}
.fp-mod-switch a.active {
  background: #fff;
  color: var(--fp-primary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.fp-side-dev-meta { margin-bottom: 0.75rem; }
.fp-balance {
  background: linear-gradient(145deg, rgba(26, 92, 255, 0.06), rgba(26, 92, 255, 0.02));
  border-radius: var(--fp-radius);
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}
.fp-balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
}
.fp-balance .amt { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.fp-balance .fp-wallet-name,
.fp-wallet-name {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--fp-muted);
  font-size: 0.82rem;
  margin-top: 0.25rem;
}
.fp-linkish {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fp-muted);
  padding: 0.15rem;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.fp-linkish:hover { color: var(--fp-ink); }
.fp-nav-ico {
  width: 1.15rem;
  text-align: center;
  opacity: 0.7;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.fp-side-nav a,
.fp-space-side nav.fp-side-nav a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.58rem 0.8rem;
  border-radius: var(--fp-radius-sm);
  color: var(--fp-muted);
  margin-bottom: 0.1rem;
  font-weight: 500;
  font-size: 0.92rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.fp-side-nav a.active,
.fp-space-side nav.fp-side-nav a.active {
  background: var(--fp-primary-soft);
  color: var(--fp-primary);
  font-weight: 600;
}
.fp-side-nav a:hover,
.fp-space-side nav.fp-side-nav a:hover {
  text-decoration: none;
  color: var(--fp-ink);
  background: rgba(15, 23, 42, 0.04);
}
.fp-side-section {
  margin-top: 1.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 0 0.8rem 0.35rem;
  font-weight: 600;
}
.fp-topbar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.75rem 0.85rem;
  padding: 0.85rem 1.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 5;
  min-width: 0;
}
.fp-topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 140px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}
.fp-topbar-brand:hover { text-decoration: none; }
.fp-topbar-domain {
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--fp-muted);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fp-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
  min-width: 0;
}
.fp-topbar-cta {
  padding: 0.5rem 0.95rem;
  font-size: 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}
.fp-topbar-user { flex-shrink: 0; }
.fp-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.04);
  color: var(--fp-muted);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.fp-icon-btn:hover { background: rgba(15, 23, 42, 0.08); color: var(--fp-ink); text-decoration: none; }
.fp-icon-btn.primary {
  background: var(--fp-primary);
  border-color: var(--fp-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(26, 92, 255, 0.25);
}
.fp-icon-btn.primary:hover { background: var(--fp-primary-dark); color: #fff; }
.fp-icon-btn-sm {
  width: 28px;
  height: 28px;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.fp-icon-btn.is-copied {
  color: var(--fp-primary);
  border-color: #b2ccff;
  background: var(--fp-primary-soft);
}
.fp-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #111827;
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
  max-width: min(90vw, 28rem);
  text-align: center;
  line-height: 1.35;
}
.fp-toast.is-long {
  border-radius: 12px;
  font-weight: 500;
  white-space: normal;
}
.fp-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.fp-topbar-space-id {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 0.2rem 0.35rem 0.2rem 0.75rem;
  max-width: min(360px, 42vw);
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
}
.fp-topbar-space-id .fp-id-label {
  margin-right: 0;
  flex-shrink: 0;
}
.fp-topbar-space-id .fp-mono {
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}
.fp-side-space-id {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  padding: 0.35rem 0.4rem;
  background: var(--fp-bg);
  border-radius: 8px;
}
.fp-side-space-id .fp-mono {
  font-size: 0.72rem;
  color: var(--fp-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.fp-space-id-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.fp-space-id-chip .fp-mono {
  font-size: 0.78rem;
  color: var(--fp-muted);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fp-space-id-name {
  font-size: 0.78rem;
  color: var(--fp-ink);
  font-weight: 600;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fp-space-id-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
}
.fp-url-chip-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}
.fp-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(15, 23, 42, 0.08);
  cursor: pointer;
  font-family: inherit;
  background: transparent;
  color: var(--fp-muted);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.fp-mode-pill:hover {
  background: rgba(15, 23, 42, 0.03);
  color: var(--fp-ink);
}
.fp-mode-pill.live .fp-mode-dot {
  background: var(--fp-primary);
}
.fp-mode-pill.test {
  border-color: rgba(247, 144, 9, 0.25);
  color: #9a6700;
}
.fp-mode-pill.test .fp-mode-dot {
  background: var(--fp-warning);
}
.fp-mode-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.fp-mode-label { letter-spacing: -0.01em; }
.fp-search { flex: 1; max-width: 380px; margin: 0 auto; position: relative; }
.fp-search input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.55rem 1rem 0.55rem 2.35rem;
  background: rgba(15, 23, 42, 0.035);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.fp-search input:focus {
  outline: none;
  background: #fff;
  border-color: rgba(26, 92, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(26, 92, 255, 0.1);
}
.fp-search::before {
  content: "⌕";
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #98a2b3;
  font-size: 0.95rem;
  pointer-events: none;
}
.fp-content {
  padding: 2rem 2rem 3rem;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
  box-sizing: border-box;
  animation: fp-rise 0.4s var(--fp-ease) both;
}
.fp-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem;
}
.fp-filters {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: calc(var(--fp-radius) + 2px);
  padding: 1rem 1.1rem 0.85rem;
  margin-bottom: 1.1rem;
}
.fp-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem 1rem;
  align-items: end;
}
.fp-filters-field { margin-bottom: 0; }
.fp-filters-search { grid-column: span 2; min-width: 0; }
.fp-filters-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.95rem;
}
@media (max-width: 767.98px) {
  .fp-filters-search { grid-column: span 1; }
}
.fp-table-wrap {
  background: rgba(255, 255, 255, 0.88);
  border: none;
  border-radius: calc(var(--fp-radius) + 2px);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  box-shadow: none;
}
.fp-table { width: 100%; border-collapse: collapse; }
.fp-table th, .fp-table td {
  text-align: left; padding: 0.95rem 1.05rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.92rem;
}
.fp-table th {
  color: var(--fp-muted); font-weight: 600; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  background: transparent;
}
.fp-table tbody tr { transition: background 0.12s ease; }
.fp-table tbody tr:hover td { background: rgba(26, 92, 255, 0.025); }
.fp-table tr:last-child td { border-bottom: none; }
.fp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.fp-stat {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.25rem 0;
  box-shadow: none;
  transition: none;
}
.fp-stat:hover {
  box-shadow: none;
  transform: none;
}
.fp-stat span { color: var(--fp-muted); font-size: 0.84rem; font-weight: 500; }
.fp-stat strong {
  display: block;
  font-size: 1.35rem;
  margin-top: 0.25rem;
  letter-spacing: -0.025em;
  font-weight: 700;
}

/* Overview — clean balance + meta, no crowded cards */
.fp-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.fp-overview-head .fp-page-sub { margin-bottom: 0; }
.fp-overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.75rem 2.5rem;
  align-items: end;
  margin-bottom: 2.25rem;
  padding: 1.5rem 0 1.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.fp-overview-kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fp-muted);
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}
.fp-overview-amount {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.fp-overview-amount strong {
  font-family: var(--fp-display);
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.fp-overview-wallet {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.88rem;
  color: var(--fp-muted);
}
.fp-overview-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}
.fp-overview-meta dt {
  margin: 0;
  font-size: 0.78rem;
  color: var(--fp-muted);
  font-weight: 500;
}
.fp-overview-meta dd {
  margin: 0.2rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.fp-masked-amount {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.fp-overview-meta .fp-masked-amount strong {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.fp-stat .fp-masked-amount { margin-top: 0.25rem; }
.fp-stat .fp-masked-amount strong {
  display: block;
  margin-top: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.fp-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.fp-account-card, .fp-account-add {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid transparent;
  border-radius: var(--fp-radius);
  padding: 1.25rem;
  min-height: 140px;
  position: relative;
  box-shadow: none;
  transition: box-shadow 0.2s var(--fp-ease), transform 0.2s var(--fp-ease);
}
.fp-account-card:hover {
  box-shadow: var(--fp-shadow-sm);
  transform: none;
}
.fp-account-card.has-accent {
  box-shadow: inset 3px 0 0 var(--fp-primary);
}
.fp-account-card .fp-acct-name {
  color: inherit;
  font-weight: 600;
}
.fp-account-card .fp-acct-name:hover {
  color: var(--fp-primary);
}
.fp-account-card .fp-account-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}
.fp-account-card .fp-acct-tx-link {
  font-size: 0.82rem;
  font-weight: 600;
}
.fp-acct-id-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  min-width: 0;
}
.fp-acct-id {
  font-size: 0.72rem;
  color: var(--fp-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.fp-acct-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--fp-primary);
  background: color-mix(in srgb, var(--fp-primary) 12%, transparent);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  vertical-align: middle;
}
.fp-check-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  margin-top: 0.35rem;
  cursor: pointer;
}
.fp-account-add {
  border: 1px dashed #c5cdd8;
  display: grid;
  place-items: center;
  color: var(--fp-muted);
  font-size: 2rem;
  width: 100%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}
.fp-account-add:hover {
  border-color: var(--fp-primary);
  color: var(--fp-primary);
  background: var(--fp-primary-soft);
  transform: none;
}
.fp-view-toggle {
  display: inline-flex;
  border: 1px solid var(--fp-line);
  border-radius: 10px;
  overflow: hidden;
}
.fp-view-toggle button, .fp-view-toggle span {
  background: #fff;
  border: none;
  padding: 0.45rem 0.7rem;
  color: var(--fp-muted);
  cursor: default;
}
.fp-view-toggle .active {
  background: var(--fp-primary-soft);
  color: var(--fp-primary);
}
.fp-dev-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .fp-dev-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .fp-dev-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.fp-dev-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid transparent;
  border-radius: var(--fp-radius);
  padding: 1.2rem;
  box-shadow: var(--fp-shadow-sm);
}
.fp-id-box {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.5rem 0 1.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  word-break: break-all;
  box-shadow: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/* Hosted checkout: full-height split. Phone left, form right from 900px. */
.fp-co {
  --fp-co-ink: var(--fp-ink);
  --fp-co-ink-2: var(--fp-primary-dark);
  --fp-co-surface: #eef1f6;
  --fp-co-panel: var(--fp-bg-warm);
  --fp-co-line: var(--fp-line);
  --fp-co-field: #d0d5dd;
  --fp-co-text: var(--fp-ink);
  --fp-co-muted: var(--fp-muted);
  --fp-co-quiet: #98a2b3;
  --fp-co-accent: var(--fp-primary);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(26, 92, 255, 0.1), transparent 55%),
    radial-gradient(700px 360px at 100% 100%, rgba(18, 183, 106, 0.06), transparent 50%),
    #eef1f6;
  color: var(--fp-co-text);
}
.fp-co-card {
  order: 0;
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  background: var(--fp-surface);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  animation: fp-rise 0.45s var(--fp-ease) both;
}
.fp-co-brand {
  order: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 360px;
  padding: 2.15rem 1.75rem;
  background:
    radial-gradient(420px 280px at 70% 20%, rgba(26, 92, 255, 0.08), transparent 60%),
    #f5f7fb;
  text-align: center;
}
.fp-co-brand-stage {
  width: min(100%, 360px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fp-co-brand .fp-auth-art {
  height: 260px;
  max-width: 320px;
  width: 100%;
  margin: 0 auto 1.25rem;
}
.fp-co-brand .fp-auth-art-phone {
  width: 128px;
  height: 210px;
  top: 24px;
}
.fp-co-brand .fp-auth-marketing-title,
.fp-co-brand .fp-auth-marketing-body {
  max-width: 32ch;
}

.fp-co-band {
  padding: 1.2rem 1.4rem 1.15rem;
  color: var(--fp-ink);
  background: var(--fp-surface);
  border-bottom: 1px solid var(--fp-line);
}
.fp-co-band:has(+ .fp-co-receipt) {
  border-bottom: none;
  padding-bottom: 0.35rem;
}
.fp-co-band-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.fp-co-merchant { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.fp-co-logo {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.06);
}
.fp-co-merchant-text { min-width: 0; }
.fp-co-merchant-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.022em;
  overflow-wrap: anywhere;
}
.fp-co-product {
  margin: 0.2rem 0 0;
  display: flex; align-items: flex-start; gap: 0.35rem;
  color: #667085;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
}
.fp-co-product svg { flex-shrink: 0; margin-top: 0.15em; opacity: 0.8; }
.fp-co-band-note {
  margin: 0.55rem 0 0;
  max-width: 46ch;
  color: #667085;
  font-size: 0.84rem;
  line-height: 1.5;
}
.fp-co-close-form { margin: 0; flex-shrink: 0; }
.fp-co-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  padding: 0;
  border: 1px solid var(--fp-line);
  background: #fff;
  color: var(--fp-muted);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.fp-co-close:hover { background: var(--fp-primary-soft); border-color: #d5e2ff; color: var(--fp-primary); }
.fp-co-close:focus-visible { outline: 2px solid var(--fp-primary); outline-offset: 2px; }
.fp-co-due {
  margin-top: 1.15rem;
  display: flex; flex-wrap: wrap;
  align-items: flex-end; justify-content: space-between;
  gap: 0.7rem 1rem;
}
.fp-co-due-label {
  display: block;
  margin-bottom: 0.3rem;
  color: #98a2b3;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fp-co-amount {
  display: block;
  font-size: clamp(2.05rem, 9vw, 2.75rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: var(--fp-ink);
}
.fp-co-currency {
  font-size: 0.4em;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #667085;
  opacity: 1;
  vertical-align: 0.62em;
  margin-right: 0.14em;
}
.fp-co-timer {
  display: inline-flex; align-items: center; gap: 0.4rem;
  max-width: 100%;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid #d7e3ff;
  background: var(--fp-primary-soft);
  color: var(--fp-primary-dark);
  font-size: 0.78rem;
  line-height: 1.25;
}
.fp-co-timer svg { flex-shrink: 0; }
.fp-co-timer-value { color: var(--fp-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.fp-co-timer.is-ended { color: var(--fp-ink); font-weight: 600; background: #f4f6fa; border-color: var(--fp-line); }

.fp-co-receipt {
  margin: 0.2rem 1.4rem 0.15rem;
  padding: 0.72rem 0.85rem;
  background: #fbfcfe;
  border: 1px solid #e7edf5;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.fp-co-items { list-style: none; margin: 0; padding: 0; }
.fp-co-items li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.1rem 0;
}
.fp-co-items li + li { margin-top: 0.6rem; padding-top: 0.65rem; border-top: 1px solid #eef2f6; }
.fp-co-item-main { min-width: 0; }
.fp-co-item-main strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.fp-co-item-main small {
  display: block;
  margin-top: 0.15rem;
  color: #667085;
  font-size: 0.78rem;
  line-height: 1.45;
}
.fp-co-item-qty { color: var(--fp-co-muted); font-size: 0.82rem; font-weight: 500; }
.fp-co-item-total {
  flex-shrink: 0;
  padding-top: 0.05rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--fp-ink);
}

.fp-co-body { flex: 1; padding: 1.15rem 1.4rem 1.4rem; }
.fp-co-heading {
  margin: 0 0 0.65rem;
  color: #667085;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fp-co-options { display: grid; gap: 0.55rem; }
.fp-co-option {
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fp-co-option:not(.is-off):not(.is-open):hover {
  border-color: #c5d4f5;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.fp-co-option.is-open {
  border-color: #b7caf6;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px rgba(26, 92, 255, 0.08);
}
.fp-co-option.is-off { background: #f8f9fb; border-color: transparent; box-shadow: none; }
.fp-co-option.is-off.is-open { background: #fff; border-color: var(--fp-co-line); box-shadow: none; }
.fp-co-method {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  min-height: 58px;
  padding: 0.7rem 0.9rem;
  border-radius: 15px;
  color: var(--fp-co-text);
  text-decoration: none;
}
.fp-co-option.is-open .fp-co-method {
  background: #f4f7ff;
  border-radius: 15px 15px 0 0;
}
a.fp-co-method:hover { text-decoration: none; color: var(--fp-co-text); }
a.fp-co-method:focus-visible { outline: 2px solid var(--fp-primary); outline-offset: -2px; }
.fp-co-method-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--fp-primary-soft);
  color: var(--fp-primary);
  transition: background 0.15s ease, color 0.15s ease;
}
.fp-co-option.is-open .fp-co-method-icon { background: var(--fp-primary); color: #fff; }
.fp-co-option.is-off .fp-co-method-icon { background: #e8ecf2; color: var(--fp-co-quiet); }
.fp-co-method-text { display: flex; flex-direction: column; min-width: 0; }
.fp-co-method-label { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; }
.fp-co-method-text small { margin-top: 0.05rem; color: var(--fp-co-muted); font-size: 0.8rem; line-height: 1.35; }
.fp-co-option.is-off .fp-co-method-label { color: var(--fp-co-muted); font-weight: 500; }
.fp-co-option.is-off.is-open .fp-co-method-text small { display: none; }
.fp-co-radio {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid #c1cad8;
  background: #fff;
  transition: border 0.15s ease;
}
/* Only the method row's own circle: provider circles inside the open option follow their own input. */
.fp-co-option.is-open > .fp-co-method .fp-co-radio { border: 6px solid var(--fp-primary); }
/* Provider choice: the circle appears only on the selected provider. */
.fp-co-provider .fp-co-radio { visibility: hidden; }
.fp-co-provider:has(.fp-co-provider-input:checked) .fp-co-radio { visibility: visible; }
.fp-co-option.is-off:not(.is-open) .fp-co-radio { border-color: #dde2ea; background: transparent; }
.fp-co-option.is-off:not(.is-open) .fp-co-method { min-height: 52px; }
.fp-co-option.is-off:not(.is-open):hover { background: #f4f6fa; }
.fp-co-tag {
  display: none;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e8ecf2;
  color: var(--fp-co-muted);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.fp-co-option.is-off.is-open .fp-co-tag { display: inline-flex; }
.fp-co-stage {
  margin: 0;
  padding: 0.95rem 0.9rem 1.05rem;
  border-top: 1px solid #e4ebf8;
  background: #fff;
  border-radius: 0 0 15px 15px;
}
.fp-co-stage > :last-child { margin-bottom: 0; }
.fp-co-stage-lead { margin: 0 0 0.9rem; color: var(--fp-co-muted); font-size: 0.9rem; line-height: 1.5; }
.fp-co-providers { display: grid; gap: 0.45rem; }
.fp-co-provider {
  position: relative;
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  min-height: 52px;
  margin: 0;
  padding: 0.4rem 0.75rem;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.fp-co-provider:hover { border-color: #c5d4f5; }
.fp-co-provider:has(.fp-co-provider-input:checked) {
  border-color: #b7caf6;
  background: #f4f7ff;
}
.fp-co-provider:has(.fp-co-provider-input:focus-visible) {
  outline: 2px solid var(--fp-primary);
  outline-offset: 2px;
}
.fp-co-provider-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.fp-co-provider:has(.fp-co-provider-input:checked) .fp-co-radio { border: 6px solid var(--fp-primary); }
.fp-co-provider-logo {
  width: 7.5rem;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.fp-co-rail {
  display: block;
  height: 32px;
  width: auto;
  max-width: 7.5rem;
  object-fit: contain;
  object-position: left center;
  background: transparent;
}
.fp-co-provider-logo > .fp-co-logo,
.fp-co-approve-mark > .fp-co-logo {
  display: block;
  width: auto;
  height: 36px;
  max-width: 7.5rem;
  object-fit: contain;
  object-position: left center;
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  flex-shrink: 0;
}
.fp-co-approve-mark > .fp-co-logo {
  object-position: center;
  margin-inline: auto;
  max-width: 10.5rem;
}
.fp-co-provider-logo > .fp-co-logo-afri,
.fp-co-approve-mark > .fp-co-logo-afri {
  box-sizing: border-box;
  background: #111;
  padding: 4px 6px;
  border-radius: 6px;
}
.fp-co-approve-mark:has(> .fp-co-logo) {
  width: auto;
  height: auto;
  min-height: 44px;
}
.fp-co-approve.is-waiting .fp-co-approve-mark:has(> .fp-co-logo)::after {
  border-radius: 12px;
}
.fp-co-provider .fp-provider-mark {
  width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 8px;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  box-shadow: none;
}
.fp-co-provider-name { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; }

.fp-co-form { display: grid; gap: 0.85rem; }
.fp-co .fp-co-form .fp-field { margin-bottom: 0; }
.fp-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.fp-co-form [data-pay-details]:not([hidden]) { display: grid; gap: 1rem; }
.fp-co-confirm[hidden],
[data-pay-details][hidden] { display: none; }
.fp-co-confirm { display: grid; gap: 0.85rem; }
.fp-co-confirm-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.fp-co-confirm .fp-co-stage-lead { margin: 0; }
.fp-co-confirm-list {
  margin: 0;
  border: 1px solid var(--fp-co-line);
  border-radius: 12px;
  overflow: hidden;
}
.fp-co-confirm-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
}
.fp-co-confirm-list > div + div { border-top: 1px solid var(--fp-co-line); }
.fp-co-confirm-list > div:first-child { background: var(--fp-primary-soft); }
.fp-co-confirm-list dt {
  color: var(--fp-co-muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.fp-co-confirm-list dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}
.fp-co-confirm-list dd[data-confirm-amount] {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.fp-co-confirm .fp-co-btn-secondary { width: 100%; }
a.fp-co-btn-secondary {
  text-decoration: none;
  color: var(--fp-co-text);
}
.fp-co .fp-field { margin-bottom: 0.85rem; }
.fp-co .fp-label {
  margin-bottom: 0.4rem;
  color: #344054;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.006em;
  text-transform: none;
}
.fp-co .fp-input,
.fp-co .fp-select {
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background-color: #fbfcfe;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.fp-co .fp-input:hover,
.fp-co .fp-select:hover { border-color: #c5cedb; background-color: #fff; }
.fp-co .fp-input:focus,
.fp-co .fp-select:focus {
  border-color: var(--fp-primary);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(26, 92, 255, 0.16);
}
.fp-co .fp-select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.6rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23667085' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 14px 14px;
}
.fp-co .fp-hint {
  margin: 0.45rem 0 0;
  color: #667085;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.fp-co .fp-hint:empty { display: none; margin: 0; }
.fp-co .fp-btn:focus-visible {
  outline: 2px solid var(--fp-primary);
  outline-offset: 3px;
}
.fp-co .fp-btn:disabled,
.fp-co .fp-btn.is-disabled,
.fp-co .fp-btn-primary:disabled,
.fp-co .fp-btn-primary.is-disabled,
.fp-co .fp-btn-primary:disabled:hover,
.fp-co .fp-btn-primary.is-disabled:hover {
  background: #e7ebf2;
  color: #8b95a7;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}
.fp-co .fp-btn-primary:not(:disabled):not(.is-disabled) {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 6px 16px rgba(26, 92, 255, 0.22);
}
.fp-co .fp-btn-primary:not(:disabled):not(.is-disabled):hover {
  background: var(--fp-primary-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(26, 92, 255, 0.28);
}
.fp-co .fp-btn-primary:not(:disabled):not(.is-disabled):active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(26, 92, 255, 0.2);
}
.fp-co-submit {
  width: 100%;
  min-height: 50px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.012em;
}
.fp-co-btn-secondary {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #e4e7ec;
  background: #fff;
  color: var(--fp-co-text);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.fp-co-btn-secondary:hover { background: #f8f9fb; border-color: #c5cedb; }
.fp-co-btn-secondary:focus-visible { outline: 2px solid var(--fp-primary); outline-offset: 3px; }
.fp-co-fineprint { margin: 0; color: #98a2b3; font-size: 0.78rem; line-height: 1.45; text-align: center; }
.fp-co-form .fp-co-fineprint,
.fp-co-form .fp-co-live { margin: 0; }
.fp-co-form .fp-co-live { justify-self: center; }

.fp-co-empty { padding: 0.6rem 0.25rem 0.1rem; text-align: center; }
.fp-co-empty-icon {
  width: 48px; height: 48px;
  margin: 0 auto 0.85rem;
  border-radius: 14px;
  display: grid; place-items: center;
  background: #eef1f6;
  color: var(--fp-co-muted);
}
.fp-co-empty-title { margin: 0 auto; max-width: 30ch; font-size: 1rem; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
.fp-co-empty-text { margin: 0.4rem auto 0; max-width: 38ch; color: var(--fp-co-muted); font-size: 0.9rem; }
.fp-co-empty-reasons {
  list-style: none;
  display: grid; gap: 0.4rem;
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: var(--fp-co-panel);
  color: var(--fp-co-muted);
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: left;
  overflow-wrap: anywhere;
}
.fp-co-empty-reasons li { position: relative; padding-left: 0.9rem; }
.fp-co-empty-reasons li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #b3bccb;
}
.fp-co-empty-action { margin: 1.1rem 0 0; }

.fp-co-alert {
  margin: 0 0 1rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid #fbd5cf;
  border-radius: 12px;
  background: #fff5f3;
  color: #9a1c12;
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: left;
}
.fp-co-messages { list-style: none; }
.fp-co-messages li + li { margin-top: 0.3rem; }
.fp-co-provider-error { display: flex; align-items: flex-start; gap: 0.7rem; }
.fp-co-provider-error[hidden] { display: none; }
.fp-co-alert-icon {
  width: 22px; height: 22px;
  margin-top: 0.05rem;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  background: #d92d20;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}
.fp-co-provider-error strong { display: block; color: #7a1a12; font-weight: 600; }
.fp-co-provider-error p { margin: 0.2rem 0; overflow-wrap: anywhere; }
.fp-co-provider-error small { display: block; font-size: 0.8rem; opacity: 0.85; }
.fp-co-notice {
  margin: 0 0 1rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid #fce3a8;
  border-radius: 12px;
  background: #fffaeb;
  color: #854a0e;
  font-size: 0.88rem;
}

.fp-co-bank { margin: 0 0 1rem; border: 1px solid var(--fp-co-line); border-radius: 12px; overflow: hidden; }
.fp-co-bank > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0.9rem; font-size: 0.9rem; }
.fp-co-bank > div + div { border-top: 1px solid var(--fp-co-line); }
.fp-co-bank dt { color: var(--fp-co-muted); }
.fp-co-bank dd {
  margin: 0;
  display: flex; align-items: center; justify-content: flex-end; gap: 0.6rem;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}
.fp-co-bank-ref { background: var(--fp-primary-soft); }
.fp-co-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
.fp-co-copy {
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(26, 92, 255, 0.28);
  border-radius: 999px;
  background: #fff;
  color: var(--fp-primary);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.fp-co-copy:hover { background: var(--fp-primary); color: #fff; }
.fp-co-copy:focus-visible { outline: 2px solid var(--fp-primary); outline-offset: 2px; }

.fp-co-back-form { margin: -0.35rem 0 0.15rem; }
.fp-co-back {
  display: inline-flex; align-items: center; gap: 0.2rem;
  margin-left: -0.45rem;
  padding: 0.4rem 0.65rem 0.4rem 0.4rem;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--fp-co-muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.fp-co-back:hover { background: #f4f6fa; color: var(--fp-co-text); }
.fp-co-back:focus-visible { outline: 2px solid var(--fp-primary); outline-offset: 2px; }
.fp-co-approve { padding: 0.35rem 0 0.15rem; text-align: center; }
.fp-co-approve-mark { position: relative; width: 60px; height: 60px; margin: 0.35rem auto 0.85rem; display: grid; place-items: center; }
.fp-co-approve .fp-provider-mark { width: 56px; height: 56px; margin: 0; border-radius: 16px; font-size: 0.95rem; letter-spacing: 0.02em; box-shadow: 0 8px 18px rgba(26, 92, 255, 0.16); }
.fp-co-approve-mark:has(.fp-co-rail) { width: auto; height: auto; min-height: 44px; }
.fp-co-approve .fp-co-rail { height: 40px; max-width: 10.5rem; margin: 0 auto; }
.fp-co-approve.is-waiting .fp-co-approve-mark:has(.fp-co-rail)::after { border-radius: 12px; }
.fp-co .fp-provider-mark.qmoney { background: linear-gradient(135deg, #1b4d9e, #3b7cf0); }
.fp-co-approve.is-waiting .fp-co-approve-mark::after {
  content: "";
  position: absolute; inset: -4px;
  border: 2px solid rgba(26, 92, 255, 0.35);
  border-radius: 20px;
  animation: fp-co-pulse 1.8s ease-out infinite;
}
@keyframes fp-co-pulse {
  from { transform: scale(0.94); opacity: 1; }
  to { transform: scale(1.2); opacity: 0; }
}
.fp-co-approve-provider {
  margin: 0;
  color: #667085;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fp-co-approve-title {
  margin: 0.35rem 0 0.45rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.fp-co-approve-hint {
  margin: 0 auto 1rem;
  max-width: 36ch;
  color: #667085;
  font-size: 0.92rem;
  line-height: 1.5;
}
.fp-co-approve-amount { color: var(--fp-co-text); font-weight: 700; white-space: nowrap; }
.fp-co-approve-note { margin: -0.4rem auto 1rem; color: var(--fp-co-quiet); font-size: 0.8rem; line-height: 1.45; }
.fp-co-approve .fp-co-alert { margin: 0.75rem 0 0.15rem; text-align: left; }
.fp-co-otp-form { width: 100%; max-width: 340px; margin: 0 auto; text-align: left; }
.fp-co-otp-form .fp-label { text-align: center; }
.fp-co .fp-co-otp {
  min-height: 56px;
  padding-left: calc(0.9rem + 0.4em);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.45rem;
  letter-spacing: 0.42em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.fp-co .fp-co-otp::placeholder { color: #c5cddb; letter-spacing: 0.42em; }
.fp-co [data-checkout-progress] {
  display: grid;
  gap: 0;
  margin: 1.05rem auto 0;
  padding: 0.15rem 0.9rem;
  max-width: 100%;
  border: 1px solid #e7edf5;
  border-radius: 12px;
  background: #fbfcfe;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  text-align: left;
}
.fp-co-approve [data-checkout-progress] { width: 100%; max-width: 340px; }
.fp-co [data-checkout-progress] > p {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.58rem 0;
  border-radius: 0;
  background: transparent;
  color: #98a2b3;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.35;
}
.fp-co [data-checkout-progress] > p + p { border-top: 1px solid #eef2f6; }
.fp-co [data-checkout-progress] > p[data-state="pending"]::before,
.fp-co [data-checkout-progress] > p[data-state="done"]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #d0d5dd;
}
.fp-co [data-checkout-progress] > p[data-state="done"] { color: #067647; }
.fp-co [data-checkout-progress] > p[data-state="done"]::before { background: var(--fp-success); }
.fp-co [data-checkout-progress] > p[data-state="active"],
.fp-co [data-checkout-progress] > p.fp-co-live {
  margin: 0;
  padding: 0.58rem 0;
  border-radius: 0;
  background: transparent;
  color: var(--fp-ink);
  font-weight: 600;
}
.fp-co-live {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin: 0.25rem 0 0;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--fp-co-panel);
  color: var(--fp-co-muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.fp-co-live[hidden] { display: none; }
.fp-co-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fp-primary); animation: fp-co-blink 1.4s ease-in-out infinite; }
@keyframes fp-co-blink { 50% { opacity: 0.25; } }

.fp-co-foot {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-top: 1px solid var(--fp-line);
  background: #fff;
  color: var(--fp-co-muted);
  font-size: 0.78rem;
}
.fp-co-foot svg { color: var(--fp-success); }
.fp-co-foot strong { color: var(--fp-co-text); font-weight: 700; }

.fp-co--result { align-items: stretch; }
.fp-co-result { max-width: none; }
.fp-co-result-body { flex: 1; padding: 2.25rem 1.75rem 1.75rem; text-align: center; }
.fp-co-result-icon {
  width: 60px; height: 60px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: grid; place-items: center;
}
.fp-co-result.is-success .fp-co-result-icon { background: var(--fp-success-soft); color: #067647; box-shadow: 0 0 0 8px rgba(18, 183, 106, 0.07); }
.fp-co-result.is-failed .fp-co-result-icon { background: var(--fp-danger-soft); color: #b42318; box-shadow: 0 0 0 8px rgba(240, 68, 56, 0.07); }
.fp-co-result.is-cancelled .fp-co-result-icon { background: #eef1f6; color: var(--fp-co-muted); box-shadow: 0 0 0 8px rgba(12, 26, 58, 0.03); }
.fp-co-result-kicker { margin: 0; color: var(--fp-co-muted); font-size: 0.82rem; font-weight: 600; }
.fp-co-result h1 { margin: 0.2rem 0 0.4rem; font-size: 1.55rem; font-weight: 700; letter-spacing: -0.03em; }
.fp-co-result-amount { margin: 0.25rem 0 0.15rem; font-size: 2rem; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.fp-co-result-sub { margin: 0 auto 0.5rem; max-width: 34ch; color: var(--fp-co-muted); font-size: 0.93rem; overflow-wrap: anywhere; }
.fp-co-result-meta {
  display: inline-flex;
  margin: 0.6rem 0 0.25rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--fp-co-line);
  border-radius: 999px;
  background: var(--fp-co-panel);
  font-size: 0.82rem;
}
.fp-co-result-meta div { display: flex; gap: 0.5rem; }
.fp-co-result-meta dt { color: var(--fp-co-muted); }
.fp-co-result-meta dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.fp-co-result .fp-co-submit { margin-top: 1.25rem; }
.fp-co-result-actions { display: grid; gap: 0.6rem; margin-top: 1.25rem; }
.fp-co-result-actions .fp-co-submit { margin-top: 0; }
.fp-co-result-actions form { margin: 0; }

@media (min-width: 900px) {
  .fp-co {
    flex-direction: row;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }
  .fp-co-brand {
    order: -1;
    flex: 1 1 50%;
    width: 50%;
    min-height: 0;
    align-self: stretch;
  }
  .fp-co-card {
    flex: 1 1 50%;
    width: 50%;
    min-height: 0;
    max-height: 100%;
    overflow: auto;
    border-left: 1px solid var(--fp-line);
  }
}

@media (min-width: 1100px) {
  .fp-co { --fp-co-gutter: max(1.75rem, calc((100% - 34rem) / 2)); }
  .fp-co-band,
  .fp-co-body { padding-inline: var(--fp-co-gutter); }
  .fp-co-receipt { margin-inline: var(--fp-co-gutter); }
  .fp-co-foot { padding-inline: 1.75rem; }
}

@media (max-width: 560px) {
  .fp-co-band { padding: 1rem 1.1rem 1.05rem; }
  .fp-co-band:has(+ .fp-co-receipt) { padding-bottom: 0.2rem; }
  .fp-co-due { margin-top: 1rem; flex-direction: column; align-items: flex-start; gap: 0.65rem; }
  .fp-co-amount { font-size: 2.5rem; }
  .fp-co-receipt { margin-inline: 1.1rem; }
  .fp-co-body { padding: 1rem 1.1rem 1.25rem; }
  .fp-co-stage { padding-inline: 0.85rem; }
  .fp-co-method { padding-inline: 0.85rem; gap: 0.7rem; }
  .fp-co-foot { padding-inline: 1.1rem; }
  .fp-co-approve-title { font-size: 1.25rem; }
  .fp-co-result-body { display: flex; flex-direction: column; justify-content: center; padding: 2rem 1.25rem; }
  .fp-co-result-meta { align-self: center; }
}

.fp-provider-mark {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  background: #111;
  flex-shrink: 0;
  margin: 0 auto 1rem;
}
.fp-provider-mark.orange { background: linear-gradient(135deg, #111 40%, #f97316); color: #fff; }
.fp-provider-mark.afri { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.fp-provider-mark.qmoney { background: linear-gradient(135deg, #1b4d9e, #3b7cf0); }
.fp-provider-mark.card { background: linear-gradient(135deg, #1d4ed8, #60a5fa); }
.fp-provider-mark.wallet { background: linear-gradient(135deg, #6d28d9, #a78bfa); }
.fp-provider-mark.bank { background: linear-gradient(135deg, #334155, #64748b); }
.fp-cell-account {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.fp-cell-account .fp-provider-mark {
  width: 28px;
  height: 28px;
  margin: 0;
  border-radius: 8px;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
}
.fp-cell-account .fp-provider-mark svg {
  display: block;
  width: 16px;
  height: 16px;
}
.fp-provider-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.fp-cell-purpose {
  display: block;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fp-amount { color: var(--fp-primary); font-size: 1.7rem; font-weight: 800; text-align: right; letter-spacing: -0.03em; }

@media (max-width: 900px) {
  .fp-shell { flex-direction: column; }
  .fp-sidebar { width: 100%; height: auto; position: relative; }
  .fp-amount { text-align: left; }
  .fp-overview-hero { grid-template-columns: 1fr; gap: 1.25rem; }
  .fp-overview-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Space chrome: off-canvas sidebar below 992px (phones + tablets) */
@media (max-width: 991.98px) {
  .fp-dash {
    grid-template-columns: 1fr;
  }
  .fp-side-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }
  body.fp-space-nav-open .fp-side-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  body.fp-space-nav-open {
    overflow: hidden;
  }
  .fp-space-side {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(288px, 88vw);
    height: 100vh;
    height: 100dvh;
    max-height: none;
    z-index: 40;
    border-right: 1px solid rgba(26, 92, 255, 0.08);
    border-bottom: none;
    transform: translateX(-105%);
    transition: transform 0.25s var(--fp-ease, ease);
    box-shadow: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .fp-space-side.is-minimal {
    position: fixed;
    height: 100vh;
    height: 100dvh;
  }
  body.fp-space-nav-open .fp-space-side {
    transform: translateX(0);
    box-shadow: 12px 0 40px rgba(15, 23, 42, 0.18);
  }
  .fp-nav-toggle,
  .fp-side-close {
    display: inline-flex;
  }
  .fp-side-nav {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.1rem;
    overflow: visible;
    padding-bottom: 0;
  }
  .fp-side-nav a,
  .fp-space-side nav.fp-side-nav a {
    flex: none;
    white-space: normal;
    margin-bottom: 0.1rem;
    min-height: 44px;
  }
  .fp-side-section { display: block; }
  .fp-mod-switch a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .fp-content { padding: 1.25rem 1rem 2.5rem; }
  .fp-topbar {
    flex-wrap: wrap;
    padding: 0.65rem 0.85rem;
    gap: 0.55rem 0.65rem;
  }
  .fp-topbar-space-id {
    flex: 1 1 0;
    max-width: none;
    order: 0;
    min-width: 0;
  }
  .fp-topbar-actions {
    margin-left: 0;
    flex-shrink: 0;
  }
  .fp-search {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
    width: 100%;
    margin: 0;
  }
  .fp-topbar-cta-label { display: none; }
  .fp-topbar-cta {
    padding: 0.5rem 0.7rem;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .fp-mode-pill { padding: 0.35rem 0.65rem; }
  .fp-page-title { font-size: clamp(1.3rem, 4.5vw, 1.65rem); }
  .fp-page-sub { font-size: 0.9rem; margin-bottom: 1.25rem; }
  .fp-space-row .fp-open { opacity: 1; }
  .fp-space-id-chip .fp-mono { max-width: 120px; }
  .fp-overview-meta { gap: 0.75rem; }
  .fp-overview-meta dd { font-size: 1rem; }
  .fp-id-box-wide {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 0.85rem;
  }
  .fp-id-box-wide .fp-id-value {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.82rem;
  }
  .fp-dev-card { padding: 1.15rem 1.05rem; }
  .fp-toolbar { gap: 0.75rem; }
  .fp-stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; }
  .fp-stat strong { font-size: 1.15rem; }
}

@media (max-width: 575.98px) {
  .fp-topbar-space-id .fp-id-label { display: none; }
  .fp-mode-label { font-size: 0.78rem; }
  .fp-content { padding: 1rem 0.75rem 2.25rem; }
  .fp-overview-meta { grid-template-columns: 1fr; }
  .fp-banner { font-size: 0.8rem; padding: 0.45rem 2.25rem 0.45rem 0.75rem; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .fp-space-side,
  .fp-side-backdrop {
    transition: none;
  }
}

.fp-form-grid { display: grid; gap: 1rem; }
@media (min-width: 720px) {
  .fp-form-grid.two { grid-template-columns: 1fr 1fr; }
}
.fp-panel, .fp-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid transparent;
  border-radius: var(--fp-radius);
  padding: 1.4rem 1.45rem;
  max-width: 640px;
  box-shadow: var(--fp-shadow-sm);
}
.fp-empty { text-align: center; color: var(--fp-muted); padding: 2.75rem 1rem; }
.fp-tabs { display: flex; gap: 1.25rem; border-bottom: 1px solid var(--fp-line); margin-bottom: 1.25rem; }
.fp-tabs a {
  padding: 0.65rem 0;
  color: var(--fp-muted);
  font-weight: 600;
  border-bottom: 2px solid transparent;
}
.fp-tabs a.active { color: var(--fp-primary); border-bottom-color: var(--fp-primary); text-decoration: none; }
.fp-row-edit {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--fp-line);
}
.fp-row-edit:last-child { border-bottom: none; }
.fp-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; }
.fp-banner {
  background: rgba(26, 92, 255, 0.06);
  color: var(--fp-ink);
  text-align: center;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  font-size: 0.86rem;
  position: relative;
  border-bottom: 1px solid rgba(26, 92, 255, 0.08);
}
.fp-banner a { color: var(--fp-primary); font-weight: 600; text-decoration: none; }
.fp-banner a:hover { text-decoration: underline; }
.fp-banner-close {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--fp-muted);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.85;
}
.fp-banner-close:hover { opacity: 1; color: var(--fp-ink); }
.fp-banner[hidden] { display: none; }
.fp-pay-url {
  background: var(--fp-bg);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  word-break: break-all;
  margin: 1rem 0;
}
.fp-table-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.05rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: transparent;
  color: var(--fp-muted);
  font-size: 0.88rem;
}
.fp-table-foot a, .fp-table-foot button {
  background: none;
  border: none;
  color: var(--fp-muted);
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.fp-table-foot a:hover, .fp-table-foot button:hover { color: var(--fp-ink); text-decoration: none; }
.fp-table-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.85rem;
}
.fp-btn-quiet {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid transparent;
  border-radius: var(--fp-radius-sm);
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--fp-ink);
  cursor: pointer;
  box-shadow: var(--fp-shadow-sm);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.fp-btn-quiet:hover { background: #fff; box-shadow: var(--fp-shadow); }
.fp-empty-rich {
  text-align: center;
  padding: 3.25rem 1.5rem;
  color: var(--fp-muted);
}
.fp-empty-rich::before {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(26, 92, 255, 0.2), transparent 60%),
    var(--fp-primary-soft);
  box-shadow: inset 0 0 0 1px rgba(26, 92, 255, 0.08);
}
.fp-empty-rich strong {
  display: block;
  color: var(--fp-ink);
  font-size: 1.08rem;
  letter-spacing: -0.015em;
  margin-bottom: 0.4rem;
}
.fp-empty-rich .fp-btn { margin-top: 1.1rem; }
.fp-callout {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: var(--fp-primary-soft);
  color: var(--fp-primary-dark);
  border-radius: var(--fp-radius);
  padding: 0.9rem 1.05rem;
  margin-bottom: 1.15rem;
  font-size: 0.92rem;
  border: 1px solid rgba(26, 92, 255, 0.08);
}
.fp-callout .ico {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--fp-primary); color: #fff;
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 700;
  flex-shrink: 0;
}
.fp-http {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 0.12rem 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--fp-success-soft);
  color: #027a48;
  margin-right: 0.4rem;
}
.fp-http.get { background: #eff8ff; color: #175cd3; }
.fp-http.post { background: var(--fp-success-soft); color: #027a48; }
.fp-latency {
  display: inline-flex;
  background: var(--fp-success-soft);
  color: #027a48;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  margin-left: 0.35rem;
}
.fp-url-chip {
  display: inline-block;
  background: var(--fp-bg);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fp-event-chip {
  display: inline-flex;
  background: var(--fp-primary-soft);
  color: var(--fp-primary);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.fp-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.fp-metric {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid transparent;
  border-radius: var(--fp-radius);
  padding: 1.05rem 1.1rem;
  min-height: 88px;
  box-shadow: var(--fp-shadow-sm);
}
.fp-metric span {
  display: block;
  color: var(--fp-muted);
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}
.fp-metric .legend {
  display: flex;
  gap: 0.85rem;
  font-size: 0.85rem;
}
.fp-dot-ok::before, .fp-dot-bad::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 0.3rem;
}
.fp-dot-ok::before { background: var(--fp-success); }
.fp-dot-bad::before { background: var(--fp-danger); }
.fp-resource-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}
.fp-resource-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--fp-line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  color: var(--fp-ink);
  font-weight: 600;
  font-size: 0.88rem;
  background: #fff;
}
.fp-resource-pill:hover { background: var(--fp-bg); text-decoration: none; }
.fp-resource-pill.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}
.fp-dev-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid transparent;
  border-radius: var(--fp-radius);
  padding: 1.35rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s var(--fp-ease), transform 0.2s var(--fp-ease);
  display: block;
  box-shadow: var(--fp-shadow-sm);
}
.fp-dev-card:hover {
  box-shadow: var(--fp-shadow);
  transform: translateY(-2px);
  text-decoration: none;
}
.fp-dev-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--fp-primary-soft);
  color: var(--fp-primary);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}
.fp-section-label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fp-muted);
  margin: 1.5rem 0 0.75rem;
  font-weight: 600;
}
.fp-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--fp-ink);
}
.fp-activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fp-activity-list li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--fp-line);
}
.fp-activity-list li:first-child { border-top: none; padding-top: 0.15rem; }
.fp-activity-list .fp-page-sub { margin: 0.15rem 0 0; }
.fp-toggle {
  appearance: none;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #d0d5dd;
  position: relative;
  cursor: pointer;
  border: none;
  vertical-align: middle;
}
.fp-toggle:checked { background: var(--fp-primary); }
.fp-toggle::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}
.fp-toggle:checked::after { transform: translateX(18px); }
.fp-pref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--fp-line);
}
.fp-pref-row:last-child { border-bottom: none; }

/* Landing mid-page sections */
.fp-landing-section {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(3.75rem, 8vw, 5.5rem) 1.5rem;
}
.fp-section-head-land {
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
  max-width: 36rem;
}
.fp-section-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fp-primary);
}
.fp-landing-section h2,
.fp-section-head-land h2 {
  font-family: var(--fp-display);
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  font-weight: 700;
  margin: 0 0 0.7rem;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--fp-land-ink, var(--fp-ink));
  max-width: 18ch;
}
.fp-section-lede,
.fp-landing-section > p {
  color: var(--fp-land-muted, var(--fp-muted));
  max-width: 34rem;
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.6;
}

/* Scroll-in (JS toggles .is-in); reduced-motion stays visible */
.fp-reveal {
  opacity: 1;
  transform: none;
}
.js-fp-reveal .fp-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--fp-ease),
    transform 0.7s var(--fp-ease);
}
.js-fp-reveal .fp-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.js-fp-reveal .fp-reveal .fp-story-flow li,
.js-fp-reveal .fp-reveal .fp-method-list li,
.js-fp-reveal .fp-reveal .fp-dev-panel {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.55s var(--fp-ease),
    transform 0.55s var(--fp-ease);
}
.js-fp-reveal .fp-reveal.is-in .fp-story-flow li,
.js-fp-reveal .fp-reveal.is-in .fp-method-list li,
.js-fp-reveal .fp-reveal.is-in .fp-dev-panel {
  opacity: 1;
  transform: translateY(0);
}
.js-fp-reveal .fp-reveal.is-in .fp-story-flow li:nth-child(1),
.js-fp-reveal .fp-reveal.is-in .fp-method-list li:nth-child(1) { transition-delay: 0.08s; }
.js-fp-reveal .fp-reveal.is-in .fp-story-flow li:nth-child(2),
.js-fp-reveal .fp-reveal.is-in .fp-method-list li:nth-child(2) { transition-delay: 0.14s; }
.js-fp-reveal .fp-reveal.is-in .fp-story-flow li:nth-child(3),
.js-fp-reveal .fp-reveal.is-in .fp-method-list li:nth-child(3) { transition-delay: 0.2s; }
.js-fp-reveal .fp-reveal.is-in .fp-method-list li:nth-child(4) { transition-delay: 0.26s; }
.js-fp-reveal .fp-reveal.is-in .fp-method-list li:nth-child(5) { transition-delay: 0.32s; }
.js-fp-reveal .fp-reveal.is-in .fp-dev-panel { transition-delay: 0.12s; }
@media (prefers-reduced-motion: reduce) {
  .js-fp-reveal .fp-reveal,
  .js-fp-reveal .fp-reveal .fp-story-flow li,
  .js-fp-reveal .fp-reveal .fp-method-list li,
  .js-fp-reveal .fp-reveal .fp-dev-panel {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* How it works — Collect → Hold → Move */
.fp-landing-story {
  padding-top: clamp(4.25rem, 9vw, 6rem);
}
.fp-landing-story::before {
  content: "";
  position: absolute;
  inset: 0 -12% auto;
  height: min(42%, 280px);
  background:
    radial-gradient(ellipse 55% 80% at 18% 0%, rgba(26, 92, 255, 0.07), transparent 70%),
    radial-gradient(ellipse 45% 70% at 88% 20%, rgba(14, 122, 107, 0.08), transparent 65%);
  pointer-events: none;
  z-index: -1;
}
.fp-story-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 40rem;
}
.fp-story-flow li {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.15rem 1.35rem;
  align-items: start;
  padding: 1.5rem 0 1.5rem 0.15rem;
}
.fp-story-flow li + li {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.fp-story-rail {
  display: none;
}
.fp-story-step {
  font-family: var(--fp-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fp-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding-top: 0.15rem;
}
.fp-story-body strong {
  display: block;
  font-family: var(--fp-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
  color: var(--fp-land-ink, var(--fp-ink));
}
.fp-story-body span {
  display: block;
  color: var(--fp-land-muted, var(--fp-muted));
  font-size: 1rem;
  line-height: 1.55;
  max-width: 32rem;
}
@media (min-width: 720px) {
  .fp-story-flow {
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 1.5rem;
    align-items: stretch;
  }
  .fp-story-flow li {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 0 0.5rem 0 0;
    border-top: none !important;
  }
  .fp-story-flow li + li {
    border-top: none;
  }
  .fp-story-rail {
    display: block;
    position: absolute;
    top: 0.9rem;
    left: calc(100% - 0.4rem);
    width: calc(100% - 1.5rem);
    height: 1px;
    background: linear-gradient(
      90deg,
      rgba(26, 92, 255, 0.45),
      rgba(14, 122, 107, 0.28) 55%,
      transparent
    );
    pointer-events: none;
  }
  .fp-story-flow li:last-child .fp-story-rail { display: none; }
  .fp-story-step {
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    opacity: 0.9;
  }
  .fp-story-body strong {
    font-size: 1.35rem;
  }
}

/* Payments — method list (no card grid) */
.fp-landing-methods {
  max-width: none;
  width: 100%;
  padding-inline: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(238, 244, 241, 0.55) 40%, rgba(255, 255, 255, 0.2));
}
.fp-landing-methods .fp-section-head-land,
.fp-landing-methods .fp-method-list {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.fp-landing-methods .fp-method-list {
  margin-top: 0;
  padding-bottom: 0.25rem;
}
.fp-method-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.fp-method-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}
.fp-method-list li:first-child {
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}
.fp-method-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 5.25rem;
  max-width: 8.5rem;
}
.fp-method-tok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2.15rem;
  padding: 0 0.55rem;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-style: normal;
  color: #fff;
  background: var(--fp-primary);
}
.fp-method-tok--om { background: #ff7900; }
.fp-method-tok--af { background: #c8102e; }
.fp-method-tok--qm { background: #1b4d9e; }
.fp-method-tok--card {
  background: linear-gradient(135deg, #1a5cff, #0a2f8a);
  letter-spacing: 0.02em;
}
.fp-method-tok--bank {
  background: linear-gradient(135deg, #0e7a6b, #0a5c52);
}
.fp-method-tok--ussd {
  background: #0c1222;
  font-size: 0.62rem;
}
.fp-method-tok--wallet {
  background: linear-gradient(135deg, #3b6fd4, #0e7a6b);
}
.fp-method-copy strong {
  display: block;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fp-land-ink, var(--fp-ink));
  margin-bottom: 0.15rem;
}
.fp-method-copy span {
  display: block;
  font-size: 0.95rem;
  color: var(--fp-land-muted, var(--fp-muted));
  line-height: 1.45;
}
@media (min-width: 720px) {
  .fp-method-list {
    max-width: 40rem;
  }
  .fp-method-list li {
    padding: 1.25rem 0;
    gap: 1.5rem;
  }
  .fp-method-marks { min-width: 5.5rem; }
}

/* Developers — copy + terminal */
.fp-landing-dev {
  padding-bottom: clamp(4rem, 8vw, 5.75rem);
}
.fp-landing-dev-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}
@media (min-width: 900px) {
  .fp-landing-dev-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 3.25rem;
  }
  .fp-landing-dev .fp-section-head-land {
    margin-bottom: 0;
  }
}
.fp-dev-points {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.fp-dev-points li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--fp-land-ink, var(--fp-ink));
  letter-spacing: -0.01em;
}
.fp-dev-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fp-primary), var(--fp-land-sea));
  box-shadow: 0 0 0 3px rgba(26, 92, 255, 0.12);
}
.fp-landing-dev .fp-dev-panel {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(600px 220px at 10% -20%, rgba(26, 92, 255, 0.35), transparent 55%),
    radial-gradient(480px 200px at 100% 120%, rgba(14, 122, 107, 0.22), transparent 50%),
    #0b1220;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 22px 48px rgba(12, 18, 34, 0.22);
}
.fp-dev-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.03);
}
.fp-dev-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
}
.fp-dev-chrome span:nth-child(1) { background: #f87171; }
.fp-dev-chrome span:nth-child(2) { background: #fbbf24; }
.fp-dev-chrome span:nth-child(3) { background: #34d399; }
.fp-dev-chrome em {
  margin-left: 0.55rem;
  font-style: normal;
  font-size: 0.72rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: rgba(148, 163, 184, 0.75);
  letter-spacing: 0.02em;
}
.fp-dev-snippet {
  margin: 0;
  padding: 1.35rem 1.25rem 1.55rem;
  background: transparent;
  color: #d7e0ef;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.7;
  overflow-x: auto;
  box-shadow: none;
  animation: none;
}
.fp-dev-snippet code {
  font-family: inherit;
  white-space: pre;
}
.fp-dev-kw { color: #7b96ff; font-weight: 600; }
.fp-dev-path { color: #a5b4fc; }
.fp-dev-key { color: #7dd3c0; }
.fp-dev-str { color: #f0c674; }
.fp-dev-dim { color: #64748b; }
.fp-dev-ok { color: #34d399; }

/* Close CTA — bridges mid-page into dark footer */
.fp-landing-close {
  padding: 1.25rem 1.5rem 2.75rem;
}
.fp-landing-close-inner {
  position: relative;
  isolation: isolate;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 3.25rem) clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(720px 300px at 8% -10%, rgba(120, 190, 255, 0.38), transparent 55%),
    radial-gradient(520px 260px at 92% 110%, rgba(78, 205, 196, 0.22), transparent 50%),
    linear-gradient(128deg, #0a2f8a 0%, #1a5cff 48%, #0c5c52 115%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  box-shadow: 0 24px 56px rgba(10, 47, 138, 0.22);
}
.fp-landing-close-inner::after {
  content: "";
  position: absolute;
  inset: auto -8% -40%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.12), transparent 65%);
  pointer-events: none;
  z-index: -1;
}
.fp-landing-close-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.fp-landing-close-inner h2 {
  font-family: var(--fp-display);
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  max-width: 14ch;
}
.fp-landing-close-inner p {
  margin: 0 0 0.85rem;
  opacity: 0.92;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.55;
}
.fp-landing-close-inner .fp-btn-primary {
  background: #fff;
  color: #0a2f8a;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  margin-top: 0.15rem;
}
.fp-landing-close-inner .fp-btn-primary:hover {
  background: #f3f7ff;
  color: #0a2f8a;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}
.fp-landing-footer {
  --fp-foot-ink: #f8fafc;
  --fp-foot-muted: #94a3b8;
  --fp-foot-dim: #64748b;
  --fp-foot-line: rgba(148, 163, 184, 0.12);
  --fp-foot-cobalt: #7b96ff;
  position: relative;
  isolation: isolate;
  margin-top: 0.25rem;
  padding: 0 1.75rem 3.75rem;
  color: var(--fp-foot-muted);
  background:
    radial-gradient(1100px 420px at 12% -8%, rgba(58, 99, 210, 0.28), transparent 58%),
    radial-gradient(820px 360px at 88% 4%, rgba(37, 99, 235, 0.12), transparent 52%),
    radial-gradient(600px 240px at 50% 100%, rgba(14, 122, 107, 0.06), transparent 55%),
    linear-gradient(180deg, #0c1424 0%, #0a101c 42%, #070c14 100%);
  border-top: 1px solid rgba(107, 140, 255, 0.22);
  overflow: hidden;
}
.fp-landing-footer-glow {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(107, 140, 255, 0.25) 18%,
    rgba(148, 180, 255, 0.7) 50%,
    rgba(107, 140, 255, 0.25) 82%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 0 28px 2px rgba(107, 140, 255, 0.25);
}
/* Soft coastal wave band — decorative top edge of the dark footer */
.fp-landing-footer-waves {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(4.5rem, 9vw, 7.25rem);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.92;
  mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
}
.fp-wave-band {
  position: absolute;
  inset: 0;
  display: flex;
  width: 200%;
  height: 100%;
  will-change: transform;
}
.fp-wave-band svg {
  display: block;
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
}
.fp-wave-band--1 {
  animation: fp-footer-wave-drift 28s linear infinite;
}
.fp-wave-band--2 {
  animation: fp-footer-wave-drift-rev 38s linear infinite;
  opacity: 0.9;
}
.fp-wave-band--3 {
  animation: fp-footer-wave-drift 48s linear infinite;
  animation-delay: -12s;
  opacity: 0.82;
}
@keyframes fp-footer-wave-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes fp-footer-wave-drift-rev {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .fp-wave-band--1,
  .fp-wave-band--2,
  .fp-wave-band--3 {
    animation: none;
  }
  .fp-wave-band--2 {
    transform: translate3d(-18%, 0, 0);
  }
  .fp-wave-band--3 {
    transform: translate3d(-8%, 0, 0);
  }
}
.fp-landing-footer-cta {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5rem 0 2.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  border-bottom: 1px solid var(--fp-foot-line);
}
.fp-landing-footer-cta-copy h2 {
  margin: 0 0 0.45rem;
  font-family: var(--fp-font);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
  color: var(--fp-foot-ink);
}
.fp-landing-footer-cta-copy p {
  margin: 0;
  max-width: 28rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--fp-foot-muted);
}
.fp-landing-footer-cta-btn {
  flex-shrink: 0;
  padding: 0.85rem 1.65rem;
  font-size: 0.95rem;
  box-shadow: 0 10px 28px rgba(26, 92, 255, 0.28);
}
.fp-landing-footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.75rem 0 3rem;
  display: grid;
  gap: 3.25rem;
}
@media (min-width: 860px) {
  .fp-landing-footer-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.85fr);
    gap: 4.5rem;
    align-items: start;
  }
}
.fp-landing-footer-logo {
  color: var(--fp-foot-ink);
  margin-bottom: 1.25rem;
  gap: 0.85rem;
}
.fp-landing-footer-logo:hover {
  color: #fff;
  text-decoration: none;
}
.fp-landing-footer-logo .fp-mark {
  width: 48px;
  height: 48px;
  font-size: 1.05rem;
  box-shadow: 0 8px 22px rgba(26, 92, 255, 0.35);
}
.fp-landing-footer-logo span:last-child {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.fp-landing-footer-tagline {
  margin: 0 0 1.5rem;
  max-width: 22rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--fp-foot-muted);
}
.fp-landing-footer-support {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fp-foot-cobalt);
  letter-spacing: -0.01em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.fp-landing-footer-support:hover {
  color: #a8bcff;
  text-decoration: none;
  border-bottom-color: rgba(168, 188, 255, 0.55);
}
.fp-landing-footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 2rem;
}
@media (min-width: 640px) {
  .fp-landing-footer-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem 1.75rem;
  }
}
.fp-landing-footer-col h3 {
  margin: 0 0 1.2rem;
  font-family: var(--fp-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e2e8f0;
}
.fp-landing-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.fp-landing-footer-col a {
  display: inline;
  font-size: 0.95rem;
  color: var(--fp-foot-muted);
  text-decoration: none;
  background-image: linear-gradient(var(--fp-foot-cobalt), var(--fp-foot-cobalt));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: color 0.18s ease, background-size 0.22s var(--fp-ease), opacity 0.18s ease;
}
.fp-landing-footer-col a:hover {
  color: var(--fp-foot-ink);
  background-size: 100% 1px;
  text-decoration: none;
}
.fp-landing-footer-bottom {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 1.85rem;
  border-top: 1px solid var(--fp-foot-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1.5rem;
}
.fp-landing-footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--fp-foot-dim);
  letter-spacing: -0.01em;
}
.fp-landing-footer-locale {
  color: var(--fp-foot-dim);
}

@media (max-width: 900px) {
  .fp-landing-nav-inner {
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }
  .fp-landing-nav-brand { order: 1; }
  .fp-landing-nav-actions { order: 2; margin-left: auto; }
  .fp-landing-nav-links {
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 0.1rem 1rem;
    padding-bottom: 0.15rem;
    mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 1.5rem), transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 1.5rem), transparent);
  }
  .fp-landing {
    --fp-landing-nav-space: 6rem;
  }
}

@media (max-width: 640px) {
  .fp-landing {
    --fp-landing-nav-space: 5.75rem;
  }
  .fp-landing-nav {
    --fp-nav-pad-y: 0.7rem;
    --fp-nav-mark: 32px;
    --fp-nav-word: 0.95rem;
    --fp-nav-btn-pad-y: 0.48rem;
    --fp-nav-btn-pad-x: 0.85rem;
    --fp-nav-btn-size: 0.82rem;
  }
  .fp-landing-nav-inner { padding-inline: 1.15rem; gap: 0.45rem 0.65rem; }
  .fp-landing-nav-links {
    --fp-nav-link-size: 0.8rem;
    gap: 0.05rem 0.85rem;
  }
  .fp-landing-nav.is-scrolled,
  .fp-landing-nav.fp-nav--compact {
    --fp-nav-pad-y: 0.45rem;
    --fp-nav-mark: 28px;
    --fp-nav-word: 0.88rem;
    --fp-nav-btn-pad-y: 0.38rem;
    --fp-nav-btn-pad-x: 0.72rem;
  }
  .fp-landing-nav.is-scrolled .fp-landing-nav-links,
  .fp-landing-nav.fp-nav--compact .fp-landing-nav-links {
    --fp-nav-link-size: 0.76rem;
  }
  .fp-hero { padding-inline: 1.15rem; gap: 1.75rem; }
  .fp-hero-plane { margin-inline: -1.15rem; min-height: 280px; padding-block: 1.5rem; }
  .fp-landing-section { padding: 3.25rem 1.15rem; }
  .fp-landing-methods .fp-section-head-land,
  .fp-landing-methods .fp-method-list { padding-inline: 1.15rem; }
  .fp-landing-close { padding-inline: 1.15rem; }
  .fp-landing-close-inner { border-radius: 22px; }
  .fp-landing-footer { padding-inline: 1.25rem; padding-bottom: 3rem; }
  .fp-landing-footer-cta {
    padding: 2.85rem 0 2.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .fp-landing-footer-cta-copy h2 { font-size: 1.4rem; }
  .fp-landing-footer-inner { padding: 2.85rem 0 2.5rem; gap: 2.75rem; }
  .fp-landing-footer-logo .fp-mark { width: 44px; height: 44px; }
  .fp-landing-footer-logo span:last-child { font-size: 1.3rem; }
  .fp-landing-footer-nav { gap: 2.25rem 1.5rem; }
  .fp-landing-footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.4rem; padding-top: 1.5rem; }
  .fp-story-flow li { grid-template-columns: 2.65rem 1fr; gap: 0.85rem; }
}

/* Webhooks / developer gate */
.fp-hint {
  margin: 0.35rem 0 0;
  color: var(--fp-muted);
  font-size: 0.82rem;
}
.fp-secret-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.fp-secret-row .fp-input { flex: 1; }
.fp-signing-opts {
  display: grid;
  gap: 0.65rem;
}
.fp-radio-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid var(--fp-line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  background: #fff;
}
.fp-radio-card:has(input:checked) {
  border-color: var(--fp-primary);
  background: var(--fp-primary-soft);
}
.fp-radio-card strong { display: block; }
.fp-radio-card small {
  display: block;
  color: var(--fp-muted);
  margin-top: 0.2rem;
  font-size: 0.82rem;
}
.fp-event-multiselect {
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--fp-line);
  border-radius: 12px;
  padding: 0.35rem;
  background: #fff;
}
.fp-event-option {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
}
.fp-event-option:hover { background: var(--fp-bg); }
.fp-enable-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin: 1rem 0 1.25rem;
}
.fp-enable-row strong { display: block; }
.fp-enable-row small {
  display: block;
  color: var(--fp-muted);
  margin-top: 0.15rem;
}
.fp-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.85rem;
}
.fp-row-actions .fp-linkish {
  background: none;
  border: none;
  color: var(--fp-primary);
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.fp-log-pre {
  margin: 0.35rem 0 0;
  padding: 0.65rem 0.75rem;
  background: var(--fp-bg);
  border-radius: 8px;
  font-size: 0.75rem;
  overflow: auto;
  max-height: 160px;
  white-space: pre-wrap;
  word-break: break-word;
}
.fp-log-detail td {
  background: #fafbfc;
  border-top: none;
  padding-top: 0;
  color: var(--fp-muted);
  font-size: 0.85rem;
}
.fp-dev-gate {
  display: grid;
  place-items: center;
  min-height: 55vh;
  padding: 1rem;
}
.fp-dev-gate-card {
  max-width: 480px;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 2.1rem 1.85rem;
  box-shadow: var(--fp-shadow);
  animation: fp-rise 0.45s var(--fp-ease) both;
}
.fp-dev-gate-list {
  margin: 1.25rem 0 1.5rem;
  padding-left: 1.15rem;
  color: var(--fp-muted);
  line-height: 1.55;
}
.fp-token-create-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: start;
}
.fp-token-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.fp-role-list {
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--fp-line);
  border-radius: 12px;
  padding: 0.35rem;
  background: #fff;
}
.fp-role-service {
  padding: 0.65rem 0.55rem;
  border-bottom: 1px solid var(--fp-line);
}
.fp-role-service:last-child { border-bottom: none; }
.fp-role-service-title {
  font-weight: 650;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}
.fp-role-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 1rem;
  font-size: 0.88rem;
  cursor: pointer;
}
@media (max-width: 900px) {
  .fp-token-create-grid { grid-template-columns: 1fr; }
}
.fp-dev-gate-landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  padding: 2rem 1.25rem 3rem;
  max-width: 560px;
  margin: 0 auto;
}
.fp-dev-illus {
  width: min(280px, 80vw);
  margin-bottom: 1.25rem;
}
.fp-dev-illus svg { width: 100%; height: auto; }
.fp-dev-gate-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.fp-dev-gate-copy {
  color: var(--fp-muted);
  line-height: 1.55;
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
}
.fp-dev-enable-btn {
  min-width: 220px;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

/* —— Developer overview —— */
.fp-dev-overview { max-width: 880px; width: 100%; min-width: 0; }
.fp-id-box-wide {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  margin: 1.25rem 0 1.75rem;
  max-width: 100%;
  min-width: 0;
}
.fp-id-label {
  color: var(--fp-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: auto;
  flex-shrink: 0;
}
.fp-id-value {
  font-size: 0.9rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-dev-card p {
  color: var(--fp-muted);
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
}
.fp-ext {
  color: var(--fp-muted);
  font-weight: 500;
  font-size: 0.85em;
}

/* —— Create webhook form —— */
.fp-wh-create { max-width: 1100px; }
.fp-wh-create-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.fp-wh-create-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.fp-wh-close {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--fp-muted);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
}
.fp-wh-close:hover { background: var(--fp-bg); color: var(--fp-ink); }
.fp-wh-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2rem;
  align-items: start;
}
@media (max-width: 960px) {
  .fp-wh-grid { grid-template-columns: 1fr; }
}
.fp-verify-opts { display: flex; flex-direction: column; gap: 0.75rem; }
.fp-verify-opt {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  cursor: pointer;
}
.fp-verify-opt input { margin-top: 0.25rem; accent-color: var(--fp-primary); }
.fp-verify-opt strong { display: block; }
.fp-verify-opt small {
  display: block;
  color: var(--fp-muted);
  font-size: 0.82rem;
  line-height: 1.4;
  margin-top: 0.15rem;
}
.fp-secret-block {
  margin: 0.25rem 0 0.5rem 1.5rem;
  padding: 0.75rem;
  border: 1px solid var(--fp-line);
  border-radius: 10px;
  background: #fafbfc;
}
.fp-secret-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.fp-char-count {
  font-size: 0.75rem;
  color: var(--fp-muted);
}
.fp-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--fp-line);
}
.fp-switch { flex-shrink: 0; }
.fp-email-box {
  border: 1px solid var(--fp-line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-top: 0.5rem;
}
.fp-email-box.is-invalid { border-color: #f04438; }
.fp-email-box-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--fp-muted);
}
.fp-email-row {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.fp-email-row .fp-input.is-invalid,
.fp-input.is-invalid,
.fp-select.is-invalid,
.fp-event-picker.is-invalid {
  border-color: var(--fp-danger);
}
.fp-input.is-invalid:focus,
.fp-select.is-invalid:focus {
  border-color: var(--fp-danger);
  box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.14);
}
.fp-wh-summary[hidden] { display: none; }
.fp-wh-summary a { color: inherit; font-weight: 600; }
.fp-email-error {
  color: #b42318;
  font-size: 0.82rem;
  margin: 0.25rem 0 0.5rem;
}
.fp-email-box-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.35rem;
}
.fp-headers-box {
  margin-top: 0.5rem;
  padding: 0.75rem;
  border: 1px dashed var(--fp-line);
  border-radius: 10px;
}
.fp-header-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.fp-release-info { margin-top: 0.75rem; }
.fp-event-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
  min-height: 0.5rem;
}
.fp-event-chip.is-removable {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #e8f1ff;
  color: var(--fp-primary);
  border: none;
  padding: 0.25rem 0.45rem;
}
.fp-event-chip.is-removable button {
  border: none;
  background: transparent;
  color: #f04438;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0;
}
.fp-event-picker {
  border: 1px solid var(--fp-line);
  border-radius: 10px;
  overflow: hidden;
}
.fp-event-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--fp-line);
  background: #fafbfc;
}
.fp-event-search input {
  border: none;
  outline: none;
  width: 100%;
  background: transparent;
  font: inherit;
}
.fp-wh-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--fp-line);
}
.fp-empty-nodata {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--fp-muted);
  font-weight: 500;
}
.fp-pager {
  display: inline-flex;
  gap: 0.75rem;
}
.fp-pager button {
  border: none;
  background: transparent;
  color: var(--fp-muted);
  cursor: not-allowed;
}

/* —— Personal Access Tokens —— */
.fp-req { color: #f04438; }
.fp-hint {
  color: var(--fp-muted);
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 0.35rem 0 0;
}
.fp-hint code {
  font-size: 0.78rem;
  background: #f4f6f8;
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}
.fp-expiry-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.fp-radio-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--fp-line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  background: #fff;
}
.fp-radio-chip:has(input:checked) {
  border-color: var(--fp-primary);
  background: #eef4ff;
  color: var(--fp-primary);
}
.fp-radio-chip input { accent-color: var(--fp-primary); }
.fp-toggle-row.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}
.fp-roles-box {
  border: 1px solid var(--fp-line);
  border-radius: 10px;
  min-height: 140px;
  background: #fafbfc;
  overflow: hidden;
}
.fp-roles-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--fp-muted);
  font-size: 0.9rem;
}
.fp-roles-list {
  max-height: 220px;
  overflow: auto;
}
.fp-role-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  border-bottom: 1px solid var(--fp-line);
  background: #fff;
}
.fp-role-row:last-child { border-bottom: none; }
.fp-role-row.is-on { background: #eef4ff; }
.fp-role-row input { margin-top: 0.2rem; accent-color: var(--fp-primary); }
.fp-role-row strong { display: block; font-size: 0.9rem; }
.fp-role-row small {
  display: block;
  color: var(--fp-muted);
  font-size: 0.78rem;
  margin-top: 0.1rem;
}
.fp-selected-scopes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
  min-height: 0.25rem;
}
.fp-secret-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.fp-secret-row .fp-input { flex: 1; }


/* Afrimoney dial-to-approve code (checkout USSD page) */
.fp-co-dial {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin: 0 auto 0.75rem;
  padding: 1rem;
  max-width: 22rem;
  border: 1px dashed #b2ccff;
  border-radius: 12px;
  background: #f5f8ff;
}
.fp-co-dial-label {
  width: 100%;
  color: #667085;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fp-co-dial-code {
  width: 100%;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #101828;
  font-variant-numeric: tabular-nums;
}
.fp-co-dial-btn,
.fp-co-dial-copy {
  min-height: 44px;
}
/* Per-checkout USSD code (FambuyPay short code, Monime-style) */
.fp-co-dial-ussd .fp-co-dial-code {
  color: #1570ef;
  font-size: 2.25rem;
}
.fp-co-dial-ussd .fp-co-dial-btn svg {
  margin-left: 0.35rem;
  vertical-align: -3px;
}
.fp-co-ussd-timer strong {
  font-variant-numeric: tabular-nums;
}