/* Admin panel styles. Loaded after style.css and uses its colours. */

.admin { padding: 40px 0 80px; }
.admin h1 { font-size: 1.7rem; }
.admin h2 { margin: 36px 0 14px; font-size: 1.15rem; }
.admin .box h2 { margin-top: 0; }

.admin__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }

.muted, .hint { color: var(--muted); }
.hint { margin: 10px 0 0; font-size: 0.88rem; }
.link { padding: 0; background: none; border: 0; color: var(--pink); font: inherit; font-weight: 600; cursor: pointer; }
.link:hover { text-decoration: underline; }
.crumb { margin-bottom: 16px; font-size: 0.9rem; }
.key { font-family: Consolas, "Courier New", monospace; font-size: 0.95em; letter-spacing: 0.02em; }
a.key:hover { color: var(--pink); }

.nav form { margin: 0; }

/* Messages */
.notice { margin-bottom: 20px; padding: 12px 16px; border-radius: var(--radius); background: var(--surface); font-size: 0.95rem; }
.notice--ok { color: #8fd6a8; }
.notice--error { color: #f08a8a; }

/* Dashboard numbers */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.stat { padding: 18px; background: var(--surface); border-radius: var(--radius); color: var(--muted); font-size: 0.88rem; }
.stats--4 { grid-template-columns: repeat(4, 1fr); }
.stat__num { display: block; margin-bottom: 2px; color: var(--text); font-size: 1.7rem; font-weight: 700; line-height: 1.2; }

/* Panels */
.box { margin-bottom: 20px; padding: 22px; background: var(--surface); border-radius: var(--radius); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.cols .box { margin-bottom: 0; }

/* Forms */
.form { display: grid; gap: 14px; }
.form--row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.form--row .field { flex: 1 1 180px; }
.form--row .field--small { flex: 0 1 130px; }
.form > .btn { justify-self: start; }
.filters { margin: 28px 0 18px; }

.field { display: grid; gap: 6px; }
.field > span { color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.field input,
.field select,
.field textarea,
.keys {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.keys:focus { outline: none; border-color: var(--pink); }
.box .field--small { max-width: 220px; }

.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--pink); }

.keys { display: block; font-family: Consolas, "Courier New", monospace; resize: vertical; }

.btn--danger { background: #fff; color: #c43c3c; }
button.btn { font-family: inherit; cursor: pointer; }

.actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.actions .form--row .field--small { flex: 0 0 120px; }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; white-space: nowrap; }
.table th, .table td { padding: 12px 16px; text-align: left; }
.table th { color: var(--muted); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.table tbody tr:nth-child(odd) { background: rgba(255, 255, 255, 0.025); }
.table__action { text-align: right; }
.table__action form { margin: 0; }

.state { font-size: 0.8rem; font-weight: 600; }
.state--active { color: #8fd6a8; }
.state--unused { color: var(--muted); }
.state--expired { color: #e0b46a; }
.state--revoked { color: #f08a8a; }

.pager { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; color: var(--muted); font-size: 0.9rem; }

.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 0 0 20px; font-size: 0.95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* Login and setup */
.auth { max-width: 380px; margin: 40px auto 0; padding: 28px; background: var(--surface); border-radius: var(--radius); }
.auth h1 { margin-bottom: 16px; }
.auth .muted { margin-bottom: 16px; }
.auth .btn { width: 100%; }

@media (max-width: 900px) {
  .stats--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .cols { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav form { margin-top: 8px; }
  .nav form .btn { width: 100%; }
}

@media (max-width: 600px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* Dashboard */
.box--narrow { max-width: 560px; }
.hint--top { margin: 0 0 18px; }
.stat__num.state--active, .stat__num.state--unused, .stat__num.state--expired, .stat__num.state--revoked { font-size: 1.7rem; }

/* Servers + settings */
.cols--top { margin-top: 28px; }
.table-wrap--flat { background: transparent; }
.redeem { margin-top: 16px; }
.danger-zone { margin-top: 18px; }
.state--online { color: #8fd6a8; }
.state--offline, .state--waiting { color: var(--muted); }
.state--problem { color: #f08a8a; }
.settings { gap: 0; }
.settings__group { margin-bottom: 14px; }
.settings__group > summary { cursor: pointer; font-weight: 600; font-size: 1.02rem; }
.settings__group[open] > summary { margin-bottom: 16px; }
.settings__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.settings__save { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 40%); }
.det td { vertical-align: top; white-space: normal; }
.det select, .det input.num { padding: 7px 9px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font: inherit; font-size: 0.9rem; }
.det input.num { width: 90px; }
.det__params { display: flex; flex-wrap: wrap; gap: 10px; }
.det__params label { display: grid; gap: 4px; font-size: 0.78rem; color: var(--muted); }
textarea.keys { min-height: 120px; }

/* Bans + accounts */
.inline-form { display: inline; }
.inline-details { display: inline-block; margin-left: 10px; }
.inline-details[open] { display: block; margin: 8px 0 0; }
.inline-details > summary { list-style: none; cursor: pointer; }
.inline-details form { margin-top: 10px; }
.ban-details pre.keys { white-space: pre-wrap; word-break: break-all; font-size: 0.78rem; background: var(--bg); padding: 10px; border-radius: 6px; max-width: 520px; }
.bans td { white-space: normal; }

/* Staff + team */
.staff-row { border-top: 1px solid var(--border); padding: 14px 0; }
.staff-row:first-of-type { border-top: 0; }
.staff-perms { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 6px 0; }
.staff-bypass { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; margin-top: 10px; }
.check--danger span { color: #f08a8a; }
.perm-list { list-style: none; padding: 0; display: grid; gap: 6px; }
.member { margin-bottom: 14px; } .member__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } .perm-head { margin: 12px 0 4px; font-weight: 600; font-size: 0.9rem; }

/* Players + watch + clips */
.players td { vertical-align: middle; }
.bar { display: inline-block; width: 90px; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; vertical-align: middle; margin-right: 6px; }
.bar span { display: block; height: 100%; }
.bar--hp span { background: #57c785; }
.bar--arm span { background: #5b8def; }
.tag { display: inline-block; font-size: 0.7rem; padding: 1px 7px; border-radius: 10px; background: var(--border); color: var(--text); margin-left: 4px; vertical-align: middle; text-decoration: none; }
.watch { background: #000; border-radius: 10px; min-height: 280px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.watch img { width: 100%; height: auto; display: block; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }

/* Tag lists (blacklists etc.) */
.taglists { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.taglist-card { background: var(--inset); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.taglist-card__title { margin: 0 0 10px; font-weight: 600; font-size: 0.92rem; }
.taglist__add { display: flex; gap: 8px; }
.taglist__add input { flex: 1; min-width: 0; padding: 8px 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font: inherit; font-size: 0.88rem; }
.taglist__count { margin: 8px 0 6px; font-size: 0.78rem; color: var(--muted); }
.taglist__chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 170px; overflow-y: auto; padding-right: 4px; }
.taglist__empty { font-size: 0.82rem; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 6px; background: rgba(236, 95, 156, 0.12); border: 1px solid rgba(236, 95, 156, 0.35); font-family: var(--mono); font-size: 0.8rem; }
.chip__x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 2px; }
.chip__x:hover { color: var(--pink); }

/* Server page tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); margin: 6px 0 22px; }
.tabs a { padding: 10px 16px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.tabs a:hover { color: var(--text); }
.tabs a.is-active { color: var(--text); border-bottom-color: var(--pink); }
.tab-panel[hidden] { display: none; }
.taglist__add .btn { padding: 7px 12px; font-size: 0.82rem; white-space: nowrap; }
.taglist__add [data-add] { background: var(--pink); border-color: var(--pink); color: var(--ink); }
.taglist__add [data-clear] { background: transparent; color: var(--muted); border-color: var(--border); }

/* Servers overview */
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 24px; margin: 28px 0 36px; }
.server-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  color: var(--text); text-decoration: none; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.server-card:hover { transform: translateY(-3px); border-color: rgba(236, 95, 156, .55); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.server-card__banner { position: relative; height: 150px; background: linear-gradient(135deg, #3a1f2d, #1d1e24 60%, #2a1424);
  background-size: cover; background-position: center; display: flex; gap: 8px; align-items: flex-start; padding: 14px; }
.server-card__banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(27,28,31,.85)); }
.pill { position: relative; z-index: 1; font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); }
.pill--online { color: #8fe0ab; } .pill--online::before { content: "\25CF "; }
.pill--offline, .pill--waiting { color: var(--muted); }
.pill--problem { color: #f29b9b; }
.pill--shared { color: var(--pink); }
.server-card__body { padding: 20px 22px 22px; display: grid; gap: 14px; }
.server-card__title { display: flex; align-items: center; gap: 14px; margin-top: -48px; position: relative; z-index: 1; }
.server-card__icon { width: 64px; height: 64px; border-radius: 14px; border: 3px solid var(--surface); background: var(--bg); object-fit: cover; }
.server-card__title h2 { margin: 0; font-size: 1.25rem; line-height: 1.25; }
.server-card__title .key { margin: 4px 0 0; font-size: .82rem; }
.server-card__desc { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.server-card__players { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 2px; font-size: .85rem; }
.server-card__count { font-size: 1.6rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.server-card__count strong { color: var(--text, #fff); }
.server-card__icon--letter { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.3rem; background: var(--pink); color: #fff; }
.server-card__meta { display: flex; justify-content: space-between; margin: 0; font-size: .82rem; color: var(--muted); }
.add-server { max-width: 720px; margin: 0 auto 40px; padding: 28px; }
.add-server__form { margin-top: 14px; }
.empty { text-align: center; padding: 40px; margin: 28px 0; }
.section-title { margin-top: 10px; }
@media (max-width: 600px) { .server-grid { grid-template-columns: 1fr; } .stats--3 { grid-template-columns: 1fr; } }

[hidden] { display: none !important; }

/* Wide server cards: full width so the whole FiveM banner shows */
.server-grid { grid-template-columns: 1fr; gap: 28px; }
.server-card__banner { height: auto; padding: 0; display: block; background: #15161a; }
.server-card__banner img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; }
.server-card__banner--none { height: 120px; background: linear-gradient(135deg, #3a1f2d, #1d1e24 60%, #2a1424); }
.server-card__banner::after { display: none; }
.server-card__pills { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; z-index: 1; }
.server-card__body { grid-template-columns: 1fr auto; align-items: center; padding: 22px 28px 24px; column-gap: 40px; }
.server-card__title { margin-top: 0; grid-column: 1; }
.server-card__desc { grid-column: 1; }
.server-card__players { grid-column: 2; grid-row: 1 / span 2; min-width: 120px; }
.server-card__meta { grid-column: 1 / -1; }
@media (max-width: 760px) { .server-card__body { grid-template-columns: 1fr; } .server-card__players { grid-column: 1; grid-row: auto; min-width: 0; align-items: flex-start; } }

/* Watch loading state */
.watch { position: relative; background: radial-gradient(ellipse at center, #26272b 0%, #17181b 70%); aspect-ratio: 16 / 9; min-height: 0; }
.watch__loading { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.watch__loading-text { color: var(--muted); font-size: .9rem; letter-spacing: .02em; animation: fz-fade 1.6s ease-in-out infinite; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(236, 95, 156, .18); border-top-color: var(--pink);
  animation: fz-spin .8s linear infinite; }
@keyframes fz-spin { to { transform: rotate(360deg); } }
@keyframes fz-fade { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } .watch__loading-text { animation: none; } }

/* Logo upload */
.logo-form { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line, rgba(255,255,255,.08)); }
.logo-form__row { display: flex; align-items: center; gap: 16px; }
.logo-form__row .field { flex: 1; margin: 0; }
.small { font-size: .82rem; }

/* Mail */
.tabs .count { display: inline-block; min-width: 20px; padding: 1px 6px; margin-left: 4px; border-radius: 99px; background: var(--pink); color: #fff; font-size: .72rem; text-align: center; }
.mail-search { margin: 22px 0 16px; }
.mail-search input { width: 100%; max-width: 420px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; }
.mail-list { padding: 0; overflow: hidden; }
.mail-item { display: grid; grid-template-columns: 220px 1fr auto; gap: 18px; align-items: baseline; padding: 14px 20px; border-bottom: 1px solid var(--border); color: var(--muted); text-decoration: none; }
.mail-item:last-child { border-bottom: 0; }
.mail-item:hover { background: rgba(255,255,255,.03); }
.mail-item__who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-item__subject { color: var(--text); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-item__snippet { color: var(--muted); margin-left: 8px; font-size: .88rem; }
.mail-item__date { font-size: .82rem; white-space: nowrap; }
.mail-item.is-unread .mail-item__who, .mail-item.is-unread .mail-item__subject { color: #fff; font-weight: 600; }
.mail-item.is-unread { box-shadow: inset 3px 0 0 var(--pink); }
.mail-view__head h2 { margin: 0 0 12px; }
.mail-frame { width: 100%; min-height: 480px; border: 0; border-radius: 10px; background: #fff; margin-top: 16px; }
.mail-text { white-space: pre-wrap; word-wrap: break-word; font-family: inherit; line-height: 1.6; margin: 18px 0 0; padding: 18px; border-radius: 10px; background: var(--bg); }
.mail-atts { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.mail-view__actions { display: flex; gap: 10px; margin-top: 18px; }
.mail-compose { margin-top: 18px; }
.mail-compose textarea { min-height: 160px; }
.pager { display: flex; gap: 18px; justify-content: center; }
.steps-list { margin: 0; padding-left: 22px; list-style: decimal; line-height: 1.9; color: var(--muted); }
.steps-list b, .steps-list code { color: var(--text); }
@media (max-width: 760px) { .mail-item { grid-template-columns: 1fr auto; } .mail-item__subject { grid-column: 1 / -1; grid-row: 2; } }

/* Checkout + account */
.checkout { max-width: 520px; }
.checkout__plan { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; margin: 8px 0 14px;
  border: 1px solid var(--pink); border-radius: 14px; background: rgba(236,95,156,.06); }
.checkout__plan > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.checkout__price { font-size: 1.5rem; font-weight: 700; white-space: nowrap; }
.checkout__price span { font-size: .85rem; font-weight: 400; }
.btn--block { width: 100%; justify-content: center; }
.cf-turnstile { margin: 4px 0 14px; min-height: 65px; }
.box__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.box__head h2 { margin: 0; }
.paid-box { border-color: var(--pink); background: rgba(236,95,156,.06); }
.paid-box .key { font-size: 1.05rem; }
.small { font-size: .82rem; }

.field textarea { resize: vertical; line-height: 1.55; }

/* Staff header has many links: tighter, and a menu button below 1240px */
.logo { flex-shrink: 0; margin-right: 22px; }
.nav--long { gap: 20px; }
.nav--long a:not(.btn) { white-space: nowrap; font-size: .88rem; }
@media (max-width: 1240px) {
  .nav-toggle--long { display: block; }
  .nav--long { position: absolute; top: 68px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 20px; background: var(--bg); z-index: 50; border-bottom: 1px solid var(--border); }
  .nav--long.is-open { display: flex; }
  .nav--long a:not(.btn) { padding: 12px 0; font-size: .95rem; }
  .nav--long form { margin-top: 8px; }
}
.code-copy { position: relative; margin: 14px 0 10px; }
.code-copy pre { margin: 0; padding: 14px; font-size: .78rem; line-height: 1.5; white-space: pre; overflow-x: auto; }
.code-copy .btn { position: absolute; top: 8px; right: 8px; }
details.hint summary { cursor: pointer; color: var(--text); margin-top: 6px; }
details.hint ol { margin-top: 10px; }

/* Prices + discount codes */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.price-card { border: 1px solid var(--border); border-radius: 12px; padding: 18px; display: grid; gap: 12px; background: var(--bg); }
.price-card h2 { margin: 0; }
.price-card p { margin: 0; }
.price-card__preview { font-size: 1.2rem; }
.price-card__preview s { color: var(--muted); font-size: .95rem; }
.check-row { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.discount-form { margin-bottom: 22px; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }

/* On-site checkout */
.co { max-width: 1040px; margin: 0 auto; }
.co__back { display: inline-block; margin-bottom: 10px; font-size: .9rem; }
.co__title { margin: 0 0 24px; font-size: 2rem; }
.co__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; align-items: start; }
.co__card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; }
.co__eyebrow { margin: 0 0 16px; font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--pink); }
.co__plan { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.co__plan h2 { margin: 0 0 6px; font-size: 1.25rem; }
.co__plan p { margin: 0; }
.co__plan-price { font-size: 1.5rem; font-weight: 700; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; }
.co__plan-price s { font-size: .85rem; font-weight: 500; color: var(--muted); }
.co__features { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 9px; color: var(--muted); font-size: .92rem; }
.co__features li { padding-left: 24px; position: relative; }
.co__features li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 5px; border-left: 2px solid var(--pink); border-bottom: 2px solid var(--pink); transform: rotate(-45deg); }
.co__label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.co__code { padding: 18px 0; border-top: 1px solid var(--border); }
.co__code-row { display: flex; gap: 8px; }
.co__code-row input { flex: 1; min-width: 0; padding: 11px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font: inherit; text-transform: uppercase; letter-spacing: .04em; }
.co__code-row input:focus { outline: none; border-color: var(--pink); }
.co__code-row input:disabled { opacity: .8; }
.co__code-msg { margin: 8px 0 0; font-size: .86rem; }
.co__code-msg.is-good { color: #5fd68b; }
.co__code-msg.is-bad { color: #ff6b81; }
.co__totals { margin: 0 0 16px; padding-top: 16px; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.co__totals div { display: flex; justify-content: space-between; }
.co__totals dt { color: var(--muted); }
.co__totals dd { margin: 0; }
.co__totals #tDisc { color: #5fd68b; }
.co__total { padding-top: 12px; border-top: 1px dashed var(--border); font-size: 1.15rem; font-weight: 700; }
.co__total dt { color: var(--text); }
.co__element { min-height: 210px; margin-bottom: 16px; }
.co__loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 30px 0; }
.co .spinner { width: 18px; height: 18px; border-width: 2px; display: inline-block; vertical-align: -3px; }
.co__paybtn { padding: 14px 18px; font-size: 1.02rem; margin-top: 6px; }
.co__paybtn:disabled { opacity: .6; cursor: default; }
.co__secure { display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--muted); font-size: .82rem; margin: 16px 0 0; }
.co__test { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(236,95,156,.08); border: 1px dashed rgba(236,95,156,.4); font-size: .84rem; color: var(--muted); text-align: center; }
@media (max-width: 860px) { .co__grid { grid-template-columns: 1fr; } .co__pay { order: 2; } }
.watch video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.clip-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 10px; border-radius: 99px;
  background: rgba(236,95,156,.14); border: 1px solid rgba(236,95,156,.45); color: #fff; font-size: .78rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.clip-btn:hover { background: rgba(236,95,156,.28); }

/* Account: Discord link */
.btn--discord { background: #5865f2; color: #fff; }
.btn--discord:hover { background: #6a75ff; }
.dlink { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; position: relative; overflow: hidden; }
.dlink::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 160px at 0 0, rgba(88, 101, 242, .16), transparent 70%); pointer-events: none; }
.dlink > * { position: relative; }
.dlink__icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #5865f2; color: #fff; box-shadow: 0 10px 26px -12px rgba(88, 101, 242, .9); }
.dlink.is-linked .dlink__icon { display: none; }
.dlink__avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 3px #5865f2; }
.dlink__body { flex: 1; min-width: 220px; }
.dlink__body h2 { margin: 0; font-size: 1.1rem; }
.dlink__body .hint { margin-top: 4px; }
.dlink__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 6px; font-size: .85rem; }
.dlink__tag { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--muted); font-size: .78rem; font-weight: 600; }
.dlink__tag--on { background: rgba(127, 214, 160, .12); color: #8fd6a8; }
.dlink__tag--on::before { content: "\25CF  "; }
.dlink__tag--warn { background: rgba(224, 180, 106, .12); color: #e0b46a; }
.dlink__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dlink__actions form { margin: 0; }
.dlink__unlink { color: var(--muted); font-size: .88rem; }
.dlink__unlink:hover { color: #f08a8a; }

/* =====================================================================
   Panel layout v2: sidebar + roomy content. Overrides the older rules above.
   ===================================================================== */
.panel { --bg: #101012; --surface: #17171a; --surface-2: #1d1d21; --border: #26262c; --line: #222227; --radius: 14px; background: var(--bg); }
.panel--app { min-height: 100vh; }
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, #0b0b0d 247px, var(--line) 247px, var(--line) 248px, transparent 248px); }

/* sidebar */
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 14px 18px; background: #0b0b0d; border-right: 1px solid var(--line); }
.side__top { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 22px; }
.side__brand { display: flex; align-items: center; gap: 12px; }
.side__brand img { height: 38px; width: auto; }
.side__brand span { color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.side__close { display: none; width: 34px; height: 34px; border: 0; border-radius: 8px; background: rgba(255,255,255,.06); color: #fff; font-size: 1.3rem; cursor: pointer; }
.side__nav { display: grid; gap: 2px; }
.side__nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #a9aab2; font-size: .93rem; font-weight: 500; transition: background-color .15s, color .15s; }
.side__nav a svg { flex: none; opacity: .85; }
.side__nav a:hover { background: rgba(255,255,255,.04); color: #fff; }
.side__nav a.is-active { background: rgba(255,255,255,.07); color: #fff; }
.side__nav a.is-active svg { color: var(--pink); opacity: 1; }
.side__count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--pink); color: #fff; font-size: .72rem; font-style: normal; font-weight: 700; text-align: center; }
.side__foot { margin-top: auto; display: grid; gap: 10px; padding: 16px 12px 0; border-top: 1px solid var(--line); }
.side__link { color: var(--muted); font-size: .88rem; }
.side__link:hover { color: #fff; }
.side__user { overflow: hidden; color: #d9dae0; font-size: .85rem; white-space: nowrap; text-overflow: ellipsis; }
.side__foot form { margin: 0; }
.side__logout { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px; background: transparent; color: #d9dae0; font: inherit; font-size: .88rem; cursor: pointer; transition: border-color .15s, color .15s; }
.side__logout:hover { border-color: #f08a8a; color: #f08a8a; }
.side__scrim { display: none; }

/* phone top bar */
.mbar { display: none; }

/* page area */
.app__body { min-width: 0; }
.admin { width: 100%; max-width: 1180px; margin: 0 auto; padding: 44px 48px 96px; }
.panel--auth .admin { max-width: 520px; padding-top: 24px; }
.admin h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; }
.admin h2 { margin: 0 0 16px; font-size: 1.08rem; font-weight: 600; letter-spacing: -.01em; }
.admin h3 { font-size: 1rem; }

.phead, .admin__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.phead p { margin-top: 6px; color: var(--muted); font-size: .95rem; }
.section-head { margin: 0 0 18px; }
.section-head h2 { margin: 0; }
.section-head p { margin-top: 6px; max-width: 640px; color: var(--muted); font-size: .92rem; }
.section-head--row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; }

.box { margin-bottom: 24px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.box h2 { margin-bottom: 18px; }
.box--narrow { max-width: 620px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.grid-2 .box { margin-bottom: 0; }
.cols { gap: 24px; }

.notice { margin-bottom: 28px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: #d9dae0; }
.notice--ok { border-color: rgba(127,214,160,.25); background: rgba(127,214,160,.06); color: #a9e5bf; }
.notice--error { border-color: rgba(240,138,138,.28); background: rgba(240,138,138,.06); color: #f4a9a9; }
.hint { margin-top: 10px; font-size: .88rem; line-height: 1.55; }
.link--muted { color: var(--muted); font-weight: 500; }
.link--muted:hover { color: #fff; }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--muted); font-size: .88rem; }
.back-link:hover { color: #fff; }
.crumb { margin-bottom: 18px; }

/* buttons: calm in the panel */
.panel .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid transparent; border-radius: 10px; font-size: .92rem; font-weight: 600; animation: none; transition: background-color .15s, border-color .15s, transform .15s; }
.panel .btn:hover { transform: none; }
.panel .btn--primary { background: var(--pink); color: #fff; }
.panel .btn--primary:hover { background: #f173aa; }
.panel .btn--outline { background: transparent; border-color: var(--border); color: #e6e7eb; }
.panel .btn--outline:hover { border-color: #3a3a42; background: rgba(255,255,255,.03); }
.panel .btn--danger { background: transparent; border-color: rgba(240,138,138,.4); color: #f08a8a; }
.panel .btn--danger:hover { background: rgba(240,138,138,.08); }
.panel .btn--sm { padding: 7px 13px; font-size: .85rem; }
.btn-line { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-line .link { font-size: .9rem; }
.state { text-transform: none; letter-spacing: 0; font-size: .88rem; }

/* forms */
.form { gap: 18px; }
.form--row { gap: 16px; }
.field { gap: 8px; }
.field > span { color: #b4b5bc; font-size: .85rem; }
.field > span em { font-style: normal; }
.field input, .field select, .field textarea, .keys, .toolbar__search {
  padding: 11px 14px; background: #111114; border: 1px solid var(--border); border-radius: 10px; color: var(--text); font: inherit; font-size: .94rem;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus, .keys:focus, .toolbar__search:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(236,95,156,.15); }
.field input[type="file"] { padding: 9px 12px; }

.toggle { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #141417; cursor: pointer; transition: border-color .15s; }
.toggle:hover { border-color: var(--border); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle__ui { position: relative; flex: none; width: 38px; height: 22px; border-radius: 99px; background: #34343b; transition: background-color .2s; }
.toggle__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle input:checked + .toggle__ui { background: var(--pink); }
.toggle input:checked + .toggle__ui::after { transform: translateX(16px); }
.toggle input:focus-visible + .toggle__ui { box-shadow: 0 0 0 3px rgba(236,95,156,.3); }
.toggle__text { font-size: .92rem; color: #dcdde2; }

/* stats */
.stats { gap: 20px; margin-bottom: 32px; }
.stat { padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat__num { margin-bottom: 4px; font-size: 1.8rem; letter-spacing: -.02em; }

/* tables */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap--flat { background: transparent; border: 0; }
.table { font-size: .92rem; }
.table th, .table td { padding: 15px 20px; }
.table th { border-bottom: 1px solid var(--line); color: #8d8e96; font-size: .74rem; letter-spacing: .06em; }
.table tbody tr:nth-child(odd) { background: transparent; }
.table tbody tr + tr td { border-top: 1px solid var(--line); }
.table tbody tr:hover td { background: rgba(255,255,255,.015); }
.nowrap { white-space: nowrap; }
.pager { align-items: center; justify-content: center; margin-top: 24px; }

.facts { gap: 12px 28px; margin: 0 0 18px; }
.facts dt { color: #8d8e96; font-size: .9rem; }
.facts dd { font-size: .94rem; }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #5a5b63; vertical-align: 1px; }
.dot--online { background: #6fd39a; box-shadow: 0 0 0 3px rgba(111,211,154,.15); }
.dot--problem { background: #f08a8a; }
.dot--waiting { background: #e0b46a; }

/* tabs (settings, mail) + server menu */
.tabs, .subnav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 32px; border-bottom: 1px solid var(--line); }
.tabs a, .subnav a { margin-bottom: -1px; padding: 12px 16px; border-bottom: 2px solid transparent; color: #9a9ba3; font-size: .93rem; font-weight: 500; }
.tabs a:hover, .subnav a:hover { color: #fff; }
.tabs a.is-active, .subnav a.is-active { color: #fff; border-bottom-color: var(--pink); }

.srv-head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.srv-head__icon { flex: none; width: 60px; height: 60px; border-radius: 14px; object-fit: cover; background: var(--surface-2); }
.srv-head__icon--letter { display: grid; place-items: center; background: var(--pink); color: #fff; font-size: 1.4rem; font-weight: 700; }
.srv-head h1 { font-size: 1.6rem; }
.srv-head p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; color: var(--muted); font-size: .9rem; }
.srv-head .sep { margin: 0 6px; opacity: .5; }

.box--danger { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-color: rgba(240,138,138,.18); }
.box--danger h2 { margin-bottom: 4px; }
.box--danger .hint { margin: 0; }
.perm-list { gap: 10px; }
.perm-list li { position: relative; padding-left: 26px; color: #d9dae0; }
.perm-list li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.perm-list li.is-yes::before { content: "\2713"; color: #6fd39a; }
.perm-list li.is-no { color: var(--muted); }
.perm-list li.is-no::before { content: "\2013"; color: #5a5b63; }

/* configuration */
.settings { display: block; }
.cfg { margin-bottom: 26px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cfg__head { margin-bottom: 20px; }
.cfg__head h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.cfg__head p { margin-top: 6px; color: var(--muted); font-size: .9rem; }
.cfg__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.cfg__toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.cfg__group { border-top: 1px solid var(--line); }
.cfg__group:last-child { border-bottom: 1px solid var(--line); }
.cfg__group > summary { display: flex; align-items: center; gap: 10px; padding: 16px 2px; cursor: pointer; font-weight: 600; list-style: none; }
.cfg__group > summary::-webkit-details-marker { display: none; }
.cfg__group > summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 1.2rem; font-weight: 400; }
.cfg__group[open] > summary::after { content: "\2212"; }
.cfg__group > summary span { padding: 1px 8px; border-radius: 99px; background: rgba(255,255,255,.06); color: var(--muted); font-size: .75rem; }
.det-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px 24px; padding: 4px 0 22px; }
.det-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px; border-radius: 10px; background: #141417; }
.det-row__name { font-size: .92rem; color: #dcdde2; }
.det-row__select { flex: none; width: 118px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: #101012; color: #fff; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.det-row__select.is-ban { border-color: rgba(240,138,138,.45); color: #f4a9a9; }
.det-row__select.is-kick { border-color: rgba(224,180,106,.45); color: #ecc98a; }
.det-row__select.is-log { border-color: rgba(120,160,255,.4); color: #a9c1ff; }
.det-row__select.is-off { color: var(--muted); }
.cfg__sub { margin: 30px 0 14px; font-size: .95rem; }
.cfg__lists { margin-top: 24px; }
.cfg--staff { border-color: rgba(236,95,156,.25); }
.staff-tag { padding: 3px 9px; border-radius: 99px; background: rgba(236,95,156,.14); color: var(--pink); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.settings__save { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; padding: 14px 16px 14px 22px;
  background: rgba(23,23,26,.92); border: 1px solid var(--border); border-radius: 14px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 18px 40px -20px rgba(0,0,0,.8); }
.settings__save .muted { font-size: .88rem; }
.reset-form { margin-top: 18px; text-align: right; }
.taglists { gap: 18px; }
.taglist-card { padding: 18px; border-color: var(--line); border-radius: 12px; background: #141417; }

/* server cards */
.server-grid { gap: 24px; margin: 0 0 40px; }
.server-card { border-color: var(--line); border-radius: 18px; }
.server-card:hover { transform: translateY(-2px); border-color: rgba(236,95,156,.4); box-shadow: 0 20px 40px -24px rgba(0,0,0,.9); }
.server-card__go { color: var(--pink); font-weight: 600; }
.add-server { max-width: none; margin: 0 0 40px; padding: 32px; }
.add-server .form { max-width: 620px; }
.empty { padding: 56px 24px; }

/* connections */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 20px; }
.toolbar__search { flex: 1 1 280px; max-width: 420px; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 11px; background: #111114; }
.seg a { padding: 7px 14px; border-radius: 8px; color: var(--muted); font-size: .88rem; font-weight: 500; }
.seg a:hover { color: #fff; }
.seg a.is-active { background: rgba(255,255,255,.08); color: #fff; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .76rem; font-weight: 600; }
.badge--join { background: rgba(111,211,154,.12); color: #8fe0b2; }
.badge--leave { background: rgba(255,255,255,.06); color: #b4b5bc; }
.conn td { white-space: normal; vertical-align: top; }
.idlist { display: flex; flex-wrap: wrap; gap: 6px; max-width: 520px; }
.idchip { display: inline-flex; gap: 6px; max-width: 100%; overflow: hidden; padding: 4px 9px; border: 1px solid var(--line); border-radius: 7px; background: #141417; color: #c9cad0; font: 500 .76rem/1.4 var(--mono); text-overflow: ellipsis; white-space: nowrap; cursor: pointer; transition: border-color .15s; }
.idchip b { color: var(--muted); font-family: "Inter", sans-serif; font-weight: 600; }
.idchip:hover { border-color: var(--border); }
.idchip.is-copied { border-color: #6fd39a; }
.idchip.is-copied b::after { content: " copied"; color: #6fd39a; }

/* accounts: server limit */
.limit-form { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.limit-form span { color: var(--muted); }
.limit-form__btn { width: 26px; height: 26px; border: 1px solid var(--border); border-radius: 7px; background: transparent; color: #fff; font: inherit; line-height: 1; cursor: pointer; }
.limit-form__btn:hover:not(:disabled) { border-color: var(--pink); color: var(--pink); }
.limit-form__btn:disabled { opacity: .3; cursor: default; }

/* login / register pages */
.auth-bar { display: flex; align-items: center; justify-content: space-between; max-width: 1180px; margin: 0 auto; padding: 22px 28px; }
.auth-bar__brand img { height: 40px; }
.auth { max-width: 440px; margin: 48px auto 0; padding: 36px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.auth h1 { margin-bottom: 10px; font-size: 1.55rem; }

/* stream inside the panel */
.stream { border: 1px solid var(--line); background: var(--surface); }
.stream__head { background: #1b1b1f; }

@media (max-width: 1100px) {
  .admin { padding: 36px 32px 88px; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; background: none; }
  .side { position: fixed; z-index: 60; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .25s ease; }
  .side-open .side { transform: none; }
  .side__close { display: block; }
  .side__scrim { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .25s; display: block; }
  .side-open .side__scrim { opacity: 1; pointer-events: auto; }
  .mbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: rgba(11,11,13,.92); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .mbar__menu { width: 40px; height: 40px; padding: 10px; border: 0; border-radius: 9px; background: rgba(255,255,255,.06); cursor: pointer; }
  .mbar__menu span { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: #fff; }
  .mbar__brand img { height: 32px; }
  .mbar__title { color: var(--muted); font-size: .9rem; font-weight: 600; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .admin { padding: 26px 18px 80px; }
  .box, .cfg { padding: 22px 18px; }
  .phead { margin-bottom: 24px; }
  .det-list { grid-template-columns: 1fr; }
  .settings__save { flex-direction: column; align-items: stretch; text-align: center; }
  .subnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .subnav a { white-space: nowrap; }
  .table th, .table td { padding: 12px 14px; }
}

details.cfg--staff > summary { margin: 0; cursor: pointer; list-style: none; position: relative; padding-right: 40px; }
details.cfg--staff > summary::-webkit-details-marker { display: none; }
details.cfg--staff > summary::after { content: "+"; position: absolute; right: 0; top: 0; color: var(--muted); font-size: 1.3rem; }
details.cfg--staff[open] > summary::after { content: "\2212"; }
.cfg__staff-body { margin-top: 24px; }

/* top bar with the account menu (all screen sizes; menu button + logo only on phones) */
.mbar { display: flex; align-items: center; gap: 14px; justify-content: flex-end; max-width: 1180px; margin: 0 auto; padding: 22px 48px 0; }
.mbar__menu, .mbar__brand { display: none; }
.umenu { position: relative; }
.umenu > summary { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: #d9dae0; font-size: .88rem; cursor: pointer; list-style: none; transition: border-color .15s; }
.umenu > summary::-webkit-details-marker { display: none; }
.umenu > summary:hover, .umenu[open] > summary { border-color: var(--border); }
.umenu > summary svg { color: var(--muted); transition: transform .2s; }
.umenu[open] > summary svg { transform: rotate(180deg); }
.umenu__avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 700; font-size: .85rem; }
.umenu__email { max-width: 220px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.umenu__panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; width: 250px; padding: 8px; border: 1px solid var(--border); border-radius: 14px; background: #19191d; box-shadow: 0 24px 50px -20px rgba(0,0,0,.9); animation: umenu-in .15s ease; }
@keyframes umenu-in { from { opacity: 0; transform: translateY(-4px); } }
.umenu__who { padding: 10px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .8rem; line-height: 1.5; }
.umenu__who b { display: block; overflow: hidden; color: #fff; font-weight: 600; font-size: .88rem; text-overflow: ellipsis; }
.umenu__panel a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: #d9dae0; font-size: .9rem; }
.umenu__panel a svg { color: var(--muted); }
.umenu__panel a:hover { background: rgba(255,255,255,.05); color: #fff; }
.umenu__panel form { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--line); }
.umenu__out { width: 100%; padding: 9px 12px; border: 0; border-radius: 9px; background: none; color: #f08a8a; font: inherit; font-size: .9rem; text-align: left; cursor: pointer; }
.umenu__out:hover { background: rgba(240,138,138,.08); }
.admin { padding-top: 22px; }
@media (max-width: 1100px) { .mbar { padding: 18px 32px 0; } }
@media (max-width: 900px) {
  .mbar { position: sticky; top: 0; z-index: 40; max-width: none; justify-content: flex-start; padding: 12px 18px; background: rgba(11,11,13,.92); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .mbar__menu, .mbar__brand { display: block; }
  .umenu { margin-left: auto; }
  .umenu__email { display: none; }
  .umenu > summary { padding: 4px; }
  .umenu > summary svg { display: none; }
  .admin { padding-top: 26px; }
}

/* players list: fits the page, no sideways scrolling */
.table-wrap:has(.players) { overflow: hidden; }
.players { table-layout: fixed; white-space: normal; }
.players td { vertical-align: middle; }
.players__name { min-width: 0; }
.players th:nth-child(1) { width: 56px; } .players th:nth-child(3), .players th:nth-child(4) { width: 150px; }
.players th:nth-child(5), .players th:nth-child(7) { width: 86px; } .players th:nth-child(6) { width: 84px; } .players th:nth-child(8) { width: 100px; }
.players__nm { display: block; font-weight: 600; }
.players__id { display: block; overflow: hidden; margin-top: 3px; font-size: .78rem; white-space: nowrap; text-overflow: ellipsis; }
.players .bar { width: calc(100% - 46px); max-width: 90px; }
.players small { color: var(--muted); }
@media (max-width: 1000px) {
  .players th:nth-child(4), .players td:nth-child(4), .players th:nth-child(6), .players td:nth-child(6) { display: none; }
}
@media (max-width: 640px) {
  .players th:nth-child(3), .players td:nth-child(3), .players th:nth-child(7), .players td:nth-child(7) { display: none; }
}

/* watch page */
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.watch { position: relative; border: 1px solid var(--line); border-radius: 16px; }
.watch__live { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 4px 11px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; font-size: .78rem; font-weight: 600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.watch-side .box { margin-bottom: 20px; padding: 24px; }
.pcard__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.pcard__head h2 { margin: 0; font-size: 1.15rem; }
.pcard__head p { margin-top: 3px; font-size: .86rem; }
.pcard__avatar { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--pink); color: #fff; font-size: 1.2rem; font-weight: 700; }
.pstats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 0 0 22px; }
.pstats dt { color: var(--muted); font-size: .78rem; }
.pstats dd { display: flex; align-items: center; gap: 8px; margin: 3px 0 0; font-size: .92rem; }
.pstats .bar { flex: 1; width: auto; margin: 0; }
.pstats b { font-weight: 600; font-size: .82rem; }
.pcard__sub { margin: 0 0 12px; color: #b4b5bc; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.idlist--stack { flex-direction: column; align-items: stretch; }
.idlist--stack .idchip { justify-content: flex-start; }
.pact__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pact__form { margin-top: 18px; }
.pact .notice { margin: 16px 0 0; }
@media (max-width: 1100px) { .watch-layout { grid-template-columns: 1fr; } }
.idlist--stack .idchip { display: block; width: 100%; text-align: left; }
.players th { white-space: nowrap; }
.players th:nth-child(7) { width: 92px; }

/* =====================================================================
   Panel v3: floating sidebar with server menus, breadcrumb bar, home cards
   ===================================================================== */
.panel { --bg: #08080a; --surface: #111114; --surface-2: #17171b; --line: #1f1f25; --border: #2a2a31; }
.app { grid-template-columns: 272px minmax(0, 1fr); background: none; }
.side { top: 8px; height: calc(100vh - 16px); margin: 8px 0 8px 8px; padding: 12px 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: #0d0d10; overflow-y: auto; scrollbar-width: thin; }
.side__top { padding: 0 0 12px; }
.side__brand { flex: 1; gap: 12px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(135deg, rgba(236,95,156,.22), rgba(236,95,156,.06)); border: 1px solid rgba(236,95,156,.25); }
.side__brand img { height: 34px; }
.side__brand-text { display: grid; line-height: 1.2; }
.side__brand-text b { color: #fff; font-size: .95rem; }
.side__brand-text small { color: #e9b9cf; font-size: .76rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.side__search { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 14px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #0a0a0c; color: var(--muted); font: inherit; font-size: .88rem; cursor: pointer; transition: border-color .15s, color .15s; }
.side__search:hover { border-color: var(--border); color: #fff; }
.side__search kbd, .qs kbd { margin-left: auto; padding: 2px 6px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); font: 600 .7rem var(--mono); }
.side__nav { gap: 2px; }
.side__nav a { padding: 9px 12px; font-size: .92rem; color: #c2c3ca; }
.side__nav a.is-active { background: var(--pink); color: #fff; }
.side__nav a.is-active svg { color: #fff; }
.side__label { margin: 22px 12px 8px; color: #7b7c85; font-size: .74rem; font-weight: 600; }
.side__servers { display: grid; gap: 2px; }
.side__srv > summary { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid transparent; border-radius: 10px; color: #e6e7eb; font-size: .92rem; font-weight: 500; cursor: pointer; list-style: none; }
.side__srv > summary::-webkit-details-marker { display: none; }
.side__srv > summary:hover { background: rgba(255,255,255,.04); }
.side__srv[open] > summary { border-color: rgba(236,95,156,.45); background: rgba(236,95,156,.06); }
.side__srv-name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.side__srv .dot { margin: 0; flex: none; }
.side__chev { display: flex; color: var(--muted); transition: transform .2s; }
.side__srv[open] .side__chev { transform: rotate(90deg); }
.side__sub { display: grid; gap: 1px; margin: 6px 0 8px 20px; padding-left: 10px; border-left: 1px solid var(--border); }
.side__sub a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: #a9aab2; font-size: .88rem; }
.side__sub a:hover { background: rgba(255,255,255,.04); color: #fff; }
.side__sub a.is-active { background: rgba(236,95,156,.14); color: #fff; }
.side__sub a.is-active svg { color: var(--pink); }
.side__add { display: block; padding: 9px 12px; color: var(--pink); font-size: .9rem; font-weight: 600; }
.side__foot { display: grid; gap: 2px; margin-top: auto; padding: 14px 0 0; border-top: 0; }
.side__foot a { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 8px; color: #a9aab2; font-size: .86rem; }
.side__foot a:hover { color: #fff; background: rgba(255,255,255,.04); }

/* top bar: menu buttons + breadcrumb + account */
.mbar { display: none !important; }
.tbar { display: flex; align-items: center; gap: 10px; max-width: 1240px; margin: 0 auto; padding: 16px 40px 0; }
.tbar__btn { display: grid; place-items: center; flex: none; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: #c2c3ca; cursor: pointer; transition: border-color .15s, color .15s; }
.tbar__btn:hover { border-color: var(--border); color: #fff; }
.tbar__menu { display: none; }
.tbar__menu span { display: block; width: 16px; height: 2px; margin: 2px 0; border-radius: 2px; background: currentColor; }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: .88rem; white-space: nowrap; overflow: hidden; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: #fff; }
.crumbs__sep { color: #55565e; }
.crumbs__here { color: #fff; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.tbar .umenu { margin-left: auto; }
.admin { max-width: 1240px; padding: 30px 40px 90px; }

/* collapsed sidebar */
.side-mini .app { grid-template-columns: 84px minmax(0, 1fr); }
.side-mini .side__brand { justify-content: center; padding: 8px; }
.side-mini .side__brand-text, .side-mini .side__nav a span, .side-mini .side__search span, .side-mini .side__search kbd,
.side-mini .side__label, .side-mini .side__srv-name, .side-mini .side__chev, .side-mini .side__sub, .side-mini .side__foot span, .side-mini .side__count, .side-mini .side__add { display: none; }
.side-mini .side__nav a, .side-mini .side__search, .side-mini .side__srv > summary, .side-mini .side__foot a { justify-content: center; padding-left: 0; padding-right: 0; }
.side-mini .side__srv > summary { position: relative; }
.side-mini .side__srv .dot { position: absolute; top: 7px; right: 14px; }

/* quick search */
.qs { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.qs[hidden] { display: none; }
.qs__box { width: min(560px, 100%); overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: #141418; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); animation: umenu-in .15s ease; }
.qs__input { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.qs__input input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; font: inherit; font-size: 1rem; outline: none; }
.qs__list { max-height: 50vh; overflow-y: auto; padding: 6px; }
.qs__group { padding: 10px 10px 4px; color: #7b7c85; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.qs__list a { display: block; padding: 9px 12px; border-radius: 9px; color: #d9dae0; font-size: .92rem; }
.qs__list a.is-sel { background: rgba(236,95,156,.16); color: #fff; }
.qs__none { padding: 18px 12px; color: var(--muted); text-align: center; }

/* home: stat cards, server rows, recent activity */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 36px; }
.kpi { padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.kpi__label { display: flex; align-items: center; gap: 10px; color: #d9dae0; font-size: .9rem; font-weight: 500; }
.kpi__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(236,95,156,.14); color: var(--pink); }
.kpi__icon--ok { background: rgba(111,211,154,.14); color: #6fd39a; }
.kpi__num { margin-top: 18px; color: #fff; font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; }
.kpi__num--ok { color: #6fd39a; }
.kpi__sub { margin-top: 4px; color: var(--muted); font-size: .86rem; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 24px; align-items: start; margin-bottom: 32px; }
.home-grid--single { grid-template-columns: 1fr; }
.section-head--tight { margin-top: 0; }
.section-head--row p { margin-top: 4px; }
.srow { position: relative; display: flex; align-items: center; gap: 16px; overflow: hidden; margin-bottom: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); isolation: isolate; transition: border-color .15s; }
.srow:hover { border-color: rgba(236,95,156,.4); }
.srow__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.srow::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(17,17,20,.95) 30%, rgba(17,17,20,.55)); }
.srow__icon { flex: none; width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.srow__icon--letter { display: grid; place-items: center; background: var(--pink); color: #fff; font-weight: 700; font-size: 1.15rem; }
.srow__body { flex: 1; min-width: 0; }
.srow__body h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: #fff; font-size: 1.02rem; }
.srow__body p { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; color: #c2c3ca; font-size: .86rem; }
.chip-status { display: inline-block; padding: 2px 9px; border-radius: 99px; background: rgba(255,255,255,.08); color: #b4b5bc; font-size: .72rem; font-weight: 700; }
.chip-status--online { background: rgba(111,211,154,.16); color: #8fe0b2; }
.chip-status--problem { background: rgba(240,138,138,.14); color: #f4a9a9; }
.chip-status--waiting { background: rgba(224,180,106,.14); color: #ecc98a; }
.chip-status--shared { background: rgba(236,95,156,.14); color: var(--pink); }
.activity { margin: 0; }
.activity h2 { margin-bottom: 4px; }
.activity__sub { margin-bottom: 18px; color: var(--muted); font-size: .86rem; }
.activity__empty { font-size: .9rem; }
.activity ul { display: grid; gap: 14px; }
.activity__item { display: flex; gap: 14px; }
.activity__dot { flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.06); position: relative; }
.activity__dot::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: #8d8e96; }
.activity__item--ban .activity__dot { background: rgba(240,138,138,.12); } .activity__item--ban .activity__dot::after { background: #f08a8a; }
.activity__item--kick .activity__dot { background: rgba(224,180,106,.12); } .activity__item--kick .activity__dot::after { background: #e0b46a; }
.activity__item--detection .activity__dot { background: rgba(236,95,156,.12); } .activity__item--detection .activity__dot::after { background: var(--pink); }
.activity__item p { color: #e6e7eb; font-size: .88rem; line-height: 1.4; }
.activity__item span { color: var(--muted); font-size: .78rem; }

/* redeem */
.grid-2--wide { grid-template-columns: 1fr 1fr; }
.key-input { font-family: var(--mono) !important; letter-spacing: .04em; text-transform: uppercase; }
.lic-list { display: grid; gap: 8px; }
.lic-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 10px; background: #0d0d10; }
.lic-list small { display: block; margin-top: 3px; color: var(--muted); font-size: .8rem; }

/* download wizard */
.dl { max-width: 980px; margin: 10px auto 0; }
.dl__intro h1 { font-size: 1.65rem; }
.dl__intro p { margin: 6px 0 30px; color: var(--muted); }
.dl__grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.dl__steps { display: grid; gap: 8px; }
.dl__steps button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1px solid transparent; border-radius: 12px; background: none; color: var(--muted); font: inherit; text-align: left; cursor: pointer; }
.dl__steps button b { display: block; color: #c2c3ca; font-size: .9rem; }
.dl__steps button.is-active { border-color: rgba(236,95,156,.5); background: rgba(236,95,156,.06); }
.dl__steps button.is-active b { color: var(--pink); }
.dl__num { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #17171b; color: #c2c3ca; font-weight: 700; font-size: .9rem; }
.dl__steps button.is-active .dl__num { background: var(--pink); color: #fff; }
.dl__steps button.is-done .dl__num { background: rgba(111,211,154,.16); color: #6fd39a; }
.dl__card { padding: 0; overflow: hidden; }
.dl__card section { padding: 26px 28px; }
.dl__head { display: flex; align-items: center; gap: 14px; margin: -26px -28px 22px; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.dl__head h2 { margin: 0; font-size: 1.2rem; }
.dl__head p { color: var(--muted); font-size: .85rem; }
.dl__head .dl__num { width: 30px; height: 30px; background: rgba(236,95,156,.14); color: var(--pink); }
.dl__facts { margin: 18px 0; }
.dl__notes { margin: 0 0 20px; padding: 14px 16px; border-radius: 10px; background: #0d0d10; color: #c2c3ca; font-size: .9rem; }
.dl__btn { padding: 14px; font-size: 1rem; }
.dl__card .steps-list { line-height: 2.1; }
.dl__nav { display: flex; justify-content: space-between; padding: 18px 28px; border-top: 1px solid var(--line); }
.dl__help { margin-top: 24px; padding: 22px; }
.dl__help h3 { margin-bottom: 6px; }
.dl__help p { margin-bottom: 12px; font-size: .9rem; }

@media (max-width: 1200px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .app, .side-mini .app { grid-template-columns: 1fr; }
  .side { top: 0; height: 100vh; margin: 0; border-radius: 0 16px 16px 0; }
  .tbar { position: sticky; top: 0; z-index: 40; padding: 12px 16px; background: rgba(8,8,10,.92); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .tbar__menu { display: grid; }
  .tbar__collapse { display: none; }
  .admin { padding: 24px 18px 80px; }
  .dl__grid { grid-template-columns: 1fr; }
  .grid-2--wide { grid-template-columns: 1fr; }
  .side-mini .side__brand-text, .side-mini .side__nav a span, .side-mini .side__search span, .side-mini .side__label, .side-mini .side__srv-name, .side-mini .side__chev, .side-mini .side__foot span { display: revert; }
}
@media (max-width: 640px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi { padding: 16px; }
  .kpi__num { font-size: 1.4rem; margin-top: 12px; }
  .srow { flex-wrap: wrap; }
  .srow .btn { width: 100%; }
  .crumbs { font-size: .82rem; }
}

.side__brand-text b { text-transform: none; letter-spacing: -.01em; }
.side__brand span.side__brand-text { color: inherit; font-size: inherit; font-weight: inherit; letter-spacing: 0; text-transform: none; }

/* =====================================================================
   Motion + buttons
   ===================================================================== */
@keyframes fz-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fz-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fz-pulse { 0% { box-shadow: 0 0 0 0 rgba(111,211,154,.55); } 70% { box-shadow: 0 0 0 7px rgba(111,211,154,0); } 100% { box-shadow: 0 0 0 0 rgba(111,211,154,0); } }
@keyframes fz-sheen { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(260%) skewX(-20deg); } }
@keyframes fz-spin { to { transform: rotate(360deg); } }
@keyframes fz-glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* page content slides in, one card after another (panel.js sets --i) */
.fx-in { opacity: 0; animation: fz-rise .55s cubic-bezier(.2,.75,.2,1) forwards; animation-delay: calc(var(--i, 0) * 55ms + 40ms); }
.notice { animation: fz-pop .35s cubic-bezier(.2,.75,.2,1); }
.notice.is-leaving { opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .4s; }

/* cards: lift + pink glow edge on hover */
.kpi, .srow, .box, .cfg, .stat, .server-card { position: relative; transition: transform .25s cubic-bezier(.2,.75,.2,1), border-color .25s, box-shadow .25s; }
.kpi::after, .stat::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(236,95,156,.7), transparent 40%, transparent 60%, rgba(236,95,156,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s; }
.kpi:hover, .stat:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(236,95,156,.45); }
.kpi:hover::after, .stat:hover::after { opacity: 1; }
.kpi__icon { transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.kpi:hover .kpi__icon { transform: scale(1.15) rotate(-8deg); }
.srow:hover { transform: translateX(4px); box-shadow: -4px 0 0 0 var(--pink), 0 16px 34px -24px rgba(236,95,156,.6); }
.srow__bg { transition: opacity .4s, transform 6s ease; }
.srow:hover .srow__bg { opacity: .32; transform: scale(1.06); }
.activity__item { transition: transform .2s; }
.activity__item:hover { transform: translateX(3px); }

/* live status dots breathe */
.dot--online, .chip-status--online::before { animation: fz-pulse 2s infinite; }
.chip-status--online { display: inline-flex; align-items: center; gap: 6px; }
.chip-status--online::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #6fd39a; }
.kpi__num--ok { animation: fz-glow 2.8s ease-in-out infinite; }

/* buttons */
.panel .btn { position: relative; overflow: hidden; isolation: isolate; transition: transform .15s, background-color .2s, border-color .2s, box-shadow .25s, color .2s; }
.panel .btn:active { transform: scale(.97); }
.panel .btn--primary { background: linear-gradient(135deg, #f173aa, #ec5f9c 45%, #d9488a); box-shadow: 0 6px 18px -8px rgba(236,95,156,.8), inset 0 1px 0 rgba(255,255,255,.25); }
.panel .btn--primary:hover { background: linear-gradient(135deg, #f58cba, #f06aa5 45%, #e05595); box-shadow: 0 12px 28px -10px rgba(236,95,156,.95), inset 0 1px 0 rgba(255,255,255,.3); transform: translateY(-1px); }
.panel .btn--primary::before, .panel .btn--discord::before { content: ""; position: absolute; top: 0; left: 0; z-index: -1; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: translateX(-120%) skewX(-20deg); }
.panel .btn--primary:hover::before, .panel .btn--discord:hover::before { animation: fz-sheen .75s ease; }
.panel .btn--outline:hover { border-color: rgba(236,95,156,.55); color: #fff; box-shadow: 0 0 0 3px rgba(236,95,156,.1); }
.panel .btn--danger:hover { box-shadow: 0 0 0 3px rgba(240,138,138,.12); }
.panel .btn svg { transition: transform .25s; }
.panel .btn:hover svg { transform: translateY(1px); }
/* ripple where you click */
.fx-ripple { position: absolute; z-index: -1; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: rgba(255,255,255,.45); pointer-events: none; animation: fx-ripple .6s ease-out forwards; }
@keyframes fx-ripple { to { transform: scale(30); opacity: 0; } }
/* loading state while a form sends */
.panel .btn.is-loading { color: transparent !important; pointer-events: none; }
.panel .btn.is-loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: fz-spin .7s linear infinite; }
.panel .btn--outline.is-loading::after { border-color: rgba(255,255,255,.2); border-top-color: var(--pink); }

/* sidebar */
.side__nav a, .side__sub a, .side__foot a { position: relative; transition: background-color .2s, color .2s, padding-left .2s; }
.side__nav a:not(.is-active):hover, .side__sub a:not(.is-active):hover { padding-left: 16px; }
.side__nav a svg, .side__sub a svg { transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.side__nav a:hover svg, .side__sub a:hover svg { transform: scale(1.15); }
.side__nav a.is-active { background: linear-gradient(135deg, #f173aa, #ec5f9c 50%, #d9488a); box-shadow: 0 8px 20px -10px rgba(236,95,156,.9); }
.side__sub { transform-origin: top; }
.side__srv[open] .side__sub { animation: fz-rise .3s ease; }
.side__brand { transition: border-color .3s, box-shadow .3s; }
.side__brand:hover { border-color: rgba(236,95,156,.55); box-shadow: 0 0 24px -6px rgba(236,95,156,.5); }
.side__brand img { transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.side__brand:hover img { transform: rotate(-8deg) scale(1.08); }
.app, .side { transition: grid-template-columns .3s ease; }

/* top bar + menus */
.tbar__btn:active { transform: scale(.94); }
.umenu__panel a { transition: background-color .15s, color .15s, padding-left .15s; }
.umenu__panel a:hover { padding-left: 16px; }
.umenu__avatar { box-shadow: 0 0 0 2px rgba(236,95,156,.25); transition: box-shadow .2s; }
.umenu > summary:hover .umenu__avatar { box-shadow: 0 0 0 4px rgba(236,95,156,.25); }

/* tabs and server menu underline slides */
.subnav a, .tabs a { transition: color .2s, border-color .25s; }

/* inputs glow when focused */
.field input:focus, .field select:focus, .field textarea:focus, .toolbar__search:focus { box-shadow: 0 0 0 3px rgba(236,95,156,.18), 0 0 20px -6px rgba(236,95,156,.5); }

/* toggles bounce */
.toggle__ui::after { transition: transform .3s cubic-bezier(.3,1.6,.5,1), width .2s; }
.toggle:active .toggle__ui::after { width: 20px; }
.toggle input:checked + .toggle__ui { box-shadow: 0 0 12px -2px rgba(236,95,156,.7); }

/* download steps */
.dl__steps button { transition: border-color .25s, background-color .25s, transform .2s; }
.dl__steps button:hover { transform: translateX(3px); }
.dl__card section:not([hidden]) { animation: fz-rise .35s ease; }
.dl__steps button.is-active .dl__num { box-shadow: 0 0 0 5px rgba(236,95,156,.18); }

@media (prefers-reduced-motion: reduce) {
  .fx-in, .notice, .side__srv[open] .side__sub, .dl__card section { animation: none !important; opacity: 1 !important; }
  .dot--online, .chip-status--online::before, .kpi__num--ok { animation: none !important; }
  .panel .btn::before, .fx-ripple { display: none !important; }
  .kpi:hover, .srow:hover, .stat:hover { transform: none; }
}

/* moving star background (stars.js) */
.fz-stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.panel .app, .panel .app__body, .panel--auth .admin, .panel .auth-bar { position: relative; z-index: 1; }
.panel::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(900px 500px at 85% -10%, rgba(236,95,156,.10), transparent 70%), radial-gradient(700px 500px at -10% 110%, rgba(150,52,168,.08), transparent 70%); }

/* ---- v4 tweaks ---- */
/* no pink outlines */
.srow:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -24px rgba(0,0,0,.9); border-color: var(--border); }
.side__srv[open] > summary { border-color: transparent; background: rgba(255,255,255,.05); }

/* calmer, smoother page entrance */
.fx-in { animation: fz-rise-soft .9s cubic-bezier(.22,.61,.36,1) forwards; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
@keyframes fz-rise-soft { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.kpi, .srow, .stat { will-change: transform; }

/* recent activity: fixed height, scrolls inside */
.activity { display: flex; flex-direction: column; max-height: 520px; }
.activity__list { flex: 1; min-height: 0; overflow-y: auto; margin-right: -10px; padding-right: 10px; scrollbar-width: thin; scrollbar-color: #2a2a31 transparent; }
.activity__list::-webkit-scrollbar { width: 6px; }
.activity__list::-webkit-scrollbar-thumb { background: #2a2a31; border-radius: 6px; }
.activity__dot { display: grid; place-items: center; color: #8d8e96; }
.activity__dot::after { display: none; }
.activity__item--ban .activity__dot { color: #f08a8a; }
.activity__item--kick .activity__dot { color: #e0b46a; }
.activity__item--detection .activity__dot { color: var(--pink); }
.activity__item--info .activity__dot { background: rgba(120,160,255,.12); color: #a9c1ff; }

/* account at the bottom of the sidebar */
.sacct { position: relative; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.sacct > summary { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; cursor: pointer; list-style: none; transition: background-color .15s; }
.sacct > summary::-webkit-details-marker { display: none; }
.sacct > summary:hover, .sacct[open] > summary { background: rgba(255,255,255,.05); }
.sacct__avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
img.sacct__avatar { box-shadow: 0 0 0 2px rgba(236,95,156,.35); }
.sacct__avatar--letter { display: grid; place-items: center; background: var(--pink); color: #fff; font-weight: 700; }
img.sacct__avatar + .sacct__avatar--letter { display: none; }
.sacct__text { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.sacct__text b { overflow: hidden; color: #fff; font-size: .9rem; white-space: nowrap; text-overflow: ellipsis; }
.sacct__text small { overflow: hidden; color: var(--muted); font-size: .75rem; white-space: nowrap; text-overflow: ellipsis; }
.sacct__chev { flex: none; color: var(--muted); }
.sacct__panel { position: fixed; top: auto; right: auto; width: 236px; z-index: 80; }
.side-mini .sacct__text, .side-mini .sacct__chev { display: none; }
.side-mini .sacct > summary { justify-content: center; padding: 6px 0; }

/* server page: single edit card */
.grid-2--one { grid-template-columns: minmax(0, 640px); }

/* "link your Discord" page */
.connect { text-align: center; margin-top: 72px; }
.connect__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 20px; border-radius: 20px; background: #5865f2; color: #fff; box-shadow: 0 16px 40px -14px rgba(88,101,242,.9); }
.connect h1 { margin-bottom: 10px; }
.connect .muted { margin-bottom: 24px; line-height: 1.6; }
.connect__btn { padding: 13px; font-size: 1rem; }
.connect .hint { margin-top: 18px; }

.admin .facts span { color: inherit; font-size: inherit; font-weight: inherit; letter-spacing: 0; text-transform: none; }
.admin .facts span.state--active { color: #8fd6a8; } .admin .facts span.state--expired { color: #e0b46a; } .admin .facts span.state--revoked { color: #f08a8a; } .admin .facts span.state--unused { color: var(--muted); }

/* ---- modal (admins + confirm) ---- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background-color .2s, backdrop-filter .2s; }
.modal[hidden] { display: none; }
.modal.is-open { background: rgba(0,0,0,.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal__box { position: relative; display: flex; flex-direction: column; width: min(480px, 100%); max-height: calc(100vh - 40px); padding: 26px 26px 22px; border: 1px solid var(--border); border-radius: 18px; background: #121216; box-shadow: 0 40px 90px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(236,95,156,.06); opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .2s, transform .25s cubic-bezier(.2,.8,.2,1); }
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal__box--sm { width: min(400px, 100%); align-items: center; text-align: center; }
.modal__box h2 { margin: 0 0 6px; font-size: 1.25rem; }
.modal__sub { margin-bottom: 18px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.modal__x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 1.3rem; cursor: pointer; }
.modal__x:hover { background: rgba(255,255,255,.06); color: #fff; }
.modal__label { display: block; margin: 4px 0 8px; color: #d9dae0; font-size: .86rem; font-weight: 600; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.modal__box--sm .modal__foot { justify-content: center; width: 100%; }
.modal__box--sm .modal__foot .btn { flex: 1; }
.modal__warn { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 50%; background: rgba(240,138,138,.12); color: #f08a8a; box-shadow: 0 0 0 8px rgba(240,138,138,.05); }
.panel .btn--danger-solid { background: linear-gradient(135deg, #f28585, #e05a5a); color: #fff; box-shadow: 0 8px 20px -10px rgba(240,97,109,.9); }
.panel .btn--danger-solid:hover { background: linear-gradient(135deg, #f59a9a, #e86a6a); }
#admForm { overflow: hidden; }
#admForm .permlist { overflow-y: auto; max-height: 340px; margin: 0 -6px; padding: 0 6px; }

/* user picker */
.upick { position: relative; margin-bottom: 16px; }
.upick input { width: 100%; padding: 11px 14px; border: 1px solid var(--pink); border-radius: 10px; background: #0d0d10; color: #fff; font: inherit; font-size: .92rem; box-shadow: 0 0 0 3px rgba(236,95,156,.12); }
.upick input:focus { outline: none; }
.upick input.is-bad { border-color: #f08a8a; box-shadow: 0 0 0 3px rgba(240,138,138,.15); }
.upick__list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; max-height: 240px; overflow-y: auto; padding: 6px; border: 1px solid var(--border); border-radius: 12px; background: #17171b; box-shadow: 0 20px 40px -16px rgba(0,0,0,.9); }
.upick__list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; cursor: pointer; }
.upick__list li:hover { background: rgba(236,95,156,.12); }
.upick__none { color: var(--muted); font-size: .86rem; cursor: default !important; }
.upick__none:hover { background: none !important; }
.upick__txt { display: grid; line-height: 1.3; }
.upick__txt b { font-size: .9rem; }
.upick__txt small { color: var(--muted); font-size: .76rem; }
.upick__chosen { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #0d0d10; }
.upick__chosen .adm__who { min-width: 0; }

/* permission checklist */
.permrow { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 10px; cursor: pointer; transition: background-color .15s; }
.permrow:hover { background: rgba(255,255,255,.03); }
.permrow input { position: absolute; opacity: 0; pointer-events: none; }
.permrow__box { flex: none; position: relative; width: 18px; height: 18px; border: 1.5px solid #3a3a42; border-radius: 5px; background: #0d0d10; transition: background-color .15s, border-color .15s; }
.permrow input:checked + .permrow__box, .permrow.is-implied .permrow__box { border-color: var(--pink); background: var(--pink); }
.permrow input:checked + .permrow__box::after, .permrow.is-implied .permrow__box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.permrow.is-implied { opacity: .55; }
.permrow input:focus-visible + .permrow__box { box-shadow: 0 0 0 3px rgba(236,95,156,.3); }
.permrow__icon { flex: none; display: grid; place-items: center; width: 22px; color: #c2c3ca; }
.permrow--all .permrow__icon { color: var(--pink); }
.permrow__text { display: grid; line-height: 1.3; }
.permrow__text b { font-size: .9rem; font-weight: 600; }
.permrow__text small { color: var(--muted); font-size: .76rem; }
.permrow__more { margin: 8px 8px 4px; }
.permrow__more > summary { color: var(--pink); font-size: .84rem; font-weight: 600; cursor: pointer; }
.permrow__more .field { margin-top: 10px; }
.permrow__dets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 10px; font-size: .84rem; }

/* admins table */
.toolbar--flush { margin: 0; }
.toolbar__search--grow { max-width: none; }
.toolbar__select { flex: none; min-width: 210px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; background: #111114; color: #fff; font: inherit; font-size: .92rem; cursor: pointer; }
.table-wrap--inner { border: 1px solid var(--line); background: #0d0d10; overflow: visible; }
.adm td { vertical-align: middle; white-space: nowrap; }
.adm__who { display: flex; align-items: center; gap: 12px; }
.adm__who b { display: flex; align-items: center; gap: 8px; color: #fff; font-size: .92rem; }
.adm__who span:not(.owner-tag):not(.adm__av) { display: block; color: var(--muted); font-size: .8rem; }
.adm__av { flex: none; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
img.adm__av + .adm__av--letter { display: none; }
.adm__av--letter { display: grid; place-items: center; background: #1d1d22; color: #d9dae0; font-size: .8rem; font-weight: 700; }
.owner-tag { padding: 2px 8px; border-radius: 6px; background: rgba(236,95,156,.85); color: #fff; font-size: .7rem; font-weight: 700; }
.idtag { display: inline-block; padding: 4px 9px; border-radius: 7px; background: #17171b; color: #d9dae0; font: 500 .82rem var(--mono); }
.pbadges { display: flex; flex-wrap: wrap; gap: 5px; max-width: 360px; white-space: normal; }
.pbadge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 7px; background: rgba(120,160,255,.12); color: #a9c1ff; font-size: .74rem; font-weight: 600; }
.pbadge--all { background: rgba(236,95,156,.85); color: #fff; }
.adm__when span { display: block; color: #e6e7eb; font-size: .86rem; }
.adm__when small { color: var(--muted); font-size: .78rem; }
.adm__none { padding: 20px; text-align: center; }
.rmenu { position: relative; display: inline-block; }
.rmenu__btn { width: 34px; height: 30px; border: 1px solid transparent; border-radius: 8px; background: none; color: #d9dae0; font-size: 1.1rem; font-weight: 700; letter-spacing: -1px; cursor: pointer; }
.rmenu__btn:hover, .rmenu.is-open .rmenu__btn { border-color: var(--border); background: rgba(255,255,255,.04); }
.rmenu__pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: none; width: 210px; padding: 6px; border: 1px solid var(--border); border-radius: 12px; background: #17171b; box-shadow: 0 20px 40px -16px rgba(0,0,0,.9); text-align: left; }
.rmenu.is-open .rmenu__pop { display: block; animation: umenu-in .15s ease; }
.rmenu__pop p { padding: 6px 10px 8px; color: var(--muted); font-size: .76rem; font-weight: 600; }
.rmenu__pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: #e6e7eb; font: inherit; font-size: .88rem; cursor: pointer; }
.rmenu__pop button:hover { background: rgba(255,255,255,.05); }
.rmenu__pop form { margin: 0; }
.rmenu__pop .rmenu__danger { color: #f08a8a; }
.rmenu__pop .rmenu__danger:hover { background: rgba(240,138,138,.08); }
@media (max-width: 900px) { .table-wrap--inner { overflow-x: auto; } .toolbar__select { min-width: 0; flex: 1 1 100%; } }

/* ---------- Vehicles & peds ---------- */
.mdl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; margin-bottom: 14px; }
.mdl-bar .toolbar__search { flex: 1 1 240px; }
.seg em { margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: rgba(255,255,255,.07); font-style: normal; font-size: .75rem; color: var(--muted); }
.seg a.is-active em { background: rgba(236,95,156,.18); color: #ff9cc7; }
.toggle--sm { padding: 9px 12px; gap: 10px; border-radius: 10px; background: #111114; }
.toggle--sm .toggle__text { font-size: .86rem; white-space: nowrap; }
.mdl-count { margin: 0 0 12px; font-size: .86rem; }
.mdl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.mdl { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, #17171b, #121215); overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; animation: mdlIn .35s ease both; }
.mdl:hover { border-color: var(--border); transform: translateY(-2px); box-shadow: 0 10px 30px -14px rgba(0,0,0,.8); }
@keyframes mdlIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mdl__img { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, #222228, #141417 70%); color: #3a3a44; overflow: hidden; }
.mdl__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; z-index: 1; transition: transform .3s; }
.mdl:hover .mdl__img img { transform: scale(1.05); }
.mdl__ph { position: relative; z-index: 0; }
.mdl__pill { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 3px 9px; border-radius: 99px; background: rgba(239,68,68,.9); color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .02em; opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s; }
.mdl.is-blocked .mdl__pill { opacity: 1; transform: none; }
.mdl.is-blocked { border-color: rgba(239,68,68,.45); background: linear-gradient(180deg, #1d1416, #141113); }
.mdl.is-blocked .mdl__img img { filter: grayscale(.6) brightness(.8); }
.mdl__body { display: flex; flex-direction: column; gap: 5px; padding: 11px 12px 8px; min-width: 0; }
.mdl__body b { font-size: .93rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdl__body small { color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdl__code { align-self: flex-start; max-width: 100%; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; background: #0d0d10; color: #cfd0d6; font: 500 .78rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: border-color .15s, color .15s; }
.mdl__code:hover { border-color: var(--pink); color: #fff; }
.mdl__code.is-copied { border-color: #22c55e; color: #4ade80; }
.mdl__code.is-copied::after { content: " copied"; }
.mdl__btn { margin: 4px 12px 12px; padding: 9px; border: 1px solid rgba(239,68,68,.4); border-radius: 9px; background: rgba(239,68,68,.1); color: #fca5a5; font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.mdl__btn:hover { background: rgba(239,68,68,.2); color: #fff; }
.mdl.is-blocked .mdl__btn { border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.1); color: #86efac; }
.mdl.is-blocked .mdl__btn:hover { background: rgba(34,197,94,.2); color: #fff; }
.mdl__btn.is-busy { opacity: .6; cursor: wait; }
.mdl.is-flash { animation: mdlFlash .6s ease; }
@keyframes mdlFlash { 0% { box-shadow: 0 0 0 0 rgba(236,95,156,.6); } 100% { box-shadow: 0 0 0 12px rgba(236,95,156,0); } }
.mdl-empty { grid-column: 1 / -1; }
.mdl-more { display: flex; justify-content: center; margin: 18px 0 6px; }
@media (max-width: 600px) { .mdl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .toggle--sm { flex: 1 1 100%; } }

/* ---------- Bans v2 ---------- */
.bdclip[hidden], #bdUnban[hidden], .bddet[hidden] { display: none !important; }
.bstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.bstat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, #16161a, #121215); animation: mdlIn .4s ease both; }
.bstat:nth-child(2) { animation-delay: .05s; } .bstat:nth-child(3) { animation-delay: .1s; } .bstat:nth-child(4) { animation-delay: .15s; }
.bstat__ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 11px; }
.bstat b { display: block; font-size: 1.45rem; font-weight: 700; line-height: 1.1; }
.bstat small { color: var(--muted); font-size: .82rem; }
.bstat--red .bstat__ic { background: rgba(239,68,68,.12); color: #f87171; }
.bstat--pink .bstat__ic { background: rgba(236,95,156,.13); color: #ff8fc0; }
.bstat--blue .bstat__ic { background: rgba(96,165,250,.12); color: #8ab8ff; }
.bstat--green .bstat__ic { background: rgba(34,197,94,.12); color: #6ee7a0; }
.bbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px; margin-bottom: 14px; }
.bbar__search { position: relative; flex: 1 1 260px; display: flex; align-items: center; }
.bbar__search svg { position: absolute; left: 13px; color: var(--muted); pointer-events: none; }
.bbar__search input { width: 100%; padding: 11px 14px 11px 40px; border: 1px solid var(--border); border-radius: 10px; background: #111114; color: #fff; font: inherit; font-size: .92rem; }
.bbar__search input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(236,95,156,.15); }
.bbar__clear { font-size: .88rem; }
.btable-wrap { border-radius: 14px; }
.btable { white-space: normal; }
.btable th { white-space: nowrap; }
.btable td { vertical-align: middle; }
.brow { cursor: pointer; transition: background-color .15s; }
.brow:hover td { background: rgba(255,255,255,.025); }
.brow:focus-visible { outline: 2px solid rgba(236,95,156,.5); outline-offset: -2px; }
.bplayer { display: flex; align-items: center; gap: 11px; min-width: 0; }
.bav { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, rgba(236,95,156,.35), rgba(236,95,156,.1)); color: #ffd1e5; font-weight: 700; font-size: .95rem; }
.bav--lg { width: 48px; height: 48px; border-radius: 13px; font-size: 1.2rem; }
.brow--expired .bav, .brow--unbanned .bav { background: #1e1e23; color: var(--muted); }
.bplayer__txt { display: flex; flex-direction: column; min-width: 0; }
.bplayer__txt b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.bid { font: 500 .76rem var(--mono); color: var(--muted); white-space: nowrap; }
.bid--btn { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.bid--btn:hover { color: #fff; }
.bid--btn.is-copied::after { content: "  copied"; color: #4ade80; }
.breason { max-width: 320px; }
.breason b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breason small { display: block; margin-top: 2px; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bsrv { color: #d4d5db; font-size: .9rem; }
.bwhen span { display: block; font-size: .9rem; }
.bwhen small { display: block; color: var(--muted); font-size: .76rem; max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bchip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.06); color: #c9cad1; font-size: .74rem; font-weight: 600; white-space: nowrap; }
.bchip--pink { background: rgba(236,95,156,.14); color: #ff9cc7; }
.bchip--amber { background: rgba(245,158,11,.13); color: #fbbf24; }
.bchip--red { background: rgba(239,68,68,.14); color: #fca5a5; }
.bchip--green { background: rgba(34,197,94,.13); color: #86efac; }
.bstate { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 9px; border-radius: 99px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.bstate i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.bstate--active { background: rgba(239,68,68,.12); color: #f87171; }
.bstate--active i { box-shadow: 0 0 0 0 rgba(248,113,113,.6); animation: bpulse 2s infinite; }
.bstate--expired { background: rgba(255,255,255,.06); color: #a1a2aa; }
.bstate--unbanned { background: rgba(34,197,94,.11); color: #6ee7a0; }
@keyframes bpulse { 0% { box-shadow: 0 0 0 0 rgba(248,113,113,.55); } 70% { box-shadow: 0 0 0 6px rgba(248,113,113,0); } 100% { box-shadow: 0 0 0 0 rgba(248,113,113,0); } }
.bacts { white-space: nowrap; text-align: right; }
.bacts > * { vertical-align: middle; }
.bacts form { display: inline; margin: 0; }
.bicon { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-right: 4px; border: 1px solid var(--line); border-radius: 9px; background: #141418; color: #c9cad1; cursor: pointer; transition: border-color .15s, color .15s, background-color .15s; }
.bicon:hover { border-color: var(--pink); color: #fff; background: rgba(236,95,156,.1); }
.bempty { padding: 48px 20px; text-align: center; }
.bempty__ic { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 12px; border-radius: 16px; background: rgba(236,95,156,.1); color: #ff8fc0; }
.bmore { margin-top: 10px; font-size: .85rem; text-align: center; }

/* drawer */
.bdrawer { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,0); transition: background-color .25s; }
.bdrawer[hidden] { display: none; }
.bdrawer.is-open { background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.bdrawer__panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(460px, 100%); border-left: 1px solid var(--border); background: #111114; box-shadow: -30px 0 80px -30px rgba(0,0,0,.9); transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.bdrawer.is-open .bdrawer__panel { transform: none; }
.bdrawer__head { position: relative; display: flex; align-items: center; gap: 14px; padding: 22px 56px 18px 22px; border-bottom: 1px solid var(--line); }
.bdrawer__title { min-width: 0; }
.bdrawer__title h2 { margin: 0 0 3px; font-size: 1.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bdrawer__body { flex: 1; overflow-y: auto; padding: 18px 22px 24px; }
.bdrawer__state { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: .86rem; }
.bdsec { margin-bottom: 20px; }
.bdsec h3 { margin: 0 0 10px; color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bdreason { margin: 0; font-size: 1.05rem; font-weight: 600; line-height: 1.45; }
.bddet { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--pink); border-radius: 10px; background: #15151a; }
.bddet span { display: block; margin-bottom: 4px; color: var(--muted); font-size: .74rem; font-weight: 600; }
.bddet p { margin: 0; color: #dcdde2; font-size: .88rem; line-height: 1.5; word-break: break-word; }
.bdclip { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding: 14px; border: 1px solid rgba(236,95,156,.3); border-radius: 12px; background: linear-gradient(135deg, rgba(236,95,156,.14), rgba(236,95,156,.03)); color: #fff; transition: border-color .15s, transform .15s; }
.bdclip:hover { border-color: var(--pink); transform: translateY(-1px); }
.bdclip__play { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 20px -4px rgba(236,95,156,.8); }
.bdclip b { display: block; font-size: .93rem; } .bdclip small { color: var(--muted); font-size: .8rem; }
.bdgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--line); overflow: hidden; }
.bdgrid div { padding: 11px 13px; background: #141418; min-width: 0; }
.bdgrid dt { color: var(--muted); font-size: .74rem; }
.bdgrid dd { margin: 3px 0 0; font-size: .88rem; word-break: break-word; }
.bdrawer__foot { display: flex; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); background: #0f0f12; }
.bdrawer__foot > .btn, .bdrawer__foot form { flex: 1; }
.bdrawer__foot form .btn { width: 100%; }
.bdrawer__foot .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* identifier chips */
.idchips { display: flex; flex-wrap: wrap; gap: 7px; }
span.idchip { display: inline-flex; align-items: center; gap: 0; padding: 0; cursor: default; max-width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #141418; overflow: hidden; font-size: .78rem; }
span.idchip em { flex: none; padding: 5px 8px; background: rgba(255,255,255,.05); color: var(--muted); font-style: normal; font-weight: 600; }
span.idchip button { min-width: 0; padding: 5px 9px; border: 0; background: none; color: #dcdde2; font: 500 .78rem var(--mono); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
span.idchip button:hover { color: #fff; }
span.idchip button.is-copied { color: #4ade80; }
span.idchip a { padding: 5px 8px 5px 0; color: var(--muted); }
span.idchip a:hover { color: var(--pink); }

/* player info */
.modal__box.pinfo { width: min(620px, 100%); padding: 0; overflow: hidden; }
.pinfo__head { display: flex; align-items: center; gap: 14px; padding: 22px 56px 16px 22px; border-bottom: 1px solid var(--line); }
.pinfo__head h2 { margin: 0; font-size: 1.2rem; }
.pinfo__head p { margin: 2px 0 0; font-size: .84rem; }
.pinfo__av { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 13px; background: linear-gradient(135deg, rgba(236,95,156,.4), rgba(236,95,156,.1)); color: #ffd1e5; font-weight: 700; font-size: 1.2rem; }
.pinfo__scroll { overflow-y: auto; padding: 18px 22px 22px; }
.pinfo__load { display: flex; justify-content: center; gap: 6px; padding: 40px 0; }
.pinfo__load span { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); animation: pdot 1s infinite ease-in-out; }
.pinfo__load span:nth-child(2) { animation-delay: .15s; } .pinfo__load span:nth-child(3) { animation-delay: .3s; }
@keyframes pdot { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: none; } }
.verdict { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid; animation: mdlIn .35s ease both; }
.verdict b { display: block; font-size: .98rem; } .verdict small { color: #c3c4cb; font-size: .82rem; }
.verdict__ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; }
.verdict--ok { border-color: rgba(34,197,94,.3); background: rgba(34,197,94,.07); } .verdict--ok .verdict__ic { background: rgba(34,197,94,.18); color: #4ade80; }
.verdict--warn { border-color: rgba(245,158,11,.3); background: rgba(245,158,11,.07); } .verdict--warn .verdict__ic { background: rgba(245,158,11,.18); color: #fbbf24; }
.verdict--bad { border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.08); } .verdict--bad .verdict__ic { background: rgba(239,68,68,.2); color: #f87171; }
.pinfo__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 4px; }
.pinfo__stats div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #141418; }
.pinfo__stats b { display: block; font-size: 1.2rem; } .pinfo__stats small { color: var(--muted); font-size: .74rem; }
.pinfo__h { display: flex; gap: 8px; margin: 20px 0 10px; color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pinfo__empty { margin: 0; padding: 14px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: .88rem; text-align: center; }
.pflags { display: grid; gap: 8px; }
.pflag { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border: 1px solid; border-radius: 10px; }
.pflag b { font-size: .9rem; } .pflag span { color: #dcdde2; font-size: .86rem; } .pflag small { color: var(--muted); font-size: .76rem; }
.pflag--cheater, .ftag.pflag--cheater, .flagcat.pflag--cheater b { border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.07); color: #fca5a5; }
.pflag--community, .ftag.pflag--community, .flagcat.pflag--community b { border-color: rgba(168,85,247,.35); background: rgba(168,85,247,.08); color: #d8b4fe; }
.pflag--seller, .ftag.pflag--seller, .flagcat.pflag--seller b { border-color: rgba(236,95,156,.4); background: rgba(236,95,156,.08); color: #ff9cc7; }
.pflag--evader, .ftag.pflag--evader, .flagcat.pflag--evader b { border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.07); color: #fbbf24; }
.pflag--other, .ftag.pflag--other, .flagcat.pflag--other b { border-color: var(--line); background: rgba(255,255,255,.04); color: #d4d5db; }
.pflag b { color: inherit; }
.phist { position: relative; display: grid; gap: 4px; }
.phist__row { position: relative; display: flex; gap: 12px; padding: 10px 12px 10px 4px; border-radius: 10px; }
.phist__row:hover { background: rgba(255,255,255,.025); }
.phist__dot { flex: none; width: 10px; height: 10px; margin: 6px 0 0 6px; border-radius: 50%; background: #3a3a44; box-shadow: 0 0 0 4px #121216; }
.phist__row:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 22px; bottom: -8px; width: 1px; background: var(--line); }
.phist__row.is-yours .phist__dot { background: var(--pink); }
.phist__main { min-width: 0; flex: 1; }
.phist__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.phist__top b { font-size: .92rem; font-weight: 600; }
.phist__det { margin: 3px 0 0; color: #b9bac2; font-size: .82rem; }
.phist__main small { display: block; margin-top: 3px; color: var(--muted); font-size: .78rem; }
.phist__match { margin-top: 4px; color: #8b8c95; font-size: .74rem; }
.mono { font-family: var(--mono); }
.pinfo-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px; }
.pacts { display: inline-flex; gap: 6px; align-items: center; }
.players th:nth-child(8) { width: 160px; }

/* staff: flagged players */
.flags-grid { margin-bottom: 14px; }
.flagcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 14px; }
.flagcat { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; color: #dcdde2; font-size: .86rem; transition: border-color .15s; }
.flagcat b { display: grid; place-items: center; min-width: 34px; height: 30px; padding: 0 6px; border: 1px solid; border-radius: 8px; font-size: .9rem; }
.flagcat:hover, .flagcat.is-active { border-color: var(--pink); }
.ftag { display: inline-block; padding: 3px 10px; border: 1px solid; border-radius: 99px; font-size: .76rem; font-weight: 600; white-space: nowrap; }

@media (max-width: 900px) {
  .bstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btable th:nth-child(3), .btable td:nth-child(3), .btable th:nth-child(5), .btable td:nth-child(5) { display: none; }
}
@media (max-width: 600px) {
  .btable th:nth-child(2), .btable td:nth-child(2), .btable th:nth-child(6), .btable td:nth-child(6) { display: none; }
  .pinfo__stats { grid-template-columns: repeat(2, 1fr); }
  .bdgrid { grid-template-columns: 1fr; }
  .bicon[title^="Watch"] { display: none; }
}

/* ---------- Bans: fit the page (no sideways scroll) ---------- */
.bddet { border-left: 1px solid var(--line); }
.btable-wrap { overflow-x: visible; }
.btable { table-layout: fixed; width: 100%; }
.btable th, .btable td { padding: 13px 14px; }
.btable td { overflow: hidden; }
.bc-player { width: 22%; } .bc-reason { width: auto; } .bc-server { width: 12%; } .bc-acct { width: 14%; }
.bc-when { width: 11%; } .bc-len { width: 10%; } .bc-state { width: 10%; } .bc-acts { width: 178px; }
.bcut { white-space: nowrap; text-overflow: ellipsis; }
.bcut .bsrv { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btable .bplayer__txt b { max-width: 100%; }
.btable .breason { max-width: none; }
.btable .bwhen small { max-width: 100%; }
.btable .bacts { overflow: visible; }
.bicon { margin-right: 2px; }
@media (max-width: 1250px) {
  .btable col.bc-server, .btable col.bc-len { width: 0; }
  .btable th:nth-child(3), .btable td:nth-child(3), .btable th:nth-child(5), .btable td:nth-child(5) { display: none; }
  .bc-player { width: 30%; } .bc-when { width: 16%; } .bc-state { width: 15%; }
}
@media (max-width: 1250px) {
  .btable--owner th:nth-child(5), .btable--owner td:nth-child(5) { display: table-cell; }
  .btable--owner th:nth-child(6), .btable--owner td:nth-child(6) { display: none; }
}
@media (max-width: 600px) {
  .bc-acts { width: 92px; } .bc-player { width: auto; } .bc-when { width: 34%; }
  .btable .bopen { display: none; }
}

/* ---------- Live map ---------- */
.mapcount { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; background: #131317; color: #c9cad1; font-size: .86rem; font-weight: 600; white-space: nowrap; }
.mapcount i { width: 8px; height: 8px; border-radius: 50%; background: #5a5b63; }
.mapcount.is-live i { background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: livepulse 2s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.55); } 70% { box-shadow: 0 0 0 7px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.maplayout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; }
.mapwrap { position: relative; padding: 0; overflow: hidden; }
.lmap { height: calc(100vh - 270px); min-height: 480px; background: #0e0f14; }
.leaflet-container { font-family: inherit; background: #0e0f14; }
.mapoff { position: absolute; inset: 0; z-index: 500; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: rgba(10,10,13,.6); backdrop-filter: blur(2px); pointer-events: none; }
.mapoff[hidden] { display: none; }
.mapoff span { color: var(--muted); font-size: .88rem; }
.maptools { position: absolute; top: 12px; right: 12px; z-index: 600; display: flex; flex-direction: column; gap: 6px; }
.maptools button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 10px; background: rgba(20,20,24,.92); color: #c9cad1; cursor: pointer; }
.maptools button:hover, .maptools button.is-on { color: #fff; border-color: rgba(236,95,156,.6); }
.leaflet-bar { border: 1px solid var(--border) !important; border-radius: 10px !important; overflow: hidden; box-shadow: none !important; }
.leaflet-bar a { width: 34px !important; height: 34px !important; line-height: 34px !important; background: rgba(20,20,24,.92) !important; color: #e6e7eb !important; border-bottom-color: var(--line) !important; }
.leaflet-bar a:hover { background: #1d1d22 !important; color: #fff !important; }
.lmap:not(.is-zooming) .pm { transition: transform 1.9s linear; }
.pm { position: relative; }
.pm__dot { position: absolute; inset: 3px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--pink); color: #fff; box-shadow: 0 0 0 4px rgba(236,95,156,.25), 0 2px 8px rgba(0,0,0,.6); }
.pm__dir { position: absolute; inset: -7px; transition: transform .6s; pointer-events: none; }
.pm__dir::before { content: ""; position: absolute; left: 50%; top: 0; margin-left: -5px; border: 5px solid transparent; border-top: 0; border-bottom: 7px solid var(--pink); }
.pm--veh .pm__dot { inset: 0; border-radius: 7px; }
.pm--staff .pm__dot { background: #3b82f6; box-shadow: 0 0 0 4px rgba(59,130,246,.25), 0 2px 8px rgba(0,0,0,.6); } .pm--staff .pm__dir::before { border-bottom-color: #3b82f6; }
.pm--dead .pm__dot { background: #55565e; box-shadow: none; } .pm--dead .pm__dir { display: none; }
.pm__name { position: absolute; top: 25px; left: 50%; transform: translateX(-50%); padding: 2px 7px; border-radius: 6px; background: rgba(10,10,13,.85); color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; pointer-events: none; }
.pm__name em { color: #ff9cc7; font-style: normal; }
.hide-names .pm__name { display: none; }
.pm:hover .pm__name { display: block; }
.mpop-wrap .leaflet-popup-content-wrapper { border: 1px solid var(--border); border-radius: 12px; background: #16161b; color: #e6e7eb; box-shadow: 0 20px 50px -20px rgba(0,0,0,.9); }
.mpop-wrap .leaflet-popup-tip { background: #16161b; }
.mpop-wrap .leaflet-popup-content { margin: 12px 14px; }
.mpop { display: flex; flex-direction: column; gap: 3px; min-width: 210px; }
.mpop b { font-size: .95rem; } .mpop span { color: #c3c4cb; font-size: .8rem; } .mpop small { color: var(--muted); font: 500 .74rem var(--mono); }
.mpop__btns { display: flex; gap: 6px; margin-top: 8px; }
.mpop__btns .btn { color: inherit; }
.mpop__btns .btn--primary { color: #fff; }
.maplist { display: flex; flex-direction: column; gap: 10px; padding: 12px; max-height: calc(100vh - 270px); min-height: 480px; }
.maplist__items { flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.maplist__none { padding: 20px 6px; text-align: center; font-size: .88rem; }
.mrow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 1px solid transparent; border-radius: 10px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color .15s, border-color .15s; }
.mrow:hover { background: rgba(255,255,255,.04); }
.mrow.is-follow { border-color: rgba(236,95,156,.5); background: rgba(236,95,156,.08); }
.mrow.is-nopos { opacity: .55; }
.mrow__av { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: rgba(236,95,156,.18); color: #ffc2dc; font-weight: 700; font-size: .85rem; }
.mrow__av.is-staff { background: rgba(59,130,246,.2); color: #a9c8ff; }
.mrow__t { min-width: 0; } .mrow__t b { display: block; font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mrow__t small { color: var(--muted); font-size: .76rem; }
@media (max-width: 1000px) { .maplayout { grid-template-columns: 1fr; } .maplist { max-height: 360px; min-height: 0; } .lmap { height: 62vh; min-height: 360px; } }

/* ---------- Multi screen ---------- */
.mw-tools { display: flex; align-items: center; gap: 10px; }
.mw-note { margin: -4px 0 12px; font-size: .86rem; }
.mw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mw-grid[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mw-grid[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mw { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: #121215; overflow: hidden; opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .35s, transform .35s cubic-bezier(.2,.8,.2,1), border-color .2s, box-shadow .2s; }
.mw.is-in { opacity: 1; transform: none; }
.mw.is-out { opacity: 0; transform: scale(.96); }
.mw:hover { border-color: var(--border); }
.mw.is-live { border-color: rgba(236,95,156,.28); }
.mw--ph { border-style: dashed; background: transparent; }
.mw__screen { position: relative; aspect-ratio: 16 / 9; background: #08080a; cursor: zoom-in; overflow: hidden; }
.mw__screen video, .mw__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.mw__screen video[hidden], .mw__screen img[hidden], .mw__wait[hidden] { display: none; }
.mw__wait { position: absolute; inset: 0; display: grid; place-items: center; }
.mw__live { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; background: rgba(0,0,0,.65); color: #d4d5db; font-size: .72rem; font-weight: 600; }
.mw__live i { width: 6px; height: 6px; border-radius: 50%; background: #6b6c74; }
.mw.is-live .mw__live { background: rgba(239,68,68,.85); color: #fff; } .mw.is-live .mw__live i { background: #fff; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.mw__x { position: absolute; top: 10px; right: 10px; display: none; width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(0,0,0,.65); color: #fff; font-size: 1.4rem; cursor: pointer; }
.mw__bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.mw__av { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: rgba(236,95,156,.18); color: #ffc2dc; font-weight: 700; font-size: .82rem; }
.mw__name { flex: 1; min-width: 0; } .mw__name b { display: block; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mw__name small { color: var(--muted); font-size: .74rem; white-space: nowrap; }
.mw__acts { display: flex; gap: 6px; }
.mw-grid[data-cols="4"] .mw__acts .mw__info { display: none; }
.mw-back { position: fixed; inset: 0; z-index: 94; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); animation: fadein .2s ease; }
.mw-back[hidden] { display: none; }
@keyframes fadein { from { opacity: 0; } }
.mw.is-big { position: fixed; z-index: 95; top: 50%; left: 50%; width: min(1280px, 92vw, calc((100vh - 140px) * 16 / 9)); transform: translate(-50%, -50%); border-color: rgba(236,95,156,.45); box-shadow: 0 40px 120px -30px rgba(0,0,0,.95); animation: mwbig .3s cubic-bezier(.2,.8,.2,1); }
@keyframes mwbig { from { opacity: .4; transform: translate(-50%, -48%) scale(.94); } }
.mw.is-big .mw__screen { cursor: zoom-out; }
.mw.is-big .mw__x { display: grid; place-items: center; }
.mw.is-big .mw__bar { padding: 12px 16px; } .mw.is-big .mw__acts .mw__info { display: inline-flex; }
@media (max-width: 1100px) { .mw-grid, .mw-grid[data-cols="3"], .mw-grid[data-cols="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mw-grid, .mw-grid[data-cols] { grid-template-columns: 1fr; } #mwCols { display: none; } .phead .mw-tools { margin-top: 8px; } }
.maplist .bbar__search { flex: none; }
.btable--auto { table-layout: auto; }
.btable--auto td { overflow: visible; }
.btable--owner .bc-player { width: 17%; } .btable--owner .bc-server { width: 10%; } .btable--owner .bc-acct { width: 12%; }
.btable--owner .bc-when { width: 10%; } .btable--owner .bc-len { width: 9%; } .btable--owner .bc-state { width: 10%; }
.idlist--stack .idchip b { margin-right: 8px; }
/* map: beat leaflet.css's grey background (it loads after this file) */
.mapwrap .lmap.leaflet-container, .mapwrap .leaflet-container { background: #0e0f14 !important; }
.mapwrap { background: #0e0f14; }
/* the map keeps its layers to itself, so popups/windows (Player info, confirm) always open on top */
.mapwrap { isolation: isolate; z-index: 0; }
.modal { z-index: 2000; }

/* map: icon per what the player is doing */
.pm .pm__dot { inset: 0; border-radius: 50%; }
.pm .pm__dot svg { display: block; }
.pm .pm__dir { inset: -8px; }
.pm__name { top: 33px; }
.pm--heli .pm__dot, .pm--plane .pm__dot { background: #a855f7; box-shadow: 0 0 0 4px rgba(168,85,247,.25), 0 2px 8px rgba(0,0,0,.6); }
.pm--heli .pm__dir::before, .pm--plane .pm__dir::before { border-bottom-color: #a855f7; }
.pm--boat .pm__dot, .pm--sub .pm__dot { background: #06b6d4; box-shadow: 0 0 0 4px rgba(6,182,212,.25), 0 2px 8px rgba(0,0,0,.6); }
.pm--boat .pm__dir::before, .pm--sub .pm__dir::before { border-bottom-color: #06b6d4; }
.pm--car .pm__dot, .pm--bike .pm__dot, .pm--train .pm__dot { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.25), 0 2px 8px rgba(0,0,0,.6); }
.pm--car .pm__dir::before, .pm--bike .pm__dir::before, .pm--train .pm__dir::before { border-bottom-color: #f59e0b; }
.mrow__av svg { display: block; }
.mrow__av--car, .mrow__av--bike, .mrow__av--train { background: rgba(245,158,11,.16); color: #fbbf24; }
.mrow__av--heli, .mrow__av--plane { background: rgba(168,85,247,.16); color: #d8b4fe; }
.mrow__av--boat, .mrow__av--sub { background: rgba(6,182,212,.16); color: #67e8f9; }
.mrow__av--dead { background: rgba(255,255,255,.06); color: #8b8c95; }
.maplegend { position: absolute; left: 12px; bottom: 12px; z-index: 600; display: flex; flex-wrap: wrap; gap: 10px; padding: 7px 11px; border: 1px solid var(--border); border-radius: 10px; background: rgba(20,20,24,.92); font-size: .74rem; color: #c9cad1; }
.maplegend span { display: inline-flex; align-items: center; gap: 6px; }
.maplegend i { width: 9px; height: 9px; border-radius: 50%; }

/* ---------- Anti-cheat code (staff) ---------- */
.acpublish { margin-bottom: 16px; }
.acpublish .form--row { align-items: flex-end; }
.acgroup { margin-bottom: 20px; }
.acgroup__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.acgroup__head h2 { margin: 0; font-size: 1.05rem; }
.acadd { display: flex; gap: 8px; margin: 0; }
.acadd input { padding: 8px 11px; border: 1px solid var(--border); border-radius: 9px; background: #111114; color: #fff; font: inherit; font-size: .84rem; }
.acfile { border: 1px solid var(--line); border-radius: 11px; background: #131317; margin-bottom: 8px; overflow: hidden; }
.acfile > summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.acfile > summary::-webkit-details-marker { display: none; }
.acfile__name { font: 600 .9rem var(--mono); color: #fff; }
.acfile__meta { flex: 1; color: var(--muted); font-size: .78rem; }
.acfile__tools { display: flex; gap: 4px; }
.acicon { width: 28px; height: 26px; border: 1px solid var(--line); border-radius: 7px; background: #0e0e11; color: #c9cad1; cursor: pointer; }
.acicon:hover { border-color: var(--pink); color: #fff; }
.acfile[open] > summary { border-bottom: 1px solid var(--line); background: #15151a; }
.acedit { padding: 12px 14px; margin: 0; }
.acedit textarea { width: 100%; height: 340px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #0c0c0f; color: #e6e7eb; font: .82rem/1.5 var(--mono); resize: vertical; white-space: pre; tab-size: 4; }
.acedit textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(236,95,156,.14); }
.acedit__foot { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.hidden-form { display: none; }

/* ---------- Activity log ---------- */
.logseg { flex-wrap: wrap; }
.logseg a { display: inline-flex; align-items: center; gap: 7px; }
.logdot { width: 7px; height: 7px; border-radius: 50%; }
.logtable .lc-when { width: 112px; } .logtable .lc-what { width: 200px; } .logtable .lc-by { width: 210px; } .logtable .lc-ip { width: 140px; }
.logkind { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 9px; border-radius: 99px; background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--c); font-size: .76rem; font-weight: 600; white-space: nowrap; }
.logkind i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.logsum b { display: block; font-weight: 500; font-size: .9rem; line-height: 1.45; white-space: normal; }
.logmeta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.logmeta span { display: inline-flex; align-items: center; overflow: hidden; padding-right: 8px; border: 1px solid var(--line); border-radius: 7px; color: #d4d5db; font-size: .74rem; }
.logmeta em { margin-right: 7px; padding: 2px 7px; background: rgba(255,255,255,.05); color: var(--muted); font-style: normal; font-weight: 600; }
.logrow--bad td { background: rgba(239,68,68,.035); }
.logip { font-size: .8rem; }
.logpager { display: flex; align-items: center; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.logpager .muted { margin-right: auto; font-size: .86rem; }
.feedtests { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.feedtests h2 { flex-basis: 100%; }
@media (max-width: 900px) { .logtable .lc-what { width: 150px; } .logtable th:nth-child(4), .logtable td:nth-child(4) { display: none; } }
@media (max-width: 600px) { .logtable th:nth-child(5), .logtable td:nth-child(5), .logtable th:nth-child(2), .logtable td:nth-child(2) { display: none; } }

/* ---------- Mail health ---------- */
.mailhealth { display: grid; gap: 12px; padding: 16px 18px; margin-bottom: 16px; }
.mailhealth__row { display: flex; align-items: center; gap: 14px; }
.mailhealth__row > div { flex: 1; min-width: 0; }
.mailhealth__row b { display: block; font-size: .92rem; }
.mailhealth__row small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.mailhealth__row code { font-size: .78rem; color: #fca5a5; word-break: break-word; }
.mailhealth__ic { flex: none; width: 12px; height: 12px; border-radius: 50%; }
.mailhealth__ic.is-ok { background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.15); }
.mailhealth__ic.is-warn { background: #fbbf24; box-shadow: 0 0 0 4px rgba(251,191,36,.15); }
.mailhealth__ic.is-bad { background: #f87171; box-shadow: 0 0 0 4px rgba(248,113,113,.15); }
.mailhealth__bad { display: inline; color: #f87171; }
.mailhealth__warn { margin: 0 0 0 26px; padding: 10px 13px; border: 1px solid rgba(251,191,36,.35); border-radius: 10px; background: rgba(251,191,36,.07); color: #fde68a; font-size: .86rem; line-height: 1.5; }
.mailhealth__warn b { color: #fff; }

/* ---------- Shared configs ---------- */
.scfg-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px; margin-bottom: 18px; }
.scfg-bar .bbar__search { flex: 1 1 260px; }
.scfg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.scfg-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, #18181c, #121215); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; animation: mdlIn .35s ease both; }
.scfg-card:hover { border-color: rgba(236, 95, 156, .55); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.scfg-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.scfg-card__top b { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scfg-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.scfg-mine { flex: none; padding: 2px 8px; border-radius: 99px; background: rgba(236, 95, 156, .15); color: var(--pink); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.scfg-card__meter { height: 5px; border-radius: 99px; background: #26262c; overflow: hidden; }
.scfg-card__meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ec5f9c, #ff8fbf); }
.scfg-card__nums { display: flex; gap: 14px; color: var(--muted); font-size: .8rem; }
.scfg-card__nums b { color: var(--text); }
.scfg-card__foot { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.scfg-card__foot span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scfg-back { display: inline-block; margin-bottom: 16px; }
.scfg-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; background: radial-gradient(120% 140% at 0% 0%, rgba(236, 95, 156, .14), transparent 55%), var(--surface); }
.scfg-hero__main { display: flex; gap: 16px; align-items: flex-start; min-width: 0; flex: 1 1 360px; }
.scfg-hero__ic { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(236, 95, 156, .14); color: var(--pink); }
.scfg-hero h1 { margin: 0; font-size: 1.6rem; overflow-wrap: anywhere; }
.scfg-by { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.scfg-by b { color: var(--text); }
.scfg-desc { margin: 10px 0 0; max-width: 640px; line-height: 1.55; }
.scfg-nums { display: flex; gap: 12px; }
.scfg-nums div { min-width: 104px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #141417; text-align: center; }
.scfg-nums b { display: block; font-size: 1.35rem; }
.scfg-nums small { color: var(--muted); font-size: .76rem; }
.scfg-apply { display: flex; flex-direction: column; gap: 10px; }
.scfg-apply__form { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.scfg-apply__form h2 { margin: 0 0 4px; font-size: 1.05rem; }
.scfg-apply__form p { margin: 0; max-width: 560px; font-size: .88rem; }
.scfg-apply__row { display: flex; gap: 10px; flex-wrap: wrap; }
.scfg-apply__row select { min-width: 200px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; }
.scfg-apply__remove { align-self: flex-end; }
.scfg-dets h2, .scfg-lists h2 { margin: 0 0 6px; font-size: 1.05rem; }
.scfg-dets__group { margin: 18px 0 8px; color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.scfg-dets__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; }
.scfg-det { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 9px; background: #18181c; font-size: .88rem; }
.scfg-pill { flex: none; padding: 2px 9px; border-radius: 99px; font-size: .72rem; font-style: normal; font-weight: 700; }
.scfg-pill--ban { background: rgba(239, 68, 68, .16); color: #f87171; }
.scfg-pill--kick { background: rgba(245, 158, 11, .16); color: #fbbf24; }
.scfg-pill--log { background: rgba(59, 130, 246, .16); color: #60a5fa; }
.scfg-pill--off { background: #26262c; color: var(--muted); }
.scfg-list { border-top: 1px solid var(--line); }
.scfg-list summary { display: flex; justify-content: space-between; padding: 12px 2px; cursor: pointer; font-weight: 600; list-style: none; }
.scfg-list summary::-webkit-details-marker { display: none; }
.scfg-list summary span { color: var(--muted); font-weight: 500; }
.scfg-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 14px; }
.scfg-chips code { padding: 3px 8px; border-radius: 6px; background: #18181c; font-size: .78rem; }

/* ---------- Vehicles, peds & props ---------- */
.mdl-add { display: flex; gap: 8px; }
.mdl-add input { width: 230px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: #111114; color: #fff; font: inherit; font-size: .9rem; font-family: var(--mono); }
.mdl-add input.is-bad { border-color: #ef4444; animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.mdl__img--prop { background: radial-gradient(circle at 50% 60%, #2a2030, #141417 70%); color: #6b4a63; }

/* ---------- Discord logs (config) ---------- */
.cfg__hooks { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.hookf > span { display: block; color: var(--text) !important; font-weight: 600 !important; }
.hookf > span small { display: block; margin-top: 1px; color: var(--muted); font-weight: 400; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hookf__dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #3a3a44; transform: translateY(-1px); }
.hookf.is-on .hookf__dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }

/* ---------- Live events categories ---------- */
.stream__cats { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #17171b; }
.stream__cats button { --c: #ec5f9c; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--border); border-radius: 99px; background: transparent; color: var(--muted); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.stream__cats button:not(:first-child)::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.stream__cats button:hover { color: var(--text); border-color: #4a4a52; }
.stream__cats button.is-active { background: rgba(236, 95, 156, .14); border-color: rgba(236, 95, 156, .5); color: var(--text); }
.stream__row--ban .stream__type, .stream__row--kick .stream__type { color: #f87171; }
.stream__row--drop .stream__type { color: #f0a77a; }
.stream__row--kill .stream__type { color: #ef4444; }
.stream__row--vehicle .stream__type { color: #60a5fa; }
.stream__row--entity .stream__type { color: #a78bfa; }
.stream__row--explosion .stream__type { color: #fb923c; }
.stream__row--staff .stream__type { color: #22d3ee; }
.stream__row--resource .stream__type { color: #94a3b8; }

/* ---------- Whitelist from a ban ---------- */
.bdwl { display: grid; gap: 10px; margin: 0 0 18px; padding: 14px 16px; border: 1px solid rgba(96, 165, 250, .35); border-radius: 12px; background: rgba(59, 130, 246, .08); }
.bdwl__txt b { display: block; margin-bottom: 4px; }
.bdwl__txt p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.bdwl .btn { justify-self: start; }

@media (max-width: 700px) {
  .scfg-nums { width: 100%; }
  .scfg-nums div { flex: 1; min-width: 0; }
  .mdl-add { width: 100%; }
  .mdl-add input { flex: 1; width: auto; }
}
