/* ═══════════════════════════════════════════════════════════════════════
   CABANA PAYOUTS · one look for getting paid
   Used by every page that shows a wallet or asks where to send money.
   Reads the page's own colours when it has them (--ink, --line, --theme…)
   and falls back to Cabana's palette, so it sits naturally on a partner
   page, the rewards page and the listing form alike.
   ═══════════════════════════════════════════════════════════════════════ */
.cpx, .cpx-ov {
  --cpx-ink: var(--ink, #0A0A14);
  --cpx-ink2: var(--ink-2, #12132A);
  --cpx-soft: var(--ink-soft, #4A4C66);
  --cpx-faint: var(--ink-faint, #7B7E9E);
  --cpx-line: var(--line, rgba(10, 10, 20, .08));
  --cpx-line2: var(--line-2, rgba(10, 10, 20, .14));
  --cpx-card: var(--cpx-card-bg, #fff);
  --cpx-bg: var(--glass-2, #F4F5FB);
  --cpx-brand: var(--theme, #2DD4BF);
  --cpx-brand2: var(--theme-2, #4361FF);
  --cpx-grad: linear-gradient(135deg, var(--cpx-brand), var(--cpx-brand2));
  --cpx-ok: #0F9D6B; --cpx-ok-bg: rgba(15, 157, 107, .1);
  --cpx-warn: #B7791F; --cpx-warn-bg: rgba(245, 177, 46, .16);
  --cpx-err: #D92D4A; --cpx-err-bg: rgba(217, 45, 74, .09);
  --cpx-info: #3355E8; --cpx-info-bg: rgba(67, 97, 255, .1);
  --cpx-radius: 20px;
  --cpx-shadow: 0 1px 2px rgba(10, 10, 20, .04), 0 10px 30px rgba(10, 10, 20, .06);
  font-family: var(--font-b, 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif);
  color: var(--cpx-ink);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
.cpx *, .cpx-ov * { box-sizing: border-box; }
.cpx button, .cpx-ov button, .cpx input, .cpx-ov input, .cpx select, .cpx-ov select, .cpx textarea, .cpx-ov textarea { font-family: inherit; }
.cpx-num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
.cpx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── buttons ──────────────────────────────────────────────────────────── */
.cpx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: 14px; border: 1.5px solid transparent; font-weight: 700; font-size: 14px; letter-spacing: .005em;
  cursor: pointer; background: transparent; color: var(--cpx-ink); text-decoration: none; white-space: nowrap;
  transition: transform .18s cubic-bezier(.34, 1.4, .44, 1), box-shadow .2s, background .2s, border-color .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.cpx-btn:focus-visible, .cpx-in:focus-visible, .cpx-x:focus-visible, .cpx-opt:focus-visible, .cpx-tile:focus-visible, .cpx-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--cpx-brand2) 55%, transparent); outline-offset: 2px;
}
.cpx-btn:active:not(:disabled) { transform: scale(.975); }
.cpx-btn:disabled, .cpx-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.cpx-btn--primary { background: var(--cpx-grad); color: #fff; box-shadow: 0 8px 22px color-mix(in srgb, var(--cpx-brand2) 32%, transparent); }
.cpx-btn--primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 30px color-mix(in srgb, var(--cpx-brand2) 42%, transparent); }
.cpx-btn--light { background: #fff; color: #0B1230; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); }
.cpx-btn--light:hover:not(:disabled) { transform: translateY(-1px); }
.cpx-btn--ghost { border-color: var(--cpx-line2); background: var(--cpx-card); }
.cpx-btn--ghost:hover:not(:disabled) { border-color: var(--cpx-brand2); color: var(--cpx-brand2); }
.cpx-btn--quiet { min-height: 36px; padding: 0 12px; border-radius: 10px; font-size: 13px; color: var(--cpx-soft); }
.cpx-btn--quiet:hover:not(:disabled) { background: var(--cpx-line); color: var(--cpx-ink); }
.cpx-btn--danger { color: var(--cpx-err); }
.cpx-btn--danger:hover:not(:disabled) { background: var(--cpx-err-bg); }
.cpx-btn--block { width: 100%; }
.cpx-btn .cpx-spin { width: 16px; height: 16px; }
.cpx-link { background: none; border: 0; padding: 0; color: var(--cpx-brand2); font-weight: 600; font-size: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ── the balance ─────────────────────────────────────────────────────── */
.cpx-hero {
  position: relative; overflow: hidden; border-radius: 26px; padding: 28px 28px 24px; color: #fff; isolation: isolate;
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--cpx-brand2) 70%, transparent) 0%, transparent 55%),
    radial-gradient(90% 120% at 0% 100%, color-mix(in srgb, var(--cpx-brand) 55%, transparent) 0%, transparent 60%),
    #0B1230;
  box-shadow: 0 24px 60px rgba(11, 18, 48, .28);
}
.cpx-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 34px 34px; -webkit-mask-image: radial-gradient(70% 90% at 80% 10%, #000, transparent); mask-image: radial-gradient(70% 90% at 80% 10%, #000, transparent); }
.cpx-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cpx-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .66); display: flex; align-items: center; gap: 8px; }
.cpx-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #4EE0A8; box-shadow: 0 0 0 4px rgba(78, 224, 168, .22); }
.cpx-amount { font-family: var(--font-d, 'Geist', 'Inter', sans-serif); font-weight: 500; font-size: clamp(38px, 7vw, 58px); letter-spacing: -.035em; line-height: 1.04; margin: 10px 0 2px; }
.cpx-amount small { font-size: .42em; font-weight: 600; letter-spacing: .02em; color: rgba(255, 255, 255, .7); margin-right: 8px; }
.cpx-amount-sub { font-size: 14px; color: rgba(255, 255, 255, .62); min-height: 20px; }
.cpx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cpx-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 100px; font-size: 12.5px; font-weight: 600;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); }
.cpx-chip svg { width: 14px; height: 14px; opacity: .85; }
.cpx-hero-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cpx-hero-note { font-size: 12px; color: rgba(255, 255, 255, .6); max-width: 230px; text-align: right; line-height: 1.45; }
@media (max-width: 640px) {
  .cpx-hero { padding: 22px 20px 20px; border-radius: 22px; }
  .cpx-hero-cta { align-items: stretch; width: 100%; }
  .cpx-hero-cta .cpx-btn { width: 100%; }
  .cpx-hero-note { text-align: left; max-width: none; }
}

/* ── sections ────────────────────────────────────────────────────────── */
.cpx-sec { margin-top: 30px; }
.cpx-sec-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.cpx-sec-t { font-family: var(--font-d, 'Geist', 'Inter', sans-serif); font-size: 19px; font-weight: 600; letter-spacing: -.015em; margin: 0; }
.cpx-sec-s { font-size: 13px; color: var(--cpx-faint); margin: 3px 0 0; }
.cpx-card { background: var(--cpx-card); border: 1px solid var(--cpx-line); border-radius: var(--cpx-radius); box-shadow: var(--cpx-shadow); }

/* destinations */
.cpx-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.cpx-method { position: relative; padding: 18px; display: flex; flex-direction: column; gap: 12px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cpx-method:hover { transform: translateY(-2px); border-color: var(--cpx-line2); }
.cpx-method.is-default { border-color: color-mix(in srgb, var(--cpx-brand2) 45%, transparent); box-shadow: var(--cpx-shadow), 0 0 0 3px color-mix(in srgb, var(--cpx-brand2) 10%, transparent); }
.cpx-m-top { display: flex; align-items: center; gap: 12px; }
.cpx-glyph { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px; letter-spacing: -.02em; }
.cpx-glyph svg { width: 22px; height: 22px; }
.cpx-m-name { font-weight: 700; font-size: 15px; line-height: 1.25; word-break: break-word; }
.cpx-m-sub { font-size: 12.5px; color: var(--cpx-faint); margin-top: 2px; word-break: break-word; }
.cpx-m-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cpx-m-act { display: flex; gap: 2px; margin-left: -8px; }
.cpx-add {
  min-height: 130px; border: 1.5px dashed var(--cpx-line2); border-radius: var(--cpx-radius); background: transparent; color: var(--cpx-soft); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14px; padding: 18px;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.cpx-add:hover { border-color: var(--cpx-brand2); color: var(--cpx-brand2); background: color-mix(in srgb, var(--cpx-brand2) 4%, transparent); transform: translateY(-2px); }
.cpx-add .cpx-plus { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--cpx-grad); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--cpx-brand2) 30%, transparent); }
.cpx-add small { font-weight: 500; font-size: 12px; color: var(--cpx-faint); }

/* pills */
.cpx-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 100px; font-size: 11.5px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.cpx-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cpx-pill--ok { color: var(--cpx-ok); background: var(--cpx-ok-bg); }
.cpx-pill--warn { color: var(--cpx-warn); background: var(--cpx-warn-bg); }
.cpx-pill--err { color: var(--cpx-err); background: var(--cpx-err-bg); }
.cpx-pill--info { color: var(--cpx-info); background: var(--cpx-info-bg); }
.cpx-pill--mute { color: var(--cpx-soft); background: var(--cpx-line); }

/* activity */
.cpx-list { display: flex; flex-direction: column; }
.cpx-row { padding: 16px 18px; border-top: 1px solid var(--cpx-line); }
.cpx-row:first-child { border-top: 0; }
.cpx-row-top { display: flex; align-items: center; gap: 14px; }
.cpx-row-main { flex: 1; min-width: 0; }
.cpx-row-t { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cpx-row-s { font-size: 12.5px; color: var(--cpx-faint); margin-top: 3px; word-break: break-word; }
.cpx-row-amt { text-align: right; flex: none; }
.cpx-row-amt b { font-size: 15px; display: block; }
.cpx-row-amt span { font-size: 12px; color: var(--cpx-faint); }
.cpx-row-more { margin-top: 12px; padding-left: 0; }
.cpx-in-pos { color: var(--cpx-ok); }
.cpx-tl { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.cpx-tl li { position: relative; padding: 0 0 14px 24px; font-size: 13px; line-height: 1.45; }
.cpx-tl li::before { content: ''; position: absolute; left: 3px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--cpx-grad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cpx-brand2) 12%, transparent); }
.cpx-tl li::after { content: ''; position: absolute; left: 7px; top: 17px; bottom: -3px; width: 1.5px; background: var(--cpx-line2); }
.cpx-tl li:last-child { padding-bottom: 0; } .cpx-tl li:last-child::after { display: none; }
.cpx-tl li.is-bad::before { background: var(--cpx-err); box-shadow: 0 0 0 4px var(--cpx-err-bg); }
.cpx-tl li.is-ok::before { background: var(--cpx-ok); box-shadow: 0 0 0 4px var(--cpx-ok-bg); }
.cpx-tl time { display: block; font-size: 11.5px; color: var(--cpx-faint); }
.cpx-empty { padding: 34px 20px; text-align: center; color: var(--cpx-faint); font-size: 14px; }
.cpx-empty b { display: block; color: var(--cpx-ink); font-size: 15px; margin-bottom: 4px; }

/* notices */
.cpx-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; font-size: 13.5px; line-height: 1.5; margin-top: 16px; }
.cpx-note svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.cpx-note--warn { background: var(--cpx-warn-bg); color: #7a5410; }
.cpx-note--err { background: var(--cpx-err-bg); color: #a31d35; }
.cpx-note--info { background: var(--cpx-info-bg); color: #243cab; }
.cpx-note--ok { background: var(--cpx-ok-bg); color: #0a6e4a; }
.cpx-note b { font-weight: 700; }
.cpx-foot { margin-top: 26px; display: flex; gap: 10px 22px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--cpx-faint); }
.cpx-foot svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; }

/* the delegate switcher */
.cpx-who { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 13px; color: var(--cpx-soft); }
.cpx-who select { min-height: 38px; border-radius: 10px; border: 1.5px solid var(--cpx-line2); background: var(--cpx-card); padding: 0 12px; font-weight: 600; color: var(--cpx-ink); }

/* ── sheets ──────────────────────────────────────────────────────────── */
.cpx-ov { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(8, 10, 24, .52); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: cpxFade .2s ease both; }
.cpx-sheet {
  position: relative; width: 100%; max-width: 540px; max-height: min(92vh, 860px); overflow: auto; overscroll-behavior: contain;
  background: var(--cpx-card-bg, #fff); border-radius: 26px; padding: 26px 26px 24px; box-shadow: 0 40px 100px rgba(8, 10, 24, .45);
  animation: cpxRise .32s cubic-bezier(.22, 1, .36, 1) both; color: var(--cpx-ink);
}
.cpx-sheet-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.cpx-sheet-t { font-family: var(--font-d, 'Geist', 'Inter', sans-serif); font-weight: 600; font-size: 22px; letter-spacing: -.02em; margin: 0; line-height: 1.2; }
.cpx-sheet-s { font-size: 14px; color: var(--cpx-soft); margin: 6px 0 20px; line-height: 1.5; }
.cpx-x { flex: none; width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--cpx-line); color: var(--cpx-soft); cursor: pointer; display: grid; place-items: center; margin: -4px -6px 0 0; }
.cpx-x:hover { background: var(--cpx-line2); color: var(--cpx-ink); }
.cpx-steps { display: flex; gap: 6px; margin: 0 0 18px; }
.cpx-steps i { height: 4px; flex: 1; border-radius: 4px; background: var(--cpx-line2); transition: background .3s; }
.cpx-steps i.on { background: var(--cpx-grad); }
.cpx-actions { display: flex; gap: 10px; margin-top: 22px; }
.cpx-actions .cpx-btn--primary { flex: 1; }
@media (max-width: 640px) {
  .cpx-ov { align-items: flex-end; padding: 0; }
  .cpx-sheet { max-width: none; border-radius: 26px 26px 0 0; max-height: 94vh; padding: 14px 20px calc(22px + env(safe-area-inset-bottom)); animation-name: cpxSlide; }
  .cpx-sheet::before { content: ''; display: block; width: 42px; height: 5px; border-radius: 5px; background: var(--cpx-line2); margin: 0 auto 14px; }
}

/* forms */
.cpx-f { margin: 0 0 16px; }
.cpx-lb { display: block; font-size: 13px; font-weight: 700; margin: 0 0 7px; color: var(--cpx-ink2); }
.cpx-lb em { font-style: normal; font-weight: 500; color: var(--cpx-faint); margin-left: 6px; }
.cpx-in { width: 100%; min-height: 50px; padding: 0 15px; border-radius: 14px; border: 1.5px solid var(--cpx-line2); background: var(--cpx-card-bg, #fff); color: var(--cpx-ink);
  font-size: 16px; transition: border-color .18s, box-shadow .18s; -webkit-appearance: none; appearance: none; }
textarea.cpx-in { padding: 13px 15px; min-height: 96px; resize: vertical; line-height: 1.5; }
select.cpx-in { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237B7E9E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.cpx-in:hover { border-color: color-mix(in srgb, var(--cpx-brand2) 40%, var(--cpx-line2)); }
.cpx-in:focus { outline: none; border-color: var(--cpx-brand2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cpx-brand2) 14%, transparent); }
.cpx-in.is-bad { border-color: var(--cpx-err); box-shadow: 0 0 0 4px var(--cpx-err-bg); }
.cpx-in.is-good { border-color: var(--cpx-ok); }
.cpx-hint { font-size: 12.5px; color: var(--cpx-faint); margin-top: 6px; line-height: 1.45; }
.cpx-hint.is-bad { color: var(--cpx-err); font-weight: 600; }
.cpx-hint.is-good { color: var(--cpx-ok); font-weight: 600; }
.cpx-affix { display: flex; align-items: stretch; }
.cpx-affix > span { display: grid; place-items: center; padding: 0 14px; border: 1.5px solid var(--cpx-line2); border-right: 0; border-radius: 14px 0 0 14px; background: var(--cpx-bg); font-weight: 700; font-size: 14px; color: var(--cpx-soft); }
.cpx-affix > .cpx-in { border-radius: 0 14px 14px 0; flex: 1; min-width: 0; }

/* choosing a payment system */
.cpx-tiles { display: grid; gap: 10px; }
.cpx-tile { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--cpx-line2); background: var(--cpx-card-bg, #fff); cursor: pointer; text-align: left; width: 100%;
  color: inherit; transition: border-color .18s, transform .18s, box-shadow .18s, background .18s; }
.cpx-tile:hover { border-color: var(--cpx-brand2); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(10, 10, 20, .07); }
.cpx-tile[aria-pressed="true"], .cpx-tile.is-on { border-color: var(--cpx-brand2); background: color-mix(in srgb, var(--cpx-brand2) 5%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cpx-brand2) 14%, transparent); }
.cpx-tile b { display: block; font-size: 15px; }
.cpx-tile > div > span { display: block; font-size: 12.5px; color: var(--cpx-faint); margin-top: 2px; line-height: 1.4; }
.cpx-tile[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.cpx-grp { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cpx-faint); margin: 18px 0 8px; }
.cpx-grp:first-child { margin-top: 0; }

/* bank search */
.cpx-combo { position: relative; }
.cpx-list-pop { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); max-height: 240px; overflow: auto; background: var(--cpx-card-bg, #fff);
  border: 1px solid var(--cpx-line2); border-radius: 14px; box-shadow: 0 18px 44px rgba(10, 10, 20, .16); padding: 6px; }
.cpx-opt { display: block; width: 100%; text-align: left; padding: 11px 12px; border: 0; background: none; border-radius: 10px; font-size: 14.5px; cursor: pointer; color: inherit; }
.cpx-opt:hover, .cpx-opt[aria-selected="true"] { background: color-mix(in srgb, var(--cpx-brand2) 9%, transparent); }
.cpx-opt small { color: var(--cpx-faint); margin-left: 6px; }

/* the code */
.cpx-code { display: flex; gap: 9px; justify-content: center; margin: 8px 0 14px; }
.cpx-code input { width: 48px; height: 58px; text-align: center; font-size: 24px; font-weight: 700; border-radius: 14px; border: 1.5px solid var(--cpx-line2); background: var(--cpx-card-bg, #fff);
  color: var(--cpx-ink); transition: border-color .18s, box-shadow .18s, transform .18s; font-variant-numeric: tabular-nums; -webkit-appearance: none; appearance: none; }
.cpx-code input:focus { outline: none; border-color: var(--cpx-brand2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cpx-brand2) 14%, transparent); transform: translateY(-2px); }
.cpx-code.is-bad input { border-color: var(--cpx-err); animation: cpxShake .36s; }
@media (max-width: 380px) { .cpx-code input { width: 42px; height: 52px; } .cpx-code { gap: 6px; } }

/* the quote */
.cpx-quote { border-radius: 18px; background: var(--cpx-bg); padding: 4px 16px; margin: 4px 0 0; }
.cpx-q-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 14px; border-top: 1px solid var(--cpx-line); }
.cpx-q-row:first-child { border-top: 0; }
.cpx-q-row span { color: var(--cpx-soft); }
.cpx-q-row.is-total { font-weight: 800; font-size: 16px; }
.cpx-q-row.is-total span { color: var(--cpx-ink); font-weight: 700; }
.cpx-quick { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cpx-quick button { min-height: 34px; padding: 0 14px; border-radius: 100px; border: 1.5px solid var(--cpx-line2); background: var(--cpx-card-bg, #fff); font-weight: 700; font-size: 12.5px; cursor: pointer; color: var(--cpx-soft); transition: all .18s; }
.cpx-quick button:hover { border-color: var(--cpx-brand2); color: var(--cpx-brand2); }
.cpx-big { font-family: var(--font-d, 'Geist', 'Inter', sans-serif); font-size: 30px; font-weight: 500; letter-spacing: -.03em; }
.cpx-pick { display: grid; gap: 8px; margin-top: 4px; }
.cpx-pick .cpx-tile { padding: 12px 14px; }

/* done */
.cpx-done { text-align: center; padding: 10px 0 4px; }
.cpx-tick { width: 76px; height: 76px; border-radius: 50%; margin: 6px auto 18px; display: grid; place-items: center; color: #fff; background: var(--cpx-grad);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--cpx-brand2) 36%, transparent); animation: cpxPop .5s cubic-bezier(.34, 1.56, .64, 1) both; }
.cpx-tick svg { width: 36px; height: 36px; stroke-dasharray: 40; stroke-dashoffset: 40; animation: cpxDraw .5s .25s ease forwards; }
.cpx-done h3 { font-family: var(--font-d, 'Geist', 'Inter', sans-serif); font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 8px; }
.cpx-done p { color: var(--cpx-soft); font-size: 14.5px; line-height: 1.55; margin: 0 auto 6px; max-width: 380px; }
.cpx-ref { display: inline-block; margin: 10px 0 4px; padding: 7px 14px; border-radius: 10px; background: var(--cpx-bg); font-weight: 800; letter-spacing: .06em; font-size: 13px; font-variant-numeric: tabular-nums; }

/* loading, toast */
.cpx-spin { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: cpxRot .7s linear infinite; }
.cpx-sk { border-radius: 14px; background: linear-gradient(90deg, var(--cpx-line) 25%, rgba(255, 255, 255, .6) 37%, var(--cpx-line) 63%); background-size: 400% 100%; animation: cpxShine 1.4s ease infinite; }
.cpx-toast { position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 2147483200; max-width: calc(100vw - 32px);
  padding: 13px 20px; border-radius: 100px; background: #0B1230; color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 18px 44px rgba(8, 10, 24, .4);
  animation: cpxToast .36s cubic-bezier(.22, 1, .36, 1) both; }
.cpx-toast.is-bad { background: #8F1830; }

/* the compact version used while setting up a listing */
.cpx--setup .cpx-methods { grid-template-columns: 1fr; }
.cpx--setup .cpx-method { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cpx-setup-hd { margin-bottom: 14px; }
.cpx-setup-hd h3 { font-family: var(--font-d, 'Geist', 'Inter', sans-serif); font-size: 18px; font-weight: 600; margin: 0 0 4px; letter-spacing: -.015em; }
.cpx-setup-hd p { margin: 0; font-size: 13.5px; color: var(--cpx-soft); line-height: 1.5; }

@keyframes cpxFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cpxRise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes cpxSlide { from { transform: translateY(100%); } to { transform: none; } }
@keyframes cpxPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cpxDraw { to { stroke-dashoffset: 0; } }
@keyframes cpxShake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@keyframes cpxRot { to { transform: rotate(360deg); } }
@keyframes cpxShine { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@keyframes cpxToast { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) {
  .cpx *, .cpx-ov *, .cpx-toast { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .cpx-tick svg { stroke-dashoffset: 0; }
}
html[data-theme="dark"] .cpx, html[data-theme="dark"] .cpx-ov {
  --cpx-ink: #F4F4FB; --cpx-ink2: #E6E7F5; --cpx-soft: #B5B8D3; --cpx-faint: #8386A6; --cpx-line: rgba(255, 255, 255, .08); --cpx-line2: rgba(255, 255, 255, .16);
  --cpx-card: #14152B; --cpx-card-bg: #14152B; --cpx-bg: #0F1022; --cpx-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .3);
  --cpx-ok-bg: rgba(15, 157, 107, .18); --cpx-warn-bg: rgba(245, 177, 46, .18); --cpx-err-bg: rgba(217, 45, 74, .18); --cpx-info-bg: rgba(67, 97, 255, .2);
}
html[data-theme="dark"] .cpx-note--warn { color: #f2c46d; } html[data-theme="dark"] .cpx-note--err { color: #ff8da1; }
html[data-theme="dark"] .cpx-note--info { color: #a9b8ff; } html[data-theme="dark"] .cpx-note--ok { color: #6fe0b4; }

/* a dark page (Rewards): the hub reads the page, the sheets stay light */
.cpx--dark { --cpx-ink: #F4F4FB; --cpx-ink2: #E6E7F5; --cpx-soft: #B5B8D3; --cpx-faint: #8C8FAF; --cpx-line: rgba(255, 255, 255, .09); --cpx-line2: rgba(255, 255, 255, .18);
  --cpx-card: rgba(255, 255, 255, .05); --cpx-bg: rgba(255, 255, 255, .06); --cpx-shadow: none; }
.cpx--dark .cpx-btn--ghost { background: rgba(255, 255, 255, .04); }
.cpx--dark .cpx-note--warn { color: #f2c46d; } .cpx--dark .cpx-note--err { color: #ff8da1; } .cpx--dark .cpx-note--info { color: #a9b8ff; }
