/* Shuffler admin */
:root {
    --bg: #0F1512; --panel: #17211B; --panel-2: #1D2A22;
    --line: rgba(201,162,39,.18);
    --gold: #C9A227; --gold-hi: #F1D583;
    --text: #E9E4D5; --dim: #9AA69E;
    --red: #C25050; --green: #5FA97A;
    --foil: linear-gradient(115deg, #8A7118, #C9A227 40%, #F1D583 55%, #C9A227 70%);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: 'Spectral', Georgia, serif; font-weight: 300; line-height: 1.6; }
a { color: var(--gold-hi); text-decoration: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.wrap { display: flex; min-height: 100vh; }
.side {
    width: 215px; flex: none; background: var(--panel);
    border-right: 1px solid var(--line); padding: 1.2rem .9rem;
    display: flex; flex-direction: column; gap: 1.2rem;
    position: sticky; top: 0; height: 100vh;
}
.side-brand { font-family: 'Cinzel', serif; font-weight: 900; font-size: 1.2rem; color: var(--gold-hi); letter-spacing: .05em; }
.side-brand span { color: var(--gold); }
.side nav { display: flex; flex-direction: column; gap: .15rem; }
.side nav a { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 7px; color: var(--dim); font-size: .95rem; }
.side nav a i { font-style: normal; width: 1.1rem; text-align: center; color: var(--gold); opacity: .7; }
.side nav a:hover { background: var(--panel-2); color: var(--text); }
.side nav a.on { background: var(--panel-2); color: var(--gold-hi); border-left: 3px solid var(--gold); padding-left: calc(.7rem - 3px); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; }
.side-foot a { color: var(--dim); }
.side-foot a:hover { color: var(--gold-hi); }

.main { flex: 1; padding: 2rem 2.2rem 3rem; min-width: 0; }
.page-title { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.7rem; color: var(--gold-hi); margin-bottom: 1.4rem; }
h2 { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.15rem; color: var(--gold-hi); margin: 1.8rem 0 .8rem; }

.flash { padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1.2rem; font-size: .95rem; }
.flash.ok { background: rgba(95,169,122,.15); border: 1px solid rgba(95,169,122,.4); color: #A9D8BB; }
.flash.err { background: rgba(194,80,80,.15); border: 1px solid rgba(194,80,80,.4); color: #E3A9A9; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.6rem; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.2rem; }
.stat b { display: block; font-family: 'Cinzel', serif; font-weight: 900; font-size: 1.9rem; color: var(--gold-hi); line-height: 1.1; }
.stat span { color: var(--dim); font-size: .88rem; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1.3rem 1.4rem; margin-bottom: 1.4rem; }

table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--dim); font-weight: 600; font-size: .82rem; }
tr:hover td { background: rgba(201,162,39,.04); }
.table-scroll { overflow-x: auto; }
.thumb { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.pill { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .78rem; border: 1px solid var(--line); color: var(--dim); }
.pill.g { color: #A9D8BB; border-color: rgba(95,169,122,.4); }
.pill.r { color: #E3A9A9; border-color: rgba(194,80,80,.4); }

form label { display: block; font-size: .88rem; color: var(--dim); margin-bottom: .9rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], textarea, select {
    display: block; width: 100%; margin-top: .3rem; padding: .55rem .7rem;
    background: var(--bg); color: var(--text);
    border: 1px solid var(--line); border-radius: 6px;
    font-family: inherit; font-size: .95rem;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); }
textarea { min-height: 90px; resize: vertical; }
input[type=file] { margin-top: .3rem; color: var(--dim); font-size: .88rem; }
.check { display: flex; align-items: center; gap: .5rem; }
.check input { width: auto; margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 1.2rem; }

.btn {
    display: inline-block; cursor: pointer; border: none; border-radius: 6px;
    font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: .05em;
    padding: .6rem 1.3rem; font-size: .88rem;
    background: var(--foil); color: #1C1710;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: none; border: 1px solid var(--line); color: var(--dim); }
.btn.ghost:hover { color: var(--text); border-color: var(--gold); filter: none; }
.btn.danger { background: none; border: 1px solid rgba(194,80,80,.5); color: var(--red); }
.btn.sm { padding: .3rem .8rem; font-size: .78rem; }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.muted { color: var(--dim); font-size: .88rem; }
code { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: .1rem .35rem; font-size: .85em; color: var(--gold-hi); }

.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1rem; }
.login-card {
    width: min(94vw, 380px); background: var(--panel); border: 1px solid var(--line);
    border-radius: 12px; padding: 2.2rem 2rem; text-align: center;
}
.login-card .side-brand { font-size: 1.6rem; display: block; margin-bottom: .3rem; }
.login-card p { color: var(--dim); font-size: .9rem; margin-bottom: 1.4rem; }
.login-card form { text-align: left; }

.bars { display: flex; flex-direction: column; gap: .55rem; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 60px; gap: .7rem; align-items: center; font-size: .9rem; }
.bar-track { height: 10px; border-radius: 5px; background: var(--bg); overflow: hidden; }
.bar-fill { height: 100%; background: var(--foil); border-radius: 5px; }
.bar-n { text-align: right; color: var(--gold-hi); font-weight: 600; }

@media (max-width: 800px) {
    .wrap { flex-direction: column; }
    .side { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; flex-wrap: wrap; }
    .side nav { flex-direction: row; flex-wrap: wrap; }
    .side-foot { margin: 0 0 0 auto; flex-direction: row; gap: .8rem; }
    .main { padding: 1.4rem 1rem 2.5rem; }
    .grid2, .grid3 { grid-template-columns: 1fr; }
    .bar-row { grid-template-columns: 100px 1fr 44px; }
}

.nav-badge {
    display: inline-block; min-width: 1.2rem; text-align: center;
    background: var(--gold); color: #1C1710; border-radius: 999px;
    font-size: .7rem; font-weight: 700; padding: .05rem .3rem; margin-left: .3rem;
}
