:root{
  --bg:#05050b;
  --panel:rgba(18,16,30,.86);
  --line:rgba(255,255,255,.08);
  --text:#f5f1ff;
  --muted:#a9a0c6;
  --accent:#8b5cf6;
  --accent2:#c026ff;
  --good:#22c55e;
  --bad:#ef4444;
  --shadow:0 24px 60px rgba(0,0,0,.5);
  --radius:24px;
}

*{box-sizing:border-box}
html,body{
  margin:0;
  min-height:100%;
  font-family:Inter,Segoe UI,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(139,92,246,.18) 0, transparent 25%),
    radial-gradient(circle at 85% 10%, rgba(192,38,255,.15) 0, transparent 18%),
    radial-gradient(circle at 50% 92%, rgba(79,70,229,.15) 0, transparent 22%),
    linear-gradient(135deg,#040409 0%,#090812 45%,#040409 100%);
  overflow-x:hidden;
}

.wrap{
  max-width:1500px;
  margin:0 auto;
  padding:28px;
}

.hero{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:18px;
  flex-wrap:wrap;
  margin-bottom:22px;
}

.hero h1{
  margin:0;
  font-size:38px;
  text-shadow:0 0 30px rgba(139,92,246,.24);
}

.hero p{
  margin:8px 0 0;
  color:var(--muted);
  max-width:800px;
}

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding:10px;
  border-radius:18px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}

.nav a{
  text-decoration:none;
  color:var(--text);
  font-weight:800;
  padding:10px 16px;
  border-radius:14px;
  transition:.2s ease;
  background:rgba(255,255,255,.03);
}

.nav a:hover{
  transform:translateY(-1px);
  background:rgba(139,92,246,.14);
}

.card{
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)),
    linear-gradient(135deg, rgba(139,92,246,.09), rgba(0,0,0,0));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  backdrop-filter: blur(10px);
  margin-bottom:18px;
}

.card h2{
  margin:0;
  padding:18px 20px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(90deg, rgba(139,92,246,.18), rgba(0,0,0,0));
  font-size:18px;
}

.content{padding:20px}

.section{display:none}
.section.active{display:block}

.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.field{display:flex;flex-direction:column;gap:8px}
.field.full{grid-column:1/-1}

label{
  font-size:13px;
  color:var(--muted);
}

input,textarea,select{
  width:100%;
  border:1px solid rgba(255,255,255,.09);
  background:rgba(8,8,14,.88);
  color:var(--text);
  padding:13px 14px;
  border-radius:16px;
  outline:none;
}

textarea{
  min-height:116px;
  resize:vertical;
}

button{
  border:0;
  padding:12px 16px;
  border-radius:14px;
  color:#fff;
  font-weight:700;
  cursor:pointer;
}

.primary{background:linear-gradient(135deg,var(--accent),var(--accent2))}
.ghost{background:linear-gradient(135deg,#2b2442,#5a3d9c)}
.danger{background:linear-gradient(135deg,#ef4444,#b91c1c)}
.good{background:linear-gradient(135deg,#16a34a,#0891b2)}
.smallbtn{padding:8px 10px;font-size:12px;margin-right:6px;border-radius:12px}

.btns{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:14px;
}

.loading-line{
  height:4px;
  margin-top:16px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  overflow:hidden;
  display:none;
}
.loading-line.active{display:block}
.loading-line::before{
  content:"";
  display:block;
  height:100%;
  width:35%;
  background:linear-gradient(90deg,transparent,var(--accent2),var(--accent),transparent);
  animation:slide 1s linear infinite;
}

.stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-top:18px;
}

.stat{
  padding:16px;
  border-radius:16px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}
.stat .v{font-size:26px;font-weight:900}
.stat .l{font-size:13px;color:var(--muted);margin-top:4px}

.profile{
  display:flex;
  gap:16px;
  align-items:center;
  padding:18px;
  border-radius:18px;
  margin-top:16px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}

.profile img{
  width:96px;height:96px;
  border-radius:50%;
  object-fit:cover;
  border:3px solid rgba(192,38,255,.5);
}

.profile h3{margin:0 0 6px;font-size:20px}
.profile p{margin:4px 0;color:var(--muted)}
.tag{
  display:inline-block;
  margin-top:8px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(139,92,246,.15);
  color:#e6dbff;
  font-size:12px;
}

table{
  width:100%;
  border-collapse:collapse;
}
th,td{
  padding:12px 10px;
  text-align:left;
  border-bottom:1px solid rgba(255,255,255,.08);
  font-size:14px;
  vertical-align:top;
}
th{color:#d8d1ff;font-weight:700}

.score{font-weight:800;color:#9cf5c8}
.badge{
  display:inline-block;
  padding:5px 10px;
  border-radius:999px;
  font-size:12px;
  background:rgba(139,92,246,.16);
  color:#e6dbff;
}

.mini{font-size:12px;color:var(--muted)}

.empty-state{
  padding:18px;
  border:1px dashed rgba(255,255,255,.1);
  border-radius:16px;
  color:var(--muted);
  text-align:center;
}

@keyframes slide{
  from{transform:translateX(-120%)}
  to{transform:translateX(330%)}
}

@media (max-width: 980px){
  .form-grid,.stats{grid-template-columns:1fr 1fr}
}
@media (max-width: 720px){
  .form-grid,.stats{grid-template-columns:1fr}
}
.login-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
}

.login-shell{
  width:100%;
  max-width:460px;
  padding:24px;
}

.login-card{
  margin:0;
}
.strength-wrap{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.strength-bar{
  width:100%;
  height:12px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.08);
}

.strength-fill{
  height:100%;
  width:0%;
  border-radius:999px;
  transition:width .25s ease, background .25s ease;
  background:linear-gradient(90deg,#ef4444,#f97316);
}

.strength-text{
  font-size:13px;
  color:var(--muted);
}

.strength-wrap{display:flex;flex-direction:column;gap:8px}
.strength-bar{width:100%;height:12px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08)}
.strength-fill{height:100%;width:0%;border-radius:999px;transition:width .25s ease, background .25s ease;background:linear-gradient(90deg,#ef4444,#f97316)}
.strength-text{font-size:13px;color:var(--muted)}