/* CSBans – dark navy / orange (matches the CS16 Network forum theme) */
:root {
	--bg: #0b0f17;
	--header: #11161f;
	--surface: #151922;
	--surface-2: #1a1f2a;
	--surface-3: #202630;
	--line: rgba(206, 213, 222, .08);
	--line-2: rgba(206, 213, 222, .14);
	--text: #ced5de;
	--muted: #8590a2;
	--heading: #fff;
	--accent: #df390c;
	--accent-hi: #ff5a26;
	--accent-soft: rgba(223, 57, 12, .16);
	--green: #3a9744;
	--green-hi: #5fd068;
	--red: #ea4040;
	--yellow: #f2b630;
	--blue: #3b82f6;
	--radius: 12px;
	--shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
	--font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; min-height: 100vh; display: flex; flex-direction: column;
	background: var(--bg);
	background-image: radial-gradient(1200px 500px at 15% -10%, rgba(223, 57, 12, .14), transparent 60%), radial-gradient(900px 400px at 100% 0%, rgba(52, 92, 160, .12), transparent 60%);
	background-repeat: no-repeat;
	color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: var(--heading); text-decoration: none; }
a:hover { color: var(--accent-hi); }
h1, h2, h3 { color: var(--heading); margin: 0; letter-spacing: -.01em; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 16px; }
.main { flex: 1; padding-top: 24px; padding-bottom: 40px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.ellipsis { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { text-align: center; color: var(--muted); padding: 24px !important; }
[hidden] { display: none !important; }

/* buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 6px; border: 1px solid transparent; font: 700 13.5px/1.2 var(--font); cursor: pointer; white-space: nowrap; color: #fff; background: var(--surface-3); transition: background .15s, border-color .15s; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px rgba(223, 57, 12, .8); }
.btn--primary:hover { background: var(--accent-hi); color: #fff; }
.btn--ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-2); color: var(--heading); }
.btn--ghost:hover { border-color: var(--accent); background: var(--accent-soft); color: #fff; }
.btn--danger { background: rgba(234, 64, 64, .12); border-color: rgba(234, 64, 64, .45); color: #ff8b8b; }
.btn--danger:hover { background: var(--red); color: #fff; }
.btn--sm { padding: 5px 10px; font-size: 12.5px; }
.btn--block { width: 100%; }
input[type=text], input[type=search], input[type=password], input[type=number], input[type=date], select, textarea {
	width: 100%; background: var(--bg); color: var(--heading); border: 1px solid var(--line-2); border-radius: 6px; padding: 9px 11px; font: 14px var(--font); outline: 0; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(223, 57, 12, .25); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 16px; height: 16px; }
.input--xs { width: 70px !important; }
::placeholder { color: var(--muted); }

/* header */
.topbar { background: rgba(11, 15, 23, .75); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 50; }
.topbar__inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--heading); flex-shrink: 0; }
.logo svg { width: 32px; height: 32px; color: var(--accent); filter: drop-shadow(0 0 10px rgba(223, 57, 12, .55)); }
.nav { display: flex; align-items: center; flex: 1; gap: 16px; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; flex: 1; }
.nav ul a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--text); font-weight: 600; position: relative; }
.nav ul a:hover { background: rgba(255, 255, 255, .05); color: var(--heading); }
.nav ul a.is-active { color: var(--heading); }
.nav ul a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -15px; height: 3px; background: var(--accent); border-radius: 3px 3px 0 0; box-shadow: 0 0 14px var(--accent); }
.nav__user { margin-left: auto; }
.dropdown { position: relative; }
.dropdown summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-weight: 700; color: var(--heading); }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown[open] summary { border-color: var(--accent); }
.dropdown__menu { position: absolute; right: 0; top: calc(100% + 8px); width: 220px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; display: grid; }
.dropdown__menu a { padding: 8px 10px; border-radius: 6px; color: var(--text); }
.dropdown__menu a:hover, .dropdown__menu a.is-active { background: var(--surface-3); color: #fff; }
.dropdown__logout { color: var(--accent-hi) !important; border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 6px 6px !important; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.burger { display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 8px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.burger span { width: 18px; height: 2px; background: var(--heading); border-radius: 2px; }

/* layout pieces */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; font-weight: 800; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-head__actions { display: flex; gap: 8px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden; }
.card--narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); position: relative; flex-wrap: wrap; }
.card__head::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; background: var(--accent); border-radius: 0 3px 3px 0; box-shadow: 0 0 12px var(--accent); }
.card__head h2 { font-size: 15.5px; font-weight: 800; }
.card__foot { padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-2); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.grid-2--wide { grid-template-columns: 3fr 2fr; }
.grid-2 > .card { margin-bottom: 0; }
.stack { display: grid; gap: 18px; }
.stack > .card { margin-bottom: 0; }
.link { color: var(--muted); font-size: 13px; }
.alert { padding: 12px 16px; border-radius: 8px; border: 1px solid var(--line-2); border-left: 4px solid var(--green-hi); background: var(--surface); margin-bottom: 14px; }
.alert--error { border-left-color: var(--red); }
.code { background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; padding: 12px; overflow: auto; font: 12px var(--mono); }

/* hero */
.hero { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding: 32px 36px; margin-bottom: 18px; border-radius: 16px; border: 1px solid var(--line-2); background: radial-gradient(600px 300px at 85% 30%, rgba(223, 57, 12, .32), transparent 70%), linear-gradient(120deg, #1a2030, #121722 55%, #1b1410); box-shadow: var(--shadow); overflow: hidden; }
.hero h1 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin: 12px 0 6px; }
.hero p { margin: 0 0 18px; }
.tag { display: inline-block; background: var(--accent); color: #fff; font-weight: 800; font-size: 12px; padding: 5px 12px; border-radius: 999px; }
.hero__search { display: flex; gap: 8px; max-width: 520px; }
.kpis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 10px; }
.kpis--row { grid-template-columns: repeat(6, 1fr); margin-bottom: 18px; }
.kpis li { padding: 14px 16px; border-radius: var(--radius); background: rgba(11, 15, 23, .6); border: 1px solid var(--line-2); text-align: center; }
.kpis--row li { background: var(--surface); }
.kpis strong { display: block; color: var(--heading); font-size: 21px; font-weight: 800; }
.kpis span { color: var(--muted); font-size: 12px; }
.kpis .is-green strong { color: var(--green-hi); }
.kpis .is-accent strong { color: var(--accent-hi); }

/* servers */
.servers { padding: 10px; display: grid; gap: 6px; }
.srv { --c: var(--blue); position: relative; display: grid; grid-template-columns: minmax(200px, 1.5fr) 150px minmax(110px, 1fr) minmax(150px, 1fr) auto; align-items: center; gap: 14px; padding: 10px 14px 12px 20px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.srv::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--green-hi); box-shadow: 0 0 12px var(--green-hi); }
.srv--off { opacity: .65; }
.srv--off::before { background: var(--red); box-shadow: 0 0 12px var(--red); }
.fill--mid { --c: #22b8cf; } .fill--high { --c: #f2862e; } .fill--full { --c: var(--red); } .fill--off { --c: #4b5263; }
.srv__name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.srv__name > div { display: flex; flex-direction: column; min-width: 0; }
.srv__name strong { color: var(--heading); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv__players { display: flex; align-items: center; gap: 10px; }
.srv__players strong { color: var(--heading); white-space: nowrap; }
.srv__map { color: var(--accent-hi); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv__ip { background: none; border: 0; color: var(--heading); font: 700 13px var(--font); cursor: copy; text-align: left; padding: 0; }
.srv__ip:hover { color: var(--accent-hi); }
.srv__ip.is-copied { color: var(--green-hi); }
.srv__actions { display: flex; gap: 6px; }
.srv__bar { position: absolute; left: 20px; right: 14px; bottom: 0; height: 2px; background: var(--line); }
.srv__bar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--fill); background: linear-gradient(90deg, #345ca0, var(--c)); box-shadow: 0 0 8px var(--c); }
.ring { width: 32px; height: 32px; transform: rotate(-90deg); flex-shrink: 0; }
.ring__bg { fill: none; stroke: var(--surface-3); stroke-width: 3.5; }
.ring__fg { fill: none; stroke: var(--c); stroke-width: 3.5; stroke-linecap: round; }
.icon-btn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text); }
.icon-btn:hover { border-color: var(--accent); color: #fff; }
.icon-btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.game { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 22px; padding: 0 5px; border-radius: 5px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800; flex-shrink: 0; vertical-align: middle; }
.game--cscz { background: #b8611f; } .game--css { background: #2a6fdb; } .game--cs2 { background: #e0a100; color: #1a1300; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.dot--on { background: var(--green-hi); box-shadow: 0 0 8px var(--green-hi); }

/* tables */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 10px 14px; background: var(--bg); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th a { color: var(--muted); }
.table th a.is-sorted, .table th a:hover { color: var(--accent-hi); }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #1a1f2a; }
.table input[type=text] { padding: 6px 9px; }
.table select { padding: 6px 9px; width: auto; }
.clickable { cursor: pointer; }
.is-dim td { opacity: .5; }
.rank { font-weight: 800; color: var(--muted); width: 40px; }
.rank--1 { color: #fac746; } .rank--2 { color: #c0c0c0; } .rank--3 { color: #cd7f32; }
.hs { display: inline-block; width: 60px; height: 5px; border-radius: 3px; background: var(--surface-3); margin-right: 6px; vertical-align: middle; overflow: hidden; }
.hs span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-hi)); }
.actions { text-align: right; }
.actions .btn + .inline, .actions .btn + .btn { margin-left: 4px; }
.inline { display: inline; }
.badge { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid; }
.badge--active { color: #ff8b8b; background: rgba(234, 64, 64, .12); border-color: rgba(234, 64, 64, .45); }
.badge--expired { color: var(--muted); background: var(--surface-3); border-color: var(--line-2); }
.badge--unbanned { color: var(--green-hi); background: rgba(95, 208, 104, .1); border-color: rgba(95, 208, 104, .4); }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text); }
.pill--server { background: rgba(59, 130, 246, .18); color: #8fb8ff; }
.flag { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 4px; background: var(--accent-soft); color: var(--accent-hi); font: 800 12px var(--mono); }

/* forms, filters, tabs */
.form { padding: 18px; display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.form h3 { font-size: 14px; margin-top: 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
form.grid-2 { padding: 0; }
form.grid-2 > .card { display: grid; gap: 14px; padding-bottom: 18px; }
form.grid-2 > .card > :not(.card__head) { margin: 0 18px; }
form.grid-2 > .card > :first-child:not(.card__head) { margin-top: 18px; }
.radios { border: 0; padding: 0; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.radios legend { color: var(--muted); font-size: 12.5px; font-weight: 700; margin-bottom: 6px; padding: 0; }
.radios label, .check { display: flex !important; align-items: center; gap: 8px; color: var(--text) !important; font-weight: 500 !important; font-size: 13.5px !important; cursor: pointer; }
.checks { display: grid; gap: 8px; }
.checks--flags { padding: 16px 18px; grid-template-columns: 1fr 1fr; }
.flag-presets { display: flex; gap: 4px; flex-wrap: wrap; }
.filters { display: flex; gap: 10px; padding: 12px; flex-wrap: wrap; }
.filters input[type=search] { flex: 1 1 240px; width: auto; }
.filters select { flex: 0 1 220px; width: auto; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 13px; }
.tabs a.is-active, .tabs a:hover { border-color: var(--accent); color: #fff; background: var(--accent-soft); }
.details { display: grid; grid-template-columns: 150px 1fr; margin: 0; }
.details dt, .details dd { margin: 0; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.details dd { color: var(--heading); word-break: break-word; }
.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pager a, .pager span { min-width: 34px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--surface); border: 1px solid var(--line-2); font-weight: 700; color: var(--text); }
.pager a:hover { border-color: var(--accent); color: #fff; }
.pager .pager__cur { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager .pager__gap { background: none; border: 0; }

.footer { border-top: 1px solid var(--line); background: var(--header); color: var(--muted); font-size: 12.5px; }
.footer__inner { display: flex; justify-content: space-between; gap: 10px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }

@media (max-width: 1000px) {
	.grid-2, .grid-2--wide { grid-template-columns: 1fr; }
	.hero { grid-template-columns: 1fr; }
	.kpis { grid-template-columns: repeat(4, 1fr); }
	.kpis--row { grid-template-columns: repeat(3, 1fr); }
	.srv { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name players" "map actions" "ip ip"; gap: 8px 12px; }
	.srv__name { grid-area: name; } .srv__players { grid-area: players; } .srv__map { grid-area: map; } .srv__ip { grid-area: ip; } .srv__actions { grid-area: actions; }
}
@media (max-width: 800px) {
	.burger { display: inline-flex; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; padding: 12px 16px 16px; background: var(--header); border-bottom: 1px solid var(--line); }
	.nav ul { flex-direction: column; }
	.nav ul a.is-active::after { display: none; }
	.nav ul a.is-active { background: var(--accent-soft); }
	.nav__user { margin-left: 0; }
	.nav-toggle:checked ~ .nav { display: flex; }
	.dropdown__menu { left: 0; right: auto; }
	.hide-sm { display: none; }
	.kpis { grid-template-columns: repeat(2, 1fr); }
	.kpis--row { grid-template-columns: repeat(2, 1fr); }
	.checks--flags { grid-template-columns: 1fr; }
	.form__row { grid-template-columns: 1fr; }
	.hero { padding: 24px 20px; }
	.hero__search { flex-direction: column; }
	.details { grid-template-columns: 1fr; }
	.details dt { border-bottom: 0; padding-bottom: 0; }
	.ellipsis { max-width: 140px; }
	.table td, .table th { padding: 10px; }
}
