:root { --bg:#0f172a; --card:#111827; --muted:#94a3b8; --text:#e5e7eb; --primary:#22c55e; --danger:#ef4444; --border:#243044; }
* { box-sizing:border-box; }
body { margin:0; font-family:Arial, sans-serif; background:linear-gradient(135deg,#020617,#111827); color:var(--text); }
button, input, select, textarea { font:inherit; }
.container { max-width:1200px; margin:0 auto; padding:24px; }
.login { min-height:100vh; display:grid; place-items:center; padding:24px; }
.card { background:rgba(17,24,39,.92); border:1px solid var(--border); border-radius:18px; padding:20px; box-shadow:0 20px 60px rgba(0,0,0,.25); }
.login .card { width:100%; max-width:420px; }
h1,h2,h3 { margin:0 0 14px; }
p { color:var(--muted); }
.grid { display:grid; gap:16px; }
.grid.cols-4 { grid-template-columns:repeat(4,1fr); }
.grid.cols-2 { grid-template-columns:repeat(2,1fr); }
.header { display:flex; justify-content:space-between; align-items:center; margin-bottom:22px; gap:12px; }
.nav { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:18px; }
.nav button, .btn { background:#1f2937; color:var(--text); border:1px solid var(--border); padding:10px 14px; border-radius:12px; cursor:pointer; }
.nav button.active, .btn.primary { background:var(--primary); color:#052e16; border-color:var(--primary); font-weight:bold; }
.btn.danger { background:var(--danger); border-color:var(--danger); color:white; }
input, textarea, select { width:100%; background:#020617; color:var(--text); border:1px solid var(--border); border-radius:12px; padding:12px; margin:6px 0 12px; }
label { color:var(--muted); font-size:14px; }
table { width:100%; border-collapse:collapse; overflow:hidden; border-radius:14px; }
th,td { padding:12px; border-bottom:1px solid var(--border); text-align:left; }
th { color:var(--muted); font-size:13px; }
.stat { font-size:32px; font-weight:bold; margin-top:8px; }
.error { background:#451a1a; color:#fecaca; padding:10px; border-radius:12px; margin:12px 0; }
.success { background:#052e16; color:#bbf7d0; padding:10px; border-radius:12px; margin:12px 0; }
@media (max-width: 800px){ .grid.cols-4,.grid.cols-2{grid-template-columns:1fr;} .header{align-items:flex-start; flex-direction:column;} table{font-size:13px;} }
.qr { text-align:center; margin-top:16px; }
.qr img { width:260px; max-width:100%; border-radius:16px; background:white; padding:12px; }
.muted { color:#64748b; }
