:root{
  --bg:#0b1020;
  --bg-2:#121a2f;
  --card:#121a2b;
  --card-2:#17213a;
  --line:#25324f;
  --text:#eef3ff;
  --muted:#9fb0d1;
  --accent:#5da8ff;
  --good:#2ecc71;
  --warn:#f1c40f;
  --bad:#ff6b6b;
  --shadow:0 20px 60px rgba(0,0,0,.35);
  --radius:20px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:linear-gradient(180deg,#0a1020,#09111a 30%,#0c1222);color:var(--text);font-family:Inter,Segoe UI,Arial,sans-serif}
body{min-height:100vh}
a{text-decoration:none;color:inherit}
label{display:block;margin-bottom:8px;color:var(--muted);font-size:14px}
select,input,button{font:inherit}
select,input{
  width:100%;background:#0d1528;color:var(--text);border:1px solid var(--line);
  border-radius:14px;padding:14px 16px;outline:none;
}
button,.btn{
  border:1px solid var(--line);background:#111a2f;color:var(--text);
  border-radius:14px;padding:12px 16px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;
}
.btn-primary{background:linear-gradient(135deg,#2a76ff,#4fb1ff);border:none;color:#fff;font-weight:700}
.topbar{
  padding:22px 28px;border-bottom:1px solid rgba(255,255,255,.05);
  display:flex;justify-content:space-between;align-items:center;gap:16px;
  position:sticky;top:0;background:rgba(8,12,24,.8);backdrop-filter:blur(14px);z-index:20
}
.topbar-actions{display:flex;gap:12px;flex-wrap:wrap}
.page,.live-page{padding:28px;display:grid;gap:24px}
.card{
  background:linear-gradient(180deg,rgba(23,33,58,.92),rgba(15,23,41,.94));
  border:1px solid rgba(255,255,255,.05);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.eyebrow{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:#80a7ff;margin-bottom:8px}
h1,h2{margin:0}
h1{font-size:32px}
h2{font-size:22px}
.muted{color:var(--muted)}
.filters-card{padding:22px}
.filters-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.kpi-row,.live-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.kpi-card,.live-kpi{padding:24px}
.kpi-label{color:var(--muted);font-size:14px;margin-bottom:8px}
.kpi-value{font-size:34px;font-weight:800;line-height:1.1}
.giant{font-size:56px}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:18px}
.inactive-card,.table-card,.top-clients-card,.chart-card{padding:22px}
.inactive-actions{margin-bottom:14px}
.inactive-list{display:flex;flex-wrap:wrap;gap:12px}
.inactive-pill{
  min-width:220px;background:#0d1528;border:1px solid var(--line);border-radius:16px;padding:14px 16px;
  display:flex;justify-content:space-between;align-items:center;gap:12px
}
.inactive-pill label{margin:0;font-size:13px}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse}
thead th{
  color:var(--muted);font-size:13px;font-weight:600;text-align:left;padding:14px 12px;border-bottom:1px solid rgba(255,255,255,.06)
}
tbody td{padding:14px 12px;border-bottom:1px solid rgba(255,255,255,.05);vertical-align:middle}
tbody tr:hover{background:rgba(255,255,255,.02)}
.small-time{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.right{text-align:right}
.amount{font-weight:800}
.status{
  display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;font-size:12px;font-weight:700;
  background:#15233b;border:1px solid var(--line)
}
.status.Approuvee,.status.Autorisee{color:#bdf5d0;background:rgba(46,204,113,.12);border-color:rgba(46,204,113,.28)}
.status.Refusee,.status.Echouee,.status.Annulee,.status.Chargeback{color:#ffc0c0;background:rgba(255,107,107,.12);border-color:rgba(255,107,107,.28)}
.login-body{display:grid;place-items:center;padding:24px}
.login-card{
  width:min(460px,100%);padding:32px;border-radius:28px;background:linear-gradient(180deg,#121b31,#0d1528);
  border:1px solid rgba(255,255,255,.07);box-shadow:var(--shadow)
}
.stack > * + *{margin-top:14px}
.alert{
  background:rgba(255,107,107,.12);border:1px solid rgba(255,107,107,.28);color:#ffd5d5;
  padding:14px 16px;border-radius:14px;margin:16px 0
}
.live-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:24px}
.top-clients-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.top-client{
  background:#0d1528;border:1px solid var(--line);border-radius:18px;padding:18px;min-height:150px;
  display:flex;flex-direction:column;justify-content:space-between
}
.top-client h3{margin:0;font-size:18px;line-height:1.2}
.big-number{font-size:32px;font-weight:800}
.top-sub{color:var(--muted);font-size:13px}
.charts-column{display:grid;grid-template-rows:1fr 1fr;gap:24px}
.chart-bars{
  height:260px;display:grid;grid-template-columns:repeat(24,minmax(0,1fr));gap:8px;align-items:end
}
.bar-wrap{display:flex;flex-direction:column;align-items:center;gap:8px;height:100%}
.bar{
  width:100%;min-height:4px;border-radius:12px 12px 0 0;
  background:linear-gradient(180deg,#63b3ff,#265dff)
}
.bar.alt{background:linear-gradient(180deg,#88e0b4,#2fb36a)}
.bar-label{font-size:11px;color:var(--muted)}
.bar-value{font-size:11px;color:#c9d8f5}
@media (max-width:1200px){
  .live-grid{grid-template-columns:1fr}
}
@media (max-width:900px){
  .filters-grid,.kpi-row,.live-kpis,.top-clients-grid{grid-template-columns:1fr}
  .page,.live-page{padding:16px}
  .topbar{padding:16px}
  .giant{font-size:40px}
}
