/* Crown Hub - yellow theme */
:root {
    --bg: #0e0e10;
    --bg2: #17171b;
    --bg3: #1f1f25;
    --txt: #e8e8ec;
    --mute: #888894;
    --line: #2a2a32;
    --gold: #ffcb2d;
    --gold-dim: #c9a224;
    --gold-soft: rgba(255,203,45,0.12);
    --red: #ff5252;
    --green: #45e07a;
}

* { box-sizing: border-box }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--txt);
    font-family: ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px; line-height: 1.5; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono, code, pre { font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; }
code { background: var(--bg3); padding: 1px 6px; border-radius: 4px; color: var(--gold); font-size: 12px; }
pre { background: var(--bg3); padding: 10px; border-radius: 6px; overflow: auto; }
small { color: var(--mute); font-weight: normal; }

.hdr {
    background: linear-gradient(180deg, #1a1a1f 0%, #15151a 100%);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px; display: flex; align-items: center; gap: 24px;
}
.hdr nav { display: flex; gap: 16px; flex: 1; }
.hdr nav a { color: var(--txt); font-weight: 500; }
.hdr nav a:hover { color: var(--gold); text-decoration: none; }
.hdr nav a.r { margin-left: auto; color: var(--mute); }
.brand { font-weight: 800; font-size: 16px; letter-spacing: 0.5px; display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.brand-logo-big { width: 64px; height: 64px; border-radius: 10px; object-fit: cover;
    box-shadow: 0 0 24px rgba(255,203,45,0.25); }
.brand .crown, .brand-big .crown { color: var(--gold); font-size: 1.4em; }
.brand-big { font-size: 26px; font-weight: 800; letter-spacing: 0.6px;
    display: flex; align-items: center; gap: 14px; margin-bottom: 24px; justify-content: center; }

main { padding: 28px 32px; max-width: 1280px; margin: 0 auto; }
h1 { font-size: 22px; margin: 0 0 20px; }
h2 { font-size: 16px; margin: 0 0 14px; color: var(--gold); }

.back { color: var(--mute); display: inline-block; margin-bottom: 12px; }

.flashes { margin: 0 0 16px; }
.flash { padding: 8px 14px; border-radius: 6px; margin-bottom: 6px; font-size: 13px; }
.flash-ok { background: rgba(69,224,122,0.12); color: var(--green); border: 1px solid rgba(69,224,122,0.3); }
.flash-err { background: rgba(255,82,82,0.12); color: var(--red); border: 1px solid rgba(255,82,82,0.3); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.stat b { display: block; color: var(--gold); font-size: 26px; font-weight: 800; }
.stat span { color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

.card {
    background: var(--bg2); border: 1px solid var(--line);
    border-radius: 10px; padding: 18px 20px; margin-bottom: 16px;
}

input, select, button, textarea {
    background: var(--bg3); color: var(--txt); border: 1px solid var(--line);
    border-radius: 6px; padding: 7px 10px; font-size: 13px; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
button {
    background: var(--gold); color: #1a1410; border: 0;
    font-weight: 600; cursor: pointer; padding: 7px 14px;
}
button:hover { background: #ffd54a; }
button.warn { background: #f2a93b; }
button.danger { background: var(--red); color: white; }
button.tiny { padding: 3px 8px; font-size: 11px; }
form.inline { display: inline-block; margin-right: 6px; }
form.inline + form.inline { margin-left: 0; }

table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12.5px; }
th, td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--mute); font-weight: 500; text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.5px; }
tr.fail td { background: rgba(255,82,82,0.05); }
tr.banned td { background: rgba(255,82,82,0.08); }
tr:hover td { background: rgba(255,203,45,0.04); }

.r { color: var(--red); }
.m { color: var(--mute); }

.login-wrap { display: flex; justify-content: center; align-items: center; min-height: 80vh; }
.login-card { background: var(--bg2); border: 1px solid var(--line);
    border-radius: 12px; padding: 32px 36px; min-width: 340px; }
.login-card form { display: flex; flex-direction: column; gap: 10px; }
.login-card input { padding: 10px 12px; }
.login-card button { padding: 10px 12px; font-size: 14px; }

/* IPs are blurred until hovered — keeps shoulder-surfers out without
   hiding the data from the admin who wants to copy/inspect it. */
.ip {
    filter: blur(5px);
    transition: filter 0.12s ease;
    cursor: pointer;
    user-select: none;
}
.ip:hover {
    filter: none;
    user-select: text;
}

.last-keys { margin-top: 14px; padding: 12px; background: var(--gold-soft);
    border: 1px solid var(--gold-dim); border-radius: 6px; }
.last-keys h3 { margin: 0 0 6px; font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.5px; }
.last-keys pre { background: var(--bg3); margin: 0; }
