/* =====================================================================
   INOVATECH — Module USDT (pages usdt.php, transaction.php, mes-transactions.php)
   Chargé uniquement sur ces pages, en complément de style.css.
   ===================================================================== */

:root {
    --usdt-green: #16a34a;
    --usdt-green-bg: #dcfce7;
    --usdt-orange: #ea580c;
    --usdt-orange-bg: #ffedd5;
    --usdt-tether: #26a17b;
}

/* ---------- Cartes de taux ---------- */
.rate-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 1.5rem 1.6rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
    height: 100%;
}
.rate-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.rate-card::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    opacity: .5;
    pointer-events: none;
}
.rate-card.is-buy::after { background: radial-gradient(var(--usdt-green-bg), transparent 70%); }
.rate-card.is-sell::after { background: radial-gradient(var(--usdt-orange-bg), transparent 70%); }
.rate-card .rate-icon {
    width: 58px;
    height: 58px;
    flex: none;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
}
.rate-card.is-buy .rate-icon { background: var(--usdt-green-bg); color: var(--usdt-green); }
.rate-card.is-sell .rate-icon { background: var(--usdt-orange-bg); color: var(--usdt-orange); }
.rate-card .rate-label { display: block; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.rate-card .rate-value { font-family: Poppins, sans-serif; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--brand); line-height: 1.15; }
.rate-card .rate-sub { font-size: .8rem; color: var(--muted); }

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .3rem .75rem;
    border-radius: 999px;
    background: var(--usdt-green-bg);
    color: #166534;
    font-size: .78rem;
    font-weight: 600;
}
.live-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--usdt-green); position: relative; }
.live-badge .pulse::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--usdt-green);
    animation: usdt-pulse 1.8s ease-out infinite;
}
@keyframes usdt-pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.rate-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: center; font-size: .85rem; color: var(--muted); }
.rate-meta i { color: var(--brand); }

/* ---------- Calculateur public ---------- */
.usdt-calc {
    border-radius: 22px;
    padding: 1.6rem;
    background: linear-gradient(135deg, var(--navy) 0%, #12306b 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.usdt-calc::before {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: -120px;
    top: -140px;
    border-radius: 50%;
    background: radial-gradient(rgba(47, 140, 255, .45), transparent 70%);
    pointer-events: none;
}
.usdt-calc > * { position: relative; }
.usdt-calc h2 { color: #fff; }
.calc-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .1); gap: 4px; }
.calc-switch button {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .75);
    padding: .45rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .9rem;
    transition: .2s;
}
.calc-switch button.active { background: #fff; color: var(--navy); box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.calc-switch button:focus-visible { outline: 3px solid var(--accent); }
.calc-field { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; padding: .8rem 1rem; transition: border-color .2s; }
.calc-field:focus-within { border-color: rgba(255, 255, 255, .55); }
.calc-field label { font-size: .78rem; color: rgba(255, 255, 255, .7); margin: 0; }
.calc-field .calc-row { display: flex; align-items: center; gap: .6rem; }
.calc-field input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: 0;
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    padding: 0;
}
.calc-field input::placeholder { color: rgba(255, 255, 255, .35); }
.calc-field .cur { font-weight: 700; font-size: .9rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .14); white-space: nowrap; }
.calc-field .cur.usdt { background: var(--usdt-tether); }
.calc-swap {
    width: 42px;
    height: 42px;
    margin: -10px auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--navy);
    border: 4px solid #12306b;
    position: relative;
    z-index: 2;
    transition: transform .3s;
}
.usdt-calc.is-sell .calc-swap { transform: rotate(180deg); }
.calc-details { font-size: .85rem; color: rgba(255, 255, 255, .78); display: grid; gap: .25rem; }
.calc-details strong { color: #fff; }
.calc-warning { font-size: .82rem; color: #ffd98a; min-height: 1.2em; }

/* ---------- Formulaire ---------- */
.usdt-form .input-group-lg .form-control { font-weight: 700; font-size: 1.35rem; }
.usdt-form .quick-amounts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.usdt-form .quick-amounts button {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: .25rem .8rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink);
    transition: .15s;
}
.usdt-form .quick-amounts button:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.address-feedback { font-size: .82rem; margin-top: .35rem; min-height: 1.1em; }
.address-feedback.ok { color: var(--usdt-green); }
.address-feedback.bad { color: #dc3545; }
.btn-paste { white-space: nowrap; }
.summary-box dd.updated { animation: usdt-flash .6s ease; }
@keyframes usdt-flash { from { color: #7dd3fc; } to { color: inherit; } }
.btn-confirm[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Étapes « comment ça marche » ---------- */
.how-steps { list-style: none; padding: 0; margin: 0; counter-reset: hs; display: grid; gap: .8rem; }
.how-steps li { counter-increment: hs; position: relative; padding-left: 2.6rem; font-size: .9rem; color: var(--muted); }
.how-steps li::before {
    content: counter(hs);
    position: absolute;
    left: 0;
    top: -.1rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: .8rem;
}
.how-steps.buy li::before { background: var(--usdt-green-bg); color: var(--usdt-green); }
.how-steps.sell li::before { background: var(--usdt-orange-bg); color: var(--usdt-orange); }

/* ---------- Suivi de transaction ---------- */
.countdown {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    background: #fff7e6;
    border: 1px solid #ffd98a;
    color: #7a4b00;
    font-weight: 600;
    font-size: .85rem;
    font-variant-numeric: tabular-nums;
}
.countdown.is-urgent { background: #fdecec; border-color: #f5b5b5; color: #a61b1b; }
.countdown.is-expired { background: #f1f3f6; border-color: var(--line); color: var(--muted); }
.refresh-note { font-size: .8rem; color: var(--muted); }
.refresh-note .spin { display: inline-block; animation: usdt-spin 1.2s linear infinite; }
@keyframes usdt-spin { to { transform: rotate(360deg); } }
.hash-feedback { font-size: .82rem; min-height: 1.1em; margin-top: .35rem; }

@media (max-width: 575.98px) {
    .rate-card { padding: 1.1rem; }
    .rate-card .rate-icon { width: 48px; height: 48px; }
    .usdt-calc { padding: 1.2rem; }
    .calc-field input { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
    .live-badge .pulse::after, .refresh-note .spin, .summary-box dd.updated { animation: none; }
    .rate-card, .calc-swap { transition: none; }
}

/* La carte « Connectez-vous » garde sa hauteur naturelle */
#usdt-form > .card-x { height: auto; }

/* ---------- Paiement MonCash ---------- */
.moncash-box { border: 2px solid #fde2e2; background: linear-gradient(135deg, #fff, #fff5f5); border-radius: 16px; padding: 1.1rem 1.2rem; }
.moncash-logo { display: inline-grid; place-items: center; padding: .55rem .9rem; border-radius: 12px; background: #e30613; color: #fff; font-weight: 800; letter-spacing: .02em; font-size: .95rem; box-shadow: 0 6px 16px rgba(227, 6, 19, .25); }
.btn-moncash { background: #e30613; color: #fff; border: 0; font-weight: 700; }
.btn-moncash:hover, .btn-moncash:focus { background: #b8050f; color: #fff; }

/* ---------- Achat : dépôt MonCash / NatCash + reçu ---------- */
.pay-deposit { border: 1px solid rgba(10, 31, 68, .1); border-radius: 16px; overflow: hidden; background: #fff; }
.pay-deposit-head { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; color: #fff; font-weight: 700; background: linear-gradient(135deg, #c8102e, #8f0b20); }
.pay-deposit-natcash .pay-deposit-head { background: linear-gradient(135deg, #f7941d, #d35400); }
.pay-deposit-head img { background: #fff; border-radius: 8px; padding: 2px 4px; height: 32px; width: auto; }
.pay-natcash-mini { background: #fff; color: #d35400; border-radius: 8px; padding: .15rem .5rem; font-weight: 800; }
.pay-natcash-mini b { color: #1d3557; }
.pay-deposit-body { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: .45rem 1rem; margin: 0; padding: 1rem; align-items: center; }
.pay-deposit-body dt { font-weight: 500; color: var(--muted, #6b7a90); font-size: .9rem; }
.pay-deposit-body dd { margin: 0; overflow-wrap: anywhere; }
.pay-deposit-note { padding: .75rem 1rem; background: #f6f8fb; font-size: .9rem; color: #445; }
.pay-proof-sent { display: flex; gap: 1rem; align-items: flex-start; padding: .9rem; border-radius: 14px; background: #fff8e6; }
.pay-proof-sent img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .08); flex: none; }
.pay-receipt-preview { display: block; max-width: 100%; max-height: 260px; border-radius: 12px; border: 1px solid rgba(10, 31, 68, .12); object-fit: contain; background: #f6f8fb; }
@media (max-width: 575.98px) { .pay-deposit-body { grid-template-columns: 1fr; gap: .15rem; } .pay-deposit-body dd { margin-bottom: .5rem; } }

/* Les cartes empilées dans une colonne gardent leur hauteur naturelle (évite le chevauchement avec le pied de page). */
.card-x.form-card, .card-x.p-4 { height: auto; }

/* Adresses longues (0x…) : retour à la ligne au lieu de déborder */
.summary-box dd, .summary-box .mono { overflow-wrap: anywhere; word-break: break-all; }

/* ---------- Mon espace : solde actuel, totaux, montant bloqué, annonces (page USDT) ---------- */
.solde-dash { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.solde-dash .dash-main { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.solde-dash .dash-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); min-width: 0; }
.solde-dash .dash-tile .t-label { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); font-weight: 500; }
.solde-dash .dash-tile .t-label i { width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; font-size: .85rem; }
.solde-dash .dash-tile .t-value { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--navy); margin: .45rem 0 .1rem; word-break: break-word; }
.solde-dash .dash-tile .t-sub { font-size: .8rem; color: var(--muted); }
.solde-dash .ic-buy { background: #dcfce7; color: #15803d; }
.solde-dash .ic-sell { background: #fef3c7; color: #b45309; }
.solde-dash .ic-lock { background: #fee2e2; color: #b91c1c; }
.solde-dash .ic-news { background: var(--brand-light); color: var(--brand); }
.solde-dash .dash-news { grid-column: 1 / -1; }
.solde-dash .dash-news ul { list-style: none; padding: 0; margin: .6rem 0 0; }
.solde-dash .dash-news li { display: flex; justify-content: space-between; gap: .75rem; padding: .35rem 0; border-top: 1px solid var(--line); font-size: .88rem; }
.solde-dash .dash-news li:first-child { border-top: 0; }
.solde-dash .dash-news a { color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.solde-dash .dash-news a:hover { color: var(--brand); }
.solde-dash .dash-news time { color: var(--muted); white-space: nowrap; font-size: .8rem; }
.solde-amount { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 5vw, 2.7rem); color: #fff; line-height: 1.1; margin: .35rem 0 .5rem; }
.solde-card .btn-light { color: var(--navy); }
@media (max-width: 991.98px) {
    .solde-dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .solde-dash .dash-main { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 479.98px) {
    .solde-dash { grid-template-columns: 1fr; }
    .solde-dash .dash-main, .solde-dash .dash-news { grid-column: auto; }
}

/* ---------- Page Mon solde : achat de crédit ---------- */
.js-topup-form .quick-amounts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.js-topup-form .quick-amounts button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; color: var(--ink); }
.js-topup-form .quick-amounts button:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.topup-method { display: flex; align-items: center; gap: .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .9rem; cursor: pointer; background: #fff; }
.topup-method:has(input:checked) { border-color: var(--brand); background: var(--brand-light); box-shadow: 0 0 0 1px var(--brand); }
.topup-method input { accent-color: var(--brand); width: 1.1rem; height: 1.1rem; flex: none; }
.topup-pay { background: var(--bg); border: 1px dashed var(--brand); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }
.topup-htg { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--brand-700); }
.topup-preview { max-width: 220px; max-height: 260px; border-radius: 10px; border: 1px solid var(--line); object-fit: contain; }

/* ---------- Vérification d'identité ---------- */
.kyc-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.kyc-steps > div { display: flex; align-items: center; gap: .7rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .9rem; font-weight: 500; }
.kyc-steps i { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--brand-light); color: var(--brand); }
.kyc-drop { display: flex; align-items: center; justify-content: center; min-height: 170px; border: 2px dashed var(--line); border-radius: var(--radius-sm); background: var(--bg); cursor: pointer; overflow: hidden; text-align: center; transition: border-color .15s; }
.kyc-drop:hover { border-color: var(--brand); }
.kyc-drop-empty { display: flex; flex-direction: column; gap: .3rem; padding: 1rem; color: var(--muted); font-size: .85rem; }
.kyc-drop-empty i { font-size: 1.6rem; color: var(--brand); }
.kyc-drop-empty strong { color: var(--ink); }
.kyc-preview { width: 100%; height: 170px; object-fit: contain; background: #fff; }
.kyc-summary { display: grid; grid-template-columns: auto auto; gap: .35rem 1rem; text-align: left; max-width: 420px; margin: 0; }
.kyc-summary dt { color: var(--muted); font-weight: 500; }
.kyc-summary dd { margin: 0; font-weight: 600; }
.icon-box.kyc-ok { background: #dcfce7; color: #15803d; }
@media (max-width: 767.98px) { .kyc-steps { grid-template-columns: 1fr; } }

/* ---------- Scanner de pièce (caméra) ---------- */
body.kyc-cam-on { overflow: hidden; }
.kyc-cam { position: fixed; inset: 0; z-index: 2000; background: #050b18; color: #fff; display: none; flex-direction: column; }
.kyc-cam.open { display: flex; }
.kyc-cam-top { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1rem; }
.kyc-cam-x { background: rgba(255,255,255,.12); border: 0; color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 1.2rem; }
.kyc-cam-view { position: relative; flex: 1; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.kyc-cam-view video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #050b18; }
.kyc-cam-view video.mirror { transform: scaleX(-1); }
.kyc-cam-shot { max-width: 92%; max-height: 92%; object-fit: contain; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.6); position: relative; }
.kyc-cam-frame { position: relative; width: min(88vw, 620px); aspect-ratio: 1.586; border-radius: 14px; box-shadow: 0 0 0 200vmax rgba(5, 11, 24, .62); }
.kyc-cam[data-shape="passport"] .kyc-cam-frame { aspect-ratio: 1.42; }
.kyc-cam[data-shape="selfie"] .kyc-cam-frame { width: min(70vw, 360px); aspect-ratio: .78; border-radius: 48% / 40%; border: 3px dashed rgba(255,255,255,.75); }
.kyc-cam-frame i { position: absolute; width: 34px; height: 34px; border: 4px solid #2f8cff; }
.kyc-cam-frame i:nth-child(1) { top: -4px; left: -4px; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.kyc-cam-frame i:nth-child(2) { top: -4px; right: -4px; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; }
.kyc-cam-frame i:nth-child(3) { bottom: -4px; left: -4px; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; }
.kyc-cam-frame i:nth-child(4) { bottom: -4px; right: -4px; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.kyc-cam[data-shape="selfie"] .kyc-cam-frame i { display: none; }
.kyc-cam-hint { text-align: center; margin: .7rem 1rem 0; min-height: 2.6em; font-weight: 500; color: #ffd98a; }
.kyc-cam-hint.ok { color: #6ee7a8; }
.kyc-cam-bar { display: flex; align-items: center; justify-content: center; gap: 1.6rem; padding: .8rem 1rem calc(1rem + env(safe-area-inset-bottom)); }
.kyc-cam-btn { background: rgba(255,255,255,.12); border: 0; color: #fff; min-width: 52px; height: 52px; border-radius: 26px; padding: 0 .9rem; display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; cursor: pointer; }
.kyc-cam-btn input { accent-color: #2f8cff; }
.kyc-cam-shoot { width: 74px; height: 74px; border-radius: 50%; border: 5px solid #fff; background: #2f8cff; box-shadow: 0 0 0 4px rgba(47,140,255,.35); }
.kyc-cam-shoot:active { transform: scale(.94); }
.kyc-cam button:focus-visible, .kyc-cam-btn:focus-within { outline: 3px solid #6ee7a8; outline-offset: 2px; }
.js-kyc-slot .kyc-drop { cursor: default; }
.kyc-cam .js-cam-done { gap: .7rem; }
.kyc-cam .js-cam-done .btn { white-space: nowrap; padding-inline: 1rem; }

/* ---------- Assistant de vérification (étapes) ---------- */
.kyc-progress { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; padding: 0; margin: 0 0 1.6rem; counter-reset: none; }
.kyc-progress li { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; font-size: .78rem; color: var(--muted); position: relative; cursor: default; }
.kyc-progress li::before { content: ""; position: absolute; top: 16px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.kyc-progress li:first-child::before { display: none; }
.kyc-progress li.done::before, .kyc-progress li.active::before { background: var(--brand); }
.kyc-progress .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: #fff; border: 2px solid var(--line); position: relative; z-index: 1; }
.kyc-progress li.active { color: var(--navy); font-weight: 600; }
.kyc-progress li.active .n { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-light); }
.kyc-progress li.done { cursor: pointer; }
.kyc-progress li.done .n { background: var(--brand-light); border-color: var(--brand); color: var(--brand); }
.kyc-wizard fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.kyc-wizard legend { float: none; width: auto; margin-bottom: .4rem; color: var(--navy); font-family: var(--font-head); font-weight: 600; }
.kyc-wizard legend:focus { outline: none; }
.kyc-wizard.js-on .kyc-step:not(.active) { display: none; }
.kyc-nav { display: none; align-items: center; justify-content: space-between; gap: .8rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.kyc-wizard.js-on .kyc-nav { display: flex; }
.kyc-challenge { display: flex; gap: .75rem; align-items: center; background: #fff7e6; border: 1px solid #f5c26b; border-radius: var(--radius-sm); padding: .7rem .9rem; }
.kyc-challenge i { font-size: 1.4rem; color: #b45309; }
.kyc-challenge small { display: block; color: #92400e; }
.kyc-challenge strong { color: var(--navy); }
.kyc-recap { display: grid; gap: .8rem; }
.kyc-recap-block { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; }
.kyc-recap-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.kyc-recap dl { display: grid; grid-template-columns: 9rem 1fr; gap: .25rem .8rem; margin: 0; font-size: .9rem; }
.kyc-recap dt { color: var(--muted); font-weight: 500; }
.kyc-recap dd { margin: 0; font-weight: 600; word-break: break-word; }
.kyc-recap-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; }
.kyc-recap-photos figure { margin: 0; }
.kyc-recap-photos img { width: 100%; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.kyc-recap-photos figcaption { font-size: .72rem; color: var(--muted); margin-top: .2rem; }
.kyc-track { list-style: none; padding: 0; margin: 1.2rem auto 0; max-width: 520px; display: grid; gap: .5rem; }
.kyc-track li { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .6rem .9rem; border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--muted); }
.kyc-track li span::before { content: "\f111"; font-family: "Font Awesome 6 Free"; font-weight: 400; margin-right: .55rem; }
.kyc-track li.done { color: var(--success); border-color: #bbf7d0; background: #f0fdf4; }
.kyc-track li.done span::before { content: "\f058"; font-weight: 900; }
.kyc-track li.current { color: #b45309; border-color: #fde68a; background: #fffbeb; font-weight: 600; }
.kyc-track li.current span::before { content: "\f252"; font-weight: 900; }
@media (max-width: 575.98px) {
    .kyc-progress .l { display: none; }
    .kyc-progress li.active .l { display: block; position: absolute; top: 40px; white-space: nowrap; }
    .kyc-progress { margin-bottom: 2.4rem; }
    .kyc-recap dl { grid-template-columns: 1fr; }
    .kyc-recap dd { margin-bottom: .3rem; }
}

/* ---------- Code de vérification (OTP) ---------- */
.otp-card { max-width: 500px; padding: 0; overflow: hidden; border-radius: 20px; }
.otp-head { background: linear-gradient(135deg, var(--navy), var(--navy-700)); color: #fff; padding: 1.1rem 1.5rem; }
.otp-head h2 { color: #fff; }
.otp-body { padding: 1.5rem; }
.otp-info { display: flex; gap: .8rem; align-items: flex-start; background: var(--brand-light); border: 1px solid #c9dcfa; color: var(--ink); border-radius: 12px; padding: .9rem 1rem; font-size: .92rem; margin-bottom: 1.2rem; }
.otp-info i { color: var(--brand); font-size: 1.3rem; margin-top: .1rem; }
.otp-label { font-family: var(--font-head); font-size: 1.15rem; color: var(--navy); margin-bottom: .6rem; display: block; }
.otp-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: .55rem; margin-bottom: .6rem; }
.otp-box { width: 100%; aspect-ratio: 1 / 1.05; text-align: center; font-size: 1.6rem; font-weight: 700; font-family: var(--font-head); border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); padding: 0; transition: border-color .15s, box-shadow .15s; }
.otp-box:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-light); }
.otp-box.filled { border-color: var(--brand); background: #f7faff; }
.otp-submit { background: #fbbf24; color: #3b2a00; font-weight: 600; border: 0; border-radius: 10px; padding: .75rem; font-size: 1.05rem; }
.otp-submit:hover, .otp-submit:focus-visible { background: #f59e0b; color: #2b1f00; }
@media (max-width: 380px) { .otp-boxes { gap: .35rem; } .otp-box { font-size: 1.3rem; } }

/* ---------- Sécurité du compte ---------- */
.sec-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.sec-list li { position: relative; padding-left: 1.8rem; font-size: .9rem; }
.sec-list li::before { font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: .05rem; }
.sec-list li.ok::before { content: "\f058"; color: var(--success); }
.sec-list li.off::before { content: "\f06a"; color: #d97706; }
.sec-list strong { display: block; color: var(--navy); }
.sec-list span { color: var(--muted); }
.sec-device { display: flex; gap: .8rem; align-items: center; padding: .7rem 0; border-top: 1px solid var(--line); }
.sec-device > i { font-size: 1.3rem; color: var(--brand); width: 1.6rem; text-align: center; }
.sec-events { list-style: none; padding: 0 1.5rem 1rem; margin: 0; }
.sec-events li { display: flex; gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
.sec-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: .8rem; }

/* ---------- Mot de passe oublié ---------- */
.pw-steps { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0 0 1.1rem; font-size: .8rem; counter-reset: s; }
.pw-steps li { flex: 1; padding: .45rem .6rem; border-radius: 8px; background: var(--bg); color: var(--muted); counter-increment: s; }
.pw-steps li::before { content: counter(s) ". "; font-weight: 700; }
.pw-steps li.active { background: var(--brand-light); color: var(--navy); font-weight: 600; }
.pw-steps li.done { color: var(--success); }
.pw-meter { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin: .35rem 0 .5rem; }
.pw-meter span { display: block; height: 100%; width: 0; background: #dc2626; transition: width .2s, background .2s; }
.pw-meter span[data-score="2"] { background: #d97706; }
.pw-meter span[data-score="3"] { background: #65a30d; }
.pw-meter span[data-score="4"] { background: var(--success); }
.pw-rules { list-style: none; padding: 0; margin: 0 0 .9rem; color: var(--muted); }
.pw-rules li::before { content: "\f111"; font-family: "Font Awesome 6 Free"; font-weight: 400; margin-right: .4rem; font-size: .75em; }
.pw-rules li.ok { color: var(--success); }
.pw-rules li.ok::before { content: "\f058"; font-weight: 900; }
.pw-help { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .9rem; background: var(--bg); }
.pw-help summary { cursor: pointer; font-weight: 600; color: var(--brand-700); }
.pw-help ul { padding-left: 1.1rem; margin-top: .5rem; }

/* ---- Formulaire de dépôt (Mon solde) ---- */
.depot-form .depot-label { display: block; font-weight: 700; color: var(--navy); margin-bottom: .45rem; }
.depot-amount { position: relative; }
.depot-amount .form-control { font-size: 1.9rem; font-weight: 600; text-align: right; padding: .75rem 4.2rem .75rem 1rem; min-height: 72px; border-radius: var(--radius-sm); }
.depot-amount .depot-cur { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); pointer-events: none; }
.depot-amount .form-control.is-invalid { background-image: none; }
.depot-limits { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; font-size: .8rem; color: var(--muted); margin-top: .35rem; }
.depot-method { display: flex; align-items: center; gap: .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; margin-top: 1.1rem; background: #fff; }
.depot-method .form-select { min-height: 48px; font-weight: 500; border-color: var(--brand); }
.depot-method-logo { flex: none; display: inline-flex; min-width: 40px; justify-content: center; }
.depot-method-logo:empty::before { content: "\f19c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--muted); font-size: 1.3rem; }
.depot-summary { display: grid; grid-template-columns: 1fr auto; margin: 1.1rem 0 0; border-top: 1px solid var(--line); }
.depot-summary dt, .depot-summary dd { margin: 0; padding: .65rem .25rem; border-bottom: 1px solid var(--line); }
.depot-summary dt { font-weight: 500; color: var(--ink); }
.depot-summary dd { text-align: right; color: var(--ink); white-space: nowrap; }
.depot-summary .depot-total { border-bottom: 0; padding-top: .85rem; }
.depot-summary dd.depot-total { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; color: var(--brand); white-space: normal; }
.depot-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: .25rem; }
.depot-foot strong { color: var(--navy); }
.depot-next { font-weight: 600; min-width: 170px; }
.depot-step2 { border-top: 1px dashed var(--line); margin-top: 1.4rem; padding-top: 1.2rem; }
@media (max-width: 575.98px) {
    .depot-amount .form-control { font-size: 1.5rem; min-height: 62px; }
    .depot-foot { flex-direction: column; align-items: stretch; }
    .depot-next { width: 100%; }
}
@media (max-width: 420px) {
    .depot-method { padding: .75rem; }
    .depot-method-logo { display: none; }
}
