:root{
  --bg:#070A12;
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.08);
  --stroke:rgba(255,255,255,.10);
  --txt:rgba(255,255,255,.90);
  --muted:rgba(255,255,255,.65);
  --faint:rgba(255,255,255,.45);
  --acc:#7C5CFF;
  --acc2:#00E5FF;
  --ok:#39FFB0;
  --warn:#FFCC66;
  --bad:#FF5C7A;
  --r:18px;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--txt);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  overflow-x:hidden;
}

.bg{position:fixed; inset:0; z-index:0; pointer-events:none;}
.grid{
  position:absolute; inset:-40px;
  background:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity:.18;
  filter: blur(.2px);
}
/* ===== Dynamic Orbs v2 ===== */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.orb{
  position:absolute;
  width:560px;
  height:560px;
  border-radius:999px;
  filter: blur(55px);
  opacity:.62;
  transform: translate3d(0,0,0);
  will-change: transform;
  mix-blend-mode: screen;
}

.o1{
  left:-220px; top:-220px;
  background:
    radial-gradient(circle at 30% 30%, rgba(0,229,255,.95), transparent 62%),
    radial-gradient(circle at 70% 70%, rgba(124,92,255,.55), transparent 60%);
  animation: drift1 14s ease-in-out infinite;
}

.o2{
  right:-240px; bottom:-240px;
  background:
    radial-gradient(circle at 30% 30%, rgba(124,92,255,.95), transparent 62%),
    radial-gradient(circle at 70% 70%, rgba(0,229,255,.50), transparent 60%);
  animation: drift2 18s ease-in-out infinite;
}

.o3{
  left:50%;
  top:50%;
  width:420px;
  height:420px;
  margin-left:-210px;
  margin-top:-210px;
  opacity:.40;
  background:
    radial-gradient(circle at 35% 35%, rgba(57,255,176,.55), transparent 64%),
    radial-gradient(circle at 65% 65%, rgba(0,229,255,.35), transparent 60%);
  animation: drift3 22s ease-in-out infinite;
}

@keyframes drift1{
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(60px, 40px,0) scale(1.06); }
  100% { transform: translate3d(0,0,0) scale(1); }
}
@keyframes drift2{
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-70px, -45px,0) scale(1.08); }
  100% { transform: translate3d(0,0,0) scale(1); }
}
@keyframes drift3{
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(20px, -30px,0) scale(1.04); }
  100% { transform: translate3d(0,0,0) scale(1); }
}

/* léger grain + glow pour “vrai site” */
.bg:after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 30% 10%, rgba(255,255,255,.05), transparent 35%),
    radial-gradient(circle at 70% 90%, rgba(255,255,255,.04), transparent 40%);
  opacity:.6;
}

/* Respect préférence OS */
@media (prefers-reduced-motion: reduce){
  .orb{ animation:none !important; }
}


.side{
  position:fixed; left:0; top:0; bottom:0;
  width:300px;
  padding:22px;
  border-right:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  backdrop-filter: blur(14px);
  z-index:2;
}

.brand{display:flex; gap:12px; align-items:center; padding:10px 10px 18px}
.mark{
  width:44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(124,92,255,.40), rgba(0,229,255,.18));
  border:1px solid var(--stroke);
  box-shadow: var(--shadow);
  font-weight:900;
}
.name{font-weight:800; letter-spacing:.2px}
.sub{color:var(--muted); font-size:12px; margin-top:2px}

.nav{display:flex; flex-direction:column; gap:8px; margin-top:8px}
.navlink{
  display:flex; align-items:center; gap:10px;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid transparent;
  color:var(--txt); text-decoration:none;
  background: transparent;
}
.navlink:hover{background: rgba(255,255,255,.05); border-color: var(--stroke)}
.navlink .dot{
  width:10px; height:10px; border-radius:99px;
  background: rgba(255,255,255,.18);
  box-shadow: 0 0 0 4px rgba(255,255,255,.03);
}
.navlink.active{
  background: linear-gradient(135deg, rgba(124,92,255,.16), rgba(0,229,255,.08));
  border-color: rgba(124,92,255,.25);
}
.navlink.active .dot{background: var(--acc2); box-shadow: 0 0 0 6px rgba(0,229,255,.10)}

.sidefoot{position:absolute; left:22px; right:22px; bottom:18px; display:flex; flex-direction:column; gap:10px}
.pill{
  width:max-content;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  font-size:12px;
  color:var(--muted);
}
.tiny{font-size:12px; color:var(--faint)}

.main{
  position:relative;
  margin-left:300px;
  padding:22px 26px 34px;
  z-index:1;
}

.top{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:18px;
  padding:18px 18px;
  border-radius: var(--r);
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.title{font-size:22px; font-weight:900; letter-spacing:.2px}
.hint{color:var(--muted); font-size:13px; margin-top:4px}
.actions{display:flex; gap:10px}
.btn{
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  color:var(--txt);
  cursor:pointer;
}
.btn:hover{background: rgba(255,255,255,.08)}

.cards{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}
.card{
  grid-column: span 4;
  border-radius: var(--r);
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
  padding:16px;
  backdrop-filter: blur(14px);
}
.cardh{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px}
.k{font-weight:800; color:rgba(255,255,255,.85)}
.p{color:var(--muted); line-height:1.5; margin:0 0 10px}
.list{margin:0; padding-left:18px; color:var(--muted)}
.badge{
  font-size:12px; padding:6px 10px; border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  color: var(--muted);
}
.badge.ok{border-color: rgba(57,255,176,.25); color: rgba(57,255,176,.95)}
.badge.warn{border-color: rgba(255,204,102,.25); color: rgba(255,204,102,.95)}
.chips{display:flex; flex-wrap:wrap; gap:8px}
.chip{
  font-size:12px; padding:7px 10px; border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color: var(--muted);
}

.panel{
  margin-top:14px;
  border-radius: var(--r);
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
  padding:16px;
  backdrop-filter: blur(14px);
}
.panelh{display:flex; align-items:baseline; justify-content:space-between; margin-bottom:10px}
.quick{display:grid; grid-template-columns: repeat(12, 1fr); gap:10px}
.q{
  grid-column: span 4;
  padding:12px 12px;
  border-radius: 16px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  text-decoration:none;
  color:var(--txt);
}
.q:hover{background: rgba(255,255,255,.08)}

.stats{display:flex; gap:10px; margin-top:8px}
.stat{
  flex:1;
  border-radius: 16px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  padding:12px;
}
.stat .n{font-size:22px; font-weight:900}
.stat .l{font-size:12px; color:var(--muted)}

@media (max-width: 980px){
  .side{position:static; width:auto; border-right:0}
  .main{margin-left:0}
  .cards .card{grid-column: span 12}
  .q{grid-column: span 12}
}

/* ===== Tables / Forms ===== */
.toolrow{margin-top:14px; display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.input{
  flex:1; min-width:220px;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color: var(--txt);
}
.select{min-width:180px}
.btn.primary{
  border-color: rgba(0,229,255,.28);
  background: linear-gradient(135deg, rgba(0,229,255,.14), rgba(124,92,255,.10));
}
.hr{height:1px; background: var(--stroke); margin:14px 0}

.table{
  margin-top:14px;
  border:1px solid var(--stroke);
  border-radius: var(--r);
  overflow:hidden;
  background: rgba(255,255,255,.03);
}
table{width:100%; border-collapse:collapse}
th,td{padding:12px 12px; border-bottom:1px solid rgba(255,255,255,.08); vertical-align:top}
th{font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em}
td{color:rgba(255,255,255,.85)}
tr:hover td{background: rgba(255,255,255,.03)}
.badge.a{border-color: rgba(57,255,176,.25); color: rgba(57,255,176,.95)}
.badge.b{border-color: rgba(255,204,102,.25); color: rgba(255,204,102,.95)}
.badge.c{border-color: rgba(255,92,122,.25); color: rgba(255,92,122,.95)}
.mini{font-size:12px; color:var(--muted)}
.kv{display:flex; gap:10px; flex-wrap:wrap}
.kv span{padding:6px 10px; border:1px solid var(--stroke); border-radius:999px; background: rgba(255,255,255,.04); font-size:12px; color:var(--muted)}
.danger{border-color: rgba(255,92,122,.28) !important}

.scan{
  position:fixed; inset:0; pointer-events:none; z-index:1;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.03),
    rgba(255,255,255,.03) 1px,
    transparent 1px,
    transparent 6px
  );
  opacity:.08;
  mix-blend-mode: overlay;
}
