/* ============================================================
   AD TradeLimit — Design tokens
   ============================================================ */
:root {
  --black:     #0d0d0d;
  --black-2:   #1a1a1a;
  --green:     #1D9E75;
  --green-d:   #0F6E56;
  --green-l:   #E1F5EE;
  --white:     #ffffff;
  --gray-bg:   #f5f9f7;
  --card:      #f0efea;
  --red:       #E24B4A;
  --red-l:     #FCEBEB;
  --amber:     #854F0B;
  --amber-l:   #FAEEDA;
  --muted:     #6b7280;
  --border:    #d8ede6;
  --font-head: Georgia, 'Times New Roman', serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius:    14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  background: var(--gray-bg);
  color: var(--black-2);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select { font-family: inherit; }
a { color: inherit; }

/* Boot loader */
.boot-loader {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--black);
}
.boot-box {
  width: 64px; height: 64px; border-radius: 16px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.55} }

/* ============================================================
   LOGO (réutilisé partout)
   ============================================================ */
.logo-mark {
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
}

/* ============================================================
   ÉCRAN LANGUE
   ============================================================ */
.screen-lang {
  min-height: 100vh; background: var(--black);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 20px; text-align: center; position: relative;
}
.screen-lang .logo-mark { width: 84px; height: 84px; font-size: 30px; margin-bottom: 18px; }
.screen-lang h1 { font-family: var(--font-head); color: var(--white); font-size: 26px; margin-bottom: 4px; }
.screen-lang .tag { color: var(--green); font-size: 12px; letter-spacing: 2px; margin-bottom: 36px; }
.screen-lang .prompt { color: rgba(255,255,255,.6); font-size: 14px; margin-bottom: 18px; }
.lang-btn {
  width: 100%; max-width: 300px; padding: 13px 20px; margin-bottom: 8px;
  border-radius: 10px; font-size: 15px; text-align: left;
  background: #201f1c; color: var(--white); border: 1px solid transparent;
  transition: all .15s;
}
.lang-btn.active { background: var(--green); }
.lang-btn:hover { border-color: var(--green); }
.btn-continue {
  margin-top: 22px; width: 100%; max-width: 300px; padding: 14px;
  border-radius: 10px; background: var(--green); color: var(--white);
  font-weight: 700; font-size: 15px;
}
.btn-continue:hover { background: var(--green-d); }
.screen-lang .footer-note { position: absolute; bottom: 18px; color: rgba(255,255,255,.3); font-size: 11px; }

/* ============================================================
   AUTH (login/register)
   ============================================================ */
.screen-auth { min-height: 100vh; background: var(--gray-bg); display: flex; flex-direction: column; }
.auth-hero {
  background: var(--green); padding: 28px 20px 22px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.auth-hero .logo-mark { width: 52px; height: 52px; font-size: 19px; }
.auth-hero h1 { color: var(--white); font-size: 17px; font-weight: 700; }
.auth-tabs { display: flex; background: var(--white); border-bottom: 1px solid var(--border); }
.auth-tab {
  flex: 1; padding: 13px; font-size: 14px; color: var(--muted); font-weight: 500;
  border-bottom: 2px solid transparent;
}
.auth-tab.active { color: var(--green); border-bottom-color: var(--green); font-weight: 700; }
.auth-body { flex: 1; max-width: 420px; width: 100%; margin: 0 auto; padding: 22px 20px 40px; }
.trial-banner {
  background: var(--green-l); color: var(--green-d); border-radius: 10px;
  padding: 12px 14px; font-size: 13px; margin-bottom: 16px; text-align: center;
}
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--black-2); margin-bottom: 5px; font-weight: 500; }
.field input, .field select {
  width: 100%; padding: 11px 12px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--white); font-size: 14.5px;
  transition: border-color .15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--green); }
.terms-row { display: flex; gap: 9px; align-items: flex-start; margin: 16px 0; }
.terms-row input { margin-top: 3px; accent-color: var(--green); flex-shrink: 0; }
.terms-row label { font-size: 12px; color: var(--muted); line-height: 1.5; }
.terms-row a { color: var(--green); text-decoration: underline; }
.btn-primary {
  width: 100%; padding: 13px; border-radius: 10px; background: var(--green);
  color: var(--white); font-weight: 700; font-size: 15px; transition: background .15s;
}
.btn-primary:hover { background: var(--green-d); }
.btn-primary:disabled { opacity: .5; cursor: default; }
.switch-link { display: block; text-align: center; margin-top: 14px; font-size: 13px; color: var(--green); }
.switch-link, .switch-link * { cursor: pointer !important; }
.pass-check {
  display: flex; align-items: center; gap: 6px; margin-top: 7px;
  font-size: 12.5px; color: var(--black-2); cursor: pointer !important; user-select: none;
}
.pass-check input[type="checkbox"] { cursor: pointer !important; width: 14px; height: 14px; margin: 0; }
.auth-error {
  background: var(--red-l); color: var(--red); padding: 10px 12px; border-radius: 8px;
  font-size: 13px; margin-bottom: 14px; display: none;
}
.auth-error.show { display: block; }
.auth-footer { text-align: center; padding: 16px; font-size: 10.5px; color: var(--muted); }
.auth-footer a { color: var(--green); }

/* ============================================================
   APP SHELL (post-login)
   ============================================================ */
.shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--gray-bg); padding-bottom: 64px; }
.shell-header {
  background: var(--green); padding: 16px 18px; color: var(--white);
}
.shell-header .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.shell-header .logo-mark { width: 30px; height: 30px; font-size: 12px; }
.shell-header .brand-name { font-weight: 700; font-size: 15px; }
.shell-header .welcome { font-size: 12px; color: rgba(255,255,255,.75); }
.screen-content { flex: 1; max-width: 640px; width: 100%; margin: 0 auto; padding: 16px; }

.nav-bottom {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--green);
  display: flex; height: 62px; z-index: 50;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: rgba(255,255,255,.65); font-size: 9.5px; transition: color .15s;
}
.nav-item .ic { font-size: 17px; line-height: 1; }
.nav-item.active { color: var(--white); font-weight: 700; }

/* ============================================================
   STAT CARDS / DASHBOARD
   ============================================================ */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.stat-card { background: var(--card); border-radius: 10px; padding: 10px 6px; text-align: center; }
.stat-card .lbl { font-size: 9.5px; color: var(--muted); margin-bottom: 3px; }
.stat-card .val { font-size: 15px; font-weight: 700; }

.status-banner {
  border-radius: 10px; padding: 11px 14px; font-size: 13px; font-weight: 700;
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.status-banner.ok { background: var(--green-l); color: var(--green-d); }
.status-banner.blocked { background: var(--amber-l); color: var(--amber); }

.progress-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.progress-item { background: var(--white); border: 1px solid var(--border); border-radius: 9px; padding: 8px 12px; }
.progress-item .pi-top { display: flex; justify-content: space-between; font-size: 11.5px; margin-bottom: 5px; }
.progress-item .pi-top .n { color: var(--muted); }
.progress-item .pi-top .v { font-weight: 700; }
.progress-bar-bg { height: 5px; background: var(--gray-bg); border-radius: 3px; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 3px; transition: width .3s; }
.progress-bar-fill.green { background: var(--green); }
.progress-bar-fill.red { background: var(--red); }

.countdown-box {
  background: var(--amber-l); border-radius: 12px; padding: 18px; text-align: center; margin-bottom: 12px;
}
.countdown-box .cd-label { font-size: 12px; color: var(--amber); margin-bottom: 4px; }
.countdown-box .cd-time { font-family: var(--font-head); font-size: 34px; font-weight: 700; color: var(--amber); letter-spacing: 1px; }
.countdown-box .cd-note { font-size: 11px; color: var(--amber); margin-top: 4px; }

.rules-summary { background: var(--card); border-radius: 9px; padding: 9px 12px; font-size: 11.5px; color: var(--muted); margin-bottom: 12px; }

.stake-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.stake-row label { font-size: 13px; }
.stake-row input { width: 90px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); font-size: 14px; }

.wl-buttons { display: flex; gap: 8px; margin-bottom: 16px; }
.wl-btn {
  flex: 1; padding: 15px; border-radius: 10px; font-weight: 700; font-size: 14.5px;
  display: flex; align-items: center; justify-content: center; gap: 6px; transition: opacity .15s;
}
.wl-btn.win { background: var(--green-l); color: var(--green-d); }
.wl-btn.loss { background: var(--red-l); color: var(--red); }
.wl-btn:disabled { opacity: .35; cursor: default; }

.trade-list-title { font-size: 11.5px; color: var(--muted); margin: 14px 0 6px; }
.trade-row {
  display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.trade-row .tr-n { color: var(--muted); width: 24px; }
.trade-row .tr-res { font-weight: 700; width: 60px; }
.trade-row .tr-res.win { color: var(--green-d); }
.trade-row .tr-res.loss { color: var(--red); }
.trade-row .tr-res.neutral { color: var(--muted); }
.trade-row .tr-amt { font-weight: 600; }
.trade-row .tr-time { margin-left: auto; color: var(--muted); font-size: 11.5px; }

/* ============================================================
   RULES SCREEN
   ============================================================ */
.section-title { font-size: 19px; font-weight: 700; margin-bottom: 3px; }
.section-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.rule-block { margin-bottom: 20px; }

.support-card {
  background: var(--gray); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; margin-bottom: 18px;
}
.support-card h3 { font-size: 15px; margin-bottom: 4px; }
.support-card .form-field { width: 100%; margin-top: 10px; margin-bottom: 4px; }
.support-card .btn-primary { margin-top: 10px; }
.star-row { display: flex; gap: 6px; margin: 12px 0; }
.star-pick { font-size: 30px; color: var(--border); cursor: pointer; transition: color .15s, transform .1s; user-select: none; }
.star-pick:hover { transform: scale(1.1); }
.star-pick.filled { color: var(--amber); }
.rules-locked-banner {
  background: var(--amber-l); color: var(--amber);
  border: 1px solid var(--amber); border-radius: 10px;
  padding: 12px 16px; font-weight: 700; font-size: 14px; margin-bottom: 12px;
}
.rule-block .rb-title { font-size: 13px; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.rule-block .rb-desc { font-size: 11.5px; color: var(--muted); margin-bottom: 10px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.toggle {
  width: 40px; height: 22px; border-radius: 12px; background: var(--border); position: relative; transition: background .15s; flex-shrink: 0;
}
.toggle.on { background: var(--green); }
.toggle .knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); transition: left .15s; }
.toggle.on .knob { left: 20px; }
.slider-row { display: flex; align-items: center; gap: 12px; }
.slider-row input[type=range] { flex: 1; accent-color: var(--green); }
.slider-row .slider-val { font-weight: 700; color: var(--green); width: 34px; text-align: center; font-size: 15px; }
.duration-row { display: flex; gap: 10px; align-items: center; }
.duration-row input { width: 56px; padding: 8px; border-radius: 8px; border: 1px solid var(--border); text-align: center; }
.duration-row .du-label { font-size: 11.5px; color: var(--muted); }

/* ============================================================
   HISTORY TABLE
   ============================================================ */
table.hist-table { width: 100%; border-collapse: collapse; font-size: 12.5px; background: var(--white); border-radius: 10px; overflow: hidden; }
table.hist-table th { background: var(--black-2); color: var(--white); padding: 9px 6px; text-align: center; font-weight: 600; font-size: 11px; }
table.hist-table td { padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--border); }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 13.5px; }

/* ============================================================
   REPORT
   ============================================================ */
.report-box {
  background: var(--card); border-radius: 10px; padding: 16px; font-family: 'Courier New', monospace;
  font-size: 12.5px; white-space: pre-wrap; line-height: 1.7; margin-bottom: 12px;
}
.btn-secondary {
  width: 100%; padding: 11px; border-radius: 9px; background: var(--card); color: var(--black-2);
  font-weight: 600; font-size: 13.5px; border: 1px solid var(--border);
}

/* ============================================================
   FORMATION
   ============================================================ */
.chapter-item {
  display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: 13px 14px; margin-bottom: 8px; font-size: 13.5px; font-weight: 500; transition: all .15s;
}
.chapter-item:hover { border-color: var(--green); background: var(--green-l); }
.chapter-item .ch-num { width: 26px; height: 26px; border-radius: 7px; background: var(--green-l); color: var(--green-d); font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chapter-item.risk .ch-num { background: var(--amber-l); color: var(--amber); }

/* Chapter reader overlay */
.reader-overlay {
  position: fixed; inset: 0; background: var(--gray-bg); z-index: 100; display: none; flex-direction: column;
}
.reader-overlay.show { display: flex; }
.reader-header { background: var(--green); color: var(--white); padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.reader-header button { color: var(--white); font-size: 20px; }
.reader-header h2 { font-size: 15px; font-weight: 700; }
.reader-body { flex: 1; overflow-y: auto; padding: 18px 18px 40px; max-width: 640px; margin: 0 auto; width: 100%; }
.reader-body h3 { font-family: var(--font-head); font-size: 17px; color: var(--green-d); margin: 20px 0 8px; }
.reader-body h3:first-child { margin-top: 0; }
.reader-body p { font-size: 14px; margin-bottom: 10px; line-height: 1.7; }
.reader-body ul { margin: 0 0 12px 18px; }
.reader-body li { font-size: 13.5px; margin-bottom: 5px; line-height: 1.6; }
.callout { border-radius: 10px; padding: 12px 14px; font-size: 13px; margin: 12px 0; line-height: 1.6; }
.callout.tip { background: var(--green-l); color: var(--green-d); }
.callout.warn { background: var(--amber-l); color: var(--amber); }
.hr-soft { border: none; border-top: 1px solid var(--border); margin: 18px 0; }

/* ============================================================
   SETTINGS
   ============================================================ */
.account-card { background: var(--card); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.account-card .ac-name { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.account-card .ac-email { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.account-card .ac-status { font-size: 12.5px; font-weight: 600; }
.lang-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.lang-pick { display: flex; gap: 6px; }
/* Codes de langue plutôt que drapeaux : Windows n'embarque pas les drapeaux
   dans ses polices et affichait le code pays à la place. Le style est adapté
   au texte — taille réduite, graisse, et couleur inversée sur l'état actif,
   sans quoi le libellé serait illisible sur fond vert. */
.lang-pick button { width: 42px; height: 38px; border-radius: 9px; font-size: 13px;
  font-weight: 700; letter-spacing: .3px; background: var(--card); color: var(--black-2);
  border: 1px solid var(--border); }
.lang-pick button.active { background: var(--green); color: #fff; border-color: var(--green); }
.pay-btn {
  display: block; width: 100%; padding: 12px; border-radius: 9px; text-align: center;
  font-weight: 600; font-size: 13.5px; margin-bottom: 8px; background: var(--green-l); color: var(--green-d);
}
.legal-links { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.legal-links a { font-size: 12.5px; color: var(--muted); text-decoration: underline; }
.btn-danger { background: var(--red-l); color: var(--red); }
.footer-legal { text-align: center; font-size: 10px; color: var(--muted); padding: 20px 0 10px; }

@media (min-width: 720px) {
  .nav-bottom { display: none; }
  .shell { flex-direction: row; padding-bottom: 0; }
  .shell-header { display: none; }
  .side-nav {
    width: 220px; background: var(--black); color: var(--white); display: flex; flex-direction: column;
    padding: 22px 14px; flex-shrink: 0; min-height: 100vh;
  }
  .side-nav .brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 20px; }
  .side-nav .logo-mark { width: 34px; height: 34px; font-size: 13px; }
  .side-nav .brand-name { font-weight: 700; font-size: 14px; }
  .side-nav .nav-item {
    flex-direction: row; justify-content: flex-start; gap: 10px; padding: 11px 10px; border-radius: 8px;
    color: rgba(255,255,255,.6); font-size: 13px;
  }
  .side-nav .nav-item.active { background: rgba(29,158,117,.18); color: var(--white); }
  .screen-content { max-width: 720px; padding: 28px; }
}

/* Bannière d'installation de l'extension — visible tant que l'extension
   n'est pas installée et connectée, masquée automatiquement ensuite. */
.ext-banner{display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  background:var(--amber-bg,#FAEEDA);border:1px solid rgba(133,79,11,.2);
  border-radius:12px;padding:14px 16px;margin-bottom:18px}
.eb-txt{flex:1;min-width:200px;display:flex;flex-direction:column;gap:3px}
.eb-txt strong{font-size:14px;color:var(--amber,#854F0B)}
.eb-txt span{font-size:12.5px;color:var(--amber,#854F0B);opacity:.85}
.eb-btn{flex-shrink:0;padding:9px 16px;border-radius:9px;background:var(--green);
  color:#fff;font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap}
.eb-btn:hover{background:var(--green-d)}

/* Indication sous le champ code formateur */
.field-hint{font-size:11.5px;color:var(--muted);margin-top:5px;line-height:1.4}

/* ------------------------------------------------------------
   Indicateur d'état de l'extension
   Visible en permanence, y compris quand tout va bien : sans lui,
   l'utilisateur ne peut pas distinguer « protection active » de
   « la bannière ne s'est pas affichée ».
   ------------------------------------------------------------ */
.ext-dot{display:inline-flex;align-items:center;gap:8px;margin-bottom:10px;
  padding:5px 11px;border-radius:20px;font-size:12.5px;font-weight:600;
  background:var(--gray);border:1px solid var(--border);cursor:default}
.ed-point{width:9px;height:9px;border-radius:50%;flex-shrink:0}
.ext-dot.dot-ok   .ed-point{background:var(--green)}
.ext-dot.dot-warn .ed-point{background:#F5B301}
.ext-dot.dot-bad  .ed-point{background:var(--red)}
.ext-dot.dot-info .ed-point{background:#3B82F6}
.ext-dot.dot-ok   {color:var(--green-d)}
.ext-dot.dot-warn {color:#8A6200}
.ext-dot.dot-bad  {color:var(--red)}
.ext-dot.dot-info {color:#1D4ED8}

/* Sur écran large, le libellé n'apparaît qu'au survol : l'infobulle native
   suffit et l'interface reste sobre. Sur mobile, où le survol n'existe pas,
   le texte est écrit en clair — sinon il ne serait jamais lu. */
@media (min-width: 721px){
  .ext-dot .ed-txt{display:none}
  .ext-dot{padding:6px;gap:0}
  .ext-dot:hover .ed-txt{display:inline;margin-left:8px}
  .ext-dot:hover{padding:5px 11px}
}

/* Bannière d'information (mobile) : ton neutre, pas d'alerte —
   l'utilisateur n'a rien à corriger. */
.ext-banner.eb-info{background:#EFF6FF;border-color:#BFDBFE}
.ext-banner.eb-info .eb-txt strong{color:#1D4ED8}
.ext-banner.eb-info .eb-txt span{color:#1E40AF}
.ext-banner.eb-info .eb-txt em{color:#3B82F6;font-size:12px;font-style:italic;margin-top:3px}


/* Précision sur les navigateurs pris en charge : sans elle, un utilisateur
   sous Firefox ou Opera voit un point rouge sans comprendre pourquoi. */
.eb-note{font-size:11.5px;opacity:.72;margin-top:2px}

/* Écran de vérification de l'adresse email */
.verify-box{text-align:center;padding:8px 4px}
.verify-icon{width:56px;height:56px;margin:0 auto 16px;border-radius:50%;
  background:var(--green-l);color:var(--green-d);font-size:26px;
  display:flex;align-items:center;justify-content:center}
.verify-box h2{font-size:17px;margin-bottom:8px}
.verify-box p{font-size:13.5px;color:var(--muted);line-height:1.5;margin-bottom:4px}
.verify-mail{font-weight:700;color:var(--black);font-size:14px;margin:8px 0 14px}
.verify-tips{background:var(--card);border-radius:10px;padding:12px;margin-bottom:14px}
.verify-tips p{font-size:12.5px;margin:0 0 4px}
.verify-tips p:last-child{margin-bottom:0}
.verify-msg{font-size:13px;margin-bottom:12px;min-height:18px}
.verify-msg.ok{color:var(--green-d)}
.verify-msg.err{color:var(--red)}

/* Champ de saisie du code : chiffres espacés et centrés, comme sur les
   écrans de confirmation habituels. */
.code-input{width:100%;max-width:240px;margin:0 auto 12px;display:block;
  text-align:center;font-size:26px;font-weight:700;letter-spacing:10px;
  padding:14px 10px;border-radius:12px;border:1.5px solid var(--border);
  background:var(--card);color:var(--black);font-family:inherit}
.code-input:focus{outline:none;border-color:var(--green);
  box-shadow:0 0 0 3px rgba(29,158,117,.14)}
.code-input::placeholder{color:var(--muted);opacity:.45;letter-spacing:10px}

/* Champ de saisie du code : chiffres espacés et centrés, comme sur les
   écrans de vérification des grands services. */
.verify-input{width:100%;max-width:220px;margin:0 auto 14px;display:block;
  text-align:center;font-size:26px;font-weight:700;letter-spacing:8px;
  padding:12px 8px;border-radius:12px;border:2px solid var(--border);
  background:var(--card);color:var(--black);font-family:inherit}
.verify-input:focus{outline:none;border-color:var(--green);
  background:var(--white)}
.verify-input::placeholder{color:var(--border);letter-spacing:8px}

/* Bouton « Bientôt disponible » : visuellement inactif, sans être caché.
   L'offre reste connue, mais on ne laisse pas cliquer dans le vide. */
.pay-btn-soon{background:var(--card);color:var(--muted);cursor:default}
.pay-btn-paid{background:var(--white);color:var(--green-d);
  border:1.5px solid var(--green);width:100%;font-weight:600}
.pay-btn-paid:hover{background:var(--green-l)}

/* Formulaire de déclaration de paiement */
.paid-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:900;
  display:flex;align-items:center;justify-content:center;padding:18px}
.paid-box{background:var(--white);border-radius:16px;padding:22px;
  width:100%;max-width:400px;max-height:88vh;overflow-y:auto}
.paid-box h3{font-size:17px;margin-bottom:6px}
.paid-intro{font-size:12.5px;color:var(--muted);margin-bottom:16px;line-height:1.5}
.paid-label{display:block;font-size:12px;font-weight:600;margin:12px 0 5px}
.paid-fixed{padding:10px 12px;border-radius:9px;background:var(--card);
  font-size:13px;font-weight:600;color:var(--black)}
.paid-field{width:100%;padding:10px 12px;border-radius:9px;
  border:1px solid var(--border);font-size:13px;font-family:inherit;
  background:var(--white);color:var(--black)}
.paid-hint{font-size:11.5px;color:var(--muted);margin-top:5px;line-height:1.4}
.paid-msg{font-size:12.5px;margin-top:12px;min-height:16px}
.paid-msg.ok{color:var(--green-d)}
.paid-actions{display:flex;gap:10px;margin-top:16px}
.paid-actions button{flex:1}

/* Mention « paiement signalé », visible tant que le compte n'est pas activé */
.paid-pending{display:flex;align-items:flex-start;gap:12px;text-align:left;
  background:var(--amber-bg,#FAEEDA);border:1px solid rgba(133,79,11,.2);
  border-radius:12px;padding:16px}
.pp-dot{width:9px;height:9px;border-radius:50%;background:#F5B301;
  margin-top:5px;flex-shrink:0}
.paid-pending strong{display:block;font-size:14px;color:var(--amber,#854F0B);
  margin-bottom:3px}
.paid-pending span{font-size:12.5px;color:var(--amber,#854F0B);opacity:.85;
  line-height:1.45}

/* Logo de l'écran d'accueil. Coins arrondis pour s'accorder au reste de
   l'interface, et taille adaptée aux petits écrans où il occuperait
   sinon toute la hauteur. */
.logo-accueil{width:132px;height:132px;border-radius:26px;display:block;
  margin:0 auto 18px;object-fit:contain;
  box-shadow:0 10px 30px rgba(0,0,0,.28)}
@media(max-height:680px){
  .logo-accueil{width:100px;height:100px;border-radius:20px;margin-bottom:14px}
}
