/* Le Franc Paysan — landing style (inspired by lefrancpaysan.ch) */
:root {
  --lfp-ink: #0f393b;
  --lfp-ink-soft: #1a4f52;
  --lfp-cream: #f5f3ee;
  --lfp-cream-dark: #ebe6dc;
  --lfp-olive: #897c01;
  --lfp-olive-soft: rgba(137, 124, 1, 0.14);
  --lfp-coral: #ef8451;
  --lfp-muted: #5a6a6b;
  --lfp-white: #ffffff;
  --lfp-radius: 12px;
  --lfp-max: 42rem;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  font-size: 17px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--lfp-ink);
  background: linear-gradient(165deg, var(--lfp-cream) 0%, var(--lfp-cream-dark) 55%, #e4efe8 100%);
  line-height: 1.55;
}

a {
  color: var(--lfp-ink-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--lfp-olive);
}

.wrap {
  max-width: var(--lfp-max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

header.site {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

header.site img.logo {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: var(--lfp-white);
  box-shadow: 0 2px 12px rgba(15, 57, 59, 0.12);
  object-fit: contain;
}

header.site .brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

header.site .brand strong {
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--lfp-ink);
}

header.site .brand span {
  font-size: 0.92rem;
  color: var(--lfp-muted);
}

.badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--lfp-olive-soft);
  color: var(--lfp-ink);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Stage / TESTPAYSAN — coral accent (same brand as lefrancpaysan.ch header coral) */
.badge.stage {
  background: rgba(239, 132, 81, 0.2);
  color: var(--lfp-ink);
  border: 1px solid rgba(239, 132, 81, 0.45);
}

.banner-stage {
  background: var(--lfp-ink);
  color: var(--lfp-cream);
  border-radius: var(--lfp-radius);
  padding: 0.9rem 1.15rem;
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(15, 57, 59, 0.18);
}

.banner-stage strong {
  color: var(--lfp-coral);
}

.banner-stage a {
  color: var(--lfp-cream);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.banner-stage a:hover {
  color: var(--lfp-coral);
}

/* Prominent communal demo account (shared pool) on stage hubs */
.card.callout-communal {
  border: 2px solid var(--lfp-coral);
  background: linear-gradient(180deg, #fff8f4 0%, var(--lfp-white) 55%);
  box-shadow: 0 6px 28px rgba(239, 132, 81, 0.14);
  margin-bottom: 1.25rem;
}

.card.callout-communal h2 {
  font-size: 1.15rem;
  color: var(--lfp-ink);
}

.communal-id {
  display: inline-block;
  margin: 0.35rem 0 0.5rem;
  padding: 0.35rem 0.65rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--lfp-ink);
  background: rgba(239, 132, 81, 0.16);
  border: 1px solid rgba(239, 132, 81, 0.45);
  border-radius: 6px;
}

.card.callout-communal .communal-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lfp-coral);
  margin-bottom: 0.15rem;
}

.communal-creds {
  display: grid;
  gap: 0.65rem;
  margin: 0.85rem 0 1rem;
}

@media (min-width: 520px) {
  .communal-creds {
    grid-template-columns: 1fr 1fr;
  }
}

.communal-creds .cred {
  background: rgba(15, 57, 59, 0.04);
  border: 1px solid rgba(15, 57, 59, 0.1);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

.communal-creds .cred-k {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lfp-ink-soft);
  margin-bottom: 0.25rem;
}

.communal-creds .cred-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}

.communal-id {
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0.65rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--lfp-ink);
  background: rgba(239, 132, 81, 0.16);
  border: 1px solid rgba(239, 132, 81, 0.45);
  border-radius: 6px;
  word-break: break-all;
}

.cred-copy {
  appearance: none;
  border: 1px solid rgba(239, 132, 81, 0.55);
  background: #fff;
  color: var(--lfp-ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  cursor: pointer;
}

.cred-copy:hover {
  background: rgba(239, 132, 81, 0.12);
}

.cred-copy:disabled {
  opacity: 0.75;
  cursor: default;
}

.communal-balance-line {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
}

.communal-balance-line strong {
  color: var(--lfp-ink);
  font-variant-numeric: tabular-nums;
}

.btn-communal {
  display: inline-block;
  margin: 0.15rem 0 0.85rem;
  padding: 0.7rem 1.1rem;
  background: var(--lfp-coral);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: 8px;
  box-shadow: 0 3px 14px rgba(239, 132, 81, 0.35);
}

.btn-communal:hover {
  filter: brightness(1.05);
}

.communal-steps {
  margin: 0.25rem 0 0.5rem;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  color: var(--lfp-ink-soft);
}

.communal-steps li {
  margin-bottom: 0.25rem;
}

/* —— Communal withdraw HERO (primary path) —— */
.hub-step-money h3 {
  font-size: 1.35rem;
}
.step-tagline {
  margin: 0.15rem 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a5c38;
  letter-spacing: 0.01em;
}
.communal-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin: 0.25rem 0 0.75rem;
  padding: 1.1rem 1rem 1.15rem;
  text-align: center;
  background: linear-gradient(165deg, #eef8f1 0%, #f7fbf8 55%, #fff 100%);
  border: 2px solid #2d8a54;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(30, 90, 50, 0.1);
}
.communal-hero-lead {
  margin: 0 0 0.25rem;
  max-width: 28rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: #1e3328;
}
.communal-hero-qr {
  margin: 0.35rem auto 0.15rem;
}
.communal-hero-qr .goa-pay-taler-qr {
  width: min(260px, 72vw);
  height: min(260px, 72vw);
}
.communal-hero-qr .goa-pay-taler-qr__inner img {
  width: min(220px, 62vw) !important;
  height: min(220px, 62vw) !important;
  max-width: 100%;
}
.communal-hero .meta-uri {
  display: block;
  max-width: min(100%, 22rem);
  margin: 0.25rem auto 0;
  font-size: 0.7rem;
  word-break: break-all;
  color: #2a5a9a;
  opacity: 0.85;
}
.btn-communal-lg {
  margin-top: 0.35rem !important;
  padding: 0.7rem 1.35rem !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
}
.btn-quiet {
  appearance: none;
  margin: 0.15rem 0 0;
  padding: 0.25rem 0.5rem;
  border: none;
  background: transparent;
  color: #5a6a5e;
  font: inherit;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.btn-quiet:hover {
  color: #1e3a28;
}
/* bank page callout already green; keep hero inside without double frame clash */
.card.callout-communal .communal-hero {
  border-width: 1.5px;
  box-shadow: 0 2px 12px rgba(30, 90, 50, 0.08);
}

/* —— Optional bank / personal account (de-emphasized) —— */
.optional-fold {
  margin-top: 1.1rem;
  padding: 0.35rem 0 0;
  border-top: 1px dashed rgba(0, 0, 0, 0.14);
  color: #5a665c;
  font-size: 0.9rem;
}
.optional-fold > summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 0.88rem;
  color: #6a766c;
  list-style: disclosure-closed;
  padding: 0.35rem 0;
}
.optional-fold[open] > summary {
  margin-bottom: 0.55rem;
  color: #4a564c;
}
.optional-fold.card-optional {
  display: block;
  margin: 1rem 0;
  padding: 0.55rem 0.85rem 0.75rem;
  border: 1px dashed #c5cfc6;
  border-radius: 10px;
  background: #fafbfa;
  border-top: 1px dashed #c5cfc6;
}
.optional-note {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  line-height: 1.4;
  color: #667066;
}
.optional-sub {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a867c;
}
.optional-links {
  margin: 0.65rem 0 0;
  font-size: 0.86rem;
  color: #667066;
}
.optional-links a {
  color: #4a6a58;
}
.btn-secondary {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #9ab0a0;
  background: #f4f7f4;
  color: #1e3a28;
  font: inherit;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}
.btn-secondary:hover {
  background: #e8efe9;
}
button.btn-secondary {
  appearance: none;
}

.communal-cred-note {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--lfp-ink-soft);
}

body.stage {
  background: linear-gradient(165deg, #f7f1ea 0%, var(--lfp-cream) 45%, #e8f0eb 100%);
  /* room for sticky stage bar */
  padding-bottom: 5.5rem;
}

/* Sticky bottom bar — stage only: test money notice */
.stage-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--lfp-ink);
  color: var(--lfp-cream);
  border-top: 3px solid var(--lfp-coral);
  box-shadow: 0 -6px 24px rgba(15, 57, 59, 0.22);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  line-height: 1.4;
}

.stage-sticky .stage-sticky-inner {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.35rem 1rem;
}

.stage-sticky .stage-sticky-label {
  flex: 0 0 auto;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--lfp-coral);
  padding: 0.15rem 0.5rem;
  border: 1px solid rgba(239, 132, 81, 0.55);
  border-radius: 4px;
  background: rgba(239, 132, 81, 0.12);
}

.stage-sticky .stage-sticky-text {
  flex: 1 1 16rem;
  margin: 0;
  color: var(--lfp-cream);
}

.stage-sticky .stage-sticky-text strong {
  color: #fff;
}

@media (max-width: 520px) {
  body.stage {
    padding-bottom: 7.5rem;
  }
  .stage-sticky {
    font-size: 0.82rem;
    padding: 0.65rem 0.85rem;
  }
}

h1 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  line-height: 1.25;
  color: var(--lfp-ink);
  font-weight: 700;
}

.lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: var(--lfp-ink-soft);
}

.card {
  background: var(--lfp-white);
  border-radius: var(--lfp-radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 24px rgba(15, 57, 59, 0.07);
  border: 1px solid rgba(15, 57, 59, 0.06);
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--lfp-ink);
}

.card p {
  margin: 0 0 0.65rem;
  color: var(--lfp-muted);
}

.card p:last-child {
  margin-bottom: 0;
}

.card code,
.mono {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  background: var(--lfp-cream);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  color: var(--lfp-ink);
}

.links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.links li {
  margin: 0.45rem 0;
}

.links a {
  font-weight: 600;
}

footer.site {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 57, 59, 0.1);
  font-size: 0.88rem;
  color: var(--lfp-muted);
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-bottom: 0.75rem;
}

/* Site build stamp (footer only) — not the same as “chiffres mis à jour” */
.site-build {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: var(--lfp-muted);
  opacity: 0.92;
}
.site-build time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Friendly trial stats (stage landings) — separate from site build */
.site-stats {
  background: var(--lfp-white);
  border-radius: var(--lfp-radius);
  padding: 1.15rem 1.25rem 1.05rem;
  margin: 0 0 1rem;
  box-shadow: 0 4px 24px rgba(15, 57, 59, 0.07);
  border: 1px solid rgba(15, 57, 59, 0.06);
}
.site-stats[hidden] {
  display: none !important;
}
.site-stats h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--lfp-ink);
}
.site-stats .stats-lead {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: var(--lfp-muted);
}
.site-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.75rem;
}
@media (min-width: 480px) {
  .site-stats-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.site-stat {
  background: var(--lfp-cream);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  text-align: center;
  min-width: 0;
}
.site-stat .k {
  display: block;
  font-size: 0.75rem;
  color: var(--lfp-muted);
  margin-bottom: 0.15rem;
}
.site-stat .v {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--lfp-ink);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}
.stats-updated {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--lfp-muted);
}
.stats-updated time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stats-updated.err {
  color: #9a4a2a;
}

/* —— Wallet guide (install apps + next steps + QR) —— */
.wallet-guide {
  background: var(--lfp-white);
  border-radius: var(--lfp-radius);
  padding: 1.25rem 1.35rem 1.15rem;
  margin: 0 0 1rem;
  box-shadow: 0 4px 24px rgba(15, 57, 59, 0.07);
  border: 1px solid rgba(15, 57, 59, 0.06);
}
.wallet-guide h2 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: var(--lfp-ink);
}
.wallet-guide > .lead-sm {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--lfp-muted);
}
.wallet-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: wstep;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.wallet-steps > li {
  counter-increment: wstep;
  position: relative;
  padding: 0.85rem 0.95rem 0.9rem 3rem;
  background: var(--lfp-cream);
  border-radius: 10px;
  border: 1px solid rgba(15, 57, 59, 0.06);
}
.wallet-steps > li::before {
  content: counter(wstep);
  position: absolute;
  left: 0.75rem;
  top: 0.85rem;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--lfp-ink);
  color: var(--lfp-cream);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.wallet-steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--lfp-ink);
}
.wallet-steps p {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  color: var(--lfp-muted);
}
.wallet-steps p:last-child {
  margin-bottom: 0;
}
/* App grid: always 2 columns so QR squares fit the card frame */
.wallet-app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 0.75rem;
  margin-top: 0.55rem;
  align-items: stretch;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 640px) {
  .wallet-app-grid {
    max-width: 32rem;
    gap: 1rem 1rem;
  }
}
.wallet-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  padding: 0.65rem 0.55rem 0.7rem;
  min-width: 0; /* allow grid shrink so QR stays inside */
  background: var(--lfp-white);
  border-radius: 10px;
  border: 1px solid rgba(15, 57, 59, 0.1);
  text-decoration: none;
  color: var(--lfp-ink);
  font-weight: 600;
  font-size: 0.82rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
  box-sizing: border-box;
}
.wallet-app:hover {
  border-color: var(--lfp-coral);
  box-shadow: 0 2px 12px rgba(239, 132, 81, 0.18);
  color: var(--lfp-ink);
  text-decoration: none;
}
/* App install QRs: plain square (no Taler logo / no blue ring) — fluid inside card */
.wallet-app .wallet-qr,
.wallet-app .qr-plain-wrap {
  width: 100%;
  max-width: 9.25rem; /* ~148px */
  height: auto;
  background: transparent;
  border-radius: 0;
  display: block;
  overflow: hidden;
  margin: 0 auto 0.15rem;
  box-sizing: border-box;
}
.wallet-app .qr-plain {
  display: block;
  width: 100%;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid rgba(15, 57, 59, 0.18);
  border-radius: 6px;
  line-height: 0;
  box-sizing: border-box;
}
.wallet-app .qr-plain img,
.wallet-app .wallet-qr img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto;
  background: #fff;
  image-rendering: pixelated;
  box-sizing: border-box;
}
.wallet-qr-miss {
  margin: 0;
  font-size: 0.7rem;
  color: var(--lfp-muted);
  padding: 0.4rem;
}
.wallet-app .wallet-app-name {
  line-height: 1.25;
}
.wallet-app .wallet-app-uri {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--lfp-muted);
  word-break: break-all;
  line-height: 1.3;
  max-width: 100%;
}
.wallet-next a {
  font-weight: 600;
}
.wallet-guide .uri-line {
  margin: 0.35rem 0 0.65rem;
}
.wallet-guide a.uri,
.wallet-guide .uri {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 0.82rem;
  word-break: break-all;
  font-weight: 600;
}
.wallet-guide .uri-list {
  list-style: none;
  margin: 0.25rem 0 0.65rem;
  padding: 0;
}
.wallet-guide .uri-list li {
  margin: 0.35rem 0;
  padding: 0;
  background: none;
  border: none;
}
.wallet-guide .uri-list li::before {
  display: none;
}
.wallet-guide .hint-sm {
  font-size: 0.85rem;
  color: var(--lfp-muted);
  margin: 0.35rem 0 0;
}
.wallet-guide .hint-sm .uri {
  font-size: 0.78rem;
  font-weight: 500;
}

.note {
  font-size: 0.9rem;
  color: var(--lfp-muted);
}

/* Legal pages (/privacy/, /terms/) */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1rem;
  font-size: 0.9rem;
}
.legal-table th,
.legal-table td {
  border: 1px solid rgba(15, 57, 59, 0.12);
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
}
.legal-table th {
  background: var(--lfp-cream);
  color: var(--lfp-ink);
  font-weight: 700;
}
.legal-note {
  background: var(--lfp-olive-soft);
  border-radius: var(--lfp-radius);
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--lfp-ink-soft);
}
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
}

.role-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .role-grid.three {
    grid-template-columns: 1fr;
  }
}

/* === Official QR_Taler frame (hacktivism / merchant webui) === */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes goa-pay-qr-rotate {
  to { --angle: 360deg; }
}
.qr-taler-wrap {
  text-align: center;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}
.goa-pay-taler-qr {
  width: 100%;
  max-width: 200px;
  margin: 0 auto 0.45rem;
  padding: 8px;
  border-radius: 18px;
  box-sizing: border-box;
  position: relative;
  background: conic-gradient(
    from var(--angle),
    #0042b3 0deg,
    #f1f1f4 20deg,
    #f1f1f4 150deg,
    #f1f1f4 160deg,
    #0042b3 180deg,
    #f1f1f4 200deg,
    #f1f1f4 330deg,
    #f1f1f4 340deg,
    #0042b3
  );
  animation: goa-pay-qr-rotate 10s linear infinite;
}
.goa-pay-taler-qr__inner {
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  line-height: 0;
  min-height: 0;
  box-sizing: border-box;
}
.goa-pay-taler-qr__inner img {
  display: block !important;
  margin: 0 auto !important;
  border: 0 !important;
  background: #fff;
  image-rendering: pixelated;
  max-width: 100%;
  height: auto;
}
.goa-pay-taler-qr__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28%;
  height: auto;
  max-width: 88px;
  aspect-ratio: 200 / 95;
  object-fit: contain;
  pointer-events: none;
  background: #fff;
  border-radius: 4px;
}
.wallet-app-grid .wallet-qr,
.wallet-app-grid .qr-plain-wrap {
  display: block;
  margin: 0 auto 0.35rem;
  max-width: min(9.25rem, 100%);
}
.wallet-qr-miss {
  margin: 0;
  padding: 0.5rem;
  font-size: 0.78rem;
  color: #b91c1c;
  line-height: 1.3;
}

/* Product pay modal (QR_Taler) — light LFP theme */
.lfp-pay-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 57, 59, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lfp-pay-modal.open {
  display: flex;
}
.lfp-pay-card {
  position: relative;
  background: var(--lfp-white, #fff);
  border: 1px solid rgba(15, 57, 59, 0.12);
  border-radius: 16px;
  padding: 1.25rem 1.15rem 1.1rem;
  max-width: 24rem;
  width: 100%;
  text-align: center;
  box-shadow: 0 16px 48px rgba(15, 57, 59, 0.22);
  max-height: 92vh;
  overflow-y: auto;
  color: var(--lfp-ink, #0f393b);
}
.lfp-pay-x {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  border: 0;
  background: transparent;
  color: var(--lfp-muted, #5a6e6f);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.45rem;
}
.lfp-pay-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1.08rem;
  padding-right: 1.5rem;
}
.lfp-pay-amount {
  margin: 0 0 0.55rem;
  font-weight: 750;
  color: var(--lfp-coral, #ef8451);
  font-variant-numeric: tabular-nums;
}
.lfp-pay-hint {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--lfp-muted, #5a6e6f);
}
.lfp-pay-hint.err {
  color: #b91c1c;
}
.lfp-pay-label {
  margin: 0.35rem 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lfp-muted, #5a6e6f);
}
.lfp-pay-sub {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  color: var(--lfp-muted, #5a6e6f);
}
.lfp-pay-payload {
  display: block;
  margin: 0.45rem 0 0.55rem;
  padding: 0 0.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #0b5cab;
  word-break: break-all;
  text-align: center;
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 92, 171, 0.35);
}
.lfp-pay-cta {
  display: block;
  text-decoration: none;
  font-weight: 750;
  padding: 0.65rem 1rem;
  border-radius: 11px;
  background: linear-gradient(120deg, #0f393b 0%, #1a4f52 55%, #a85a35 100%);
  color: #fff;
  margin-bottom: 0.65rem;
}
.lfp-pay-cta.disabled {
  opacity: 0.45;
  pointer-events: none;
}
.lfp-pay-close {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid rgba(15, 57, 59, 0.2);
  background: transparent;
  color: var(--lfp-ink, #0f393b);
  font-weight: 650;
  padding: 0.5rem;
  border-radius: 10px;
  cursor: pointer;
}
.lfp-pay-card .goa-pay-taler-qr {
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
}

/* Hub step numbers */
.hub-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: hub;
}
.hub-steps > li {
  counter-increment: hub;
  position: relative;
  padding: 0.85rem 0 0.85rem 2.75rem;
  border-bottom: 1px solid rgba(15, 57, 59, 0.08);
}
.hub-steps > li:last-child { border-bottom: 0; }
.hub-steps > li::before {
  content: counter(hub);
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--lfp-coral);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hub-steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--lfp-ink);
}

/* Exchange denom ladder */
.denom-ladder {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.denom-pill {
  display: inline-block;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 57, 59, 0.07);
  border: 1px solid rgba(15, 57, 59, 0.12);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--lfp-ink);
}
.slim-lead {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  color: var(--lfp-ink-soft);
}
.card.card-slim {
  padding: 1rem 1.15rem;
}
.hub-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.65rem 0 0.25rem;
}
.hub-cta-row a.btn-communal { margin: 0; }
.btn-secondary {
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(15, 57, 59, 0.18);
  background: #fff;
  color: var(--lfp-ink) !important;
  font-weight: 650;
  text-decoration: none !important;
}
.btn-secondary:hover {
  border-color: var(--lfp-coral);
  color: var(--lfp-coral) !important;
}

/* Recent activity lists (withdraws / merchant wire credits) */
.activity-block {
  margin-top: 1rem;
}
.activity-block h3 {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  color: var(--lfp-ink);
}
.activity-block .act-hint {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--lfp-ink-soft);
}
.act-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(15, 57, 59, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: var(--lfp-white, #fff);
}
.act-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(15, 57, 59, 0.07);
  font-size: 0.88rem;
}
.act-row:last-child { border-bottom: 0; }
.act-amt {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--lfp-ink);
  white-space: nowrap;
}
.act-meta {
  flex: 1 1 12rem;
  font-size: 0.8rem;
  color: var(--lfp-ink-soft);
  text-align: right;
}
@media (max-width: 520px) {
  .act-meta { text-align: left; }
}
.act-empty {
  padding: 0.65rem 0.75rem;
  font-size: 0.85rem;
  color: var(--lfp-ink-soft);
}
#site-activity {
  margin-top: 0.5rem;
}

/* === TESTPAYSAN coins (Swiss-inspired, not CHF) === */
.tp-coin-tray {
  display: block;
  margin-top: 0.35rem;
}
.tp-coin-note {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: var(--lfp-ink-soft);
  line-height: 1.4;
}
.tp-coin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 1rem 1.15rem;
  padding: 0.85rem 0.65rem 0.65rem;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(15, 57, 59, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(247, 241, 234, 0.9), rgba(232, 240, 235, 0.5));
  border-radius: 12px;
  border: 1px solid rgba(15, 57, 59, 0.08);
}

.tp-coin {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  user-select: none;
  filter: drop-shadow(0 3px 4px rgba(15, 57, 59, 0.22));
  transition: transform 0.15s ease, filter 0.15s ease;
}
.tp-coin:hover {
  transform: translateY(-3px) scale(1.04);
  filter: drop-shadow(0 6px 10px rgba(15, 57, 59, 0.28));
}

.tp-coin__rim {
  border-radius: 50%;
  padding: 3px;
  box-sizing: border-box;
  /* reeded-ish edge */
  background: repeating-conic-gradient(
    from 0deg,
    rgba(0, 0, 0, 0.18) 0deg 4deg,
    rgba(255, 255, 255, 0.25) 4deg 8deg
  );
}

.tp-coin__face {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

/* sizes (Swiss: higher face ≈ larger disc; 5 Fr largest) */
.tp-coin--xs .tp-coin__rim { width: 2.6rem; height: 2.6rem; }
.tp-coin--sm .tp-coin__rim { width: 3.1rem; height: 3.1rem; }
.tp-coin--md .tp-coin__rim { width: 3.7rem; height: 3.7rem; }
.tp-coin--lg .tp-coin__rim { width: 4.4rem; height: 4.4rem; }
.tp-coin--xl .tp-coin__rim { width: 5.1rem; height: 5.1rem; }
.tp-coin--xxl .tp-coin__rim { width: 5.8rem; height: 5.8rem; }

.tp-coin__amount {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(20, 30, 32, 0.92);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.tp-coin--xs .tp-coin__amount { font-size: 0.72rem; }
.tp-coin--sm .tp-coin__amount { font-size: 0.85rem; }
.tp-coin--md .tp-coin__amount { font-size: 0.95rem; }
.tp-coin--lg .tp-coin__amount { font-size: 1.05rem; }
.tp-coin--xl .tp-coin__amount { font-size: 1.15rem; }
.tp-coin--xxl .tp-coin__amount { font-size: 1.25rem; }

.tp-coin__unit {
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(20, 30, 32, 0.72);
  margin-top: 0.12rem;
  max-width: 90%;
  line-height: 1.1;
}
.tp-coin--lg .tp-coin__unit,
.tp-coin--xl .tp-coin__unit,
.tp-coin--xxl .tp-coin__unit {
  font-size: 0.52rem;
}

.tp-coin__stage {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.38rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(20, 30, 32, 0.45);
}

.tp-coin__mark {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.42rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(15, 57, 59, 0.55);
  border: 1px solid rgba(15, 57, 59, 0.25);
  border-radius: 2px;
  padding: 0 0.2rem;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.25);
}

/* Count under the coin (readable) — not a sticker on the face */
.tp-coin__count {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--lfp-ink, #0f393b);
  background: var(--lfp-white, #fff);
  border: 1px solid rgba(15, 57, 59, 0.18);
  border-radius: 6px;
  padding: 0.12rem 0.45rem;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(15, 57, 59, 0.08);
  min-width: 2rem;
  text-align: center;
}
.tp-coin__count--one {
  color: var(--lfp-ink-soft, #3d5556);
  font-weight: 700;
  opacity: 0.9;
}
/* legacy class no longer used on face */
.tp-coin__mul {
  display: none;
}

/* metals — Swiss palette touch, LFP coral/ink accent, never CHF labels */
.tp-coin--copper .tp-coin__face {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 220, 180, 0.95), transparent 42%),
    linear-gradient(145deg, #e8a070, #b85a2e 48%, #8c3d18);
}
.tp-coin--brass .tp-coin__face {
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 240, 190, 0.9), transparent 40%),
    linear-gradient(145deg, #f0d078, #c9a227 45%, #8a7020);
}
.tp-coin--nickel .tp-coin__face {
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.85), transparent 42%),
    linear-gradient(145deg, #e8eef0, #a8b4b8 50%, #6a787c);
}
.tp-coin--bimetal .tp-coin__rim {
  background: repeating-conic-gradient(
    from 0deg,
    #c47a18 0deg 5deg,
    #d4dde0 5deg 10deg
  );
  padding: 4px;
}
.tp-coin--bimetal .tp-coin__face {
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 250, 230, 0.75), transparent 40%),
    linear-gradient(145deg, #f4e4a8, #e0b84a 40%, #b8860b);
  box-shadow: inset 0 0 0 5px rgba(180, 190, 195, 0.85);
}
.tp-coin--gold .tp-coin__face {
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 248, 220, 0.95), transparent 40%),
    linear-gradient(145deg, #ffe9a8, #efb840 42%, #c47820 78%, #8a4a10);
}
.tp-coin--gold .tp-coin__mark {
  color: rgba(90, 40, 10, 0.65);
  border-color: rgba(90, 40, 10, 0.3);
}

/* coral ring hint for large TP coins (LFP touch) */
.tp-coin--lg .tp-coin__rim,
.tp-coin--xl .tp-coin__rim,
.tp-coin--xxl .tp-coin__rim {
  box-shadow: 0 0 0 1px rgba(239, 132, 81, 0.35);
}
