/* ============================================
   INTER BQ — Design System (thème clair + Indigo)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* === VARIABLES === */
:root {
  color-scheme: light;

  --bg: #eff1f7;
  --bg2: #ffffff;
  --surface: #f8fafc;
  --card: #ffffff;
  --card2: #f1f5f9;
  --border: rgba(15, 23, 42, 0.09);
  --border2: rgba(15, 23, 42, 0.13);

  --indigo: #6366F1;
  --indigo-d: #4F46E5;
  --indigo-l: #4F46E5;
  --purple: #8B5CF6;
  --cyan: #06B6D4;
  --green: #10B981;
  --yellow: #F59E0B;
  --red: #EF4444;
  --pink: #EC4899;

  --grad: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  --grad-cyan: linear-gradient(135deg, #06B6D4 0%, #6366F1 100%);
  --grad-green: linear-gradient(135deg, #10B981 0%, #06B6D4 100%);
  --grad-gold: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);

  --text: #0f172a;
  --text2: #334155;
  --muted: #64748b;
  --light: #94a3b8;

  --shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
  --shadow-indigo: 0 8px 28px rgba(99,102,241,0.18);
  --shadow-card: 0 2px 16px rgba(15, 23, 42, 0.06);

  --r: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --sidebar: 260px;
  --topbar: 64px;
  --font: 'Inter', -apple-system, sans-serif;
  --ease: cubic-bezier(0.4,0,0.2,1);

  --on-dark: #ffffff;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; font-size: 15px; }
a { color: var(--indigo-l); text-decoration: none; transition: all .2s var(--ease); }
a:hover { color: var(--indigo); }
img { max-width: 100%; display: block; }
button { font-family: var(--font); cursor: pointer; border: none; outline: none; }
input, select, textarea { font-family: var(--font); }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--card2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--light); }

/* Boutons (tableau de bord & formulaires) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 22px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; transition: all .2s var(--ease); cursor: pointer; white-space: nowrap; letter-spacing: -0.01em; border: none; font-family: var(--font); }
.btn-ghost { background: var(--bg2); color: var(--text2); border: 1.5px solid var(--border2); }
.btn-ghost:hover { background: var(--surface); border-color: rgba(99,102,241,0.35); color: var(--text); }
.btn-primary { background: var(--grad); color: var(--on-dark); box-shadow: var(--shadow-indigo); border: none; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(99,102,241,0.28); color: var(--on-dark); }
.btn-secondary { background: rgba(99,102,241,0.1); color: var(--indigo-d); border: 1.5px solid rgba(99,102,241,0.22); }
.btn-secondary:hover { background: rgba(99,102,241,0.16); color: var(--indigo-d); }
.btn-gold { background: var(--grad-gold); color: var(--on-dark); }
.btn-outline { background: transparent; color: var(--indigo-d); border: 1.5px solid rgba(99,102,241,0.35); }
.btn-outline:hover { background: rgba(99,102,241,0.08); color: var(--indigo-d); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-danger { background: linear-gradient(135deg,#EF4444,#DC2626); color:#fff; }
.btn-success { background: linear-gradient(135deg,#10B981,#059669); color:#fff; }

/* ============================================
   AUTH PAGES
   ============================================ */
body.auth-page { background: var(--bg); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
body.auth-page::before { content: ''; position: fixed; inset: 0; background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(99,102,241,0.14) 0%, transparent 58%); pointer-events: none; }
.auth-wrap { width: 100%; max-width: 420px; position: relative; z-index: 2; }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 32px; text-decoration: none; }
.auth-logo .logo-icon,
.auth-logo .auth-logo-icon { width: 40px; height: 40px; background: var(--grad); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 900; color: #fff; }
.auth-logo span { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.04em; }
.auth-card { background: var(--card); border: 1px solid var(--border2); border-radius: var(--r-xl); padding: 36px; box-shadow: var(--shadow-card); width: 100%; max-width: 460px; }
.auth-title { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.035em; margin-bottom: 6px; }
.auth-subtitle { font-size: 14px; color: var(--muted); margin-bottom: 28px; line-height: 1.6; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 7px; }
.form-label span { color: var(--red); }
.form-control { width: 100%; background: #fff; border: 1.5px solid var(--border2); border-radius: var(--r); padding: 11px 14px; color: var(--text); font-size: 14px; font-family: var(--font); transition: all .2s; }
.form-control:focus { outline: none; border-color: rgba(99,102,241,0.55); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); background: #fff; }
.form-control::placeholder { color: #94a3b8; }
.form-control.is-invalid { border-color: var(--red); }
.input-group { display: flex; }
.input-group .form-control { border-radius: var(--r) 0 0 var(--r); }
.input-addon { background: var(--surface); border: 1.5px solid var(--border2); border-left: none; border-radius: 0 var(--r) var(--r) 0; padding: 0 14px; display: flex; align-items: center; color: var(--muted); font-size: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
.auth-footer a { color: var(--indigo-l); font-weight: 600; }
.auth-footer a:hover { color: var(--indigo-d); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--light); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.remember-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.checkbox-wrap { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox-wrap input { width: 16px; height: 16px; accent-color: var(--indigo); }
.checkbox-wrap span { font-size: 13px; color: var(--text2); }
.forgot-link { font-size: 13px; color: var(--indigo-l); }
.forgot-link:hover { color: var(--indigo-d); }
.alert { padding: 12px 16px; border-radius: var(--r); font-size: 14px; margin-bottom: 18px; display: flex; align-items: flex-start; gap: 8px; }
.alert-error { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.3); color: #991b1b; }
.alert-success { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.3); color: #047857; }
.alert-info { background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.28); color: #4338ca; }
.auth-steps { display: flex; gap: 16px; margin-bottom: 28px; }
.auth-step { display: flex; align-items: center; gap: 8px; }
.auth-step .step-num { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.auth-step .step-num.active { background: var(--grad); color: #fff; }
.auth-step .step-num.inactive { background: var(--surface); color: var(--light); border: 1.5px solid var(--border2); }
.auth-step span { font-size: 13px; color: var(--muted); }
.auth-step.current span { color: var(--text); font-weight: 600; }
.auth-step-sep { color: var(--border); font-size: 12px; }

/* Connexion / inscription (icônes dans les champs) */
body.auth-page .input-icon-wrap { position: relative; }
body.auth-page .input-icon-wrap .form-control { padding-left: 42px; }
body.auth-page .input-icon-wrap .form-control[type="password"],
body.auth-page .input-icon-wrap .form-control.has-eye { padding-right: 44px; }
body.auth-page .field-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
body.auth-page .eye-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--muted); padding: 4px; display: flex; align-items: center; justify-content: center; }
body.auth-page .eye-btn:hover { color: var(--text2); }
body.auth-page .btn-submit,
body.auth-page button.btn-submit { width: 100%; background: var(--grad); color: #fff; font-size: 15px; font-weight: 700; padding: 14px; border-radius: 12px; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; margin-bottom: 20px; font-family: var(--font); transition: transform .2s, box-shadow .2s; }
body.auth-page .btn-submit:hover { transform: translateY(-1px); box-shadow: var(--shadow-indigo); }
body.auth-page .auth-footer-txt { text-align: center; font-size: 14px; color: var(--muted); }
body.auth-page .auth-footer-txt a { color: var(--indigo-l); font-weight: 600; text-decoration: none; }
body.auth-page .auth-footer-txt a:hover { color: var(--indigo-d); text-decoration: underline; }
body.auth-page .checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--text2); }
body.auth-page .auth-divider { text-align: center; color: var(--light); font-size: 13px; margin: 20px 0; position: relative; }
body.auth-page .auth-divider::before, body.auth-page .auth-divider::after { content: ''; position: absolute; top: 50%; width: 38%; height: 1px; background: var(--border); }
body.auth-page .auth-divider::before { left: 0; }
body.auth-page .auth-divider::after { right: 0; }

/* Inscription stepper */
body.auth-page .stepper { display: flex; align-items: center; gap: 0; margin-bottom: 28px; width: 100%; max-width: 460px; }
body.auth-page .stepper-step { display: flex; align-items: center; gap: 10px; }
body.auth-page .step-circle { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; transition: all .25s; }
body.auth-page .step-circle.active { background: var(--grad); color: #fff; box-shadow: 0 6px 20px rgba(99,102,241,0.28); }
body.auth-page .step-circle.done { background: rgba(16,185,129,0.12); color: var(--green); border: 2px solid rgba(16,185,129,0.35); }
body.auth-page .step-circle.inactive { background: var(--surface); color: var(--light); border: 1px solid var(--border2); }
body.auth-page .step-label { font-size: 13px; font-weight: 600; transition: color .25s; }
body.auth-page .step-label.active { color: var(--text); }
body.auth-page .step-label.inactive { color: var(--muted); }
body.auth-page .stepper-line { flex: 1; height: 1px; background: var(--border); margin: 0 12px; }
body.auth-page .form-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
body.auth-page .optional-badge { background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 500; padding: 2px 7px; border-radius: 5px; margin-left: 6px; border: 1px solid var(--border); }
body.auth-page .btn-back { background: var(--surface); color: var(--text2); font-size: 14px; font-weight: 600; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border2); cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; margin-bottom: 16px; font-family: var(--font); }
body.auth-page .btn-back:hover { background: var(--card2); color: var(--text); }
body.auth-page .pw-strength { height: 3px; border-radius: 2px; margin-top: 7px; transition: all .3s; background: var(--border); }
body.auth-page .pw-strength.weak { background: linear-gradient(90deg, #ef4444 30%, var(--border) 30%); }
body.auth-page .pw-strength.medium { background: linear-gradient(90deg, #f59e0b 60%, var(--border) 60%); }
body.auth-page .pw-strength.strong { background: var(--green); }

/* ============================================
   LOGIN — page professionnelle (split branding)
   ============================================ */
body.auth-page.login-page-pro {
  display: block;
  padding: 0;
  margin: 0;
  min-height: 100vh;
  background: #f1f5f9;
  overflow-x: hidden;
}

body.auth-page.login-page-pro::before {
  display: none;
}

.login-pro-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(360px, 1fr);
  min-height: 100vh;
  width: 100%;
}

.login-pro-aside {
  position: relative;
  color: rgba(248, 250, 252, 0.95);
  display: flex;
  flex-direction: column;
}

.login-pro-aside-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 12% 8%, rgba(99, 102, 241, 0.28), transparent 55%),
    radial-gradient(70% 50% at 88% 90%, rgba(14, 116, 144, 0.22), transparent 50%),
    linear-gradient(168deg, #032a42 0%, #053652 42%, #0a4f7a 92%);
}

.login-pro-aside-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 48px,
    rgba(255, 255, 255, 0.04) 48px,
    rgba(255, 255, 255, 0.04) 49px
  );
  pointer-events: none;
}

.login-pro-aside-inner {
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100vh;
  padding: clamp(28px, 5vw, 52px);
  max-width: 520px;
}

.login-pro-aside-copy {
  flex: 1 1 auto;
  min-height: 0;
}

.login-pro-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  margin-bottom: clamp(24px, 5vh, 40px);
}

.login-pro-logo:hover {
  opacity: 0.92;
}

.login-pro-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.04em;
}

.login-pro-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.06;
}

.login-pro-logo-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.login-pro-logo-tag {
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.7);
}

.login-pro-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(253, 230, 138, 0.95);
  margin-bottom: 16px;
  line-height: 1.25;
}

.login-pro-kicker i[data-lucide],
.login-pro-kicker svg {
  display: block;
  flex-shrink: 0;
}

.login-pro-kicker-ico {
  width: 16px !important;
  height: 16px !important;
  stroke-width: 2;
}

.login-pro-aside-headline {
  font-size: clamp(1.45rem, 2.8vw + 0.8rem, 2.15rem);
  font-weight: 800;
  line-height: 1.17;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}

.login-pro-aside-lead {
  font-size: 15px;
  line-height: 1.72;
  color: rgba(226, 232, 240, 0.9);
  margin-bottom: 32px;
  max-width: 38rem;
}

.login-pro-trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-pro-trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(241, 245, 249, 0.92);
}

.login-pro-trust-list .muted {
  color: rgba(148, 163, 184, 0.95);
  font-size: 12px;
}

.login-pro-trust-ico {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-pro-trust-ico i,
.login-pro-trust-ico svg {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 2;
}

.login-pro-aside-foot {
  flex-shrink: 0;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.9);
  margin-top: auto;
  padding-top: 36px;
}

.login-pro-aside-foot a {
  color: rgba(253, 230, 138, 0.95);
  text-decoration: none;
}

.login-pro-aside-foot a:hover {
  text-decoration: underline;
}

.login-pro-main {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 100vh;
  padding: clamp(20px, 4vw, 48px);
  position: relative;
  background: #f1f5f9;
}

.login-pro-back-site {
  display: inline-flex;
  align-self: flex-end;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  text-decoration: none;
  margin-bottom: clamp(16px, 3vh, 28px);
  padding: 8px 4px;
  border-radius: 10px;
  transition:
    background 0.17s ease,
    color 0.17s ease;
}

.login-pro-back-site:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--indigo-d);
}

.login-pro-card-shell {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-bottom: 32px;
  min-height: 0;
}

body.auth-page.login-page-pro .login-pro-form {
  width: 100%;
  margin: 0;
}

body.auth-page.login-page-pro .login-pro-card .btn-submit.login-pro-submit {
  width: 100%;
  flex-wrap: nowrap;
}

.login-pro-main .login-pro-card.auth-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 438px;
  margin: 0 auto;
  padding: clamp(30px, 4.5vw, 42px) clamp(26px, 4vw, 38px);
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 28px 64px rgba(15, 23, 42, 0.1),
    0 6px 20px rgba(15, 23, 42, 0.05);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.login-pro-card-heading {
  margin-bottom: 8px;
}

.login-pro-main .login-pro-title.auth-title {
  font-size: clamp(1.5rem, 2vw + 1rem, 1.85rem);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.038em;
}

.login-pro-main .login-pro-subtitle.auth-subtitle {
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 1.62;
}

.login-pro-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px !important;
  border-radius: 14px !important;
  margin-bottom: 22px !important;
  font-size: 13.5px !important;
  line-height: 1.45;
}

.login-pro-alert i[data-lucide],
.login-pro-alert svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
  margin-top: 1px;
}

.login-pro-input-wrap .login-pro-input.form-control {
  border-radius: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 15px;
}

.login-pro-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.login-pro-check {
  max-width: 100%;
}

.login-pro-submit.btn-submit {
  margin-top: 4px;
  margin-bottom: 18px !important;
  padding: 15px 20px !important;
  border-radius: 13px !important;
  font-size: 15.5px !important;
  font-weight: 750 !important;
}

.login-pro-submit.btn-submit:hover {
  box-shadow:
    0 12px 32px rgba(99, 102, 241, 0.32),
    0 4px 12px rgba(99, 102, 241, 0.15);
}

.login-pro-secure-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: -6px 0 8px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.12);
}

.login-pro-secure-note i[data-lucide],
.login-pro-secure-note svg {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--indigo-l);
}

.login-pro-sep {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 16px 0 22px;
  color: var(--light);
}

.login-pro-sep-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  min-width: 0;
}

.login-pro-sep-text {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.login-pro-footer.auth-footer-txt {
  margin-top: 0;
  margin-bottom: 0;
}

.login-pro-legal-micro {
  max-width: 438px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--light);
  line-height: 1.65;
}

.login-pro-legal-micro a {
  color: var(--indigo-l);
  font-weight: 600;
  text-decoration: none;
}

.login-pro-legal-micro a:hover {
  text-decoration: underline;
}

/* Inscription : même grille que connexion (+ stepper dans la carte) */
body.auth-page.login-page-pro.register-page-pro .login-pro-card.login-pro-card--wide {
  max-width: 480px;
}

.login-pro-card .login-pro-stepper.stepper {
  width: 100%;
  max-width: none;
  margin: 0 0 20px;
}

.login-pro-card-heading--reg .login-pro-title.login-pro-title {
  margin-bottom: 6px;
}

.login-pro-card-heading--reg .login-pro-subtitle.login-pro-subtitle {
  margin-bottom: 24px;
}

body.auth-page.login-page-pro .btn-back.login-pro-btn-back {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  margin-bottom: 22px;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  box-sizing: border-box;
}

body.auth-page.login-page-pro.register-page-pro .register-pro-footer-connect {
  text-align: center;
}

body.auth-page.login-page-pro.register-page-pro .register-pro-footer-connect a {
  font-weight: 750;
}

/* Connexion wording « INTERNATIONALE BANQUE » (page login uniquement) */
body.login-page-intl .login-pro-intl-wordmark {
  display: inline-block;
  font-size: clamp(11px, 2.2vw, 13px);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253, 250, 255, 0.98);
  line-height: 1.35;
}

body.login-page-intl .login-pro-logo--intl {
  gap: 12px;
  align-items: center;
}

body.login-page-intl .login-pro-intl-marque-duo {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253, 230, 138, 0.95);
}

body.login-page-intl .login-pro-aside-headline--intl {
  margin-bottom: 14px;
}

body.login-page-intl .login-pro-aside-lead--intl {
  margin-bottom: 0;
}

body.login-page-intl .login-pro-card-marque {
  margin: -2px auto 14px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4338ca;
}

body.login-page-intl .login-pro-title-hl.login-pro-title.auth-title {
  text-align: center;
  letter-spacing: 0.14em;
  font-size: clamp(1.2rem, 2.8vw + 0.85rem, 1.42rem);
  margin-bottom: 10px !important;
  text-transform: uppercase;
}

body.login-page-intl .login-pro-intro-client {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 26px !important;
  line-height: 1.55;
}

body.login-page-intl .login-pro-intro-client a {
  margin-left: 4px;
  font-weight: 700;
}

body.login-page-intl .login-pro-label-meta {
  font-weight: 500;
  color: var(--muted);
}

body.login-page-intl .login-pro-forgot-row {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 20px;
}

body.login-page-intl .login-pro-terms-line {
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
  text-align: center;
  margin: 8px 0 0;
}

body.login-page-intl .login-pro-terms-line a {
  color: var(--indigo-l);
  font-weight: 600;
}

body.login-page-intl .login-pro-card.login-pro-card--connexion {
  padding-top: 30px;
}

/* Inscription « Internationale Banque » : carte élargie, grille à 2 colonnes */
body.login-page-intl.register-page-intl .login-pro-main .login-pro-card.login-pro-card--intl-reg {
  max-width: min(560px, 100%);
}

body.login-page-intl.register-page-intl .login-pro-legal-micro {
  max-width: min(560px, 100%);
}

body.login-page-intl.register-page-intl .reg-intl-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  margin-bottom: 18px;
}

body.login-page-intl.register-page-intl .reg-intl-grid2 .form-group {
  margin-bottom: 0;
}

body.login-page-intl.register-page-intl select.login-pro-select.login-pro-input {
  border-radius: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 15px;
  min-height: 46px;
  color: var(--text);
  background-color: #fff;
  cursor: pointer;
}

body.login-page-intl.register-page-intl .login-pro-title--regcreate.login-pro-title.auth-title {
  margin-bottom: 8px !important;
}

body.login-page-intl.register-page-intl .login-pro-intro-client--reg {
  margin-bottom: 22px !important;
}

body.login-page-intl.register-page-intl .login-pro-submit--reg-create {
  gap: 10px;
}

body.login-page-intl.register-page-intl .login-pro-terms-line--reg {
  margin-top: 6px;
}

@media (max-width: 620px) {
  body.login-page-intl.register-page-intl .reg-intl-grid2 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.login-page-intl.register-page-intl .reg-intl-grid2 .form-group {
    margin-bottom: 0;
  }
}

@media (max-width: 960px) {
  .login-pro-layout {
    grid-template-columns: 1fr;
  }

  .login-pro-aside-inner {
    min-height: unset;
    max-width: none;
    padding: 28px 22px 32px;
  }

  .login-pro-aside-foot {
    margin-top: 28px;
    padding-top: 0;
  }

  .login-pro-logo {
    margin-bottom: 24px;
  }

  .login-pro-aside-headline {
    font-size: clamp(1.35rem, 5vw + 0.65rem, 1.72rem);
  }

  .login-pro-aside-lead {
    margin-bottom: 24px;
  }

  .login-pro-main {
    min-height: unset;
    padding-top: 8px;
    justify-content: flex-start;
  }

  .login-pro-card-shell {
    justify-content: flex-start;
  }

  .login-pro-back-site {
    align-self: flex-start;
    margin-bottom: 20px;
  }
}

@media (max-width: 576px) {
  .login-pro-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .login-pro-submit.btn-submit {
    margin-bottom: 16px !important;
  }

  body.auth-page.login-page-pro .login-pro-input-wrap .form-control[type="password"],
  body.auth-page.login-page-pro .login-pro-input-wrap .form-control.has-eye {
    font-size: 16px;
  }
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
body.dash-body { background: var(--surface); display: flex; min-height: 100vh; overflow-x: hidden; }

/* Logo marque SVG (assets/img/logo-light.svg) */
.ibq-brand-logo {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

body.login-page-intl .login-pro-logo--intl .ibq-brand-logo--login-aside {
  height: clamp(42px, 5vw, 54px);
  width: auto;
  max-width: min(280px, 88vw);
}

/* Sidebar */
.sidebar { width: var(--sidebar); min-height: 100vh; background: var(--bg2); border-right: 1px solid var(--border); position: fixed; top: 0; left: 0; bottom: 0; z-index: 200; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; transition: all .3s var(--ease); }
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.12); border-radius: 2px; }
.sidebar-logo { padding: 20px 20px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.sidebar-logo .logo-icon { width: 34px; height: 34px; background: var(--grad); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 900; color: #fff; flex-shrink: 0; }
.sidebar-logo .ibq-brand-logo--sidebar {
  height: 34px;
  width: auto;
  max-width: 122px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.sidebar-logo span { font-size: 17px; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.sidebar-nav { flex: 1; padding: 10px; }
.nav-section { margin-bottom: 4px; }
.nav-section-label { font-size: 10px; font-weight: 700; color: var(--light); text-transform: uppercase; letter-spacing: 0.12em; padding: 10px 12px 4px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--r); color: var(--text2); font-size: 13.5px; font-weight: 500; transition: all .2s var(--ease); cursor: pointer; text-decoration: none; margin-bottom: 2px; border: 1px solid transparent; position: relative; }
.nav-item i, .nav-item svg { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.85; color: inherit; stroke: currentColor; }
.nav-item:hover { color: var(--text); background: rgba(99,102,241,0.08); }
.nav-item.active { color: var(--indigo-d); background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.22); font-weight: 600; }
.nav-item.active i, .nav-item.active svg { opacity: 1; color: var(--indigo-d); }
.nav-item .nav-badge { margin-left: auto; background: var(--indigo); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: var(--r-pill); min-width: 20px; text-align: center; }
.nav-item.logout-item { color: rgba(239,68,68,0.75); margin-top: 8px; }
.nav-item.logout-item:hover { background: rgba(239,68,68,0.08); color: var(--red); }
.nav-divider { height: 1px; background: var(--border); margin: 8px 0; }
.sidebar-user { padding: 14px; border-top: 1px solid var(--border); flex-shrink: 0; }
.sidebar-user-inner { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); }
.sidebar-user-inner .u-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; overflow: hidden; flex-shrink: 0; }
.sidebar-user-inner .u-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-user-inner .u-info { min-width: 0; flex: 1; }
.sidebar-user-inner .u-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-inner .u-balance {
  font-size: 12px;
  font-weight: 650;
  color: var(--text2);
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sidebar.sidebar-intl .sidebar-logo > .sidebar-logo-brand {
  flex: 1;
  min-width: 0;
}
.sidebar-intl .sidebar-logo-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: inherit; letter-spacing: inherit; font-weight: inherit; }
.sidebar-intl .sidebar-logo-main { font-size: 14px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; line-height: 1.25; white-space: normal; }
.sidebar-intl .sidebar-logo-micro {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.topbar-lang-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(180, 83, 9, 0.35);
  border-radius: 999px;
  padding: 5px 10px;
}

/* Page content — min-width:0 évite que gros montants / tableaux élargissent tout le viewport */
.page-wrap {
  margin-left: var(--sidebar);
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--surface);
}

/* Topbar (bandeau supérieur — fond jaune) */
.topbar {
  background: linear-gradient(180deg, #fde047 0%, #facc15 100%);
  border-bottom: 1px solid rgba(180, 83, 9, 0.4);
  height: var(--topbar); display: flex; align-items: center; padding: 0 28px; position: sticky; top: 0;
  z-index: 100; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(202, 138, 4, 0.12);
  min-width: 0;
  box-sizing: border-box;
  gap: 8px;
}
.topbar-left { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; }
.topbar-toggle {
  display: none; width: 36px; height: 36px; background: transparent; border: none; border-radius: var(--r);
  cursor: pointer; align-items: center; justify-content: center; color: rgba(69, 26, 3, 0.75); transition: all .2s;
  flex-shrink: 0;
}
.topbar-toggle:hover { background: rgba(255, 255, 255, 0.55); color: var(--text); }
.topbar-search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(180, 83, 9, 0.32);
  border-radius: var(--r-pill); padding: 7px 16px;
  min-width: min(240px, 100%);
  flex: 1 1 120px;
  max-width: min(420px, 100%);
  box-sizing: border-box;
}
.topbar-search i { color: rgba(69, 26, 3, 0.55); width: 15px; height: 15px; }
.topbar-search input { background: none; border: none; outline: none; color: var(--text); font-size: 13.5px; font-family: var(--font); width: 100%; }
.topbar-search input::placeholder { color: var(--muted); }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}
.topbar-btn {
  width: 36px; height: 36px; background: transparent; border: none; border-radius: var(--r); cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: rgba(69, 26, 3, 0.72); transition: all .2s;
  position: relative; text-decoration: none;
}
.topbar-btn:hover { background: rgba(255, 255, 255, 0.55); color: var(--text); }
.topbar-btn .notif-dot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; background: var(--red); border-radius: 50%; border: 1.5px solid #fde047; }
.topbar-user {
  display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(180, 83, 9, 0.35); cursor: pointer; transition: all .2s;
}
.topbar-user:hover { background: #ffffff; border-color: rgba(180, 83, 9, 0.52); }
.topbar-user .t-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; overflow: hidden; }
.topbar-user .t-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  max-width: min(200px, 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-user i { color: var(--muted); width: 14px; height: 14px; }

.user-dropdown-panel { position: absolute; top: calc(100% + 8px); right: 0; background: var(--card); border: 1px solid var(--border2); border-radius: 14px; padding: 6px; min-width: 200px; box-shadow: 0 20px 44px rgba(15,23,42,0.14); z-index: 300; }
.user-dropdown-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--text2); font-size: 13.5px; transition: background .15s; text-decoration: none; }
.user-dropdown-link:hover { background: rgba(99,102,241,0.08); color: var(--text); }
.user-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.user-dropdown-link.user-dropdown-danger { color: rgba(239,68,68,0.85); }
.user-dropdown-link.user-dropdown-danger:hover { background: rgba(239,68,68,0.08); color: var(--red); }

/* Page body */
.page-body { padding: 28px; flex: 1; min-width: 0; box-sizing: border-box; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.page-title { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.page-subtitle { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.breadcrumb span { color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--indigo-l); }
.breadcrumb .sep { color: var(--border); }

/* Cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.card-header { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-header .card-title { font-size: 15px; font-weight: 700; color: var(--text); }
.card-header .card-actions { display: flex; align-items: center; gap: 8px; }
.card-body { padding: 22px; }
.card-footer { padding: 14px 22px; border-top: 1px solid var(--border); background: var(--surface); }

/* Dashboard — charte INTERNATIONALE BANQUE */
.dash-main-intl { max-width: 1400px; margin: 0 auto; min-width: 0; width: 100%; box-sizing: border-box; }

.dash-page-header-intl {
  margin-bottom: 22px;
  min-width: 0;
  max-width: 100%;
}

.dash-page-header-intl .page-title,
.dash-page-header-intl .page-subtitle {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.dash-intl-marque {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo-l);
}
.dash-welcome-heading .page-title { margin-bottom: 0; font-size: clamp(1.35rem, 2.4vw + 0.85rem, 1.72rem); }
.dash-welcome-tagline strong { font-weight: 650; color: var(--text2); }

.dash-kyc-banner {
  background: linear-gradient(180deg, #fef08e 0%, #fde047 100%);
  border: 1px solid rgba(202, 138, 4, 0.5);
  border-radius: var(--r-lg);
  padding: 0;
  margin: 0 0 26px;
  transition: transform 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 2px 12px rgba(202, 138, 4, 0.12);
}
.dash-kyc-banner:hover {
  border-color: rgba(180, 83, 9, 0.55);
  transform: translateY(-1px);
}
.dash-kyc-banner-inner { display: flex; gap: 16px; padding: 18px 20px; align-items: flex-start; }
.dash-kyc-banner-ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(180, 83, 9, 0.16);
  color: rgb(146, 64, 14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-kyc-banner-ico i,
.dash-kyc-banner-ico svg { width: 24px; height: 24px; stroke-width: 2; }
.dash-kyc-banner-title { font-weight: 800; font-size: 14.5px; color: var(--text); margin-bottom: 6px; }
.dash-kyc-banner-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.58;
  color: var(--text2);
}

.dash-intl-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 332px);
  gap: 24px;
  align-items: start;
}

.dash-intl-aside {
  min-width: 0;
  max-width: 100%;
}

/* Colonne principale : sans min-width:0 la grille ne rétrécit pas sous la largeur du contenu (ex. gros montants) */
.dash-intl-main {
  min-width: 0;
  max-width: 100%;
}

body.dash-body.dash-intl .card {
  min-width: 0;
  max-width: 100%;
}

body.dash-body.dash-intl .card-header {
  flex-wrap: wrap;
  gap: 10px 14px;
}

body.dash-body.dash-intl .card-header .card-title {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}

.dash-balance-strip {
  border-radius: 22px;
  padding: 0;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.32);
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 52%, #5b21b6 100%);
  box-shadow: 0 20px 50px rgba(79, 70, 229, 0.25);
}

.dash-balance-strip-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% -20%, rgba(255, 255, 255, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 10% 120%, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.dash-balance-strip-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 26px 28px;
}

.dash-balance-strip-inner > div:first-child {
  flex: 1 1 12rem;
  min-width: 0;
}

.dash-balance-kicker {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 250, 255, 0.95);
}

.dash-balance-label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.dash-balance-amt {
  margin: 0 0 8px;
  font-size: clamp(0.85rem, 3.5vw + 0.4rem, 2.65rem);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
  font-variant-numeric: tabular-nums;
}

.dash-balance-acc {
  margin: 0;
  font-size: 12px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  overflow-wrap: anywhere;
  word-break: break-all;
}

.dash-balance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}

.dash-balance-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 750;
  padding: 11px 20px;
  border-radius: 12px;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

.dash-balance-cta--xfer {
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.dash-balance-cta--xfer:hover {
  background: rgba(0, 0, 0, 0.42);
  transform: translateY(-1px);
}

.dash-balance-cta--dep {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.dash-balance-cta--dep:hover {
  background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 480px) {
  .dash-balance-strip-inner {
    padding: 18px 16px;
    gap: 14px;
  }
  .dash-balance-amt {
    font-size: clamp(0.85rem, 6vw, 1.6rem);
  }
  .dash-balance-actions {
    flex-shrink: 1;
    width: 100%;
  }
  .dash-balance-cta {
    flex: 1;
    justify-content: center;
  }
}

.dash-mobile-promo { margin-bottom: 22px; }
.dash-mobile-promo-body {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  min-width: 0;
}

.dash-mobile-promo-body > div:last-child {
  flex: 1 1 auto;
  min-width: 0;
}

.dash-mobile-promo-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.14);
  color: var(--indigo-l);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-mobile-promo-icon i,
.dash-mobile-promo-icon svg { width: 22px; height: 22px; stroke-width: 2; }

.dash-mobile-promo-body strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
}

.dash-mobile-promo-body p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.56;
  color: var(--text2);
}

.dash-mobile-promo-link {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--indigo-l);
  text-decoration: none;
}

.dash-mobile-promo-link:hover {
  text-decoration: underline;
}

.dash-txn-card { margin-bottom: 24px; }

.dash-table-txns {
  width: 100%;
  min-width: min(640px, 100%);
  border-collapse: collapse;
}

.dash-table-txns thead th {
  padding: 12px 16px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.dash-table-txns tbody td {
  padding: 13px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.dash-table-txns tbody tr:hover td { background: rgba(99, 102, 241, 0.04); }
.dash-table-txns .muted { color: var(--muted); }
.dash-table-txns .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; }

.dash-table-txns th:nth-child(5),
.dash-table-txns th:nth-child(6),
.dash-table-txns td:nth-child(5),
.dash-table-txns td:nth-child(6) {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}

.dash-summary-name {
  margin: 0 0 14px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dash-summary-dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 14px;
  margin: 0;
  font-size: 13px;
}

.dash-summary-dl dt {
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
}

.dash-summary-dl dd {
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.dash-summary-dl dt:first-of-type,
.dash-summary-dl dd:first-of-type { border-top: none; padding-top: 0; }

.dash-activity-list { display: flex; flex-direction: column; gap: 16px; }
.dash-activity-item + .dash-activity-item {
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.dash-activity-title {
  font-weight: 750;
  font-size: 13.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.dash-activity-title i,
.dash-activity-title svg { width: 16px; height: 16px; color: var(--indigo-l); flex-shrink: 0; }

.dash-activity-item time {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.dash-activity-meta {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 1100px) {
  .dash-intl-grid {
    grid-template-columns: 1fr;
  }
}

/* Balance card */
.balance-card { background: linear-gradient(135deg, #1a1a3e 0%, #2d1b69 50%, #1a1a3e 100%); border: 1px solid rgba(99,102,241,0.3); border-radius: var(--r-xl); padding: 32px 28px; position: relative; overflow: hidden; }
.balance-card::before { content: ''; position: absolute; top: -60%; right: -15%; width: 350px; height: 350px; background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 65%); pointer-events: none; }
.balance-card::after { content: ''; position: absolute; bottom: -50%; left: -10%; width: 280px; height: 280px; background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 65%); pointer-events: none; }
.balance-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; position: relative; z-index: 2; }
.balance-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 6px; }
.balance-amount {
  font-size: 38px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}
.balance-account { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 6px; font-family: 'SF Mono',monospace; letter-spacing: 0.08em; }
.balance-currency { width: 44px; height: 44px; background: rgba(255,255,255,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; color: rgba(255,255,255,0.8); backdrop-filter: blur(10px); }
.balance-card-actions { display: flex; gap: 10px; position: relative; z-index: 2; }
.balance-action-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; transition: all .2s; text-decoration: none; }
.balance-action-btn.primary { background: rgba(255,255,255,0.9); color: var(--indigo-d); }
.balance-action-btn.primary:hover { background: #fff; transform: translateY(-1px); }
.balance-action-btn.secondary { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(10px); }
.balance-action-btn.secondary:hover { background: rgba(255,255,255,0.18); }
.balance-action-btn i, .balance-action-btn svg { width: 14px; height: 14px; }

/* Stat cards */
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; transition: all .2s var(--ease); }
.stat-card:hover { border-color: rgba(99,102,241,0.2); transform: translateY(-2px); }
.stat-card .sc-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.stat-card .sc-icon { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; }
.stat-card .sc-icon.indigo { background: rgba(99,102,241,0.15); color: var(--indigo-l); }
.stat-card .sc-icon.green { background: rgba(16,185,129,0.15); color: var(--green); }
.stat-card .sc-icon.yellow { background: rgba(245,158,11,0.15); color: var(--yellow); }
.stat-card .sc-icon.red { background: rgba(239,68,68,0.15); color: var(--red); }
.stat-card .sc-icon.cyan { background: rgba(6,182,212,0.15); color: var(--cyan); }
.stat-card .sc-icon i, .stat-card .sc-icon svg { width: 18px; height: 18px; }
.stat-card .sc-badge { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: var(--r-pill); }
.stat-card .sc-badge.up { background: rgba(16,185,129,0.1); color: var(--green); }
.stat-card .sc-badge.down { background: rgba(239,68,68,0.1); color: var(--red); }
.stat-card .sc-value { font-size: 24px; font-weight: 800; color: var(--text); letter-spacing: -0.035em; line-height: 1; margin-bottom: 4px; }
.stat-card .sc-label { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

/* Quick actions */
.quick-actions { display: flex; gap: 12px; }
.qa-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); text-decoration: none; transition: all .25s var(--ease); }
.qa-btn:hover { border-color: rgba(99,102,241,0.35); background: var(--card2); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(15,23,42,0.08); }
.qa-btn .qa-icon { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; }
.qa-btn .qa-label { font-size: 12.5px; font-weight: 600; color: var(--text2); }
.qa-btn:hover .qa-label { color: var(--text); }
.qa-icon.dep { background: rgba(16,185,129,0.15); color: var(--green); }
.qa-icon.wit { background: rgba(239,68,68,0.15); color: var(--red); }
.qa-icon.tra { background: rgba(99,102,241,0.15); color: var(--indigo-l); }
.qa-icon.loan { background: rgba(245,158,11,0.15); color: var(--yellow); }
.qa-icon.pay { background: rgba(6,182,212,0.15); color: var(--cyan); }

/* Table */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; }
table.data-table thead tr { border-bottom: 1px solid var(--border); }
table.data-table thead th { padding: 11px 14px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; text-align: left; white-space: nowrap; }
table.data-table tbody tr { border-bottom: 1px solid var(--border); transition: background .15s; }
table.data-table tbody tr:hover { background: rgba(99,102,241,0.04); }
table.data-table tbody td { padding: 14px; font-size: 13.5px; color: var(--text); vertical-align: middle; }
.txn-desc { display: flex; align-items: center; gap: 10px; }
.txn-icon { width: 34px; height: 34px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.txn-icon.in { background: rgba(16,185,129,0.15); color: var(--green); }
.txn-icon.out { background: rgba(239,68,68,0.15); color: var(--red); }
.txn-icon.bonus { background: rgba(245,158,11,0.15); color: var(--yellow); }
.txn-icon i, .txn-icon svg { width: 15px; height: 15px; }
.txn-name { font-size: 13.5px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.txn-date { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.txn-ref { font-family: 'SF Mono',monospace; font-size: 12px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--r-pill); font-size: 11px; font-weight: 600; text-transform: capitalize; }
.badge-success { background: rgba(16,185,129,0.12); color: var(--green); }
.badge-pending { background: rgba(245,158,11,0.12); color: var(--yellow); }
.badge-danger  { background: rgba(239,68,68,0.12); color: var(--red); }
.badge-indigo  { background: rgba(99,102,241,0.12); color: var(--indigo-l); }
.badge-muted   { background: rgba(15,23,42,0.06); color: var(--muted); }
.amount-pos { color: var(--green); font-weight: 700; }
.amount-neg { color: var(--red); font-weight: 700; }
.fw6 { font-weight: 600; }
.text-muted { color: var(--muted); }
.text-white { color: var(--text); }

/* Progress steps */
.progress-steps { display: flex; align-items: center; gap: 0; margin-bottom: 28px; }
.progress-step { display: flex; align-items: center; gap: 10px; flex: 1; }
.progress-step:last-child { flex: none; }
.ps-circle { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; border: 2px solid; }
.ps-circle.active { background: var(--indigo); border-color: var(--indigo); color: #fff; box-shadow: 0 0 0 4px rgba(99,102,241,0.2); }
.ps-circle.done { background: var(--green); border-color: var(--green); color: #fff; }
.ps-circle.pending { background: transparent; border-color: var(--border2); color: var(--muted); }
.ps-info .ps-label { font-size: 13px; font-weight: 600; }
.ps-info .ps-label.active { color: var(--text); }
.ps-info .ps-label.pending { color: var(--muted); }
.ps-info .ps-sub { font-size: 11.5px; color: var(--muted); }
.ps-line { flex: 1; height: 1px; background: var(--border); margin: 0 12px; }
.ps-line.done { background: var(--green); }

/* Form elements for dashboard */
.dash-form .form-group { margin-bottom: 20px; }
.dash-form .form-label { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 8px; }
.dash-form .form-control { background: #fff; border: 1.5px solid var(--border2); border-radius: var(--r); padding: 12px 14px; color: var(--text); font-size: 14px; width: 100%; transition: all .2s; }
.dash-form .form-control:focus { outline: none; border-color: rgba(99,102,241,0.5); box-shadow: 0 0 0 3px rgba(99,102,241,0.12); background: #fff; }
.dash-form .form-control::placeholder { color: #94a3b8; }
.dash-form .form-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.dash-form select.form-control { appearance: none; cursor: pointer; }
.input-with-icon { position: relative; }
.input-with-icon .form-control { padding-right: 44px; }
.input-with-icon .input-icon-right { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-group-dash { display: flex; }
.input-group-dash .form-control { border-radius: var(--r) 0 0 var(--r); }
.input-group-dash .ig-addon { background: var(--surface); border: 1.5px solid var(--border2); border-left: none; padding: 0 14px; border-radius: 0 var(--r) var(--r) 0; display: flex; align-items: center; color: var(--muted); font-size: 13px; font-weight: 600; }
.summary-box { background: rgba(99,102,241,0.06); border: 1px solid rgba(99,102,241,0.15); border-radius: var(--r); padding: 16px 18px; }
.summary-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); }
.summary-row:last-child { border-bottom: none; padding-top: 10px; }
.summary-row .sr-label { font-size: 13px; color: var(--muted); }
.summary-row .sr-value { font-size: 13px; font-weight: 600; color: var(--text2); }
.summary-row.total .sr-label { font-size: 14px; color: var(--text2); font-weight: 600; }
.summary-row.total .sr-value { font-size: 16px; font-weight: 800; color: var(--indigo-l); }

/* Beneficiary cards */
.beneficiary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 12px; margin-bottom: 24px; }
.bene-card { background: var(--card2); border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 18px; text-align: center; cursor: pointer; transition: all .2s; }
.bene-card:hover, .bene-card.selected { border-color: var(--indigo); background: rgba(99,102,241,0.08); }
.bene-card .bene-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: #fff; margin: 0 auto 12px; }
.bene-card .bene-name { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.bene-card .bene-account { font-size: 11.5px; color: var(--muted); font-family: monospace; }
.bene-add-card { background: rgba(99,102,241,0.05); border: 1.5px dashed rgba(99,102,241,0.25); border-radius: var(--r-lg); padding: 18px; text-align: center; cursor: pointer; transition: all .2s; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.bene-add-card:hover { background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.5); }
.bene-add-card .ba-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(99,102,241,0.12); display: flex; align-items: center; justify-content: center; color: var(--indigo-l); }
.bene-add-card span { font-size: 13px; color: var(--indigo-l); font-weight: 500; }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 4px; padding: 16px 0 0; }
.page-btn { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: var(--r); background: transparent; border: 1px solid var(--border); color: var(--muted); font-size: 13px; transition: all .2s; text-decoration: none; cursor: pointer; }
.page-btn:hover { background: rgba(99,102,241,0.08); color: var(--text); }
.page-btn.active { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* Filters bar */
.filters-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px; background: var(--surface); border-bottom: 1px solid var(--border); }
.filters-bar .filter-group { display: flex; align-items: center; gap: 6px; }
.filters-bar label { font-size: 12px; color: var(--muted); font-weight: 500; }
.filters-bar .form-control { padding: 6px 10px; font-size: 13px; min-width: 120px; }
.filters-bar .btn { padding: 7px 14px; font-size: 13px; }

/* Settings tabs */
.settings-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.settings-nav-item { padding: 10px 18px; font-size: 14px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; transition: all .2s; text-decoration: none; }
.settings-nav-item:hover { color: var(--text); }
.settings-nav-item.active { color: var(--indigo-l); border-bottom-color: var(--indigo-l); }
.avatar-upload { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.avatar-upload .au-preview { width: 80px; height: 80px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: #fff; overflow: hidden; flex-shrink: 0; }
.avatar-upload .au-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-upload .au-btn { font-size: 13px; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.45); backdrop-filter: blur(4px); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal-box { background: var(--card); border: 1px solid var(--border2); border-radius: var(--r-xl); padding: 32px; max-width: 480px; width: 100%; box-shadow: 0 28px 64px rgba(15,23,42,0.18); transform: translateY(20px); transition: transform .25s; }
.modal-overlay.show .modal-box { transform: translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title { font-size: 18px; font-weight: 700; color: var(--text); }
.modal-close { width: 30px; height: 30px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all .2s; }
.modal-close:hover { background: var(--card2); color: var(--text); }

/* Loan / Plan cards */
.plan-cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.plan-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 28px; transition: all .25s; position: relative; }
.plan-card:hover, .plan-card.featured { border-color: rgba(99,102,241,0.4); }
.plan-card.featured::before { content: 'Populaire'; position: absolute; top: -1px; right: 20px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 0 0 8px 8px; }
.plan-card .plan-name { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.plan-card .plan-rate { font-size: 36px; font-weight: 900; color: var(--text); letter-spacing: -0.04em; margin-bottom: 4px; }
.plan-card .plan-rate span { font-size: 16px; font-weight: 600; color: var(--muted); }
.plan-card .plan-period { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.plan-card .plan-features { list-style: none; margin-bottom: 24px; }
.plan-card .plan-features li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text2); padding: 6px 0; border-bottom: 1px solid var(--border); }
.plan-card .plan-features li i { color: var(--green); width: 15px; height: 15px; flex-shrink: 0; }

/* KYC */
.kyc-status-banner { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--r-lg); margin-bottom: 24px; }
.kyc-status-banner.pending { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.25); }
.kyc-status-banner.verified { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2); }
.kyc-status-banner.rejected { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); }
.kyc-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.kyc-icon.pending { background: rgba(245,158,11,0.15); color: var(--yellow); }
.kyc-icon.verified { background: rgba(16,185,129,0.15); color: var(--green); }
.kyc-icon.rejected { background: rgba(239,68,68,0.15); color: var(--red); }
.kyc-info h4 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.kyc-info p { font-size: 13px; color: var(--muted); }

/* Upload area */
.upload-area { border: 2px dashed rgba(99,102,241,0.25); border-radius: var(--r-lg); padding: 32px; text-align: center; cursor: pointer; transition: all .2s; }
.upload-area:hover { border-color: rgba(99,102,241,0.5); background: rgba(99,102,241,0.04); }
.upload-area .ua-icon { width: 48px; height: 48px; background: rgba(99,102,241,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--indigo-l); margin: 0 auto 14px; }
.upload-area h4 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.upload-area p { font-size: 13px; color: var(--muted); }

/* Notification items */
.notif-list { }
.notif-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-bottom: 1px solid var(--border); transition: background .15s; }
.notif-item:hover { background: rgba(99,102,241,0.06); }
.notif-item.unread { background: rgba(99,102,241,0.08); }
.notif-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-content .notif-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.notif-content .notif-text { font-size: 13px; color: var(--muted); line-height: 1.5; }
.notif-content .notif-time { font-size: 11px; color: var(--light); margin-top: 5px; }

/* Page Notifications (dashboard) — lisibilité thème clair */
.dash-notif-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dash-notif-link {
  text-decoration: none;
  display: block;
  color: inherit;
  outline: none;
  border-radius: var(--r-lg);
}

.dash-notif-link:focus-visible .dash-notif-card {
  box-shadow:
    var(--shadow-card),
    0 0 0 3px rgba(99, 102, 241, 0.35);
}

.dash-notif-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 18px 20px 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}

.dash-notif-link:hover .dash-notif-card {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow:
    0 4px 20px rgba(15, 23, 42, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.dash-notif-card.dash-notif-card--read {
  background: var(--surface);
}

.dash-notif-card.dash-notif-card--unread {
  background: rgba(99, 102, 241, 0.07);
  border-color: rgba(99, 102, 241, 0.32);
  border-left-width: 4px;
  border-left-color: var(--indigo-d);
  padding-left: 18px;
}

.dash-notif-unread-dot {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  background: var(--indigo);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--card);
}

.dash-notif-card.dash-notif-card--read .dash-notif-unread-dot {
  display: none;
}

.dash-notif-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-notif-icon-wrap i,
.dash-notif-icon-wrap svg {
  width: 22px;
  height: 22px;
  stroke-width: 2px;
}

.dash-notif-icon-wrap.type-success {
  background: rgba(16, 185, 129, 0.22);
  color: #047857;
}

.dash-notif-icon-wrap.type-warning {
  background: rgba(245, 158, 11, 0.24);
  color: #b45309;
}

.dash-notif-icon-wrap.type-error {
  background: rgba(239, 68, 68, 0.2);
  color: #b91c1c;
}

.dash-notif-icon-wrap.type-info {
  background: rgba(99, 102, 241, 0.2);
  color: var(--indigo-d);
}

.dash-notif-body {
  flex: 1;
  min-width: 0;
  padding-right: 28px;
}

.dash-notif-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 6px;
}

.dash-notif-card--read .dash-notif-title {
  font-weight: 650;
  color: var(--text2);
}

.dash-notif-msg {
  font-size: 14px;
  line-height: 1.58;
  color: var(--text2);
  margin: 0;
}

.dash-notif-card--read .dash-notif-msg {
  color: var(--muted);
}

.dash-notif-time {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 10px;
  letter-spacing: 0.01em;
}

.dash-notif-empty {
  text-align: center;
  padding: 56px 24px !important;
}

.dash-notif-empty i,
.dash-notif-empty svg {
  width: 48px;
  height: 48px;
  color: var(--light);
  margin-bottom: 16px;
  opacity: 0.95;
}

.dash-notif-empty p {
  font-size: 15px;
  color: var(--muted);
}

/* Page Profil (dashboard INTERNATIONALE BANQUE) */
.dash-profile-page .dash-profile-wrap {
  max-width: 880px;
  margin: 0 auto;
}

.dash-profile-page .muted {
  color: var(--muted);
}

.dash-profile-migrate code {
  font-size: 12px;
  background: rgba(239, 68, 68, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.dash-profile-hero {
  margin-bottom: 20px;
  padding: 0;
  overflow: hidden;
}

.dash-profile-hero-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 22px 24px;
}

.dash-profile-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--grad);
  border: 3px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.2);
}

.dash-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-profile-avatar span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.dash-profile-hero-text {
  flex: 1;
  min-width: 0;
}

.dash-profile-display-name {
  font-size: clamp(1.35rem, 2.4vw + 0.85rem, 1.72rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin: 0 0 4px;
  line-height: 1.25;
}

.dash-profile-email {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
}

.dash-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dash-profile-chip {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
}

.dash-profile-chip.mono {
  font-family: ui-monospace, monospace;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 12px;
  font-weight: 700;
}

.dash-profile-chip--kyc {
  border-color: rgba(245, 158, 11, 0.45);
  color: var(--kc, #92400e);
  background: rgba(245, 158, 11, 0.1);
}

.dash-profile-hero-meta {
  text-align: right;
  flex: 1 1 10rem;
  min-width: 0;
  max-width: 100%;
}

.dash-profile-balance {
  font-size: clamp(0.95rem, 1.2vw + 0.75rem, 18px);
  font-weight: 800;
  color: var(--indigo-d);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}

.dash-profile-alert {
  padding: 16px 20px;
  border-radius: var(--r-lg);
  margin-bottom: 22px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(254, 243, 199, 0.45);
}

.dash-profile-alert strong {
  display: block;
  font-size: 14px;
  color: #92400e;
  margin-bottom: 8px;
}

.dash-profile-alert p {
  margin: 0;
  font-size: 13px;
  line-height: 1.58;
  color: var(--text2);
}

.dash-profile-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.dash-profile-card .card-body {
  padding-bottom: 24px;
}

.dash-profile-section-lead {
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
  font-size: 15px;
}

.dash-profile-formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  align-items: start;
}

.dash-profile-formgrid .full {
  grid-column: 1 / -1;
}

@media (max-width: 620px) {
  .dash-profile-formgrid {
    grid-template-columns: 1fr;
  }
}

.dash-profile-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text2);
  margin-bottom: 6px;
}

.dash-profile-field .form-control {
  width: 100%;
}

.dash-profile-textarea {
  min-height: 80px;
  resize: vertical;
}

.dash-profile-submit {
  grid-column: 1 / -1;
}

.dash-profile-submit.full .btn-primary {
  min-width: 180px;
}

.dash-profile-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.dash-profile-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dash-profile-no-file {
  font-size: 13px;
}

.dash-profile-mt {
  margin-top: 14px;
}

.dash-profile-details summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--indigo-l);
}

.dash-profile-details summary::-webkit-details-marker {
  margin-right: 8px;
}

.dash-profile-details[open] summary {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .dash-profile-hero-meta {
    text-align: left;
    width: 100%;
  }
}

/* Page Sécurité (dashboard) */
.dash-security-page .dash-security-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.dash-security-header {
  margin-bottom: 18px;
}

.dash-security-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.dash-security-toc a {
  font-size: 13px;
  font-weight: 650;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  text-decoration: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.dash-security-toc a:hover {
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--indigo-d);
  background: rgba(99, 102, 241, 0.06);
}

.dash-security-section {
  margin-bottom: 22px;
  scroll-margin-top: calc(var(--topbar) + 16px);
}

.dash-security-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dash-security-block {
  padding: 4px 0 8px;
}

.dash-security-h2 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.dash-security-info {
  padding: 14px 16px;
  border-radius: var(--r);
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.18);
  margin-bottom: 18px;
}

.dash-security-info p {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--text2);
}

.dash-security-info p:last-child {
  margin-bottom: 0;
}

.dash-security-attention {
  padding: 14px 16px;
  border-radius: var(--r);
  margin-bottom: 14px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(254, 243, 199, 0.45);
}

.dash-security-attention strong {
  display: block;
  font-size: 13px;
  color: #92400e;
  margin-bottom: 8px;
}

.dash-security-attention p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--text2);
}

.dash-security-sep {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 22px 0;
}

.dash-security-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 440px;
}

.dash-security-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text2);
  margin-bottom: 6px;
}

.dash-security-field .form-control {
  width: 100%;
}

.dash-security-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.dash-security-pwd-wrap {
  position: relative;
}

.dash-security-pwd-wrap .form-control {
  padding-right: 46px;
}

.dash-security-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.dash-security-eye:hover {
  color: var(--indigo-d);
  background: rgba(99, 102, 241, 0.08);
}

.dash-security-eye i,
.dash-security-eye svg {
  width: 18px;
  height: 18px;
}

.dash-security-2fa {
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
}

.dash-security-2fa-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--indigo-d);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-security-2fa-icon i,
.dash-security-2fa-icon svg {
  width: 28px;
  height: 28px;
}

.dash-security-2fa-lead {
  font-size: 14px;
  line-height: 1.58;
  color: var(--text2);
  margin: 0 0 12px;
}

.dash-security-footer-link {
  margin-top: 8px;
  font-size: 14px;
}

.dash-security-footer-link a {
  font-weight: 650;
}

/* Documents justificatifs (KYC) */
.dash-kyc-page .dash-kyc-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.dash-kyc-hero {
  margin-bottom: 20px;
}

.dash-kyc-attention.dash-security-attention {
  margin-bottom: 22px;
}

.dash-kyc-attention-list {
  margin: 8px 0 0;
  padding-left: 1.15rem;
  color: var(--text2);
  font-size: 13.5px;
  line-height: 1.65;
}

.dash-kyc-attention-list li {
  margin-bottom: 6px;
}

.dash-kyc-attention-list li:last-child {
  margin-bottom: 0;
}

.dash-kyc-section-lead {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin: 0 0 18px;
}

.dash-kyc-mini-lead {
  font-size: 13px;
  color: var(--muted);
  margin: -4px 0 8px;
}

.dash-kyc-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 480px;
}

.dash-kyc-status-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
}

.dash-kyc-status-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text2);
}

.dash-kyc-status-ico {
  flex-shrink: 0;
  color: var(--yellow);
}

.dash-kyc-status-ico,
.dash-kyc-status-ico svg {
  width: 28px;
  height: 28px;
}

.dash-kyc-status-card--wait .dash-kyc-status-ico {
  color: var(--yellow);
}

/* Ticket */
.ticket-item { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border); transition: background .15s; text-decoration: none; }
.ticket-item:hover { background: rgba(99,102,241,0.05); }
.ticket-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(99,102,241,0.1); display: flex; align-items: center; justify-content: center; color: var(--indigo-l); flex-shrink: 0; }
.ticket-info { flex: 1; min-width: 0; }
.ticket-info .t-subject { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-info .t-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ticket-right { text-align: right; flex-shrink: 0; }
.ticket-right .t-date { font-size: 12px; color: var(--muted); margin-bottom: 4px; }

/* Messages conversation */
.messages-wrap { display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.msg-bubble { max-width: 75%; }
.msg-bubble.from-user { margin-left: auto; }
.msg-bubble.from-support { margin-right: auto; }
.msg-bubble .bubble { padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.6; }
.msg-bubble.from-user .bubble { background: var(--indigo); color: #fff; border-bottom-right-radius: 4px; }
.msg-bubble.from-support .bubble { background: var(--surface); color: var(--text2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg-meta { font-size: 11px; color: var(--muted); margin-top: 5px; }
.msg-bubble.from-user .msg-meta { text-align: right; }

/* Responsive */
@media (max-width: 1200px) { .hero-inner { grid-template-columns: 1fr; text-align: center; } .hero p { margin: 0 auto 36px; } .hero-actions { justify-content: center; } .hero-stats { justify-content: center; } .hero-visual { display: none; } .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 992px) { .sidebar { transform: translateX(-100%); } .sidebar.open { transform: translateX(0); } .page-wrap { margin-left: 0; } .topbar-toggle { display: flex; } .topbar-search { display: none; } .footer-top { grid-template-columns: 1fr 1fr; } .stats-grid { grid-template-columns: 1fr 1fr; } .plan-cards-grid { grid-template-columns: 1fr 1fr; } .testimonials-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .page-body { padding: 16px; } .land-nav .nav-links { display: none; } .land-nav .nav-inner { padding: 0 20px; } .hero-inner { padding: 60px 20px; } .section-inner { padding: 0 20px; } .features-grid { grid-template-columns: 1fr; } .faq-grid { grid-template-columns: 1fr; } .cta-band { flex-direction: column; text-align: center; } .cta-actions { flex-direction: column; width: 100%; } .steps-grid { grid-template-columns: 1fr 1fr; } .footer-top { grid-template-columns: 1fr; } .stats-grid { grid-template-columns: 1fr 1fr; } .hero h1 { font-size: 2rem; } .balance-amount { font-size: 28px; } }

/* ============================================
   DASHBOARD — MOBILE (≤ 768px)
   ============================================ */
@media (max-width: 768px) {
  /* Topbar */
  .topbar { padding: 0 14px; gap: 6px; }

  /* Cards */
  .card-header { padding: 14px 16px; }
  .card-body  { padding: 16px; }
  .card-footer { padding: 12px 16px; }

  /* Page header */
  .dash-welcome-heading .page-title { font-size: 1.2rem; }
  .dash-page-header-intl { margin-bottom: 14px; }
  .dash-kyc-banner-inner { padding: 14px 14px; gap: 12px; }

  /* Aside (résumé + activités) — passe sous le contenu principal */
  .dash-intl-aside { order: 2; }
  .dash-intl-main  { order: 1; }

  /* Wrapper table : overflow inutile en mode carte-ligne */
  .dash-txn-card .card-body[style*="overflow-x"] { overflow-x: visible; }

  /* Résumé du compte : étiquettes + valeurs en pleine largeur empilées */
  .dash-summary-dl {
    grid-template-columns: 1fr;
  }
  .dash-summary-dl dt { padding: 8px 0 0; border-top: 1px solid var(--border); }
  .dash-summary-dl dd { padding: 0 0 8px; border-top: none; }
  .dash-summary-dl dt:first-of-type { border-top: none; padding-top: 0; }

  /* Table transactions — layout carte-ligne (sans scroll horizontal) */
  .dash-table-txns,
  .dash-table-txns tbody { display: block; width: 100%; }
  .dash-table-txns thead { display: none; }
  .dash-table-txns tbody tr {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    min-width: 0;
  }
  .dash-table-txns tbody tr:last-child { border-bottom: none; }
  /* Masquer : ID (2), Type (4), Solde reporté (6) */
  .dash-table-txns td:nth-child(2),
  .dash-table-txns td:nth-child(4),
  .dash-table-txns td:nth-child(6) { display: none; }
  /* Date — texte court, fixe à gauche */
  .dash-table-txns td:nth-child(1) {
    flex-shrink: 0;
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
    min-width: 0;
  }
  /* Libellé — prend toute la place disponible */
  .dash-table-txns td:nth-child(3) {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    padding: 0;
  }
  /* Montant — droite, gras, pas de wrap */
  .dash-table-txns td:nth-child(5) {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-align: right;
    padding: 0;
  }

  /* Transfert fee rows */
  .dash-transfer-fee-row,
  .dash-transfer-fee-total { font-size: 12px; }

  /* Marges des cards du dashboard */
  .dash-txn-card { margin-bottom: 16px; }
  .dash-mobile-promo { margin-bottom: 16px; }

  /* ── Table HISTORIQUE des transactions (transactions.php) ── */
  /* 9 colonnes : Description|Référence|Type|Montant|Frais|Solde après|Statut|Méthode|Date */
  .dash-txn-table-wrap { overflow-x: visible; }
  .dash-txn-table,
  .dash-txn-table tbody { display: block; width: 100%; }
  .dash-txn-table thead { display: none; }
  .dash-txn-table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    row-gap: 5px;
    column-gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
  }
  .dash-txn-table tbody tr:last-child { border-bottom: none; }
  /* Ligne 1 gauche : Description */
  .dash-txn-table td:nth-child(1) {
    grid-column: 1; grid-row: 1;
    min-width: 0;
  }
  /* Ligne 1 droite : Montant */
  .dash-txn-table td:nth-child(4) {
    grid-column: 2; grid-row: 1;
    text-align: right;
    white-space: nowrap;
    align-self: center;
  }
  /* Ligne 2 gauche : Date */
  .dash-txn-table td:nth-child(9) {
    grid-column: 1; grid-row: 2;
    font-size: 11px;
    color: var(--muted);
    align-self: center;
  }
  /* Ligne 2 droite : Statut */
  .dash-txn-table td:nth-child(7) {
    grid-column: 2; grid-row: 2;
    text-align: right;
    align-self: center;
  }
  /* Masquer : Référence, Type, Frais, Solde après, Méthode */
  .dash-txn-table td:nth-child(2),
  .dash-txn-table td:nth-child(3),
  .dash-txn-table td:nth-child(5),
  .dash-txn-table td:nth-child(6),
  .dash-txn-table td:nth-child(8) { display: none; }

  /* ── Table ACTIVITÉS (activites.php) ── */
  /* 5 colonnes : Description|IP|Lieu|Appareil|Date */
  .dash-act-table,
  .dash-act-table tbody { display: block; width: 100%; }
  .dash-act-table thead { display: none; }
  .dash-act-table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    row-gap: 4px;
    column-gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
  }
  .dash-act-table tbody tr:last-child { border-bottom: none; }
  /* Ligne 1 gauche : Description (type événement) */
  .dash-act-table td:nth-child(1) { grid-column: 1; grid-row: 1; font-size: 13px; }
  /* Ligne 1 droite : Date */
  .dash-act-table td:nth-child(5) {
    grid-column: 2; grid-row: 1;
    font-size: 11px; color: var(--muted);
    text-align: right; white-space: nowrap; align-self: start;
  }
  /* Ligne 2 gauche : IP */
  .dash-act-table td:nth-child(2) {
    grid-column: 1; grid-row: 2;
    font-size: 11px; color: var(--muted);
  }
  /* Ligne 2 droite : Appareil */
  .dash-act-table td:nth-child(4) {
    grid-column: 2; grid-row: 2;
    font-size: 11px; color: var(--muted);
    text-align: right;
  }
  /* Masquer : Lieu */
  .dash-act-table td:nth-child(3) { display: none; }
}
@media (max-width: 576px) { .plan-cards-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } .quick-actions { flex-wrap: wrap; } .qa-btn { min-width: calc(50% - 6px); } .steps-grid { grid-template-columns: 1fr; } }

/* Misc */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 199; opacity: 0; pointer-events: none; transition: opacity .3s; }
.overlay.show { opacity: 1; pointer-events: all; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.d-flex { display: flex; } .align-center { align-items: center; } .justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .es-icon { width: 64px; height: 64px; background: rgba(99,102,241,0.1); border-radius: 20px; display: flex; align-items: center; justify-content: center; color: var(--indigo-l); margin: 0 auto 20px; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--text2); margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--muted); }
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill); font-size: 12px; color: var(--muted); }

/* ——— Dashboard : Virement (transfer.php) ——— */
.dash-transfer-wrap { max-width: 1100px; margin: 0 auto; padding-bottom: 40px; }
.dash-transfer-header { margin-bottom: 10px; }
.dash-transfer-kyc-banner { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.dash-transfer-sepa-card { margin-bottom: 20px; }
.dash-transfer-sepa-intro p { margin-top: 8px; }
.dash-transfer-sepa-intro p:last-child { margin-bottom: 0; }
.dash-sepa-stepper-shell { padding-top: 0; }
.dash-transfer-locked-msg {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  margin-bottom: 16px; background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.35);
  border-radius: var(--r); font-size: 13px; font-weight: 600; color: var(--text2);
}
.dash-transfer-locked-msg i, .dash-transfer-locked-msg svg { width: 18px; height: 18px; flex-shrink: 0; }
.dash-sepa-steps--blocked { pointer-events: none; opacity: 0.82; filter: saturate(0.92); user-select: none; }
.dash-sepa-steps--blocked:focus-within { outline: none; }
.dash-sepa-stepbar {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 22px; padding: 0;
}
.dash-sepa-steppill {
  flex: 1; min-width: 160px;
  padding: 10px 14px; border-radius: var(--r); border: 1.5px solid var(--border2);
  background: var(--surface); font-size: 12px; font-weight: 650; color: var(--muted);
}
.dash-sepa-steppill span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; margin-right: 8px; border-radius: 999px;
  background: rgba(99,102,241,0.12); font-size: 11px; font-weight: 800; color: var(--indigo-d);
  vertical-align: middle;
}
.dash-sepa-steppill.active {
  border-color: rgba(99,102,241,0.45); background: rgba(99,102,241,0.06); color: var(--text);
  box-shadow: 0 0 0 1px rgba(99,102,241,0.12);
}
.dash-sepa-steppill.done span { background: rgba(16,185,129,0.2); color: #047857; }
.dash-sepa-form-wrap .dash-profile-field { margin-bottom: 14px; }
.dash-sepa-panel[hidden] { display: none !important; }
.dash-sepa-panel.active { animation: dashSepaFade .22s ease; }
@keyframes dashSepaFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.dash-sepa-buttons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.dash-sepa-summary {
  margin: 0; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface);
  display: grid; grid-template-columns: auto 1fr; gap: 8px 20px;
  font-size: 13px;
}
.dash-sepa-summary dt { margin: 0; color: var(--muted); font-weight: 600; }
.dash-sepa-summary dd { margin: 0; font-weight: 600; word-break: break-word; }
.form-control.uppercase { text-transform: uppercase; }
.dash-transfer-balance-strip {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 14px;
  padding: 16px 20px; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(99,102,241,0.09) 0%, rgba(139,92,246,0.06) 100%);
  border: 1px solid rgba(99,102,241,0.18); border-radius: var(--r-lg);
}

.dash-transfer-balance-strip > :not(.dash-transfer-balance-ico) {
  flex: 1 1 12rem;
  min-width: 0;
}
.dash-transfer-balance-ico {
  width: 44px; height: 44px; border-radius: 14px;
  background: rgba(99,102,241,0.15); display: flex; align-items: center; justify-content: center; color: var(--indigo-d);
}
.dash-transfer-balance-ico i, .dash-transfer-balance-ico svg { width: 22px; height: 22px; }
.dash-transfer-balance-amt {
  font-size: clamp(1rem, 2.5vw + 0.55rem, 22px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}
.dash-transfer-two-col { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.dash-transfer-two-col > div { flex: 1; min-width: min(320px, 100%); }
.dash-transfer-form-disabled-msg {
  display: flex; gap: 10px; align-items: center;
  padding: 12px 16px; margin-bottom: 14px;
  border-radius: var(--r); border: 1px dashed rgba(148,163,184,0.85);
  background: rgba(148,163,184,0.08); font-size: 13px; color: var(--text2); font-weight: 600;
}
.dash-transfer-form-disabled-msg i, .dash-transfer-form-disabled-msg svg { width: 18px; height: 18px; opacity: 0.8; flex-shrink: 0; }
.dash-transfer-fee-summary {
  padding: 14px 16px; margin: 16px 0 18px;
  border-radius: var(--r); border: 1px solid var(--border); background: var(--surface);
}
.dash-transfer-fee-row, .dash-transfer-fee-total {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  font-size: 13px;
  margin-bottom: 8px;
}

.dash-transfer-fee-row strong,
.dash-transfer-fee-total strong {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}
.dash-transfer-fee-row span { color: var(--muted); }
.dash-transfer-fee-row:last-of-type { margin-bottom: 10px; }
.dash-transfer-fee-total { margin-bottom: 0; padding-top: 10px; border-top: 1px dashed var(--border); font-weight: 800; font-size: 15px; }
.dash-ben-list { padding: 0 !important; max-height: 320px; overflow-y: auto; }
.dash-ben-row {
  display: flex; align-items: stretch; gap: 12px; width: 100%;
  padding: 14px 16px; border: none; border-bottom: 1px solid var(--border);
  background: transparent; text-align: left; font-size: inherit; font-family: inherit;
  cursor: pointer; transition: background .15s ease;
}
.dash-ben-row:last-child { border-bottom: none; }
.dash-ben-row--int:hover { background: rgba(99,102,241,0.06); }
.dash-ben-row--ext { cursor: default; }
.dash-ben-pick { flex-shrink: 0; align-self: center; font-size: 12px; font-weight: 700; color: var(--indigo-d); white-space: nowrap; }
.dash-ben-name { font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.dash-ben-acc { font-size: 12px; color: var(--muted); letter-spacing: 0.02em; word-break: break-all; }
.dash-modal {
  position: fixed; inset: 0; z-index: 400;
  display: none; align-items: center; justify-content: center; padding: 20px;
  background: rgba(15,23,42,0.45); backdrop-filter: blur(2px); overflow-y: auto;
}
.dash-modal-inner { width: min(440px, 100%); margin: auto; animation: dashModalPop .22s ease; }
@keyframes dashModalPop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 900px) {
  .dash-transfer-two-col { flex-direction: column; }
}

/* Dashboard — dépôt */
.dash-deposit-wrap { max-width: 760px; margin: 0 auto; padding-bottom: 40px; }
.dash-deposit-header.page-subtitle { max-width: 42rem; }
.dash-deposit-method-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px;
}
.dash-deposit-method-alt {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--border2); border-radius: var(--r);
  background: var(--surface);
  cursor: pointer; font-size: 13px; font-weight: 650; color: var(--text2);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.dash-deposit-method-alt:has(input:checked) {
  border-color: rgba(99,102,241,0.45);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
  color: var(--text);
}
.dash-deposit-method-alt:hover { border-color: rgba(99,102,241,0.25); }
.dash-deposit-method-alt input[type="radio"] { accent-color: var(--indigo-d); flex-shrink: 0; margin: 0; }
.dash-deposit-method-alt i, .dash-deposit-method-alt svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--indigo-d); }
.dash-deposit-method-alt span { line-height: 1.25; min-width: 0; }

@supports not selector(:has(*)) {
  .dash-deposit-method-alt input:checked + i + span { font-weight: 800; color: var(--text); }
}

/* Dashboard — demande de carte */
.dash-cardreq-wrap { max-width: 880px; margin: 0 auto; padding-bottom: 40px; }
.dash-cardreq-card { margin-bottom: 18px; }
.dash-cardreq-process p { margin-top: 8px; }
.dash-cardreq-process p:last-child { margin-bottom: 0; }
.dash-cardreq-catalog {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px;
}
.dash-cardreq-tile {
  padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--border);
  background: var(--surface);
}
.dash-cardreq-tile i, .dash-cardreq-tile svg { width: 22px; height: 22px; color: var(--indigo-d); margin-bottom: 10px; }
.dash-cardreq-tile h3 { font-size: 15px; font-weight: 800; margin: 0 0 8px; color: var(--text); }
.dash-cardreq-tile p { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin: 0; }
.dash-cardreq-readonly { margin-top: 4px; }

/* Dashboard — journal d’activités (connexions) */
.dash-activites-wrap { max-width: 1100px; margin: 0 auto; padding-bottom: 36px; }
.dash-act-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dash-act-table thead th {
  text-align: left; padding: 14px 18px; font-weight: 700; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); border-bottom: 1px solid var(--border); background: var(--surface); white-space: nowrap;
}
.dash-act-table tbody td { padding: 16px 18px; vertical-align: top; border-bottom: 1px solid var(--border); color: var(--text2); line-height: 1.45; }
.dash-act-table tbody tr:last-child td { border-bottom: none; }
.dash-act-lieu-line { display: block; font-size: 12.5px; }
.dash-act-table .mono { font-size: 11.5px; word-break: break-all; max-width: 200px; }
.dash-act-pager {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: center;
  padding: 16px 18px; border-top: 1px solid var(--border); background: rgba(99,102,241,0.02);
}

/* Dashboard — retraits / historique / support (lisibilité thème clair) */
.dash-light-page .page-title { color: var(--text); }
.dash-withdraw-wrap, .dash-tx-wrap, .dash-support-wrap { max-width: 1100px; margin: 0 auto; padding-bottom: 36px; }
.dash-withdraw-methods {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
@media (max-width: 576px) { .dash-withdraw-methods { grid-template-columns: 1fr; } }
.dash-withdraw-method {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border: 1.5px solid var(--border2); border-radius: var(--r); cursor: pointer; background: var(--surface);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.dash-withdraw-method:hover { border-color: rgba(239,68,68,0.35); }
.dash-withdraw-method:has(input:checked) {
  border-color: rgba(239,68,68,0.45);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}
.dash-withdraw-method input[type="radio"] { accent-color: #dc2626; flex-shrink: 0; margin: 0; }
.dash-withdraw-method-ico {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 10px;
  background: rgba(239,68,68,0.09);
  color: #dc2626;
  display: flex; align-items: center; justify-content: center;
}
.dash-withdraw-method-ico svg { width: 18px; height: 18px; }
.dash-withdraw-method-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; }
.dash-withdraw-method-body strong { color: var(--text); font-weight: 750; }

@supports not selector(:has(*)) {
  .dash-withdraw-method input:checked ~ .dash-withdraw-method-ico { outline: 2px solid rgba(239,68,68,0.45); outline-offset: 2px; }
}

.dash-tx-filter-card { margin-bottom: 18px; }
.dash-txn-filters {
  display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: flex-end;
}
.dash-txn-filter-field {
  flex: 1; min-width: 140px;
}
.dash-txn-filter-field label {
  display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); margin-bottom: 6px;
}
.dash-txn-filter-actions {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.dash-txn-table-wrap {
  border-radius: inherit;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.dash-txn-table {
  width: 100%;
  border-collapse: collapse;
  min-width: min(920px, 100%);
  font-size: 13px;
}

.dash-txn-table td:nth-child(4),
.dash-txn-table td:nth-child(5),
.dash-txn-table td:nth-child(6) {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}

.dash-txn-table thead th {
  text-align: left; padding: 14px 18px; font-size: 11px; font-weight: 750; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); border-bottom: 1px solid var(--border); background: var(--surface);
  white-space: nowrap;
}
.dash-txn-table tbody td { padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--text2); vertical-align: middle; }
.dash-txn-table tbody tr:last-child td { border-bottom: none; }
.dash-txn-table tbody tr:hover { background: rgba(99,102,241,0.04); }
.dash-txn-desc { display: flex; align-items: center; gap: 11px; min-width: 0; max-width: 260px; }
.dash-txn-ico {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.dash-txn-ico svg { width: 16px; height: 16px; }
.dash-txn-desc-txt {
  font-weight: 600; font-size: 13.5px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dash-txn-ref { font-size: 12px; color: var(--muted); word-break: break-all; }
.dash-txn-chip {
  font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--card2); color: var(--text2); border: 1px solid var(--border);
}
.dash-txn-st { font-size: 11.5px; font-weight: 750; padding: 5px 12px; border-radius: var(--r-pill); display: inline-block; }
.dash-txn-st--ok { background: rgba(16,185,129,0.14); color: #047857; }
.dash-txn-st--wait { background: rgba(245,158,11,0.16); color: #b45309; }
.dash-txn-st--bad { background: rgba(239,68,68,0.13); color: #b91c1c; }
.dash-tx-empty {
  padding: 56px 24px; text-align: center;
}
.dash-tx-empty i, .dash-tx-empty svg { width: 44px; height: 44px; opacity: .45; color: var(--muted); margin: 0 auto 14px; display: block; }
.dash-tx-empty p { font-size: 15px; color: var(--text2); font-weight: 600; margin: 0; }
.dash-txn-pager {
  padding: 16px 20px; border-top: 1px solid var(--border);
  background: rgba(248,250,252,0.9);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.dash-txn-pager-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Support tickets */
.dash-support-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px;
}
@media (max-width: 700px) { .dash-support-stats { grid-template-columns: 1fr; } }
.dash-support-stat {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--surface);
}
.dash-support-stat-ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dash-support-stat--blue .dash-support-stat-ico { background: rgba(99,102,241,0.13); color: var(--indigo-d); }
.dash-support-stat--amber .dash-support-stat-ico { background: rgba(245,158,11,0.16); color: #d97706; }
.dash-support-stat--green .dash-support-stat-ico { background: rgba(16,185,129,0.13); color: var(--green); }
.dash-support-stat-ico svg { width: 20px; height: 20px; }
.dash-support-stat-num { font-size: 1.45rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.dash-support-list { overflow: hidden; }
.dash-support-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  flex-wrap: wrap; padding: 20px 22px; border-bottom: 1px solid var(--border);
  transition: background .15s ease;
}
.dash-support-row:hover { background: rgba(99,102,241,0.035); }
.dash-support-row:last-child { border-bottom: none; }
.dash-support-row-main { flex: 1; min-width: min(260px, 100%); }
.dash-support-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.dash-support-subject { margin: 0 0 8px; font-size: 16px; font-weight: 800; color: var(--text); line-height: 1.35; }
.dash-support-preview { margin: 0; font-size: 14px; line-height: 1.55; word-break: break-word; max-height: 5.8em; overflow: hidden; }
.dash-support-row-aside { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.dash-support-badge {
  font-size: 11.5px; font-weight: 750; padding: 4px 11px; border-radius: var(--r-pill);
}
.dash-support-badge--open { background: rgba(99,102,241,0.14); color: #4338ca; }
.dash-support-badge--pending { background: rgba(245,158,11,0.18); color: #b45309; }
.dash-support-badge--closed { background: rgba(16,185,129,0.15); color: #047857; }
.dash-support-modal-inner.card { width: min(460px, 100%); overflow: visible; margin: auto; border-radius: var(--r-lg); }

/* --- Administration équipe --- */
body.admin-dash { background: linear-gradient(180deg, rgba(30,58,95,0.05) 0%, var(--surface) 460px); }
.sidebar.admin-sidebar .ibq-brand-logo--sidebar {
  max-width: 118px;
}
.admin-topbar-marque { font-size: 13px; font-weight: 720; letter-spacing: -0.02em; color: var(--text); }
.admin-tabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tab {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border2);
  font-weight: 650;
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
}
.admin-tab:hover {
  border-color: rgba(37,99,235,0.35);
  color: var(--text);
  background: rgba(37,99,235,0.06);
}
.admin-tab--active {
  border-color: rgba(37,99,235,0.45);
  background: rgba(37,99,235,0.11);
  color: #1d4ed8;
}
.admin-stat-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(184px, 1fr));
  margin-bottom: 28px;
}
.admin-stat-card {
  border-radius: 16px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .15s ease, border-color .15s ease;
}
.admin-stat-card:not(a) { cursor: default; }
a.admin-stat-card:hover { transform: translateY(-2px); border-color: rgba(99,102,241,0.25); color: inherit; }
.admin-stat-card--warn { border-left: 4px solid #f59e0b; }
.admin-stat-card--accent { border-left: 4px solid #2563eb; }
.admin-stat-num { font-size: 28px; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.admin-stat-label { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.35; }
.admin-shortcuts-card {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
}
.admin-shortcuts-card h2 { margin: 0 0 14px; font-size: 16px; font-weight: 800; color: var(--text); }
.admin-shortcuts-links { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-table-wrap {
  overflow-x: auto;
  margin-top: 8px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
}
body.admin-dash .admin-table-filter {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(99, 102, 241, 0.04);
}
body.admin-dash .admin-table-filter-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  width: 100%;
  margin: 0;
}
body.admin-dash .admin-table-filter-input {
  flex: 1;
  min-width: min(200px, 100%);
  max-width: 440px;
  font-size: 14px;
}
body.admin-dash .admin-table-filter-count {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
body.admin-dash .admin-screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ibq-admin-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.ibq-admin-table th {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-weight: 750;
  color: var(--muted);
  background: rgba(99,102,241,0.04);
}
.ibq-admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.ibq-admin-table tr:last-child td { border-bottom: none; }
.admin-empty { padding: 24px !important; text-align: center; color: var(--muted); }
.admin-actions-cell { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: 360px; }
.admin-inline-form, .admin-inline-status-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
}
.admin-mini-select { min-width: 120px !important; padding: 6px 10px !important; font-size: 12px !important; margin: 0; }
.admin-pill { padding: 3px 9px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 700; }
.admin-pill--role { background: rgba(99,102,241,0.12); color: #4338ca; }
.admin-pill--appr-pending { background: rgba(245,158,11,0.2); color: #b45309; }
.admin-pill--appr-approved { background: rgba(16,185,129,0.14); color: #047857; }
.admin-pill--appr-rejected { background: rgba(239,68,68,0.13); color: #b91c1c; }

/* Édition fiche utilisateur (admin) */
.admin-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 20px;
  margin-top: 8px;
}
.admin-fieldset {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}
.admin-fieldset legend { padding: 0 8px; font-weight: 800; font-size: 14px; color: var(--text); }
.admin-user-edit-form label {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
}
.admin-user-edit-form .form-control { margin-top: 6px; font-weight: 500; width: 100%; }
.admin-user-edit-main .btn-lg { padding: 12px 26px; }
.admin-credit-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-money-ops {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 18px;
}
.admin-shortcuts-card--debit .btn-danger.btn-sm {
  font-weight: 750;
}
.admin-loan-form textarea { resize: vertical; min-height: 48px; width: 100%; }

/* Statistiques audience (admin) */
.admin-analytics-card h2 { margin-top: 0; }
.admin-analytics-cols {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(260px, 0.9fr);
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .admin-analytics-cols { grid-template-columns: 1fr; }
}
.admin-stat-grid.admin-stat-grid--inline { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.admin-vis-day-row {
  display: grid;
  grid-template-columns: 52px 1fr 40px;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  font-size: 12.5px;
}
.admin-vis-day-barwrap {
  height: 8px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 999px;
  overflow: hidden;
}
.admin-vis-day-bar {
  height: 100%;
  min-width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8, #6366f1);
  transition: width .2s ease;
}
.admin-vis-day-label { color: var(--muted); font-weight: 650; }
.admin-vis-day-num { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }

/* ========== Administration responsive ========== */
/* Évite débordement horizontal ; le menu burger et le tableau scrollent localement */
body.admin-dash {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}
body.admin-dash * {
  box-sizing: border-box;
}
body.admin-dash .page-wrap {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}
body.admin-dash .admin-table-wrap {
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

@media (max-width: 992px) {
  /* Réaffiche la zone « titre » dans la topbar admin (globalement `.topbar-search` est masqué <992px). */
  body.admin-dash .topbar-search {
    display: flex !important;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
    max-width: none;
    margin-right: 4px;
  }
  body.admin-dash .admin-topbar-marque {
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
    min-width: 0;
    color: rgba(69, 26, 3, 0.9);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.admin-dash .topbar-intl.admin-topbar {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    gap: 6px;
  }
  body.admin-dash .topbar-left {
    min-width: 0;
    flex: 1 1 auto;
  }
  body.admin-dash .topbar-right {
    flex-shrink: 0;
    gap: 2px;
  }
  body.admin-dash .topbar-lang-pill {
    max-width: min(140px, 36vw);
    min-width: 0;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10.5px !important;
    padding: 5px 7px !important;
  }
  body.admin-dash .topbar-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  body.admin-dash .topbar-user {
    padding: 6px !important;
  }
}

@media (max-width: 768px) {
  body.admin-dash .page-body.dash-main-intl {
    padding: 16px max(12px, env(safe-area-inset-left)) 22px max(12px, env(safe-area-inset-right));
  }
  body.admin-dash .dash-page-header-intl.admin-page-header .dash-welcome-title,
  body.admin-dash .dash-page-header-intl.admin-page-header .page-title {
    font-size: 1.25rem;
    line-height: 1.28;
  }
  body.admin-dash .dash-page-header-intl .page-subtitle {
    font-size: 12.5px;
    line-height: 1.45;
  }
  body.admin-dash .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  body.admin-dash .admin-stat-card {
    padding: 14px 14px;
  }
  body.admin-dash .admin-stat-num {
    font-size: 23px;
  }
  body.admin-dash .admin-table-responsive .ibq-admin-table {
    font-size: 12px;
  }
  body.admin-dash .admin-table-responsive .ibq-admin-table th,
  body.admin-dash .admin-table-responsive .ibq-admin-table td {
    padding: 9px 8px;
  }
}

/* Tableaux admin : cartes empilées (mobile) — data-label rempli par admin-tables.js */
@media (max-width: 760px) {
  body.admin-dash .admin-table-responsive {
    overflow-x: visible;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  body.admin-dash .admin-table-responsive .ibq-admin-table {
    min-width: 0 !important;
    width: 100%;
    display: block;
    border: none;
  }
  body.admin-dash .admin-table-responsive .ibq-admin-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  body.admin-dash .admin-table-responsive .ibq-admin-table tbody {
    display: block;
  }
  body.admin-dash .admin-table-responsive .ibq-admin-table tbody tr {
    display: block;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
  }
  body.admin-dash .admin-table-responsive .ibq-admin-table tbody tr.admin-table-empty-row {
    margin-bottom: 0;
  }
  body.admin-dash .admin-table-responsive .ibq-admin-table tbody tr.admin-table-empty-row td {
    border: none;
    padding: 16px 8px;
  }
  body.admin-dash .admin-table-responsive .ibq-admin-table td {
    display: grid;
    grid-template-columns: minmax(100px, 32%) 1fr;
    align-items: start;
    gap: 8px 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    line-height: 1.45;
  }
  body.admin-dash .admin-table-responsive .ibq-admin-table tbody tr td:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  body.admin-dash .admin-table-responsive .ibq-admin-table td[colspan] {
    display: block;
    grid-template-columns: 1fr;
    text-align: center;
    border: none;
  }
  body.admin-dash .admin-table-responsive .ibq-admin-table td[data-label]::before {
    content: attr(data-label);
    font-weight: 750;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    line-height: 1.35;
    padding-top: 2px;
  }
  body.admin-dash .admin-table-responsive .ibq-admin-table td:not([data-label]) {
    grid-template-columns: 1fr;
  }
  body.admin-dash .admin-table-responsive .ibq-admin-table td.admin-actions-cell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    max-width: none;
  }
  body.admin-dash .admin-table-responsive .ibq-admin-table tbody tr.admin-table-empty-row td {
    display: block;
    grid-template-columns: unset;
  }
}

@media (max-width: 400px) {
  body.admin-dash .admin-table-responsive .ibq-admin-table td[data-label] {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  body.admin-dash .admin-table-responsive .ibq-admin-table td[data-label]::before {
    padding-top: 0;
  }
}

@media (max-width: 576px) {
  body.admin-dash .admin-stat-grid {
    grid-template-columns: 1fr;
  }
  body.admin-dash .admin-stat-grid.admin-stat-grid--inline {
    grid-template-columns: 1fr;
  }
  body.admin-dash .admin-tabs {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  body.admin-dash .admin-tab {
    text-align: center;
  }
  body.admin-dash .admin-actions-cell {
    max-width: none;
    flex-direction: column;
    align-items: stretch;
  }
  body.admin-dash .admin-inline-form,
  body.admin-dash .admin-inline-status-form {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100%;
  }
  body.admin-dash .admin-inline-form button[type="submit"],
  body.admin-dash .admin-inline-form .btn-sm,
  body.admin-dash .admin-inline-status-form button[type="submit"],
  body.admin-dash .admin-inline-status-form .btn-sm {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  body.admin-dash .admin-inline-status-form .admin-mini-select {
    width: 100%;
    max-width: none !important;
    min-width: 0 !important;
  }
  body.admin-dash .admin-money-ops {
    grid-template-columns: 1fr;
  }
  body.admin-dash .admin-credit-inline {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  body.admin-dash .admin-credit-inline input.form-control[type="text"] {
    max-width: none !important;
    width: 100% !important;
  }
  body.admin-dash .admin-loan-form {
    width: 100%;
  }
  body.admin-dash .admin-loan-form button[type="submit"] {
    width: 100%;
  }
  body.admin-dash .topbar-lang-pill {
    max-width: min(96px, 28vw);
  }
  body.admin-dash .admin-topbar-marque {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  body.admin-dash .topbar-user .t-name {
    display: none;
  }
}
