:root {
    --bg: #0f0f16;
    --panel: #17171f;
    --panel2: #1e1e29;
    --border: #2a2a38;
    --text: #e8e8ef;
    --muted: #8a8a9a;
    --accent: #8b5cf6;
    --accent2: #7c3aed;
    --ok: #22c55e;
    --warn: #f59e0b;
    --danger: #ef4444;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 24px; border-bottom: 1px solid var(--border);
    background: var(--panel);
}
.topbar .brand { font-weight: 700; font-size: 18px; }
.topbar .brand span { color: var(--accent); }
.topbar .who { color: var(--muted); font-size: 14px; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 24px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.card .label { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.card .value { font-size: 26px; font-weight: 700; }

table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: none; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.ok { background: rgba(34,197,94,.15); color: var(--ok); }
.badge.warn { background: rgba(245,158,11,.15); color: var(--warn); }
.badge.danger { background: rgba(239,68,68,.15); color: var(--danger); }
.badge.muted { background: rgba(138,138,154,.15); color: var(--muted); }

.btn {
    display: inline-block; background: var(--accent); color: #fff; border: none;
    padding: 10px 18px; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 14px;
}
.btn:hover { background: var(--accent2); text-decoration: none; }
.btn.secondary { background: var(--panel2); color: var(--text); border: 1px solid var(--border); }
.btn-block { width: 100%; }
.text-muted { color: var(--muted); }

.section-title { display: flex; justify-content: space-between; align-items: center; margin: 32px 0 12px; }
.section-title h2 { font-size: 16px; margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

form.box { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 24px; max-width: 480px; }
form.box label, .login-box label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
form.box input, form.box select, .login-box input {
    width: 100%; padding: 10px 12px; margin-bottom: 16px; background: var(--panel2);
    border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px;
}

.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-box { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 40px; width: 340px; }
.login-box h1 { font-size: 20px; margin: 0 0 24px; text-align: center; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert.error { background: rgba(239,68,68,.12); color: #fca5a5; border: 1px solid rgba(239,68,68,.3); }
.alert.success { background: rgba(34,197,94,.12); color: #86efac; border: 1px solid rgba(34,197,94,.3); }

pre.log { background: #0a0a10; border: 1px solid var(--border); border-radius: 8px; padding: 16px; font-size: 12px; overflow-x: auto; white-space: pre-wrap; max-height: 400px; overflow-y: auto; }

.secret-box { background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.3); border-radius: 8px; padding: 16px; margin: 16px 0; }
.secret-box code { font-size: 15px; color: #d4c5ff; }
