/* ============================================================
   Banko — Design System (Fintech moderne)
   ============================================================ */
:root {
  /* Couleurs */
  --bg:          #eef1f8;
  --surface:     #ffffff;
  --surface-2:   #f5f7fc;
  --surface-3:   #eceff7;
  --text:        #0b1220;
  --muted:       #667085;
  --faint:       #98a2b3;
  --border:      #e5e9f2;
  --border-2:    #d7dceb;

  /* Bleu Océan & Marine : identité unifiée Fintech */
  --primary:     #0284c7;   /* Bleu Océan — boutons et actions principales */
  --primary-600: #0369a1;
  --primary-700: #075985;
  --primary-050: #e0f2fe;   /* Teinte claire bleu ciel (badges/actifs) */
  --mint:        #0284c7;   /* Accent vif cohérent */
  --grad:        linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  /* Surfaces sombres ardoise (hero, cartes) */
  --grad-deep:   linear-gradient(160deg, #16233b 0%, #0f172a 62%, #0a0f1c 100%);

  /* Chrome sombre (barre latérale / top bar) — constant clair & sombre */
  --nav-bg:      #0f172a;
  --nav-bg-2:    #131c31;
  --nav-border:  #1e293b;
  --nav-text:    #cbd5e1;
  --nav-muted:   #64748b;
  --nav-hover:   rgba(255,255,255,.06);

  --accent:      #0284c7;
  --accent-050:  #e0f2fe;
  --danger:      #ef4444;
  --danger-050:  #fdecec;
  --warning:     #f59e0b;
  --warning-050: #fdf3e2;
  --info:        #3b82f6;

  /* Formes */
  --radius:      18px;
  --radius-md:   14px;
  --radius-sm:   10px;
  --radius-pill: 999px;

  /* Ombres */
  --shadow-sm:   0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.10);
  --shadow-md:   0 4px 14px -4px rgba(16,24,40,.14);
  --shadow-lg:   0 18px 45px -18px rgba(16,24,40,.30);

  --font:      'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --sidebar-w: 260px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #080c15;
    --surface:   #0f1523;
    --surface-2: #151c2e;
    --surface-3: #1b2438;
    --text:      #e8ecf5;
    --muted:     #97a2b8;
    --faint:     #6b7689;
    --border:    #212b40;
    --border-2:  #2c3a55;
    --primary:   #4b76ff;
    --primary-050:#152244;
    --accent-050:#0e2a20;
    --danger-050:#2a1414;
    --warning-050:#2a2010;
    --shadow-lg: 0 18px 45px -18px rgba(0,0,0,.7);
    --shadow-md: 0 4px 14px -4px rgba(0,0,0,.5);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.5);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { letter-spacing: -.02em; }
svg { display: inline-block; vertical-align: middle; }

/* ============================================================
   AUTH — page connexion / inscription
   ============================================================ */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-hero {
  position: relative; overflow: hidden;
  background: var(--grad-deep);
  color: #fff; padding: 52px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 80% 10%, rgba(255,255,255,.14), transparent 60%),
    radial-gradient(500px 300px at 10% 90%, rgba(91,139,255,.35), transparent 60%);
}
.auth-hero > * { position: relative; z-index: 1; }
.auth-hero__brand { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 800; }
.auth-hero__pitch h1 { font-size: 2.4rem; line-height: 1.1; margin: 0 0 14px; }
.auth-hero__pitch p { color: #cdd8ff; max-width: 38ch; font-size: 1.05rem; }
.auth-hero__badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.auth-hero__badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  padding: 7px 13px; border-radius: var(--radius-pill); font-size: .82rem; color: #eaf0ff;
}
.auth-hero__foot { font-size: .8rem; color: #9fb0e6; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 460px; padding: 36px;
}
.card__title { margin: 0 0 6px; font-size: 1.6rem; }
.card__subtitle { margin: 0 0 26px; color: var(--muted); font-size: .96rem; }

/* Formulaires */
.field { margin-bottom: 17px; }
.field label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  font-size: .95rem; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { resize: vertical; min-height: 90px; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-050);
}
.input::placeholder { color: var(--faint); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: .86rem; color: var(--muted); }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--primary); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--primary); color: #fff;
  font-size: .96rem; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: background .15s, transform .05s, box-shadow .15s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--primary-600); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--block { width: 100%; }
.btn--lg { padding: 14px 22px; font-size: 1rem; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-2); box-shadow: none; }
.btn--ghost:hover { background: var(--surface-2); }
.btn--accent { background: var(--accent); }
.btn--accent:hover { background: #0ea371; }
.btn--danger { background: var(--danger); }
.btn--danger:hover { background: #d63a3a; }
.btn--sm { padding: 8px 13px; font-size: .85rem; border-radius: 9px; }

/* Assistant multi-étapes (wizard) */
.wizbar { display: flex; gap: 6px; margin: 4px 0 22px; }
.wizstep { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .72rem; color: var(--faint); font-weight: 600; position: relative; }
.wizstep .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); font-size: .78rem; transition: background .2s, color .2s; }
.wizstep::after { content: ""; position: absolute; top: 13px; left: 60%; width: 80%; height: 2px; background: var(--border); z-index: -1; }
.wizstep:last-child::after { display: none; }
.wizstep.is-active { color: var(--primary-700); }
.wizstep.is-active .n { background: var(--primary); color: #fff; box-shadow: 0 0 0 4px var(--primary-050); }
.wizstep.is-done .n { background: var(--mint); color: #06231b; }
.wizpane { display: none; animation: rise .3s ease both; }
.wizpane.is-active { display: block; }

.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: .8rem; margin: 22px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--border); flex: 1; }
.form-foot { text-align: center; margin-top: 20px; font-size: .9rem; color: var(--muted); }

/* Alertes */
.alert { padding: 13px 15px; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 18px; border: 1px solid transparent; }
.alert--error   { background: var(--danger-050);  color: #b42318; border-color: #f4c7c3; }
.alert--success { background: var(--accent-050);  color: #067a55; border-color: #a7e5cf; }
.alert--info    { background: var(--primary-050); color: var(--primary-700); border-color: #c3d2ff; }
.alert--warning { background: var(--warning-050); color: #b45309; border-color: #f5d9a8; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
@media (prefers-color-scheme: dark) {
  .alert--error{color:#fca5a5;border-color:#5b2020} .alert--success{color:#6ee7b7;border-color:#14503a}
  .alert--info{color:#a9c1ff;border-color:#26397a} .alert--warning{color:#fcd497;border-color:#5a4415}
}

/* ============================================================
   APP SHELL — espace client / admin
   ============================================================ */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
/* L'overlay mobile ne doit pas exister en desktop (sinon il occupe une case de la grille). */
.scrim { display: none; }

.sidebar {
  background: var(--nav-bg);
  background-image: linear-gradient(180deg, var(--nav-bg-2) 0%, var(--nav-bg) 220px);
  border-right: 1px solid var(--nav-border);
  padding: 22px 16px; display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; height: 100vh;
}
.sidebar__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; padding: 6px 10px 20px; color: #f1f5f9; }
.sidebar__brand .logo { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; color: #06231b; box-shadow: 0 0 0 1px rgba(22,226,166,.35), 0 6px 16px -6px rgba(22,226,166,.5); }
.nav-group { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--nav-muted); padding: 14px 12px 6px; }
.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--nav-text); font-weight: 500; font-size: .92rem;
  transition: background .12s, color .12s;
}
.nav-link:hover { background: var(--nav-hover); color: #fff; text-decoration: none; }
.nav-link.is-active { background: rgba(22,226,166,.14); color: #6ff0c8; font-weight: 600; box-shadow: inset 3px 0 0 var(--mint); }
.nav-link.is-active svg { color: var(--mint); }
.nav-link svg { width: 19px; height: 19px; flex: none; }
.sidebar__foot { margin-top: auto; padding: 12px; border-top: 1px solid var(--nav-border); }
.userchip { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--grad); color: #06231b; display: grid; place-items: center; font-weight: 700; font-size: .85rem;
}
.userchip__meta { min-width: 0; }
.userchip__name { font-size: .88rem; font-weight: 600; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.userchip__sub { font-size: .76rem; color: var(--nav-muted); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 68px; background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; position: sticky; top: 0; z-index: 20;
}
.topbar__title { font-size: 1.15rem; font-weight: 700; }
.topbar__actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.content { padding: 28px; max-width: 1180px; width: 100%; }
.page-head { margin-bottom: 22px; }
.page-head h1 { margin: 0 0 4px; font-size: 1.55rem; }
.page-head p { margin: 0; color: var(--muted); }

/* Cartes & grilles */
.grid { display: grid; gap: 18px; }
.grid--stats { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--2 { grid-template-columns: 1.6fr 1fr; }
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px;
}
.panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel__head h3 { margin: 0; font-size: 1.05rem; }

.stat { position: relative; overflow: hidden; }
.stat__label { color: var(--muted); font-size: .84rem; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.stat__label .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-050); color: var(--primary); }
.stat__value { font-size: 2rem; font-weight: 800; margin: 12px 0 4px; letter-spacing: -.03em; }
.stat__delta { font-size: .82rem; color: var(--accent); font-weight: 600; }
.stat__delta.is-down { color: var(--danger); }

/* Carte bancaire (visuel fintech premium) */
.bankcard {
  aspect-ratio: 1.586; border-radius: 20px; padding: 24px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 60%, #020617 100%);
  color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform .25s ease, box-shadow .25s ease;
}
.bankcard:hover {
  transform: translateY(-4px) rotate(0.5deg);
  box-shadow: 0 22px 45px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.bankcard::before {
  content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.bankcard::after {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 226, 166, 0.15), transparent 70%);
  right: -80px; bottom: -80px; pointer-events: none;
}
.bankcard__brand {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; z-index: 1;
}
.bankcard__num {
  font-family: var(--font-mono);
  font-size: 1.28rem; font-weight: 600; letter-spacing: 3.5px; z-index: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.bankcard__foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  font-size: .84rem; font-weight: 600; color: #e2e8f0; z-index: 1;
}
.bankcard__chip {
  width: 44px; height: 32px; border-radius: 7px;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  position: relative; z-index: 1;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.4), 0 2px 6px rgba(0,0,0,0.2);
}
.bankcard__chip::after {
  content: ""; position: absolute; inset: 5px;
  border: 1px solid rgba(0,0,0,.25); border-radius: 4px;
}
.bankcard__label { font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: #94a3b8; z-index: 1; }
.bankcard--gold {
  background: linear-gradient(135deg, #b45309 0%, #78350f 50%, #451a03 100%);
  box-shadow: 0 16px 36px -10px rgba(180, 83, 9, 0.35);
}
.bankcard--gold::after { background: radial-gradient(circle, rgba(251, 191, 36, 0.25), transparent 70%); }
.bankcard--platinum {
  background: linear-gradient(135deg, #475569 0%, #1e293b 50%, #0f172a 100%);
  box-shadow: 0 16px 36px -10px rgba(71, 85, 105, 0.35);
}
.bankcard--platinum::after { background: radial-gradient(circle, rgba(148, 163, 184, 0.25), transparent 70%); }
.bankcard--pending, .bankcard--rejected { filter: grayscale(.6) brightness(.8); }
.bankcard__status { position:absolute; inset:0; display:grid; place-items:center; z-index:2;
  background:rgba(8,12,21,.55); font-weight:700; letter-spacing:.02em; backdrop-filter:blur(4px); }
.card-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap:20px; }
.card-reveal { background:none;border:none;color:#93c5fd;font:inherit;font-size:.78rem;cursor:pointer;text-decoration:underline;padding:0;z-index:1; }

/* Sélecteur visuel (réseau / type de carte) */
.pick-grid { display: grid; gap: 12px; }
.pick-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.pick-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.pick { position: relative; cursor: pointer; display: block; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick__body {
  border: 1.5px solid var(--border-2); border-radius: var(--radius-md);
  padding: 14px; background: var(--surface); transition: border-color .15s, box-shadow .15s, transform .1s;
  display: flex; flex-direction: column; gap: 8px; height: 100%;
}
.pick:hover .pick__body { border-color: var(--primary); transform: translateY(-2px); }
.pick input:checked + .pick__body {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-050);
}
.pick input:checked + .pick__body::after {
  content: "✓"; position: absolute; top: 10px; right: 12px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-size: .7rem; font-weight: 700;
}
.pick__title { font-weight: 700; font-size: .92rem; }
.pick__desc { font-size: .76rem; color: var(--muted); }
.pick__logo { height: 30px; display: flex; align-items: center; }
.pick__swatch { height: 46px; border-radius: 9px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.pick__swatch::after { content:""; position:absolute; right:-14px; top:-18px; width:60px; height:60px; border-radius:50%; background:rgba(255,255,255,.12); }
.sw-standard { background: var(--grad-deep); }
.sw-gold { background: linear-gradient(160deg,#7a5c12 0%, #b8892a 60%, #4a3410 100%); }
.sw-platinum { background: linear-gradient(160deg,#3a4657 0%, #6b7688 55%, #222a36 100%); }

/* Badges / pills */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: var(--radius-pill);
  font-size: .78rem; font-weight: 600; line-height: 1.4;
}
.badge::before { content:""; width:7px; height:7px; border-radius:50%; background: currentColor; }
.badge--success { background: var(--accent-050);  color: #067a55; }
.badge--warning { background: var(--warning-050); color: #b45309; }
.badge--danger  { background: var(--danger-050);  color: #b42318; }
.badge--info    { background: var(--primary-050); color: var(--primary-700); }
.badge--muted   { background: var(--surface-3);   color: var(--muted); }

/* Tables & Responsive Scrolling */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  margin-bottom: 6px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  min-width: 600px;
}
.table th, .table td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table th {
  color: var(--muted);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--surface-2);
  position: sticky;
  top: 0;
}
.table tbody tr:hover { background: var(--surface-2); }
.table td.num { font-variant-numeric: tabular-nums; font-weight: 600; }

@media (max-width: 768px) {
  .table { font-size: .84rem; min-width: 540px; }
  .table th, .table td { padding: 10px 12px; }
  .table-wrap {
    border: 1px solid var(--border);
    background: linear-gradient(to right, white 30%, rgba(255, 255, 255, 0)),
                linear-gradient(to right, rgba(255, 255, 255, 0), white 70%) 100% 0,
                radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .12), rgba(0, 0, 0, 0)),
                radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .12), rgba(0, 0, 0, 0)) 100% 0;
    background-repeat: no-repeat;
    background-color: var(--surface);
    background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
    background-attachment: local, local, scroll, scroll;
  }
}

/* Steps (KYC) */
.steps { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: var(--radius-pill);
  background: var(--surface-2); border: 1px solid var(--border); font-size: .85rem; color: var(--muted); }
.step .n { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); color: var(--muted);
  display: grid; place-items: center; font-size: .78rem; font-weight: 700; }
.step.is-active { border-color: var(--primary); color: var(--primary-700); background: var(--primary-050); }
.step.is-active .n { background: var(--primary); color: #fff; }
.step.is-done .n { background: var(--accent); color: #fff; }

.section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint);
  margin: 26px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }

/* Upload */
.uploader { border: 1.5px dashed var(--border-2); border-radius: var(--radius-md); padding: 20px;
  text-align: center; background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.uploader:hover { border-color: var(--primary); background: var(--primary-050); }
.uploader input { display: none; }
.uploader .ic { width: 42px; height: 42px; margin: 0 auto 10px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-3); color: var(--primary); }
.uploader small { color: var(--muted); }

/* Empty state */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .ic { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--faint); }

.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}
.mb-0{margin-bottom:0}.flex{display:flex}.gap{gap:12px}.between{justify-content:space-between}.center{align-items:center}
.muted{color:var(--muted)}.right{text-align:right}

/* ============================================================
   DASHBOARD "HERO" & DATAVIZ (relooking fintech premium)
   ============================================================ */
.hero { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; margin-bottom: 22px; }
.hero-balance {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #0b1528 0%, #0f1c35 50%, #081020 100%);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: 0 20px 45px -15px rgba(11, 21, 40, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-balance::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(460px 240px at 92% -10%, rgba(22, 226, 166, 0.18), transparent 70%),
    radial-gradient(380px 280px at 0% 120%, rgba(75, 118, 255, 0.25), transparent 65%);
}
.hero-balance > * { position: relative; z-index: 1; }
.hero-balance .lbl {
  color: #94a3b8;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero-balance .amt {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 6px 0 2px;
  background: linear-gradient(180deg, #ffffff 30%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-balance .sub { color: #64748b; font-size: .84rem; font-weight: 500; }
.hero-spark { margin: 10px -6px -2px; filter: drop-shadow(0 4px 12px rgba(22, 226, 166, 0.2)); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.qa {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff; padding: 10px 18px; border-radius: var(--radius-pill);
  font-size: .86rem; font-weight: 600;
  backdrop-filter: blur(12px);
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.qa:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.28);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -4px rgba(0,0,0,0.3);
}
.qa:active { transform: translateY(0); }
.qa svg { width: 16px; height: 16px; color: var(--mint); }

/* Tuiles stat enrichies : liseré coloré + mini tendance */
.stat {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--primary);
  border-radius: 4px 0 0 4px;
}
.stat--green::after { background: #10b981; }
.stat--amber::after { background: #f59e0b; }
.stat--violet::after { background: #6366f1; }
.panel:hover, .stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -6px rgba(16,24,40,.08), 0 4px 12px -2px rgba(16,24,40,.03);
}
.stat__label {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: .86rem; font-weight: 600;
}
.stat__value {
  font-size: 1.75rem; font-weight: 800;
  letter-spacing: -.02em; margin: 10px 0 4px;
  color: var(--text);
}
.stat__delta { font-size: .8rem; font-weight: 600; }
.trend { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 700; }
.trend--up { color: var(--accent); }
.trend--down { color: var(--danger); }

/* Mini graphe à barres (activité) */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding-top: 8px; }
.bars .bar { flex: 1; border-radius: 7px 7px 0 0; background: var(--grad); min-height: 4px; position: relative; transition: opacity .15s; }
.bars .bar:hover { opacity: .8; }
.bars .bar span { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: .68rem; color: var(--faint); }

/* Icône ronde d'entête de transaction */
.tx-ic { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; flex: none; }
.tx-ic--in { background: var(--accent-050); color: var(--accent); }
.tx-ic--out { background: var(--danger-050); color: var(--danger); }
.tx-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.tx-row:last-child { border-bottom: none; }
.tx-row .meta { min-width: 0; flex: 1; }
.tx-row .meta b { display: block; font-size: .9rem; }
.tx-row .meta small { color: var(--faint); font-size: .76rem; }

/* Barre de progression (transaction en cours) */
.pbar { height: 7px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.pbar__fill { height: 100%; background: var(--grad); border-radius: 999px; position: relative; transition: width .6s ease; }
.pbar__fill.is-live::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: shimmer 1.5s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.pmiles { display: flex; justify-content: space-between; margin-top: 10px; }
.pmile { font-size: .78rem; color: var(--faint); display: flex; align-items: center; gap: 6px; }
.pmile .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.pmile.is-done { color: var(--accent); font-weight: 600; }
.pmile.is-live { color: var(--primary-700); font-weight: 700; }
.pbar--slim { height: 5px; }

/* ============================================================
   Séquence de traitement sécurisé (virement)
   ============================================================ */
.secproc { max-width: 540px; margin: 10px auto; }
.secproc__card {
  background: var(--grad-deep); color: #fff; border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.secproc__card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(480px 220px at 85% -10%, rgba(22,226,166,.18), transparent 60%);
}
.secproc__card > * { position: relative; z-index: 1; }
.secproc__shield {
  width: 66px; height: 66px; border-radius: 20px; background: var(--grad);
  display: grid; place-items: center; margin: 0 auto 14px; color: #06231b;
  box-shadow: 0 0 0 8px rgba(22,226,166,.12); animation: shieldPulse 2.2s ease-in-out infinite;
}
@keyframes shieldPulse { 0%,100% { box-shadow: 0 0 0 8px rgba(22,226,166,.12); } 50% { box-shadow: 0 0 0 15px rgba(22,226,166,.04); } }
.secproc__title { text-align: center; font-size: 1.35rem; font-weight: 800; margin: 0 0 4px; }
.secproc__sub { text-align: center; color: #b7c4ef; font-size: .9rem; margin: 0 0 6px; }
.secproc__amount { text-align: center; font-size: 1.05rem; color: #dbe4ff; margin-bottom: 22px; }
.secproc__amount b { color: #fff; }

.secsteps { display: flex; flex-direction: column; }
.secstep {
  display: flex; align-items: center; gap: 14px; padding: 11px 0;
  opacity: .3; transform: translateY(4px); transition: opacity .45s ease, transform .45s ease;
}
.secstep.is-active, .secstep.is-done { opacity: 1; transform: none; }
.secstep__ic {
  width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #cbd5e1; transition: background .35s, color .35s;
}
.secstep.is-active .secstep__ic { background: rgba(22,226,166,.16); color: #6ff0c8; }
.secstep.is-done .secstep__ic { background: var(--mint); color: #06231b; }
.secstep__body { flex: 1; min-width: 0; }
.secstep__label { font-weight: 600; font-size: .95rem; }
.secstep__status { font-size: .78rem; color: #9fb0e6; }
.secstep.is-done .secstep__status { color: #6ff0c8; }
.secstep__end { flex: none; width: 22px; height: 22px; display: grid; place-items: center; }

.spin { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.22); border-top-color: #6ff0c8; border-radius: 50%; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.chk { width: 22px; height: 22px; }
.chk path { fill: none; stroke: #6ff0c8; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 26; stroke-dashoffset: 26; animation: chkDraw .45s ease forwards; }
@keyframes chkDraw { to { stroke-dashoffset: 0; } }

.secbar { height: 9px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 24px; }
.secbar__fill { height: 100%; width: 0; border-radius: 999px; background: var(--grad); transition: width .7s cubic-bezier(.4,0,.2,1); position: relative; }
.secbar__fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); animation: shimmer 1.4s infinite; }
.secproc__pct { text-align: center; margin-top: 12px; font-size: .82rem; color: #b7c4ef; }
.secproc__done { text-align: center; margin-top: 8px; font-weight: 700; color: #6ff0c8; opacity: 0; transition: opacity .4s; }
.secproc__done.show { opacity: 1; }

/* Apparition douce */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .45s ease both; }
.rise-2 { animation-delay: .06s; } .rise-3 { animation-delay: .12s; } .rise-4 { animation-delay: .18s; }

@media (max-width: 980px) { .hero { grid-template-columns: 1fr; } }

/* ============================================================
   Sélecteur de langue maison (drapeaux SVG) + GTranslate
   ============================================================ */
.langsel { position: relative; }
.langsel__btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px;
  padding: 0 10px; border: 1px solid var(--border); border-radius: 11px;
  background: var(--surface); color: var(--text); cursor: pointer;
  font: inherit; font-size: .85rem; font-weight: 600;
}
.langsel__btn:hover { background: var(--surface-2); }
.langsel__flag { width: 22px; height: 15px; border-radius: 3px; overflow: hidden; display: inline-flex; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.langsel__flag svg { width: 100%; height: 100%; display: block; }
.langsel__caret { transition: transform .15s; color: var(--muted); }
.langsel.is-open .langsel__caret { transform: rotate(180deg); }
.langsel__menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 195px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 6px; display: none; z-index: 200;
}
.langsel.is-open .langsel__menu { display: block; animation: rise .18s ease both; }
.langsel__opt {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 9px 10px; border: none; background: none; cursor: pointer;
  border-radius: 8px; font: inherit; font-size: .9rem; color: var(--text); text-align: left;
}
.langsel__opt:hover { background: var(--surface-2); }
.langsel__opt.is-current { background: var(--primary-050); color: var(--primary-700); font-weight: 600; }
.langsel--float { position: fixed; top: 18px; right: 18px; z-index: 120; }
.langsel--float .langsel__btn { box-shadow: var(--shadow-md); }

/* Widget GTranslate masqué (on pilote son <select>) */
.gt-hidden { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Neutralise la barre / tooltip Google Translate et le décalage du body */
.goog-te-banner-frame, .goog-te-gadget-icon, #goog-gt-tt,
.goog-te-balloon-frame, .goog-tooltip { display: none !important; }
body { top: 0 !important; position: static !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; color: inherit !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; z-index: 60; left: 0; top: 0; width: 78%; max-width: 300px;
    transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg);
  }
  .sidebar.is-open { transform: translateX(0); }
  .scrim { position: fixed; inset: 0; background: rgba(8,12,21,.5); z-index: 50; display: none; }
  .scrim.is-open { display: block; }
  .menu-toggle { display: grid !important; }
  .content { padding: 18px; }
  .topbar { padding: 0 16px; }
}
/* ============================================================
   MODERN FINTECH COMPONENTS & CHARTS
   ============================================================ */
.chart-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.chart-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.chart-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart-card__badge {
  font-size: .75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
}
.chart-container {
  position: relative;
  width: 100%;
  height: 220px;
}
.analytics-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.analytics-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.analytics-box__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
}
.analytics-box__meta small {
  display: block;
  font-size: .76rem;
  color: var(--muted);
  font-weight: 500;
}
.analytics-box__meta strong {
  font-size: 1rem;
  font-weight: 700;
}

.hero-quick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 12px;
  flex-wrap: wrap;
}
.hero-metric {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-metric__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--mint);
  flex: none;
}
.hero-metric__info small {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-metric__info strong {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 700;
}

/* Security & status pill live */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mint);
  background: rgba(22, 226, 166, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(22, 226, 166, 0.25);
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  animation: livePulse 1.8s infinite;
}
@keyframes livePulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px var(--mint); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* Category legend badges */
.cat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  justify-content: center;
}
.cat-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
}
.cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.menu-toggle { display: none; }

/* ============================================================
   SEARCHABLE DROPDOWN (PAYS / DEVISES)
   ============================================================ */
.search-select {
  position: relative;
  width: 100%;
}
.search-select__btn {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: .92rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all .15s ease;
}
.search-select__btn:hover, .search-select.is-open .search-select__btn {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-050);
}
.search-select__btn span {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-select__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  padding: 8px;
  display: none;
  animation: dropDown .2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes dropDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.search-select.is-open .search-select__menu {
  display: flex;
  flex-direction: column;
}
.search-select__input {
  width: 100%;
  padding: 9px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-family: inherit;
  color: var(--text);
  margin-bottom: 6px;
  box-sizing: border-box;
}
.search-select__input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
}
.search-select__list {
  max-height: 210px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}
.search-select__item {
  padding: 8px 12px;
  font-size: .88rem;
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .12s;
}
.search-select__item:hover, .search-select__item.is-selected {
  background: var(--primary-050);
  color: var(--primary-700);
  font-weight: 600;
}
.search-select__item.is-hidden {
  display: none !important;
}
.search-select__code {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--muted);
}

/* ============================================================
   FLOATING ACTION BUTTON (FAB) — BULLE DE RACCOURCIS CLIENT
   ============================================================ */
.fab-wrap {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 99;
}
.fab-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary);
  background-image: var(--grad);
  color: #fff;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 25px -4px rgba(15, 180, 136, 0.5), 0 4px 10px -2px rgba(15, 180, 136, 0.3);
  transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
}
.fab-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(15, 180, 136, 0.6), 0 6px 14px -2px rgba(15, 180, 136, 0.4);
}
.fab-btn svg {
  width: 24px;
  height: 24px;
  transition: transform .25s ease;
}
.fab-wrap.is-open .fab-btn svg {
  transform: rotate(45deg);
}
.fab-menu {
  position: absolute;
  bottom: 66px;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  min-width: 230px;
  display: none;
  flex-direction: column;
  gap: 6px;
  animation: dropDown .2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.fab-wrap.is-open .fab-menu {
  display: flex;
}
.fab-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, transform .1s;
}
.fab-item:hover {
  background: var(--surface-2);
  color: var(--primary);
  text-decoration: none;
  transform: translateX(3px);
}
.fab-item__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--primary-050);
  color: var(--primary);
  flex: none;
}
.fab-item__icon svg {
  width: 17px;
  height: 17px;
}

/* ============================================================
   SMART AI ASSISTANT BANNER (FINTECH PREMIUM)
   ============================================================ */
.assistant-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 248, 255, 0.95) 100%);
  border: 1px solid rgba(75, 118, 255, 0.2);
  border-radius: var(--radius);
  padding: 18px 24px;
  box-shadow: 0 10px 30px -10px rgba(75, 118, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  backdrop-filter: blur(8px);
}
.assistant-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #4b76ff 0%, #16e2a6 100%);
  border-radius: 4px 0 0 4px;
}
.assistant-card__left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.assistant-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #102a45 0%, #0b1528 100%);
  border: 1.5px solid rgba(75, 118, 255, 0.35);
  display: grid;
  place-items: center;
  color: #6ff0c8;
  flex: none;
  position: relative;
  box-shadow: 0 8px 18px -4px rgba(75, 118, 255, 0.25);
}
.assistant-avatar__status {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid var(--surface);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}
.assistant-content {
  flex: 1;
  min-width: 0;
}
.assistant-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
}
.assistant-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 2px;
}
.assistant-text {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}
.assistant-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.assistant-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}
.assistant-btn:hover {
  border-color: #4b76ff;
  color: #4b76ff;
  background: rgba(75, 118, 255, 0.05);
  transform: translateY(-1px);
  text-decoration: none;
}
@media (max-width: 860px) {
  .assistant-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .assistant-actions {
    width: 100%;
    margin-top: 6px;
    justify-content: flex-start;
  }
}

/* ============================================================
   CARD QUICK MANAGEMENT WIDGET (FINTECH)
   ============================================================ */
.card-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 14px;
  box-shadow: var(--shadow-sm);
}
.card-widget__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.card-widget__title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-widget__limit {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}
.card-widget__progress {
  height: 6px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}
.card-widget__progress-fill {
  height: 100%;
  width: 32%;
  background: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
  border-radius: 999px;
}
.card-widget__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.card-widget__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.card-widget__btn:hover {
  background: var(--surface-3);
  border-color: var(--border-2);
  color: var(--primary);
}
.card-widget__btn svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.card-widget__btn.is-locked {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}


