:root {
  --ink: #14162B;
  --ink-2: #4A4F6B;
  --ink-3: #7F84A0;
  --paper: #F3F5FB;
  --surface: #FFFFFF;
  --line: #E1E4F0;
  --cobalt: #2340E8;
  --cobalt-deep: #1A2FB0;
  --cobalt-soft: #E6EAFF;
  --mango: #FFB627;
  --mango-soft: #FFF2D3;
  --leaf: #12A16B;
  --leaf-soft: #DDF5EA;
  --red: #D93A3A;
  --red-soft: #FCE4E4;
  --on-cobalt: #FFFFFF;
  --radius-lg: 22px;
  --radius: 14px;
  --radius-sm: 9px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ECEEF8;
    --ink-2: #B4B9D2;
    --ink-3: #8389A6;
    --paper: #0F1122;
    --surface: #181B33;
    --line: #2A2E4D;
    --cobalt: #4D66FF;
    --cobalt-deep: #2A3FCF;
    --cobalt-soft: #222A5C;
    --mango-soft: #3A2F14;
    --leaf: #35C98E;
    --leaf-soft: #133A2B;
    --red: #FF6B6B;
    --red-soft: #3E1A1F;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--body);
  min-height: 100dvh;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 1.9rem; font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--cobalt); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--mango); outline-offset: 2px; }
.boot { padding: 40vh 0; text-align: center; color: var(--ink-3); }

/* ---------- shell ---------- */
.shell { max-width: 620px; margin: 0 auto; padding: 0 16px calc(96px + env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 12px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 1.2rem; text-decoration: none; color: var(--ink); }
.brand svg { width: 30px; height: 30px; }
.who { font-size: .9rem; color: var(--ink-2); }

/* the ticket: the one loud element */
.ticket {
  position: relative;
  background: var(--cobalt);
  color: var(--on-cobalt);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 22px;
  overflow: hidden;
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; left: 50%; width: 22px; height: 22px; margin-left: -11px;
  background: var(--paper); border-radius: 50%;
}
.ticket::before { top: -11px; }
.ticket::after { bottom: -11px; }
.ticket-half { padding: 18px 20px 16px; }
.ticket-half + .ticket-half { border-left: 2px dashed rgba(255,255,255,.35); }
.ticket-label { font-size: .85rem; opacity: .85; }
.ticket-value { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 7vw, 2.4rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.ticket-value small { font-size: .9rem; font-weight: 700; margin-left: 4px; }
.ticket-half.money .ticket-value { color: var(--mango); }

/* bottom nav */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar-inner { max-width: 620px; margin: 0 auto; display: flex; }
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 2px 10px; text-decoration: none; color: var(--ink-3); font-size: .72rem; font-weight: 600;
}
.tab svg { width: 23px; height: 23px; }
.tab[aria-current="page"] { color: var(--cobalt); }

/* ---------- sections ---------- */
.section { margin-bottom: 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.hint { color: var(--ink-2); font-size: .92rem; }
.muted { color: var(--ink-3); font-size: .88rem; }

.panel { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.panel-pad { padding: 16px; }

.rows > .row + .row { border-top: 1px solid var(--line); }
.row { padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; overflow-wrap: anywhere; }
.row-sub { color: var(--ink-2); font-size: .88rem; overflow-wrap: anywhere; }
.row-side { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.empty { padding: 26px 18px; text-align: center; color: var(--ink-2); }
.empty strong { display: block; color: var(--ink); font-family: var(--display); font-size: 1.1rem; margin-bottom: 4px; }

/* platform marks */
.pf {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: .95rem; color: #fff;
}
.pf-tiktok { background: #111322; }
.pf-facebook { background: #1877F2; }
.pf-instagram { background: #C13584; }
.pf-youtube { background: #E62117; }
@media (prefers-color-scheme: dark) { .pf-tiktok { background: #000; box-shadow: inset 0 0 0 1px #3a3f66; } }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.chip-boost { background: var(--mango); color: #2A1E00; }
.chip-ok { background: var(--leaf-soft); color: var(--leaf); }
.chip-wait { background: var(--cobalt-soft); color: var(--cobalt); }
.chip-bad { background: var(--red-soft); color: var(--red); }
.chip-neutral { background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }
.reward { font-family: var(--display); font-weight: 800; font-size: 1.05rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.reward.money { color: var(--leaf); }

/* buttons */
.btn {
  appearance: none; border: 0; cursor: pointer; border-radius: 999px;
  padding: 10px 18px; font-weight: 700; font-size: .95rem; line-height: 1.2;
  background: var(--cobalt); color: #fff; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px;
}
.btn:hover { background: var(--cobalt-deep); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--cobalt-soft); }
.btn-ok { background: var(--leaf); }
.btn-ok:hover { background: var(--leaf); filter: brightness(.92); }
.btn-danger { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red-soft); }
.btn-danger:hover { background: var(--red-soft); }
.btn-sm { padding: 6px 13px; min-height: 34px; font-size: .86rem; }
.btn-block { width: 100%; }

/* forms */
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 5px; }
.field > span { font-weight: 600; font-size: .9rem; }
.field small { color: var(--ink-3); font-size: .82rem; }
.input, select.input, textarea.input {
  width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--radius-sm);
  padding: 10px 12px; min-height: 44px;
}
textarea.input { min-height: 90px; resize: vertical; }
.input:focus { border-color: var(--cobalt); outline: none; box-shadow: 0 0 0 3px var(--cobalt-soft); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .grid-2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--cobalt); }
.check.on { border-color: var(--mango); background: var(--mango-soft); }
.cost { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--paper); font-weight: 600; }
.cost b { font-family: var(--display); font-size: 1.15rem; }

/* segmented tabs */
.seg { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--line); padding: 4px; border-radius: 999px; margin-bottom: 16px; overflow-x: auto; }
.seg a { flex: 1; text-align: center; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.seg a[aria-current="page"] { background: var(--cobalt); color: #fff; }

/* notices */
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--mango-soft); color: var(--ink); font-size: .92rem; margin-bottom: 16px; }
.notice.info { background: var(--cobalt-soft); }
.notice svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }

.code {
  font-family: var(--display); font-weight: 800; letter-spacing: .06em; font-size: 1.2rem;
  background: var(--mango-soft); padding: 4px 10px; border-radius: 8px; display: inline-block; user-select: all;
}
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.progress > i { display: block; height: 100%; background: var(--cobalt); border-radius: 999px; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stat b { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 800; }
.stat span { color: var(--ink-2); font-size: .85rem; }

/* conditions d'utilisation */
.legal-page h1 { font-size: 1.6rem; margin: 6px 0 12px; text-wrap: balance; }
.legal { color: var(--ink); font-size: .95rem; line-height: 1.6; }
.legal h3 { margin: 22px 0 6px; font-size: 1.05rem; }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 4px; }
.legal .legal-meta { color: var(--ink-3); font-size: .85rem; }
.legal-box { max-height: 52vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 8px; }
.check a { color: var(--cobalt); }
.check.invalid, .field.invalid .input { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }

/* commandes pub */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.choice input { accent-color: var(--cobalt); width: 18px; height: 18px; margin: 0; }
.choice:has(input:checked) { border-color: var(--cobalt); background: var(--cobalt-soft); }
.invoice { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--mango-soft); font-weight: 600; }
.invoice b { font-family: var(--display); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.assign { display: flex; gap: 6px; align-items: center; }
.assign .input { width: 110px; min-height: 36px; padding: 6px 10px; }

/* tâches : groupes */
.locked { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border: 1.5px dashed var(--mango); background: var(--mango-soft); }
.group-paid { border-left: 4px solid var(--mango); }

.input[readonly] { background: var(--paper); color: var(--ink-2); border-style: dashed; cursor: not-allowed; }

/* parrainage */
.ref-link { display: flex; gap: 8px; margin-top: 12px; }
.ref-link .input { flex: 1; min-width: 0; font-size: .88rem; }
.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.ref-stats div { display: flex; flex-direction: column; }
.ref-stats b { font-family: var(--display); font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.ref-stats span { color: var(--ink-2); font-size: .8rem; }

/* pass */
.pass-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
@media (max-width: 360px) { .pass-grid { grid-template-columns: 1fr; } }
.pass-bronze { --tier: #B5733A; }
.pass-argent { --tier: #8E98AD; }
.pass-or { --tier: var(--mango); }
.pass-diamant { --tier: var(--cobalt); }
.pass { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--tier); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pass.on { box-shadow: inset 0 0 0 2px var(--tier); }
.pass-head { display: flex; flex-direction: column; gap: 2px; }
.pass-name { font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.pass-price { font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; }
.pass-price small { font-size: .72rem; font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.pass-perks { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: .84rem; color: var(--ink-2); flex: 1; }
.pass-perks li { padding-left: 16px; position: relative; }
.pass-perks li::before { content: "✓"; position: absolute; left: 0; color: var(--leaf); font-weight: 700; }
.pass .btn { width: 100%; }
.tier-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--tier); color: #fff; vertical-align: 1px; }
.tier-badge.pass-or { color: #2A1E00; }

.sub-list { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; display: grid; gap: 8px; }
.sub-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: .9rem; flex-wrap: wrap; }

/* auth */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-hero { background: var(--cobalt); color: #fff; border-radius: var(--radius-lg); padding: 26px 22px 30px; margin-bottom: -14px; }
.auth-hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); margin: 14px 0 8px; }
.auth-hero p { opacity: .9; }
.auth-hero .brand { color: #fff; }
.auth-points { display: grid; gap: 6px; margin-top: 16px; font-size: .92rem; }
.auth-points div { display: flex; gap: 8px; }
.auth-points b { color: var(--mango); }
.auth-form { position: relative; padding: 20px; }

/* toast */
#toast {
  position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translate(-50%, -20px);
  background: var(--ink); color: var(--paper); padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: .92rem;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); z-index: 50;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { background: var(--red); color: #fff; }

@media (prefers-reduced-motion: reduce) { #toast { transition: none; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* rappel Pass */
.nudge { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; padding: 16px; background: rgba(10, 12, 30, .55); animation: nudgeFade .2s ease-out; }
.nudge-card { position: relative; width: 100%; max-width: 420px; background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); padding: 22px 20px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.3); animation: nudgeUp .28s ease-out; }
.nudge-card h2 { font-family: var(--display); font-size: 1.35rem; line-height: 1.2; margin: 6px 0 8px; }
.nudge-card p { margin: 0 0 10px; color: var(--ink-2); }
.nudge-tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); background: var(--mango); border-radius: 999px; padding: 4px 10px; }
.nudge-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--ink-3); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.nudge-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.nudge-actions .btn { flex: 1 1 140px; }
@media (min-width: 640px) { .nudge { align-items: center; } }
@keyframes nudgeFade { from { opacity: 0; } }
@keyframes nudgeUp { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nudge, .nudge-card { animation: none; } }
.pass-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; margin-bottom: 14px; border-radius: var(--radius); background: var(--mango-soft); color: var(--ink); text-decoration: none; font-size: .9rem; border: 1px solid var(--mango); }
.pass-strip .ps-go { font-weight: 700; white-space: nowrap; color: var(--cobalt); }
.nudge-fine { font-size: .82rem; margin: 0 0 14px !important; }
.nudge-tag-green { background: var(--leaf); color: #fff; }
.nudge-actions a.btn { text-align: center; text-decoration: none; }
.kyc-shots { display: flex; gap: 10px; margin: 8px 0; flex-wrap: wrap; }
.kyc-shot { display: flex; flex-direction: column; gap: 4px; width: 140px; font-size: .8rem; color: var(--ink-2); text-decoration: none; }
.kyc-shot img { width: 140px; height: 100px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--paper); }
.kyc-ok { color: var(--leaf); }
input[type="file"].input { padding: 10px; }
.ticket-sub { font-size: .72rem; opacity: .85; margin-top: 2px; }
.warn-name { background: var(--red-soft); }
.warn-text { color: var(--red) !important; font-weight: 600; }
.btn-tiktok { background: #111; color: #fff; border-color: #111; }
.proved { color: var(--leaf); font-weight: 600; }
.btn-tiktok:hover, .btn-tiktok:focus { background: #000; color: #fff; }
@media (prefers-color-scheme: dark) { .btn-tiktok { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); } }
.fb-verify { margin: 8px 0 4px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--mango-soft); font-size: .88rem; }
.fb-verify p { margin: 0 0 6px; }
.fb-code { white-space: nowrap; font-family: ui-monospace, Menlo, monospace; font-size: 1.15rem; font-weight: 800; letter-spacing: .08em; padding: 6px 10px; margin: 4px 0 8px; border-radius: 8px; background: var(--surface); display: inline-block; user-select: all; }
.fb-code-sm { font-family: ui-monospace, Menlo, monospace; letter-spacing: .05em; }
.btn-fb { background: #1877F2; color: #fff; }
.btn-fb:hover, .btn-fb:focus { background: #0f63d6; color: #fff; }
.nudge-tag-fb { background: #1877F2; color: #fff; }
.fb-choices { display: grid; gap: 8px; margin-top: 6px; }
.fb-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border-radius: var(--radius); padding: 10px 14px; text-align: left; }
.fb-choice span { font-weight: 500; font-size: .85rem; color: var(--ink-2); }

/* paiement Mobile Money sur le site */
.paysheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; background: rgba(10, 12, 30, .55); animation: nudgeFade .2s ease-out; }
.ps-card { position: relative; width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto; background: var(--surface); color: var(--ink); border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.25); animation: nudgeUp .28s ease-out; }
@media (min-width: 640px) { .paysheet { align-items: center; padding: 16px; } .ps-card { border-radius: var(--radius-lg); } }
@media (prefers-reduced-motion: reduce) { .paysheet, .ps-card { animation: none; } }
.ps-head { padding-right: 36px; margin-bottom: 12px; }
.ps-label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-3); }
.ps-amount { font-family: var(--display); font-size: 2rem; line-height: 1.1; margin: 2px 0 0; letter-spacing: -.01em; }
.ps-amount small { font-size: .95rem; font-weight: 700; color: var(--ink-2); }
.ps-note { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--cobalt-soft); font-size: .88rem; color: var(--ink); }
.ps-form { display: grid; gap: 14px; }
.ps-nets { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ps-nets legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; padding: 0; }
.ps-net { position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; font-size: .9rem; line-height: 1.2; transition: border-color .15s, box-shadow .15s; }
.ps-net input { position: absolute; opacity: 0; pointer-events: none; }
.ps-net.on { border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-soft); }
.ps-net:focus-within { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.ps-logo { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1rem; }
.ps-net-name { min-width: 0; overflow-wrap: anywhere; }
.ps-tel { display: flex; align-items: stretch; gap: 0; }
.ps-dial { flex: none; display: flex; align-items: center; gap: 4px; padding: 0 10px; border: 1.5px solid var(--line); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--paper); font-weight: 700; font-size: .92rem; white-space: nowrap; }
.ps-tel .input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; min-width: 0; font-size: 1.05rem; letter-spacing: .02em; }
.ps-otp { padding: 12px; border-radius: var(--radius-sm); background: var(--mango-soft); display: grid; gap: 8px; }
.ps-otp p { margin: 0; font-size: .88rem; }
.ps-hint { margin: -4px 0 0; font-size: .85rem; color: var(--ink-2); }
.ps-sum { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--ink-2); margin: -6px 0 0; }
.ps-total { color: var(--ink); font-weight: 700; font-size: 1rem; margin-top: -10px; }
.ps-err { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--red-soft); color: var(--red); font-weight: 600; font-size: .9rem; }
.ps-fine { margin: 0; font-size: .8rem; color: var(--ink-3); text-align: center; }
.ps-link { appearance: none; border: 0; background: none; padding: 0; color: var(--cobalt); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; display: inline; }
.ps-msg { color: var(--ink-2); }
.ps-wait { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 6px 0 2px; }
.ps-wait h3 { font-family: var(--display); font-size: 1.3rem; margin: 4px 0 0; }
.ps-wait p { margin: 0; color: var(--ink-2); }
.ps-wait .nudge-actions { width: 100%; margin-top: 4px; }
.ps-wait > .btn { width: 100%; }
.ps-status { font-size: .88rem; font-weight: 600; color: var(--ink) !important; }
.ps-phone { width: 64px; height: 64px; border-radius: 50%; background: var(--cobalt-soft); position: relative; display: grid; place-items: center; }
.ps-phone::before { content: ""; width: 22px; height: 36px; border: 3px solid var(--cobalt); border-radius: 6px; }
.ps-phone::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--cobalt); animation: psPulse 1.6s ease-out infinite; }
@keyframes psPulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.5); opacity: 0; } }
.ps-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--cobalt); animation: psSpin .8s linear infinite; }
@keyframes psSpin { to { transform: rotate(360deg); } }
.ps-ok, .ps-ko { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; font-weight: 800; }
.ps-ok { background: var(--leaf-soft); color: var(--leaf); }
.ps-ko { background: var(--red-soft); color: var(--red); }
@media (prefers-reduced-motion: reduce) { .ps-phone::after, .ps-spin { animation: none; } }
