:root{
  --bg:#0b1220;
  --card:#111a2e;
  --muted:#7f8aa3;
  --text:#e9eefb;
  --accent:#5b8cff;
  --danger:#ff5b6e;
  --ok:#32d583;
  --border:rgba(255,255,255,.10);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Helvetica,Arial;
  background: radial-gradient(1200px 600px at 10% 0%, rgba(91,140,255,.25), transparent 50%),
              radial-gradient(900px 500px at 100% 20%, rgba(50,213,131,.18), transparent 55%),
              var(--bg);
  color:var(--text);
}

a{color:inherit; text-decoration:none}
.container{max-width:1100px; margin:0 auto; padding:18px}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand img{height:38px; width:auto; display:block}
.brand .title{font-weight:700; letter-spacing:.2px}
.brand .subtitle{font-size:12px; color:var(--muted); margin-top:2px}

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.pill{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  font-size:14px;
}
.pill.active{border-color: rgba(91,140,255,.55); box-shadow: 0 0 0 3px rgba(91,140,255,.16) inset;}
.pill.danger{border-color: rgba(255,91,110,.45);}

.grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
}
@media (max-width: 900px){
  .grid{grid-template-columns:1fr}
}

h1,h2{margin:0 0 10px 0}
h1{font-size:22px}
h2{font-size:16px; color:var(--text); opacity:.95}
.muted{color:var(--muted); font-size:13px}

.form-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:10px 0 12px;
}
.input{
  flex:1 1 220px;
  min-width: 200px;
}
.input label{display:block; font-size:12px; color:var(--muted); margin:0 0 6px}
.input input, .input select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(5,10,20,.35);
  color:var(--text);
  outline:none;
}
.input input:focus, .input select:focus{
  border-color: rgba(91,140,255,.55);
  box-shadow: 0 0 0 3px rgba(91,140,255,.16);
}

.btn{
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(91,140,255,.20);
  color:var(--text);
  cursor:pointer;
  font-weight:600;
}
.btn:hover{filter:brightness(1.08)}
.btn.secondary{background: rgba(255,255,255,.06)}
.btn.danger{background: rgba(255,91,110,.18); border-color: rgba(255,91,110,.45)}

.table{
  width:100%;
  border-collapse:collapse;
  overflow:hidden;
  border-radius:14px;
  border:1px solid var(--border);
}
.table th, .table td{
  padding:10px 12px;
  border-bottom:1px solid var(--border);
  text-align:left;
  font-size:14px;
}
.table th{font-size:12px; color:var(--muted); font-weight:700}
.table tr:last-child td{border-bottom:none}
.table .actions{white-space:nowrap; display:flex; gap:8px; align-items:center}

.flash{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  margin-bottom:12px;
  font-size:14px;
}
.flash.ok{border-color: rgba(50,213,131,.45); background: rgba(50,213,131,.10)}
.flash.err{border-color: rgba(255,91,110,.45); background: rgba(255,91,110,.10)}

.login-wrap{
  min-height: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.login-card{max-width:460px; width:100%}
.center{text-align:center}
.logo{display:block; margin:0 auto 14px auto; max-width:220px; height:auto}
.small{font-size:12px; color:var(--muted)}
