:root {
  --bg: #0f1114;
  --bg2: #121518;
  --panel: #1a1e22;
  --panel2: #15191d;
  --card: #1a1e22;
  --card-seen: #15191d;
  --card-border: #2e343a;
  --card-border-hover: #3a4249;
  --card-suspect: #1a1416;
  --card-suspect-seen: #121012;
  --card-tile-icon: #242a30;
  --border: #2e343a;
  --text: #eef1f5;
  --muted: #8b919c;
  --blue: #60a5fa;
  --accent: #a8adb4;
  --accent-hover: #c5cad0;
  --feed-accent: #a8adb4;
  --feed-accent-rgb: 168, 173, 180;
  --feed-tab-color: #8b919c;
  --green: #4ade80;
  --pool-green: #22c55e;
  --pool-green-soft: #86efac;
  --mode-blue: #aba89e;
  --mode-green: #ffe993;
  --mode-blue-rgb: 171, 168, 158;
  --mode-green-rgb: 255, 233, 147;
  --red: #e86a6a;
  --btn-label-size: 13px;
  --btn-label-weight: 700;
  --btn-fill: linear-gradient(180deg, #e8edf2 0%, #b8c2ce 100%);
  --btn-fill-border: #aeb8c4;
  --btn-fill-text: #09090b;
  --accent-glow: #1a1e22;
  --accent-tint: #1a1e22;
  --accent-border-soft: #3a4249;
  --accent-border-hover-soft: #4a5259;
  --accent-focus-ring: #4a5259;
  /* Offres : Premium = bronze, Premium+ = or */
  --tier-premium: #b87333;
  --tier-premium-light: #e8a86a;
  --tier-premium-on: #1c1300;
  --tier-premium-bg: rgba(184, 115, 51, .14);
  --tier-premium-tint: rgba(184, 115, 51, .22);
  --tier-premium-border: rgba(184, 115, 51, .48);
  --tier-premium-border-hover: rgba(184, 115, 51, .68);
  --tier-premium-focus: rgba(184, 115, 51, .35);
  --tier-premium-gradient: linear-gradient(180deg, #e8b87a, #b87333);
  --tier-plus: #e8a317;
  --tier-plus-light: #ffd970;
  --tier-plus-on: #1c1300;
  --tier-plus-bg: rgba(232, 163, 23, .14);
  --tier-plus-tint: rgba(232, 163, 23, .2);
  --tier-plus-border: rgba(232, 163, 23, .45);
  --tier-plus-border-hover: rgba(232, 163, 23, .65);
  --tier-plus-focus: rgba(232, 163, 23, .35);
  --tier-plus-gradient: linear-gradient(180deg, #ffd970, #e8a317);
  --cat-rien: #8b919c;
  --cat-cryptos: #f5a524;
  --cat-ai: #a78bfa;
  --cat-tradefi: #38bdf8;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
/* `clip` (et non `hidden`) empeche le debordement horizontal SANS creer de
   conteneur de defilement, ce qui casserait `position: sticky` (header mobile). */
html { background: var(--bg); overflow-x: clip; scrollbar-gutter: stable; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(900px 500px at 80% -10%, var(--accent-glow) 0%, transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
}
.app {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--bg);
  overflow-x: clip;
  box-sizing: border-box;
}
/* Upgrade, compte : un peu plus large qu'avant, sans aller au plein 1200px. */
.page-sub {
  max-width: 900px;
  margin: 0 auto;
  min-height: 100vh;
  width: 100%;
  padding: 18px 18px 60px;
  box-sizing: border-box;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
}
.page-sub .ac-card,
.page-sub .co-card {
  background: var(--panel2);
  border-color: var(--border);
}
.page-sub .ac-badge.trial,
.page-sub .ac-badge.free {
  color: var(--text);
  background: var(--panel2);
  border: 1px solid var(--border);
}
.page-sub .ac-badge.premium {
  color: var(--tier-premium-on);
  background: var(--tier-premium-gradient);
  border: 1px solid var(--tier-premium);
}
.page-sub .ac-badge.plus {
  color: var(--tier-plus-on);
  background: var(--tier-plus-gradient);
  border: 1px solid var(--tier-plus);
}
.page-sub .ac-tier--trial,
.page-sub .co-tier--trial {
  color: var(--muted);
  border-color: var(--accent-border-soft);
  background: var(--accent-glow);
}
.page-sub .ac-tier--premium,
.page-sub .co-tier--premium {
  color: #fff;
  border-color: var(--tier-premium-border);
  background: var(--tier-premium-bg);
}
.page-sub .ac-tier--plus,
.page-sub .co-tier--plus {
  color: #fff;
  border-color: var(--tier-plus-border);
  background: var(--tier-plus-bg);
}
.page-sub .ac-tier--trial.current,
.page-sub .co-tier--trial.current,
.page-sub .co-tier--trial.sel {
  border-color: var(--accent);
  background: var(--accent-tint);
  box-shadow: 0 0 0 1px var(--accent-focus-ring);
}
.page-sub .ac-tier--premium.current,
.page-sub .co-tier--premium.current,
.page-sub .co-tier--premium.sel {
  border-color: var(--tier-premium);
  background: var(--tier-premium-tint);
  box-shadow: 0 0 0 1px var(--tier-premium-focus);
}
.page-sub .ac-tier--plus.current,
.page-sub .co-tier--plus.current,
.page-sub .co-tier--plus.sel {
  border-color: var(--tier-plus);
  background: var(--tier-plus-tint);
  box-shadow: 0 0 0 1px var(--tier-plus-focus);
}
.page-sub .co-tier--trial:hover {
  border-color: var(--accent-border-hover-soft);
}
.page-sub .co-tier--premium:hover {
  border-color: var(--tier-premium-border-hover);
}
.page-sub .co-tier--plus:hover {
  border-color: var(--tier-plus-border-hover);
}
/* Page compte : formules informatives (co-tier--static), sans effet hover */
.page-sub .co-tier--static:hover {
  border-color: inherit;
  background: inherit;
}
.page-sub .co-tier--premium.co-tier--static:hover {
  border-color: var(--tier-premium-border);
  background: var(--tier-premium-bg);
}
.page-sub .co-tier--plus.co-tier--static:hover {
  border-color: var(--tier-plus-border);
  background: var(--tier-plus-bg);
}
.page-sub .co-tier--premium.co-tier--static.current:hover {
  border-color: var(--tier-premium);
  background: var(--tier-premium-tint);
  box-shadow: 0 0 0 1px var(--tier-premium-focus);
}
.page-sub .co-tier--plus.co-tier--static.current:hover {
  border-color: var(--tier-plus);
  background: var(--tier-plus-tint);
  box-shadow: 0 0 0 1px var(--tier-plus-focus);
}
.page-sub .ac-tier--trial .ac-tier-name,
.page-sub .co-tier--trial .co-tier-name {
  color: var(--text);
}
.page-sub .ac-tier--premium .ac-tier-name,
.page-sub .co-tier--premium .co-tier-name,
.page-sub .ac-tier--plus .ac-tier-name,
.page-sub .co-tier--plus .co-tier-name {
  color: #fff;
}
/* Formules : texte blanc, chiffres (prix, quotas) a la couleur de l'offre */
.page-sub .co-tier--premium .co-tier-price,
.page-sub .ac-tier--premium .ac-tier-price {
  color: var(--tier-premium-light);
}
.page-sub .co-tier--plus .co-tier-price,
.page-sub .ac-tier--plus .ac-tier-price {
  color: var(--tier-plus-light);
}
.page-sub .co-tier--premium .co-tier-price small,
.page-sub .co-tier--plus .co-tier-price small,
.page-sub .ac-tier--premium .ac-tier-price small,
.page-sub .ac-tier--plus .ac-tier-price small {
  color: #fff;
}
.page-sub .co-tier--premium .co-tier-limits,
.page-sub .co-tier--plus .co-tier-limits,
.page-sub .ac-tier--premium .ac-tier-limits,
.page-sub .ac-tier--plus .ac-tier-limits {
  color: #fff;
}
.page-sub .co-tier--premium .co-tier-limits b,
.page-sub .ac-tier--premium .ac-tier-limits b {
  color: var(--tier-premium-light);
}
.page-sub .co-tier--plus .co-tier-limits b,
.page-sub .ac-tier--plus .ac-tier-limits b {
  color: var(--tier-plus-light);
}
.page-sub .co-tier--trial::after {
  border-color: var(--accent-border-hover-soft);
}
.page-sub .co-tier--premium::after {
  border-color: var(--tier-premium-border-hover);
}
.page-sub .co-tier--plus::after {
  border-color: var(--tier-plus-border-hover);
}
.page-sub .co-tier--trial.sel::after {
  background: var(--accent);
  color: #111114;
}
.page-sub .co-tier--premium.sel::after {
  background: var(--tier-premium);
  color: var(--tier-premium-on);
}
.page-sub .co-tier--plus.sel::after {
  background: var(--tier-plus);
  color: var(--tier-plus-on);
}
.page-sub .trial-banner,
.page-sub .co-trial-banner {
  border-color: var(--accent-border-soft);
  background: var(--accent-glow);
}
.page-sub .trial-banner-label {
  color: var(--text);
}
.page-sub .co-trial-banner strong,
.page-sub .co-trial-banner-countdown {
  color: var(--text);
}
/* Typographie coherente upgrade + compte */
.page-sub .co-muted,
.page-sub .ac-muted,
.page-sub .co-status,
.page-sub .ac-status,
.page-sub .co-note,
.page-sub .ac-note,
.page-sub .co-step-desc,
.page-sub .co-step-sub,
.page-sub .co-trust p,
.page-sub .ac-feats li,
.page-sub .ac-setting-lbl,
.page-sub .co-lead {
  font-size: 15px;
}
.page-sub .co-card-title,
.page-sub .ac-card-title,
.page-sub .ac-kicker {
  font-size: 13px;
}
.page-sub .co-step-title {
  font-size: 18px;
}
.page-sub .ac-plan,
.page-sub .co-tier-price,
.page-sub .ac-tier-price {
  font-size: 24px;
}
.page-sub .co-tier-name,
.page-sub .ac-tier-name {
  font-size: 12px;
}
.page-sub .co-tier-price small,
.page-sub .ac-tier-price small {
  font-size: 12px;
}
.page-sub .co-tier-limits,
.page-sub .ac-tier-limits {
  font-size: 14px;
}
.page-sub .co-tier-hint,
.page-sub .ac-tier-link,
.page-sub .co-substeps li {
  font-size: 14px;
}
.page-sub .ac-setting-sub {
  font-size: 14px;
}
.page-sub .co-wallet,
.page-sub .ac-wallet,
.page-sub .ac-wallet-addr {
  font-size: 14px;
}
.page-sub .co-badge,
.page-sub .ac-badge {
  font-size: 13px;
}
.page-sub .ac-wallet-name {
  font-size: 15px;
}
.page-sub .btn.block {
  font-size: 15px;
}
.page-sub .btn.danger {
  font-size: 15px;
}
.page-sub .co-auth-code label,
.page-sub .co-email-form label {
  font-size: 14px;
}
.page-sub .co-auth-code input,
.page-sub .co-email-form input,
.page-sub .ac-textarea {
  font-size: 15px;
}
.page-sub .co-auth-hint {
  font-size: 14px;
}
.page-sub .co-email-alt {
  font-size: 14px;
}
.page-sub .co-trial-banner strong {
  font-size: 16px;
}
.page-sub .co-trial-banner p,
.page-sub .co-trial-banner-countdown {
  font-size: 14px;
}
.page-sub .co-modal-box h2 {
  font-size: 22px;
}
.page-sub .co-modal-box p {
  font-size: 15px;
}
.page-sub .co-wallet-btn {
  font-size: 16px;
}
.page-sub .ac-tier-badge,
.page-sub .co-tier-badge {
  font-size: 11px;
}
.page-sub .co-feats li {
  font-size: 15px;
}
.page-sub .co-step-num {
  font-size: 15px;
}
.page-sub .co-wallet-name {
  font-size: 15px;
  font-weight: 700;
}
.page-sub .btn.ac-btn-sm {
  font-size: 13px;
}

/* ---------- HAUT ---------- */
.top {
  position: relative;
  padding: 16px 0 0;
  background: var(--bg);
  border-bottom: none;
}

.top-brand-row,
.top > .brand {
  padding: 0 18px;
}

.install-x {
  flex: none; width: 30px; height: 30px; border-radius: 8px;
  border: none; background: transparent; color: var(--muted);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.install-x:hover { background: rgba(255,255,255,.06); color: var(--text); }

/* Popup generique (ex. explication "fausse alerte probable") */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(0,0,0,.6); backdrop-filter: blur(3px);
}
.modal.hidden { display: none; }
.modal-card {
  position: relative; width: 100%; max-width: 400px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 18px; padding: 26px 22px 24px; text-align: center;
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
}
.modal-card .install-x { position: absolute; top: 12px; right: 12px; }
.modal-ico {
  width: 52px; height: 52px; margin: 0 auto 4px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 26px;
  background: rgba(244,33,46,.15); color: #ff8a91;
}
.modal-card h3 { margin: 10px 0 12px; font-size: 18px; }
.modal-text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.modal-note {
  margin: 14px 0 0; font-size: 12.5px; color: #6b7a89; line-height: 1.5;
}
.modal-note a { color: var(--blue); text-decoration: none; font-weight: 700; }
.modal-note a:hover { text-decoration: underline; }

.brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0;
}
.brand .logo { font-size: 26px; }
/* Logo image : se dimensionne via la font-size du contexte (.brand, .lp-brand...). */
/* flex: none empeche l'image d'etre ecrasee a ~0 dans les en-tetes flex (mobile). */
img.logo {
  height: 1.55em; width: auto; max-width: min(220px, 52vw); flex: none;
  vertical-align: middle; display: inline-block; object-fit: contain;
}
img.logo.logo--pwa {
  height: 1.85em;
  max-width: min(56px, 14vw);
}
.brand h1 { font-size: 18px; margin: 0; }
.brand-home {
  flex: 0 1 auto;
  min-width: 0;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit; cursor: pointer;
}
.brand-home:hover { opacity: .8; }
.brand-start {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 0 1 auto;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: var(--btn-label-weight, 600);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.top-nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
}
.top-nav-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border);
}
.page-blank {
  min-height: 40vh;
}
.conn { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.conn.on { background: var(--green); box-shadow: 0 0 8px var(--green); }
.conn.off { background: var(--red); }

.top-sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 10px 0 0;
  opacity: 0.9;
}

.app-windows {
  display: flex;
  width: 100%;
  margin: 12px 0 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}

.app-window {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.15s ease, background 0.15s ease;
}

.app-window + .app-window {
  border-left: 1px solid var(--border);
}

.app-window:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.app-window.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 -2px 0 var(--text);
}
.app-window[data-app-window="custom-feed"] {
  letter-spacing: 0.08em;
  font-size: 12px;
}
.custom-feed-head {
  margin: 0 0 14px;
  padding: 14px 16px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
}
.custom-feed-lead {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
.add-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 6px 6px 12px;
}
.add-row:has(input:focus, textarea:focus) { border-color: var(--card-border-hover); }
.add-row-compact {
  padding: 4px 4px 4px 10px;
}
.add-row input[type="text"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  padding: 6px 0;
  font-family: inherit;
}
.add-row textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  padding: 6px 0;
  resize: vertical;
  font-family: inherit;
  min-height: 44px;
}
.add-row .btn {
  align-self: center;
  flex-shrink: 0;
  padding: 7px 12px;
  font-weight: var(--btn-label-weight);
  letter-spacing: 0.04em;
  min-width: 52px;
}
.add-row-compact .btn {
  padding: 6px 12px;
}
.payment-warning-banner {
  margin: 10px 2px 0;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(232, 106, 106, 0.45);
  background: rgba(232, 106, 106, 0.08);
  font-size: 13px;
  line-height: 1.5;
  color: #ffb4b4;
}
.payment-warning-banner.hidden { display: none; }
.ac-payment-warning {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(232, 106, 106, 0.45);
  background: rgba(232, 106, 106, 0.08);
  font-size: 13px;
  line-height: 1.5;
  color: #ffb4b4;
}
.ac-payment-warning.hidden { display: none; }
.trial-banner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 6px 14px;
  max-width: min(480px, calc(100% - 168px));
  border-radius: 10px;
  border: 1px solid #6a5020;
  background: var(--panel);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  z-index: 2;
  pointer-events: none;
}
.trial-banner.hidden { display: none; }
.trial-banner-label {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd970;
  white-space: nowrap;
}
.trial-banner-divider {
  width: 1px;
  height: 26px;
  background: var(--border);
  flex-shrink: 0;
}
.trial-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 5px;
  min-height: 0;
}
.trial-countdown.is-ended {
  font-size: 13px;
  font-weight: 700;
  color: #ff8a91;
  white-space: nowrap;
}
.trial-countdown-unit {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 3px 7px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.trial-countdown-val {
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  color: #ffd970;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.trial-countdown-lbl {
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.feed.is-feed-locked {
  filter: blur(8px) saturate(0.85);
  opacity: 0.42;
  pointer-events: none;
  user-select: none;
  transition: filter .25s ease, opacity .25s ease;
}
.feed-unlock-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 8, 12, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.feed-unlock-overlay.hidden { display: none; }
.feed-unlock-panel {
  width: min(420px, 100%);
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  text-align: center;
}
.feed-unlock-icon {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
}
.feed-unlock-panel h2 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.feed-unlock-panel p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.feed-unlock-pay {
  width: min(400px, calc(100vw - 32px));
  max-width: 400px;
  margin: 0 auto;
  flex-shrink: 0;
}
.feed-unlock-overlay .sol-pay-card {
  width: 100%;
  max-width: 400px;
}
.feed-unlock-overlay .sol-pay-msg {
  margin: 0 18px 16px;
}
.btn {
  border: 1px solid var(--btn-fill-border);
  background: var(--btn-fill);
  color: var(--btn-fill-text);
  padding: 10px 18px;
  border-radius: 9px;
  font-size: var(--btn-label-size);
  font-weight: var(--btn-label-weight);
  letter-spacing: 0.01em;
  text-transform: none;
  cursor: pointer;
  text-decoration: none;
  transition: filter .15s, transform .05s;
}
/* Les boutons rendus via <a> ne doivent jamais etre soulignes. */
a.btn, a.btn:hover { text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  /* Alias explicite : meme rendu que .btn par defaut. */
  background: var(--btn-fill);
  border-color: var(--btn-fill-border);
  color: var(--btn-fill-text);
}
.btn.upgrade {
  background: linear-gradient(180deg, #ffd970, #e8a317);
  border-color: #e8a317;
  color: var(--btn-fill-text);
  font-weight: 700;
}
.btn.upgrade:hover { filter: brightness(1.05); }
.btn.danger {
  background: var(--red);
  border-color: var(--red);
  color: var(--btn-fill-text);
}
.btn.danger:hover { filter: brightness(1.08); }

/* ---------- Bouton Retour (toutes les pages) ---------- */
.page-back,
.co-email-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px 10px 14px;
  border-radius: 9px;
  border: 1px solid var(--btn-fill-border);
  background: var(--btn-fill);
  color: var(--btn-fill-text);
  font: inherit;
  font-size: var(--btn-label-size);
  font-weight: var(--btn-label-weight);
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  flex: none;
  transition: filter .15s, transform .05s;
}
a.page-back, a.page-back:hover { text-decoration: none; }
.page-back:hover,
.co-email-back:hover { filter: brightness(1.08); }
.page-back:active,
.co-email-back:active { transform: translateY(1px); }
.page-back:focus-visible,
.co-email-back:focus-visible {
  outline: 2px solid var(--card-border-hover);
  outline-offset: 2px;
}
.page-back__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  opacity: .9;
  transition: transform .15s ease;
}
.page-back:hover .page-back__ico { transform: translateX(-2px); }
.page-back--start { align-self: flex-start; }
.page-back--center { align-self: center; margin-top: 10px; }
.co-top .page-back,
.ac-top .page-back { margin-left: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 6px 8px 6px 12px;
  font-size: 13px;
  font-weight: 600;
  transition: border-color .15s ease;
}
.chip:hover:not(.is-turbo) {
  border-color: var(--card-border-hover);
}
.chip .chip-av { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: var(--card-seen); }
.chip .state { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.chip .state.ok { background: var(--green); }
.chip .state.error { background: var(--red); }
.chip .state.pending { background: #ffd400; }
.chip .state.paused-access { background: #e8a317; }
.chip.is-paused {
  border-color: #6a5020;
  background: #1f1a0f;
}
.chip.is-paused a { color: #ffd970; }
.chip a { color: var(--text); text-decoration: none; }
.chip a:hover { opacity: .85; }
.chip .chip-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: var(--card-seen);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 1px 8px;
}
.chip .chip-count.err { color: var(--red); border-color: rgba(244,33,46,.4); }
/* En attente du premier scan : petit spinner neutre (gris) dans le compteur. */
.chip .chip-count.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 9px;
}
.chip .chip-spin {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--muted);
  animation: turbo-spin .7s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .chip .chip-spin { animation: none; border-top-color: var(--muted); }
}
.chip .x {
  cursor: pointer;
  color: var(--muted);
  border: none;
  background: transparent;
  font-size: 15px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 50%;
}
.chip .x:hover { color: var(--red); background: rgba(244,33,46,.12); }
/* ---------- bouton Turbo (API officielle, Premium) ---------- */
.chip .turbo-toggle {
  cursor: pointer;
  color: var(--muted);
  border: 1px solid var(--card-border);
  background: var(--card-seen);
  font-size: 13px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 999px;
  transition: color .15s, background .15s, border-color .15s;
}
.chip .turbo-toggle:hover { color: #ffd400; border-color: rgba(255,212,0,.5); }
.chip .turbo-toggle:disabled { opacity: .5; cursor: default; }
/* PRET : contour JAUNE + eclair jaune (detection effective). */
.chip .turbo-toggle.is-on {
  color: #ffd400;
  background: var(--card-seen);
  border-color: #ffd400;
  box-shadow: 0 0 6px rgba(255, 212, 0, .35);
}
.chip .turbo-toggle.is-on:hover {
  color: #ffd400;
  border-color: #ffd400;
  background: rgba(255, 212, 0, .12);
}
/* EN PREPARATION (synchro initiale) : l'eclair est REMPLACE par un spinner de
   chargement. Le contour ne devient JAUNE (is-on) qu'une fois la reference
   posee -> montre clairement que le turbo n'est pas instantane au clic. */
.chip .turbo-toggle.is-loading {
  position: relative;
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  padding: 0;
  font-size: 0;               /* masque l'emoji eclair (emoji couleur) */
  vertical-align: middle;
  background: var(--card-seen);
  border-color: rgba(255, 212, 0, .4);
}
.chip .turbo-toggle.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;               /* centrage parfait dans l'encart */
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 212, 0, .25);
  border-top-color: #ffd400;
  animation: turbo-spin .7s linear infinite;
}
@keyframes turbo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .chip .turbo-toggle.is-loading::after { animation: none; border-top-color: rgba(255, 212, 0, .6); }
}
.chip.is-turbo {
  border-color: #ffd400;
  box-shadow:
    0 0 0 1px rgba(255, 212, 0, .22) inset,
    0 0 8px rgba(255, 210, 63, .42),
    0 0 18px rgba(255, 210, 63, .18);
}
.chip.is-turbo:hover {
  border-color: #ffd23f;
  box-shadow:
    0 0 0 1px rgba(255, 210, 63, .28) inset,
    0 0 10px rgba(255, 210, 63, .5),
    0 0 22px rgba(255, 210, 63, .22);
}
.chips-empty { color: var(--muted); font-size: 13px; padding: 4px 2px; }

/* ---------- compteurs ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.stats .stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
}
.stats .v { font-size: 19px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats .v.green { color: var(--green); }
.stats .v.blue { color: var(--blue); }
.stats .v.amber { color: #ffd400; }
.stats .l { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-top: 3px; }

/* ---------- MILIEU : feed ---------- */
.feed {
  flex: 1;
  padding: 10px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  overflow-x: clip;
  box-sizing: border-box;
}
.feed.is-bootstrapping {
  flex: 0 0 auto;
  justify-content: flex-start;
  gap: 0;
  min-height: 0;
}
.feed-empty {
  margin: auto;
  text-align: center;
  color: var(--muted);
}
.feed-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin: 0;
  min-height: 0;
  padding: 4px 20px 12px;
  text-align: center;
  color: var(--muted);
}
.feed-loading.hidden {
  display: none;
}
.feed-loading p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}
.feed-loading-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--feed-accent);
  border-right-color: color-mix(in srgb, var(--feed-accent) 45%, transparent);
  border-radius: 50%;
  animation: feed-loading-spin 0.75s linear infinite;
}
@keyframes feed-loading-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .feed-loading-spinner {
    animation: none;
    border-top-color: var(--feed-accent);
    border-right-color: rgba(var(--feed-accent-rgb), 0.35);
  }
}
.feed-empty-icon { font-size: 40px; opacity: .6; }
.feed-empty p { margin: 12px 0 4px; font-size: 15px; }
.feed-empty small { font-size: 12px; opacity: .8; }
.feed-expired .feed-expired-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 10px 18px;
  text-decoration: none;
}

/* ---------- fenetres feed (onglets type navigateur) ---------- */
.feed-windows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 2px;
  min-width: 0;
  overflow-x: clip;
}

.feed-add-bar {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 14px;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  padding: 12px 14px 14px;
  box-sizing: border-box;
  min-width: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}
.feed-add-bar--composer-only {
  display: block;
  grid-template-columns: none;
  padding: 12px 14px;
}

.feed-quick-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 2px 4px 2px 0;
  border-right: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  padding-right: 14px;
}

.feed-quick-panel-title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.feed-quick-toggles {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feed-quick-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 4px 8px 0;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.18s ease;
}

.feed-quick-row:not(.is-on) {
  opacity: 0.82;
}

.feed-quick-row:hover {
  opacity: 1;
}

.feed-quick-row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.18s ease, background 0.18s ease;
}

.feed-quick-row.is-on .feed-quick-row-icon {
  color: var(--feed-accent);
  background: color-mix(in srgb, var(--feed-accent) 14%, transparent);
}

.feed-quick-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.feed-quick-row-text strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  transition: color 0.18s ease;
}

.feed-quick-row:not(.is-on) .feed-quick-row-text strong {
  color: color-mix(in srgb, var(--text) 72%, var(--muted));
}

.feed-quick-row-text span {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}

.feed-quick-switch {
  position: relative;
  flex-shrink: 0;
  width: 51px;
  height: 31px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.feed-quick-switch:focus-visible .feed-quick-switch-track {
  outline: 2px solid color-mix(in srgb, var(--feed-accent) 65%, transparent);
  outline-offset: 2px;
}

.feed-quick-switch-track {
  display: block;
  position: relative;
  width: 51px;
  height: 31px;
  border-radius: 31px;
  background: rgba(120, 120, 128, 0.36);
  transition: background 0.22s ease;
}

.feed-quick-switch.is-on .feed-quick-switch-track {
  background: var(--mode-green);
}

.feed-quick-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.15),
    0 1px 1px rgba(0, 0, 0, 0.16);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.feed-quick-switch.is-on .feed-quick-switch-thumb {
  transform: translateX(20px);
}

@media (prefers-reduced-motion: reduce) {
  .feed-quick-switch-track,
  .feed-quick-switch-thumb {
    transition: none;
  }
}

.feed-add-bar .feed-add-composer {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.feed-window-tabs {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 0;
  min-height: 46px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.feed-window-tabs::-webkit-scrollbar { display: none; }
.feed-window-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  max-width: 280px;
  padding: 10px 16px 12px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
  position: relative;
  top: 1px;
}
.feed-window-tab:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}
.feed-tab-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--feed-tab-color);
  opacity: 0.38;
  box-shadow: none;
  transition: opacity 0.22s ease, box-shadow 0.22s ease;
}
.feed-window-tab.is-active .feed-tab-dot {
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.feed-window-tab.is-active {
  background: var(--panel);
  border-color: var(--border);
  color: var(--text);
  z-index: 2;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
}
.feed-window-tab:active:not(.is-feed-dragging):not(.is-feed-press-pending) {
  background: rgba(255, 255, 255, 0.06);
}
.feed-window-tab.is-active .feed-tab-count {
  border-color: color-mix(in srgb, var(--feed-tab-color) 28%, var(--border));
}
.feed-window-tabs.is-feed-reorder {
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  flex-wrap: nowrap;
}
.feed-window-tab.is-feed-reorder-sibling {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.feed-window-tabs.is-feed-reorder .feed-window-tab:not(.is-feed-dragging) {
  opacity: 1;
}
.feed-window-tabs.is-feed-reorder .feed-window-tab.is-active:not(.is-feed-dragging) {
  opacity: 1;
}
.feed-tab-drag-placeholder {
  flex: 0 0 auto;
  flex-shrink: 0;
  border-radius: 10px 10px 0 0;
  border: 1px dashed color-mix(in srgb, var(--feed-tab-color) 55%, transparent);
  background: color-mix(in srgb, var(--feed-tab-color) 8%, transparent);
  box-sizing: border-box;
  pointer-events: none;
  animation: feedTabPlaceholderPulse 1.2s ease-in-out infinite;
}
@keyframes feedTabPlaceholderPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.95; }
}
.feed-window-tab.is-feed-press-pending {
  z-index: 4;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--feed-tab-color) 22%, transparent),
    0 -4px 14px rgba(0, 0, 0, 0.22);
  filter: brightness(1.06);
}
.feed-window-tab.is-feed-dragging {
  position: fixed;
  margin: 0;
  cursor: grabbing;
  z-index: 1200;
  opacity: 1 !important;
  flex-shrink: 0;
  box-sizing: border-box;
  border-color: color-mix(in srgb, var(--feed-tab-color) 45%, var(--border));
  background: var(--panel);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.42),
    0 0 0 1px color-mix(in srgb, var(--feed-tab-color) 35%, transparent);
  transition: box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1), transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: left, top;
}
.feed-window-tab.is-feed-dropping {
  pointer-events: none;
}
.feed-window-add {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  position: relative;
  top: 1px;
  min-width: 44px;
  padding: 10px 14px 12px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
.feed-window-add-icon {
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  transition: color 0.22s ease, transform 0.22s ease;
}
.feed-window-add:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border-color: color-mix(in srgb, var(--border) 85%, #fff);
}
.feed-window-add:hover .feed-window-add-icon {
  transform: scale(1.06);
}
.feed-window-add:active {
  background: rgba(255, 255, 255, 0.06);
}
.feed-tab-count {
  font-size: 11px;
  font-weight: 800;
  color: var(--text);
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
  min-width: 20px;
  text-align: center;
  transition: border-color 0.22s ease, background 0.22s ease;
}
.feed-window-body {
  position: relative;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 12px 14px 14px;
  box-shadow: none;
}
.feed-panel-drawer {
  margin: 0;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}
.feed-panel-drawer-head {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  min-height: 50px;
}
.feed-panel-drawer-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  min-height: 50px;
  box-sizing: border-box;
  padding: 14px 16px;
  border: none;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.08) 100%);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.feed-panel-drawer-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
}
.feed-panel-drawer.is-open .feed-panel-drawer-toggle {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.feed-panel-drawer-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: var(--feed-tab-color);
  background: color-mix(in srgb, var(--feed-tab-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--feed-tab-color) 28%, var(--border));
}
.feed-panel-drawer-chevron-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.22s ease;
}
.feed-panel-drawer.is-open .feed-panel-drawer-chevron-icon {
  transform: rotate(180deg);
}
.feed-panel-drawer-feed {
  color: var(--feed-tab-color);
}
.feed-panel-drawer-body {
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: var(--panel);
  box-sizing: border-box;
  box-shadow: none;
  min-width: 0;
  overflow-x: clip;
}
.feed-panel-drawer-body .feed-window-body {
  padding: 10px 16px;
}
.feed-tab-panel {
  display: none;
  flex-direction: column;
  gap: 10px;
}
.feed-tab-panel.is-active { display: flex; }
.feed-params {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.feed-params-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  row-gap: 10px;
  padding: 0 0 10px;
  margin: 0;
  border-bottom: 1px solid var(--border);
}
.feed-params-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}
.feed-params-nav-btn:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--feed-tab-color) 40%, var(--border));
  background: rgba(255, 255, 255, 0.06);
}
.feed-params-nav-btn.is-active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--feed-tab-color) 55%, var(--border));
  background: color-mix(in srgb, var(--feed-tab-color) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--feed-tab-color) 14%, transparent);
}
.feed-params-nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}
.feed-params-nav-btn.is-active .feed-params-nav-count {
  background: color-mix(in srgb, var(--feed-tab-color) 22%, transparent);
}
.feed-params-panels {
  min-width: 0;
  padding-top: 10px;
}
.feed-params-panel {
  display: none;
  padding: 0;
  min-width: 0;
}
.feed-params-panel.is-active {
  display: block;
}
.feed-params-panel[hidden] {
  display: none !important;
}
.feed-params-block {
  padding: 0;
  min-width: 0;
}
.feed-params-block + .feed-params-block {
  border-top: none;
}
.feed-params-block-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}
.feed-params-block--sources {
  padding-top: 0;
}
.feed-params-block--sources .feed-add-sources-title {
  font-size: 14px;
}
.feed-window-intro {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.feed-window-intro-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.35;
}
.feed-window-intro-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

/* popup description feed */
.feed-desc-modal-card {
  max-width: 420px;
  width: min(420px, calc(100vw - 32px));
}
.feed-desc-modal-card h3 {
  margin: 0 0 12px;
  padding-right: 28px;
}
.feed-desc-modal-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  white-space: pre-wrap;
}

.feed-general-settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feed-general-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}
.feed-general-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feed-general-field--color {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.feed-general-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.feed-general-notify {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}
.feed-general-notify-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.feed-general-notify-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.feed-general-notify-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}
.feed-general-notify input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--feed-accent);
  cursor: pointer;
}
.feed-general-settings .feed-settings-row-head {
  margin: 0;
}
.feed-general-settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.feed-general-settings-actions .btn.primary {
  margin-left: auto;
}
.feed-general-delete {
  border-color: rgba(255, 100, 100, 0.35) !important;
  color: #ff9a9a !important;
}

/* popup paramètres feeds */
.feed-settings-card {
  max-width: 440px;
  width: min(440px, calc(100vw - 32px));
}
.feed-settings-view.hidden {
  display: none;
}
.feed-settings-lead {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.feed-settings-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.feed-settings-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel2);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.feed-settings-pick:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: color-mix(in srgb, var(--feed-accent) 45%, var(--border));
}
.feed-settings-pick .feed-tab-dot {
  background: var(--feed-accent);
  width: 10px;
  height: 10px;
}
.feed-settings-pick-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.feed-settings-pick-name {
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feed-settings-pick-sub {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feed-settings-pick-chevron {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--muted);
  line-height: 1;
}
.feed-settings-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.feed-settings-add-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--card-border-hover);
  color: var(--text);
}
.feed-settings-add-form {
  margin-bottom: 16px;
}
.feed-settings-add-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.feed-settings-add-form .feed-settings-row-head {
  margin-bottom: 0;
}
.feed-settings-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  border: none;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s;
}
.feed-settings-back:hover {
  color: var(--text);
}
.feed-settings-form {
  margin-bottom: 14px;
}
.feed-settings-form .feed-settings-row {
  margin: 0;
}
.feed-settings-delete-hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.feed-settings-delete {
  border-color: rgba(255, 100, 100, 0.35) !important;
  color: #ff9a9a !important;
}
.feed-settings-actions--detail {
  justify-content: space-between;
}
.feed-settings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  margin-bottom: 14px;
  padding-right: 4px;
}
.feed-settings-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel2);
}
.feed-settings-row-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.feed-settings-prefix {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}
.feed-settings-slug {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}
.feed-settings-slug:read-only {
  opacity: 0.72;
  cursor: default;
}
.feed-settings-color {
  width: 36px;
  height: 36px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
  flex-shrink: 0;
}
.feed-settings-del,
.feed-settings-lock {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
}
.feed-settings-del {
  border: 1px solid rgba(255, 100, 100, 0.35);
  background: rgba(255, 80, 80, 0.12);
  color: #ff9a9a;
  cursor: pointer;
}
.feed-settings-del:hover {
  background: rgba(255, 80, 80, 0.22);
}
.feed-settings-lock {
  opacity: 0.55;
  font-size: 14px;
}
.feed-settings-title,
.feed-settings-desc {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  resize: vertical;
}
.feed-settings-mode {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.feed-settings-mode select {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
.feed-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}
.feed-top-followed {
  margin-bottom: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}
.feed-top-followed--empty {
  padding: 0;
}
.feed-top-followed-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.25;
}
.feed-top-followed-hint {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--muted);
}
.feed-top-followed-empty {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.feed-top-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.feed-top-split--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.feed-top-split-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feed-top-split-label {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}
.feed-top-table--empty .feed-data-empty {
  min-height: 42px;
  display: flex;
  align-items: center;
}
.feed-top-table--compact .feed-data-row {
  grid-template-columns: 24px 40px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 6px 10px;
  min-height: 52px;
  font-size: 14px;
}
.feed-top-table--compact .feed-data-av {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}
.feed-top-table--compact .feed-top-rank {
  font-size: 13px;
}
.feed-top-table--compact .feed-data-handle {
  font-size: 15px;
  font-weight: 800;
}
.feed-top-table--compact .feed-top-count {
  min-width: 26px;
  padding: 3px 8px;
  font-size: 12px;
}
.feed-tables-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.feed-tables-grid--single {
  grid-template-columns: minmax(0, 1fr);
}
.feed-tables-col {
  min-width: 0;
}
.feed-data-table {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.14);
}
.feed-data-head,
.feed-data-row {
  display: grid;
  grid-template-columns: 32px 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  min-height: 42px;
}
.feed-hidden-table-head,
.feed-hidden-row {
  grid-template-columns: 32px minmax(0, 1fr) auto;
}
.feed-data-head {
  min-height: 34px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.feed-data-body {
  list-style: none;
  margin: 0;
  padding: 0;
}
.feed-data-row {
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  font-size: 14px;
}
.feed-data-row:last-child {
  border-bottom: none;
}
.feed-data-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}
.feed-data-empty {
  padding: 14px 12px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: none;
}
.feed-top-rank {
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  text-align: right;
}
.feed-data-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--panel2);
}
.feed-data-handle {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feed-data-handle:hover {
  color: var(--feed-accent);
}
.feed-top-count {
  min-width: 28px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--text);
  background: color-mix(in srgb, var(--feed-accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--feed-accent) 32%, transparent);
}
button.feed-top-count {
  font: inherit;
  font-family: inherit;
  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
button.feed-top-count:hover {
  filter: brightness(1.06);
  background: color-mix(in srgb, var(--feed-accent) 24%, transparent);
  border-color: color-mix(in srgb, var(--feed-accent) 45%, transparent);
}
button.feed-top-count:active {
  transform: translateY(1px);
}
.feed-hidden-accounts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feed-hidden-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.feed-hidden-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}
.feed-hidden-hint {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}
.feed-hidden-row-restore {
  padding: 5px 10px !important;
  font-size: 12px !important;
}
.feed-hidden-reset {
  flex-shrink: 0;
  margin-top: 0;
}
.feed-hidden-reset:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Grille compacte 5 colonnes (paramètres : comptes, masqués) */
.feed-settings-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.feed-settings-cell {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 34px;
  padding: 5px 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}
.feed-settings-cell[hidden] {
  display: none;
}
.feed-settings-av {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--panel2);
}
.feed-settings-handle {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feed-settings-handle:hover {
  color: var(--feed-accent);
}
.feed-settings-action {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.feed-settings-action:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--feed-accent) 40%, var(--border));
  background: rgba(255, 255, 255, 0.06);
}
.feed-settings-empty {
  grid-column: 1 / -1;
  padding: 12px 10px;
  font-size: 12px;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 8px;
  text-align: center;
}

@media (max-width: 1200px) {
  .feed-settings-grid,
  .feed-add-list.feed-settings-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .feed-tables-grid {
    grid-template-columns: 1fr;
  }
  .feed-top-split,
  .feed-top-split--3 {
    grid-template-columns: 1fr;
  }
  .feed-settings-grid,
  .feed-add-list.feed-settings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .feed-settings-grid,
  .feed-add-list.feed-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.feed-window-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------- Ajout de comptes au feed ---------- */
.feed-add {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.feed-add-composer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.14);
}

.feed-add-composer-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.feed-add-composer-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.feed-add-composer-tail {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-shrink: 0;
}

.feed-add-mode {
  position: relative;
  flex-shrink: 0;
}

.feed-add-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  min-height: 44px;
  min-width: 118px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.feed-add-mode-btn--blue {
  border-color: color-mix(in srgb, var(--mode-blue) 40%, var(--border));
  background: color-mix(in srgb, var(--mode-blue) 8%, transparent);
  color: var(--mode-blue);
}

.feed-add-mode-btn--gold {
  border-color: color-mix(in srgb, var(--mode-green) 40%, var(--border));
  background: color-mix(in srgb, var(--mode-green) 8%, transparent);
  color: var(--mode-green);
}

.feed-add-mode.is-unused .feed-add-mode-btn {
  opacity: 0.55;
}

.feed-add-mode-btn:hover {
  filter: brightness(1.08);
}

.feed-add-mode-label {
  font-size: 12px;
  white-space: nowrap;
}

.feed-add-mode-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feed-add-mode-glyph {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.feed-add-mode-glyph--instant,
.feed-add-mode-glyph--standard {
  color: inherit;
}

.feed-add-badge .feed-add-mode-glyph {
  width: 14px;
  height: 14px;
}

.feed-add-mode-opt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
}

.feed-add-mode-chevron {
  opacity: 0.85;
  transition: transform 0.18s ease;
}

.feed-add-mode.is-open .feed-add-mode-chevron {
  transform: rotate(180deg);
}

.feed-add-mode-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  min-width: 168px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.feed-add-mode-menu.hidden {
  display: none;
}

.feed-add-mode-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.feed-add-mode-opt:hover {
  background: rgba(255, 255, 255, 0.06);
}

.feed-add-mode-opt.is-selected {
  background: rgba(255, 255, 255, 0.08);
}

.feed-add-mode-opt--blue.is-selected {
  border-color: color-mix(in srgb, var(--mode-blue) 40%, transparent);
}

.feed-add-mode-opt--gold.is-selected {
  border-color: color-mix(in srgb, var(--mode-green) 40%, transparent);
}

.feed-add-mode-opt-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.feed-add-mode-opt-body strong {
  font-size: 13px;
  font-weight: 800;
}

.feed-add-mode-opt-body span {
  font-size: 11px;
  color: var(--muted);
}

.feed-add-mode-opt--blue .feed-add-mode-opt-body strong { color: var(--mode-blue); }
.feed-add-mode-opt--gold .feed-add-mode-opt-body strong { color: var(--mode-green); }

.feed-add-input-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel2);
  transition: border-color 0.15s;
}

.feed-add-input-wrap:focus-within {
  border-color: color-mix(in srgb, var(--feed-tab-color) 55%, var(--border));
}

.feed-add-input-wrap--duplicate {
  border-color: color-mix(in srgb, #94a3b8 55%, var(--border));
  background: color-mix(in srgb, #94a3b8 8%, var(--panel2));
}

.feed-add-input-wrap--duplicate:focus-within {
  border-color: color-mix(in srgb, #94a3b8 65%, var(--border));
}

.feed-add-preview--already {
  padding: 0;
  background: color-mix(in srgb, #94a3b8 10%, transparent);
  border: 1px solid color-mix(in srgb, #94a3b8 35%, var(--border));
}

.feed-add-already {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  min-width: 0;
}

.feed-add-already-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  background: color-mix(in srgb, #94a3b8 22%, transparent);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
}

.feed-add-already-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--border);
}

.feed-add-already-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.feed-add-already-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.feed-add-already-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.feed-add-already-handle {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.feed-add-already-name {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-add-preview--already .feed-add-badge {
  flex-shrink: 0;
}

.feed-add-input-at {
  padding-left: 14px;
  font-size: 15px;
  font-weight: 800;
  color: var(--muted);
  user-select: none;
}

.feed-add-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px 12px 4px;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
}

.feed-add-input::placeholder {
  color: var(--muted);
  font-weight: 600;
  opacity: 0.88;
}

.feed-add-input:focus {
  outline: none;
}

.feed-add-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.feed-add-submit {
  flex-shrink: 0;
  align-self: stretch;
  min-width: 96px;
  padding-left: 16px;
  padding-right: 16px;
}

.feed-add-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

.feed-add-submit:disabled:hover {
  filter: none;
  transform: none;
}

.feed-added-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  align-self: stretch;
  min-width: 0;
  padding-left: 12px;
  padding-right: 12px;
  white-space: nowrap;
}

.feed-added-toggle.is-open,
.feed-bulk-toggle.is-open {
  background: linear-gradient(180deg, #d5dbe2 0%, #9aa6b3 100%);
  border-color: #8e99a6;
  box-shadow: inset 0 1px 2px rgba(15, 17, 20, 0.22);
}

.feed-added-toggle-chevron,
.feed-bulk-toggle-chevron {
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.feed-added-toggle.is-open .feed-added-toggle-chevron,
.feed-bulk-toggle.is-open .feed-bulk-toggle-chevron {
  transform: rotate(180deg);
}

.feed-added-panel {
  padding: 8px 0 0;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  max-height: 280px;
  overflow: auto;
}

.feed-added-empty {
  margin: 0;
  padding: 12px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.feed-added-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.feed-added-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel2);
}

.feed-added-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.feed-added-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.feed-added-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-added-handle {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-added-main:hover .feed-added-handle {
  color: var(--text);
}

.feed-added-item .feed-add-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.feed-added-item .feed-add-remove:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.feed-bulk-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  align-self: stretch;
  min-width: 0;
  padding-left: 12px;
  padding-right: 12px;
  white-space: nowrap;
}

.feed-bulk-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0 0;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

.feed-bulk-input {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel2);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.feed-bulk-input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--feed-tab-color, var(--feed-accent, #a8adb4)) 55%, var(--border));
}

.feed-bulk-hint {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted);
}

.feed-bulk-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.feed-bulk-submit {
  flex-shrink: 0;
}

.feed-bulk-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.feed-bulk-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.feed-add-preview {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

.feed-add-preview.hidden { display: none; }

.feed-add-preview--ok {
  background: color-mix(in srgb, var(--pool-green) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--pool-green) 35%, var(--border));
  color: var(--pool-green-soft);
}

.feed-add-preview--info {
  background: color-mix(in srgb, var(--feed-tab-color) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--feed-tab-color) 30%, var(--border));
  color: var(--text);
}

.feed-add-preview--warn {
  background: color-mix(in srgb, #fbbf24 10%, transparent);
  border: 1px solid color-mix(in srgb, #fbbf24 35%, var(--border));
  color: #fcd34d;
}

.feed-add-results {
  display: flex;
  flex-direction: column;
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel2);
}

.feed-add-results.hidden { display: none; }

.feed-add-results-empty {
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.feed-add-result {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}

.feed-add-result:last-child { border-bottom: none; }

.feed-add-result:hover,
.feed-add-result.is-highlighted,
.feed-add-result.is-exact {
  background: rgba(255, 255, 255, 0.06);
}

.feed-add-result.is-exact {
  background: color-mix(in srgb, var(--pool-green) 10%, transparent);
}

.feed-add-result-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.feed-add-result-av--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  font-size: 16px;
  font-weight: 800;
  color: var(--muted);
}

.feed-add-result-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feed-add-result-handle {
  font-size: 14px;
  font-weight: 800;
}

.feed-add-result-name {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-add-result-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  max-width: 46%;
}

.feed-add-result-check .feed-add-already-mark {
  background: color-mix(in srgb, var(--pool-green) 22%, transparent);
  color: var(--pool-green-soft);
}

.feed-add-result-check-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--pool-green-soft);
  line-height: 1.2;
}

.feed-add-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.feed-add-badge--pool {
  background: color-mix(in srgb, var(--pool-green) 12%, transparent);
  color: var(--pool-green-soft);
  border: 1px solid color-mix(in srgb, var(--pool-green) 30%, var(--border));
}

.feed-add-badge--blue {
  background: color-mix(in srgb, var(--mode-blue) 12%, transparent);
  color: var(--mode-blue);
  border: 1px solid color-mix(in srgb, var(--mode-blue) 35%, transparent);
}

.feed-add-badge--gold {
  background: color-mix(in srgb, var(--mode-green) 12%, transparent);
  color: var(--mode-green);
  border: 1px solid color-mix(in srgb, var(--mode-green) 35%, transparent);
}

.feed-add-lightning {
  margin-top: 2px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.feed-add-lightning.hidden { display: none; }

.feed-add-lightning-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.feed-add-lightning-desc {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.feed-add-lightning-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feed-add-lightning-opt {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.feed-add-lightning-opt:has(input:checked) {
  background: rgba(255, 255, 255, 0.06);
}

.feed-add-lightning-opt--blue:has(input:checked) {
  border-color: color-mix(in srgb, var(--mode-blue) 55%, var(--border));
}

.feed-add-lightning-opt--gold:has(input:checked) {
  border-color: color-mix(in srgb, var(--mode-green) 55%, var(--border));
}

.feed-add-lightning-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.feed-add-lightning-opt-icon {
  font-size: 18px;
  line-height: 1;
}

.feed-add-lightning-opt--blue .feed-add-lightning-opt-icon { color: var(--mode-blue); }
.feed-add-lightning-opt--gold .feed-add-lightning-opt-icon { color: var(--mode-green); }

.feed-add-lightning-opt-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.feed-add-lightning-opt-body strong {
  font-size: 13px;
  color: var(--text);
}

.feed-add-lightning-opt-body span {
  font-size: 12px;
  color: var(--muted);
}

.feed-add-lightning-opt-bal {
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.feed-add-lightning-shop {
  margin-top: 10px;
}

.feed-add-sloth {
  margin-top: 2px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.feed-add-sloth.hidden { display: none; }

.feed-add-sloth-lead {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.feed-add-sloth-note {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.feed-add-sloth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 520px) {
  .feed-add-sloth-grid {
    grid-template-columns: 1fr;
  }
}

.feed-add-sloth-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.feed-add-sloth-card--lent {
  border-color: color-mix(in srgb, var(--mode-blue) 35%, var(--border));
}

.feed-add-sloth-card--turbo {
  border-color: color-mix(in srgb, var(--mode-green) 35%, var(--border));
}

.feed-add-sloth-emoji {
  font-size: 22px;
  line-height: 1;
}

.feed-add-sloth-name {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.feed-add-sloth-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.feed-add-sloth-bal {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.feed-add-sloth-bal strong {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.feed-add-sloth-btn {
  margin-top: 4px;
  width: 100%;
}

.feed-add-sloth-shop {
  margin-top: 10px;
}

.feed-add-sources {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.feed-add-sources-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.feed-add-sources-title {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}

.feed-add-sources-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.feed-add-filter {
  display: block;
}

.feed-add-filter-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.feed-add-filter-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel2);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.feed-add-filter-input:focus {
  outline: none;
  border-color: var(--card-border-hover);
}

.feed-add-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.feed-add-list.feed-settings-grid {
  gap: 6px;
}

.feed-add-list.feed-settings-grid .feed-add-row {
  --feed-add-row-h: 40px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  min-height: var(--feed-add-row-h);
  padding: 0 28px 0 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid var(--border);
  min-width: 0;
  overflow: hidden;
  position: relative;
}
.feed-add-list.feed-settings-grid .feed-add-row--pool {
  border-color: color-mix(in srgb, var(--pool-green) 48%, var(--border));
}
.feed-add-list.feed-settings-grid .feed-add-row--blue {
  border-color: color-mix(in srgb, var(--mode-blue) 48%, var(--border));
}
.feed-add-list.feed-settings-grid .feed-add-row--gold {
  border-color: color-mix(in srgb, var(--mode-green) 48%, var(--border));
}

.feed-add-list.feed-settings-grid .feed-add-row:last-child {
  border-bottom: 1px solid var(--border);
}

.feed-add-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
}

.feed-add-row:last-child { border-bottom: none; }

.feed-add-row[hidden] { display: none; }

.feed-add-list.feed-settings-grid .feed-add-row-av {
  width: var(--feed-add-row-h);
  min-width: var(--feed-add-row-h);
  height: auto;
  align-self: stretch;
  aspect-ratio: 1;
  border-radius: 0;
  border-top-left-radius: 7px;
  border-bottom-left-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}

.feed-add-row-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.feed-add-list.feed-settings-grid .feed-add-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 0 8px;
}

.feed-add-list.feed-settings-grid .feed-add-row-handle,
.feed-add-list.feed-settings-grid .feed-add-row-name {
  display: block;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s;
}

.feed-add-list.feed-settings-grid .feed-add-row-handle {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-align: left;
}

.feed-add-list.feed-settings-grid .feed-add-row-handle:hover {
  color: var(--feed-accent);
}

.feed-add-list.feed-settings-grid .feed-add-row-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}

.feed-add-list.feed-settings-grid .feed-add-row-name:hover {
  color: var(--text);
}

.feed-add-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.feed-add-row-handle {
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-add-row-name {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-add-list.feed-settings-grid .feed-add-badge {
  display: none;
}

.feed-add-list.feed-settings-grid .feed-add-remove {
  position: absolute;
  top: 50%;
  right: 4px;
  z-index: 2;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 5px;
  font-size: 14px;
  line-height: 1;
  border: 1px solid color-mix(in srgb, #fca5a5 45%, var(--border));
  background: rgba(0, 0, 0, 0.55);
  color: #fca5a5;
}

.feed-add-list.feed-settings-grid .feed-add-remove:hover {
  color: #fecaca;
  border-color: color-mix(in srgb, #fca5a5 65%, var(--border));
  background: color-mix(in srgb, #fca5a5 18%, transparent);
}

.feed-add-row-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
}

.feed-add-row-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.feed-add-remove {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.feed-add-remove:hover {
  color: #fca5a5;
  border-color: color-mix(in srgb, #fca5a5 45%, var(--border));
  background: color-mix(in srgb, #fca5a5 8%, transparent);
}

.feed-add-empty {
  padding: 20px 16px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  text-align: center;
  background: rgba(0, 0, 0, 0.08);
}

.feed-add-empty-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.feed-add-empty-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

@media (max-width: 720px) {
  .feed-add-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .feed-quick-panel {
    border-right: none;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
    padding-right: 0;
    padding-bottom: 12px;
  }
}

@media (max-width: 520px) {
  .feed-add-composer-row {
    flex-direction: column;
  }
  .feed-add-composer-tail {
    width: 100%;
  }
  .feed-add-mode {
    flex: 1;
    min-width: 0;
  }
  .feed-add-mode-btn {
    width: 100%;
    justify-content: center;
  }
  .feed-add-submit {
    flex: 1;
    width: auto;
    min-height: 44px;
  }
  .feed-added-toggle {
    flex: 1;
    min-height: 44px;
  }
  .feed-bulk-toggle {
    flex: 1;
    min-height: 44px;
  }
  .feed-add-result-check-label {
    display: none;
  }
}

.feed-custom-turbo-meta {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--mode-green);
}

.feed-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
  min-width: 0;
}
.feed-pagination {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.feed-pagination--top,
.feed-pagination--bottom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
}
.feed-pagination--top {
  margin: 0;
  padding: 0;
  border: none;
}
.feed-pagination--bottom {
  display: flex;
  justify-content: center;
  margin: 8px 0 0;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.feed-toolbar {
  display: flex;
  justify-content: stretch;
  align-items: center;
  margin: 0 0 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.feed-toolbar.is-empty {
  display: none;
}
.feed-view-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 16px 0 20px;
}
.feed-view-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.feed-view-tab,
.feed-rank-window-btn {
  min-width: 52px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.feed-rank-windows {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.feed-rank-cats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.feed-rank-cats-sep {
  width: 1px;
  height: 18px;
  margin: 0 2px;
  background: color-mix(in srgb, var(--border) 80%, transparent);
  flex-shrink: 0;
}
.feed-rank-cat-btn {
  --feed-cat: var(--feed-accent, #a8adb4);
  min-width: 52px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--feed-cat) 55%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--feed-cat) 18%, transparent);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--feed-cat) 20%, transparent);
  transition: filter 0.15s ease, opacity 0.15s ease;
}
.feed-rank-cat-btn[data-feed-cat="cryptos"] { --feed-cat: var(--cat-cryptos); }
.feed-rank-cat-btn[data-feed-cat="ai"] { --feed-cat: var(--cat-ai); }
.feed-rank-cat-btn[data-feed-cat="tradefi"] { --feed-cat: var(--cat-tradefi); }
.feed-rank-cat-btn.is-on {
  opacity: 1;
  filter: none;
}
.feed-rank-cat-btn:not(.is-on) {
  opacity: 0.48;
  filter: grayscale(1);
}
.feed-view-tab:hover,
.feed-rank-window-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: color-mix(in srgb, var(--feed-accent, #a8adb4) 35%, var(--border));
}
.feed-view-tab.is-active,
.feed-rank-window-btn.is-active {
  color: var(--text);
  background: color-mix(in srgb, var(--feed-accent, #a8adb4) 16%, transparent);
  border-color: color-mix(in srgb, var(--feed-accent, #a8adb4) 50%, var(--border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--feed-accent, #a8adb4) 18%, transparent);
}
.feed-rank-window-btn.is-loading {
  animation: feed-rank-window-pulse 0.9s ease-in-out infinite;
}
.feed-timeline.is-rank-loading .feed-timeline-body {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
@keyframes feed-rank-window-pulse {
  50% { opacity: 0.62; }
}
.feed-rank-empty {
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.feed-toolbar-cluster {
  display: grid;
  grid-template-columns: minmax(0, 35fr) 1px minmax(0, 20fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}
.feed-toolbar-cluster.has-pagination {
  grid-template-columns: minmax(0, 35fr) 1px minmax(0, 20fr) 1px minmax(0, 35fr);
}
.feed-toolbar-cluster--no-search {
  grid-template-columns: auto 1fr;
}
.feed-toolbar-cluster--no-search.has-pagination {
  grid-template-columns: auto 1px minmax(0, 1fr);
}
.feed-toolbar-cluster--no-search .feed-toolbar-menu {
  justify-content: flex-start;
}
.feed-toolbar-cluster--no-search .feed-toolbar-pagination {
  justify-self: end;
}
.feed-toolbar-cluster--pager-only,
.feed-toolbar-cluster--pager-only.has-pagination {
  grid-template-columns: minmax(0, 1fr);
}
.feed-toolbar-handle {
  min-width: 0;
}
.feed-toolbar-sep {
  width: 1px;
  align-self: stretch;
  min-height: 28px;
  margin: 6px 0;
  background: var(--border);
  opacity: 0.9;
}
.feed-toolbar-sep.hidden {
  display: none;
}
.feed-toolbar-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.feed-toolbar-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.feed-toolbar-menu-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: color-mix(in srgb, var(--feed-accent) 35%, var(--border));
}
.feed-toolbar-menu-btn.is-open {
  background: color-mix(in srgb, var(--feed-accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--feed-accent) 45%, var(--border));
  color: var(--feed-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--feed-accent) 18%, transparent);
}
.feed-toolbar-menu-icon {
  width: 20px;
  height: 20px;
}
.feed-toolbar-settings {
  display: none;
  flex-direction: column;
  min-width: 0;
  margin: 0 0 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}
.feed-toolbar-settings.is-open {
  display: flex;
}
.feed-toolbar-settings-body {
  padding: 10px 16px 16px;
}
.feed-toolbar .feed-search {
  margin: 4px 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.feed-toolbar-pagination {
  display: flex;
  justify-content: stretch;
  align-items: center;
  width: 100%;
  min-width: 0;
  margin: 4px 0;
  overflow: hidden;
  user-select: none;
}
.feed-toolbar .feed-search-field {
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: color-mix(in srgb, var(--border) 72%, var(--feed-accent) 28%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.feed-toolbar .feed-search-field:focus-within {
  border-color: color-mix(in srgb, var(--feed-accent) 42%, var(--border));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 3px color-mix(in srgb, var(--feed-accent) 14%, transparent);
}
.feed-toolbar .feed-search-at {
  padding-left: 18px;
  font-size: 16px;
}
.feed-toolbar .feed-search-input {
  padding: 14px 44px 14px 8px;
  font-size: 15px;
}
.feed-toolbar-pagination.hidden,
.feed-toolbar-pagination:empty {
  display: none;
}
.feed-toolbar-pagination .feed-pagination--top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-width: 0;
  column-gap: clamp(4px, 1vw, 8px);
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.feed-toolbar-pagination .feed-pager-pages {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
  min-width: 0;
  gap: clamp(4px, 1vw, 8px);
}
.feed-toolbar-pagination .feed-pager-slot,
.feed-toolbar-pagination .feed-pager-page,
.feed-toolbar-pagination .feed-pagination .btn.small.feed-pager-arrow {
  width: clamp(26px, 5vw, 32px);
  min-width: 26px;
  height: clamp(26px, 5vw, 32px);
  cursor: pointer;
}
.feed-toolbar-pagination .feed-pager-page {
  font-size: 12px;
  border-radius: 8px;
}
.feed-toolbar-pagination .feed-pager-page:disabled,
.feed-toolbar-pagination .feed-pagination .btn.small.feed-pager-arrow:disabled {
  cursor: default;
}
.feed-toolbar-pagination .feed-pager-ellipsis {
  font-size: 14px;
  width: auto;
  min-width: 16px;
}
.feed-timeline-body {
  min-width: 0;
}
.feed-timeline-body--search .feed-search-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feed-timeline-body--search .feed-search-results .ncard {
  width: 100%;
  max-width: none;
}
.feed-search {
  margin: 0;
}
.feed-search-field {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.feed-search-field:focus-within {
  border-color: var(--card-border-hover);
  box-shadow: 0 0 0 3px var(--accent-focus-ring);
}
.feed-search-at {
  padding-left: 14px;
  font-size: 15px;
  font-weight: 800;
  color: var(--muted);
  user-select: none;
}
.feed-search-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 12px 40px 12px 4px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  outline: none;
}
.feed-search-input::placeholder {
  color: var(--muted);
}
.feed-search-input:focus {
  border-color: transparent;
  box-shadow: none;
}
.feed-search-input::-webkit-search-cancel-button {
  display: none;
}
.feed-search-clear {
  position: absolute;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.feed-search-clear:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.feed-search-empty {
  margin: 0 0 12px;
  padding: 18px 14px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}
.ncard.is-search-hidden,
.feed-group.is-search-hidden {
  display: none !important;
}
.feed-pager-pages {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
  width: auto;
  min-width: 0;
}
.feed-pager-slot {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  box-sizing: border-box;
}
.feed-pager-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  width: auto;
  height: 30px;
  padding: 0 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  user-select: none;
}
.feed-pager-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.feed-pager-page:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}
.feed-pager-page:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.feed-pager-page.is-active {
  background: var(--panel);
  border-color: var(--feed-accent);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(var(--feed-accent-rgb), 0.18);
}
.feed-pagination .btn.small.feed-pager-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  width: 30px;
  height: 30px;
  padding: 0;
}
.feed-pagination .btn.small.feed-pager-arrow:disabled {
  opacity: 1;
  filter: none;
  transform: none;
  cursor: default;
  pointer-events: none;
}
.feed-pagination .btn.small.feed-pager-arrow:disabled:hover {
  filter: none;
  transform: none;
}
.feed-pagination .btn.small.feed-pager-arrow:active {
  transform: none;
}
.feed-pager-arrow-icon {
  width: 15px;
  height: 15px;
  display: block;
}
.feed-pane-empty {
  padding: 22px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.12);
}
.muted-sources-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.muted-source-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 6px 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(244, 33, 46, 0.35);
  background: rgba(244, 33, 46, 0.08);
  font-size: 13px;
  font-weight: 600;
}
.muted-source-chip a {
  color: var(--text);
  text-decoration: none;
}
.muted-source-chip a:hover { opacity: 0.85; }
.muted-source-restore {
  width: 22px;
  height: 22px;
  line-height: 20px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--red);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.muted-source-restore:hover {
  background: rgba(244, 33, 46, 0.16);
}

/* ---------- sections temporelles ---------- */
.feed-group { display: flex; flex-direction: column; gap: 10px; }
.feed-group-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  min-width: 0;
}
.feed-rank-list,
.feed-search-results.feed-rank-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.feed-rank-item {
  margin: 0;
  padding: 0;
  min-width: 0;
}
.feed-rank-table {
  --feed-rank-av: 64px;
  --feed-rank-cols: minmax(220px, 1.1fr) minmax(0, 2fr) minmax(200px, 0.8fr);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}
.feed-timeline-body--search .feed-rank-table.feed-search-results {
  display: block;
  gap: 0;
}
.feed-rank-table-head,
.feed-timeline .ncard--row {
  display: grid;
  grid-template-columns: var(--feed-rank-cols, minmax(220px, 1.1fr) minmax(0, 2fr) minmax(200px, 0.8fr));
  align-items: stretch;
  min-width: 0;
}
.feed-rank-table-head {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.feed-rank-table-head span {
  padding: 8px 10px;
  border-right: 1px solid var(--border);
  min-width: 0;
}
.feed-rank-table-head span:last-child {
  border-right: none;
  padding-left: 12px;
  padding-right: 12px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-align: left;
}
.feed-rank-item + .feed-rank-item {
  border-top: 1px solid var(--border);
}
.feed-timeline .ncard--row {
  --ncard-by-av-size: 36px;
  --ncard-target-av-size: 64px;
  --ncard-meta-h: auto;
  --ncard-stroke: 0px;
  min-height: 64px;
  gap: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}
.feed-timeline .ncard--row > *:not(.ncard-warn) {
  padding: 14px 14px;
  border-right: 1px solid var(--border);
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.feed-timeline .ncard--row > *:not(.ncard-warn):last-child {
  border-right: none;
}
.feed-timeline .ncard--row:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}
.feed-timeline .ncard--row > .ncard-account {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  min-width: 0;
  overflow: hidden;
}
.feed-timeline .ncard--row .ncard-av-wrap {
  position: relative;
  display: block;
  width: var(--feed-rank-av);
  min-width: var(--feed-rank-av);
  min-height: 64px;
  padding: 0;
  border: none;
  border-right: none;
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
}
.feed-timeline .ncard--row .ncard-av {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: none;
  border-radius: 0;
  object-fit: cover;
}
.feed-timeline .ncard--row .ncard-identity {
  padding: 10px 12px;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.feed-timeline .ncard--row .ncard-name,
.feed-timeline .ncard--row .ncard-handle {
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feed-timeline .ncard--row .ncard-name { font-size: 18px; font-weight: 700; }
.feed-timeline .ncard--row .ncard-handle { font-size: 14px; }
.feed-timeline .ncard--row .ncard-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  grid-template-columns: none;
  grid-template-rows: none;
}
.feed-timeline .ncard--row .ncard-meta--bio {
  align-items: flex-start;
}
.feed-timeline .ncard--row .ncard-bio {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.feed-timeline .ncard--row .ncard-bio--empty {
  color: var(--muted);
  font-style: italic;
}
.feed-timeline .ncard--row .ncard-by-av-wrap {
  width: 32px;
  height: 32px;
  border: none;
  flex-shrink: 0;
}
.feed-timeline .ncard--row .ncard-by-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.feed-timeline .ncard--row .ncard-meta-left {
  padding: 0;
  min-width: 0;
}
.feed-timeline .ncard--row .ncard-by { font-size: 12px; }
.feed-timeline .ncard--row .ncard-time { font-size: 11px; color: var(--muted); }
.feed-timeline .ncard--row .ncard-download {
  position: static;
  width: 28px;
  height: 28px;
}
.feed-timeline .ncard--row .ncard-score {
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  height: auto;
  padding: 10px 12px;
  border: none;
  border-radius: 0;
  background: none;
  color: var(--text);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  cursor: default;
}
.feed-timeline .ncard--row .ncard-followed {
  align-items: stretch;
}
.feed-timeline .ncard--row .ncard-catmix {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  min-width: 0;
}
.feed-timeline .ncard--row .ncard-catmix-bar {
  display: flex;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}
.feed-timeline .ncard--row .ncard-catmix-seg {
  display: block;
  height: 100%;
  min-width: 0;
}
.feed-timeline .ncard--row .ncard-catmix-seg.is-cryptos { background: var(--cat-cryptos); }
.feed-timeline .ncard--row .ncard-catmix-seg.is-ai { background: var(--cat-ai); }
.feed-timeline .ncard--row .ncard-catmix-seg.is-tradefi { background: var(--cat-tradefi); }
.feed-timeline .ncard--row .ncard-catmix-seg.is-rien { background: var(--cat-rien); }
.feed-timeline .ncard--row .ncard-catmix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-width: 0;
}
.feed-timeline .ncard--row .ncard-catmix-lab {
  background: none;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.feed-timeline .ncard--row .ncard-catmix-lab.is-cryptos { color: var(--cat-cryptos); }
.feed-timeline .ncard--row .ncard-catmix-lab.is-ai { color: var(--cat-ai); }
.feed-timeline .ncard--row .ncard-catmix-lab.is-tradefi { color: var(--cat-tradefi); }
.feed-timeline .ncard--row .ncard-catmix-lab.is-rien { color: var(--cat-rien); }
.feed-timeline .ncard--row .ncard-score-num {
  display: block;
  text-align: left;
}
.feed-timeline .ncard--row .ncard-score-delta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  flex-shrink: 0;
}
.feed-timeline .ncard--row .ncard-score-delta.is-up { color: #3dd68c; }
.feed-timeline .ncard--row .ncard-score-delta.is-down { color: #ff6b7a; }
.feed-timeline .ncard--row button.ncard-score {
  cursor: pointer;
}
.feed-timeline .ncard--row button.ncard-score:hover {
  background: none;
}
.feed-timeline .ncard--row button.ncard-score:hover .ncard-score-num {
  color: #fff;
}
.feed-timeline .ncard--rank-1 .ncard-score-num {
  color: #ffd56a;
}
.feed-timeline .ncard--row .ncard-warn {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
}
.feed-timeline .ncard--row.ncard--rank-up {
  background: rgba(61, 214, 140, 0.14);
  box-shadow: inset 3px 0 0 #3dd68c;
}
.feed-timeline .ncard--row.ncard--rank-down {
  background: rgba(255, 107, 122, 0.14);
  box-shadow: inset 3px 0 0 #ff6b7a;
}
.feed-timeline .ncard--row.ncard--rank-up:hover {
  background: rgba(61, 214, 140, 0.18);
  box-shadow: inset 3px 0 0 #3dd68c;
}
.feed-timeline .ncard--row.ncard--rank-down:hover {
  background: rgba(255, 107, 122, 0.18);
  box-shadow: inset 3px 0 0 #ff6b7a;
}
.feed-timeline .ncard--row.ncard--rank-in {
  background: rgba(61, 214, 140, 0.1);
  animation: pop .35s ease;
}
@media (max-width: 820px) {
  .feed-group-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feed-rank-table-head {
    display: none;
  }
  .feed-rank-table {
    --feed-rank-av: 56px;
    --feed-rank-cols: minmax(0, 1fr) minmax(148px, 42%);
  }
  .feed-timeline .ncard--row {
    min-height: 56px;
    grid-template-columns: var(--feed-rank-cols);
    grid-template-areas:
      "account score"
      "bio score";
  }
  .feed-timeline .ncard--row .ncard-account { grid-area: account; }
  .feed-timeline .ncard--row .ncard-av-wrap {
    min-height: 56px;
  }
  .feed-timeline .ncard--row .ncard-identity { padding-bottom: 2px; }
  .feed-timeline .ncard--row .ncard-meta {
    grid-area: bio;
    display: flex;
    padding-top: 0;
  }
  .feed-timeline .ncard--row .ncard-score { grid-area: score; padding: 8px 10px; font-size: 22px; }
}
@media (max-width: 520px) {
  .feed-group-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Mobile : zone d'ajout de compte plus large ---------- */
@media (max-width: 768px) {
  .brand {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "logo actions"
      "trial trial";
    align-items: center;
    column-gap: 8px;
    row-gap: 6px;
  }
  .brand-home { grid-area: logo; }
  .brand-start {
    grid-area: logo;
    min-width: 0;
  }
  .top-nav-link {
    padding: 7px 10px;
    font-size: 12px;
  }
  .user-box {
    grid-area: actions;
    margin-left: 0;
  }
  .trial-banner {
    grid-area: trial;
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: none;
    justify-content: center;
    padding: 6px 12px;
    gap: 10px;
    border-radius: 12px;
  }
  .trial-banner-label {
    display: inline-flex;
    padding: 0;
    font-size: 9px;
    letter-spacing: 0.06em;
  }
  .trial-banner-divider {
    display: block;
    height: 22px;
  }
  .trial-countdown {
    flex: 1 1 auto;
    justify-content: center;
    gap: 6px;
    min-width: 0;
  }
  .trial-countdown-unit {
    flex: 1 1 0;
    justify-content: center;
    min-width: 2.4rem;
    max-width: 3.6rem;
    padding: 5px 6px;
    border-radius: 8px;
  }
  .trial-countdown-val {
    font-size: 17px;
  }
  .trial-countdown-lbl {
    font-size: 8px;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 640px) {
  .app { border-left: none; border-right: none; }
  .page-sub { border-left: none; border-right: none; }
  .top { padding: 14px 0 0; }
  .top-brand-row,
  .top > .brand { padding: 0 10px; }
  .app-window {
    height: 40px;
    font-size: 12px;
    letter-spacing: 0.1em;
  }
  .app-window[data-app-window="custom-feed"] {
    letter-spacing: 0.04em;
    font-size: 11px;
  }
  .brand {
    margin-bottom: 0;
    row-gap: 6px;
    column-gap: 8px;
  }
  .brand .logo { font-size: 24px; }
  .trial-banner {
    padding: 5px 10px;
    gap: 8px;
    border-radius: 10px;
  }
  .trial-banner-label,
  .trial-banner-divider {
    display: none;
  }
  .trial-countdown {
    gap: 4px;
  }
  .trial-countdown-unit {
    min-width: 0;
    max-width: none;
    padding: 4px 5px;
    border-radius: 7px;
  }
  .trial-countdown-val {
    font-size: 15px;
  }
  .trial-countdown-lbl {
    font-size: 7px;
  }
  .top-sep { margin: 10px 0 0; }
  .brand h1 { font-size: 16px; }
  .user-box { gap: 8px; margin-left: auto; }
  .btn.small { padding: 9px 13px; }

  .feed { padding: 10px 12px 14px; gap: 10px; }
  .feed-group-items {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .ncard {
    --ncard-by-av-size: 36px;
    --ncard-target-av-size: 64px;
    border-radius: 12px;
  }
  .ncard:hover { transform: none; }
  .ncard-identity { padding: 8px 10px 8px 8px; gap: 2px; }
  .ncard-name { font-size: 14px; }
  .ncard-handle { font-size: 12px; }
  .ncard-meta-left { padding: 3px 8px; gap: 2px; }
  .ncard-by { font-size: 11px; }
  .ncard-time { font-size: 11px; }

  /* Toast bas : plus large pour eviter le retour a la ligne (ex. notifs activees/desactivees). */
  .toast {
    left: 50%;
    right: auto;
    min-width: min(calc(100vw - 28px), 340px);
    max-width: calc(100vw - 28px);
    width: max-content;
    padding: 12px 22px;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
  }
  .toast.show {
    transform: translateX(-50%) translateY(-4px);
  }
  .toast.is-ok-pop.show {
    animation: toast-ok-pop-mobile 0.45s ease;
  }
  @keyframes toast-ok-pop-mobile {
    0% { transform: translateX(-50%) translateY(8px) scale(0.96); opacity: 0; }
    60% { transform: translateX(-50%) translateY(-6px) scale(1.02); opacity: 1; }
    100% { transform: translateX(-50%) translateY(-4px) scale(1); opacity: 1; }
  }
}

@keyframes pop {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: none; }
}

/* ---------- carte de notification ---------- */
/* NON CLIQUEE (non lue) : carte claire. */
.ncard {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  gap: 0;
  --ncard-stroke: 2px;
  --ncard-split-stroke: 2px;
  --ncard-by-av-size: 48px;
  --ncard-target-av-size: 88px;
  --ncard-meta-h: var(--ncard-by-av-size);
  background: var(--card);
  border: var(--ncard-stroke) solid var(--card-border);
  border-radius: 14px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .15s, background .25s, opacity .25s;
}
.ncard:hover {
  transform: translateY(-2px);
  border-color: var(--card-border-hover);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .45);
}
.ncard.fresh {
  border-color: var(--feed-accent);
  box-shadow: 0 0 0 1px rgba(var(--feed-accent-rgb), .35);
  animation: pop .35s ease;
}
.ncard--aggregated,
.ncard--instant {
  border-color: var(--mode-green);
}
.ncard--aggregated:hover,
.ncard--instant:hover {
  border-color: var(--mode-green);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .45);
}
.ncard--aggregated .ncard-head,
.ncard--instant .ncard-head {
  border-bottom-color: var(--mode-green);
}
.ncard--aggregated .ncard-av-wrap,
.ncard--aggregated .ncard-by-av-wrap,
.ncard--instant .ncard-av-wrap,
.ncard--instant .ncard-by-av-wrap {
  border-right-color: var(--mode-green);
}
.ncard--aggregated.fresh,
.ncard--instant.fresh {
  border-color: var(--mode-green);
  box-shadow: 0 0 0 1px rgba(var(--mode-green-rgb), .22);
  animation: pop .35s ease;
}
.ncard--normal {
  border-color: var(--mode-blue);
}
.ncard--normal:hover {
  border-color: var(--mode-blue);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .45);
}
.ncard--normal .ncard-head {
  border-bottom-color: var(--mode-blue);
}
.ncard--normal .ncard-av-wrap,
.ncard--normal .ncard-by-av-wrap {
  border-right-color: var(--mode-blue);
}
.ncard--normal.fresh {
  border-color: var(--mode-blue);
  box-shadow: 0 0 0 1px rgba(var(--mode-blue-rgb), .22);
  animation: pop .35s ease;
}
.ncard-head {
  display: grid;
  grid-template-columns: var(--ncard-target-av-size) minmax(0, 1fr);
  align-items: stretch;
  min-height: 0;
  border-bottom: var(--ncard-split-stroke) solid var(--card-border);
  position: relative;
}
.ncard-av-wrap {
  width: var(--ncard-target-av-size);
  height: var(--ncard-target-av-size);
  overflow: hidden;
  flex-shrink: 0;
  border-right: var(--ncard-stroke) solid var(--card-border);
}
.ncard-av {
  display: block;
  width: var(--ncard-target-av-size);
  height: var(--ncard-target-av-size);
  max-width: var(--ncard-target-av-size);
  max-height: var(--ncard-target-av-size);
  border-radius: 0;
  object-fit: cover;
  background: var(--panel2);
  border: none;
  margin: 0;
}
.ncard.seen {
  background: var(--card-seen);
}
.ncard-identity {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  padding: 10px 12px 10px 10px;
  text-align: left;
}
.ncard-name {
  font-weight: 800; font-size: 17px; color: #f3f6f9;
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ncard-handle {
  font-size: 14.5px; color: var(--text); font-weight: 600;
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ncard-meta {
  display: grid;
  grid-template-columns: var(--ncard-by-av-size) minmax(0, 1fr);
  grid-template-rows: var(--ncard-meta-h);
  align-items: stretch;
  gap: 0;
  padding: 0;
  text-align: left;
  height: var(--ncard-meta-h);
  min-height: var(--ncard-meta-h);
  max-height: var(--ncard-meta-h);
  overflow: hidden;
  position: relative;
}
.ncard-by {
  display: flex; align-items: center; justify-content: flex-start; gap: 6px;
  margin-top: 0; font-size: 13px; color: #a3a8ae;
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ncard-followers-bubble {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: rgba(var(--feed-accent-rgb), 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}
.ncard-followers-bubble:hover {
  background: rgba(var(--feed-accent-rgb), 0.58);
  transform: scale(1.04);
}
.ncard-download {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.12s;
}
.ncard-download:hover {
  background: rgba(var(--feed-accent-rgb), 0.32);
  color: #fff;
}
.ncard-download:active {
  transform: scale(0.96);
}
.ncard-download:disabled {
  opacity: 0.55;
  cursor: wait;
}
.ncard-download-icon {
  width: 15px;
  height: 15px;
}
.ncard--consolidated .ncard-identity {
  padding-right: 42px;
}
.followers-modal-card {
  width: min(1180px, calc(100vw - 20px));
  max-width: none;
  max-height: min(88vh, 860px);
  min-height: min(560px, 82vh);
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.followers-modal-card h3 {
  margin: 0 0 4px;
  font-size: 20px;
  text-align: center;
}
.followers-modal-sub {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.followers-modal-list {
  list-style: none;
  margin: 0;
  padding: 4px 2px 2px;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(96px, auto);
  gap: 12px;
  align-content: start;
}
.followers-modal-row {
  position: relative;
  display: block;
  padding: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  overflow: hidden;
  min-width: 0;
  min-height: 96px;
}
.followers-modal-profile {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  min-width: 0;
  min-height: 96px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.followers-modal-profile:hover {
  background: rgba(255, 255, 255, 0.05);
}
.followers-modal-profile:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--feed-accent) 55%, transparent);
  outline-offset: -2px;
}
.followers-modal-av-wrap {
  position: relative;
  width: 96px;
  min-width: 96px;
  min-height: 96px;
  height: 96px;
  overflow: hidden;
  background: var(--panel2);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}
.followers-modal-av {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  background: var(--panel2);
}
.followers-modal-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 96px;
  padding: 12px 36px 12px 14px;
}
.followers-modal-name {
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.followers-modal-profile:hover .followers-modal-handle {
  color: var(--feed-accent);
}
.followers-modal-handle {
  font-weight: 600;
  font-size: 13px;
  color: #c8d0d8;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.followers-modal-at {
  font-size: 12px;
  color: var(--muted);
}
.followers-modal-hide {
  position: absolute;
  top: 8px;
  right: 8px;
  margin: 0;
  z-index: 2;
}
@media (max-width: 720px) {
  .followers-modal-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
.ncard-meta-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  grid-column: 2;
  padding: 4px 36px 4px 10px;
}
.ncard-by-av-wrap {
  grid-column: 1;
  grid-row: 1;
  width: var(--ncard-by-av-size);
  height: var(--ncard-meta-h);
  overflow: hidden;
  flex-shrink: 0;
  /* Separe le texte meta ; haut/gauche/bas = traits structurels (card + head). */
  border-right: var(--ncard-split-stroke) solid var(--card-border);
}
.ncard-by-av {
  display: block;
  width: var(--ncard-by-av-size);
  height: var(--ncard-by-av-size);
  max-width: var(--ncard-by-av-size);
  max-height: var(--ncard-by-av-size);
  border-radius: 0;
  object-fit: cover;
  background: var(--panel2);
  border: none;
  box-sizing: border-box;
}
.ncard-by b { color: #fff; font-weight: 700; }
.ncard-source-mute {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  margin-left: 2px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--red);
  cursor: pointer;
  opacity: 0.92;
  transition: color 0.15s, background 0.15s, opacity 0.15s;
}
.ncard-source-mute:hover {
  opacity: 1;
  color: var(--red);
  background: rgba(244, 33, 46, 0.16);
}
.ncard-mute-icon {
  width: 16px;
  height: 16px;
  display: block;
}
.ncard-time { font-size: 13px; color: #fff; margin-top: 0; text-align: left; width: auto; }

/* Croix : masque la carte de l'affichage PERSONNEL (n'affecte pas les autres). */
.ncard-x {
  position: absolute;
  top: 4px; right: 5px;
  width: 30px; height: 30px;
  line-height: 28px; text-align: center;
  padding: 0; border: none; border-radius: 50%;
  background: transparent; color: var(--red);
  font-size: 25px; font-weight: 700; cursor: pointer;
  opacity: 1;
  transition: color .15s, background .15s;
}
.ncard-x:hover { background: rgba(244,33,46,.16); }

/* Cliquee ou non : meme rendu visuel (suivi local seulement). */

/* "Fausse alerte probable" : cible affichant 0 abonne / 0 abonnement (typique
   d'un compte desactive puis reactive qui reapparait). Le badge est superpose
   (position absolue) : il ne modifie PAS la hauteur de la carte, qui reste
   identique aux autres. Une teinte rouge signale la carte d'un coup d'oeil. */
.ncard.suspect {
  border-color: rgba(244,33,46,.6);
  background: var(--card-suspect);
  box-shadow: inset 0 0 0 1px rgba(244,33,46,.22);
}
.ncard.suspect:hover { border-color: #f4212e; }
.ncard.suspect.seen { background: var(--card-suspect); }
.ncard-warn {
  position: absolute;
  top: 6px; left: 6px;
  z-index: 3;
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #f4212e;
  color: #fff;
  cursor: help;
  box-shadow: 0 2px 7px rgba(0,0,0,.4);
}
.ncard-warn:hover { background: #ff3b47; }
.ncard-warn-ico {
  font-size: 15px; line-height: 1; flex: none;
  font-weight: 800; font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
}

/* ---------- BAS : config ---------- */
.config {
  position: sticky;
  bottom: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.config-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 13px 18px;
  cursor: pointer;
}
.config-toggle:hover { color: var(--text); }
.config-toggle .badge {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 12px;
}
.config-toggle .chevron { margin-left: auto; transition: transform .2s; }
.config.open .config-toggle .chevron { transform: rotate(180deg); }

.config-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.config.open .config-panel { max-height: 60vh; overflow: auto; }
.scraper-form {
  display: flex;
  gap: 8px;
  padding: 6px 18px 0;
  flex-wrap: wrap;
}
.scraper-form input {
  flex: 1;
  min-width: 180px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.scraper-form input:focus { border-color: var(--card-border-hover); }
.scraper-form textarea {
  flex: 1 1 100%;
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  outline: none;
  resize: vertical;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.scraper-form textarea:focus { border-color: var(--card-border-hover); }
.scraper-form .btn { align-self: flex-start; }
.hint code {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 11px;
}
.hint { color: var(--muted); font-size: 12px; padding: 8px 18px 4px; margin: 0; }
.scraper-list { padding: 4px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.scraper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
}
.scraper .tok { color: var(--text); font-weight: 700; }
.scraper .px { color: var(--muted); }
.scraper .x {
  margin-left: auto;
  cursor: pointer;
  color: var(--muted);
  border: none; background: transparent;
  font-size: 16px; padding: 2px 6px; border-radius: 6px;
}
.scraper .x:hover { color: var(--red); background: rgba(244,33,46,.12); }
.scraper-empty { color: var(--muted); font-size: 12px; padding: 4px 0; }
.scraper-summary { color: var(--muted); font-size: 12px; padding: 2px 0 6px; }
.scraper-summary b { color: var(--text); }
.scraper.is-busy { border-color: rgba(0,186,124,.5); background: rgba(0,186,124,.06); }
.scraper.is-locked { border-color: rgba(244,33,46,.45); background: rgba(244,33,46,.08); }
.scraper.is-locked.is-busy { border-color: rgba(244,33,46,.55); background: rgba(244,33,46,.1); }
.sc-status { margin-left: auto; font-size: 11px; font-weight: 700; white-space: nowrap; }
.sc-status.busy { color: var(--green, #00ba7c); }
.sc-status.idle { color: var(--muted); font-weight: 600; }
.sc-status.locked { color: #ff6b74; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.scraper-summary .sc-locked-count { color: #ff6b74; }
.scraper .x { margin-left: 6px; }

/* ---------- intervalle ---------- */
.interval-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px 4px;
  flex-wrap: wrap;
}
.interval-form label { font-size: 13px; color: var(--muted); font-weight: 600; }
.interval-form input {
  width: 80px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
}
.interval-form input:focus { border-color: var(--card-border-hover); }
.interval-form .unit { color: var(--muted); font-size: 13px; }
.interval-form label small { color: var(--muted); font-weight: 500; }
.interval-form input { width: 64px; }
.range-field { display: inline-flex; align-items: center; gap: 6px; }
.range-field .rl { color: var(--muted); font-size: 12px; }
.range-sep { color: var(--muted); font-size: 14px; }
.btn.small { padding: 7px 12px; }
/* ---------- debug ---------- */
.debug-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 18px 6px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.debug-head > div { display: flex; gap: 6px; }
.admin-tab[data-panel="logs"] {
  flex: 1;
  min-height: 0;
}
.admin-tab[data-panel="logs"] .admin-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.debug-log {
  margin: 0 0 12px;
  background: #0a0e13;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  flex: 1;
  height: calc(100vh - 240px);
  min-height: 560px;
  overflow: auto;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.6;
}
.debug-log .ln { white-space: pre-wrap; word-break: break-word; display: flex; align-items: flex-start; gap: 0; }
.debug-log .t { color: #5b6b7a; flex: none; margin-right: 8px; }
.debug-log .k {
  flex: none;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  padding: 2px 5px;
  border-radius: 4px;
  margin-right: 8px;
  margin-top: 1px;
  line-height: 1.2;
}
.debug-log .m { flex: 1; min-width: 0; }
.debug-log .kind-ref .k { background: rgba(88, 166, 255, .18); color: #79c0ff; }
.debug-log .kind-ref .m { color: #9fd0ff; }
.debug-log .kind-head .k { background: rgba(143, 212, 176, .16); color: #8fd4b0; }
.debug-log .kind-head .m { color: #a8e0c4; }
.debug-log .kind-turbo .k { background: rgba(255, 217, 112, .18); color: #ffd970; }
.debug-log .kind-turbo .m { color: #ffe6a0; }
.debug-log .kind-warm .k { background: rgba(139, 148, 158, .22); color: #aeb6bf; }
.debug-log .kind-warm .m { color: #9ba3ad; }
.debug-log .kind-reconcile .k { background: rgba(185, 167, 238, .2); color: #b9a7ee; }
.debug-log .kind-reconcile .m { color: #c9bdf0; }
.debug-log .kind-watch .k { background: rgba(77, 171, 247, .18); color: #74c0fc; }
.debug-log .kind-watch .m { color: #a5d8ff; }
.debug-log .kind-system .k { background: rgba(255, 255, 255, .06); color: var(--muted); }
.debug-log .lvl-info .m { color: var(--text); }
.debug-log .kind-ref.lvl-info .m { color: #9fd0ff; }
.debug-log .kind-head.lvl-info .m { color: #a8e0c4; }
.debug-log .kind-turbo.lvl-info .m { color: #ffe6a0; }
.debug-log .kind-reconcile.lvl-info .m { color: #c9bdf0; }
.debug-log .lvl-debug .m { color: var(--muted); }
.debug-log .kind-ref.lvl-debug .m { color: #6fa8dc; }
.debug-log .kind-head.lvl-debug .m { color: #6fb896; }
.debug-log .kind-turbo.lvl-debug .m { color: #c9a84a; }
.debug-log .lvl-error .m { color: var(--red); }
.debug-log .lvl-warn .m { color: #ffb020; }
.debug-empty { color: var(--muted); }
.debug-log-legend {
  margin: 12px 18px 18px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.log-leg {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  padding: 2px 5px;
  border-radius: 4px;
  margin-right: 4px;
  vertical-align: middle;
}
.log-leg.ref { background: rgba(88, 166, 255, .18); color: #79c0ff; }
.log-leg.head { background: rgba(143, 212, 176, .16); color: #8fd4b0; }
.log-leg.turbo { background: rgba(255, 217, 112, .18); color: #ffd970; }
.log-leg.warm { background: rgba(139, 148, 158, .22); color: #aeb6bf; }
.log-leg.watch { background: rgba(77, 171, 247, .18); color: #74c0fc; }
.log-leg.reconcile { background: rgba(185, 167, 238, .2); color: #b9a7ee; }

.toast {
  position: fixed;
  bottom: 70px; left: 50%; transform: translateX(-50%);
  background: var(--panel2); color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 600;
  z-index: 1100; opacity: 0; transition: opacity .2s, transform .2s;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.toast.is-success {
  border-color: rgba(63, 185, 80, 0.55);
  box-shadow: 0 6px 24px rgba(63, 185, 80, 0.12);
}
.toast.is-ok-pop.show {
  animation: toast-ok-pop 0.45s ease;
}
@keyframes toast-ok-pop {
  0% { transform: translateX(-50%) translateY(8px) scale(0.96); opacity: 0; }
  60% { transform: translateX(-50%) translateY(-6px) scale(1.02); opacity: 1; }
  100% { transform: translateX(-50%) translateY(-4px) scale(1); opacity: 1; }
}

/* ---------- dashboard admin ---------- */
/* Menu de navigation du dashboard admin (onglets) */
.admin-nav {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  gap: 2px;
  padding: 8px 18px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav-btn {
  flex: none;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 14px;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.admin-nav-btn:hover { color: var(--text); }
.admin-nav-btn.active { color: var(--text); border-bottom-color: var(--blue); }
.admin-nav-count {
  font-size: 11px;
  font-weight: 800;
  background: var(--panel2);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 7px;
  line-height: 1.5;
}
.admin-nav-btn.active .admin-nav-count {
  background: rgba(197, 206, 217, .15);
  color: var(--feed-accent);
  border-color: transparent;
}
.admin-nav-count.has-alert {
  background: rgba(255, 120, 120, .18);
  color: #ff9a9a;
  border-color: rgba(255, 120, 120, .35);
}

/* Panneaux de section : un seul visible a la fois */
.admin-tab { display: none; flex-direction: column; gap: 16px; }
.admin-tab.active { display: flex; }

/* Formulaire des reglages de detection : sections a en-tete + cartes de champ */
.tune-form { display: flex; flex-direction: column; gap: 14px; }
.tune-group {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel2);
  overflow: hidden;
}
.tune-group-h {
  margin: 0;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text);
  background: var(--panel2);
  border-bottom: 1px solid var(--border);
}
.tune-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  padding: 14px;
}
.tune-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
}
.tune-field-lbl {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.tune-field-ctl { display: flex; align-items: center; gap: 8px; }

.j7-panel { display: flex; flex-direction: column; gap: 14px; }
.j7-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
  cursor: pointer;
}
.j7-toggle-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.j7-toggle-text strong {
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #e9d5ff;
}
.j7-toggle-desc { font-size: 13px; color: var(--muted); line-height: 1.35; }
.j7-status-line { margin: 0; }

.j7-admin-windows {
  margin-bottom: 0;
}
.j7-admin-windows .feed-window-body {
  min-height: 480px;
}
.j7-admin-windows .feed-tab-panel {
  gap: 16px;
}
.j7-admin-windows .feed-tab-count:empty {
  display: none;
}
.j7-panel-meta {
  margin: 0;
}
.j7-token-help {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.12);
}
.j7-token-help summary {
  cursor: pointer;
  font-weight: 700;
}
.j7-token-steps {
  margin: 10px 0 8px;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.j7-token-cmd {
  display: block;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 12px;
  word-break: break-all;
}
.j7-token-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.j7-token-label {
  font-size: 13px;
  font-weight: 700;
}
.j7-token-input {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
  color: inherit;
  padding: 10px 12px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 12px;
}
.j7-token-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.j7-new-list {
  max-height: min(58vh, 620px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.1);
}
.j7-following-zero {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.j7-new-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
}
.j7-new-row:last-child { border-bottom: none; }
.j7-new-when {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.j7-account-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.j7-account-main .dt-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.j7-account-main .dt-main a {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.j7-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.j7-list-toolbar .members-search { flex: 1; min-width: 200px; max-width: 360px; }
.j7-list-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.dt-head--j7-list,
.dt-row--j7-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px 110px;
  align-items: center;
  gap: 10px;
}
.dt-row--j7-list .j7-account-main { grid-column: 1; }
.dt-row--j7-list .j7-list-status { grid-column: 2; }
.dt-row--j7-list .dt-actions { grid-column: 3; }
.dt-head--j7-list {
  padding: 0 4px 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}
.dt-row--j7-list.is-muted { opacity: .72; }
.j7-list-status { display: flex; justify-content: flex-start; }
.dt-row--j7-list .dt-actions { justify-content: flex-end; }
.dt-head--j7-following,
.dt-row--j7-following {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 10px;
}
.dt-head--j7-following {
  padding: 0 4px 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}
.dt-head--j7-following .dt-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s;
}
.dt-head--j7-following .dt-sort-btn:hover {
  color: var(--text);
}
.dt-head--j7-following .dt-sort-btn.is-active {
  color: var(--text);
}
.dt-sort-arrow {
  font-size: 9px;
  opacity: 0.45;
}
.dt-head--j7-following .dt-sort-btn.is-active .dt-sort-arrow {
  opacity: 1;
  color: var(--feed-accent);
}
.j7-following-rank-head {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
}
.j7-following-rank {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
}
.j7-following-value {
  text-align: right;
  padding-right: 4px;
}
.j7-following-count {
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.j7-following-unknown {
  color: var(--muted);
  font-weight: 600;
}
.dt-row--j7-following {
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
}
.dt-row--j7-following:last-child { border-bottom: none; }
.dt-row--j7-following.is-muted { opacity: .72; }
.j7-following-table .dt-empty { padding: 16px 4px; }

/* TRI — curation crypto pool (reglages admin) */
.j7-tri-head-actions { display: flex; gap: 8px; align-items: center; }
.j7-tri-toolbar { align-items: center; }
.j7-tri-show-muted {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  user-select: none;
  white-space: nowrap;
}
.j7-tri-meta {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.dt-head--j7-tri,
.dt-row--j7-tri {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px 92px 52px;
  align-items: center;
  gap: 12px;
}
.dt-head--j7-tri {
  padding: 0 4px 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}
.dt-head--j7-tri .dt-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: color 0.15s;
}
.dt-head--j7-tri .dt-sort-btn:first-child { justify-self: start; text-align: left; }
.dt-head--j7-tri .dt-sort-btn:not(:first-child) { justify-self: end; text-align: right; }
.dt-head--j7-tri .dt-sort-btn:hover { color: var(--text); }
.dt-head--j7-tri .dt-sort-btn.is-active { color: var(--text); }
.dt-head--j7-tri .dt-sort-btn.is-active .dt-sort-arrow {
  opacity: 1;
  color: var(--feed-accent);
}
.dt-row--j7-tri {
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
}
.dt-row--j7-tri:last-child { border-bottom: none; }
.dt-row--j7-tri.is-muted { opacity: .55; }
.j7-tri-table .dt-empty { padding: 24px 8px; }
.j7-tri-account {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.j7-tri-av {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--panel2);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.j7-tri-identity {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.j7-tri-handle {
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.j7-tri-handle:hover { opacity: .85; }
.j7-tri-name {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.j7-tri-col {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.j7-tri-col--action { justify-content: center; }
.j7-tri-stat {
  font-weight: 800;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.j7-tri-stat--zero,
.j7-tri-stat--na { color: var(--muted); font-weight: 600; }
.j7-tri-stat--hot { color: var(--blue); }
.j7-tri-table .btn.j7-tri-mute-x {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  min-width: 36px;
  line-height: 1;
  padding: 0;
  border-radius: 10px;
  font-size: 22px;
}
.j7-tri-restore {
  padding-left: 10px;
  padding-right: 10px;
  font-size: 11px;
}

@media (max-width: 640px) {
  .dt-head--j7-following { display: none; }
  .dt-row--j7-following {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 8px;
  }
}
@media (max-width: 640px) {
  .dt-head--j7-list { display: none; }
  .dt-row--j7-list {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 4px;
  }
  .dt-row--j7-list .j7-account-main,
  .dt-row--j7-list .j7-list-status,
  .dt-row--j7-list .dt-actions {
    grid-column: auto;
  }
  .dt-row--j7-list .dt-actions { justify-content: flex-start; }
  .dt-head--j7-tri { display: none; }
  .dt-row--j7-tri {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 8px 12px;
  }
  .j7-tri-col:not(.j7-tri-col--action) { justify-content: flex-start; }
  .j7-tri-col--action {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
}
.tune-input {
  flex: 1;
  min-width: 0;
  background: var(--panel2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}
.tune-input:focus { outline: none; border-color: var(--card-border-hover); }
.tune-unit {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  min-width: 24px;
}
.tune-range { font-size: 10.5px; color: #5b6b7a; }

/* Sous-menu reglages par offre (Premium test / Premium / Turbo) */
.tune-subnav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.tune-subnav-btn {
  background: var(--panel2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}
.tune-subnav-btn:hover { color: var(--text); }
.admin-tier-ref--settings {
  margin-bottom: 16px;
}
.tune-subpanel-head {
  padding: 0 14px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.tune-subpanel-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.tune-subpanel-blurb {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.tune-subnav-btn[data-sub="trial"].active { border-color: rgba(139, 148, 158, .5); color: #c9d1d9; }
.tune-subnav-btn[data-sub="premium"].active { border-color: var(--tier-premium); color: var(--tier-premium-light); }
.tune-subnav-btn[data-sub="premium_plus"].active { border-color: var(--tier-plus); color: var(--tier-plus-light); }
.tune-subnav-btn[data-sub="free"].active { border-color: var(--border); color: var(--text); }
.tune-subnav-btn[data-sub="turbo"].active { border-color: rgba(255, 217, 112, .45); color: #ffe6a0; }
.tune-subnav-btn.active {
  background: rgba(197, 206, 217, .18);
}
.tune-subpanels {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel2);
  overflow: hidden;
}
.tune-subpanel { display: none; }
.tune-subpanel.active { display: block; }
.tune-subpanel-ref {
  margin-top: 18px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}
.tune-general { margin-top: 14px; }

/* Legende : explication de chaque parametre */
.tune-legend {
  padding: 14px;
  border-top: 1px solid var(--border);
}
.tune-legend-h {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}
.tune-legend dl { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tune-legend-item {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 6px 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.tune-legend-item:last-child { border-bottom: none; padding-bottom: 0; }
.tune-legend-item dt { font-size: 12.5px; font-weight: 700; color: var(--text); }
.tune-legend-item dd {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 640px) {
  .tune-legend-item { grid-template-columns: 1fr; gap: 3px; }
}

.admin-main {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.admin-card {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}
.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.admin-card-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}
.admin-card-head > div { display: flex; gap: 8px; }

.counter-admin-acc {
  display: flex;
  align-items: center;
  gap: 10px;
}
.counter-admin-acc img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--panel2);
  flex-shrink: 0;
}
.counter-admin-subs {
  max-width: 220px;
  font-size: 12px;
  color: var(--muted);
  word-break: break-word;
}
.err-hint { color: #f87171; margin-top: 4px; }

table.dt {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.dt th,
table.dt td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
table.dt th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
table.dt tbody tr:last-child td { border-bottom: none; }

/* listes de donnees (membres, comptes surveilles) */
.data-table { display: flex; flex-direction: column; }
.dt-empty { color: var(--muted); font-size: 13px; padding: 6px 2px; }
.dt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.dt-row:last-child { border-bottom: none; }
.dt-av {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover; background: var(--panel2); flex-shrink: 0;
}
.dt-main { font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.dt-main a { color: var(--text); text-decoration: none; }
.dt-main a:hover { opacity: .85; }
.dt-sub { margin-left: auto; color: var(--muted); font-size: 12px; text-align: right; flex: 1 1 100%; font-weight: 500; }
.dt-row--members .dt-sub { margin-left: 0; text-align: left; flex: 1 1 100%; }
.dt-offer { display: flex; justify-content: flex-end; min-width: 0; }
.dt-actions { display: flex; gap: 6px; flex-shrink: 0; justify-content: flex-end; }
.tag {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; padding: 2px 7px; border-radius: 999px;
  background: var(--panel2); color: var(--muted);
}
.dt-row--monitored .dt-main { flex: 1; min-width: 0; }
.dt-row--monitored .dt-sub { margin-left: 40px; }

.tag.admin { background: rgba(var(--feed-accent-rgb), .18); color: var(--blue); }
.tag.ok { background: rgba(0,186,124,.18); color: var(--green); }
.tag.error { background: rgba(244,33,46,.18); color: var(--red); }
.tag.pending, .tag.checking { background: rgba(255,212,0,.16); color: #ffd400; }
.tag.owner { background: rgba(138,99,210,.18); color: #b9a7ee; text-transform: none; }
.tag.premium { background: var(--tier-premium-bg); color: var(--tier-premium-light); }
.tag.free,
.tag.expired { background: rgba(255,255,255,.06); color: var(--muted); }
.tag.trial { background: rgba(139, 148, 158, .22); color: #c9d1d9; }
.tag.plus { background: var(--tier-plus-bg); color: var(--tier-plus-light); }
.dt-plan {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}
.dt-plan select {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 28px 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--text);
  width: 100%;
  max-width: 168px;
  cursor: pointer;
  appearance: auto;
}
.dt-plan select:disabled { opacity: .55; cursor: wait; }
.dt-plan select:focus { outline: none; border-color: var(--card-border-hover); }

/* Comparatif des offres (section Membres admin) */
.admin-tier-lead {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.admin-tier-ref {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
@media (max-width: 720px) {
  .admin-tier-ref { grid-template-columns: 1fr; }
}
.admin-tier {
  text-align: center;
  border-radius: 12px;
  padding: 14px 10px 12px;
  border: 1.5px solid var(--border);
  background: var(--panel2);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.admin-tier--trial { border-color: #4a5058; background: #1a1c1f; }
.admin-tier--premium { border-color: var(--tier-premium-border); }
.admin-tier--plus { border-color: var(--tier-plus-border); }
.admin-tier-name {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}
.admin-tier--premium,
.admin-tier--plus {
  color: #fff;
}
.admin-tier--trial .admin-tier-name { color: #fff; }
.admin-tier--premium .admin-tier-name,
.admin-tier--plus .admin-tier-name {
  color: #fff;
}
.admin-tier--premium .admin-tier-price {
  color: var(--tier-premium-light);
}
.admin-tier--plus .admin-tier-price {
  color: var(--tier-plus-light);
}
.admin-tier--premium .admin-tier-price small,
.admin-tier--plus .admin-tier-price small {
  color: #fff;
}
.admin-tier--premium .admin-tier-limits,
.admin-tier--plus .admin-tier-limits {
  color: #fff;
}
.admin-tier--premium .admin-tier-limits b {
  color: var(--tier-premium-light);
}
.admin-tier--plus .admin-tier-limits b {
  color: var(--tier-plus-light);
}
.admin-tier-price {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.admin-tier-price small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}
.admin-tier-limits {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.admin-tier-count {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.admin-plan-stats {
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.admin-plan-stats strong { color: var(--text); }

/* Section Membres (admin) */
.members-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 720px) {
  .members-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
.members-kpi {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.members-kpi b { font-size: 20px; color: var(--text); line-height: 1.1; }
.members-kpi span { font-size: 11px; color: var(--muted); font-weight: 600; }
.members-kpi--trial { border-color: rgba(201, 209, 217, .25); }
.members-kpi--premium { border-color: var(--tier-premium-border); }
.members-kpi--plus { border-color: var(--tier-plus-border); }
.members-kpi--expired { border-color: rgba(255, 255, 255, .08); }

.members-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.watched-bulk {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel2);
}
.watched-bulk-lead {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.watched-bulk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.watched-bulk-field--single {
  width: 100%;
}
.watched-bulk-field--single textarea {
  min-height: 280px;
}
.watched-bulk-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.watched-bulk-field span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.watched-bulk-field textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.watched-bulk-field textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--feed-accent) 55%, var(--border));
}
.watched-bulk-field--hide span { color: #f87171; }
.watched-bulk-field--hide textarea:focus {
  border-color: color-mix(in srgb, #f87171 50%, var(--border));
}
.watched-bulk-paste {
  align-self: flex-start;
  margin-top: -2px;
}
.watched-bulk-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.watched-bulk-msg {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.watched-bulk-msg.is-err { color: #f87171; }
.watched-bulk-msg.is-ok { color: var(--pool-green-soft, #86efac); }
@media (max-width: 1100px) {
  .watched-bulk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .watched-bulk-grid { grid-template-columns: 1fr; }
  .watched-bulk-field textarea { min-height: 140px; }
}
.watched-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  flex-wrap: wrap;
}
.watched-toolbar .members-search {
  flex: 1;
  min-width: 200px;
  max-width: 360px;
}
.watched-toolbar .btn {
  flex-shrink: 0;
}
.watched-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.watched-filter {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.watched-filter:hover { color: var(--text); border-color: var(--card-border-hover); }
.watched-filter.is-active {
  color: var(--text);
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(167, 139, 250, 0.12);
}
.watched-acc {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.watched-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--panel);
}
.watched-handle {
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}
.watched-handle:hover { text-decoration: underline; }
.watched-name {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.watched-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  margin-right: 4px;
  white-space: nowrap;
}
.watched-tag.feed {
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.14);
}
.watched-tag.members {
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.12);
}
.watched-table .col-account { width: 44%; }
.watched-table .col-source { width: 28%; }
.watched-table .col-category { width: 22%; }
.watched-table .col-hide {
  width: 52px;
  text-align: center;
}
.watched-hide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--red);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.watched-hide:hover { background: rgba(244, 33, 46, 0.16); }
.watched-hide.is-hidden {
  font-size: 16px;
  color: var(--muted);
}
.watched-hide.is-hidden:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}
.watched-cat {
  width: 100%;
  max-width: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 700;
}
.watched-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}
.watched-pager-info {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.turbo-test-add {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.turbo-test-textarea {
  flex: 1 1 280px;
  min-height: 120px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  line-height: 1.45;
  resize: vertical;
}
.turbo-test-list { margin-top: 8px; }
.turbo-test-head,
.turbo-test-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(140px, 1.2fr) minmax(120px, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 10px 12px;
}
.turbo-test-row {
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  font-size: 13px;
}
.turbo-test-row:last-child { border-bottom: none; }
.turbo-test-stats {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.turbo-test-row .dt-sub {
  display: block;
  margin: 4px 0 0;
  text-align: left;
  flex: none;
}
.turbo-test-row > span:last-child,
.turbo-test-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.turbo-test-pause {
  min-width: 72px;
}
.members-search {
  flex: 1 1 220px;
  max-width: 420px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
.members-search:focus {
  outline: none;
  border-color: var(--card-border-hover);
}
.members-filter-hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.members-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--border);
}
.members-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}
.members-table th,
.members-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.members-table thead th {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
  background: var(--panel);
  position: sticky;
  top: 0;
  z-index: 1;
}
.members-table .col-member { width: 28%; text-align: left; }
.members-table .col-plan { width: 16%; text-align: left; }
.members-table .col-lightning { width: 168px; text-align: left; }
.members-table th.col-num,
.members-table td.col-num { width: 10%; text-align: right; }
.members-table th.col-date,
.members-table td.col-date { width: 88px; text-align: right; font-variant-numeric: tabular-nums; }
.members-table th.col-actions,
.members-table td.col-actions { width: 168px; text-align: right; }
.members-table tbody tr:last-child td { border-bottom: none; }
.members-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 14px 12px !important;
  text-align: left !important;
}
.member-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.member-email {
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
  word-break: break-word;
}
.member-meta {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.member-plan { min-width: 0; }
.members-table .col-plan .dt-plan { justify-content: flex-start; }
.members-table .col-plan .dt-plan select { max-width: none; width: 100%; }
.member-count-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  min-width: 72px;
}
.member-count-cell .scrape-usage-bar { width: 72px; }
.member-count-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.members-table .col-date {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.member-lightning-bal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}
.member-lightning-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.member-lightning-pill.lightning-blue {
  color: var(--mode-blue);
  border-color: rgba(var(--mode-blue-rgb), 0.38);
  background: rgba(var(--mode-blue-rgb), 0.1);
}
.member-lightning-pill.lightning-gold {
  color: var(--mode-green);
  border-color: rgba(var(--mode-green-rgb), 0.38);
  background: rgba(var(--mode-green-rgb), 0.1);
}
.member-lightning-add {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.member-lightning-add select,
.member-lightning-add input[type="number"] {
  font: inherit;
  font-size: 0.78rem;
  padding: 0.2rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: inherit;
}
.member-lightning-add select { max-width: 4.2rem; }
.member-lightning-add input[type="number"] {
  width: 2.6rem;
  text-align: center;
  -moz-appearance: textfield;
}
.member-lightning-add input[type="number"]::-webkit-outer-spin-button,
.member-lightning-add input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.member-lightning-add .btn.small {
  min-width: 1.75rem;
  padding-inline: 0.35rem;
}

.member-actions {
  display: inline-flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.members-table td.col-num .scrape-score {
  display: inline-flex;
}
.member-muted {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.tag.member-you {
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
}

@media (max-width: 900px) {
  .members-table { min-width: 920px; }
  .watched-table { min-width: 560px; }
}

/* Usage scrapers (admin) */
.scrape-usage-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.scrape-kpi {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.scrape-kpi b { font-size: 20px; color: var(--text); }
.scrape-kpi span { font-size: 11px; color: var(--muted); }
.scrape-usage-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}
.dt-head--scrape-usage,
.dt-row--scrape-usage {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 52px repeat(5, minmax(0, 1fr)) 56px;
  gap: 8px;
  align-items: center;
}
.dt-head--scrape-usage {
  padding: 0 4px 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}
.scrape-member small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.scrape-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 4px 6px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid var(--border);
  background: var(--panel2);
}
.scrape-score--idle { color: var(--muted); }
.scrape-score--ok { color: #7dff9a; border-color: rgba(125, 255, 154, .35); }
.scrape-score--watch { color: #ffc266; border-color: rgba(255, 194, 102, .35); }
.scrape-score--alert { color: #ff9a9a; border-color: rgba(255, 120, 120, .4); }
.scrape-usage-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.scrape-usage-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  overflow: hidden;
}
.scrape-usage-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--feed-accent);
  transition: width .2s ease;
}
.scrape-usage-bar.mid .scrape-usage-fill { background: #ffc266; }
.scrape-usage-bar.hi .scrape-usage-fill { background: #ff7a7a; }
.scrape-usage-num {
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.scrape-blocked { color: #ff9a9a; font-weight: 800; font-size: 12px; }
.scrape-muted { color: var(--muted); font-size: 12px; }
.scrape-level-alert { background: rgba(255, 80, 80, .04); border-radius: 8px; }
@media (max-width: 960px) {
  .dt-head--scrape-usage { display: none; }
  .scrape-usage-table { overflow-x: auto; }
  .dt-row--scrape-usage {
    min-width: 720px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
  }
}

.dt-premium {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.dt-premium input { accent-color: var(--tier-premium); cursor: pointer; margin: 0; }
.dt-premium:hover { color: var(--tier-premium-light); }

/* Pastille de comptage dans les en-tetes de cartes admin. */
.admin-card-head .badge {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

/* ---------- KPIs (indicateurs cles) ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.kpi {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}
.kpi-ico {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; background: var(--panel2); color: var(--muted);
}
.kpi-ico.ico-online { color: var(--green); background: rgba(0,186,124,.15); }
.kpi-ico.ico-eye { color: var(--feed-accent); background: rgba(var(--feed-accent-rgb),.14); }
.kpi-ico.ico-users { color: #b9a7ee; background: rgba(138,99,210,.18); }
.kpi-ico.ico-member { color: #ffd23f; background: rgba(255,210,63,.14); }
.kpi-ico.ico-monitored { color: var(--feed-accent); background: rgba(var(--feed-accent-rgb),.14); }
.kpi-ico.ico-scraper { color: var(--muted); background: var(--panel2); }
.kpi-body { min-width: 0; }
.kpi-val { font-size: 22px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.kpi-lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi-sub { font-size: 11px; color: #6b7a89; margin-top: 1px; }

/* ---------- Grille 2 colonnes (membres / comptes) ---------- */
.admin-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 820px) {
  .admin-2col { grid-template-columns: 1fr; }
}

/* ---------- Graphique de visites (barres) ---------- */
.chart {
  display: flex; align-items: flex-end; gap: 3px;
  height: 140px; padding: 6px 2px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.chart-col {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  height: 100%; justify-content: flex-end;
}
.chart-bar {
  width: 100%; max-width: 18px; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #d8dee6, #9aa6b5);
  transition: filter .15s;
}
.chart-col:hover .chart-bar { filter: brightness(1.25); }
.chart-x { font-size: 9px; color: #5b6b7a; }
@media (max-width: 640px) {
  .chart-x { display: none; }
}

/* ---------- Colonnes audience + mini-tables ---------- */
.audience-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.audience-h {
  margin: 0 0 8px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
}
.mini-table { display: flex; flex-direction: column; gap: 7px; }
.mini-empty { color: var(--muted); font-size: 12px; }
.mini-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.mini-label {
  flex: 0 0 38%; min-width: 0; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-bar {
  flex: 1 1 auto; height: 7px; border-radius: 999px;
  background: rgba(255,255,255,.06); overflow: hidden;
}
.mini-bar > span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #b8c2ce, #e2e8ef);
}
.mini-count { flex: none; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- page d'accueil (auth) ---------- */
.hidden { display: none !important; }
.auth-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 32px 24px;
}
.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
}
.auth-brand { display: flex; align-items: center; gap: 10px; }
.auth-brand .logo { font-size: 26px; }
.auth-brand h1 { font-size: 20px; margin: 0; }
.auth-sub { color: var(--muted); font-size: 13px; margin: 6px 0 20px; }
.auth-tabs {
  display: flex;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 18px;
}
.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px;
  border-radius: 7px;
  cursor: pointer;
}
.auth-tab.active { background: var(--panel2); color: var(--text); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.auth-form input {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 11px 12px;
  font-size: 14px;
  outline: none;
}
.auth-form input:focus { border-color: var(--card-border-hover); }
.auth-submit { margin-top: 4px; padding: 11px; font-size: var(--btn-label-size); }
.auth-msg { margin-top: 14px; font-size: 13px; min-height: 18px; text-align: center; }
.auth-msg.err { color: var(--red); }
.auth-msg.ok { color: var(--green); }
.auth-link {
  background: none; border: none; padding: 0; margin-top: 2px;
  color: var(--blue); font-size: 13px; cursor: pointer; text-align: center;
}
.auth-link:hover { text-decoration: underline; }
.auth-hint { font-size: 13px; color: var(--muted, #8a93a6); margin: 0 0 4px; }

/* ---------- offres / tarifs (page d'accueil) ---------- */
.pricing { width: 100%; max-width: 720px; }
.pricing-title { font-size: 20px; margin: 0; text-align: center; }
.pricing-sub { color: var(--muted); font-size: 13px; margin: 6px 0 18px; text-align: center; }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: #c9a233;
  box-shadow: 0 0 0 1px rgba(255, 210, 63, .25), 0 12px 40px rgba(0, 0, 0, .4);
}
.price-badge {
  position: absolute;
  top: -11px; right: 16px;
  background: #ffd23f; color: #1a1300;
  font-size: 11px; font-weight: 800;
  padding: 3px 10px; border-radius: 999px;
}
.price-name { font-size: 15px; font-weight: 800; color: var(--text); }
.price-amount {
  font-size: 30px; font-weight: 800; color: #fff;
  margin: 6px 0 14px;
}
.price-amount span { font-size: 14px; font-weight: 600; color: var(--muted); }
.price-feats {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 9px;
  flex: 1;
}
.price-feats li {
  font-size: 13px; color: var(--text); line-height: 1.4;
  padding-left: 22px; position: relative;
}
.price-feats li::before {
  content: "\2713";
  position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 800;
}
.price-feats li b { color: #fff; }
.price-feats .bolt { color: #ffd23f; }
.price-foot {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted); text-align: center;
}
@media (max-width: 560px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ======================================================================
   LANDING PAGE  (base saine, layout flexbox)
   ====================================================================== */
.lp-body {
  --lp-block-y: 40px;
  --lp-hero-extra-top: 28px;
  --lp-preview-inset-x: 10px;
  display: block;
  max-width: 1200px;
  margin: 0 auto;
  padding: 84px 18px 64px;
  background: var(--bg);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
/* Fond decoratif plein ecran (calque fixe : pas de bande sur les cotes). */
.lp-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(800px 500px at 20% -10%, rgba(197, 206, 217, .10), transparent 60%),
    var(--bg);
}

/* ---------- NAV ---------- */
.lp-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.lp-brand { display: flex; align-items: center; gap: 11px; }
.lp-brand .logo { font-size: 30px; }
.lp-brand-name { font-weight: 800; font-size: 23px; letter-spacing: -.02em; }
/* La nav est fixed (~80px) : sans cette marge, une ancre (#signin, #preview,
   #two-parts) place sa cible sous le header, et les premiers boutons du panneau
   d'auth deviennent litteralement incliquables. */
.lp-auth,
.lp-section {
  scroll-margin-top: 96px;
}

.lp-nav-links { display: flex; gap: 22px; margin-left: auto; }
.lp-nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.lp-nav-links a:hover { color: var(--text); }
.lp-nav-cta { display: flex; gap: 8px; }
.lp-nav-cta.no-links { margin-left: auto; }

/* ---------- HERO ---------- */
.lp-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: var(--lp-hero-extra-top) 0 var(--lp-block-y);
}
.lp-hero-text {
  flex: 1 1 420px;
  min-width: 0;
}
.lp-pill {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  color: #ffd23f;
  background: rgba(255, 210, 63, .1);
  border: 1px solid rgba(255, 210, 63, .28);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.lp-title {
  font-size: 44px; line-height: 1.12; font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -.02em;
}
.lp-accent { color: var(--feed-accent); }
.lp-lead {
  font-size: 16px; line-height: 1.65; color: var(--muted);
  margin: 0 0 22px;
}
.lp-lead b { color: var(--text); }
.lp-hero-points {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.lp-hero-points li {
  font-size: 14px; color: var(--text); font-weight: 600;
  padding-left: 26px; position: relative;
}
.lp-hero-points li::before {
  content: "\2713";
  position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 800;
}
/* ---------- Landing : boutons harmonises ---------- */
/* Meme rayon, meme graisse, memes transitions pour toutes les CTA visibles
   (nav, formulaire d'acces, gros bouton demo). Les boutons INTERNES a l'apercu
   demo gardent le rendu de l'app reelle et ne sont pas cibles ici. */
.lp-nav-cta .btn,
.lp-demo-cta .btn,
.lp-auth .auth-submit,
.gate-submit {
  border-radius: 11px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.1;
  transition: transform .12s ease, box-shadow .2s ease,
    background .2s ease, border-color .2s ease, color .15s ease, filter .15s ease;
}
.lp-nav-cta .btn:hover,
.lp-demo-cta .btn:hover,
.lp-auth .auth-submit:hover,
.gate-submit:hover { filter: none; transform: translateY(-1px); }
.lp-nav-cta .btn:active,
.lp-demo-cta .btn:active,
.lp-auth .auth-submit:active,
.gate-submit:active { transform: translateY(0); }

/* Primaire (bleu) : leger degrade + halo qui s'intensifie au survol. */
.lp-nav-cta .btn.primary,
.lp-demo-cta .btn.primary,
.lp-auth .auth-submit {
  background: linear-gradient(180deg, #e8edf2 0%, #b8c2ce 100%);
  border-color: #aeb8c4;
  color: #09090b;
  box-shadow: 0 6px 16px rgba(197, 206, 217, .28);
}
.lp-nav-cta .btn.primary:hover {
  box-shadow: 0 7px 14px rgba(197, 206, 217, .18);
}
.lp-demo-cta .btn.primary:hover,
.lp-auth .auth-submit:hover {
  box-shadow: 0 12px 26px rgba(197, 206, 217, .45);
}
.gate-submit.btn.primary {
  background: linear-gradient(180deg, #e8edf2 0%, #b8c2ce 100%);
  border-color: #aeb8c4;
  color: #09090b;
  box-shadow: none;
}
.gate-submit.btn.primary:hover {
  box-shadow: none;
}

/* Secondaire nav landing : meme style que le bouton Ajouter. */
.lp-nav-cta .btn:not(.primary):not(.upgrade) {
  background: var(--btn-fill);
  border-color: var(--btn-fill-border);
  color: var(--btn-fill-text);
}
.lp-nav-cta .btn:not(.primary):not(.upgrade):hover {
  filter: brightness(1.08);
  background: var(--btn-fill);
  border-color: var(--btn-fill-border);
}

/* Tailles harmonisees. */
.lp-nav-cta .btn.small { padding: 9px 18px; font-size: var(--btn-label-size); }
.lp-nav-cta button.btn { font-family: inherit; }
.lp-btn-lg { padding: 15px 30px; font-size: 15.5px; border-radius: 12px; }

/* ---------- CARTE AUTH (theme sombre, aligne sur l'app) ---------- */
.lp-auth {
  flex: 0 1 400px;
  width: 100%;
  max-width: 400px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
  color: var(--text);
}
.lp-auth-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.lp-auth .auth-tabs {
  margin-bottom: 14px;
  background: var(--panel2);
  border: 1px solid var(--border);
  padding: 4px;
}
.lp-auth .auth-tab { color: var(--muted); }
.lp-auth .auth-tab.active {
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.lp-auth-body {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.lp-auth .auth-form:not(.hidden) {
  flex: 1;
  min-height: 0;
}
.lp-auth .auth-form { gap: 11px; }
.lp-auth .auth-form label { color: var(--muted); }
.lp-auth .auth-form input {
  background: var(--panel2);
  border: 1px solid var(--border);
  color: var(--text);
}
.lp-auth .auth-form input::placeholder { color: var(--muted); }
.lp-auth .auth-form input:focus {
  border-color: var(--card-border-hover);
  box-shadow: 0 0 0 3px var(--accent-focus-ring);
}
.lp-auth .auth-hint { color: var(--muted); line-height: 1.5; }
.lp-auth .auth-link { color: var(--mode-blue); }
.lp-auth .auth-link:hover { color: color-mix(in srgb, var(--mode-blue) 75%, white); }
.lp-auth .auth-submit { margin-top: auto; }
.lp-auth .auth-msg { margin-top: 8px; min-height: 0; margin-bottom: 0; }
.lp-auth .auth-msg:empty { margin-top: 0; }
.lp-auth .auth-msg.err { color: #f87171; }
.lp-auth .auth-msg.ok { color: var(--pool-green-soft); }

.btn.google-auth,
.btn.x-auth,
.btn.email-auth {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  border-radius: 10px;
  background: var(--btn-fill);
  color: var(--btn-fill-text);
  border: 1px solid var(--btn-fill-border);
  transition: filter .15s, transform .05s;
}
.btn.google-auth:hover,
.btn.x-auth:hover,
.btn.email-auth:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn.google-auth svg,
.btn.x-auth svg,
.btn.email-auth svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  width: 20px;
  height: 20px;
}
.auth-btn-label {
  width: 100%;
  text-align: center;
  padding: 0 44px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}
.btn.google-auth {
  text-decoration: none;
}
.oauth-btns,
.auth-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.oauth-btns.hidden,
.auth-choices.hidden { display: none; }
.email-panel.hidden { display: none; }
.email-panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.email-panel .page-back--start,
.co-email-panel .page-back--start { margin-bottom: 10px; }
.email-panel-intro {
  margin: 0 0 6px;
}
.email-panel-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}
.email-panel-lead {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: #a8b3bf;
}
.lp-auth .email-panel .auth-form label.auth-field-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #9aa8b5;
  gap: 7px;
}
.lp-auth .email-panel .auth-form input {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.lp-auth .email-panel .auth-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.btn.email-auth {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.btn.x-auth {
  text-decoration: none;
}
.auth-divider {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 2px 0 0;
}

/* ---------- SECTIONS ---------- */
.lp-section {
  padding: var(--lp-block-y) 0;
  border-top: 1px solid var(--border);
}
.lp-section-kicker {
  margin: 0 0 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.lp-two-parts-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 16px;
  max-width: 920px;
  margin: 0 auto 20px;
}
.lp-two-part {
  position: relative;
  padding: 22px 20px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
}
.lp-two-part--crypto {
  border-color: color-mix(in srgb, var(--pool-green) 35%, var(--border));
  background: color-mix(in srgb, var(--pool-green) 7%, rgba(0, 0, 0, 0.12));
}
.lp-two-part--custom {
  border-color: color-mix(in srgb, var(--mode-blue) 32%, var(--border));
  background: color-mix(in srgb, var(--mode-blue) 6%, rgba(0, 0, 0, 0.12));
}
.lp-two-part-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.digx-mark {
  display: block;
  width: auto;
  object-fit: contain;
}
.lp-two-part-icon .digx-mark,
.guide-overview-icon .digx-mark,
.pricing-hero-icon .digx-mark {
  height: 28px;
}
.lp-feat-ico .digx-mark {
  height: 26px;
}
.lp-two-part-icon {
  display: block;
  margin-bottom: 8px;
}
.guide-sloth-emoji,
.pricing-slot-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.guide-sloth-emoji .feed-add-mode-glyph,
.pricing-slot-icon .feed-add-mode-glyph,
.lightning-shop-offer-icon .feed-add-mode-glyph {
  width: 24px;
  height: 24px;
}
.guide-slot[data-mode-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.guide-slot[data-mode-icon] .feed-add-mode-glyph {
  width: 14px;
  height: 14px;
}
.lp-two-part h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
}
.lp-two-part-lead {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.lp-two-part-lead strong { color: var(--text); }
.lp-two-part-feats {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.lp-two-part-feats li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
}
.lp-two-part-feats li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 800;
}
.lp-two-part-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.lp-two-part-tag--pool {
  background: color-mix(in srgb, var(--pool-green) 18%, transparent);
  color: var(--pool-green);
}
.lp-two-part-tag--slot {
  background: color-mix(in srgb, var(--mode-blue) 16%, transparent);
  color: var(--mode-blue);
}
.lp-two-parts-plus,
.lp-two-parts-eq {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--muted);
}
.lp-two-parts-merge {
  max-width: 640px;
  margin: 0 auto 14px;
  text-align: center;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.lp-two-parts-links {
  margin: 0;
  text-align: center;
  font-size: 13px;
}
.lp-two-parts-links a {
  color: var(--feed-accent);
  font-weight: 600;
  text-decoration: none;
}
.lp-two-parts-links a:hover { text-decoration: underline; }
.lp-two-parts-links span { margin: 0 8px; color: var(--border); }
@media (max-width: 760px) {
  .lp-two-parts-grid {
    grid-template-columns: 1fr;
  }
  .lp-two-parts-plus { display: none; }
}
.lp-hero-points li strong { color: var(--text); }
.lp-h2 {
  font-size: 28px; font-weight: 800; text-align: center; margin: 0 0 8px;
  letter-spacing: -.02em;
}
.lp-h2-sub { text-align: center; color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.lp-section > .lp-h2 { margin-bottom: 28px; }

.lp-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.lp-feat {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 22px 18px;
}
.lp-feat-ico { margin-bottom: 12px; }
.lp-feat h3 { font-size: 16px; margin: 0 0 8px; }
.lp-feat p { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0; }

.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lp-step {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 24px 20px;
}
.lp-step-num {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--feed-accent); color: #fff; font-weight: 800; font-size: 16px;
  margin-bottom: 14px;
}
.lp-step h3 { font-size: 16px; margin: 0 0 8px; }
.lp-step p { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0; }

.lp-pricing { max-width: 720px; margin: 0 auto; }
.lp-price-btn { width: 100%; text-align: center; margin-top: 18px; text-decoration: none; }

.lp-final { text-align: center; padding: var(--lp-block-y) 0; }

/* ---------- DEMO : apercu avec marges laterales (cadre = .lp-demo-app) ---------- */
.lp-preview-section {
  margin-inline: var(--lp-preview-inset-x);
}
.lp-preview {
  width: 100%;
  max-width: none;
  margin: 0;
}
.lp-demo-wrap { position: relative; max-width: none; width: 100%; margin: 0; }
.lp-demo-badge {
  position: absolute;
  top: -11px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  background: var(--feed-accent); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .03em;
  text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(197, 206, 217, .4);
  white-space: nowrap;
}
/* Le cadre demo : rectangle autour des cartes uniquement. */
.lp-demo-app {
  min-height: 0;
  border: 2px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--feed-accent) 18%, transparent);
  -webkit-user-select: none;
  user-select: none;
  background: var(--bg);
}
.lp-demo-timeline {
  padding: 16px;
}
.lp-demo-app .feed-group-items {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: none;
  margin: 0;
  gap: 20px;
}
.lp-demo-app .ncard {
  pointer-events: none;
}
@media (max-width: 820px) {
  .lp-demo-app .feed-group-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .lp-demo-app .feed-group-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.lp-demo-app .ncard-av {
  filter: none;
}
.lp-demo-app .ncard-by-av.demo-follower-av {
  filter: blur(6px);
  -webkit-filter: blur(6px);
}
.lp-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  padding: 32px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 32px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.lp-footer .logo { font-size: 18px; }
.lp-footer a {
  color: var(--feed-accent);
  text-decoration: none;
  font-weight: 600;
}
.lp-footer a:hover { text-decoration: underline; }

.lp-footer--legal {
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 40px;
  margin-top: 48px;
}
.lp-footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.lp-footer-nav,
.lp-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}
.lp-footer-legal a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.lp-footer-legal a[aria-current="page"] {
  color: var(--feed-accent);
}
.lp-footer-copy {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.85;
}

/* ---------- Landing showcase (variant product-first) ---------- */
.lp-body--showcase {
  --lp-block-y: 48px;
  --lp-hero-margin-y: 36px;
  --lp-hero-padding-y: clamp(24px, 3.2vw, 36px);
  --lp-hero-extra-top: 12px;
  --lp-preview-inset-x: 0;
  max-width: 1280px;
  padding-top: 88px;
  border-left: none;
  border-right: none;
}
.lp-body--showcase::before {
  background:
    radial-gradient(900px 520px at 72% -8%, rgba(255, 210, 63, 0.07), transparent 58%),
    radial-gradient(700px 480px at 8% 40%, rgba(108, 192, 255, 0.06), transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 28px 28px, 28px 28px, auto;
}
.lp-nav--showcase {
  max-width: 1280px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-left: none;
  border-right: none;
  border-bottom-color: color-mix(in srgb, var(--border) 70%, transparent);
}
.lp-showcase-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 400px);
  column-gap: 28px;
  row-gap: 28px;
  align-items: center;
  margin: var(--lp-hero-margin-y) 20px var(--lp-hero-margin-y);
  padding: var(--lp-hero-padding-y) clamp(24px, 4vw, 48px);
  scroll-margin-top: 96px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 70% 55% at 12% 8%, rgba(108, 192, 255, 0.1), transparent 55%),
    radial-gradient(ellipse 55% 45% at 92% 92%, rgba(255, 210, 63, 0.06), transparent 50%),
    color-mix(in srgb, var(--panel) 72%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--border) 70%, rgba(108, 192, 255, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 20px 56px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.lp-showcase-hero:has(#signin.hidden) {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.lp-showcase-hero:has(#signin.hidden) .lp-showcase-intro {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  align-items: center;
}
.lp-showcase-hero:has(#signin.hidden) .lp-showcase-points {
  align-items: center;
}
.lp-showcase-auth-row {
  display: flex;
  justify-content: stretch;
  align-self: stretch;
  align-items: center;
  padding: 0;
  scroll-margin-top: 0;
}
.lp-showcase-auth-row.hidden {
  display: none;
}
.lp-showcase-auth-card {
  flex: 1;
  width: 100%;
  max-width: none;
  margin: 0;
}
.lp-showcase-auth-card .auth-choices {
  max-width: none;
  width: 100%;
  margin-inline: 0;
}
.lp-showcase-auth-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-align: center;
  color: var(--text);
}
.lp-showcase-auth-card .lp-auth-kicker {
  display: none;
}
.lp-showcase-auth-row.pulse-highlight .lp-showcase-auth-card,
.lp-showcase-auth-card.pulse-highlight {
  animation: lpAuthCardGlow 1.8s ease-in-out 3;
}
.lp-showcase-intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
  max-width: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.lp-showcase-hero .lp-auth--showcase {
  padding: 8px 4px;
  border-radius: 16px;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
@media (min-width: 961px) {
  .lp-showcase-auth-row {
    padding-inline-start: 28px;
    border-inline-start: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
  }
}
.lp-showcase-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.lp-showcase-title-main {
  font-size: clamp(36px, 5.6vw, 56px);
}
.lp-showcase-title-sub {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
}
.lp-showcase-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.lp-showcase-points li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: color-mix(in srgb, var(--text) 90%, var(--muted));
}
.lp-showcase-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--feed-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--feed-accent) 20%, transparent);
}
.lp-showcase-preview-row {
  width: auto;
  margin-inline: 20px;
  padding-bottom: 8px;
  scroll-margin-top: 96px;
}
.lp-showcase-preview-row .lp-preview {
  width: 100%;
  max-width: none;
  margin: 0;
}
.lp-demo-app--showcase {
  border-radius: 18px;
  border-width: 1px;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--feed-accent) 22%, transparent),
    0 24px 64px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.lp-body--showcase .lp-demo-badge {
  background: color-mix(in srgb, var(--bg) 90%, var(--feed-accent));
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--feed-accent) 35%, transparent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.lp-auth--showcase {
  padding: 24px 20px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: color-mix(in srgb, var(--border) 80%, white 8%);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
.lp-auth--showcase .lp-auth-kicker {
  display: block;
  text-align: left;
  margin-bottom: 16px;
}
.lp-h2--left {
  text-align: left;
  margin-bottom: 20px;
}
.lp-showcase-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.lp-showcase-tile {
  padding: 22px 20px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: color-mix(in srgb, var(--card) 92%, transparent);
}
.lp-showcase-tile--crypto {
  border-color: color-mix(in srgb, var(--pool-green) 28%, var(--card-border));
}
.lp-showcase-tile--custom {
  border-color: color-mix(in srgb, var(--mode-blue) 28%, var(--card-border));
}
.lp-showcase-tile--wide {
  grid-column: 1 / -1;
}
.lp-showcase-tile-num {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.lp-showcase-tile h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.lp-showcase-tile p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.lp-showcase-tile-links {
  margin-top: 12px !important;
  font-size: 13px !important;
}
.lp-showcase-tile-links a {
  color: var(--feed-accent);
  font-weight: 600;
  text-decoration: none;
}
.lp-showcase-tile-links a:hover {
  text-decoration: underline;
}
.lp-showcase-tile-links span {
  margin: 0 8px;
  color: var(--border);
}
.lp-showcase-stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  counter-reset: lp-step;
}
.lp-showcase-stepper li {
  position: relative;
  padding: 18px 16px 18px 44px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--card);
}
.lp-showcase-stepper li::before {
  counter-increment: lp-step;
  content: counter(lp-step);
  position: absolute;
  left: 14px;
  top: 16px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  line-height: 22px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  background: var(--feed-accent);
  color: #fff;
}
.lp-showcase-stepper strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}
.lp-showcase-stepper span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.lp-final--showcase {
  padding: 24px 0 48px;
}
.lp-final--showcase .lp-h2,
.lp-final--showcase .lp-h2-sub {
  display: none;
}
.lp-footer--showcase {
  margin-top: 24px;
  padding-top: 28px;
  border-top: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
}
@media (max-width: 960px) {
  .lp-showcase-hero {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 28px;
    margin-inline: 12px;
    padding: 24px 22px;
  }
  .lp-showcase-intro {
    max-width: none;
    text-align: center;
    align-items: center;
  }
  .lp-showcase-points {
    align-items: center;
  }
  .lp-showcase-auth-row {
    justify-content: center;
    padding-inline-start: 0;
    border-inline-start: none;
  }
  .lp-showcase-auth-card {
    max-width: 420px;
  }
  .lp-showcase-preview-row {
    margin-inline: 12px;
  }
  .lp-showcase-stepper {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .lp-showcase-bento-grid {
    grid-template-columns: 1fr;
  }
  .lp-showcase-tile--wide {
    grid-column: auto;
  }
  .lp-body--showcase .lp-demo-app .feed-group-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Legal pages ---------- */
.legal-body { padding-bottom: 48px; }
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 24px;
}
.legal-hero { margin-bottom: 20px; }
.legal-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal-title {
  margin: 0;
  font-size: clamp(28px, 5vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.legal-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.legal-subnav a {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.legal-subnav a:hover {
  color: var(--text);
  border-color: var(--border);
}
.legal-subnav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
}
.legal-content {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}
.legal-updated {
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--muted);
}
.legal-section {
  margin-bottom: 28px;
}
.legal-section h2 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.legal-section p {
  margin: 0 0 12px;
  color: var(--muted);
}
.legal-section p strong { color: var(--text); }
.legal-section a {
  color: var(--feed-accent);
  text-decoration: none;
}
.legal-section a:hover { text-decoration: underline; }
.legal-list {
  margin: 8px 0 12px;
  padding-left: 1.25rem;
  color: var(--muted);
}
.legal-list li { margin-bottom: 8px; }
.legal-list li strong { color: var(--text); }
.legal-section code {
  font-size: 0.92em;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

/* Animation autour de la carte auth au clic sur Commencer. */
@keyframes lpAuthCardGlow {
  0%, 100% {
    box-shadow: none;
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(56, 189, 248, 0.22),
      0 0 28px rgba(56, 189, 248, 0.16);
  }
}
.lp-auth.pulse-highlight,
.lp-showcase-auth-card.pulse-highlight {
  animation: lpAuthCardGlow 1.8s ease-in-out 3;
}
@media (prefers-reduced-motion: reduce) {
  .lp-auth.pulse-highlight,
  .lp-showcase-auth-card.pulse-highlight {
    animation: none;
    border-color: color-mix(in srgb, var(--mode-blue) 70%, var(--border));
    box-shadow:
      0 16px 48px rgba(0, 0, 0, 0.35),
      0 0 0 9px rgba(56, 189, 248, 0.24);
  }
}

/* Header de la demo : logo DigX + indicateur de connexion + champ d'ajout. */
.lp-demo-top { padding: 12px 18px; }
.lp-demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.lp-demo-bar .logo { font-size: 20px; line-height: 1; }
.lp-demo-name { font-weight: 800; font-size: 16px; letter-spacing: -.02em; }
.lp-demo-app .add-row input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  padding: 8px 0;
}
.lp-demo-app .add-row input::placeholder { color: var(--muted); }
.lp-demo-app .add-row { align-items: center; }

/* Avatar du compte suivi : deja floute cote serveur (PNG). */
.lp-demo-app .ncard-av { background: var(--panel2); }

/* Barre de masquage : remplace le nom/handle/stats du compte suivi.
   Placee a l'interieur des vrais elements (pv-name, pv-bio, ncard-name...). */
.lp-demo-app .ncard-by .demo-follower-handle {
  display: inline-block;
  filter: blur(5px);
  -webkit-filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

.lp-demo-app .redact-bar {
  display: inline-block;
  height: 11px;
  border-radius: 6px;
  background: linear-gradient(90deg, #34485c, #46596d 50%, #34485c);
  vertical-align: middle;
}
.lp-demo-app .redact-bar.tall { height: 14px; }
.lp-demo-app .redact-bar.w40 { width: 40px; }
.lp-demo-app .redact-bar.w45 { width: 45px; }
.lp-demo-app .redact-bar.w50 { width: 50px; }
.lp-demo-app .redact-bar.w55 { width: 55px; }
.lp-demo-app .redact-bar.w70 { width: 70px; }
.lp-demo-app .redact-bar.w80 { width: 80px; }
.lp-demo-app .redact-bar.w120 { width: 120px; }
.lp-demo-app .redact-bar.wfull { width: 100%; }

.lp-demo-app .ncard-by .redact-bar { vertical-align: -1px; }

.lp-demo-cta { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 820px) {
  .lp-body {
    padding-top: 76px;
    --lp-block-y: 32px;
    --lp-hero-extra-top: 20px;
    --lp-preview-inset-x: 6px;
  }
  .lp-hero { gap: 36px; }
  .lp-features { grid-template-columns: repeat(2, 1fr); }
  /* Formulaire empile : on supprime la hauteur mini (qui creait un grand vide
     entre les champs et le bouton) et on resserre les espaces. */
  .lp-auth { padding: 24px 18px; }
  .lp-auth-body { min-height: 0; }
  .lp-auth .auth-form:not(.hidden) { min-height: 0; }
  .lp-auth .auth-form { gap: 12px; }
  .lp-auth .auth-submit { margin-top: 6px; }
  /* Message vide : ne reserve pas d'espace sous le bouton. */
  .lp-auth .auth-msg:empty { margin-top: 0; }
}
@media (max-width: 680px) {
  .lp-nav-links { display: none; }
  .lp-nav-cta { margin-left: auto; }
  .lp-showcase-hero {
    margin-inline: 8px;
    padding: 20px 18px;
    border-radius: 20px;
  }
  .lp-showcase-auth-card {
    max-width: none;
  }
  .lp-showcase-preview-row {
    margin-inline: 8px;
  }
  .lp-title { font-size: 34px; }
  .lp-lead { font-size: 15px; }
  .lp-steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .lp-features { grid-template-columns: 1fr; }
}

/* ---------- barre utilisateur (dashboard) ---------- */
.user-box { display: flex; align-items: center; gap: 10px; }
.user-box .uname { font-size: 13px; color: var(--muted); font-weight: 600; }

.header-lightning {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-lightning-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: filter .15s ease, transform .12s ease, box-shadow .15s ease;
}
.header-lightning-pill:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.header-lightning-pill:active { transform: translateY(0); }
.header-lightning-pill.lightning-blue {
  color: var(--mode-blue);
  background: rgba(var(--mode-blue-rgb), 0.1);
  border: 1px solid rgba(var(--mode-blue-rgb), 0.38);
  box-shadow: none;
}
.header-lightning-pill.lightning-gold {
  color: var(--mode-green);
  background: rgba(var(--mode-green-rgb), 0.1);
  border: 1px solid rgba(var(--mode-green-rgb), 0.38);
  box-shadow: none;
}
.header-lightning-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  line-height: 1;
}
.header-lightning-count {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.header-lightning-icon .feed-add-mode-glyph {
  width: 16px;
  height: 16px;
  display: block;
}

.lightning-shop-card {
  width: min(480px, calc(100vw - 32px));
  padding: 24px 22px 22px;
}
.lightning-shop-lead {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.lightning-shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) {
  .lightning-shop-grid { grid-template-columns: 1fr; }
}
.lightning-shop-offer {
  padding: 16px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--card-border);
  background: var(--panel);
  text-align: center;
}
.lightning-shop-offer.is-highlight {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.lightning-shop-offer.lightning-blue {
  border-color: rgba(var(--mode-blue-rgb), 0.45);
  background: linear-gradient(180deg, rgba(var(--mode-blue-rgb), 0.14) 0%, rgba(8, 16, 24, 0.4) 100%);
}
.lightning-shop-offer.lightning-gold {
  border-color: rgba(var(--mode-green-rgb), 0.45);
  background: linear-gradient(180deg, rgba(var(--mode-green-rgb), 0.14) 0%, rgba(8, 16, 24, 0.4) 100%);
}
.lightning-shop-offer-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}
.lightning-shop-offer-head h4 {
  margin: 0;
  font-size: 15px;
}
.lightning-shop-offer-icon { font-size: 18px; }
.lightning-shop-offer.lightning-blue .lightning-shop-offer-head h4 { color: var(--mode-blue); }
.lightning-shop-offer.lightning-gold .lightning-shop-offer-head h4 { color: var(--mode-green); }
.lightning-shop-offer-desc {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.lightning-shop-offer-price {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.lightning-shop-offer.lightning-blue .lightning-shop-offer-price { color: var(--mode-blue); }
.lightning-shop-offer.lightning-gold .lightning-shop-offer-price { color: var(--mode-green); }
.feed-unlock-overlay .sol-pay-cancel {
  margin-top: 8px;
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--muted);
}

/* Header : boutons gris, Upgrade dore. */
.user-box .btn,
.user-box .btn.small {
  font-family: inherit;
  font-size: 14px;
  font-weight: var(--btn-label-weight);
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 9px 16px;
  border-radius: 9px;
  background: var(--btn-fill);
  border: 1px solid var(--btn-fill-border);
  color: var(--btn-fill-text);
  line-height: 1.1;
  text-decoration: none;
}
.user-box .btn.upgrade {
  background: var(--tier-plus-gradient);
  border-color: var(--tier-plus);
  color: var(--tier-plus-on);
}
.user-box .btn:hover { filter: brightness(1.15); }

/* ---------- Page d'accès (code d'invitation) ---------- */
.lp-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 18px;
  border: none;
  background: transparent;
}
.lp-gate::before {
  background: var(--bg);
}
.gate-shell {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.gate-logo { font-size: 42px; max-width: min(280px, 78vw); }
.gate-stack {
  width: 100%;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  overflow: hidden;
}
.gate-stack > .gate-tabs {
  display: flex;
  width: 100%;
  margin: 0;
  gap: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--card-border);
  border-radius: 0;
}
.gate-stack > .gate-tabs .auth-tab {
  flex: 1;
  border-radius: 0;
  padding: 13px 12px;
  margin: 0 0 -1px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--muted);
  background: transparent;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.gate-stack > .gate-tabs .auth-tab:hover:not(.active) {
  color: var(--text);
  background: rgba(255, 255, 255, .03);
}
.gate-stack > .gate-tabs .auth-tab.active {
  color: var(--text);
  background: transparent;
  border-bottom-color: var(--card-border-hover);
  box-shadow: none;
}
.gate-card {
  width: 100%;
  background: var(--card);
  border: none;
  border-radius: 0;
  padding: 24px 24px 26px;
  box-shadow: none;
}
.gate-card > .gate-title {
  margin: 0 0 20px;
  font-size: 22px;
}
.gate-login-panel.hidden,
.gate-email-panel.hidden { display: none; }
.lp-auth .gate-email-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.lp-auth .gate-email-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lp-auth .gate-email-step.hidden { display: none; }
.lp-auth .gate-email-panel .page-back--start { margin-bottom: 14px; }
.lp-auth .gate-email-panel .gate-form { gap: 16px; margin-top: 0; }
.lp-auth .gate-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-auth .gate-otp-wrap input {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.32em;
  font-variant-numeric: tabular-nums;
  padding-left: calc(14px + 0.16em);
}
.lp-auth .gate-email-foot {
  margin: -2px 0 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.lp-auth .gate-email-link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  font-weight: 600;
  color: var(--mode-blue);
  cursor: pointer;
}
.lp-auth .gate-email-link:hover {
  color: color-mix(in srgb, var(--mode-blue) 75%, white);
}
.lp-auth .email-panel-lead strong {
  color: var(--text);
  font-weight: 600;
  word-break: break-all;
}
.gate-login-hint {
  margin: -4px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.gate-email-back {
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 0;
  border: none;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.gate-email-back:hover { color: var(--text); }
.gate-email-panel .gate-form { margin-top: 4px; }
.gate-email-resend {
  margin-top: 4px;
  padding: 0;
  border: none;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  width: 100%;
}
.gate-email-resend:hover { color: var(--text); }
.gate-email-resend.hidden { display: none; }
.gate-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-align: center;
}
.gate-lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}
.gate-lead--tight { margin-bottom: 14px; }
.gate-trial {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel2);
  text-align: center;
}
.gate-trial.hidden { display: none; }
.gate-trial-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d4d4d4;
}
.gate-trial-countdown {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.gate-form { display: flex; flex-direction: column; gap: 14px; }
.gate-code-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--card-tile-icon);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.gate-code-wrap:focus-within {
  border-color: var(--card-border-hover);
  box-shadow: 0 0 0 3px var(--accent-focus-ring);
}
.gate-code-wrap input {
  width: 100%;
  padding: 13px 14px;
  padding-right: 4.5rem;
}
.gate-paste-btn {
  position: absolute;
  right: 6px;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.gate-paste-btn:hover,
.gate-paste-btn:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  outline: none;
}
.gate-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.gate-form input {
  background: var(--card-tile-icon);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--text);
  font-size: 15px;
  outline: none;
}
.gate-form input::placeholder { color: var(--muted); }
.gate-form input:focus {
  border-color: var(--card-border-hover);
  box-shadow: 0 0 0 3px var(--accent-focus-ring);
}
.gate-form .gate-code-wrap input {
  background: transparent;
  border: none;
  box-shadow: none;
}
.gate-form .gate-code-wrap input:focus {
  border-color: transparent;
  box-shadow: none;
}
.gate-submit {
  width: 100%;
  justify-content: center;
  padding: 13px 16px;
  border-radius: 10px;
}
.gate-msg { width: 100%; text-align: center; min-height: 18px; }
.lp-auth--gate {
  flex: none;
  width: 100%;
  max-width: none;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.admin-body { background: var(--bg); min-height: 100vh; }
.admin-body.admin-auth-pending #adminGate,
.admin-body.admin-auth-pending #adminApp { display: none !important; }
.admin-gate.hidden { display: none; }
.admin-gate-card { max-width: 420px; width: 100%; }
.admin-gate-divider {
  margin: 18px 0 14px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.admin-gate-foot {
  margin: 16px 0 0;
  text-align: center;
}
.admin-gate-sent {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}
.admin-gate-sent strong { color: var(--text); }
.admin-gate-back {
  margin-top: 12px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 0;
  width: 100%;
  text-align: center;
}
.admin-gate-back:hover { color: var(--text); text-decoration: underline; }
#adminSendPassBtn { margin-top: 4px; }
.gate-form.hidden { display: none; }
.auth-msg.gate-msg.ok { color: var(--green); }
.auth-msg.gate-msg.err { color: var(--red); }

/* Celebration : confettis + transition landing -> app */
.gate-celebrate .gate-shell {
  animation: gateCelebrateOut 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.gate-celebrate .gate-logo {
  animation: gateLogoPop 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.gate-celebrate .auth-msg.gate-msg.ok {
  animation: gateWelcomeIn 0.45s ease 0.15s both;
}
@keyframes gateLogoPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes gateWelcomeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes gateCelebrateOut {
  0% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
  55% { opacity: 1; transform: scale(1.015) translateY(-4px); filter: blur(0); }
  100% { opacity: 0; transform: scale(0.94) translateY(-18px); filter: blur(2px); }
}
.gate-exit-overlay {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.85s ease 0.75s;
}
.gate-exit-overlay.is-active { opacity: 1; }
.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9000;
}

body.app-welcome-enter .app {
  opacity: 0;
  transform: scale(0.985) translateY(10px);
}
body.app-welcome-enter.app-welcome-ready .app {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) {
  .gate-celebrate .gate-shell,
  .gate-celebrate .gate-logo,
  .gate-celebrate .auth-msg.gate-msg.ok {
    animation: none;
  }
  .gate-exit-overlay { transition: none; }
  body.app-welcome-enter .app,
  body.app-welcome-enter.app-welcome-ready .app {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Paiement SOL ---------- */
.sol-pay-shell {
  max-width: 440px;
  position: relative;
}
.sol-pay-back {
  align-self: flex-start;
  margin-bottom: -4px;
}
.sol-pay-card {
  width: 100%;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(0, 255, 163, 0.06) 0%, transparent 28%),
    linear-gradient(180deg, rgba(220, 31, 255, 0.04) 0%, transparent 22%),
    var(--panel);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 28px 64px rgba(0, 0, 0, 0.55);
  padding: 0 0 4px;
  overflow: hidden;
}
.sol-pay-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.sol-pay-head-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 255, 163, 0.18), rgba(220, 31, 255, 0.14));
  border: 1px solid rgba(0, 255, 163, 0.22);
  flex-shrink: 0;
}
.sol-pay-head-copy {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.sol-pay-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
}
.sol-pay-head-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.sol-pay-close {
  position: absolute;
  top: 14px;
  right: 14px;
  flex-shrink: 0;
}
.sol-pay-success {
  padding: 28px 24px 32px;
  text-align: center;
}
.sol-pay-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(0, 255, 163, 0.14);
  border: 1px solid rgba(0, 255, 163, 0.35);
  color: #00ffa3;
}
.sol-pay-success-icon .digx-mark {
  height: 28px;
  width: auto;
}
.sol-pay-success-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.sol-pay-success-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 28em;
  margin-inline: auto;
}
.sol-pay-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 36px 22px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.sol-pay-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top-color: #00ffa3;
  border-right-color: #dc1fff;
  border-radius: 50%;
  animation: sol-pay-spin .75s linear infinite;
}
@keyframes sol-pay-spin {
  to { transform: rotate(360deg); }
}
.sol-pay-panel {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sol-pay-hero {
  padding: 18px 16px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel2);
  text-align: center;
}
.sol-pay-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sol-pay-field-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
}
.sol-pay-hero-row,
.sol-pay-field-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sol-pay-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 6px 0 0;
  flex: 1;
  min-width: 0;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  background: linear-gradient(135deg, #00ffa3 0%, #a8adb4 45%, #dc1fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sol-pay-unit {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--muted);
}
.sol-pay-address-wrap {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.5;
  word-break: break-all;
  text-align: left;
}
.sol-pay-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.sol-pay-copy-btn svg {
  width: 14px;
  height: 14px;
  opacity: 0.85;
}
.sol-pay-copy-btn:hover {
  border-color: var(--card-border-hover);
  background: rgba(255, 255, 255, 0.08);
}
.sol-pay-copy-btn.is-copied {
  border-color: rgba(0, 255, 163, 0.45);
  background: rgba(0, 255, 163, 0.12);
  color: #00ffa3;
}
.sol-pay-sol-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.sol-pay-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.sol-pay-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}
.sol-pay-rate,
.sol-pay-expiry {
  margin: 0;
}
.sol-pay-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}
.sol-pay-check {
  font-weight: 700;
  padding-top: 12px;
  padding-bottom: 12px;
}
.sol-pay-cancel {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}
.sol-pay-msg {
  margin: 0 20px 16px;
  text-align: center;
  font-size: 13px;
}
.pay-method-tabs {
  display: flex;
  gap: 8px;
  margin: 0 20px 14px;
  padding: 0;
}
.pay-method-tabs.hidden { display: none; }
.pay-method-tab {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.pay-method-tab.is-active {
  color: var(--text);
  border-color: var(--accent, #6ea8fe);
  background: rgba(110, 168, 254, 0.12);
}
.guardarian-pay-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 20px 16px;
}
.guardarian-pay-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}
.guardarian-pay-notes {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.feed-expired-lead {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
}

/* ---------- Guide « Comment ça marche » ---------- */
.guide-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 8px 16px 48px;
}

.guide-hero {
  text-align: center;
  padding: 12px 0 28px;
}

.guide-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.guide-title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

.guide-lead {
  margin: 0 auto 20px;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.guide-lead strong { color: var(--text); }

.guide-hero-cta { margin-top: 4px; }

.guide-overview {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}

@media (max-width: 680px) {
  .guide-overview {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .guide-overview-plus,
  .guide-overview-eq { display: none; }
}

.guide-overview-card {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.guide-overview-card h2 {
  margin: 6px 0 4px;
  font-size: 15px;
  font-weight: 800;
}

.guide-overview-card p {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.guide-overview-icon { line-height: 1; }

.guide-overview-card--pool {
  border-color: color-mix(in srgb, var(--pool-green) 40%, var(--border));
  background: color-mix(in srgb, var(--pool-green) 8%, transparent);
}

.guide-overview-card--slot {
  border-color: color-mix(in srgb, var(--mode-blue) 40%, var(--border));
  background: color-mix(in srgb, var(--mode-blue) 6%, transparent);
}

.guide-overview-card--feed {
  border-color: color-mix(in srgb, var(--feed-accent) 40%, var(--border));
  background: color-mix(in srgb, var(--feed-accent) 8%, transparent);
}

.guide-overview-plus,
.guide-overview-eq {
  font-size: 20px;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
}

.guide-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.guide-tag--free {
  background: color-mix(in srgb, var(--pool-green) 18%, transparent);
  color: var(--pool-green);
}

.guide-tag--paid {
  background: color-mix(in srgb, var(--mode-green) 18%, transparent);
  color: var(--mode-green);
}

.guide-section {
  margin-bottom: 40px;
  padding: 20px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.14);
}

.guide-section--pool {
  border-color: color-mix(in srgb, var(--pool-green) 25%, var(--border));
}

.guide-section--slots {
  border-color: color-mix(in srgb, var(--mode-blue) 22%, var(--border));
}

.guide-section--merge {
  border-color: color-mix(in srgb, var(--feed-accent) 25%, var(--border));
}

.guide-section-head { margin-bottom: 18px; }

.guide-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.guide-badge--pool {
  background: color-mix(in srgb, var(--pool-green) 20%, transparent);
  color: var(--pool-green);
}

.guide-badge--slot {
  background: color-mix(in srgb, var(--mode-blue) 18%, transparent);
  color: var(--mode-blue);
}

.guide-badge--feed {
  background: color-mix(in srgb, var(--feed-accent) 18%, transparent);
  color: var(--feed-accent);
}

.guide-section-head h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
}

.guide-section-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.guide-section-lead strong { color: var(--text); }

.guide-diagram {
  margin: 18px 0;
  padding: 16px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px dashed color-mix(in srgb, var(--border) 80%, transparent);
}

.guide-diagram-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.guide-diagram-row--users { gap: 8px; }

.guide-diagram-row--targets { gap: 12px; }

.guide-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  min-width: 100px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.guide-node-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}

.guide-node-sub {
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
  max-width: 140px;
}

.guide-node--pool {
  border-color: color-mix(in srgb, var(--pool-green) 45%, var(--border));
  background: color-mix(in srgb, var(--pool-green) 10%, transparent);
}

.guide-node--engine {
  border-color: color-mix(in srgb, var(--feed-accent) 40%, var(--border));
}

.guide-node--user {
  min-width: 72px;
  padding: 10px 8px;
  border-color: color-mix(in srgb, var(--pool-green) 30%, var(--border));
}

.guide-node-feed {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  background: color-mix(in srgb, var(--feed-accent) 15%, transparent);
  color: var(--feed-accent);
}

.guide-avatars {
  display: flex;
  gap: 4px;
}

.guide-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #0b1215;
}

.guide-av--a { background: var(--pool-green); }
.guide-av--b { background: var(--feed-accent); }
.guide-av--c { background: var(--mode-green); }
.guide-av--more {
  background: rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-size: 14px;
}

.guide-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0;
  color: var(--muted);
}

.guide-arrow-line {
  width: 2px;
  height: 14px;
  background: color-mix(in srgb, var(--muted) 50%, transparent);
}

.guide-arrow-cap {
  font-size: 10px;
  line-height: 1;
  opacity: 0.7;
}

.guide-sloth-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 4px;
}

@media (max-width: 520px) {
  .guide-sloth-types { grid-template-columns: 1fr; }
}

.guide-sloth-type {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-align: center;
}

.guide-sloth-type h3 {
  margin: 4px 0 2px;
  font-size: 14px;
  font-weight: 800;
}

.guide-sloth-type p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.guide-sloth-type--lent {
  border-color: color-mix(in srgb, var(--mode-blue) 45%, var(--border));
  background: color-mix(in srgb, var(--mode-blue) 8%, transparent);
}

.guide-sloth-type--turbo {
  border-color: color-mix(in srgb, var(--mode-green) 45%, var(--border));
  background: color-mix(in srgb, var(--mode-green) 8%, transparent);
}

.guide-sloth-emoji { line-height: 1; }

.guide-sloth-speed {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: var(--text) !important;
  margin-bottom: 4px !important;
}

.guide-sloth-type--lent .guide-sloth-speed { color: var(--mode-blue) !important; }
.guide-sloth-type--turbo .guide-sloth-speed { color: var(--mode-green) !important; }

.guide-node--you {
  border-color: color-mix(in srgb, var(--mode-blue) 35%, var(--border));
  min-width: 180px;
}

.guide-slots {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.guide-slot {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 2px dashed var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.guide-slot--filled { border-style: solid; }
.guide-slot--lent {
  border-color: var(--mode-blue);
  background: color-mix(in srgb, var(--mode-blue) 12%, transparent);
}
.guide-slot--turbo {
  border-color: var(--mode-green);
  background: color-mix(in srgb, var(--mode-green) 12%, transparent);
}
.guide-slot--empty { font-size: 20px; font-weight: 700; }

.guide-node--target-lent {
  border-color: color-mix(in srgb, var(--mode-blue) 40%, var(--border));
}

.guide-node--target-turbo {
  border-color: color-mix(in srgb, var(--mode-green) 40%, var(--border));
}

.guide-target-handle {
  font-size: 13px;
  font-weight: 800;
  font-family: ui-monospace, monospace;
}

.guide-target-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.guide-target-badge--lent {
  background: color-mix(in srgb, var(--mode-blue) 20%, transparent);
  color: var(--mode-blue);
}

.guide-target-badge--turbo {
  background: color-mix(in srgb, var(--mode-green) 20%, transparent);
  color: var(--mode-green);
}

.guide-node--feed-personal {
  border-color: color-mix(in srgb, var(--feed-accent) 35%, var(--border));
  min-width: 220px;
}

.guide-facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-facts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.guide-facts strong { color: var(--text); }

.guide-fact-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
}

.guide-fact-dot--pool { background: var(--pool-green); }
.guide-fact-dot--lent { background: var(--mode-blue); }
.guide-fact-dot--turbo { background: var(--mode-green); }

.guide-inline-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  vertical-align: middle;
}

.guide-inline-badge--pool {
  background: color-mix(in srgb, var(--pool-green) 18%, transparent);
  color: var(--pool-green);
}

.guide-inline-badge--lent {
  background: color-mix(in srgb, var(--mode-blue) 18%, transparent);
  color: var(--mode-blue);
}

.guide-inline-badge--turbo {
  background: color-mix(in srgb, var(--mode-green) 18%, transparent);
  color: var(--mode-green);
}

.guide-merge-diagram {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.guide-merge-source {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 10px;
}

.guide-merge-label {
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.guide-merge-bar {
  height: 10px;
  border-radius: 999px;
}

.guide-merge-bar--pool {
  background: linear-gradient(90deg, var(--pool-green), color-mix(in srgb, var(--pool-green) 40%, transparent));
}

.guide-merge-bar--custom {
  background: linear-gradient(90deg, var(--mode-blue), var(--mode-green));
}

.guide-merge-arrow {
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.guide-merge-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.guide-merge-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: var(--text);
}

.guide-compare { margin-bottom: 32px; }

.guide-compare-title {
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-weight: 800;
  text-align: center;
}

.guide-compare-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.guide-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.guide-compare-table th,
.guide-compare-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.guide-compare-table thead th {
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.04);
}

.guide-compare-table tbody th {
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.guide-compare-table tbody tr:last-child th,
.guide-compare-table tbody tr:last-child td {
  border-bottom: none;
}

.guide-th-pool { color: var(--pool-green); }
.guide-th-lent { color: var(--mode-blue); }
.guide-th-turbo { color: var(--mode-green); }

.guide-footer {
  text-align: center;
  padding: 8px 0 16px;
}

.guide-footer p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.guide-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* ---------- Pricing page ---------- */
.pricing-page .pricing-section { margin-bottom: 32px; }

.pricing-hero-card {
  padding: 20px 18px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--pool-green) 35%, var(--border));
  background: color-mix(in srgb, var(--pool-green) 7%, rgba(0, 0, 0, 0.18));
}

.pricing-hero-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.pricing-hero-icon { line-height: 1; }

.pricing-hero-name {
  margin: 0 0 2px;
  font-size: 17px;
  font-weight: 800;
}

.pricing-hero-tagline {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.pricing-hero-amount {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.pricing-hero-currency {
  font-size: 0.45em;
  font-weight: 700;
  color: var(--muted);
}

.pricing-feats,
.pricing-slot-feats {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-feats li,
.pricing-slot-feats li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
}

.pricing-feats li::before,
.pricing-slot-feats li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--pool-green);
  font-weight: 800;
}

.pricing-pay-note {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.pricing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pricing-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

@media (max-width: 640px) {
  .pricing-slot-grid { grid-template-columns: 1fr; }
}

.pricing-slot-card {
  padding: 16px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
}

.pricing-slot-card--normal {
  border-color: color-mix(in srgb, var(--mode-blue) 35%, var(--border));
  background: color-mix(in srgb, var(--mode-blue) 6%, rgba(0, 0, 0, 0.16));
}

.pricing-slot-card--turbo {
  border-color: color-mix(in srgb, var(--mode-green) 35%, var(--border));
  background: color-mix(in srgb, var(--mode-green) 6%, rgba(0, 0, 0, 0.16));
}

.pricing-slot-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.pricing-slot-icon { line-height: 1; }

.pricing-slot-head h3 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 800;
}

.pricing-slot-speed {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--mode-blue);
}

.pricing-slot-speed--turbo { color: var(--mode-green); }

.pricing-slot-price {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.pricing-slot-per {
  font-size: 0.45em;
  font-weight: 600;
  color: var(--muted);
}

.pricing-slot-desc {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  flex: 1;
}

.pricing-slot-desc strong { color: var(--text); }

.pricing-compare-wrap { margin-top: 8px; }

.pricing-page .guide-footer a {
  color: var(--feed-accent);
  font-weight: 600;
  text-decoration: none;
}

.pricing-page .guide-footer a:hover { text-decoration: underline; }

.tweet-watch-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: end;
  margin: 12px 0 8px;
}
.tweet-watch-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
  flex: 1;
}
.tweet-watch-field span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.tweet-watch-field input {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
}
.tweet-watch-field input:focus { border-color: var(--card-border-hover); }
.tweet-watch-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tweet-watch-status {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  font-size: 13px;
}
.tweet-watch-status.is-live {
  border-color: color-mix(in srgb, #63e6be 45%, var(--border));
}
.tweet-watch-status-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.tweet-watch-status-top strong { color: var(--text); }
.tweet-watch-live {
  color: #63e6be;
  font-weight: 700;
}
.tweet-watch-err {
  margin: 8px 0 0;
  color: #ffa8a8;
  font-size: 12px;
}
.tweet-watch-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.tweet-watch-empty {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.tweet-watch-card {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
}
.tweet-watch-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.tweet-watch-card-top strong { color: var(--text); }
.tweet-watch-text {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.tweet-watch-card a {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.tweet-watch-api { margin-top: 16px; }
.tweet-watch-api-actions { margin: 10px 0 12px; }
.tweet-watch-secret {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, #ffd970 50%, var(--border));
  border-radius: 10px;
  background: color-mix(in srgb, #ffd970 8%, var(--panel));
}
.tweet-watch-secret p {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
}
.tweet-watch-secret-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.tweet-watch-secret-row input {
  flex: 1;
  min-width: 180px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}
.tweet-watch-key-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.tweet-watch-key-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  font-size: 13px;
}
.tweet-watch-key-row code {
  font-size: 12px;
}
.tweet-watch-key-meta {
  color: var(--muted);
  font-size: 12px;
}
.tweet-watch-docs-title {
  margin: 8px 0 6px;
  font-size: 13px;
  font-weight: 700;
}
.tweet-watch-pre {
  margin: 8px 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
