:root {
  --bg: #0f1117; --panel: #171a23; --panel2: #1f2330; --line: #2a2f3e; --text: #e7e9ee; --muted: #8b91a3;
  --accent: #5865f2; --accent2: #4752c4; --ok: #2ecc71; --warn: #f1c40f; --bad: #e74c3c; --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.hidden { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.2; }
h2 { font-size: 22px; } h3 { font-size: 16px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

.login { min-height: 100%; display: grid; place-items: center; padding: 16px; }
.login-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 40px 32px; max-width: 420px; text-align: center; }
.login-card .logo { font-size: 48px; }
.login-card p { color: var(--muted); }

.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100%; }
.sidebar { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 16px; gap: 16px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand img, .me img { width: 36px; height: 36px; border-radius: 50%; background: var(--panel2); }
nav { display: flex; flex-direction: column; gap: 4px; }
nav button { text-align: left; background: none; border: 0; color: var(--muted); padding: 10px 12px; border-radius: 8px; font: inherit; cursor: pointer; }
nav button:hover { background: var(--panel2); color: var(--text); }
nav button.active { background: var(--accent); color: #fff; }
.me { margin-top: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
main { padding: 28px; max-width: 1200px; width: 100%; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; }
.stat .v { font-size: 28px; font-weight: 700; } .stat .l { color: var(--muted); font-size: 13px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 0 1 auto; }
.grow { flex: 1 1 200px !important; }

input, select, textarea { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; font: inherit; min-width: 0; }
textarea { width: 100%; min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
label { display: block; color: var(--muted); font-size: 13px; margin: 12px 0 6px; }
label.check { display: flex; gap: 10px; align-items: center; color: var(--text); font-size: 15px; cursor: pointer; }
label.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 9px 14px; font: inherit; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; } .btn.primary:hover { background: var(--accent2); }
.btn.danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn.big { padding: 12px 20px; font-weight: 600; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }
tr.off td { opacity: .45; text-decoration: line-through; }
.table-wrap { overflow-x: auto; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--panel2); }
.tag.warn { color: var(--warn); } .tag.timeout { color: #e67e22; } .tag.kick, .tag.ban { color: var(--bad); } .tag.unban, .tag.untimeout { color: var(--ok); }
.muted { color: var(--muted); } .error { color: var(--bad); }
.empty { color: var(--muted); padding: 20px 0; text-align: center; }

.results { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.result { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.result:hover { background: var(--panel2); } .result.sel { border-color: var(--accent); background: var(--panel2); }
.result img { width: 28px; height: 28px; border-radius: 50%; }

.now { display: flex; align-items: center; gap: 16px; }
.now .disc { font-size: 40px; }
.stations { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.station { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; cursor: pointer; text-align: left; color: var(--text); font: inherit; }
.station:hover { border-color: var(--accent); } .station.on { border-color: var(--ok); }
.station-edit { display: grid; grid-template-columns: 1fr 2fr auto; gap: 8px; margin-bottom: 8px; }

.toast { position: fixed; bottom: 20px; right: 20px; background: var(--panel2); border: 1px solid var(--line); border-left: 4px solid var(--ok); padding: 12px 16px; border-radius: 8px; max-width: 360px; z-index: 10; }
.toast.bad { border-left-color: var(--bad); }

@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  nav { flex-direction: row; overflow-x: auto; }
  nav button { white-space: nowrap; }
  main { padding: 16px; }
  .station-edit { grid-template-columns: 1fr; }
}
.mt { margin-top: 14px; } .mb { margin-bottom: 14px; }

/* ── v3 : EdenRP ── */
:root { --accent: #3fb27f; --accent2: #32936a; }
.small { font-size: 12px; }
.login-card .sub { margin-top: -8px; color: var(--accent); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.field { margin-bottom: 4px; }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.cols { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.chips { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.chips .check { font-size: 14px; }
.role { display: inline-flex; align-items: center; gap: 6px; background: var(--panel2); border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; font-size: 13px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); display: inline-block; }
.profile { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.profile h2 { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.big-avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--panel2); }
.mini { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; }
.mini strong { font-size: 24px; }
.stat.click { cursor: pointer; } .stat.click:hover { border-color: var(--accent); }
.type-edit { display: grid; grid-template-columns: 70px 1fr 2fr auto; gap: 8px; margin-bottom: 8px; }
.emoji { text-align: center; }
input.short { width: 90px; }
.queue { padding-left: 22px; margin: 0; }
.queue li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.queue li > * { vertical-align: middle; }
.queue li .grow { display: inline-block; min-width: 50%; }
.btn.icon { padding: 4px 9px; font-size: 13px; margin-left: 4px; }
.btn.icon.danger { border-color: var(--bad); }
.progress { height: 6px; background: var(--panel2); border-radius: 99px; margin-top: 10px; overflow: hidden; }
.progress .bar { height: 100%; width: 0; background: var(--accent); }
.preview { background: #313338; border-radius: 8px; padding: 14px; }
.bubble p { margin: 4px 0 0; white-space: pre-wrap; }
.bubble.embed { background: #2b2d31; border-left: 4px solid var(--accent); border-radius: 4px; padding: 10px 14px; }
.dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px; width: min(900px, 95vw); max-height: 85vh; padding: 18px; }
.dialog::backdrop { background: rgba(0,0,0,.6); }
pre.transcript { white-space: pre-wrap; word-break: break-word; font-size: 13px; background: var(--bg); padding: 12px; border-radius: 8px; max-height: 65vh; overflow: auto; }
@media (max-width: 760px) { .type-edit { grid-template-columns: 60px 1fr; } .type-edit > :nth-child(3) { grid-column: 1 / -1; } }

/* ── Roblox ── */
.roblox-line { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.roblox-line img { width: 36px; height: 36px; border-radius: 8px; background: var(--panel2); }
.roblox-line a, td a { color: var(--accent); }
.mini-avatar { width: 32px; height: 32px; border-radius: 6px; background: var(--panel2); }
.result .tag { margin-left: 6px; }
