/* ==================================================================
   OtomiaPay — Feuille de style principale (mobile-first)
   Palette : rouge #E50914 / rouge foncé #B80010 / rouge clair #FFE5E8
   ================================================================== */
:root {
  --red: #E50914;
  --red-dark: #B80010;
  --red-light: #FFE5E8;
  --red-soft: #FFF3F4;
  --white: #FFFFFF;
  --bg: #F5F5F7;
  --text: #111827;
  --navy: #0B1640;
  --muted: #64748B;
  --border: #ECEDF1;
  --success: #16A34A;
  --success-bg: #E8F7EE;
  --warning: #D97706;
  --warning-bg: #FFF5E0;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 8px rgba(17, 24, 39, .05);
  --shadow: 0 8px 24px rgba(17, 24, 39, .07);
  --shadow-red: 0 10px 24px rgba(229, 9, 20, .28);
  --nav-h: 76px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { -webkit-tap-highlight-color: transparent; }
html, body { min-height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
.text-muted-2 { color: var(--muted) !important; }
.text-navy { color: var(--navy) !important; }
.text-red { color: var(--red) !important; }
.fw-800 { font-weight: 800 !important; }
.small-2 { font-size: .8rem; }

/* ---------------- Boutons ---------------- */
.btn { border-radius: var(--radius-sm); font-weight: 700; transition: transform .15s var(--ease), box-shadow .2s, background .2s; }
.btn:active { transform: scale(.97); }
.btn-red {
  background: var(--red); color: #fff; border: none;
  box-shadow: var(--shadow-red);
}
.btn-red:hover, .btn-red:focus { background: var(--red-dark); color: #fff; }
.btn-red:disabled { background: #F19AA0; box-shadow: none; color: #fff; }
.btn-outline-red { border: 1.5px solid var(--red); color: var(--red); background: #fff; }
.btn-outline-red:hover { background: var(--red-soft); color: var(--red-dark); }
.btn-soft { background: var(--red-light); color: var(--red); border: none; }
.btn-soft:hover { background: #FFD5DA; color: var(--red-dark); }
.btn-xl { padding: 1rem 1.25rem; font-size: 1.05rem; border-radius: 18px; }
.btn-icon-round {
  width: 50px; height: 50px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; border: none; box-shadow: var(--shadow-red); flex-shrink: 0;
}
.btn-icon-round:hover { background: var(--red-dark); color: #fff; }
.btn-icon-ghost {
  width: 44px; height: 44px; border-radius: 50%; border: none; background: transparent;
  display: inline-flex; align-items: center; justify-content: center; color: var(--navy); position: relative;
}
.btn-icon-ghost:hover { background: rgba(11, 22, 64, .05); }

/* ---------------- Formulaires ---------------- */
.form-label { font-weight: 600; font-size: .85rem; color: var(--navy); margin-bottom: .35rem; }
.form-control, .form-select {
  border-radius: 14px; border: 1.5px solid var(--border); padding: .8rem 1rem; font-size: .98rem; background-color: #fff;
}
.form-control:focus, .form-select:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(229, 9, 20, .1); }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--red); }
.invalid-feedback { color: var(--red-dark); font-weight: 500; }
.form-check-input:checked { background-color: var(--red); border-color: var(--red); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(229, 9, 20, .12); border-color: var(--red); }
.input-icon { position: relative; }
.input-icon > i.lead-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon > .form-control { padding-left: 2.8rem; }
.input-icon > .toggle-password {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  border: none; background: none; color: var(--muted); padding: .4rem .6rem;
}

/* OTP / PIN */
.code-inputs { display: flex; gap: .6rem; justify-content: center; }
.code-inputs input {
  width: 52px; height: 60px; text-align: center; font-size: 1.5rem; font-weight: 800; color: var(--navy);
  border-radius: 14px; border: 1.5px solid var(--border); background: #fff;
}
.code-inputs input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(229, 9, 20, .1); }
.code-inputs.pin input { -webkit-text-security: disc; }
@media (max-width: 380px) { .code-inputs input { width: 44px; height: 54px; } }

/* ---------------- Alertes ---------------- */
.alert { border-radius: 14px; border: none; font-weight: 500; }
.alert-danger { background: var(--red-light); color: var(--red-dark); }
.alert-success { background: var(--success-bg); color: #126C34; }
.alert-warning { background: var(--warning-bg); color: #8A4B00; }
.alert-info { background: #E8F1FF; color: #1D4ED8; }
.dev-banner {
  background: repeating-linear-gradient(45deg, #FFF8E1, #FFF8E1 10px, #FFF1C2 10px, #FFF1C2 20px);
  border: 1.5px dashed #E0A800; border-radius: 14px; padding: .75rem 1rem; color: #6B4E00; font-size: .85rem;
}
.dev-banner strong.code { font-size: 1.25rem; letter-spacing: .25em; color: var(--navy); }

/* ==================================================================
   PAGES D'AUTHENTIFICATION
   ================================================================== */
.auth-body { background: #fff; }
.auth-wrap { min-height: 100vh; display: flex; }
.auth-aside {
  display: none; flex: 1; position: relative; overflow: hidden; color: #fff; padding: 3rem;
  background: radial-gradient(circle at 20% 20%, #FF3B45 0, transparent 45%),
              radial-gradient(circle at 80% 90%, #7A0009 0, transparent 50%),
              linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
}
.auth-aside::after {
  content: ''; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, .07); right: -160px; top: -120px;
}
.auth-aside h2 { font-weight: 800; font-size: 2.4rem; line-height: 1.15; }
.auth-aside .feature { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; font-weight: 500; }
.auth-aside .feature i { width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .15); display: flex; align-items: center; justify-content: center; }
.auth-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 1.5rem 1.25rem 2.5rem; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card.wide { max-width: 640px; }
.auth-logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; color: var(--navy); }
.auth-logo img { width: 44px; height: 44px; }
.auth-title { font-weight: 800; font-size: 1.75rem; color: var(--navy); margin: 1.75rem 0 .35rem; }
.auth-sub { color: var(--muted); margin-bottom: 1.5rem; }
.form-section-title {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--red);
  margin: 1.4rem 0 .8rem; display: flex; align-items: center; gap: .5rem;
}
.form-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider-text { text-align: center; color: var(--muted); font-size: .85rem; margin: 1.25rem 0; }
@media (min-width: 992px) {
  .auth-aside { display: flex; flex-direction: column; justify-content: space-between; }
  .auth-main { align-items: center; padding: 3rem; }
}

/* ==================================================================
   STRUCTURE DE L'APPLICATION
   ================================================================== */
.app-shell { min-height: 100vh; }
.app-main {
  max-width: 560px; margin: 0 auto; padding: 1rem 1rem calc(var(--nav-h) + 2.5rem);
  background: linear-gradient(180deg, #FDF1F2 0, var(--bg) 560px);
  min-height: 100vh;
}
.app-main.plain { background: var(--bg); }

/* En-tête de page (style des captures) */
.page-head { display: flex; align-items: center; gap: .9rem; padding: .5rem 0 1.25rem; }
.page-head .titles { flex: 1; min-width: 0; }
.page-head.center .titles { text-align: center; }
.page-head h1 { font-size: 1.3rem; font-weight: 800; color: var(--navy); margin: 0; }
.page-head .sub { color: var(--muted); font-size: .92rem; }
.page-head .spacer { width: 50px; }

/* Barre supérieure de l'accueil */
.home-top { display: flex; align-items: center; gap: .75rem; padding: .25rem 0 1rem; }
.home-top .brand { width: 48px; height: 48px; border-radius: 14px; }
.home-top .hello { flex: 1; line-height: 1.2; }
.home-top .hello b { color: var(--navy); font-weight: 700; display: block; }
.home-top .hello span { color: var(--muted); font-size: .92rem; }
.lang-chip {
  display: inline-flex; align-items: center; gap: .35rem; border: 1.5px solid var(--border); background: #fff;
  border-radius: 999px; padding: .4rem .8rem; font-weight: 700; color: var(--navy); font-size: .85rem;
}
.badge-dot {
  position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: .65rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

/* Carrousel des comptes */
.balance-track {
  display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 -1rem; padding: 0 1rem .25rem;
}
.balance-track::-webkit-scrollbar { display: none; }
.balance-card {
  flex: 0 0 calc(100% - 1.5rem); scroll-snap-align: center; position: relative; overflow: hidden;
  border-radius: var(--radius-lg); color: #fff; padding: 1.25rem 1.2rem 1.2rem;
  background: linear-gradient(135deg, #FF2B36 0%, var(--red) 45%, var(--red-dark) 100%);
  box-shadow: 0 14px 30px rgba(229, 9, 20, .3);
}
.balance-card::before, .balance-card::after {
  content: ''; position: absolute; background: rgba(255, 255, 255, .08); transform: rotate(35deg);
}
.balance-card::before { width: 260px; height: 260px; right: -90px; top: -120px; border-radius: 40px; }
.balance-card::after { width: 180px; height: 180px; left: 30%; bottom: -130px; border-radius: 30px; }
.balance-card > * { position: relative; z-index: 1; }
.balance-card .label { font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.balance-card .label img { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); }
.cur-chip {
  border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 999px; padding: .3rem .4rem .3rem .8rem;
  font-weight: 800; display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; color: #fff; background: rgba(255,255,255,.06);
}
.cur-chip i { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center; font-size: .7rem; }
.balance-row { display: flex; align-items: center; gap: .8rem; margin: 1rem 0 1.1rem; }
.balance-row .avatar-coin {
  width: 52px; height: 52px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center;
  color: var(--red); font-weight: 800; font-size: 1.1rem; flex-shrink: 0; overflow: hidden;
}
.balance-row .amount { font-size: 2rem; font-weight: 800; letter-spacing: -.5px; line-height: 1; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.balance-row .amount small { font-size: .95rem; font-weight: 700; opacity: .85; }
.round-glass {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .14); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.round-glass:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.balance-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.balance-actions a {
  display: flex; align-items: center; gap: .65rem; border-radius: 16px; padding: .75rem .9rem; color: var(--navy);
  background: #fff; transition: transform .15s var(--ease);
}
.balance-actions a.alt { background: rgba(255, 255, 255, .82); }
.balance-actions a:active { transform: scale(.97); }
.balance-actions a i {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--red); color: var(--red);
  display: flex; align-items: center; justify-content: center; font-size: .8rem;
}
.balance-actions b { display: block; font-weight: 800; line-height: 1.1; }
.balance-actions small { color: var(--muted); font-size: .76rem; }
.reserved-note { font-size: .78rem; opacity: .9; margin-top: -.5rem; margin-bottom: .9rem; }
.carousel-dots { display: flex; justify-content: center; gap: .4rem; margin: .8rem 0 0; }
.carousel-dots span { width: 9px; height: 9px; border-radius: 50%; background: #C9CBD3; transition: all .25s; }
.carousel-dots span.active { background: var(--red); width: 22px; border-radius: 5px; }
.is-masked .mask-target { filter: blur(9px); user-select: none; }

/* Actions rapides */
.quick-actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; margin: 1.2rem 0 .4rem; }
.quick-actions a { text-align: center; color: var(--navy); font-size: .74rem; font-weight: 600; }
.quick-actions a span {
  width: 52px; height: 52px; margin: 0 auto .4rem; border-radius: 17px; background: #fff; display: flex;
  align-items: center; justify-content: center; color: var(--red); font-size: 1.15rem; box-shadow: var(--shadow-sm);
  transition: transform .15s var(--ease), background .2s;
}
.quick-actions a:hover span { background: var(--red-light); }
.quick-actions a:active span { transform: scale(.92); }

/* Cartes génériques */
.card-soft { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid #F1F2F5; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.section-title h2 { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin: 0; }
.section-title a { font-weight: 700; font-size: .85rem; }
.kyc-chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 999px; font-weight: 800; font-size: .8rem;
  background: #E8F3FF; color: #1478D4; border: 1.5px solid #CFE6FF;
}
.kyc-chip.ok { background: var(--success-bg); color: var(--success); border-color: #C8EBD5; }

/* Grille de services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.service-tile {
  border-radius: 18px; padding: 1rem .5rem .85rem; text-align: center; color: var(--navy); font-weight: 600; font-size: .9rem;
  transition: transform .15s var(--ease), box-shadow .2s;
}
.service-tile i { font-size: 1.6rem; display: block; margin-bottom: .5rem; }
.service-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--navy); }
.service-tile:active { transform: scale(.96); }
.tile-red    { background: #FFE9EB; } .tile-red i    { color: var(--red); }
.tile-purple { background: #F6E9FC; } .tile-purple i { color: #A23BC2; }
.tile-amber  { background: #FFF5DD; } .tile-amber i  { color: #D2861A; }
.tile-blue   { background: #E7F1FE; } .tile-blue i   { color: #1E7BE0; }
.tile-rose   { background: #FFEDEF; } .tile-rose i   { color: #E0303B; }
.tile-teal   { background: #E3F6F1; } .tile-teal i   { color: #D2861A; }
.tile-green  { background: #E8F7EE; } .tile-green i  { color: #16A34A; }
.tile-indigo { background: #ECEBFF; } .tile-indigo i { color: #5145CD; }
.tile-slate  { background: #EEF1F6; } .tile-slate i  { color: #334155; }

/* Bannière conseils */
.tips-banner {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 1.1rem 1.1rem 1.2rem;
  background: linear-gradient(110deg, #fff 0%, #fff 48%, #FFE3E6 100%); border: 1px solid #FBD5D9; min-height: 150px;
}
.tips-banner .tag {
  display: inline-flex; align-items: center; gap: .4rem; background: var(--red); color: #fff; border-radius: 999px;
  padding: .25rem .8rem .25rem .3rem; font-weight: 700; font-size: .8rem;
}
.tips-banner .tag i { width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--red); display: flex; align-items: center; justify-content: center; font-size: .72rem; }
.tips-banner h3 { font-weight: 800; color: var(--navy); font-size: 1.45rem; line-height: 1.1; margin: .6rem 0 .35rem; max-width: 62%; }
.tips-banner h3 em { font-style: normal; color: var(--red); }
.tips-banner p { color: var(--navy); font-size: .82rem; margin: 0; max-width: 58%; }
.tips-banner .art { position: absolute; right: .6rem; bottom: .4rem; font-size: 4.8rem; color: var(--red); opacity: .95; filter: drop-shadow(0 8px 12px rgba(229,9,20,.25)); }
.tips-banner .art .coin { position: absolute; font-size: 1.6rem; color: #F5B400; }

/* ---------------- Transactions ---------------- */
.date-heading { font-weight: 800; color: #4B5563; font-size: 1.05rem; margin: 1.1rem 0 .7rem; }
.tx-card { display: block; background: #fff; border-radius: 22px; padding: 1rem 1.1rem .8rem; box-shadow: var(--shadow-sm); margin-bottom: .75rem; color: inherit; border: 1px solid #F1F2F5; transition: transform .15s var(--ease); }
.tx-card:hover { color: inherit; transform: translateY(-1px); box-shadow: var(--shadow); }
.tx-card .row1 { display: flex; align-items: center; gap: .85rem; }
.tx-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--red-light); color: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tx-icon.in { background: var(--success-bg); color: var(--success); }
.tx-card .info { flex: 1; min-width: 0; }
.tx-card .info b { color: var(--navy); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-card .info span { color: var(--muted); font-size: .85rem; }
.tx-card .amt { font-weight: 800; color: #374151; white-space: nowrap; }
.tx-card .amt.plus { color: var(--success); }
.tx-card .row2 { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #F3F4F6; margin-top: .75rem; padding-top: .6rem; }
.tx-card .via { color: var(--muted); font-weight: 600; font-size: .85rem; }
.status-pill { display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; padding: .3rem .8rem; font-weight: 700; font-size: .82rem; border: 1.5px solid; }
.status-pill.success { color: var(--success); background: var(--success-bg); border-color: #C8EBD5; }
.status-pill.pending { color: var(--warning); background: var(--warning-bg); border-color: #FBE3B0; }
.status-pill.failed { color: var(--red); background: var(--red-light); border-color: #FBC3C9; }
.status-pill.cancelled { color: var(--muted); background: #F1F5F9; border-color: #E2E8F0; }
.end-of-list { text-align: center; color: #9CA3AF; font-size: .9rem; margin: 1rem 0; }
.filter-chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .25rem; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chips a { white-space: nowrap; padding: .5rem 1rem; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 700; font-size: .85rem; border: 1.5px solid var(--border); }
.filter-chips a.active { background: var(--red); color: #fff; border-color: var(--red); }

/* États vides (style des captures Prêts / Cartes) */
.empty-state { padding: 3rem .5rem 1rem; }
.empty-state h3 { font-weight: 800; color: var(--navy); font-size: 1.6rem; line-height: 1.2; }
.empty-state ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.empty-state li { display: flex; align-items: center; gap: .9rem; color: #4B5563; font-size: 1.05rem; margin-bottom: .75rem; }
.empty-state li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: var(--red); flex-shrink: 0; }

/* Liste de réglages */
.settings-list { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid #F1F2F5; }
.settings-list a, .settings-list .item { display: flex; align-items: center; gap: .85rem; padding: .95rem 1.1rem; color: var(--navy); font-weight: 600; border-bottom: 1px solid #F3F4F6; }
.settings-list a:last-child, .settings-list .item:last-child { border-bottom: none; }
.settings-list a:hover { background: #FAFAFB; }
.settings-list .ico { width: 38px; height: 38px; border-radius: 12px; background: var(--red-light); color: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.settings-list .grow { flex: 1; min-width: 0; }
.settings-list small { display: block; color: var(--muted); font-weight: 500; }
.settings-list .chev { color: #C0C4CC; }
.avatar-lg { width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; font-weight: 800; font-size: 1.8rem; display: flex; align-items: center; justify-content: center; margin: 0 auto; box-shadow: var(--shadow-red); }

/* Notifications */
.notif-item { display: flex; gap: .85rem; padding: 1rem; background: #fff; border-radius: 18px; margin-bottom: .6rem; border: 1px solid #F1F2F5; }
.notif-item.unread { border-color: #FBC3C9; background: linear-gradient(90deg, #FFF6F7, #fff); }
.notif-item .ico { width: 42px; height: 42px; border-radius: 50%; background: var(--red-light); color: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-item b { color: var(--navy); }
.notif-item p { margin: .15rem 0 .25rem; color: #4B5563; font-size: .9rem; }

/* ---------------- Navigation basse flottante ---------------- */
.bottom-nav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 1030; width: min(92%, 400px); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
  border-radius: 999px; box-shadow: 0 10px 30px rgba(17, 24, 39, .12); display: flex; padding: .45rem; border: 1px solid #F1F2F5;
}
.bottom-nav a {
  flex: 1; text-align: center; color: var(--text); font-size: .78rem; font-weight: 600; border-radius: 999px; padding: .45rem 0 .4rem;
  transition: background .25s var(--ease), color .25s;
}
.bottom-nav a i { display: block; font-size: 1.35rem; margin-bottom: .15rem; }
.bottom-nav a.active { background: var(--red-light); color: var(--red); }
.bottom-nav a:active { transform: scale(.96); }

.support-fab {
  position: fixed; right: 16px; bottom: calc(var(--nav-h) + 28px + env(safe-area-inset-bottom)); z-index: 1031;
  width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center;
  justify-content: center; font-size: 1.6rem; box-shadow: var(--shadow-red); transition: transform .2s var(--ease);
}
.support-fab:hover { color: #fff; transform: scale(1.06); background: var(--red-dark); }

/* ---------------- Barre latérale (ordinateur) ---------------- */
.sidebar { display: none; }
@media (min-width: 992px) {
  .app-shell { display: flex; }
  .sidebar {
    display: flex; flex-direction: column; width: 270px; flex-shrink: 0; position: sticky; top: 0; height: 100vh;
    background: #fff; border-right: 1px solid var(--border); padding: 1.5rem 1rem;
  }
  .sidebar .brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; color: var(--navy); padding: 0 .5rem 1.5rem; }
  .sidebar .brand img { width: 40px; height: 40px; }
  .sidebar nav { flex: 1; overflow-y: auto; }
  .sidebar .nav-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: #9CA3AF; font-weight: 800; padding: 1rem .75rem .4rem; }
  .sidebar a.link { display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; border-radius: 12px; color: #374151; font-weight: 600; margin-bottom: 2px; }
  .sidebar a.link i { width: 20px; text-align: center; color: #9CA3AF; }
  .sidebar a.link:hover { background: var(--bg); }
  .sidebar a.link.active { background: var(--red-light); color: var(--red); }
  .sidebar a.link.active i { color: var(--red); }
  .sidebar a.link .soon { margin-left: auto; font-size: .62rem; font-weight: 800; color: #9CA3AF; background: #F3F4F6; padding: .1rem .45rem; border-radius: 6px; }
  .app-content { flex: 1; min-width: 0; background: linear-gradient(180deg, #FDF1F2 0, var(--bg) 560px); }
  .app-main, .app-main.plain { background: transparent; }
  .app-main { max-width: 760px; padding-top: 2rem; padding-bottom: 3rem; }
  .bottom-nav { display: none; }
  .support-fab { bottom: 28px; right: 28px; }
  .balance-card { flex-basis: calc(50% - .45rem); }
}
@media (min-width: 1400px) { .app-main { max-width: 900px; } }

/* ---------------- Animations ---------------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .45s var(--ease) both; }
.fade-up.d1 { animation-delay: .05s; } .fade-up.d2 { animation-delay: .1s; } .fade-up.d3 { animation-delay: .15s; } .fade-up.d4 { animation-delay: .2s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.spinner-inline { width: 1rem; height: 1rem; border-width: .15em; }
.upcoming-hero { width: 96px; height: 96px; border-radius: 28px; background: var(--red-light); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; margin: 2rem auto 1.25rem; }
.step-badge { display: inline-block; background: var(--navy); color: #fff; border-radius: 999px; padding: .3rem .9rem; font-weight: 700; font-size: .8rem; }
.detail-row { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px dashed #E5E7EB; }
.detail-row:last-child { border-bottom: none; }
.detail-row span { color: var(--muted); }
.detail-row b { color: var(--navy); text-align: right; word-break: break-all; }

/* ==================================================================
   SERVICES : Épargnes, Likelemba, AVEC, Cartes, Prêts (web + mobile)
   ================================================================== */
/* Onglets segmentés (maquette Épargnes : LIKELEMBA / AVEC / PERSONNEL) */
.seg-tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: 22px; padding: 6px; border: 1px solid #ECEDF1; margin-bottom: 1rem; }
.seg-tabs a { text-align: center; padding: .8rem .25rem; border-radius: 17px; font-weight: 800; font-size: .88rem; letter-spacing: .02em; color: var(--navy); transition: background .2s, color .2s; }
.seg-tabs a.active { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }

/* Filtres à icônes (maquette Prêts : Tous / ✓ / ⏱ / ✕ / ⊘) */
.icon-tabs { display: flex; background: #fff; border-radius: 999px; border: 1px solid #ECEDF1; overflow: hidden; margin-bottom: 1rem; }
.icon-tabs a { flex: 1; display: flex; align-items: center; justify-content: center; padding: .7rem .2rem; font-size: 1.25rem; color: var(--navy); }
.icon-tabs a:first-child { flex: 1.15; font-size: .95rem; font-weight: 700; }
.icon-tabs a.active { background: var(--red); color: #fff !important; }
.icon-tabs .ok { color: var(--success); } .icon-tabs .wait { color: #F59E0B; } .icon-tabs .ko { color: var(--red); } .icon-tabs .off { color: #64748B; }
.icon-tabs a .count { font-size: .65rem; font-weight: 800; margin-left: .2rem; vertical-align: top; }

/* Bouton d'action d'en-tête (maquette : « Demander », « Acheter ») */
.btn-head { display: inline-flex; align-items: center; gap: .45rem; background: var(--red); color: #fff; border-radius: 999px; padding: .6rem 1.1rem; font-weight: 700; box-shadow: var(--shadow-red); white-space: nowrap; }
.btn-head:hover { color: #fff; background: var(--red-dark); }

/* Carte « vide » blanche (maquette Aucun group) */
.panel-empty { background: #fff; border-radius: 26px; padding: 3.5rem 1.4rem 1.6rem; border: 1px solid #F1F2F5; }
.panel-empty h3 { font-weight: 800; color: var(--navy); font-size: 1.75rem; margin-bottom: .4rem; }
.panel-empty p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.5rem; }

/* Cartes d'objectif / de groupe */
.item-card { display: block; background: #fff; border-radius: 22px; padding: 1.1rem; border: 1px solid #F1F2F5; box-shadow: var(--shadow-sm); margin-bottom: .8rem; color: inherit; transition: transform .15s var(--ease); }
.item-card:hover { color: inherit; transform: translateY(-1px); box-shadow: var(--shadow); }
.item-card .head { display: flex; align-items: center; gap: .8rem; margin-bottom: .7rem; }
.item-card .head .ico { width: 46px; height: 46px; border-radius: 15px; background: var(--red-light); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
.item-card .head b { color: var(--navy); display: block; }
.item-card .head small { color: var(--muted); }
.item-card .amounts { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .45rem; }
.item-card .amounts b { font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.goal-progress { height: 10px; background: #F1F2F5; border-radius: 6px; overflow: hidden; margin-bottom: .3rem; }
.goal-progress span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #FF4049, var(--red)); transition: width .6s var(--ease); }

/* Bloc de synthèse rouge (solde d'un objectif / d'une caisse) */
.hero-stat { position: relative; overflow: hidden; border-radius: 26px; padding: 1.3rem; color: #fff; background: linear-gradient(135deg, #FF2B36, var(--red) 45%, var(--red-dark)); box-shadow: 0 14px 30px rgba(229, 9, 20, .28); margin-bottom: 1rem; }
.hero-stat::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 40px; right: -80px; top: -110px; background: rgba(255,255,255,.08); transform: rotate(35deg); }
.hero-stat > * { position: relative; z-index: 1; }
.hero-stat .lbl { opacity: .85; font-size: .88rem; font-weight: 600; }
.hero-stat .val { font-size: 2rem; font-weight: 800; letter-spacing: -.5px; line-height: 1.15; }
.hero-stat .goal-progress { background: rgba(255,255,255,.25); margin-top: .8rem; }
.hero-stat .goal-progress span { background: #fff; }
.hero-stat small { color: rgba(255,255,255,.85) !important; }
.hero-stat .row-mini { display: flex; gap: 1rem; margin-top: .9rem; font-size: .82rem; }
.hero-stat .row-mini b { display: block; font-size: 1rem; }

/* Actions en grille */
.action-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-bottom: 1rem; }
.action-grid .btn { padding: .9rem; border-radius: 16px; }

/* Membres, calendrier, listes */
.list-row { display: flex; align-items: center; gap: .8rem; padding: .75rem 0; border-bottom: 1px solid #F3F4F6; }
.list-row:last-child { border-bottom: none; }
.avatar-sm { width: 40px; height: 40px; border-radius: 50%; background: var(--red-light); color: var(--red); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .85rem; }
.avatar-sm.me { background: var(--red); color: #fff; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .grow b { color: var(--navy); display: block; font-size: .95rem; }
.list-row .grow small { color: var(--muted); }
.round-no { width: 40px; height: 40px; border-radius: 12px; background: #F1F2F5; color: var(--navy); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.round-no.current { background: var(--red); color: #fff; }
.round-no.done { background: var(--success-bg); color: var(--success); }
.invite-box { display: flex; align-items: center; gap: .8rem; background: var(--red-soft); border: 1.5px dashed #FBC3C9; border-radius: 18px; padding: .9rem 1rem; margin-bottom: 1rem; }
.invite-box b { font-size: 1.35rem; letter-spacing: .14em; color: var(--red-dark); }
.section-card { background: #fff; border-radius: 22px; border: 1px solid #F1F2F5; padding: 1.1rem; margin-bottom: 1rem; }
.section-card h2 { font-size: 1.02rem; font-weight: 800; color: var(--navy); margin-bottom: .6rem; }
.pin-input { letter-spacing: .6em; font-weight: 800; font-size: 1.2rem !important; }
.form-card { background: #fff; border-radius: 22px; border: 1px solid #F1F2F5; padding: 1.2rem; }
.amount-input { font-size: 1.6rem !important; font-weight: 800; color: var(--navy); }
.summary-box { background: var(--bg); border-radius: 16px; padding: .4rem 1rem; margin-bottom: 1rem; }

/* Carte virtuelle */
.vcard { position: relative; aspect-ratio: 1.586; border-radius: 22px; padding: 1.3rem; color: #fff; overflow: hidden; margin-bottom: 1rem;
  background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.18) 0, transparent 40%), linear-gradient(135deg, #1F2937 0%, #0B1640 60%, #3B0A12 100%); box-shadow: 0 18px 36px rgba(11,22,64,.3); }
.vcard.red { background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.2) 0, transparent 40%), linear-gradient(135deg, #FF2B36, var(--red) 45%, var(--red-dark)); box-shadow: 0 18px 36px rgba(229,9,20,.3); }
.vcard .top { display: flex; justify-content: space-between; align-items: center; }
.vcard .chip { width: 44px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, #F7D774, #C9A23A); margin-top: 1.2rem; }
.vcard .pan { font-size: 1.25rem; letter-spacing: .14em; font-weight: 700; margin-top: 1rem; font-family: ui-monospace, Menlo, monospace; }
.vcard .bottom { position: absolute; left: 1.3rem; right: 1.3rem; bottom: 1.1rem; display: flex; justify-content: space-between; align-items: flex-end; font-size: .8rem; }
.vcard .bottom b { display: block; font-size: .95rem; letter-spacing: .05em; }
.vcard .brand { font-size: 2.2rem; }
.vcard .state { position: absolute; inset: 0; background: rgba(11,22,64,.55); display: flex; align-items: center; justify-content: center; font-weight: 800; letter-spacing: .08em; backdrop-filter: blur(2px); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.choice-grid label { border: 1.5px solid var(--border); border-radius: 16px; padding: .9rem; display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--navy); cursor: pointer; }
.choice-grid input { accent-color: var(--red); }
.choice-grid label:has(input:checked) { border-color: var(--red); background: var(--red-soft); }

/* Échéancier */
.sched-table { width: 100%; font-size: .86rem; }
.sched-table th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; padding: .4rem .25rem; }
.sched-table td { padding: .55rem .25rem; border-top: 1px solid #F3F4F6; }
.sched-table td:last-child, .sched-table th:last-child { text-align: right; }

/* ---------- Cartes : visuels Visa / Mastercard (maquette « Choisissez une carte ») ---------- */
.pcard { position: relative; display: block; aspect-ratio: 1.6; border-radius: 22px; overflow: hidden; color: #fff; padding: 1.4rem 1.3rem;
  box-shadow: 0 14px 30px rgba(11, 22, 64, .28); margin-bottom: 1.1rem; transition: transform .2s var(--ease), box-shadow .2s; isolation: isolate; }
a.pcard:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 20px 40px rgba(11, 22, 64, .34); }
a.pcard:active { transform: scale(.98); }
.pcard.visa { background: linear-gradient(135deg, #0A2A8A 0%, #071C63 45%, #06154D 100%); }
.pcard.visa::before { content: ''; position: absolute; z-index: -1; width: 160%; height: 70%; left: -30%; top: -12%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(52, 96, 220, .55), transparent 65%); transform: rotate(-8deg); }
.pcard.visa::after { content: ''; position: absolute; z-index: -1; width: 120%; height: 120%; right: -62%; bottom: -96%; border-radius: 50%;
  border-top: 14px solid #F2B21B; box-shadow: 0 -6px 18px rgba(242, 178, 27, .35); transform: rotate(-10deg); }
.pcard.visa .wm { position: absolute; z-index: -1; right: 6%; bottom: 3%; font-size: 3.6rem; font-weight: 900; font-style: italic; color: rgba(255,255,255,.06); letter-spacing: -1px; }
.pcard.mastercard { background: linear-gradient(140deg, #1A2238 0%, #0E1424 55%, #0B101D 100%); }
.pcard.mastercard::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.05) 31%, transparent 55%); }
.pcard.mastercard::after { content: ''; position: absolute; z-index: -1; width: 90%; height: 110%; right: -40%; bottom: -70%; border-radius: 48% 52% 0 0;
  background: linear-gradient(120deg, #B3121F 0%, #E5212E 40%, #F7781E 80%); transform: rotate(-24deg); opacity: .95; }
.pcard .logo { position: absolute; top: 1.1rem; right: 1.3rem; }
.pcard .visa-word { font-size: 2.6rem; font-weight: 900; font-style: italic; letter-spacing: -1.5px; line-height: 1; }
.mc-logo { display: inline-flex; flex-direction: column; align-items: center; }
.mc-logo .circles { position: relative; width: 74px; height: 46px; }
.mc-logo .circles i { position: absolute; top: 0; width: 46px; height: 46px; border-radius: 50%; }
.mc-logo .circles i:first-child { left: 0; background: #EB001B; }
.mc-logo .circles i:last-child { right: 0; background: #F79E1B; mix-blend-mode: normal; opacity: .92; }
.mc-logo span { font-size: .78rem; font-weight: 600; letter-spacing: .02em; margin-top: 2px; }
.mc-logo.sm .circles { width: 48px; height: 30px; } .mc-logo.sm .circles i { width: 30px; height: 30px; } .mc-logo.sm span { font-size: .55rem; }
.pcard .emv { display: flex; align-items: center; gap: .9rem; margin-top: 1.9rem; }
.pcard .emv .chip { width: 50px; height: 38px; border-radius: 8px; background: linear-gradient(135deg, #E8E8E8, #A9A9A9 60%, #D7D7D7);
  position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.pcard .emv .chip::before { content: ''; position: absolute; inset: 9px 14px; border: 1.5px solid rgba(0,0,0,.25); border-radius: 4px; }
.pcard .emv .chip::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid rgba(0,0,0,.25); }
.pcard .emv .nfc { font-size: 1.5rem; transform: rotate(90deg); opacity: .95; }
.pcard .num { font-size: 1.25rem; font-weight: 700; letter-spacing: .12em; margin-top: .65rem; display: flex; gap: 1rem; align-items: baseline; }
.pcard .num b { font-size: 1.55rem; letter-spacing: .04em; }
.pcard .exp { margin-top: .35rem; font-size: .78rem; opacity: .85; line-height: 1.15; }
.pcard .exp b { display: block; font-size: 1.05rem; opacity: 1; }
.pcard .holder { margin-top: .25rem; font-size: .9rem; font-weight: 600; letter-spacing: .03em; opacity: .9; }
.pcard .state { position: absolute; inset: 0; background: rgba(11,22,64,.58); display: flex; align-items: center; justify-content: center; font-weight: 800; letter-spacing: .08em; backdrop-filter: blur(2px); }
@media (max-width: 380px) { .pcard .emv { margin-top: 1.2rem; } .pcard .num { font-size: 1.05rem; } .pcard .num b { font-size: 1.3rem; } }

/* ---------- Cartes : fiche « Commander une carte » ---------- */
.offer-head { background: #0E1530; border-radius: 22px; padding: 1.1rem 1.2rem; color: #fff; position: relative; margin-bottom: 1rem; }
.offer-head.visa { background: linear-gradient(135deg, #0A2A8A, #06154D); }
.offer-head .tier { position: absolute; top: 1.1rem; right: 1.2rem; display: inline-flex; align-items: center; gap: .4rem; border: 1.5px solid #FF5A63;
  background: rgba(229, 9, 20, .85); color: #fff; font-weight: 800; letter-spacing: .06em; font-size: .85rem; padding: .35rem .85rem; border-radius: 10px; }
.offer-head h3 { font-weight: 800; font-size: 1.3rem; margin: .7rem 0 .55rem; letter-spacing: .02em; }
.offer-head .validity { display: inline-block; background: rgba(255,255,255,.12); border-radius: 10px; padding: .3rem .7rem; font-weight: 700; font-size: .85rem; }
.offer-head .price { position: absolute; right: 1.2rem; bottom: 1.1rem; background: #fff; color: var(--navy); font-weight: 800; font-size: 1.15rem; border-radius: 14px; padding: .55rem 1.1rem; }
.offer-head .visa-word { font-size: 1.9rem; font-weight: 900; font-style: italic; letter-spacing: -1px; line-height: 1; }
.fee-row { display: flex; align-items: center; gap: .6rem; padding: .35rem 0 .35rem .9rem; font-size: .95rem; }
.fee-row .lbl { flex: 1; color: #374151; }
.fee-row .pct { font-weight: 800; color: var(--navy); }
.min-pill { background: var(--red-light); border: 1.5px solid #FBC3C9; color: var(--red-dark); font-weight: 700; font-size: .78rem; padding: .2rem .55rem; border-radius: 8px; white-space: nowrap; }
.admin-note { background: var(--red-light); color: var(--red-dark); border-radius: 12px; text-align: center; font-weight: 700; font-size: .85rem; padding: .45rem; margin: .8rem 0 .7rem; }
.explain-box { background: #FFF1F2; border: 1.5px solid #FBC3C9; border-radius: 16px; padding: .9rem 1rem; display: flex; gap: .7rem; font-size: .9rem; color: var(--navy); font-weight: 500; }
.explain-box i { color: var(--red); margin-top: .15rem; }
.caps-btn { display: inline-flex; align-items: center; gap: .4rem; background: var(--red-light); color: var(--red-dark); border: none; border-radius: 12px; padding: .4rem .8rem; font-weight: 700; font-size: .9rem; }
.btn-darkred { background: linear-gradient(180deg, #C8101C, #A80C16); color: #fff; border: none; box-shadow: 0 10px 22px rgba(168, 12, 22, .35); }
.btn-darkred:hover { color: #fff; background: #9A0A13; }

.page-head.center .titles { text-align: center; }

/* ==================================================================
   ARGENT : Alimenter, Retirer, Transférer, Convertir, Payer (maquettes)
   ================================================================== */
/* Carte « MONTANT / Entrez le montant ici » */
.amount-card { position: relative; overflow: hidden; background: #fff; border: 1.5px solid #E8E9EE; border-radius: 26px; padding: 1.3rem 1.2rem 1.6rem; margin-bottom: 1.2rem; }
.amount-card::before, .amount-card::after { content: ''; position: absolute; border-radius: 50%; background: #FDECEE; z-index: 0; }
.amount-card::before { width: 260px; height: 260px; left: -110px; top: 35px; }
.amount-card::after { width: 220px; height: 220px; right: -70px; top: -70px; }
.amount-card > * { position: relative; z-index: 1; }
.amount-card .lbl { font-weight: 800; letter-spacing: .04em; color: var(--navy); }
.amount-card .hint { color: #5B6B9A; font-size: .95rem; }
.amount-card .cur-select { position: absolute; top: 1.3rem; right: 1.2rem; border: 1.5px solid #E2E4EA; border-radius: 999px; background: #fff; font-weight: 800; color: var(--navy);
  padding: .3rem 1.8rem .3rem .8rem; font-size: .95rem; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230B1640' stroke-width='2' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .55rem center; background-size: 12px; }
.amount-card .cur-static { position: absolute; top: 1.3rem; right: 1.2rem; border: 1.5px solid #E2E4EA; border-radius: 999px; background: #fff; font-weight: 800; color: var(--navy); padding: .3rem .8rem; font-size: .95rem; }
.amount-card .big { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: 1.6rem; }
.amount-card .big input { border: none; background: transparent; outline: none; font-size: 3rem !important; font-weight: 800; color: var(--navy); text-align: right; width: 55%; min-width: 0; padding: 0; }
.amount-card .big input::placeholder { color: #9AA3B5; }
.amount-card .big span { font-size: 2.6rem; font-weight: 900; color: #0A0A0A; }
.amount-card .sub-info { text-align: center; color: var(--muted); font-size: .85rem; margin-top: .6rem; }

/* Choix du moyen de paiement */
.method-list { display: grid; gap: .6rem; margin-bottom: 1rem; }
.method-list label { display: flex; align-items: center; gap: .8rem; border: 1.5px solid var(--border); border-radius: 18px; padding: .85rem 1rem; background: #fff; cursor: pointer; transition: border-color .2s, background .2s; }
.method-list label:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.method-list label.off { opacity: .55; cursor: not-allowed; }
.method-list input { accent-color: var(--red); width: 20px; height: 20px; }
.method-list .mm-ico { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: .8rem; flex-shrink: 0; }
.method-list .grow { flex: 1; }
.method-list b { color: var(--navy); display: block; }
.method-list small { color: var(--muted); }
.mode-badge { font-size: .68rem; font-weight: 800; padding: .2rem .5rem; border-radius: 7px; white-space: nowrap; }
.mode-badge.live { background: var(--success-bg); color: var(--success); }
.mode-badge.sandbox { background: #FFF5DD; color: #8A5A00; }
.mode-badge.pending_integration { background: #EEF1F6; color: #64748B; }

/* Convertir (maquette en feuille) */
.conv-sheet { background: #fff; border-radius: 28px; padding: 1.2rem 1.1rem 1.4rem; box-shadow: var(--shadow); }
.conv-sheet .grab { width: 54px; height: 5px; border-radius: 3px; background: #D9DBE2; margin: 0 auto 1rem; }
.conv-sheet h2 { font-weight: 800; color: var(--navy); font-size: 1.5rem; margin-bottom: .9rem; }
.conv-box { background: #FFECEF; border: 1.5px solid #FBD5DA; border-radius: 22px; padding: 1rem 1rem .8rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.conv-box input { flex: 1; min-width: 0; border: none; background: transparent; outline: none; font-size: 2.6rem !important; font-weight: 800; color: #9AA3B5; padding: 0; }
.conv-box input.to { color: var(--red); }
.conv-box .cur-pill { display: flex; align-items: center; gap: .55rem; background: #fff; border-radius: 999px; padding: .45rem .55rem .45rem .5rem; box-shadow: var(--shadow-sm); }
.conv-box .cur-pill img, .conv-box .cur-pill .ci { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; }
.conv-box .cur-pill .ci { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; }
.conv-box .cur-pill select { border: none; background: transparent; font-weight: 800; color: var(--navy); font-size: 1.05rem; outline: none; padding-right: .2rem; }
.conv-box .have { width: 100%; text-align: right; color: var(--muted); font-size: .85rem; }
.conv-swap { width: 46px; height: 46px; border-radius: 50%; background: #FDECEE; color: var(--navy); display: flex; align-items: center; justify-content: center; margin: .6rem auto; border: none; }

/* Payer : catalogue de services (maquette) */
.pay-cat { background: #FFEFF1; border-radius: 26px; padding: 1rem; margin-bottom: 1rem; }
.pay-cat .cat-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .9rem; }
.pay-cat .cat-head span.ic { width: 52px; height: 52px; border-radius: 14px; background: #FFDDE1; color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.pay-cat .cat-head b { letter-spacing: .12em; text-transform: uppercase; color: var(--navy); font-size: .9rem; }
.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.pay-tile { position: relative; background: #fff; border-radius: 20px; padding: 1rem .4rem .9rem; text-align: center; color: var(--navy); font-weight: 800; font-size: .95rem; line-height: 1.15; transition: transform .15s var(--ease); }
.pay-tile:hover { color: var(--navy); transform: translateY(-2px); }
.pay-tile .bi { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto .55rem; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.pay-tile .soon { position: absolute; top: 6px; right: 6px; font-size: .58rem; font-weight: 800; background: #EEF1F6; color: #64748B; padding: .1rem .35rem; border-radius: 6px; }
.country-chip { display: inline-flex; align-items: center; gap: .5rem; background: #FFE5E8; border-radius: 16px; padding: .3rem .4rem .3rem .9rem; }
.country-chip select { border: none; background: transparent; font-weight: 700; color: var(--navy); outline: none; }

/* Bénéficiaire identifié */
.benef { display: flex; align-items: center; gap: .8rem; background: var(--success-bg); border: 1.5px solid #C8EBD5; border-radius: 18px; padding: .8rem 1rem; margin-bottom: 1rem; }
.benef b { color: var(--navy); display: block; }
.token-box { background: #0B1640; color: #fff; border-radius: 18px; padding: 1rem; text-align: center; font-family: ui-monospace, Menlo, monospace; font-size: 1.25rem; letter-spacing: .08em; margin-bottom: 1rem; }
button.cur-chip { font: inherit; font-weight: 800; cursor: pointer; }
.balance-card a.label:hover { color: #fff; opacity: .9; }

/* ==================================================================
   Business · Cryptos · KYC · Support · Langues (étapes 4, 9, 10)
   ================================================================== */
.list-row > .mm-ico, .card-soft .mm-ico, .section-card .list-row .mm-ico { width: 42px; height: 42px; border-radius: 14px; background: var(--red-light); color: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; }
a.list-row { color: inherit; }
.copy-field { display: flex; gap: .4rem; }
.copy-field .form-control { font-size: .85rem; background: var(--bg); }
.qr-box { width: 220px; max-width: 70vw; aspect-ratio: 1; background: #fff; border-radius: 18px; padding: 10px; border: 1px solid var(--border); }
.qr-box svg { width: 100%; height: 100%; display: block; }
.choice-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: var(--bg); padding: 5px; border-radius: 16px; }
.choice-seg label { text-align: center; padding: .7rem .4rem; border-radius: 12px; font-weight: 700; font-size: .88rem; cursor: pointer; color: var(--navy); }
.choice-seg input { position: absolute; opacity: 0; pointer-events: none; }
.choice-seg label:has(input:checked) { background: #fff; color: var(--red); box-shadow: var(--shadow-sm); }
.choice-seg label:focus-within { outline: 2px solid var(--red); outline-offset: 1px; }
.seg-tabs.two { grid-template-columns: 1fr 1fr; }

/* Business */
.biz-tabs { display: flex; gap: .4rem; overflow-x: auto; margin-bottom: 1rem; scrollbar-width: none; }
.biz-tabs::-webkit-scrollbar { display: none; }
.biz-tabs a { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .65rem .9rem; border-radius: 14px; background: #fff; border: 1px solid var(--border); color: var(--navy); font-weight: 700; font-size: .88rem; white-space: nowrap; }
.biz-tabs a.active { background: var(--red); color: #fff; border-color: var(--red); box-shadow: var(--shadow-red); }
.biz-logo { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.1rem; flex-shrink: 0; }
.biz-hero { background: linear-gradient(135deg, #1A1F36, #0B1640); color: #fff; border-radius: 24px; padding: 1.2rem; margin-bottom: 1rem; }
.biz-hero b { display: block; font-size: 1.15rem; }
.biz-hero small { color: rgba(255, 255, 255, .7); }
.biz-hero .text-success { color: #4ADE80 !important; }
.biz-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1rem; }
.biz-kpis > div { background: rgba(255, 255, 255, .08); border-radius: 16px; padding: .8rem; }
.biz-kpis small { display: block; font-size: .75rem; }
.biz-kpis b { font-size: 1.15rem; margin: .2rem 0; }
.biz-kpis span { font-size: .75rem; color: rgba(255, 255, 255, .65); }
.biz-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
@media (min-width: 992px) { .biz-actions { grid-template-columns: repeat(4, 1fr); } }
.biz-actions a { background: #fff; border: 1px solid #F1F2F5; border-radius: 20px; padding: 1rem; color: var(--navy); box-shadow: var(--shadow-sm); transition: transform .15s var(--ease); }
.biz-actions a:hover { transform: translateY(-2px); color: var(--navy); }
.biz-actions i { width: 42px; height: 42px; border-radius: 14px; background: var(--red-light); color: var(--red); display: flex; align-items: center; justify-content: center; margin-bottom: .6rem; }
.biz-actions b { display: block; font-size: .95rem; }
.biz-actions small { color: var(--muted); font-size: .78rem; }
.biz-intro { display: grid; gap: .7rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .biz-intro { grid-template-columns: repeat(3, 1fr); } }
.biz-intro > div { background: #fff; border-radius: 20px; padding: 1rem; border: 1px solid #F1F2F5; }
.biz-intro i { color: var(--red); font-size: 1.4rem; margin-bottom: .4rem; display: block; }
.biz-intro b { display: block; color: var(--navy); }
.biz-intro small { color: var(--muted); }
.cur-switch { display: inline-flex; background: var(--bg); border-radius: 12px; padding: 3px; }
.cur-switch a { padding: .35rem .8rem; border-radius: 9px; font-weight: 800; font-size: .82rem; color: var(--muted); }
.cur-switch a.active { background: var(--red); color: #fff; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.pos-item { background: var(--bg); border-radius: 16px; padding: .75rem; display: flex; flex-direction: column; gap: .2rem; }
.pos-item b { color: var(--navy); font-size: .9rem; line-height: 1.2; }
.pos-item small { color: var(--muted); font-size: .78rem; }
.pos-item.out { opacity: .5; }
.pos-item .qty { display: flex; align-items: center; gap: .3rem; margin-top: .4rem; }
.pos-item .qty button { width: 34px; height: 34px; border-radius: 10px; border: none; background: #fff; color: var(--red); font-weight: 900; font-size: 1.1rem; box-shadow: var(--shadow-sm); }
.pos-item .qty input { flex: 1; min-width: 0; text-align: center; border: none; background: #fff; border-radius: 10px; height: 34px; font-weight: 800; color: var(--navy); }
.pos-total { font-size: 1.35rem; font-weight: 900; color: var(--red); padding: .35rem 0; }
.secret-once { background: #FFF8E6; border: 1.5px solid #F5C451; border-radius: 18px; padding: 1rem; margin-bottom: 1rem; }
.pin-mini { width: 74px; }
.code-block { background: #0B1640; color: #E2E8F0; border-radius: 14px; padding: .9rem; font-size: .78rem; white-space: pre-wrap; word-break: break-all; }
.api-doc code { color: var(--red-dark); }
.receipt-ticket .detail-row.total b { font-size: 1.2rem; }
.pay-public { max-width: 440px; }
.pay-amount { font-size: 2rem; font-weight: 900; color: var(--red); margin-top: .3rem; }
@media print { .app-sidebar, .bottom-nav, .support-fab, .page-head, .biz-tabs, .btn, .m-nav, .m-fab { display: none !important; } .receipt-ticket { border: none; } }

/* Cryptos */
.crypto-hero { background: linear-gradient(135deg, #0B1640, #1E2A5A); color: #fff; border-radius: 24px; padding: 1.3rem; margin-bottom: 1rem; }
.crypto-hero small { color: rgba(255, 255, 255, .75); }
.crypto-hero .amount { font-size: 2rem; font-weight: 900; margin: .2rem 0; }
.coin { width: 44px; height: 44px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; flex-shrink: 0; }
.coin.big { width: 62px; height: 62px; font-size: 1.5rem; }
.crypto-row { display: flex; align-items: center; gap: .8rem; background: #fff; border: 1px solid #F1F2F5; border-radius: 20px; padding: .85rem 1rem; margin-bottom: .6rem; color: inherit; box-shadow: var(--shadow-sm); }
.crypto-row:hover { color: inherit; box-shadow: var(--shadow); }
.crypto-row .grow { flex: 1; min-width: 0; }
.crypto-row b { display: block; color: var(--navy); }
.crypto-row small { color: var(--muted); font-size: .8rem; display: block; }
.notice-card { display: flex; gap: .9rem; background: var(--warning-bg); border: 1px solid #FBE3B0; border-radius: 20px; padding: 1rem; margin-bottom: 1rem; }
.notice-card > i { color: var(--warning); font-size: 1.4rem; margin-top: .15rem; }
.notice-card b { color: var(--navy); }

/* KYC */
.kyc-levels { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1rem; }
.kyc-levels > div { background: #fff; border: 1.5px solid var(--border); border-radius: 20px; padding: 1rem; }
.kyc-levels > div.current { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-light); }
.kyc-levels .dot { width: 32px; height: 32px; border-radius: 50%; background: var(--bg); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 900; margin-bottom: .5rem; }
.kyc-levels .done .dot { background: var(--success); color: #fff; }
.kyc-levels b { display: block; color: var(--navy); }
.kyc-levels small { color: var(--muted); font-size: .78rem; }
.kyc-uploads { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.kyc-drop { position: relative; border: 2px dashed #D9DCE3; border-radius: 18px; padding: 1rem .5rem; text-align: center; cursor: pointer; background: var(--bg); transition: border-color .15s; }
.kyc-drop:hover, .kyc-drop:focus-within { border-color: var(--red); }
.kyc-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.kyc-drop i { font-size: 1.5rem; color: var(--red); display: block; margin-bottom: .3rem; }
.kyc-drop b { display: block; color: var(--navy); font-size: .9rem; }
.kyc-drop small { color: var(--muted); font-size: .72rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kyc-drop.filled { border-style: solid; border-color: var(--success); background: var(--success-bg); }
.kyc-drop.filled i { color: var(--success); }
.upcoming-hero.ok { background: var(--success-bg); color: var(--success); }
.kyc-review { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.kyc-review figure { margin: 0; }
.kyc-review img { width: 100%; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); aspect-ratio: 4/3; object-fit: contain; }
.kyc-review figcaption { font-size: .8rem; color: var(--muted); text-align: center; margin-top: .3rem; }

/* Support */
.support-hero { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; border-radius: 22px; padding: 1.1rem; margin-bottom: 1rem; }
.support-hero > i { font-size: 1.8rem; }
.support-hero > div { flex: 1; min-width: 200px; }
.support-hero b { display: block; }
.support-hero small { color: rgba(255, 255, 255, .85); }
.faq details { background: #fff; border: 1px solid #F1F2F5; border-radius: 16px; padding: .85rem 1rem; margin-bottom: .5rem; }
.faq summary { font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: .5rem; }
.faq summary::after { content: '+'; color: var(--red); font-weight: 900; }
.faq details[open] summary::after { content: '−'; }
.faq p { color: var(--muted); margin: .6rem 0 0; font-size: .92rem; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem; }
.contact-grid a { background: #fff; border: 1px solid #F1F2F5; border-radius: 18px; padding: .9rem; color: var(--navy); text-align: center; }
.contact-grid i { color: var(--red); font-size: 1.4rem; display: block; margin-bottom: .3rem; }
.contact-grid b { display: block; }
.contact-grid small { color: var(--muted); font-size: .78rem; word-break: break-all; }
.chat { display: flex; flex-direction: column; gap: .8rem; }
.chat .msg { max-width: 85%; }
.chat .msg.mine { align-self: flex-end; text-align: right; }
.chat .msg small { color: var(--muted); font-size: .74rem; display: block; margin-bottom: .2rem; }
.chat .bubble { background: #fff; border: 1px solid #F1F2F5; border-radius: 18px 18px 18px 6px; padding: .75rem .95rem; text-align: left; color: var(--text); white-space: normal; word-break: break-word; }
.chat .msg.mine .bubble { background: var(--red); color: #fff; border-color: var(--red); border-radius: 18px 18px 6px 18px; }
.chat .bubble .attach { display: block; margin-top: .5rem; font-weight: 700; font-size: .85rem; color: inherit; text-decoration: underline; }

/* Sélecteur de langue */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu .lang-pop { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--border); padding: .35rem; min-width: 170px; z-index: 60; }
.lang-menu .lang-pop button { display: flex; align-items: center; justify-content: space-between; width: 100%; border: none; background: none; padding: .6rem .8rem; border-radius: 11px; font-weight: 700; color: var(--navy); text-align: left; }
.lang-menu .lang-pop button:hover { background: var(--bg); }
.lang-menu .lang-pop button.active { color: var(--red); }
.lang-list button { display: flex; align-items: center; gap: .9rem; width: 100%; background: #fff; border: 1.5px solid var(--border); border-radius: 18px; padding: 1rem; margin-bottom: .6rem; text-align: left; }
.lang-list button.active { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-light); }
.lang-list .code { width: 44px; height: 44px; border-radius: 14px; background: var(--red-light); color: var(--red); display: flex; align-items: center; justify-content: center; font-weight: 900; }
.lang-list b { display: block; color: var(--navy); }
.lang-list small { color: var(--muted); }
.home-top { position: relative; z-index: 40; }
.lang-menu[open] { z-index: 80; }
.lang-menu.on-red .lang-chip { background: rgba(255, 255, 255, .18); color: #fff; border-color: transparent; }
.list-row.flex-wrap .grow { min-width: 220px; }
.list-row .grow code { word-break: break-all; }
