/*
=============================================================================
 MADAPAY EXCHANGE - STYLE.CSS
 Version organisée / sauvegarde
 Base: Dark UI + Green / Amber theme
 Responsive: Mobile / Tablet / Desktop
=============================================================================

Sections principales:
  1. Variables & Base
  2. Layout & Cards
  3. Forms & Buttons
  4. Client Exchange Interface
  5. Admin Panel
  6. Tables
  7. Landing / Services
  8. KYC & Upload
  9. Header / Navigation
 10. Profile & Mobile Money
 11. History / Modals
 12. Footer
 13. Responsive Media Queries

=============================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --bg: #0b0f14;
  --card: #121a24;
  --card-2: #0f151d;
  --border: #1e2833;
  --text: #e7ecef;
  --muted: #7c8894;
  --green: #00d97e;
  --green-dim: #0a3d2c;
  --amber: #f2b705;
  --amber-dim: #4a3a06;
  --danger: #ff5c5c;
  --danger-dim: #4a1616;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 32px 16px 64px;
}

.wrap {
  width: 100%;
  max-width: 440px;
  flex: 1 0 auto;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
}

.brand .mark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--green);
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
  flex-shrink: 0;
}

.brand .sub {
  color: var(--muted);
  font-size: 13px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
}

.tabs {
  display: flex;
  gap: 4px;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}

.tabs button {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.tabs button.active {
  background: var(--green);
  color: #04120c;
}

label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 18px 0 6px;
}

label.first { margin-top: 0; }

select, input {
  width: 100%;
  background: var(--card-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 16px;
  font-family: 'JetBrains Mono', monospace;
  outline: none;
}

select:focus, input:focus {
  border-color: var(--green);
}

input::placeholder { color: #4a5560; font-family: 'Inter', sans-serif; }

.hint {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

.rate-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  margin: 18px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
}

.methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.methods label.method {
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
}

.methods input[type="radio"] { display: none; }

.method-box {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

input[type="radio"]:checked + .method-box {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(242, 183, 5, 0.08);
}

.btn {
  width: 100%;
  margin-top: 24px;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: var(--green);
  color: #04120c;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 10px;
  display: none;
}

/* ---- Ecran d'attente / confirmation ---- */

.pending-card {
  display: none;
}

.send-info {
  margin-bottom: 14px;
  background: var(--amber-dim);
  border: 1px solid var(--amber);
  border-radius: 10px;
  padding: 4px 14px;
}

.send-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
}

.send-info-row + .send-info-row {
  border-top: 1px dashed rgba(242, 183, 5, 0.35);
}

.send-info-label {
  color: var(--amber);
  font-size: 12.5px;
  font-weight: 600;
}

.send-info-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  word-break: break-all;
  text-align: right;
}

.value-with-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  min-width: 0;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

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

.contact-row .k { color: var(--muted); }
.contact-row .v { font-family: 'JetBrains Mono', monospace; font-weight: 600; }

.amounts {
  margin: 18px 0;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

.amounts .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.amounts .row .label { color: var(--muted); font-size: 13px; }
.amounts .row .value { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 16px; }
.amounts .row .value.usdt { color: var(--green); }
.amounts .row .value.mga { color: var(--amber); }

.amounts .row.payment-row { padding-bottom: 2px; }

.payment-table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 6px;
}

.payment-table td {
  padding: 8px 4px;
  font-size: 13.5px;
  border-bottom: 1px dashed var(--border);
}

.payment-table tr:last-child td { border-bottom: none; }

.payment-table td:first-child {
  color: var(--muted);
  font-weight: 600;
  width: 38%;
}

.payment-table td:last-child {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  font-weight: 700;
  text-align: right;
  word-break: break-all;
}

.countdown-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 28px 0 10px;
}

.ring {
  position: relative;
  width: 140px;
  height: 140px;
}

.ring svg { transform: rotate(-90deg); width: 140px; height: 140px; }

.ring circle {
  fill: none;
  stroke-width: 8;
}

.ring .track { stroke: var(--border); }

.ring .progress {
  stroke: var(--green);
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
}

.ring .center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 30px;
}

.ring .center.symbol {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
}

.status-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.status-text.pending { color: var(--muted); }
.status-text.ok { color: var(--green); }
.status-text.cancelled { color: var(--danger); }

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pill.pending { background: var(--card-2); color: var(--muted); border: 1px solid var(--border); }
.pill.accepted { background: var(--green-dim); color: var(--green); }
.pill.rejected, .pill.expired { background: var(--danger-dim); color: var(--danger); }

/* ---- Admin panel ---- */

.admin-wrap { max-width: 760px; }

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.admin-contact {
  font-size: 12px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  text-align: right;
}

.req-list { display: flex; flex-direction: column; gap: 12px; }

.req-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.req-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.req-name { font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.req-time { color: var(--muted); font-size: 11px; margin-top: 2px; }

.req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  font-size: 13px;
  margin-bottom: 14px;
}

.req-grid .k { color: var(--muted); }
.req-grid .v { font-family: 'JetBrains Mono', monospace; font-weight: 600; }

.req-actions { display: flex; gap: 10px; }

.req-actions button {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  cursor: pointer;
}

.req-actions .accept { background: var(--green); color: #04120c; }
.req-actions .reject { background: var(--danger); color: #2a0808; }

.empty {
  color: var(--muted);
  text-align: center;
  padding: 40px 0;
  font-size: 14px;
}

/* ---- Tableau des demandes (retraits / dépôts) ---- */

.req-table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  padding: 6px 4px;
}

.req-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 720px;
}

.req-table thead th {
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--text);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.req-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.req-table tbody tr.rt-row:hover { background: var(--card-2); }

.req-table tbody tr.rt-detail-row td {
  background: var(--card-2);
  padding: 14px 16px 18px;
}

.req-table tbody tr:last-child td { border-bottom: none; }

.rt-id {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  white-space: nowrap;
}

.rt-caret {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  margin-right: 6px;
  padding: 2px 4px;
}

.rt-caret:hover { color: var(--text); }

.rt-client { font-weight: 700; font-family: 'Space Grotesk', sans-serif; white-space: nowrap; }
.rt-sub { color: var(--muted); font-size: 11px; margin-top: 2px; white-space: nowrap; }

.rt-amount {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  white-space: nowrap;
}

.rt-actions { display: flex; gap: 8px; align-items: center; }

.rt-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.rt-valider { background: var(--green); color: #04120c; }
.rt-valider:hover { filter: brightness(1.08); }

.rt-refuser {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
  padding: 7px 14px;
}
.rt-refuser:hover { background: var(--danger-dim); }

.rt-del {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 7px 10px;
}
.rt-del:hover { color: var(--danger); border-color: var(--danger); }

.rt-row.rt-highlight { outline: 2px solid var(--green); outline-offset: -1px; }

@media (max-width: 720px) {
  .req-table { min-width: 640px; }
}

/* ---- Onglets de formulaire (client) : afficher/masquer les panneaux ---- */

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---- Bouton déconnexion (admin) ---- */

.link-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 0 0;
  font-family: 'Inter', sans-serif;
}

.link-btn:hover { color: var(--text); }

#pushNotifToggle.active { color: var(--green, #16c784); }

/* ---- Rangée d'onglets + bouton effacer historique (admin) ---- */

.admin-tabs-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-tabs {
  margin-bottom: 0;
  flex: 1;
}

.btn.danger-outline {
  width: auto;
  margin-top: 0;
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 10px 16px;
  font-size: 13px;
  white-space: nowrap;
}

.btn.danger-outline:hover {
  background: rgba(255, 92, 92, 0.08);
}

.btn.secondary.cancel-btn {
  border-color: var(--danger);
  color: var(--danger);
}

.btn.secondary.cancel-btn:hover {
  background: rgba(255, 92, 92, 0.08);
}

/* ---- Page d'accueil (landing) ---- */

.landing-card {
  text-align: center;
}

.landing-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
}

a.btn {
  display: block;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}

a.btn.secondary { margin-top: 12px; }

/* ---- Upload de documents (inscription / KYC) ---- */

.upload-box {
  background: var(--card-2);
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.upload-box:hover { border-color: var(--green); }

.upload-box.filled { border-style: solid; border-color: var(--green); }

.upload-text {
  color: var(--muted);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
}

.upload-preview {
  display: block;
  max-width: 100%;
  max-height: 160px;
  margin: 10px auto 0;
  border-radius: 8px;
  object-fit: cover;
}

/* ---- Navigation des pages de service (Binance / PayPal) ---- */

.service-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

/* ---- Grille des services (tableau de bord client) ---- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

.service-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.service-card:hover { border-color: var(--green); transform: translateY(-2px); }

.service-card.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.service-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
  padding: 3px;
  flex-shrink: 0;
}

.service-desc {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 12px;
  min-height: 32px;
}

/* ---- Onglets principaux de l'admin (Demandes / Inscriptions) ---- */

.admin-main-tabs { margin-bottom: 20px; }

.badge {
  display: inline-block;
  background: var(--danger);
  color: #2a0808;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  margin-left: 6px;
}

.main-panel { display: none; }
.main-panel.active { display: block; }

/* ---- Badge de service sur les cartes de demandes (admin) ---- */

.svc-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--amber);
  border: 1px solid var(--amber-dim);
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ---- Bot anti-fraude : bandeau d'alerte sur une demande flaggée ---- */
.fraud-warning {
  margin: 8px 0;
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.35);
  border-radius: 8px;
}

/* ---- Photos KYC dans le panneau admin ---- */

.kyc-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.kyc-image-item .k {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
}

.kyc-image-item img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: zoom-in;
}

/* ---- Bouton "Historique" (client) dans l'en-tête ---- */

.history-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.history-btn .dot {
  display: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 2px rgba(242, 183, 5, 0.25);
}

.history-btn.has-pending .dot { display: inline-block; }

/* ---- Modale "Historique de mes opérations" (client) ---- */

.history-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  align-items: flex-start;
  justify-content: center;
  padding: 70px 16px 24px;
  overflow-y: auto;
}

.history-modal.open { display: flex; }

.history-panel {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.history-header h3 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
}

.history-close {
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

.history-close:hover { color: var(--text); }

.history-actions {
  display: flex;
  justify-content: flex-end;
  margin: -8px 0 14px;
}

.history-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.history-clear-btn:hover {
  color: #f87171;
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.08);
}

.history-clear-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 70vh;
  overflow-y: auto;
}

.history-item {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  transition: border-color 0.15s ease;
}

.history-item:hover { border-color: var(--green); }

.history-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.history-item-type {
  font-weight: 700;
  font-size: 13px;
}

.history-item-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
}

.history-item-date {
  font-size: 11px;
  color: var(--muted);
}

.pill.pending.live {
  color: var(--amber);
  border-color: var(--amber);
  animation: historyPulse 1.4s ease-in-out infinite;
}

@keyframes historyPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ---- Modale d'agrandissement des photos KYC ---- */

.img-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.img-modal.open {
  display: flex;
}

.img-modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.img-modal-close {
  position: absolute;
  top: 18px;
  right: 28px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

/* ---- Animation de l'anneau pendant la vérification KYC ---- */

@keyframes spin-ring {
  from { transform: rotate(-90deg); }
  to { transform: rotate(270deg); }
}

.ring .progress.spin {
  animation: spin-ring 2s linear infinite;
  stroke-dasharray: 90 190;
  transform-origin: 70px 70px;
}

@media (max-width: 480px) {
  .service-grid { grid-template-columns: 1fr; }
  .kyc-images { grid-template-columns: repeat(3, 1fr); }
  /* #ratesGridWithdraw/#ratesGridDeposit ont un style inline
     (grid-template-columns: repeat(3, 1fr)) plus prioritaire que
     n'importe quelle règle .req-grid classique : on doit forcer
     avec !important pour que ça passe bien sur mobile/tablette étroite. */
  #ratesGridWithdraw, #ratesGridDeposit { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 360px) {
  #ratesGridWithdraw, #ratesGridDeposit { grid-template-columns: 1fr !important; }
}

/* ---- Sous-titres des sections de taux (retrait / dépôt) ---- */

.rates-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.rates-subtitle .hint {
  display: inline;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  text-transform: none;
  margin-left: 4px;
}

/* ==========================================================================
   Fond d'arrière-plan — Logo MadaPayExchange (assets/madapay-bg.png)
   Image officielle rognée : seul le bloc logo + "MadaPay Exchange" est
   conservé (bandeaux services/badges retirés), bords fondus en transparence.
   Ajouté sur toutes les pages client (index, login, register, services,
   binance, paypal, wise, payoneer, redopay). Le panneau admin
   (admin.html / admin-login.html) n'est volontairement PAS concerné.
   ========================================================================== */

body.money-bg {
  position: relative;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 650px at 6% -8%, rgba(0, 217, 126, 0.14), transparent 55%),
    radial-gradient(ellipse 820px 780px at 102% 12%, rgba(242, 183, 5, 0.12), transparent 52%),
    url("assets/madapay-bg.png");
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed;
  background-position: top left, top right, center 130px;
  background-size: auto, auto, min(560px, 80vw) auto;
}

/* Filigrane de fond sur mobile : "fixed" est peu fiable sur Safari iOS
   (peut provoquer un chevauchement avec le texte), et le logo doit rester
   discret sur petit écran pour ne pas gêner la lecture. */
@media (max-width: 600px) {
  body.money-bg {
    background-attachment: scroll, scroll, scroll;
    background-position: top left, top right, center 260px;
    background-size: auto, auto, min(260px, 60vw) auto;
  }
}

/* Voile léger : le logo est déjà atténué dans l'image elle-même
   (filigrane), donc ce voile sert juste à unifier les couleurs. */
body.money-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,15,20,0.55) 0%, rgba(11,15,20,0.60) 40%, rgba(11,15,20,0.78) 75%, rgba(11,15,20,0.88) 100%);
  pointer-events: none;
  z-index: 0;
}

body.money-bg .wrap {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Compatibilité mobile / tablette / bureau
   ========================================================================== */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

.wrap,
.admin-wrap {
  width: 100%;
}

@media (max-width: 380px) {
  body { padding: 20px 12px 48px; }
  .card { padding: 18px; }
  .methods { grid-template-columns: 1fr 1fr; }
  .req-grid { grid-template-columns: 1fr; }
}

@media (min-width: 700px) {
  .wrap { max-width: 460px; }
  .admin-wrap { max-width: 820px; }
}

@media (min-width: 1200px) {
  body { padding-top: 56px; }
}

/* ==========================================================================
   En-tête fixe du site — logo MadaPayExchange à gauche,
   navigation / onglets dynamiques à droite.
   Présent sur toutes les pages client. Absent du panneau admin.
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  background: transparent;
  border-bottom: none;
}

.site-header-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.site-header-logo {
  height: 46px;
  width: auto;
  display: block;
}

.site-header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-height: 22px;
}

.site-header-nav .link-btn {
  margin: 0;
  font-size: 12px;
  white-space: nowrap;
}

.site-header-nav .hint {
  margin: 0;
  white-space: nowrap;
}

body.has-site-header {
  padding-top: 84px;
  padding-bottom: 0;
}

@media (max-width: 480px) {
  .site-header { padding: 8px 14px; gap: 10px; }
  .site-header-logo { height: 36px; }
  .site-header-nav { gap: 10px; }
  body.has-site-header { padding-top: 66px; padding-bottom: 0; }
}

/* ==========================================================================
   Icônes de navigation dans l'en-tête (Retour aux services / Historique /
   Déconnexion / statut de connexion) — remplace les anciens liens texte.
   Bloc CSS isolé, n'affecte aucune autre règle existante (.link-btn reste
   inchangée et continue d'être utilisée ailleurs, ex. panneau admin).
   ========================================================================== */

.nav-icon-btn {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #121a24;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  color: #eef2f5;
  text-decoration: none;
  transition: transform .15s ease;
}
.nav-icon-btn:hover { color: #eef2f5; transform: scale(1.08); }
.nav-icon-btn svg { width: 15px; height: 15px; }

/* Historique : le petit point orange (annonce une opération en attente)
   se repositionne en badge, au lieu d'être à côté du texte. */
.nav-icon-btn.history-btn .dot {
  display: none;
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 2px #0b0f14;
}
.nav-icon-btn.history-btn.has-pending .dot { display: block; }

/* Statut "Connecté" (page /services) : simple pastille verte à la place
   du texte "Connecté : <nom>" (le nom reste consultable en survol/tooltip,
   et il est de toute façon déjà affiché à côté de l'avatar). */
.nav-status-dot {
  width: 14px;
  height: 14px;
  cursor: default;
  background: rgba(0, 217, 126, 0.15);
}
.nav-status-dot:hover { transform: none; }
.nav-status-dot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00d97e;
  box-shadow: 0 0 0 2px rgba(0, 217, 126, 0.35);
}

@media (max-width: 480px) {
  .nav-icon-btn { width: 28px; height: 28px; }
  .nav-icon-btn svg { width: 13px; height: 13px; }
  .nav-status-dot { width: 12px; height: 12px; }
}

/* ---- Avatar client (photo de profil ronde) dans l'en-tête du site ---- */

.client-avatar-wrap {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.client-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: var(--text);
}

.client-avatar-circle {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: visible;
  flex-shrink: 0;
  border: 2px solid var(--green);
  background: var(--card-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-avatar-circle img,
.client-avatar-circle > .client-avatar-initial {
  border-radius: 50%;
}

.client-avatar-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--bg, #0d1117);
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-avatar-badge svg {
  width: 8px;
  height: 8px;
}

.client-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.client-avatar-initial {
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
}

.client-avatar-name {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {
  .client-avatar-name { display: none; }
}

/* ---- Modale : changer la photo de profil / mot de passe oublié ---- */

.simple-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.simple-modal.open {
  display: flex;
}

.simple-modal-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  width: 100%;
  max-width: 360px;
  max-height: 90vh;
  overflow-y: auto;
}

.simple-modal-box h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.avatar-modal-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 2px solid var(--green);
  background: var(--card-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-modal-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-modal-preview .client-avatar-initial {
  font-size: 32px;
}

.simple-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.simple-modal-actions .btn,
.simple-modal-actions .btn.secondary {
  flex: 1;
  margin-top: 0;
}

/* ---- Modale : Mobile Money par défaut & carnet d'adresses (design carte) ---- */

.simple-modal-box.mm-modal {
  max-width: 430px;
  max-height: 88vh;
  overflow-y: auto;
}

.mm-modal-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.mm-modal-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--green-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.mm-modal-head h3 { margin: 0 0 5px; }
.mm-modal-head .hint { margin: 0; line-height: 1.5; }

.mm-section {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.mm-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}

.mm-section-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.mm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mm-modal select,
.mm-modal input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  margin-bottom: 10px;
}

.mm-modal .mm-row select,
.mm-modal .mm-row input { margin-bottom: 0; }

.mm-modal select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c8894' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 32px;
  cursor: pointer;
}

.mm-modal select:focus,
.mm-modal input:focus { border-color: var(--green); }

.mm-modal input::placeholder { color: #4a5560; }

.mm-btn.btn.secondary {
  margin-top: 2px;
  width: 100%;
  border-color: var(--green);
  color: var(--green);
}

.mm-btn.btn.secondary:hover { background: var(--green-dim); }

.mm-fav-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }

.mm-fav-empty { color: var(--muted); font-size: 12px; padding: 4px 0 0; }

.mm-fav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.mm-fav-badge {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--green-dim);
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}

.mm-fav-info { flex: 1; min-width: 0; }

.mm-fav-label {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-fav-sub {
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-fav-remove {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
}

.mm-fav-remove:hover { border-color: var(--danger); color: var(--danger); }

@media (max-width: 480px) {
  .mm-row { grid-template-columns: 1fr; }
}

/* ---- Numéros Mobile Money du client, en attente de validation admin
   (voir openFavoritesModal dans client-header.js) : une carte par
   opérateur (Orange Money / MVola / Airtel Money), avec logo, champs
   verrouillés selon le statut, et badge d'état. ---- */

.mm-op-card {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px 16px;
  margin-bottom: 12px;
}

.mm-op-card:last-of-type { margin-bottom: 0; }

.mm-op-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.mm-op-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: contain;
  background: var(--card);
  border: 1px solid var(--border);
  flex-shrink: 0;
  padding: 2px;
}

.mm-op-title span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
}

.mm-op-card input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  margin-bottom: 9px;
  box-sizing: border-box;
}

.mm-op-card input:last-of-type { margin-bottom: 0; }
.mm-op-card input:focus { border-color: var(--green); }
.mm-op-card input::placeholder { color: #4a5560; }

.mm-op-card input:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.02);
}

.mm-op-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
  flex-wrap: wrap;
}

.mm-op-footer .btn.secondary.mm-save-btn {
  width: auto;
  margin: 0;
  padding: 9px 16px;
  font-size: 13px;
  border-color: var(--green);
  color: var(--green);
}

.mm-op-footer .btn.secondary.mm-save-btn:hover { background: var(--green-dim); }

.mm-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.4;
}

.mm-status.pending { background: rgba(255, 193, 7, 0.15); color: #ffc107; }
.mm-status.approved { background: rgba(23, 201, 100, 0.15); color: #17c964; }
.mm-status.rejected { background: rgba(255, 107, 107, 0.15); color: #ff6b6b; }

.mm-reason {
  width: 100%;
  margin-top: 8px;
  font-size: 12px;
  color: #ff6b6b;
  line-height: 1.45;
}

/* ==========================================================================
   Pied de page du site — à propos, contact / support, crédit développeur.
   Présent sur toutes les pages client. Absent du panneau admin.
   ========================================================================== */

.site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 20px;
  padding: 18px 20px 14px;
  background: none;
}

.site-footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.site-footer-about {
  flex: 0 1 auto;
  width: 100%;
}

.site-footer-about h4 {
  text-align: center;
}

.site-footer-contact {
  flex: 0 1 auto;
  width: 100%;
  text-align: center;
}

.site-footer-contact ul {
  align-items: center;
}

.site-footer-contact li {
  flex-direction: row;
  justify-content: center;
}

.site-footer-credit {
  flex-basis: 100%;
  width: 100%;
}

.site-footer-inner h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 10px;
}

.site-footer-about p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
  margin: 0;
}

.site-footer-contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
}

.site-footer-contact li a {
  color: var(--text);
  text-decoration: none;
}

.site-footer-contact li a:hover {
  color: var(--green);
}

.site-footer-contact .ficon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--green-dim);
  color: var(--green);
}

.site-footer-contact .ficon svg {
  width: 16px;
  height: 16px;
}

.site-footer-credit {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  letter-spacing: 0.01em;
}

.footer-legal-links {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 11.5px;
}

.footer-legal-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: var(--green);
  text-decoration: underline;
}

.footer-legal-links .sep {
  color: var(--border);
}

.site-footer-contact .ficon.ficon-apk {
  padding: 4px;
  overflow: hidden;
}

.site-footer-contact .ficon-apk img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.footer-apk-link {
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-apk-link .apk-name {
  color: var(--green);
  font-weight: 700;
}

.footer-apk-link .apk-hint {
  color: var(--muted);
  font-size: 11.5px;
}

/* ---- Pages légales (confidentialité, cookies) ---- */

.legal-updated {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0 0 20px;
}

.legal-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 26px 0 10px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 12px;
}

.legal-content ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.legal-content li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 6px;
}

.legal-content strong {
  color: var(--text);
}

.legal-content a {
  color: var(--green);
}

.site-footer-credit b {
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

/* Marque d'auteur intégrée au code source (non affichée visuellement,
   ne pas supprimer : voir le commentaire en tête de chaque fichier HTML). */
.credit-mark {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 700px) {
  .site-footer-inner {
    max-width: 720px;
  }
}

/* Bascule afficher / masquer le mot de passe */
.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 0;
}

.password-toggle:hover {
  color: var(--green);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.password-toggle .icon-eye-off {
  display: none;
}

.password-toggle.is-visible .icon-eye {
  display: none;
}

.password-toggle.is-visible .icon-eye-off {
  display: block;
}

/* ==========================================================================
   Bouton "copier" (email / numéro) — footer, pages légales, écran d'envoi
   lors d'un dépôt/retrait. Voir copy-utils.js pour la logique JS.
   ========================================================================== */

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card-2);
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  vertical-align: middle;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.copy-btn:hover { color: var(--green); border-color: var(--green); }

.copy-btn svg { width: 13px; height: 13px; display: block; }

.copy-btn .mp-icon-check { display: none; }

.copy-btn.mp-copied {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-dim);
}

.copy-btn.mp-copied .mp-icon-copy { display: none; }
.copy-btn.mp-copied .mp-icon-check { display: block; }

.send-info-value .copy-btn,
.copy-inline-wrap .copy-btn {
  margin-left: 8px;
}

/* ===========================================================
   Bandeau de présentation MadaPayExchange — affiché à côté
   des modales de dépôt / retrait sur les pages de service.
   (Ajout — n'affecte aucun style existant ci-dessus.)
   =========================================================== */

.mp-page-layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 36px;
  width: 100%;
  max-width: 980px;
  flex: 1 0 auto;
  flex-wrap: wrap-reverse;
  min-width: 0;
}

.mp-page-layout > .wrap {
  max-width: 440px;
  flex: 1 1 380px;
  min-width: 0;
}

.mp-promo {
  flex: 1 1 420px;
  max-width: 460px;
  background: none;
  border: none;
  border-radius: 0;
  padding: 34px 32px;
  position: sticky;
  top: 28px;
  min-width: 0;
  box-sizing: border-box;
}

.mp-promo-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 14px;
}

.mp-promo-title .mp-promo-highlight {
  color: var(--green);
}

.mp-promo-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.mp-promo-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* ---- Bloc confiance : moyens acceptés / disponibilité / avis Trustpilot ---- */

.mp-promo-trust {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 22px;
  margin-bottom: 28px;
  border-top: 1px dashed var(--border);
}

.mp-promo-accept-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 12px;
}

.mp-promo-accept-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.accept-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.accept-badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  display: inline-block;
}

.accept-badge .brand-icon {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.accept-orange { color: #ff7a1a; }
.accept-orange .dot { background: #ff7a1a; }

.accept-mvola { color: #17c964; }
.accept-mvola .light { font-weight: 500; color: var(--muted); }

.accept-airtel { color: #ed1c24; }
.accept-airtel .dot { background: #ed1c24; }

.mp-promo-sla {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mp-promo-sla-badge {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  color: var(--text);
}

.mp-promo-sla-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}

.mp-promo-trustpilot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.mp-promo-trustpilot-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mp-promo-trustpilot-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text);
}

.mp-promo-trustpilot-label .star-icon {
  color: var(--green);
}

.mp-promo-trustpilot-score {
  font-size: 12px;
  color: var(--muted);
}

.mp-promo-stars {
  display: flex;
  gap: 4px;
  color: var(--green);
  font-size: 22px;
  line-height: 1;
}

.mp-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.mp-promo-btn.primary {
  background: var(--green);
  color: #04120c;
}

.mp-promo-btn.primary:hover { transform: translateY(-1px); }

.mp-promo-btn.secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.mp-promo-btn.secondary:hover { border-color: var(--green); color: var(--green); }

.mp-promo-visual {
  position: relative;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-promo-core {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 45px -15px rgba(0, 217, 126, 0.35);
  z-index: 2;
}

.mp-promo-core img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.mp-promo-icon {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #fff;
  padding: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.mp-promo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mp-promo-icon.pos-tl { top: 4px; left: 10%; }
.mp-promo-icon.pos-tr { top: 0; right: 8%; }
.mp-promo-icon.pos-br { bottom: 10px; right: 0; }
.mp-promo-icon.pos-bl { bottom: 18px; left: 2%; }

@media (max-width: 900px) {
  .mp-page-layout { gap: 24px; }
  .mp-promo { position: static; }
}

@media (max-width: 560px) {
  .mp-promo { padding: 26px 22px; }
  .mp-promo-title { font-size: 22px; }
}

/* ============================================================
   ===== BANDE DE LOGOS DEFILANTE (mp-platforms-strip) =====
   Ajouté pour faire défiler automatiquement les logos des
   plateformes acceptées (comme un bandeau "compatible avec ...").
   N'affecte aucune autre règle existante plus haut dans ce fichier.
   ============================================================ */

.mp-platforms-strip {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 40px,
    #000 calc(100% - 40px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 40px,
    #000 calc(100% - 40px),
    transparent 100%
  );
}

.mp-platforms-track {
  display: inline-flex;
  width: max-content;
  animation: mp-platforms-scroll 22s linear infinite;
}

/* Pause au survol (desktop) */
.mp-platforms-strip:hover .mp-platforms-track {
  animation-play-state: paused;
}

.mp-platforms-group {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
  flex-shrink: 0;
}

.mp-platform-chip {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.mp-platform-chip img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

@keyframes mp-platforms-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Réduit la vitesse sur mobile pour rester lisible */
@media (max-width: 560px) {
  .mp-platforms-track {
    animation-duration: 16s;
  }
}

/* ==========================================================================
   ADMIN PANEL — RESTYLE FLUIDE & PROFESSIONNEL
   Ajout uniquement visuel : aucune classe/ID retirée, aucune règle existante
   supprimée. Tout est scopé à ".admin-wrap" (admin.html) et à la page de
   connexion admin (admin-login.html, ciblée via ses IDs uniques
   #passwordCard / #altVerifCard) pour ne JAMAIS affecter le reste du site
   (pages clients, login client, etc.). Les fonctionnalités, IDs, data-*,
   JS et structure HTML restent strictement inchangés.
   ========================================================================== */

.admin-wrap,
body:has(#passwordCard) {
  --adm-accent: #5b8cff;
  --adm-accent-2: #22d3ee;
  --adm-accent-soft: rgba(91, 140, 255, 0.12);
  --adm-surface: #101826;
  --adm-surface-2: #0c121d;
  --adm-surface-hover: #162132;
  --adm-border: #212f42;
  --adm-border-soft: #1a2534;
  --adm-text: #eef2f8;
  --adm-muted: #8a97a8;
  --adm-radius-lg: 18px;
  --adm-radius-md: 12px;
  --adm-radius-sm: 8px;
  --adm-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.65);
  --adm-shadow-sm: 0 10px 24px -14px rgba(0, 0, 0, 0.55);
  --adm-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Fond général de la page admin (dégradé discret, plus "fluide") ---- */
body:has(> .admin-wrap),
body:has(#passwordCard) {
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(91, 140, 255, 0.10), transparent 60%),
    radial-gradient(900px 460px at 110% 10%, rgba(34, 211, 238, 0.07), transparent 55%),
    var(--bg);
}

/* ---- Conteneur principal ---- */
.admin-wrap {
  max-width: 860px;
  animation: admFadeIn 0.45s var(--adm-ease);
}

body:has(#passwordCard) .wrap {
  max-width: 420px;
}

@keyframes admFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Scrollbar plus soignée à l'intérieur du panneau ---- */
.admin-wrap * {
  scrollbar-width: thin;
  scrollbar-color: var(--adm-border) transparent;
}
.admin-wrap *::-webkit-scrollbar { height: 8px; width: 8px; }
.admin-wrap *::-webkit-scrollbar-track { background: transparent; }
.admin-wrap *::-webkit-scrollbar-thumb {
  background: var(--adm-border);
  border-radius: 999px;
}
.admin-wrap *::-webkit-scrollbar-thumb:hover { background: var(--adm-accent); }

/* ---- En-tête admin : effet verre, sticky, dégradé de séparation ---- */
.admin-wrap .admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: -20px -18px 24px;
  padding: 18px 18px 16px;
  background: rgba(10, 15, 22, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--adm-border-soft);
}

.admin-wrap .admin-header::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--adm-accent), transparent 70%);
  opacity: 0.6;
}

.admin-wrap .admin-header { position: sticky; }

.admin-wrap .brand .mark {
  background: linear-gradient(90deg, var(--adm-accent), var(--adm-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.01em;
}

.admin-wrap .admin-contact {
  padding: 6px 10px;
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border-soft);
  border-radius: 999px;
  color: var(--adm-muted);
}

/* ---- Onglets principaux (Demandes / Inscriptions / ...) ---- */
.admin-wrap .tabs,
body:has(#passwordCard) .tabs {
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border-soft);
  border-radius: 14px;
  padding: 5px;
  gap: 4px;
}

.admin-wrap .tabs button,
body:has(#passwordCard) .tabs button {
  border-radius: 10px;
  transition: background 0.2s var(--adm-ease), color 0.2s var(--adm-ease), box-shadow 0.2s var(--adm-ease);
}

.admin-wrap .tabs button:hover:not(.active) {
  background: var(--adm-surface-hover);
  color: var(--adm-text);
}

.admin-wrap .tabs button.active,
body:has(#passwordCard) .tabs button.active {
  background: linear-gradient(135deg, var(--adm-accent), #4169e1);
  color: #ffffff;
  box-shadow: 0 8px 20px -8px rgba(91, 140, 255, 0.65);
}

.admin-wrap .admin-main-tabs .tabs button.active {
  background: linear-gradient(135deg, var(--adm-accent-2), var(--adm-accent));
  color: #04121c;
}

/* ---- Cartes génériques (formulaires, sections) ---- */
.admin-wrap .card,
body:has(#passwordCard) .card {
  background: linear-gradient(180deg, var(--adm-surface) 0%, var(--adm-surface-2) 100%);
  border: 1px solid var(--adm-border-soft);
  border-radius: var(--adm-radius-lg);
  box-shadow: var(--adm-shadow);
}

/* ---- Cartes de demandes (vue mobile / liste) ---- */
.admin-wrap .req-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border-soft);
  border-radius: var(--adm-radius-md);
  box-shadow: var(--adm-shadow-sm);
  transition: transform 0.2s var(--adm-ease), border-color 0.2s var(--adm-ease), box-shadow 0.2s var(--adm-ease);
}

.admin-wrap .req-card:hover {
  transform: translateY(-2px);
  border-color: var(--adm-accent);
  box-shadow: 0 20px 40px -20px rgba(91, 140, 255, 0.35);
}

.admin-wrap .req-name { color: var(--adm-text); }

.admin-wrap .req-grid .k { color: var(--adm-muted); }

.admin-wrap .req-actions button {
  border-radius: var(--adm-radius-sm);
  transition: filter 0.2s var(--adm-ease), transform 0.15s var(--adm-ease);
}
.admin-wrap .req-actions button:hover { filter: brightness(1.12); transform: translateY(-1px); }
.admin-wrap .req-actions button:active { transform: translateY(0); }

.admin-wrap .req-actions .accept {
  background: linear-gradient(135deg, var(--green), #05c179);
}
.admin-wrap .req-actions .reject {
  background: linear-gradient(135deg, var(--danger), #e14343);
}

.admin-wrap .empty {
  border: 1px dashed var(--adm-border);
  border-radius: var(--adm-radius-md);
  background: var(--adm-surface-2);
}

/* ---- Tableau des demandes (vue desktop) ---- */
.admin-wrap .req-table-wrap {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border-soft);
  border-radius: var(--adm-radius-lg);
  box-shadow: var(--adm-shadow-sm);
  padding: 8px;
}

.admin-wrap .req-table thead th {
  color: var(--adm-muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--adm-border);
  background: var(--adm-surface-2);
  position: sticky;
  top: 0;
}

.admin-wrap .req-table thead th:first-child { border-top-left-radius: 10px; }
.admin-wrap .req-table thead th:last-child { border-top-right-radius: 10px; }

.admin-wrap .req-table tbody td {
  border-bottom: 1px solid var(--adm-border-soft);
  transition: background 0.15s var(--adm-ease);
}

.admin-wrap .req-table tbody tr.rt-row:hover {
  background: var(--adm-surface-hover);
}

.admin-wrap .req-table tbody tr.rt-detail-row td {
  background: var(--adm-surface-2);
}

.admin-wrap .rt-client { color: var(--adm-text); }

.admin-wrap .rt-btn {
  transition: filter 0.2s var(--adm-ease), transform 0.15s var(--adm-ease), background 0.2s var(--adm-ease);
}
.admin-wrap .rt-btn:hover { transform: translateY(-1px); }

.admin-wrap .rt-valider {
  background: linear-gradient(135deg, var(--green), #05c179);
  box-shadow: 0 8px 18px -8px rgba(0, 217, 126, 0.55);
}

.admin-wrap .rt-refuser:hover { background: var(--danger-dim); }

.admin-wrap .rt-del { border-radius: 999px; }

.admin-wrap .rt-row.rt-highlight {
  outline: 2px solid var(--adm-accent);
  box-shadow: inset 0 0 0 1px var(--adm-accent-soft);
}

/* ---- Boutons génériques dans l'admin ---- */
.admin-wrap .btn,
body:has(#passwordCard) .btn {
  border-radius: var(--adm-radius-sm);
  background: linear-gradient(135deg, var(--green), #05c179);
  box-shadow: 0 10px 24px -12px rgba(0, 217, 126, 0.55);
  transition: filter 0.2s var(--adm-ease), transform 0.15s var(--adm-ease), box-shadow 0.2s var(--adm-ease);
  letter-spacing: 0.01em;
}
.admin-wrap .btn:hover,
body:has(#passwordCard) .btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -12px rgba(0, 217, 126, 0.65);
}
.admin-wrap .btn:active,
body:has(#passwordCard) .btn:active { transform: translateY(0); }

.admin-wrap .btn.secondary,
body:has(#passwordCard) .btn.secondary {
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border);
  color: var(--adm-text);
  box-shadow: none;
}
.admin-wrap .btn.secondary:hover,
body:has(#passwordCard) .btn.secondary:hover {
  background: var(--adm-surface-hover);
  border-color: var(--adm-accent);
  filter: none;
}

.admin-wrap .btn.danger-outline:hover { box-shadow: 0 8px 20px -10px rgba(255, 92, 92, 0.5); }

.admin-wrap .link-btn {
  border-radius: 999px;
  padding: 4px 10px;
  transition: background 0.2s var(--adm-ease), color 0.2s var(--adm-ease);
}
.admin-wrap .link-btn:hover {
  background: var(--adm-surface-hover);
  text-decoration: none;
}

/* ---- Champs de formulaire ---- */
.admin-wrap select,
.admin-wrap input,
.admin-wrap textarea,
body:has(#passwordCard) select,
body:has(#passwordCard) input,
body:has(#passwordCard) textarea {
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-sm);
  transition: border-color 0.2s var(--adm-ease), box-shadow 0.2s var(--adm-ease);
}

.admin-wrap select:focus,
.admin-wrap input:focus,
.admin-wrap textarea:focus,
body:has(#passwordCard) select:focus,
body:has(#passwordCard) input:focus,
body:has(#passwordCard) textarea:focus {
  border-color: var(--adm-accent);
  box-shadow: 0 0 0 3px var(--adm-accent-soft);
}

/* ---- Badges / pastilles de statut ---- */
.admin-wrap .badge {
  background: linear-gradient(135deg, var(--danger), #e14343);
  box-shadow: 0 4px 12px -4px rgba(255, 92, 92, 0.6);
}

.admin-wrap .pill {
  border-radius: 999px;
  font-weight: 700;
}
.admin-wrap .pill.pending { background: var(--adm-surface-2); border-color: var(--adm-border); }
.admin-wrap .pill.accepted { box-shadow: 0 0 0 1px rgba(0, 217, 126, 0.25) inset; }
.admin-wrap .pill.rejected,
.admin-wrap .pill.expired { box-shadow: 0 0 0 1px rgba(255, 92, 92, 0.25) inset; }

.admin-wrap .svc-badge {
  border-radius: 999px;
  background: rgba(242, 183, 5, 0.08);
}

/* ---- Bandeau anti-fraude ---- */
.admin-wrap .fraud-warning {
  border-left: 3px solid var(--danger);
  border-radius: var(--adm-radius-sm);
  background: linear-gradient(90deg, rgba(255, 107, 107, 0.14), rgba(255, 107, 107, 0.04));
}

/* ---- Photos KYC ---- */
.admin-wrap .kyc-images { gap: 12px; }

.admin-wrap .kyc-image-item img {
  border-radius: var(--adm-radius-sm);
  border: 1px solid var(--adm-border);
  transition: transform 0.2s var(--adm-ease), border-color 0.2s var(--adm-ease), box-shadow 0.2s var(--adm-ease);
}
.admin-wrap .kyc-image-item img:hover {
  transform: scale(1.03);
  border-color: var(--adm-accent);
  box-shadow: var(--adm-shadow-sm);
}

/* ---- Rangée d'onglets secondaires + pagination ---- */
.admin-wrap .admin-tabs-row { gap: 10px; }

.admin-wrap .admin-pagination .btn.secondary {
  border-radius: 999px;
}
.admin-wrap .admin-pagination .hint {
  color: var(--adm-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ---- Grille de services (si affichée côté admin) ---- */
.admin-wrap .service-card {
  border-radius: var(--adm-radius-md);
  transition: transform 0.2s var(--adm-ease), border-color 0.2s var(--adm-ease), box-shadow 0.2s var(--adm-ease);
}
.admin-wrap .service-card:hover {
  box-shadow: var(--adm-shadow-sm);
}

/* ---- Transition douce lors du changement de panneau / onglet ---- */
.admin-wrap .main-panel.active,
.admin-wrap .tab-panel.active {
  animation: admPanelIn 0.28s var(--adm-ease);
}
@keyframes admPanelIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Page de connexion admin (carte centrale) ---- */
body:has(#passwordCard) .card {
  padding: 28px 26px;
}
body:has(#passwordCard) .brand .mark {
  background: linear-gradient(90deg, var(--adm-accent), var(--adm-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Responsive : header sticky un peu plus compact sur mobile ---- */
@media (max-width: 560px) {
  .admin-wrap .admin-header {
    margin: -16px -12px 18px;
    padding: 14px 14px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .admin-wrap .admin-contact { text-align: left; }
}

/* ==========================================================================
   PAGES CLIENT (compte / dashboard) — RESTYLE FLUIDE & PROFESSIONNEL
   Ajout uniquement visuel : aucune classe/ID retirée, aucune règle existante
   supprimée. Tout est scopé à "body.money-bg" / "body.has-site-header"
   (présentes sur TOUTES les pages client : accueil, connexion, inscription,
   services, Binance, PayPal, Wise, etc.) — le panneau admin n'a jamais ces
   classes, donc il reste totalement inchangé par ce bloc. Structure HTML,
   IDs, data-*, JS et fonctionnalités restent strictement identiques.
   ========================================================================== */

body.money-bg {
  --cl-accent: #22d97e;
  --cl-accent-2: #22d3ee;
  --cl-accent-soft: rgba(34, 217, 126, 0.12);
  --cl-surface: #101c17;
  --cl-surface-2: #0c1512;
  --cl-surface-hover: #142620;
  --cl-border: #1c2e27;
  --cl-border-soft: #172621;
  --cl-radius-lg: 20px;
  --cl-radius-md: 14px;
  --cl-radius-sm: 10px;
  --cl-shadow: 0 28px 64px -30px rgba(0, 0, 0, 0.7);
  --cl-shadow-sm: 0 12px 28px -16px rgba(0, 0, 0, 0.55);
  --cl-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Conteneur principal : légère respiration + apparition douce ---- */
body.money-bg .wrap {
  animation: clFadeIn 0.45s var(--cl-ease);
}

@keyframes clFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Scrollbar affinée sur les pages client ---- */
body.money-bg {
  scrollbar-width: thin;
  scrollbar-color: var(--cl-border) transparent;
}
body.money-bg::-webkit-scrollbar { width: 8px; height: 8px; }
body.money-bg::-webkit-scrollbar-track { background: transparent; }
body.money-bg::-webkit-scrollbar-thumb {
  background: var(--cl-border);
  border-radius: 999px;
}
body.money-bg::-webkit-scrollbar-thumb:hover { background: var(--cl-accent); }

body.money-bg .site-header-logo {
  filter: drop-shadow(0 4px 14px rgba(34, 217, 126, 0.25));
  transition: transform 0.2s var(--cl-ease);
}
body.money-bg .site-header-brand:hover .site-header-logo {
  transform: translateY(-1px) scale(1.02);
}

body.money-bg .site-header-nav .link-btn {
  border-radius: 999px;
  padding: 5px 10px;
  transition: background 0.2s var(--cl-ease), color 0.2s var(--cl-ease);
}
body.money-bg .site-header-nav .link-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

/* ---- Cartes (formulaires, dashboard, services) ---- */
body.money-bg .card {
  background: linear-gradient(180deg, var(--cl-surface) 0%, var(--cl-surface-2) 100%);
  border: 1px solid var(--cl-border-soft);
  border-radius: var(--cl-radius-lg);
  box-shadow: var(--cl-shadow);
  transition: box-shadow 0.25s var(--cl-ease), border-color 0.25s var(--cl-ease);
}

body.money-bg .card.landing-card {
  position: relative;
  overflow: hidden;
}
body.money-bg .card.landing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 220px at 50% -10%, rgba(34, 217, 126, 0.12), transparent 65%);
  pointer-events: none;
}

body.money-bg .brand .mark {
  background: linear-gradient(90deg, var(--cl-accent), var(--cl-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Onglets (tabs) sur les pages client ---- */
body.money-bg .tabs {
  background: var(--cl-surface-2);
  border: 1px solid var(--cl-border-soft);
  border-radius: 14px;
  padding: 5px;
}
body.money-bg .tabs button {
  border-radius: 10px;
  transition: background 0.2s var(--cl-ease), color 0.2s var(--cl-ease), box-shadow 0.2s var(--cl-ease);
}
body.money-bg .tabs button:hover:not(.active) {
  background: var(--cl-surface-hover);
  color: var(--text);
}
body.money-bg .tabs button.active {
  background: linear-gradient(135deg, var(--cl-accent), #05c179);
  box-shadow: 0 8px 20px -8px rgba(34, 217, 126, 0.55);
}

/* ---- Boutons ---- */
body.money-bg .btn {
  border-radius: var(--cl-radius-sm);
  background: linear-gradient(135deg, var(--cl-accent), #05c179);
  box-shadow: 0 12px 26px -14px rgba(34, 217, 126, 0.6);
  transition: filter 0.2s var(--cl-ease), transform 0.15s var(--cl-ease), box-shadow 0.2s var(--cl-ease);
  letter-spacing: 0.01em;
}
body.money-bg .btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px -14px rgba(34, 217, 126, 0.7);
}
body.money-bg .btn:active { transform: translateY(0); }
body.money-bg .btn:disabled { box-shadow: none; }

body.money-bg .btn.secondary {
  background: var(--cl-surface-2);
  border: 1px solid var(--cl-border);
  box-shadow: none;
}
body.money-bg .btn.secondary:hover {
  background: var(--cl-surface-hover);
  border-color: var(--cl-accent);
  filter: none;
}

body.money-bg .btn.secondary.cancel-btn:hover {
  box-shadow: 0 8px 20px -10px rgba(255, 92, 92, 0.45);
}

/* ---- Champs de formulaire ---- */
body.money-bg select,
body.money-bg input,
body.money-bg textarea {
  background: var(--cl-surface-2);
  border: 1px solid var(--cl-border);
  border-radius: var(--cl-radius-sm);
  transition: border-color 0.2s var(--cl-ease), box-shadow 0.2s var(--cl-ease);
}
body.money-bg select:focus,
body.money-bg input:focus,
body.money-bg textarea:focus {
  border-color: var(--cl-accent);
  box-shadow: 0 0 0 3px var(--cl-accent-soft);
}

body.money-bg .method-box {
  border-radius: var(--cl-radius-sm);
  transition: border-color 0.2s var(--cl-ease), background 0.2s var(--cl-ease), transform 0.15s var(--cl-ease);
}
body.money-bg .method-box:hover { transform: translateY(-1px); }

body.money-bg .upload-box {
  border-radius: var(--cl-radius-md);
  transition: border-color 0.2s var(--cl-ease), background 0.2s var(--cl-ease);
}
body.money-bg .upload-box:hover {
  background: var(--cl-surface-hover);
}

/* ---- Grille des services (dashboard client) ---- */
body.money-bg .service-card {
  background: linear-gradient(180deg, var(--cl-surface) 0%, var(--cl-surface-2) 100%);
  border-radius: var(--cl-radius-md);
  box-shadow: var(--cl-shadow-sm);
  transition: transform 0.2s var(--cl-ease), border-color 0.2s var(--cl-ease), box-shadow 0.2s var(--cl-ease);
}
body.money-bg .service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -20px rgba(34, 217, 126, 0.3);
}
body.money-bg .service-card.disabled:hover {
  transform: none;
  box-shadow: var(--cl-shadow-sm);
}

body.money-bg .service-logo {
  transition: transform 0.2s var(--cl-ease);
}
body.money-bg .service-card:hover .service-logo {
  transform: scale(1.06);
}

/* ---- Blocs montants / infos d'envoi / historique ---- */
body.money-bg .amounts,
body.money-bg .send-info {
  border-radius: var(--cl-radius-md);
}

body.money-bg .amounts .row .value.usdt { color: var(--cl-accent); }

/* ---- Anneau de compte à rebours (dépôt / retrait en attente) ---- */
body.money-bg .ring .progress { stroke: var(--cl-accent); }
body.money-bg .status-text.ok { color: var(--cl-accent); }

/* ---- Pastilles de statut ---- */
body.money-bg .pill {
  border-radius: 999px;
  font-weight: 700;
}
body.money-bg .pill.accepted { box-shadow: 0 0 0 1px rgba(34, 217, 126, 0.25) inset; }
body.money-bg .pill.rejected,
body.money-bg .pill.expired { box-shadow: 0 0 0 1px rgba(255, 92, 92, 0.25) inset; }

/* ---- Pied de page ---- */
body.money-bg .site-footer {
  border-top: 1px solid var(--cl-border-soft);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.25));
}
body.money-bg .site-footer-contact li a {
  transition: color 0.2s var(--cl-ease);
}
body.money-bg .footer-legal-links a {
  transition: color 0.2s var(--cl-ease);
}

/* ---- Transition douce entre les onglets de formulaire (tab-panel) ---- */
body.money-bg .tab-panel.active {
  animation: clPanelIn 0.28s var(--cl-ease);
}
@keyframes clPanelIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive : ajustements mineurs sur mobile ---- */
@media (max-width: 480px) {
  body.money-bg .card { padding: 20px; }
}
