/* ============================================================================
   Design system — monochrome (noir / blanc / gris), minimaliste, responsive.
   Rythme d'espacement basé sur une échelle régulière (« bien cadencé »).
   ========================================================================== */
:root {
  --ink: #0a0a0a;
  --ink-2: #3a3a3a;
  --muted: #8a8a8a;
  --line: #e6e6e6;
  --surface: #fafafa;
  --bg: #ffffff;

  --ok: #15a06a;
  --accent: #1f4eea;
  --accent-soft: #eef2ff;

  /* Boutons (inversés en sombre) + barres vitrées (header/sticky) */
  --btn-bg: #0a0a0a;
  --btn-fg: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --logo-chip: transparent;

  --radius: 16px;
  --radius-sm: 11px;
  --s-1: 6px;
  --s-2: 12px;
  --s-3: 18px;
  --s-4: 26px;
  --s-5: 36px;

  --font: "Bricolage Grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ===== Mode sombre ===== Calibré. Tokens redéfinis ; l'utilisateur choisit via le bouton de thème. */
:root[data-theme="dark"] {
  --ink: #ececf1;
  --ink-2: #b9bbc6;
  --muted: #8b8e99;
  --line: #2a2c33;
  --surface: #0c0d11;
  --bg: #16181e;
  --ok: #34d399;
  --accent: #7c93ff;
  --accent-soft: #1d2440;
  --btn-bg: #f0f1f4;
  --btn-fg: #15171d;
  --glass-bg: rgba(18, 19, 24, 0.72);
  --logo-chip: #ffffff; /* petit fond clair derrière les logos monochromes */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #ececf1;
    --ink-2: #b9bbc6;
    --muted: #8b8e99;
    --line: #2a2c33;
    --surface: #0c0d11;
    --bg: #16181e;
    --ok: #34d399;
    --accent: #7c93ff;
    --accent-soft: #1d2440;
    --btn-bg: #f0f1f4;
    --btn-fg: #15171d;
    --glass-bg: rgba(18, 19, 24, 0.72);
    --logo-chip: #ffffff;
  }
}

/* Grands titres en ExtraBold (800), tracking resserré — hiérarchie par la graisse. */
h1, .hero h1, .status-title, .panel-title, .amount-value, .success-amount {
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* En sombre : petit fond clair derrière les logos monochromes pour garder la lisibilité. */
:root[data-theme="dark"] .seller-logo,
:root[data-theme="dark"] .sb-logo,
:root[data-theme="dark"] .foot-logos img,
:root[data-theme="dark"] .foot-partner .itot,
:root[data-theme="dark"] .pin-logo,
:root[data-theme="dark"] .success-trust img {
  background: #fff; border-radius: 8px; padding: 4px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .seller-logo,
  :root:not([data-theme="light"]) .sb-logo,
  :root:not([data-theme="light"]) .foot-logos img,
  :root:not([data-theme="light"]) .foot-partner .itot,
  :root:not([data-theme="light"]) .pin-logo,
  :root:not([data-theme="light"]) .success-trust img {
    background: #fff; border-radius: 8px; padding: 4px;
  }
}

/* Bouton de bascule de thème (clair / sombre) */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none; cursor: pointer;
  width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--bg); color: var(--ink-2);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.theme-toggle:hover { border-color: var(--ink); color: var(--ink); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .ic-sun { display: none; }
.theme-toggle.is-dark .ic-moon { display: none; }
.theme-toggle.is-dark .ic-sun { display: inline; }

/* === Selectors (dropdowns animés) — identiques sur toutes les pages === */
.selectors { display: flex; align-items: center; gap: 6px; }
.dd { position: relative; }
.dd-btn {
  display: inline-flex; align-items: center; gap: 5px; font: inherit; font-weight: 700; font-size: 0.8rem;
  padding: 7px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--ink);
  cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.dd-btn:hover { border-color: var(--ink); }
.dd-chev { width: 13px; height: 13px; transition: transform 0.2s ease; opacity: 0.7; }
.dd.open .dd-chev { transform: rotate(180deg); }
.dd-menu {
  position: absolute; top: calc(100% + 7px); right: 0; min-width: 158px; z-index: 40;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(10, 10, 10, 0.13); padding: 5px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; transform: translateY(-6px) scale(0.98); transform-origin: top right; pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.dd.open .dd-menu { opacity: 1; transform: none; pointer-events: auto; }
.dd-menu button {
  font: inherit; font-size: 0.86rem; text-align: left; padding: 8px 11px; border: none; background: none;
  border-radius: 8px; cursor: pointer; color: var(--ink-2); white-space: nowrap;
}
.dd-menu button:hover { background: var(--surface); color: var(--ink); }
.dd-menu button.sel { color: var(--accent); font-weight: 700; background: var(--accent-soft); }

/* === Footer 3 colonnes — identique sur toutes les pages === */
.home-foot {
  margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-3) var(--s-4);
}
.foot-col { min-width: 0; }
.foot-logos { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-start; }
.foot-logos img { height: 34px; }
.foot-logos .ic-logo { height: 26px; }
.foot-partner { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 0.84rem; }
.foot-partner .itot { height: 22px; }
.foot-credit { text-align: right; }
.copyright { color: var(--muted); font-size: 0.76rem; }
.app-version { color: var(--muted); opacity: 0.8; }
@media (max-width: 720px) {
  .home-foot { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: var(--s-3); }
  .foot-logos { justify-content: center; }
  .foot-credit { text-align: center; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* L'attribut `hidden` doit toujours l'emporter, même sur les éléments
   qui définissent un `display` (sinon .overlay { display:grid } le réaffiche). */
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  /* Fond légèrement vivant (dégradé radial très subtil) plutôt qu'un aplat uniforme. */
  background:
    radial-gradient(1100px 520px at 50% -8%, var(--bg) 0%, var(--surface) 60%),
    var(--surface);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 6vw, 34px);
  /* Profondeur douce — évite l'aspect « bordure plate » générique. */
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.03), 0 14px 38px rgba(10, 10, 10, 0.055);
}

/* --- En-tête --- */
.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-5);
}
.brand { font-weight: 700; letter-spacing: -0.02em; font-size: 1.05rem; }
.brand span { color: var(--muted); font-weight: 600; }
.badge {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-2); border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 999px;
}

/* --- Récapitulatif --- */
.view { animation: fade 0.25s ease; }
.eyebrow {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); margin-bottom: var(--s-1);
}
.amount-label { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; }
.amount {
  display: flex; align-items: baseline; gap: 8px;
  margin: var(--s-2) 0 var(--s-4);
}
.amount-value { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; }
.amount-cur { font-size: 1rem; font-weight: 600; color: var(--muted); }

.fee-line {
  border-top: 1px solid var(--line);
  padding-top: var(--s-3); margin-bottom: var(--s-4);
  font-size: 0.92rem; color: var(--ink-2);
}
.fee-line > div { display: flex; justify-content: space-between; padding: 3px 0; }
.fee-line .total { color: var(--ink); font-weight: 700; }

/* --- Champ --- */
.field { display: block; margin-bottom: var(--s-4); }
.field-label {
  display: block; font-size: 0.82rem; font-weight: 600;
  margin-bottom: var(--s-1); color: var(--ink-2);
}
input {
  width: 100%; font: inherit; color: var(--ink);
  padding: 14px 15px; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder { color: #bcbcbc; }
input:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.06);
}
/* Cases à cocher & boutons radio : jamais étirés par la règle input ci-dessus.
   Rendu unique sur tout le site (admin, réservation, retrait), clair et sombre. */
input[type="checkbox"], input[type="radio"] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; flex: none; padding: 0; margin: 0;
  display: inline-grid; place-content: center; vertical-align: middle;
  border: 1.5px solid #c4c4c4; border-radius: 5px; background: var(--bg);
  cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]::before {
  content: ""; width: 10px; height: 10px; background: var(--bg); transform: scale(0); transition: transform 0.12s ease;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
input[type="radio"]::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bg); transform: scale(0); transition: transform 0.12s ease;
}
input[type="checkbox"]:checked, input[type="radio"]:checked,
input[type="checkbox"]:indeterminate { background: var(--ink); border-color: var(--ink); }
input[type="checkbox"]:checked::before, input[type="radio"]:checked::before { transform: scale(1); }
input[type="checkbox"]:indeterminate::before { clip-path: none; height: 2px; transform: scale(1); }
input[type="checkbox"]:hover:not(:disabled), input[type="radio"]:hover:not(:disabled) { border-color: var(--ink); }
input[type="checkbox"]:focus, input[type="radio"]:focus { box-shadow: none; }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.12);
}
input[type="checkbox"]:disabled, input[type="radio"]:disabled { opacity: 0.45; cursor: not-allowed; }
:root[data-theme="dark"] input[type="checkbox"]:not(:checked):not(:indeterminate),
:root[data-theme="dark"] input[type="radio"]:not(:checked) { border-color: #5a5a5a; }
.field-hint { display: block; margin-top: var(--s-1); font-size: 0.78rem; color: var(--muted); }

/* --- Boutons --- */
/* Boutons façon ManyChat « GET STARTED » : pilule contrastée (inversée en sombre), bold. */
.btn {
  width: 100%; font: inherit; font-weight: 700;
  padding: 14px 20px; border: 1px solid var(--btn-bg);
  background: var(--btn-bg); color: var(--btn-fg);
  border-radius: 999px; cursor: pointer;
  transition: box-shadow 0.15s ease, filter 0.15s ease, transform 0.05s ease;
}
.btn:hover:not(:disabled) { filter: brightness(1.12); box-shadow: 0 6px 18px rgba(10, 10, 10, 0.18); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-ghost { background: var(--bg); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { background: var(--surface); }

.secure-note { margin-top: var(--s-3); font-size: 0.74rem; color: var(--muted); text-align: center; }

/* --- Vue d'état --- */
#view-status { text-align: center; padding: var(--s-2) 0; }
.status-icon {
  width: 56px; height: 56px; margin: var(--s-2) auto var(--s-3);
  border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line);
}
.status-icon[data-kind="ok"]::after { content: "✓"; font-size: 1.7rem; font-weight: 700; }
.status-icon[data-kind="err"]::after { content: "✕"; font-size: 1.6rem; font-weight: 700; color: var(--ink-2); }
.status-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.status-text { color: var(--ink-2); margin-top: var(--s-1); font-size: 0.94rem; }

.receipt {
  text-align: left; margin: var(--s-4) 0;
  border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
}
.receipt > div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 15px; font-size: 0.88rem;
}
.receipt > div + div { border-top: 1px solid var(--line); }
.receipt dt { color: var(--muted); }
.receipt dd { font-weight: 600; font-variant-numeric: tabular-nums; word-break: break-all; }
#retry-btn { margin-top: var(--s-2); }

/* --- Spinner --- */
.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--ink);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* --- Popup OTP --- */
.overlay {
  position: fixed; inset: 0; z-index: 100; /* au-dessus du panneau latéral (admin) et de son flou */
  background: rgba(14, 14, 16, 0.38);
  -webkit-backdrop-filter: blur(7px) saturate(1.05);
  backdrop-filter: blur(7px) saturate(1.05);
  display: grid; place-items: end center;
  padding: 0;
  animation: fade 0.2s ease;
}
.modal {
  width: 100%; max-width: 420px;
  max-height: 92vh; overflow-y: auto; /* contenu long (rôles, etc.) → scroll au lieu de déborder */
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: clamp(22px, 6vw, 30px);
  box-shadow: 0 -24px 64px rgba(10, 10, 10, 0.22);
  animation: rise 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes rise { from { transform: translateY(100%); } to { transform: none; } }
.modal h2 { font-size: 1.15rem; font-weight: 700; }
.modal-sub { color: var(--ink-2); font-size: 0.9rem; margin: var(--s-1) 0 var(--s-3); }
.otp-demo {
  font-size: 0.78rem; color: var(--ink-2); background: var(--surface);
  border: 1px dashed var(--line); border-radius: 9px;
  padding: 8px 11px; margin-bottom: var(--s-3);
}
.otp-input {
  text-align: center; font-size: 1.5rem; font-weight: 700;
  letter-spacing: 0.4em; padding: 14px;
}
.otp-error { color: var(--ink); font-weight: 600; font-size: 0.84rem; margin-top: var(--s-2); }
.modal-actions { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.modal-actions .btn { width: auto; flex: 1; }

/* Centrage du modal sur écran large */
@media (min-width: 560px) {
  .overlay { place-items: center; padding: 24px; }
  .modal { border-radius: var(--radius); box-shadow: 0 30px 80px rgba(10, 10, 10, 0.24); }
  @keyframes rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* --- Reçu façon Stripe (état succès) --- */
#status-success { text-align: center; animation: fade 0.3s ease; }
.doc-badge { position: relative; width: 56px; margin: var(--s-2) auto var(--s-3); }
.doc-glyph { width: 56px; height: auto; display: block; }
.doc-check {
  position: absolute; right: -7px; bottom: -4px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ok); display: grid; place-items: center;
  border: 2.5px solid var(--bg);
}
.doc-check svg { width: 15px; height: 15px; }
.success-label { color: var(--ink-2); font-size: 0.96rem; }
.success-amount {
  font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em;
  margin: 2px 0 var(--s-2);
}
.details-toggle {
  background: none; border: none; cursor: pointer; font: inherit;
  color: var(--ink-2); font-weight: 600; font-size: 0.9rem;
  padding: 4px 6px; display: inline-flex; align-items: center; gap: 6px;
}
.details-toggle:hover { color: var(--ink); text-decoration: underline; }
.details-toggle .chev { transition: transform 0.2s ease; font-size: 1.1rem; line-height: 1; }
.details-toggle[aria-expanded="true"] .chev { transform: rotate(90deg); }

.kv {
  text-align: left; margin: var(--s-4) 0;
  border-top: 1px solid var(--line);
}
.kv > div {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 0.9rem;
}
.kv dt { color: var(--muted); }
.kv dd { font-weight: 600; font-variant-numeric: tabular-nums; }

.dl-actions { display: flex; gap: var(--s-2); margin-top: var(--s-3); }
.dl-actions .btn { width: auto; flex: 1; text-align: center; text-decoration: none; }
.return-btn { display: block; width: 100%; margin-top: var(--s-2); text-align: center; text-decoration: none; }

/* --- Panneau latéral (facture & détails) --- */
.panel-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(14, 14, 16, 0.38);
  -webkit-backdrop-filter: blur(7px) saturate(1.05);
  backdrop-filter: blur(7px) saturate(1.05);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.panel-backdrop.open { opacity: 1; visibility: visible; }

.details-panel {
  position: fixed; top: 0; right: 0; z-index: 70;
  height: 100dvh; width: min(480px, 100%);
  background: var(--bg); overflow-y: auto;
  padding: clamp(22px, 5vw, 36px);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -16px 0 40px rgba(10, 10, 10, 0.12);
}
.details-panel.open { transform: translateX(0); }

.panel-close {
  background: none; border: none; cursor: pointer; font: inherit;
  color: var(--ink-2); font-size: 0.9rem; font-weight: 500;
  padding: 4px 0; margin-bottom: var(--s-4); display: inline-flex; gap: 8px; align-items: center;
}
.panel-close:hover { color: var(--ink); }
.panel-title { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: var(--s-4); }

.panel-section { padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.panel-section h3 {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); font-weight: 600; margin-bottom: var(--s-2);
}
.panel-kv > div { display: flex; gap: 16px; padding: 5px 0; font-size: 0.9rem; }
.panel-kv dt { color: var(--muted); min-width: 64px; }
.panel-kv dd { color: var(--ink); flex: 1; }
.panel-kv dd.memo { font-size: 0.82rem; color: var(--ink-2); white-space: pre-line; }

.panel-item { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.panel-item .pi-main { font-size: 0.92rem; font-weight: 600; }
.panel-item .pi-sub { font-size: 0.78rem; color: var(--muted); }
.panel-item .pi-amt { font-weight: 600; font-variant-numeric: tabular-nums; }
.panel-total {
  display: flex; justify-content: space-between;
  margin-top: var(--s-2); padding-top: var(--s-2);
  border-top: 1px solid var(--line); font-weight: 700;
}
.panel-foot { margin-top: var(--s-4); font-size: 0.86rem; color: var(--muted); }
.panel-foot a { color: var(--ink); font-weight: 600; }

@media (max-width: 560px) {
  .details-panel { width: 100%; border-radius: 0; }
}

/* --- Bouton Feedback flottant + modale --- */
.fb-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 0.86rem;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); box-shadow: 0 8px 24px rgba(10, 10, 10, 0.14);
  transition: transform 0.08s ease, box-shadow 0.15s ease;
}
.fb-fab:hover { box-shadow: 0 12px 30px rgba(10, 10, 10, 0.2); }
.fb-fab:active { transform: translateY(1px); }
.fb-fab svg { width: 17px; height: 17px; }
.fb-overlay {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px;
  background: rgba(14, 14, 16, 0.4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fade 0.18s ease;
}
.fb-modal {
  width: 100%; max-width: 440px; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 5vw, 28px);
  box-shadow: 0 30px 80px rgba(10, 10, 10, 0.3);
}
.fb-title { font-size: 1.1rem; font-weight: 800; margin-bottom: var(--s-2); }
.fb-text {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); resize: vertical; min-height: 110px;
}
.fb-text:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.06); }
.fb-error { color: #e5484d; font-size: 0.84rem; font-weight: 600; margin-top: var(--s-2); }
.fb-actions { display: flex; gap: var(--s-2); margin-top: var(--s-3); }
.fb-actions .btn { width: auto; flex: 1; }
.fb-thanks { text-align: center; font-weight: 700; padding: var(--s-3) 0; color: var(--ok); }

/* Bouton mis en avant + bulle quand une erreur de paiement est détectée */
.fb-fab.has-error { border-color: var(--accent); color: var(--accent); animation: fbpulse 1.7s ease-in-out infinite; }
@keyframes fbpulse { 0%, 100% { box-shadow: 0 8px 24px rgba(31, 78, 234, 0.22); } 50% { box-shadow: 0 10px 32px rgba(31, 78, 234, 0.5); } }
.fb-bubble {
  position: fixed; right: 18px; bottom: 70px; z-index: 81; max-width: 280px;
  display: flex; align-items: flex-start; gap: 8px; cursor: pointer; animation: fade 0.2s ease;
  background: var(--accent); color: #fff; font-size: 0.84rem; font-weight: 600; line-height: 1.4;
  padding: 11px 13px; border-radius: 12px; box-shadow: 0 10px 28px rgba(31, 78, 234, 0.35);
}
.fb-bubble-txt { flex: 1; }
.fb-bubble-x { background: none; border: none; color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 2px; }
.fb-err-box { margin-top: var(--s-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface); }
.fb-check { display: flex; align-items: flex-start; gap: 8px; font-size: 0.86rem; cursor: pointer; }
.fb-check input { margin-top: 2px; width: 16px; height: 16px; flex: none; }
.fb-err-prev { margin-top: 8px; font-size: 0.8rem; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; white-space: pre-wrap; max-height: 90px; overflow-y: auto; }

@media (max-width: 560px) { .fb-fab span { display: none; } .fb-fab { padding: 12px; } .fb-bubble { bottom: 64px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
