/* Franco Pay — local preview styles. Reuses Franco Food app.css variables
   (--bg/--card/--line) and dark/light pattern; mobile-first, max-width 480px. */
:root{
  --bg:#f4f7fb; --card:#ffffff; --card2:#eef2f7; --line:#e6ecf3; --ink:#0f172a; --muted:#64748b;
  --orange:#f97316; --blue:#1a9cf0; --green:#16a34a; --amber:#d97706; --red:#dc2626;
  --radius:16px; --radius-s:12px; --fs-b:15px; --sh-sm:0 1px 4px rgba(15,23,42,.08);
  --safe-b:env(safe-area-inset-bottom,0px);
  /* Status-bar inset (8-nov-2026, blank-screen fix — Lester's iPhone):
   * with viewport-fit=cover the page extends under the iOS status bar
   * in the Capacitor shell and the header title collided with the
   * time/battery. The header pads by this inset (0px on the web, so
   * the web/PWA layout is unchanged). */
  --safe-t:env(safe-area-inset-top,0px);
}
[data-theme="dark"]{
  --bg:#0f1622; --card:#182234; --card2:#1e2c42; --line:#243349; --ink:#e8eef7; --muted:#94a3b8;
}
*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--ink);font-size:var(--fs-b);line-height:1.5;-webkit-font-smoothing:antialiased}
/* Loading screen (9-nov-2026, Lester): branded splash, dark + light.
   Colors come from the theme vars (var(--bg)/var(--ink)/var(--orange)),
   and the inline <style> in index.html already paints the right
   background before this file loads — no flash in either mode. */
#fpsplash{position:fixed;inset:0;z-index:200;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:var(--bg);transition:opacity .4s ease}
#fpsplash.hide{opacity:0;pointer-events:none}
#fpsplash img{width:84px;height:auto}
#fpsplash .sp-name{font-weight:800;font-size:22px;color:var(--ink)}
#fpsplash .sp-name .pay{color:var(--orange)}
#fpsplash .sp-spin{width:28px;height:28px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--orange);animation:sp-spin .9s linear infinite}
@keyframes sp-spin{to{transform:rotate(360deg)}}
/* Sign-in busy spinner (9-nov-2026, Lester): the sign-in button shows
   this + «Entrando…» while auth works, so the tap visibly does something. */
.fpay-spin{display:inline-block;width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;animation:fpay-spin .8s linear infinite;vertical-align:-3px;margin-right:8px}
/* Dark spinner (11-nov-2026, sign-in notice): .fpay-spin is a white
   ring — invisible on the light-blue notice. Same shape, dark ring. */
.fpay-spin-dark{display:inline-block;width:16px;height:16px;border-radius:50%;border:2px solid rgba(30,58,138,.25);border-top-color:#1e3a8a;animation:fpay-spin .8s linear infinite;vertical-align:-3px;margin-right:8px}
[data-theme="dark"] .fpay-spin-dark{border-color:rgba(191,219,254,.25);border-top-color:#bfdbfe}
@keyframes fpay-spin{to{transform:rotate(360deg)}}
#app{max-width:480px;margin:0 auto;min-height:100vh;background:var(--bg);position:relative;padding-bottom:96px}
header{position:sticky;top:0;z-index:50;display:flex;justify-content:space-between;align-items:center;padding:calc(12px + var(--safe-t)) 14px 12px;background:var(--card);border-bottom:1px solid var(--line)}
.logo{display:flex;align-items:center;gap:8px;font-weight:800;font-size:17px}
.logo img{height:32px;width:auto}
.logo .pay{color:var(--orange)}
.icon-btn{border:1px solid var(--line);background:var(--card);color:var(--ink);border-radius:999px;padding:8px 11px;font-size:13px;font-weight:700;cursor:pointer;font-family:inherit;min-height:40px}
.notice-banner{background:linear-gradient(90deg,#d97706,#b45309);color:#fff;text-align:center;padding:8px 12px;font-size:13px;font-weight:600}
.notice-banner.revoked{background:linear-gradient(90deg,#dc2626,#991b1b)}
main{padding:14px}
.screen{display:none}
.screen.active{display:block}
/* Loading screen (13-nov-2026, Lester: widget taps flashed sign-in):
   neutral wait while auth settles — centered spinner + text, never
   the sign-in screen. Spinner reuses the splash animation. */
#screen-loading{text-align:center;padding-top:30vh}
#screen-loading .sp-spin{width:28px;height:28px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--orange);animation:sp-spin .9s linear infinite;margin:0 auto 14px}
#screen-loading .ld-text{color:var(--muted);font-size:14px}
h1{font-size:21px;margin:4px 0 12px}
h2{font-size:16px;margin:18px 0 8px}
h3{font-size:14px;margin:0 0 6px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin-bottom:12px;box-shadow:var(--sh-sm)}
.muted{color:var(--muted);font-size:13px}
.small{font-size:12.5px}
.btn{display:block;width:100%;border:0;border-radius:14px;padding:14px;font-size:15px;font-weight:700;cursor:pointer;font-family:inherit;background:var(--orange);color:#fff;margin-top:10px;min-height:48px}
.btn.blue{background:var(--blue)}
.btn.green{background:var(--green)}
.btn.ghost{background:var(--card);border:1.5px solid var(--line);color:var(--ink);box-shadow:none}
.btn.danger{background:var(--red)}
.btn:disabled{opacity:.45;cursor:not-allowed}
/* New-version banner (11-nov-2026, Lester: the cache problem — the app
   itself tells the user a new version is out; one tap reloads clean.
   Fixed at the bottom, above everything, so it is visible on every
   screen, sign-in included. Same dark bar + orange button as the
   panel banner (panel-update.js); centered column on desktop. */
.fpay-update-banner{position:fixed;left:50%;transform:translateX(-50%);width:min(456px,calc(100% - 24px));bottom:calc(12px + var(--safe-b));z-index:2147483000;display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#111827;color:#fff;border:1px solid rgba(255,255,255,.18);border-radius:14px;padding:12px 14px;box-shadow:0 10px 30px rgba(0,0,0,.35);font-size:15px}
.fpay-update-banner-text{flex:1 1 auto;min-width:180px}
.fpay-update-banner-btn{background:var(--orange);color:#fff;border:0;border-radius:10px;padding:10px 16px;font-size:15px;font-weight:700;cursor:pointer;font-family:inherit;flex:0 0 auto}
.fpay-update-banner-close{background:transparent;color:#fff;border:0;font-size:16px;cursor:pointer;padding:6px;flex:0 0 auto;opacity:.8}
.btn.sm{width:auto;display:inline-block;padding:9px 14px;min-height:40px;font-size:13.5px;margin:6px 6px 0 0}
.input,select.input,textarea.input{width:100%;border:1.5px solid var(--line);border-radius:var(--radius-s);padding:13px 14px;font-size:var(--fs-b);font-family:inherit;margin-bottom:10px;background:var(--card);color:var(--ink)}
label.lbl{display:block;font-size:13px;font-weight:700;margin:10px 0 5px}
.wallet-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.wal{border-radius:var(--radius);padding:14px;border:1.5px solid var(--line);background:var(--card);cursor:pointer;text-align:left;font-family:inherit;color:var(--ink)}
.wal .amt{font-size:20px;font-weight:800}
.wal .lbl2{font-size:12.5px;font-weight:700}
.wal.avail{border-color:var(--green)} .wal.avail .amt{color:var(--green)}
/* Negative balance (Lester 5-nov-2026): a negative tile reads red, never green. */
.wal.neg{border-color:var(--red)} .wal.neg .amt{color:var(--red)}
.wal.pend{border-color:var(--amber)} .wal.pend .amt{color:var(--amber)}
.wal.auth{border-color:var(--blue)} .wal.auth .amt{color:var(--blue)}
.wal.res{border-color:var(--muted)}
.badge{display:inline-block;padding:3px 9px;border-radius:999px;font-size:12px;font-weight:700}
.b-authorized{background:#dbeafe;color:#1d4ed8}
.b-pending_release{background:#fef3c7;color:#92400e}
.b-available{background:#dcfce7;color:#166534}
.b-refunded,.b-partially_refunded{background:#fee2e2;color:#991b1b}
.b-disputed{background:#fde68a;color:#78350f}
.b-failed,.b-canceled,.b-expired{background:#e2e8f0;color:#475569}
.b-awaiting_payment,.b-processing{background:#e0e7ff;color:#3730a3}
.b-draft{background:#e2e8f0;color:#475569}
.b-pending{background:#fef3c7;color:#92400e}
.b-overdue{background:#fee2e2;color:#991b1b}
.b-paid{background:#dcfce7;color:#166534}
.b-partially_paid{background:#fef3c7;color:#92400e}
.b-pending_payment{background:#fef3c7;color:#92400e}
/* Missing statuses (13-nov-2026, Lester): without a .b- class the
   badge renders as plain text with no pill (the "OK" on the client
   screen). Green = done/sent, red = denied/lost, amber = waiting,
   gray = unknown. */
.b-ok,.b-completed,.b-sent,.b-active{background:#dcfce7;color:#166534}
.b-denied,.b-dispute_lost{background:#fee2e2;color:#991b1b}
.b-refund_pending,.b-requested{background:#fef3c7;color:#92400e}
.b-unknown{background:#e2e8f0;color:#475569}
.b-on_the_way{background:#dbeafe;color:#1e3a8a}
.tx-row{display:flex;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid var(--line);cursor:pointer}
.tx-row:last-child{border-bottom:0}
.tx-row .amt2{font-weight:800;white-space:nowrap}
.breakdown{border:1px solid var(--line);border-radius:var(--radius-s);padding:12px 14px;margin:10px 0;background:var(--card2)}
.breakdown .row{display:flex;justify-content:space-between;padding:3px 0;font-size:14px}
.breakdown .row.total{border-top:1px solid var(--line);margin-top:6px;padding-top:8px;font-weight:800;font-size:15px}
.notice{border-radius:var(--radius-s);padding:12px 14px;font-size:13.5px;margin:10px 0}
.notice.amber{background:#fef3c7;color:#78350f}
.notice.blue{background:#dbeafe;color:#1e3a8a}
.notice.green{background:#dcfce7;color:#14532d}
.notice.red{background:#fee2e2;color:#7f1d1d}
[data-theme="dark"] .notice.amber{background:#451a03;color:#fde68a}
[data-theme="dark"] .notice.blue{background:#172554;color:#bfdbfe}
[data-theme="dark"] .notice.green{background:#052e16;color:#bbf7d0}
[data-theme="dark"] .notice.red{background:#450a0a;color:#fecaca}
.locked{opacity:.75}
.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.filters select,.filters input{flex:1;min-width:110px;margin-bottom:0}
/* Statistics period selector (11-nov-2026, Lester: the buttons go
   side by side, not stacked): one row when they fit, two rows of two
   on narrow phones — never overflowing the 480px shell. The base
   .btn is full-width by default, so the flex children reset that. */
.stats-periods{display:flex;gap:8px;flex-wrap:wrap}
.stats-periods .btn{flex:1 1 calc(50% - 4px);margin-top:0;white-space:nowrap;padding:12px 8px;font-size:14px}
@media (min-width:481px){.stats-periods{flex-wrap:nowrap}.stats-periods .btn{flex:1 1 auto;min-width:0}}
/* Dynamic earnings table (11-nov-2026, Lester): aggregated rows are
   tappable (drill down); the chevron column shows it. */
.fpay-table tr.drillable{cursor:pointer}
.fpay-table tr.drillable:hover{background:var(--card2)}
.stats-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:6px 0 2px}
.stats-crumbs .btn{margin-top:0}
/* Statistics analytics (11-nov-2026, Lester: the stats screen shows
   analytics — a chart, summary tiles and the charges/refunds split).
   All colors come from the theme vars, so light and dark both read;
   the SVG bars use fixed brand green/red, which read in both modes. */
.stats-chart{margin:8px 0 4px}
.stats-chart svg{width:100%;height:auto;display:block}
.stats-chart text{fill:var(--muted);font-size:11px;font-family:inherit}
.stats-tiles{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}
@media (min-width:481px){.stats-tiles{grid-template-columns:1fr 1fr 1fr}}
.stats-tile{background:var(--card2);border-radius:var(--radius-s);padding:10px 12px}
.stats-tile .v{font-weight:800;font-size:16px;font-variant-numeric:tabular-nums;white-space:nowrap}
.stats-tile .v.neg{color:var(--red)}
.stats-tile .l{font-size:12px;color:var(--muted);font-weight:700}
.stats-tile .s{font-size:12px;color:var(--muted)}
.stats-split{margin-top:4px}
.stats-split .l{font-size:12px;color:var(--muted);font-weight:700}
.stats-split-bar{display:flex;height:14px;border-radius:999px;overflow:hidden;background:var(--card2);margin:8px 0}
.stats-split-bar .seg-c{background:var(--green)}
.stats-split-bar .seg-r{background:var(--red)}
.stats-split-legend{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:13px}
.stats-split-legend .dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:5px}
.seg{display:flex;gap:6px;margin-bottom:12px}
.seg button{flex:1;border:1.5px solid var(--line);background:var(--card);color:var(--ink);border-radius:999px;padding:9px 6px;font-size:13px;font-weight:700;cursor:pointer;font-family:inherit}
.seg button.on{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.radio-card{display:flex;gap:10px;border:1.5px solid var(--line);border-radius:var(--radius-s);padding:13px;margin-bottom:10px;cursor:pointer;background:var(--card)}
.radio-card.on{border-color:var(--orange)}
.radio-card input{margin-top:3px}
#card-element{border:1.5px solid var(--line);border-radius:var(--radius-s);padding:13px 14px;background:var(--card);margin-bottom:10px}
#pay-card-element{border:1.5px solid var(--line);border-radius:var(--radius-s);padding:13px 14px;background:var(--card);margin-bottom:10px}
/* Stripe.js renders the card fields inside this iframe element. Card numbers
   never enter our DOM, are never read, stored or logged by this app. */
#bottomnav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:480px;background:var(--card);border-top:1px solid var(--line);display:flex;z-index:60;padding-bottom:var(--safe-b)}
#bottomnav button{flex:1;border:0;background:none;color:var(--muted);font-size:11px;font-weight:700;padding:9px 2px 10px;cursor:pointer;font-family:inherit}
#bottomnav button .ic{font-size:20px;display:block}
#bottomnav button.on{color:var(--orange)}
/* Home actions carousel (9-nov-2026, Lester): the 6 home actions scroll
   sideways instead of stacking full-width. Each card is small and
   compact: a large icon on top (like a small photo, on a tile in the
   action's brand color), the title, one short description, and the
   button pinned to the bottom to perform the action. ~2.5 cards are
   visible at a time so it is obvious there is more to swipe to; a new
   action slots in as one more .act card, no layout change. Colors
   mirror .btn (orange default, green, blue) and follow the theme via
   the vars. */
/* Home/wallet action cards (2026-11-09 carousel fix): three cards fit
   exactly in the viewport — flex-basis calc((100% - 16px)/3) with an 8px
   gap — so no card is ever half-cut at the right edge. Before, cards were
   40% wide and the 3rd card ("Top up") was cut off in store screenshots
   on Home and Wallet. The row still scrolls sideways for the 6 home
   actions (now in groups of 3, snap-aligned); the wallet's 3 cards all
   fit with no scroll. Button kept narrow (11px, 6px padding) so the
   longest label ("Withdraw →") still fits the narrowest card (360px). */
.home-actions{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:4px 2px 12px;margin:0 -2px}
.home-actions::-webkit-scrollbar{display:none}
.home-actions .act{flex:0 0 calc((100% - 16px)/3);scroll-snap-align:start;border:1.5px solid var(--line);border-radius:16px;padding:14px 8px 12px;background:var(--card);color:var(--ink);font-family:inherit;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:8px;min-height:198px;box-shadow:var(--sh-sm);text-align:center}
.home-actions .act-ic{width:56px;height:56px;border-radius:16px;display:flex;align-items:center;justify-content:center;font-size:30px;line-height:1;color:#fff}
.home-actions .act-ic.orange{background:var(--orange)}
.home-actions .act-ic.green{background:var(--green)}
.home-actions .act-ic.blue{background:var(--blue)}
.home-actions .act-title{font-size:13.5px;font-weight:800;line-height:1.25}
.home-actions .act-desc{font-size:11.5px;line-height:1.35;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:31px}
.home-actions .act-btn{margin-top:auto;display:inline-block;padding:6px 6px;border-radius:999px;font-size:11px;font-weight:700;color:#fff;white-space:nowrap}
.home-actions .act-btn.orange{background:var(--orange)}
.home-actions .act-btn.green{background:var(--green)}
.home-actions .act-btn.blue{background:var(--blue)}
.home-actions .act:disabled{opacity:.45;cursor:not-allowed}
.timeline{margin:8px 0;padding-left:18px;border-left:2px solid var(--line)}
.timeline div{padding:5px 0;font-size:13.5px}
.kv{display:flex;justify-content:space-between;gap:10px;padding:5px 0;font-size:14px;border-bottom:1px solid var(--line)}
.kv:last-child{border-bottom:0}
.kv b{text-align:right;min-width:0;overflow-wrap:anywhere}
.kv span{min-width:0;max-width:60%;overflow-wrap:break-word}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:90px;background:var(--ink);color:var(--bg);padding:11px 16px;border-radius:999px;font-size:13.5px;font-weight:700;z-index:99;max-width:90vw;text-align:center}
.qr-box{text-align:center;padding:18px;border:1.5px dashed var(--line);border-radius:var(--radius);margin:10px 0}
.qr-box .qr{font-size:64px}
.mono{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12.5px;word-break:break-all}
@media (min-width:481px){#app{box-shadow:0 0 24px rgba(15,23,42,.08)}}

/* ---- Help & support (8-nov-2026) ---- */
.help-faq details{border:1px solid var(--line);border-radius:var(--radius-s);margin-bottom:8px;background:var(--card)}
.help-faq summary{cursor:pointer;padding:13px 14px;font-weight:700;font-size:14.5px;list-style:none}
.help-faq summary::-webkit-details-marker{display:none}
.help-faq summary::before{content:'› ';color:var(--orange)}
.help-faq details[open] summary::before{content:'⌄ ';color:var(--orange)}
.help-faq details p{margin:0;padding:0 14px 13px;font-size:14px;line-height:1.55}
.sup-msgs{display:flex;flex-direction:column;gap:8px;height:48vh;min-height:280px;overflow-y:auto;padding:12px;border:1px solid var(--line);border-radius:var(--radius);background:var(--card)}
.sup-msg{max-width:85%;padding:10px 13px;border-radius:14px;font-size:14.5px;line-height:1.5;background:var(--line);color:var(--ink);align-self:flex-start;white-space:pre-wrap;word-break:break-word}
.sup-msg.sup-me{background:var(--orange);color:#fff;align-self:flex-end}
.sup-resolved{align-self:center;background:#dcfce7;border:1px solid #16a34a;color:#14532d;border-radius:14px;padding:10px 16px;font-size:14px;font-weight:700;text-align:center}
[data-theme="dark"] .sup-resolved{background:#052e16;color:#bbf7d0}
.sup-star{background:none;border:0;font-size:26px;cursor:pointer;color:var(--muted);padding:2px 4px;font-family:inherit}
.sup-star:hover{color:#f59e0b}

/* ---- Top up a friend (8-nov-2026) ---- */
.tuf-who{display:flex;gap:12px;align-items:center;margin:12px 0}
.tuf-avatar{width:52px;height:52px;border-radius:50%;background:linear-gradient(135deg,#f97316,#16a34a);color:#fff;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:800;flex:none}
.tuf-name{font-size:17px}
.tuf-hero{text-align:center;margin:14px 0 6px}
.tuf-big{font-size:34px;font-weight:800;color:var(--green)}
#tuf-card-element{border:1.5px solid var(--line);border-radius:var(--radius-s);padding:13px 14px;background:var(--card);margin-bottom:10px}
.cards-list{margin:6px 0 2px}
.cards-row{display:flex;gap:8px;align-items:baseline;padding:7px 0;border-bottom:1px solid var(--line);font-size:14.5px}
.cards-row:last-child{border-bottom:0}
.cards-row .mk{font-weight:800;width:18px;text-align:center;flex:none}
.cards-row .mk.yes{color:var(--green)}
.cards-row .mk.no{color:var(--red)}
.cards-row .nm{font-weight:700}
.cards-row .nt{color:var(--muted);font-size:12.5px}

/* ---- Franco Pay announcements (Lester 9-nov-2026): photo + title +
   description + CTA button, ONE NEXT TO THE OTHER (horizontal row).
   Brand gradient card, white pill CTA. Works in light and dark mode
   (fixed gradient). ---- */
/* Announcements carousel (Lester 9-nov-2026): NOT stacked — the cards
   sit ONE NEXT TO THE OTHER in a horizontal track that moves. On the
   phone it moves with a finger swipe (native overflow-x scroll, snap);
   on the computer there are ‹ › arrows at the sides (shown only on
   hover-capable fine pointers, only when the track actually overflows).
   Each card keeps its own horizontal layout (photo | title+text | CTA).
   The carousel sits BELOW the quick-actions carousel (.home-actions). */
.fpay-ann-carousel{position:relative;margin:14px 0 4px}
.fpay-ann-track{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;overscroll-behavior-x:contain;padding:2px 2px 6px}
.fpay-ann-track::-webkit-scrollbar{display:none}
.fpay-ann-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:32px;height:32px;border-radius:50%;border:0;background:rgba(255,255,255,.96);color:#ea580c;font-size:20px;font-weight:800;line-height:1;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.28);display:none;font-family:inherit;padding:0 0 2px}
.fpay-ann-arrow--prev{left:4px}
.fpay-ann-arrow--next{right:4px}
.fpay-ann-arrow:disabled{visibility:hidden}
@media (hover:hover) and (pointer:fine){.fpay-ann-carousel--has-overflow .fpay-ann-arrow{display:block}}
.fpay-ann-card{position:relative;display:flex;align-items:center;gap:10px;padding:14px;border-radius:18px;background:linear-gradient(120deg,#f97316,#f59e0b);box-shadow:0 8px 24px rgba(249,115,22,.35);color:#fff;overflow:hidden;flex:0 0 86%;max-width:420px;scroll-snap-align:start}
.fpay-ann-media{flex:0 0 68px;width:68px;height:68px;border-radius:14px;overflow:hidden;background:rgba(255,255,255,.22);display:flex;align-items:center;justify-content:center;font-size:30px;border:2px solid rgba(255,255,255,.65)}
.fpay-ann-media img{width:100%;height:100%;object-fit:cover;display:block}
.fpay-ann-body{flex:1;min-width:0}
.fpay-ann-title{font-size:14.5px;font-weight:800;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.fpay-ann-text{margin:3px 0 0;font-size:12.5px;line-height:1.45;color:rgba(255,255,255,.92);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.fpay-ann-cta{flex:0 0 auto;max-width:104px;background:#fff;color:#ea580c;border:0;border-radius:999px;padding:9px 12px;font-size:12.5px;font-weight:800;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.18);font-family:inherit;text-align:center;line-height:1.25;text-decoration:none;display:inline-block}
.fpay-ann-x{position:absolute;top:4px;right:6px;border:0;background:rgba(0,0,0,.18);color:#fff;cursor:pointer;font-size:12px;line-height:1;padding:3px 7px;border-radius:999px;font-family:inherit}
@media (max-width:380px){.fpay-ann-media{flex-basis:64px;width:64px;height:64px}.fpay-ann-cta{padding:8px 10px;font-size:12px}.fpay-ann-card{gap:10px;padding:12px}}

/* ---------- Notifications (9-nov-2026, Lester): push + in-app inbox.
   Bell in the header with unread badge; inbox list; foreground toast.
   Brand orange for unread, same card language as the rest of the app. */
.fpay-notif-bell{position:relative}
.fpay-notif-badge{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--orange);color:#fff;font-size:11px;font-weight:800;line-height:18px;text-align:center;box-shadow:0 2px 6px rgba(0,0,0,.25)}
.fpay-notif-list{display:flex;flex-direction:column;gap:10px}
.fpay-notif-item{display:flex;align-items:flex-start;gap:10px;width:100%;text-align:left;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:14px;cursor:pointer;font-family:inherit;color:var(--ink)}
.fpay-notif-item--unread{border-color:var(--orange);background:linear-gradient(0deg,rgba(249,115,22,.06),rgba(249,115,22,.06)),var(--card)}
.fpay-notif-dot{flex:0 0 auto;width:9px;height:9px;border-radius:50%;background:var(--line);margin-top:6px}
.fpay-notif-item--unread .fpay-notif-dot{background:var(--orange)}
.fpay-notif-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.fpay-notif-title{font-size:14.5px;font-weight:800;line-height:1.3}
.fpay-notif-text{font-size:13px;line-height:1.45;color:var(--muted)}
.fpay-notif-time{font-size:12px;color:var(--muted)}
.fpay-notif-go{flex:0 0 auto;font-size:20px;color:var(--muted);line-height:1}
.fpay-notif-toast{position:fixed;left:12px;right:12px;bottom:76px;z-index:200;background:var(--card);border:1px solid var(--orange);border-radius:16px;padding:12px 14px;box-shadow:0 10px 30px rgba(0,0,0,.25);cursor:pointer}
.fpay-notif-toast-title{font-size:14px;font-weight:800;color:var(--ink)}
.fpay-notif-toast-body{font-size:13px;color:var(--muted);margin-top:2px}

/* ---------- "Get the app" banner (10-nov-2026, Lester): web only.
   Bottom floating card above the bottom nav (76px) or the screen edge
   (12px) when the nav is hidden (sign-in). Brand orange button, app
   icon on the left, dismiss X. Dark-mode aware via --card/--ink. */
#fpay-appbanner{position:fixed;left:12px;right:12px;z-index:9990}
.fpay-appbanner-card{display:flex;align-items:center;gap:12px;max-width:560px;margin:0 auto;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:16px;padding:12px 14px;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.fpay-appbanner-icon{flex:0 0 auto;width:44px;height:44px;border-radius:12px;display:block}
.fpay-appbanner-body{flex:1 1 150px;min-width:0;text-align:left}
.fpay-appbanner-title{font-weight:800;font-size:14.5px;line-height:1.3}
.fpay-appbanner-text{font-size:13px;line-height:1.45;color:var(--muted);margin-top:2px}
.fpay-appbanner-btn{flex:0 0 auto;background:#f97316;color:#fff;font-weight:800;padding:10px 16px;border-radius:10px;text-decoration:none;white-space:nowrap;font-size:14px}
.fpay-appbanner-x{flex:0 0 auto;border:0;background:transparent;font-size:16px;cursor:pointer;color:var(--muted);padding:6px;font-family:inherit}

/* Earnings breakdown table (11-nov-2026, Lester): clean Franco Pay
   table, readable on mobile (horizontal scroll) and desktop. */
.fpay-table-wrap{overflow-x:auto;margin:10px 0 4px}
.fpay-table{width:100%;border-collapse:collapse;font-size:14px;min-width:340px}
.fpay-table th{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);text-align:left;padding:8px 10px;border-bottom:2px solid var(--line)}
.fpay-table td{padding:10px;border-bottom:1px solid var(--line)}
.fpay-table tbody tr:nth-child(even){background:var(--card2)}
.fpay-table th.num,.fpay-table td.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.fpay-table tfoot td{font-weight:800;border-top:2px solid var(--line);border-bottom:0}
.fpay-table td.neg{color:var(--red)}

/* What's New banner + screen (12-nov-2026, Lester). Every color comes
   from the theme variables — the same pairs in light and dark mode, so
   the banner and the screen read in both. No fixed light background
   with theme text, no fixed dark background with theme text (the
   developers dark-mode bug, 12-nov-2026). The orange is only a left
   accent border, never text on a card. Contrast of every pair is
   asserted in both themes in js/franco-pay.checks.js §22. Banner
   retouch 12-nov-2026 13:42 (Lester): narrow centred card
   (max-width 400px, side margins), compact padding, 44px X. */
/* Withdrawal hub buttons — pairs, brand cards (12-nov-2026, Lester):
   2-column grid, company logo on top + method name below. Stripe
   (bank + auto) blurple #635BFF; Remitly (card + cash) dark blue
   #212E61. Appended after .btn so these override its orange
   background / margin-top at equal specificity. Grid items stretch,
   so each row stays even even when a label wraps to two lines. */
.wd-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0}
.wd-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:#fff;border:2px solid var(--line);border-radius:16px;padding:14px 8px;margin-top:0;min-height:96px;text-align:center}
.wd-btn .wd-logo{height:28px;width:auto;max-width:100%}
.wd-btn span{font-size:14px;font-weight:700;line-height:1.25}
.wd-btn-stripe{border-color:#635BFF;color:#635BFF}
.wd-btn-remitly{border-color:#212E61;color:#212E61}
/* Withdrawal status detail (12-nov-2026, Lester): tappable rows +
   the status progress bar in the brand stripes (orange -> blue ->
   green, the logo's three arrows) + the 3-step timeline. Theme
   variables only. */
.wd-row{cursor:pointer}
.wd-progress{height:10px;border-radius:999px;background:var(--line);overflow:hidden;margin:12px 0 6px}
.wd-progress-fill{height:100%;border-radius:999px;background:repeating-linear-gradient(-45deg,var(--orange) 0 10px,var(--blue) 10px 20px,var(--green) 20px 30px)}
.wd-progress-fill.p0{width:0%}
.wd-progress-fill.p1{width:33%}
.wd-progress-fill.p2{width:66%}
.wd-progress-fill.p3{width:100%}
.wd-progress-fill.term{background:var(--red)}
.wd-tl{margin:6px 0 2px}
.wd-tl-step{display:flex;align-items:center;gap:10px;padding:7px 0;font-size:14px}
.wd-tl-step.current{font-weight:700}
.wd-tl-step.pending{color:var(--muted)}
.wd-tl-dot{flex:0 0 auto;width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;color:#fff;background:var(--muted)}
.wd-tl-step.pending .wd-tl-dot{background:transparent;border:2px solid var(--line);color:var(--muted)}
.wd-tl-step.done .wd-tl-dot.c1,.wd-tl-step.current .wd-tl-dot.c1{background:var(--orange)}
.wd-tl-step.done .wd-tl-dot.c2,.wd-tl-step.current .wd-tl-dot.c2{background:var(--blue)}
.wd-tl-step.done .wd-tl-dot.c3,.wd-tl-step.current .wd-tl-dot.c3{background:var(--green)}
.wd-live-dot{color:var(--green)}
.wd-pickup-code{font-size:30px;font-weight:800;letter-spacing:3px;text-align:center;padding:10px 0;color:var(--ink)}
.wd-pickup-code-sub{text-align:center}
.wd-map-btn{display:block;text-align:center;margin:8px 0}

.fpay-wn-banner{display:flex;align-items:stretch;width:calc(100% - 24px);max-width:400px;margin:4px auto 14px;background:var(--card);border:1px solid var(--line);border-left:4px solid var(--orange);border-radius:var(--radius-s);box-shadow:var(--sh-sm);overflow:hidden}
.fpay-wn-banner-body{flex:1;display:flex;align-items:center;gap:10px;background:transparent;border:0;padding:10px 12px;text-align:left;cursor:pointer;font-family:inherit;color:var(--ink);min-width:0}
.fpay-wn-banner-ic{font-size:18px;line-height:1;flex:0 0 auto}
.fpay-wn-banner-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.fpay-wn-banner-text b{font-size:14.5px;line-height:1.3;color:var(--ink)}
.fpay-wn-banner-text span{font-size:12.5px;line-height:1.35;color:var(--muted)}
.fpay-wn-banner-chev{flex:0 0 auto;font-size:20px;line-height:1;font-weight:700;color:var(--muted)}
.fpay-wn-banner-x{flex:0 0 auto;display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;background:transparent;border:0;border-left:1px solid var(--line);color:var(--muted);font-size:16px;cursor:pointer;padding:0 12px;font-family:inherit}
.fpay-wn-banner-x:hover{color:var(--ink)}
.wn-list{margin:6px 0 0;padding-left:20px}
.wn-list li{margin-bottom:6px}

/* ---------- Demos banner (13-nov-2026, Lester) ---------- */
/* Two small demo cards side by side at the top of Home, each with an
   image, a title and one short description. Small by design: the banner
   must not push the wallet down. Dismissible with the X; the demos stay
   in Help. */
.demo-banner{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:10px;margin:12px 0;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.demo-banner-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.demo-banner-head span{font-size:13px;font-weight:700;color:var(--ink)}
.demo-banner-x{background:transparent;border:0;font-size:18px;line-height:1;color:var(--muted);cursor:pointer;padding:4px 8px;font-family:inherit}
.demo-banner-x:hover{color:var(--ink)}
.demo-banner-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.demo-card{display:block;text-decoration:none;color:var(--ink);border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--card2)}
.demo-card img{display:block;width:100%;height:64px;object-fit:cover}
.demo-card b{display:block;font-size:12px;line-height:1.25;padding:7px 8px 2px}
.demo-card span{display:block;font-size:11px;line-height:1.35;color:var(--muted);padding:0 8px 8px}
.demo-card:active{background:var(--line)}
