/* Mix Panel - dark + red ( based on the RED-LINE panel ) */
:root {
  --bg: #060608;
  --bg-2: #0a0a0d;
  --surface: #0e0e11;
  --surface-2: #131317;
  --surface-3: #18181e;
  --border: #1b1b20;
  --border-2: #33333d;
  --text: #ededf2;
  --text-2: #b4b4c0;
  --muted: #80808e;
  --red: #e5383b;
  --red-2: #ff5252;
  --red-dark: #a4161a;
  --red-soft: rgba(229, 56, 59, .12);
  --red-line: rgba(229, 56, 59, .35);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, .12);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, .12);
  --blue: #3b82f6;
  --blue-soft: rgba(59, 130, 246, .12);
  --violet: #a855f7;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --sidebar: 248px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--font);
  font-feature-settings: "tnum" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body.shell {
  background:
    radial-gradient(900px 500px at 0% -10%, rgba(229, 56, 59, .10), transparent 60%),
    radial-gradient(700px 400px at 100% 0%, rgba(164, 22, 26, .07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
code, .mono { font-family: var(--mono); font-size: .92em; }
code { background: var(--surface-3); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; color: var(--text-2); }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 .6em; }
hr { border: 0; border-top: 1px solid var(--border); }
[hidden] { display: none !important; }
::selection { background: var(--red); color: #fff; }
.ic { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.small, small { font-size: 12.5px; }
.sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.warn { color: var(--amber); }
.bad { color: var(--red-2); }
.break { word-break: break-word; }
.center { text-align: center; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------------- shell ---------------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar);
  background: linear-gradient(180deg, rgba(14, 14, 17, .96), rgba(8, 8, 10, .98));
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; z-index: 40;
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 20px 18px 16px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, #2a0d0f, #0d0506); border: 1px solid var(--red-line); box-shadow: 0 0 24px rgba(229, 56, 59, .25); }
.brand-mark img { width: 26px; height: 26px; }
.brand-text strong { display: block; font-size: 16px; letter-spacing: .06em; }
.brand-text small { color: var(--muted); font-size: 11.5px; }
.nav { flex: 1; overflow-y: auto; padding: 4px 10px 12px; scrollbar-width: thin; }
.nav-section { color: #5f5f6c; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 16px 12px 6px; }
.nav-link {
  display: flex; align-items: center; gap: 11px; padding: 8px 12px; margin: 1px 0;
  border-radius: 10px; color: var(--text-2); font-weight: 500; position: relative;
  transition: background .15s, color .15s; width: 100%;
}
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link.active { background: linear-gradient(90deg, var(--red-soft), rgba(229, 56, 59, .02)); color: #fff; }
.nav-link.active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red); box-shadow: 0 0 12px var(--red); }
.nav-link.active .ic { color: var(--red-2); }
.nav-link .tag { margin-left: auto; }
.as-button { background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.sidebar-foot { border-top: 1px solid var(--border); padding: 10px; }
.main { margin-left: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px;
  padding: 16px 32px; background: rgba(6, 6, 8, .78); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(27, 27, 32, .6);
}
.page-title { min-width: 0; flex: 1; }
.page-title h1 { font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-title p { color: var(--muted); margin: 2px 0 0; font-size: 13px; }
.global-search { position: relative; display: flex; align-items: center; width: min(360px, 34vw); }
.global-search .ic { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.global-search input[type=search] { width: 100%; padding: 9px 40px 9px 38px; border-radius: 11px; background: var(--surface); }
.global-search kbd { position: absolute; right: 10px; font: 11px var(--mono); color: var(--muted); border: 1px solid var(--border-2); border-radius: 5px; padding: 0 6px; }
.lang-switch { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.lang-switch form { margin: 0; }
.lang-switch button { background: none; border: 0; color: var(--muted); font: 600 12px var(--font); padding: 5px 9px; border-radius: 7px; cursor: pointer; }
.lang-switch button.on { background: var(--red); color: #fff; }
.page-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 18px 32px 0; }
.content { padding: 20px 32px 32px; display: flex; flex-direction: column; gap: 18px; flex: 1; width: 100%; max-width: 1600px; }
.foot { color: #4d4d58; font-size: 12px; padding: 0 32px 18px; }
.scrim { display: none; }
.only-mobile { display: none !important; }

/* ---------------- cards / grids ---------------- */
.card {
  background: linear-gradient(180deg, rgba(19, 19, 23, .72), rgba(14, 14, 17, .9));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset;
}
.card.flush { padding: 0; overflow: hidden; }
.pad { padding: 16px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head.pad { margin: 0; border-bottom: 1px solid var(--border); }
.card-head h3, .card-title { display: flex; align-items: center; gap: 9px; font-size: 15px; }
.card-head h3 .ic, .card-title .ic { color: var(--red-2); }
.card-title { margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-form { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.grid-form > div { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 86px; }
.sub-head { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 8px 2px 4px; }
.hero h2 { font-size: 26px; }
.eyebrow { color: var(--red-2); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat {
  display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19, 19, 23, .8), rgba(14, 14, 17, .95)); border: 1px solid var(--border);
  transition: border-color .15s, transform .15s; min-width: 0;
}
a.stat:hover { border-color: var(--border-2); transform: translateY(-1px); }
.stat.on { border-color: var(--red-line); box-shadow: 0 0 0 1px var(--red-line) inset; }
.stat > div:last-child { min-width: 0; }
.stat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.stat-icon .ic { width: 22px; height: 22px; }
.stat-icon.red { background: var(--red-soft); color: var(--red-2); }
.stat-icon.blue { background: var(--blue-soft); color: #6ea8ff; }
.stat-icon.green { background: var(--green-soft); color: #4ade80; }
.stat-icon.amber { background: var(--amber-soft); color: #fbbf24; }
.stat-label { display: block; color: var(--muted); font-size: 12.5px; }
.stat-value { display: block; font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.stat-value.sm { font-size: 19px; }
.stat-sub { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- buttons / inputs ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px;
  border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text);
  font: 600 13.5px var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s, box-shadow .15s;
}
.btn:hover { background: var(--surface-3); border-color: #44444f; }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 16px; height: 16px; }
.btn-primary { background: linear-gradient(180deg, #ef4044, #c9252a); border-color: #f0484c; color: #fff; box-shadow: 0 6px 18px rgba(229, 56, 59, .28); }
.btn-primary:hover { background: linear-gradient(180deg, #ff4c50, #d62b30); border-color: #ff5a5e; }
.btn-danger { background: rgba(229, 56, 59, .12); border-color: rgba(229, 56, 59, .45); color: #ff8a8c; }
.btn-danger:hover { background: rgba(229, 56, 59, .22); border-color: var(--red); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form { display: inline-flex; margin: 0; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; transition: all .15s; }
.icon-btn:hover { background: var(--surface-3); color: var(--text); border-color: var(--border); }
.icon-btn.danger:hover { background: var(--red-soft); color: var(--red-2); border-color: rgba(229, 56, 59, .35); }
.icon-btn.tiny { width: 24px; height: 24px; }
.icon-btn.tiny .ic { width: 14px; height: 14px; }
.link { color: #ff7a7c; font-weight: 500; }
.link:hover { color: #ffa3a4; text-decoration: underline; }
.sub .link, .sub.mono .link { color: var(--text-2); font-weight: 400; }
.sub .link:hover { color: #ff8a8c; }
.link-btn { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 0; }
.link-btn:hover, .link-btn.on { color: var(--text); }

input[type=text], input[type=search], input[type=password], input[type=email], input[type=number], input[type=date], select, textarea {
  width: 100%; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-2);
  background: var(--bg-2); color: var(--text); font: 13.5px var(--font); outline: none; transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #5c5c68; }
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(229, 56, 59, .18); }
input:disabled, select:disabled { opacity: .45; cursor: not-allowed; }
input[type=date]::-webkit-calendar-picker-indicator { filter: invert(.7); }
select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2380808e' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
input[type=checkbox], input[type=radio] { accent-color: var(--red); width: 16px; height: 16px; margin: 0; cursor: pointer; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field .opt { font-style: normal; font-weight: 400; color: var(--muted); }
.field.grow { flex: 1 1 240px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-2); font-size: 13px; }
.check.small { font-size: 12px; color: var(--muted); }
.check.danger span { color: #ff8a8c; }
.pad-top { padding-top: 22px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form-title { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text); margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--border); }
.form-title:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.form > .form-title:first-child, .alert + .form-title { border-top: 0; padding-top: 0; }
.form-title .ic { color: var(--red-2); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding-top: 6px; }
.form-actions.sticky { position: sticky; bottom: 12px; background: rgba(6, 6, 8, .85); padding: 10px; border-radius: 12px; border: 1px solid var(--border); backdrop-filter: blur(8px); }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.row-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hint { display: flex; align-items: flex-start; gap: 7px; color: var(--muted); font-size: 12.5px; margin: 0; }
.hint .ic { width: 15px; height: 15px; margin-top: 2px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 14px 16px; }
.filters .field { flex: 0 1 170px; }
.filters .field.grow { flex: 1 1 240px; }
.filter-btns { display: flex; gap: 6px; }
details.more { border: 1px dashed var(--border-2); border-radius: 10px; padding: 10px 14px; }
details.more summary { cursor: pointer; color: var(--text-2); font-weight: 600; font-size: 13px; }
details.more[open] { display: flex; flex-direction: column; gap: 10px; }

/* segmented + pickers */
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 11px; padding: 3px; gap: 3px; flex-wrap: wrap; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 13px; }
.seg input:checked + span { background: var(--surface-3); color: #fff; box-shadow: 0 0 0 1px var(--border-2) inset; }
.seg input:focus-visible + span { box-shadow: 0 0 0 2px var(--red); }
.grade-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.grade-opt { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 10px 14px; border-radius: 11px; border: 1px solid var(--border-2); background: var(--bg-2); cursor: pointer; transition: all .15s; overflow: hidden; }
.grade-opt::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tone, var(--muted)); }
.grade-opt input { position: absolute; opacity: 0; }
.grade-opt:hover { border-color: #4a4a56; }
.grade-opt:has(input:checked) { border-color: var(--tone, var(--red)); background: color-mix(in srgb, var(--tone, var(--red)) 12%, var(--bg-2)); box-shadow: 0 0 0 1px var(--tone, var(--red)) inset; }
.grade-opt.disabled { opacity: .35; cursor: not-allowed; }
.g-name { font-weight: 650; font-size: 13.5px; }
.g-flags { font-size: 11px; color: var(--muted); background: none; border: 0; padding: 0; word-break: break-all; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.check-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--border-2); background: var(--bg-2); cursor: pointer; font-size: 13px; transition: all .15s; }
.check-card:has(input:checked) { border-color: var(--red-line); background: var(--red-soft); }
.check-card.disabled { opacity: .4; cursor: not-allowed; }
.check-card code { font-size: 11px; padding: 0 4px; }
.quick-dates { display: flex; flex-wrap: wrap; gap: 4px; }
.access-preview { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 12px 14px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--border); flex-wrap: wrap; }
.access-preview span { color: var(--muted); font-size: 12.5px; }
.access-preview code { font-size: 13px; color: #fff; background: var(--red-soft); border-color: var(--red-line); letter-spacing: .06em; }
.flag-help { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 12px; font-size: 12px; color: var(--muted); }
.flag-help.col { grid-template-columns: 1fr 1fr; }
.flag-help code { padding: 0 5px; margin-right: 4px; }
.fallback { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 11px; border: 1px dashed var(--border-2); }

/* ---------------- tags / pills ---------------- */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; background: var(--surface-3); color: var(--text-2); }
.pill .ic { width: 13px; height: 13px; }
.pill.tiny { height: 19px; padding: 0 7px; font-size: 11px; }
.pill-red { background: var(--red-soft); color: #ff8587; border-color: rgba(229, 56, 59, .3); }
.pill-green { background: var(--green-soft); color: #4ade80; border-color: rgba(34, 197, 94, .28); }
.pill-amber { background: var(--amber-soft); color: #fbbf24; border-color: rgba(245, 158, 11, .28); }
.pill-grey { background: var(--surface-3); color: var(--muted); border-color: var(--border-2); }
.pill-outline { background: transparent; border-color: var(--border-2); color: var(--text-2); }
.tone-top { --tone: #ff4d50; }
.tone-high { --tone: #f97316; }
.tone-mid { --tone: #a855f7; }
.tone-low { --tone: #3b82f6; }
.tone-none { --tone: #6b6b78; }
.tone-extra { --tone: #22c55e; }
.pill.tone-top, .pill.tone-high, .pill.tone-mid, .pill.tone-low, .pill.tone-none {
  background: color-mix(in srgb, var(--tone) 14%, transparent); color: color-mix(in srgb, var(--tone) 70%, #fff); border-color: color-mix(in srgb, var(--tone) 35%, transparent);
}
.tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 1px 6px; border-radius: 5px; background: var(--surface-3); color: var(--muted); border: 1px solid var(--border-2); vertical-align: middle; }
.tag-red { background: var(--red-soft); color: #ff8587; border-color: rgba(229, 56, 59, .3); }
.action-tag { display: inline-block; font-size: 12px; font-weight: 600; color: #ff9a9c; background: var(--red-soft); padding: 0 7px; border-radius: 6px; }
.flags { letter-spacing: .04em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-2); font-size: 12.5px; color: var(--text-2); }
a.chip:hover, .chip.as-button:hover { border-color: var(--red-line); color: #fff; }
.chip.as-button { cursor: pointer; font: inherit; font-size: 12.5px; }
.chip-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 12.5px; font-weight: 500; transition: all .15s; }
.fchip b { color: var(--muted); font-weight: 600; }
.fchip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tone, var(--muted)); }
.fchip:hover { border-color: var(--border-2); color: #fff; }
.fchip.on { background: var(--surface-3); border-color: var(--tone, var(--red)); color: #fff; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 13.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab b { font-weight: 600; font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.tab:hover { color: var(--text); }
.tab.on { color: #fff; border-bottom-color: var(--red); }
.tab.on b { background: var(--red-soft); color: #ff8587; }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; padding: 5px; border-radius: 13px; background: var(--surface); border: 1px solid var(--border); width: fit-content; max-width: 100%; }
.subnav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 13px; }
.subnav a:hover { color: var(--text); background: var(--surface-2); }
.subnav a.on { background: linear-gradient(180deg, #ef4044, #c9252a); color: #fff; box-shadow: 0 4px 14px rgba(229, 56, 59, .25); }
.subnav .ic { width: 16px; height: 16px; }

/* ---------------- tables ---------------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; padding: 11px 14px; background: rgba(10, 10, 13, .6); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid rgba(27, 27, 32, .7); vertical-align: middle; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:has(input[name="ids[]"]:checked) { background: var(--red-soft); }
.table.compact td { padding: 8px 14px; }
.w-check { width: 40px; }
.w-actions { width: 90px; }
.w-actions-wide { width: 170px; }
.row-unban { height: 30px; color: #86efac; border-color: rgba(34, 197, 94, .35); background: var(--green-soft); }
.row-unban:hover { background: rgba(34, 197, 94, .22); border-color: var(--green); color: #fff; }
.actions .btn, .actions .icon-btn { vertical-align: middle; }
.w-rank { width: 64px; }
.actions { text-align: right; white-space: nowrap; }
.tags-cell { text-align: right; white-space: nowrap; }
.tags-cell .pill + .pill { margin-left: 4px; }
.who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.who strong { font-weight: 600; }
.who > div { min-width: 0; }
a.who:hover strong { color: #ff8a8c; }
.avatar { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(145deg, #3a1517, #1e0b0c); border: 1px solid rgba(229, 56, 59, .3); }
.avatar.av-ip { font-size: 11px; background: linear-gradient(145deg, #1b2440, #0f1428); border-color: rgba(59, 130, 246, .35); }
.avatar.lg { width: 46px; height: 46px; font-size: 18px; border-radius: 13px; }
.avatar.xl { width: 64px; height: 64px; font-size: 26px; border-radius: 18px; box-shadow: 0 0 30px rgba(229, 56, 59, .2); }
.rank { font-weight: 700; color: var(--muted); white-space: nowrap; }
.rank .ic { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }
.rank-1 { color: #fbbf24; }
.rank-2 { color: #d4d4dc; }
.rank-3 { color: #f59e6b; }
.w-bar { min-width: 180px; }
.cell-bar { display: flex; align-items: center; gap: 10px; }
.cell-bar .hbar-track { flex: 1; min-width: 60px; }
.cell-bar span { white-space: nowrap; font-size: 13px; }
tr.state-inactive td:first-child strong { color: var(--muted); }
.bulk-bar { position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; background: rgba(19, 10, 11, .96); border-top: 1px solid var(--red-line); backdrop-filter: blur(8px); }
.bulk-bar select { width: auto; height: 32px; }
.bulk-bar > span { margin-right: auto; color: var(--text-2); }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pager-links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.pager .btn { min-width: 34px; }

/* feeds / lists */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(27, 27, 32, .7); }
.feed li:last-child { border-bottom: 0; }
.feed.compact li { padding: 7px 0; }
.feed-main { display: flex; flex-direction: column; min-width: 0; }
.feed-main strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-main .muted { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.feed-main:hover strong { color: #ff8a8c; }
.feed-side { display: flex; align-items: center; gap: 8px; flex: none; flex-direction: column; align-items: flex-end; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 12px 10px; font-size: 13px; }
.timeline li::before { content: ""; position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--red); }
.tips { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 13px; display: flex; flex-direction: column; gap: 8px; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 14px; font-size: 13px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; text-align: right; }
.log-list { list-style: none; margin: 0; padding: 0; }
.log-list li { display: flex; gap: 14px; padding: 13px 20px; border-bottom: 1px solid rgba(27, 27, 32, .7); align-items: flex-start; }
.log-list li:hover { background: rgba(255, 255, 255, .02); }
.log-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--muted); }
.act-add, .act-account, .act-grade { background: var(--green); }
.act-delete, .act-remove, .act-expire { background: var(--red); }
.act-edit, .act-settings, .act-evidence { background: var(--amber); }
.act-login, .act-logout, .act-my { background: var(--blue); }
.log-main { flex: 1; min-width: 0; }
.log-side { text-align: right; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.cmd { color: #ffd2d3; }

/* chat */
.chat-log, .chat-list { list-style: none; margin: 0; padding: 6px 0; font-size: 13.5px; }
.chat-log li { display: flex; align-items: baseline; gap: 10px; padding: 5px 20px; }
.chat-log li:hover { background: rgba(255, 255, 255, .025); }
.chat-log li.hl { background: var(--red-soft); box-shadow: 3px 0 0 var(--red) inset; }
.chat-log .time { font: 12px var(--mono); color: var(--muted); flex: none; }
.chat-log .time:hover { color: var(--red-2); }
.chat-log .who-name { font-weight: 600; flex: none; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-log .msg, .chat-list .msg { color: var(--text-2); word-break: break-word; }
.day-sep { justify-content: center; padding: 10px 20px !important; }
.day-sep span { font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); padding: 2px 12px; border-radius: 999px; }
.chat-list li { display: flex; gap: 8px; align-items: baseline; padding: 6px 20px; border-bottom: 1px solid rgba(27, 27, 32, .5); }
.chat-list .time { font: 11.5px var(--mono); color: var(--muted); flex: none; }
.team { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted); display: inline-block; }
.team-ct { background: #4c8dff; box-shadow: 0 0 6px rgba(76, 141, 255, .6); }
.team-terrorist, .team-t { background: #ff5a4e; box-shadow: 0 0 6px rgba(255, 90, 78, .6); }
.team-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.team-label.team-ct, .team-label.team-terrorist { background: none; box-shadow: none; }
.team-label.team-ct { color: #6ea2ff; }
.team-label.team-terrorist { color: #ff7a70; }

/* charts */
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 190px; padding-top: 10px; }
.bar-chart.dense { gap: 3px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; min-width: 0; }
.bar-num { font-size: 10.5px; color: var(--muted); height: 14px; }
.bar { flex: 1; width: 100%; display: flex; align-items: flex-end; border-radius: 6px; background: rgba(255, 255, 255, .025); }
.bar-fill { width: 100%; height: 0; border-radius: 6px; background: linear-gradient(180deg, #ff5a5e, #a4161a); box-shadow: 0 0 14px rgba(229, 56, 59, .25); transition: height .6s cubic-bezier(.2, .8, .2, 1); min-height: 2px; }
.bar-col:hover .bar-fill { background: linear-gradient(180deg, #ff7a7d, #c9252a); }
.bar-day { font-size: 10.5px; color: var(--muted); }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.hbar-val { color: var(--muted); font-size: 12px; white-space: nowrap; }
.hbar-track, .meter { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.hbar-fill, .meter-fill { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #a4161a, #ff5a5e); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.meter { width: 90px; flex: none; }

/* servers */
.server-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(27, 27, 32, .7); }
.server-row:last-of-type { border-bottom: 0; }
.server-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.server-main strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server-main .muted { font-size: 12.5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.dot-on { background: var(--green); box-shadow: 0 0 0 3px rgba(34, 197, 94, .18), 0 0 10px var(--green); animation: pulse 2.2s infinite; }
.dot-off { background: #55555f; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0), 0 0 10px var(--green); } }
.server-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); gap: 18px; }
.server-card { display: flex; flex-direction: column; gap: 14px; }
.server-card-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.server-card-head h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.server-meta { display: flex; gap: 8px; align-items: center; }
.map-badge, .players-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 9px; background: var(--surface-3); border: 1px solid var(--border-2); font-weight: 600; font-size: 12.5px; }
.players-badge { background: var(--red-soft); border-color: var(--red-line); color: #ff9a9c; }
.scoreboard { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sb-team { border-radius: 11px; border: 1px solid var(--border); overflow: hidden; }
.sb-head { display: flex; justify-content: space-between; padding: 7px 12px; font-weight: 700; font-size: 12.5px; letter-spacing: .06em; }
.sb-t .sb-head { background: rgba(255, 90, 78, .12); color: #ff8a80; }
.sb-ct .sb-head { background: rgba(76, 141, 255, .12); color: #8ab4ff; }
.sb-row { display: grid; grid-template-columns: 1fr auto 36px; gap: 8px; padding: 6px 12px; font-size: 12.5px; border-top: 1px solid rgba(27, 27, 32, .6); }
.sb-row:hover { background: rgba(255, 255, 255, .03); }
.sb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-name .pill { margin-left: 6px; height: 17px; font-size: 10px; padding: 0 6px; }
.server-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.server-edit { display: grid; grid-template-columns: 14px minmax(140px, 1fr) 1fr 1fr 70px 32px 32px; gap: 10px; align-items: center; padding: 12px 20px; border-bottom: 1px solid rgba(27, 27, 32, .7); }
.server-key { min-width: 0; }
.server-key .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.in-order { width: 70px !important; }

/* grades page */
.grade-list { display: flex; flex-direction: column; }
.grade-row { display: grid; grid-template-columns: 6px minmax(120px, 1fr) minmax(140px, 1.3fr) 76px 60px auto 32px 32px; gap: 10px; align-items: center; padding: 9px 20px; border-bottom: 1px solid rgba(27, 27, 32, .6); margin: 0; }
.grade-row:hover { background: rgba(255, 255, 255, .02); }
.grade-swatch { width: 6px; height: 26px; border-radius: 3px; background: var(--tone); }
.grade-row .count { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; }
.grade-row .count .ic { width: 14px; height: 14px; }
.grade-row input { height: 34px; }

/* bans */
.ban-hero { display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.ban-hero::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--muted); }
.ban-hero.status-active::after { background: linear-gradient(90deg, var(--red-dark), var(--red-2)); }
.ban-hero.status-unbanned::after { background: var(--green); }
.ban-hero-main { display: flex; align-items: center; gap: 16px; }
.ban-hero-main h2 { font-size: 22px; }
.ban-hero-main p { margin: 2px 0 0; color: var(--muted); }
.ban-hero-status { margin-left: auto; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.facts > div { background: var(--surface); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.facts span { color: var(--muted); font-size: 12px; }
.facts strong { font-weight: 600; word-break: break-word; }
.evidence-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; }
.evidence { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--border); border-radius: 12px; padding: 8px; background: var(--bg-2); position: relative; }
.evidence .inline-form { position: absolute; top: 12px; right: 12px; }
.evidence .inline-form .icon-btn { background: rgba(0, 0, 0, .6); }
.ev-thumb { height: 120px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.ev-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ev-thumb .ic { width: 34px; height: 34px; }
.ev-meta { padding: 0 4px; min-width: 0; }
.upload { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.dropzone { flex: 1 1 260px; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; border: 1.5px dashed var(--border-2); border-radius: 12px; color: var(--muted); cursor: pointer; position: relative; transition: all .15s; padding: 10px; text-align: center; }
.dropzone:hover, .dropzone.over { border-color: var(--red); color: var(--text); background: var(--red-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.template-list { display: flex; flex-direction: column; margin-bottom: 12px; }
.template-row { display: grid; grid-template-columns: 180px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(27, 27, 32, .6); }
.inline-add { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline-add input { flex: 1 1 180px; width: auto; }
.inline-add .field { flex: 1 1 200px; }
.collapse-card { border-color: var(--red-line); box-shadow: 0 0 0 1px rgba(229, 56, 59, .12), var(--shadow); }

/* profile */
.profile-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.profile-main { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; }
.profile-main h2 { font-size: 22px; }
.profile-main p { margin: 0; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* accounts */
.account-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.account { display: flex; flex-direction: column; gap: 12px; }
.account.disabled { opacity: .55; }
.account-head { display: flex; align-items: center; gap: 12px; }
.account-head h3 { font-size: 16px; }
.account-badges { margin-left: auto; display: flex; gap: 6px; }
.perm-summary { display: flex; flex-direction: column; gap: 6px; }
.perm-group { display: inline-block; min-width: 92px; color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.perm-chip { display: inline-block; font-size: 11.5px; padding: 1px 8px; margin: 2px 3px 2px 0; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-2); color: var(--text-2); }
.account-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
.perm-presets { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.perm-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.perm-group-box { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px 12px; margin: 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.perm-group-box legend { padding: 0 6px; font-weight: 700; font-size: 13px; color: var(--text); display: flex; gap: 12px; align-items: center; }
.group-btns { display: inline-flex; gap: 4px; }
.group-btns .btn { height: 26px; padding: 0 9px; font-size: 11.5px; }
.group-btns .btn .ic { width: 13px; height: 13px; }
.perm { display: flex; gap: 10px; align-items: flex-start; padding: 7px 8px; border-radius: 9px; cursor: pointer; }
.perm:hover { background: var(--surface-2); }
.perm input { margin-top: 2px; }
.perm span { display: flex; flex-direction: column; }
.perm strong { font-weight: 600; font-size: 13px; }
.perm small { color: var(--muted); font-size: 11.5px; }
.perm.danger strong { color: #ff9a9c; }
.perm.disabled { opacity: .4; cursor: not-allowed; }
.pw-show { display: flex; gap: 10px; align-items: center; margin: 6px 0; }
.pw-show code { font-size: 16px; padding: 5px 12px; color: #fff; }

/* alerts / toasts / modal / empty */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 11px; font-size: 13.5px; border: 1px solid; }
.alert .ic { margin-top: 1px; }
.alert-error { background: var(--red-soft); border-color: rgba(229, 56, 59, .35); color: #ffb3b4; }
.alert-warn { background: var(--amber-soft); border-color: rgba(245, 158, 11, .3); color: #fcd34d; }
.alert-info { background: var(--blue-soft); border-color: rgba(59, 130, 246, .3); color: #a9c8ff; }
.alert-success { background: var(--green-soft); border-color: rgba(34, 197, 94, .3); color: #86efac; }
.alert.big { padding: 16px; }
.alert .link { margin-left: auto; }
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 100; max-width: min(420px, calc(100vw - 40px)); }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 12px; background: rgba(19, 19, 23, .97); border: 1px solid var(--border-2); box-shadow: var(--shadow); animation: toast-in .35s cubic-bezier(.2, .8, .2, 1); font-size: 13.5px; }
.toast span { flex: 1; }
.toast button { background: none; border: 0; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.toast-success { border-left: 3px solid var(--green); }
.toast-success > .ic { color: var(--green); }
.toast-error { border-left: 3px solid var(--red); }
.toast-error > .ic { color: var(--red-2); }
.toast-info { border-left: 3px solid var(--blue); }
.toast-info > .ic { color: #6ea8ff; }
.toast.out { opacity: 0; transform: translateY(8px); transition: all .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); padding: 20px; }
.modal-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--border-2); border-radius: 16px; padding: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); text-align: center; animation: toast-in .25s; }
.modal-icon { width: 50px; height: 50px; margin: 0 auto 12px; border-radius: 14px; display: grid; place-items: center; background: var(--red-soft); color: var(--red-2); }
.modal-card h3 { font-size: 18px; margin-bottom: 6px; }
.modal-card p { color: var(--text-2); }
.modal-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-state.small { padding: 34px 20px; }
.empty-state h2 { color: var(--text); }
.empty-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.empty-icon .ic { width: 24px; height: 24px; }

/* login */
body.bare { display: grid; place-items: center; padding: 20px; background: radial-gradient(800px 600px at 50% 0%, rgba(229, 56, 59, .16), transparent 65%), var(--bg); }
.login-wrap { position: relative; width: min(400px, 100%); }
.login-glow { position: absolute; inset: -60px; background: radial-gradient(closest-side, rgba(229, 56, 59, .18), transparent); filter: blur(20px); z-index: 0; }
.login-card { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; padding: 30px; border-radius: 20px; background: linear-gradient(180deg, rgba(19, 19, 23, .92), rgba(11, 11, 14, .96)); border: 1px solid var(--border-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.login-card::before { content: ""; position: absolute; top: 0; left: 30px; right: 30px; height: 2px; background: linear-gradient(90deg, transparent, var(--red), transparent); }
.login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.login-logo { width: 54px; height: 54px; padding: 10px; border-radius: 16px; background: linear-gradient(145deg, #2a0d0f, #0d0506); border: 1px solid var(--red-line); box-shadow: 0 0 30px rgba(229, 56, 59, .3); }
.login-brand h1 { font-size: 24px; letter-spacing: .08em; }
.login-brand p { margin: 0; color: var(--muted); }
.login-card .btn { height: 44px; margin-top: 4px; }
.login-foot { display: flex; justify-content: center; gap: 14px; font-size: 12.5px; }

/* ---------------- responsive ---------------- */
@media (max-width: 1200px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-form { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .hide-md { display: none; }
  .row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 35; }
  .main { margin-left: 0; }
  .only-mobile { display: inline-grid !important; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .server-cards { grid-template-columns: minmax(0, 1fr); }
  .perm-groups { grid-template-columns: minmax(0, 1fr); }
  .global-search { width: auto; flex: 1; }
  .page-title { display: none; }
}
@media (max-width: 640px) {
  .topbar { padding: 10px 16px; gap: 10px; }
  .global-search kbd { display: none; }
  .content { padding: 14px 16px 24px; gap: 14px; }
  .page-actions { padding: 14px 16px 0; justify-content: stretch; }
  .page-actions .btn { flex: 1; }
  .foot { padding: 0 16px 14px; }
  .card { padding: 14px 16px; }
  .stat-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .stat { padding: 12px; gap: 10px; }
  .stat-icon { width: 36px; height: 36px; }
  .stat-value { font-size: 21px; }
  .hide-sm { display: none; }
  .row-2, .row-3, .row-4 { grid-template-columns: minmax(0, 1fr); }
  .filters .field, .filters .field.grow { flex: 1 1 100%; }
  .filter-btns { width: 100%; }
  .filter-btns .btn { flex: 1; }
  .table th, .table td { padding: 9px 10px; }
  .grade-row { grid-template-columns: 6px 1fr 1fr; padding: 10px 16px; }
  .grade-row .in-order, .grade-row .count, .grade-row .check { display: none; }
  .server-edit { grid-template-columns: 14px 1fr; }
  .server-edit input { grid-column: 1 / -1; }
  .scoreboard { grid-template-columns: minmax(0, 1fr); }
  .template-row { grid-template-columns: 1fr auto; }
  .template-row .muted { grid-column: 1 / -1; grid-row: 2; }
  .hbar { grid-template-columns: 80px 1fr; }
  .hbar-val { grid-column: 2; }
  .lang-switch button { padding: 5px 7px; }
  .account-grid { grid-template-columns: minmax(0, 1fr); }
  .bar-chart.dense .bar-num { display: none; }
  .chat-log li { flex-wrap: wrap; gap: 4px 8px; padding: 6px 16px; }
  .chat-log .msg { flex-basis: 100%; }
  .subnav { width: 100%; }
  .subnav a { flex: 1 1 auto; justify-content: center; padding: 8px 10px; }
  .subnav a span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* sortable headers */
.th-sort { display: inline-flex; align-items: center; gap: 5px; color: inherit; }
.th-sort:hover { color: var(--text); }
.th-sort .arrow { font-size: 9px; opacity: .35; }
.th-sort.on { color: #ff8a8c; }
.th-sort.on .arrow { opacity: 1; }

/* "Log in as" banner */
.imp-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 24px 0; padding: 10px 14px; border-radius: 12px; background: rgba(240, 180, 40, .12); border: 1px solid rgba(240, 180, 40, .45); color: #ffd98a; font-size: 13.5px; }
.imp-banner > .ic { flex: none; }
.imp-banner span { flex: 1; min-width: 200px; }
.imp-banner form { margin: 0; }
@media (max-width: 760px) { .imp-banner { margin: 10px 16px 0; } }

/* chat kinds */
.tag-blue { background: rgba(80, 140, 255, .14); color: #8db6ff; border-color: rgba(80, 140, 255, .35); }
.tag-amber { background: rgba(240, 180, 40, .14); color: #ffd27a; border-color: rgba(240, 180, 40, .4); }
.chat-log li.chat-admin, .chat-list li.chat-admin { background: rgba(229, 56, 59, .07); box-shadow: inset 3px 0 0 var(--red); }
.chat-log li.chat-asay, .chat-list li.chat-asay { background: rgba(240, 180, 40, .06); box-shadow: inset 3px 0 0 #f0b428; }
.chat-log .tag, .chat-list .tag { flex: none; min-width: 62px; text-align: center; }
.tag-say { color: var(--muted); }
.tag-team-ct { background: rgba(76, 141, 255, .14); color: #8db6ff; border-color: rgba(76, 141, 255, .4); }
.tag-team-terrorist { background: rgba(255, 90, 78, .13); color: #ff8a80; border-color: rgba(255, 90, 78, .4); }
.tag-team-spectator, .tag-team-unassigned { background: rgba(160, 160, 175, .12); color: #c4c4cf; border-color: rgba(160, 160, 175, .35); }
.chat-log .who-name.name-ct a, .chat-log .who-name.name-ct { color: #6ea2ff; }
.chat-log .who-name.name-terrorist a, .chat-log .who-name.name-terrorist { color: #ff7a70; }
.chat-log .who-name.name-spectator a, .chat-log .who-name.name-spectator,
.chat-log .who-name.name-unassigned a, .chat-log .who-name.name-unassigned { color: #b8b8c4; }
.team-spectator { background: #9a9aa8; }

/* ---------------- background ( slow, behind everything; off with reduced motion ) ---------------- */
.fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.main, .login-wrap { position: relative; z-index: 1; }
.fx-grid {
  position: absolute; inset: -64px;
  background-image: linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
  animation: fx-pan 24s linear infinite;
}
@keyframes fx-pan { to { transform: translate3d(64px, 64px, 0); } }
.fx-glow { position: absolute; border-radius: 50%; will-change: transform; }
.fx-a { width: 70vmax; height: 70vmax; left: -22vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(229, 56, 59, .16), rgba(229, 56, 59, .05) 55%, transparent); animation: fx-drift-a 28s ease-in-out infinite alternate; }
.fx-b { width: 60vmax; height: 60vmax; right: -24vmax; bottom: -30vmax; background: radial-gradient(closest-side, rgba(164, 22, 26, .16), rgba(164, 22, 26, .04) 55%, transparent); animation: fx-drift-b 34s ease-in-out infinite alternate; }
@keyframes fx-drift-a { to { transform: translate3d(18vw, 12vh, 0) scale(1.15); } }
@keyframes fx-drift-b { to { transform: translate3d(-16vw, -14vh, 0) scale(1.1); } }
.fx-sweep { position: absolute; left: 0; right: 0; top: 0; height: 160px; background: linear-gradient(180deg, transparent, rgba(229, 56, 59, .045) 60%, rgba(255, 82, 82, .09) 99%, transparent); animation: fx-sweep 14s cubic-bezier(.45, 0, .55, 1) infinite; transform: translate3d(0, -170px, 0); }
@keyframes fx-sweep { 0% { transform: translate3d(0, -170px, 0); } 55%, 100% { transform: translate3d(0, 110vh, 0); } }
.fx-embers i { position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: #ff5a5e; box-shadow: 0 0 8px 2px rgba(255, 70, 70, .55); opacity: 0; animation: fx-ember 16s linear infinite; }
.fx-embers i:nth-child(1)  { left: 6%;  animation-delay: 0s;   animation-duration: 17s; }
.fx-embers i:nth-child(2)  { left: 14%; animation-delay: -4s;  animation-duration: 21s; transform: scale(.7); }
.fx-embers i:nth-child(3)  { left: 22%; animation-delay: -9s;  animation-duration: 15s; }
.fx-embers i:nth-child(4)  { left: 31%; animation-delay: -2s;  animation-duration: 23s; }
.fx-embers i:nth-child(5)  { left: 39%; animation-delay: -12s; animation-duration: 18s; }
.fx-embers i:nth-child(6)  { left: 47%; animation-delay: -6s;  animation-duration: 20s; }
.fx-embers i:nth-child(7)  { left: 55%; animation-delay: -15s; animation-duration: 16s; }
.fx-embers i:nth-child(8)  { left: 63%; animation-delay: -3s;  animation-duration: 22s; }
.fx-embers i:nth-child(9)  { left: 70%; animation-delay: -10s; animation-duration: 19s; }
.fx-embers i:nth-child(10) { left: 77%; animation-delay: -7s;  animation-duration: 24s; }
.fx-embers i:nth-child(11) { left: 84%; animation-delay: -13s; animation-duration: 17s; }
.fx-embers i:nth-child(12) { left: 90%; animation-delay: -1s;  animation-duration: 21s; }
.fx-embers i:nth-child(13) { left: 95%; animation-delay: -8s;  animation-duration: 18s; }
.fx-embers i:nth-child(14) { left: 35%; animation-delay: -17s; animation-duration: 26s; }
@keyframes fx-ember {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  10% { opacity: .75; }
  50% { transform: translate3d(28px, -50vh, 0); }
  85% { opacity: .35; }
  100% { opacity: 0; transform: translate3d(-18px, -105vh, 0); }
}

/* page content rises in */
.content > * { animation: rise .55s cubic-bezier(.2, .8, .2, 1) backwards; }
.content > *:nth-child(2) { animation-delay: .06s; }
.content > *:nth-child(3) { animation-delay: .12s; }
.content > *:nth-child(4) { animation-delay: .18s; }
.content > *:nth-child(5) { animation-delay: .24s; }
.content > *:nth-child(n+6) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.card { transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: #212128; }

/* language switch flags */
.flag { width: 18px; height: 12px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.lang-switch button { display: inline-flex; align-items: center; gap: 6px; }
.lang-switch button:not(.on) .flag { opacity: .75; }
.lang-link { display: inline-flex; align-items: center; gap: 7px; }

/* ---------------- charts ---------------- */
.chart-card { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.chart-card > .card-head { flex: none; }
.chart-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(229, 56, 59, .55), transparent); }
.card-sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: rgba(6, 6, 8, .6); border: 1px solid var(--border); border-radius: 11px; }
.seg button { border: 0; background: none; color: var(--muted); font: 600 12.5px var(--font); padding: 6px 12px; border-radius: 8px; cursor: pointer; transition: background .15s, color .15s; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--red); color: #fff; box-shadow: 0 4px 16px rgba(229, 56, 59, .35); }
.fill-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 14px; animation: rise .35s backwards; }
.fs { background: rgba(10, 10, 13, .92); padding: 12px 14px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fs-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 600; }
.fs strong { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; }
.fs strong small { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 1px; }
.fs-sub { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); animation: pulse 2.2s infinite; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--text-2); font-size: 12.5px; margin-bottom: 4px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.key-area { width: 14px; height: 10px; border-radius: 3px; background: linear-gradient(180deg, rgba(255, 77, 80, .55), rgba(255, 77, 80, .12)); }
.key-line { width: 16px; height: 2px; border-radius: 2px; background: #ff5252; }
.key-cap { width: 16px; height: 0; border-top: 1px solid rgba(255, 120, 122, .75); }

.chart { position: relative; min-height: 290px; outline: none; border-radius: 10px; }
.chart-sm { min-height: 250px; flex: 1; }
.chart:focus-visible { box-shadow: 0 0 0 2px var(--red-line); }
.chart-svg { display: block; width: 100%; overflow: visible; touch-action: pan-y; }
.chart-svg text { font: 11px var(--font); fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart-svg .y-label { text-anchor: end; }
.chart-svg .x-label { text-anchor: middle; }
.chart-svg .grid line { stroke: rgba(255, 255, 255, .055); stroke-width: 1; shape-rendering: crispEdges; }
.chart-svg .grid line.base { stroke: rgba(255, 255, 255, .16); }
.chart-svg .cap { stroke: rgba(255, 120, 122, .6); stroke-width: 1; shape-rendering: crispEdges; }
.chart-svg .area { opacity: .95; }
.chart-svg .peak-line { fill: none; stroke: rgba(255, 110, 112, .45); stroke-width: 1; stroke-linejoin: round; }
.chart-svg .line { fill: none; stroke: #ff5252; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 82, 82, .55)); }
.chart-svg .end { fill: #ff5252; stroke: var(--surface); stroke-width: 2; }
.chart-svg .halo { fill: rgba(255, 82, 82, .35); transform-box: fill-box; transform-origin: center; animation: halo 2s ease-out infinite; }
@keyframes halo { from { transform: scale(.4); opacity: .9; } to { transform: scale(2); opacity: 0; } }
.chart-svg .hover { opacity: 0; transition: opacity .12s; }
.chart-svg .hover.on { opacity: 1; }
.chart-svg .crosshair { stroke: rgba(255, 255, 255, .22); stroke-width: 1; shape-rendering: crispEdges; }
.chart-svg .dot-avg { fill: #ff5252; stroke: var(--surface); stroke-width: 2; }
.chart-svg .dot-peak { fill: #ffb0b1; stroke: var(--surface); stroke-width: 2; }
.chart-svg .col { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .15s, filter .15s; }
.chart-svg .col.in { transform: scaleY(1); }
.chart-svg .cols.dim .col { opacity: .45; }
.chart-svg .cols.dim .col.hl { opacity: 1; filter: brightness(1.25) drop-shadow(0 0 8px rgba(255, 82, 82, .6)); }
.chart-svg .cap-label { text-anchor: middle; fill: var(--text-2); font-weight: 600; opacity: 0; transition: opacity .4s .7s; }
.chart-svg.shown .cap-label { opacity: 1; }
.chart-tip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 150px; padding: 9px 11px; border-radius: 10px;
  background: rgba(10, 10, 13, .96); border: 1px solid var(--border-2); box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(3px); transition: opacity .12s, transform .12s; font-size: 12.5px;
}
.chart-tip.on { opacity: 1; transform: none; }
.tt-title { color: var(--muted); font-size: 11.5px; margin-bottom: 5px; white-space: nowrap; }
.tt-row { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tt-row + .tt-row { margin-top: 3px; }
.tt-row strong { font-size: 14px; font-variant-numeric: tabular-nums; color: #fff; }
.tt-row span { color: var(--muted); }
.tt-key { width: 12px; height: 2px; border-radius: 2px; flex: none; }
.tt-key.k-line { background: #ff5252; }
.tt-key.k-area { background: rgba(255, 140, 142, .7); }
.tt-key.k-bar { height: 8px; width: 8px; border-radius: 2px; background: linear-gradient(180deg, #ff5a5e, #a4161a); }

/* ranked bars ( most played maps ) */
.rank-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: none; }
.rank-bars li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; grid-template-rows: auto 6px; gap: 5px 10px; align-items: center; }
.rb-rank { grid-row: 1 / 3; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); }
.rank-bars li:first-child .rb-rank { color: #fff; background: linear-gradient(145deg, var(--red), var(--red-dark)); border-color: transparent; box-shadow: 0 0 14px rgba(229, 56, 59, .4); }
.rank-bars li:nth-child(2) .rb-rank, .rank-bars li:nth-child(3) .rb-rank { color: #ff9a9c; border-color: var(--red-line); }
.rb-label { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-val { font-size: 12.5px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rb-val small { color: var(--muted); font-size: 11.5px; margin-left: 8px; }
.rb-track { grid-column: 2 / 4; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.rb-fill { position: relative; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #7d1014, #e5383b 70%, #ff6b6e); box-shadow: 0 0 10px rgba(229, 56, 59, .45); transition: width 1s cubic-bezier(.2, .8, .2, 1); overflow: hidden; }
.rb-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transform: translateX(-100%); animation: shine 3.2s ease-in-out 1.2s infinite; }
@keyframes shine { 60%, 100% { transform: translateX(100%); } }

@media (max-width: 760px) {
  .fill-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fs strong { font-size: 20px; }
  .fs-sub { white-space: normal; }
  .seg { width: 100%; }
  .seg button { flex: 1; }
  .chart { min-height: 230px; }
}
@media (max-width: 640px) {
  .lang-switch button span { display: none; }
  .fx-embers, .fx-sweep { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-embers, .fx-sweep { display: none; }
  .chart-svg .col { transform: none; }
}

/* ---------------- servers: picker, roles, server list ---------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.srv-pick { display: flex; align-items: center; gap: 9px; margin: 0 10px 6px; padding: 8px 10px 8px 12px; border-radius: 11px; background: linear-gradient(90deg, rgba(229, 56, 59, .10), rgba(229, 56, 59, .02)); border: 1px solid var(--red-line); color: var(--text); }
.srv-pick > .ic { color: var(--red-2); flex: none; width: 16px; height: 16px; }
.srv-pick .srv-name { font-weight: 650; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.srv-pick select { flex: 1; min-width: 0; height: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); font: 600 13px var(--font); cursor: pointer; }
.srv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.srv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--red-soft); border: 1px solid var(--red-line); color: #ffb0b1; }
.srv-chip .ic { width: 13px; height: 13px; }
.srv-chip.muted { background: var(--surface-2); border-color: var(--border-2); color: var(--muted); }
.role-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 18px; }
.role-pick { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--bg-2); cursor: pointer; transition: border-color .15s, background .15s; }
.role-pick:hover { border-color: #44444f; }
.role-pick:has(input:checked) { border-color: var(--red-line); background: var(--red-soft); box-shadow: 0 0 0 1px var(--red-line) inset; }
.role-pick input { margin-top: 3px; accent-color: var(--red); }
.role-pick span { display: flex; flex-direction: column; gap: 2px; }
.role-pick strong { font-size: 13.5px; }
.role-pick small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.srv-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.srv-checks .check { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--bg-2); }
.srv-checks .check:has(input:checked) { border-color: var(--red-line); background: var(--red-soft); color: var(--text); }
.srv-card { display: flex; flex-direction: column; gap: 14px; }
.srv-card.locked { border-color: rgba(245, 158, 11, .35); }
.srv-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.srv-card-head h3 { display: flex; align-items: center; gap: 9px; font-size: 16px; flex-wrap: wrap; }
.srv-card-head h3 .ic { color: var(--red-2); }
.srv-card .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.srv-card details { border-top: 1px solid var(--border); padding-top: 12px; }
.srv-card summary { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 600; font-size: 13px; }
.srv-card summary .ic { width: 16px; height: 16px; color: var(--red-2); }
.code-block { margin: 8px 0 10px; padding: 12px 14px; border-radius: 10px; background: #08080a; border: 1px solid var(--border-2); color: #ffd0d1; font: 12.5px/1.6 var(--mono); overflow-x: auto; white-space: pre; }
@media (max-width: 640px) {
  .role-picks { grid-template-columns: minmax(0, 1fr); }
  .srv-card .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------- subscription card ( dashboard ) ---------------- */
.sub-card {
  --sub: #ff5252; --sub-soft: rgba(255, 82, 82, .14); --sub-glow: rgba(229, 56, 59, .35);
  position: relative; display: flex; align-items: center; gap: 20px; padding: 18px 22px; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, rgba(19, 19, 23, .92), rgba(11, 11, 14, .96));
  border: 1px solid transparent;
}
.sub-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background: linear-gradient(110deg, transparent 0%, var(--sub-glow) 25%, var(--sub) 50%, var(--sub-glow) 75%, transparent 100%);
  background-size: 250% 100%; animation: sub-border 6s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.sub-card::after { content: ""; position: absolute; width: 320px; height: 320px; left: -110px; top: -150px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, var(--sub-soft), transparent); animation: sub-breathe 5s ease-in-out infinite alternate; }
@keyframes sub-border { to { background-position: -250% 0; } }
@keyframes sub-breathe { to { transform: translate(40px, 20px) scale(1.15); opacity: .7; } }
.sub-soon { --sub: #fbbf24; --sub-soft: rgba(245, 158, 11, .14); --sub-glow: rgba(245, 158, 11, .35); }
.sub-critical { --sub: #ff3b3f; --sub-soft: rgba(255, 59, 63, .22); --sub-glow: rgba(255, 59, 63, .5); }
.sub-expired { --sub: #8a8a96; --sub-soft: rgba(229, 56, 59, .10); --sub-glow: rgba(229, 56, 59, .3); }
.sub-ring { position: relative; width: 76px; height: 76px; flex: none; }
.sub-ring svg { width: 100%; height: 100%; display: block; }
.sub-track { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 5; }
.sub-arc { fill: none; stroke: var(--sub); stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--sub-glow)); animation: sub-ring 1.4s cubic-bezier(.2, .8, .2, 1) backwards .2s; }
@keyframes sub-ring { from { stroke-dashoffset: 163.36; } }
.sub-days { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.sub-days strong { font-size: 24px; font-weight: 750; letter-spacing: -.02em; }
.sub-days small { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
.sub-main { flex: 1; min-width: 0; }
.sub-eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--sub); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sub-eyebrow .ic { width: 14px; height: 14px; }
.sub-main h3 { font-size: 19px; margin: 4px 0 2px; }
.sub-main p { margin: 0; color: var(--text-2); font-size: 13.5px; }
.sub-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.sub-state { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--sub); background: var(--sub-soft); border: 1px solid var(--sub-glow); }
.sub-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sub); box-shadow: 0 0 8px var(--sub); }
.sub-critical .sub-state::before { animation: sub-blink 1s ease-in-out infinite; }
@keyframes sub-blink { 50% { opacity: .25; } }
@media (max-width: 640px) {
  .sub-card { flex-wrap: wrap; gap: 14px; padding: 16px; }
  .sub-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}

/* ================================================================ mix panel */
.grow { flex: 1; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.good { color: #4ade80; }
.dim td { opacity: .55; }
tr.sel td { background: rgba(229, 56, 59, .06); }
tr[data-href] { cursor: pointer; }
img.gone { display: none !important; }

/* colours that come from the database ( data-color -> --c, set by app.js ) */
.swatch { display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--c, var(--muted)); box-shadow: 0 0 8px color-mix(in srgb, var(--c, transparent) 60%, transparent); flex: none; }
.rank-pill { display: inline-flex; align-items: center; gap: 7px; height: 25px; padding: 0 11px 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 650; white-space: nowrap;
  color: color-mix(in srgb, var(--c, #9aa3b5) 70%, #fff); background: color-mix(in srgb, var(--c, #9aa3b5) 13%, transparent); border: 1px solid color-mix(in srgb, var(--c, #9aa3b5) 40%, transparent); }
.rank-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, #9aa3b5); box-shadow: 0 0 8px var(--c, transparent); }
.grade-opt[data-color] { --tone: var(--c); }
.g-name { display: flex; align-items: center; gap: 8px; }

/* points ranks: emblem pictures + letter badges coloured by tier */
.emb { width: 34px; height: 26px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.emb-xl { width: 96px; height: 72px; }
.rk { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 22px; padding: 0 7px; border-radius: 7px; font: 800 12px var(--font); letter-spacing: .02em;
  border: 1px solid; background: rgba(255, 255, 255, .04); }
.rk-lg { height: 28px; min-width: 44px; font-size: 14px; border-radius: 9px; }
.rk-l { color: #c9cfda; border-color: rgba(201, 207, 218, .35); }
.rk-m { color: #5fd3ff; border-color: rgba(95, 211, 255, .4); background: rgba(95, 211, 255, .08); }
.rk-h { color: #b98bff; border-color: rgba(185, 139, 255, .45); background: rgba(185, 139, 255, .08); }
.rk-p { color: #ff9a4d; border-color: rgba(255, 154, 77, .45); background: rgba(255, 154, 77, .08); }
.rk-g { color: #ffd34d; border-color: rgba(255, 211, 77, .5); background: rgba(255, 211, 77, .1); box-shadow: 0 0 14px rgba(255, 211, 77, .15); }

/* top players on the dashboard */
.leader { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.leader-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); }
.leader-pos { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; color: var(--muted); background: var(--surface-3); flex: none; }
.pos-1 .leader-pos { color: #1a1300; background: linear-gradient(180deg, #ffe08a, #f5b82e); box-shadow: 0 0 16px rgba(245, 184, 46, .35); }
.pos-2 .leader-pos { color: #0f1014; background: linear-gradient(180deg, #f1f4f8, #aeb6c4); }
.pos-3 .leader-pos { color: #1b0f06; background: linear-gradient(180deg, #f3b58a, #c27943); }
.pos-1 { border-color: rgba(245, 184, 46, .35); background: linear-gradient(90deg, rgba(245, 184, 46, .08), transparent 60%), var(--bg-2); }
.leader-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.leader-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-pts { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.leader-pts strong { font-size: 15px; min-width: 52px; text-align: right; }

/* scores */
.score { display: inline-flex; align-items: center; gap: 4px; font: 800 14px var(--font); font-variant-numeric: tabular-nums; }
.score i { color: var(--muted); font-style: normal; font-weight: 600; }
.score b { color: var(--muted); }
.score .sc-ct.win { color: #6aa6ff; text-shadow: 0 0 12px rgba(106, 166, 255, .45); }
.score .sc-t.win { color: #ffa25a; text-shadow: 0 0 12px rgba(255, 162, 90, .45); }
.tag-ct { background: rgba(76, 141, 255, .14); color: #8db6ff; border-color: rgba(76, 141, 255, .4); }
.tag-t { background: rgba(255, 140, 60, .14); color: #ffb27a; border-color: rgba(255, 140, 60, .4); }
.tag-green { background: var(--green-soft); color: #4ade80; border-color: rgba(34, 197, 94, .35); }
.map-thumb { width: 56px; height: 42px; object-fit: cover; border-radius: 7px; border: 1px solid var(--border-2); flex: none; }

/* one match */
.match-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 180px 1fr; gap: 6px 24px; align-items: center; }
.match-map { grid-row: span 2; width: 180px; height: 135px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border-2); box-shadow: var(--shadow); }
.match-score { display: flex; align-items: center; justify-content: center; gap: 10px 26px; }
.ms-team { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 150px; padding: 12px 18px 10px; border-radius: 14px; border: 1px solid transparent; }
.ms-name { color: var(--muted); font-weight: 650; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; white-space: nowrap; }
.ms-team strong { font-size: 56px; line-height: 1; letter-spacing: -.03em; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ms-res { min-height: 20px; padding: 2px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ms-res:empty { visibility: hidden; }
.ms-vs { font-size: 34px; font-weight: 700; color: var(--muted); padding-bottom: 6px; }
.ms-ct.win { background: rgba(76, 141, 255, .07); border-color: rgba(76, 141, 255, .28); }
.ms-t.win { background: rgba(255, 140, 60, .07); border-color: rgba(255, 140, 60, .28); }
.ms-ct.win .ms-name { color: #8db6ff; }
.ms-t.win .ms-name { color: #ffb27a; }
.ms-ct.win strong { color: #6aa6ff; text-shadow: 0 0 30px rgba(106, 166, 255, .45); }
.ms-t.win strong { color: #ffa25a; text-shadow: 0 0 30px rgba(255, 162, 90, .45); }
.ms-ct.win .ms-res { background: rgba(76, 141, 255, .16); color: #a9c8ff; }
.ms-t.win .ms-res { background: rgba(255, 140, 60, .16); color: #ffc79e; }
.match-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; color: var(--text-2); font-size: 13px; }
.match-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.match-meta .mvp { color: #ffd27a; font-weight: 650; }
.team-card { border-top: 2px solid var(--muted); }
.team-card.tc-ct { border-top-color: #4c8dff; }
.team-card.tc-t { border-top-color: #ff8c3c; }

/* one player */
.profile-points { margin-left: auto; text-align: right; display: flex; flex-direction: column; }
.profile-points strong { font-size: 34px; line-height: 1.05; letter-spacing: -.02em; background: linear-gradient(180deg, #fff, #ff8a8c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.profile-points span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.profile-hero .rank-bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin: 12px 0 4px; max-width: 420px; }
.profile-hero .rank-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red-dark), var(--red-2)); border-radius: 99px; transition: width .8s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 0 12px rgba(255, 82, 82, .5); }

/* settings: rank ladder editor with a live list next to it */
.ladder-edit { display: grid; grid-template-columns: 170px 1fr; gap: 14px; align-items: start; }
.ladder-edit textarea { min-height: 330px; line-height: 1.75; }
.ladder-preview { display: flex; flex-direction: column; gap: 3px; max-height: 380px; overflow: auto; }
.ladder-preview > div { display: flex; align-items: center; gap: 10px; padding: 3px 6px; border-radius: 8px; }
.ladder-preview > div:hover { background: var(--surface-2); }
textarea { width: 100%; resize: vertical; }

@media (max-width: 980px) {
  .match-hero { grid-template-columns: 1fr; text-align: center; }
  .match-map { grid-row: auto; width: 100%; height: 160px; }
  .ms-team { min-width: 0; padding: 10px 12px 8px; }
  .ms-team strong { font-size: 42px; }
  .ladder-edit { grid-template-columns: 1fr; }
  .profile-points { margin-left: 0; text-align: left; }
}
.fchip:has(.swatch)::before { display: none; }
.srv-card .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .srv-card .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .match-score { gap: 6px 10px; }
  .ms-name { font-size: 10px; letter-spacing: .05em; white-space: normal; text-align: center; }
  .ms-team strong { font-size: 36px; }
  .ms-vs { font-size: 26px; }
}

/* player page: admin rights + edit player */
.admin-now { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.admin-now .flags { margin-left: auto; }
.adm-form { display: flex; gap: 8px; margin: 0; }
.adm-form select { flex: 1; min-width: 0; }
.admin-box.is-admin { border-color: rgba(229, 72, 77, .35); }
.btn-row.tight { gap: 6px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }


/* ======================================================================
   RED-LINE logo v2 ( picture ): sidebar + login
   ====================================================================== */
.brand { flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px 18px 14px; }
.brand-logo { display: block; width: 100%; max-width: 208px; height: auto; filter: drop-shadow(0 0 12px rgba(229, 56, 59, .35)); transition: filter .3s, transform .3s; }
.brand:hover .brand-logo { filter: drop-shadow(0 0 18px rgba(229, 56, 59, .7)); transform: translateY(-1px); }
.brand .brand-text small { display: flex; align-items: center; gap: 8px; padding-left: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.brand .brand-text small::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--red); box-shadow: 0 0 8px rgba(229, 56, 59, .8); }

.login-brand { flex-direction: column; align-items: center; text-align: center; gap: 8px; margin: 0 0 8px; }
.login-logo-v2 { position: relative; display: block; width: min(300px, 100%); margin: -6px auto 0; }
.login-logo-v2 img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 30px rgba(229, 56, 59, .42)); animation: lg-in .8s cubic-bezier(.2, .7, .2, 1) both, lg-glow 4.5s ease-in-out 1s infinite alternate; }
.login-logo-v2::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 140% 0; mix-blend-mode: overlay;
  -webkit-mask: url(logo-spk-lg.webp) center / 100% 100% no-repeat; mask: url(logo-spk-lg.webp) center / 100% 100% no-repeat;
  animation: lg-shine 6.5s ease-in-out 1.2s infinite; }
.login-brand h1 { font-size: 15px; letter-spacing: .3em; text-transform: uppercase; color: var(--text-2); margin: 2px 0 0; }
.login-brand p { margin: 0; color: var(--muted); }
@keyframes lg-in { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@keyframes lg-glow { to { filter: drop-shadow(0 12px 44px rgba(229, 56, 59, .62)); } }
@keyframes lg-shine { 0% { background-position: 140% 0; } 45%, 100% { background-position: -40% 0; } }
@media (prefers-reduced-motion: reduce) {
  .login-logo-v2 img, .login-logo-v2::after { animation: none; }
  .brand-logo { transition: none; }
}

/* game server tiles ( dashboard, Server list ) */
.gs-head-side { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gs-tile { position: relative; overflow: hidden; isolation: isolate; min-height: 210px; border-radius: var(--radius); border: 1px solid var(--border);
  background: radial-gradient(120% 90% at 100% 0%, rgba(229, 56, 59, .2), transparent 55%), linear-gradient(160deg, var(--surface-3), var(--bg-2));
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.gs-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 6, 8, .25) 0%, rgba(6, 6, 8, .7) 50%, rgba(6, 6, 8, .94) 100%); }
.gs-tile::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 1; background: linear-gradient(90deg, transparent, #55555f, transparent); }
.gs-tile.is-on { border-color: rgba(34, 197, 94, .3); }
.gs-tile.is-on::before { background: linear-gradient(90deg, transparent, var(--green), transparent); }
.gs-tile:hover { transform: translateY(-3px); border-color: var(--red-line); box-shadow: 0 16px 34px rgba(0, 0, 0, .45), 0 0 0 1px rgba(229, 56, 59, .12); }
.gs-map { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .6; transform: scale(1.04); transition: transform .8s ease, opacity .3s ease; }
.gs-tile:hover .gs-map { transform: scale(1.12); opacity: .75; }
.gs-tile.is-off .gs-map { filter: grayscale(1); opacity: .22; }
.gs-body { position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 210px; padding: 14px 16px 16px; }
.gs-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.gs-status, .gs-mapname { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 600;
  background: rgba(6, 6, 8, .62); border: 1px solid rgba(255, 255, 255, .09); backdrop-filter: blur(6px); max-width: 100%; }
.is-on .gs-status { color: #4ade80; border-color: rgba(34, 197, 94, .38); }
.is-off .gs-status { color: var(--muted); }
.gs-mapname { font-family: var(--mono); color: var(--text); }
.gs-mapname .ic { width: 13px; height: 13px; color: var(--red-2); flex: none; }
.gs-name { margin: 12px 0 0; font-size: 16.5px; font-weight: 700; line-height: 1.25; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .7);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.gs-key { font-family: var(--mono); font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-players { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.gs-count { display: flex; align-items: baseline; gap: 2px; }
.gs-count strong { font-size: 28px; font-weight: 800; line-height: 1; color: #fff; letter-spacing: -.02em; }
.gs-count span { color: var(--text-2); font-weight: 600; font-size: 15px; }
.gs-count em { font-style: normal; color: var(--muted); font-size: 12px; margin-left: 7px; }
.gs-meter { width: 100%; height: 6px; background: rgba(255, 255, 255, .09); }
.gs-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.gs-actions .btn { backdrop-filter: blur(6px); }
.gs-addr { font-family: var(--mono); font-size: 12px; background: rgba(6, 6, 8, .55); min-width: 0; }
.gs-addr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 16px; text-align: center; color: var(--muted);
  border: 1px dashed var(--border-2); border-radius: var(--radius); }
.gs-empty .ic { width: 28px; height: 28px; color: var(--red-2); }
.gs-empty p { margin: 0; max-width: 460px; }
.srv-games { border-top: 1px solid var(--border); padding-top: 12px; }
.srv-games > h4 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.srv-games > h4 .ic { width: 16px; height: 16px; color: var(--red-2); }
.srv-games .gs-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.gs-more { margin-top: 12px; border-top: 1px solid rgba(255, 255, 255, .09); padding-top: 10px; }
.gs-more > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.gs-more > summary::-webkit-details-marker { display: none; }
.gs-more > summary .ic { width: 15px; height: 15px; color: var(--red-2); transition: transform .2s ease; }
.gs-more[open] > summary .ic { transform: rotate(90deg); }
.gs-more > summary:hover { color: #fff; }
.gs-more > summary:focus { outline: none; }
.gs-more > summary:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; border-radius: 6px; }
.gs-more .scoreboard { margin-top: 10px; }
.gs-more .gs-ctl { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.gs-tile:has(.gs-more[open]) { grid-column: 1 / -1; transform: none; }
.gs-tile:has(.gs-more[open]) .gs-map { opacity: .25; }
/* players per server in the "Server fill" card */
.fill-servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-bottom: 14px; }
.fsrv { display: flex; flex-direction: column; gap: 7px; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2);
  font: inherit; color: inherit; text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, opacity .2s ease; }
.fsrv:hover { border-color: var(--border-2); background: var(--surface-3); }
.fsrv.on { border-color: var(--red); background: linear-gradient(180deg, rgba(229, 56, 59, .14), var(--surface-2)); box-shadow: 0 0 0 1px rgba(229, 56, 59, .35), 0 8px 22px rgba(229, 56, 59, .14); opacity: 1; }
.fsrv:focus-visible { outline: 2px solid var(--red-2); outline-offset: 2px; }
.fsrv-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fsrv-top strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.fsrv-n { font-family: var(--mono); font-size: 13px; color: var(--text-2); flex: none; }
.fsrv-n b { color: #fff; font-size: 16px; }
.fsrv .meter { width: 100%; height: 6px; }
.fsrv.full:not(.on) { border-color: rgba(34, 197, 94, .45); }
.fsrv.full .meter-fill { background: linear-gradient(90deg, #16a34a, #4ade80); }
.fsrv.off { opacity: .55; }
.fill-pane .fill-stats { animation: none; }
.fsrv .meter { display: block; }
.fsrv-sub { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .gs-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .gs-tile, .gs-map { transition: none; } .gs-tile:hover { transform: none; } .gs-tile:hover .gs-map { transform: scale(1.04); } }

.quick-dates .chip.on { border-color: var(--red-line); color: #fff; }
.filters .field.quick { flex: 0 0 auto; }
.filters .field.quick .quick-dates { flex-wrap: nowrap; }
.filters .field.quick .chip { height: 38px; padding: 0 12px; white-space: nowrap; }

/* ---------------- 2.1.0: server picker = a menu ( summary + links ), opens in the sidebar under the button ---------------- */
.srv-dd { margin: 0 10px 8px; }
.srv-dd > .srv-pick { margin: 0; padding: 7px 8px 7px 7px; gap: 10px; cursor: pointer; list-style: none; -webkit-user-select: none; user-select: none;
  background: linear-gradient(180deg, rgba(229, 56, 59, .14), rgba(229, 56, 59, .04)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); transition: border-color .2s, box-shadow .2s, background .2s; }
.srv-dd > .srv-pick::-webkit-details-marker { display: none; }
.srv-dd > .srv-pick::marker { content: ""; }
.srv-dd > .srv-pick > .ic:first-child { width: 30px; height: 30px; padding: 7px; border-radius: 8px; color: #fff;
  background: linear-gradient(145deg, var(--red-2), var(--red-dark)); box-shadow: 0 4px 12px rgba(229, 56, 59, .4), inset 0 1px 0 rgba(255, 255, 255, .22); }
.srv-dd .srv-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.2; }
.srv-dd .srv-txt small { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.srv-dd .srv-txt .srv-name { font-size: 13.5px; color: #fff; }
.srv-dd .srv-chev { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 6px; color: var(--text-2); background: rgba(255, 255, 255, .06); transform: rotate(90deg); transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .2s, color .2s; }
.srv-dd > .srv-pick:hover, .srv-dd[open] > .srv-pick { border-color: rgba(229, 56, 59, .6); box-shadow: 0 0 0 3px rgba(229, 56, 59, .1); }
.srv-dd[open] .srv-chev { transform: rotate(-90deg); background: var(--red); color: #fff; }
.srv-dd > .srv-pick:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.srv-dd-list { margin-top: 6px; padding: 5px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border-2); box-shadow: var(--shadow); animation: srvdd-in .18s cubic-bezier(.2, .8, .2, 1); }
@keyframes srvdd-in { from { opacity: 0; transform: translateY(-4px); } }
.srv-dd-list a { display: flex; align-items: center; gap: 10px; padding: 7px; border-radius: 9px; color: var(--text-2); font-size: 13px; font-weight: 600; border: 1px solid transparent; }
.srv-dd-list a + a { margin-top: 2px; }
.srv-dd-list a:hover { background: var(--surface-2); color: #fff; }
.srv-dd-list a.on { background: linear-gradient(90deg, rgba(229, 56, 59, .18), rgba(229, 56, 59, .04)); border-color: var(--red-line); color: #fff; }
.srv-dd-list a > .ic { flex: none; width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--red); color: #fff; }
.srv-dd-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv-mono { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.srv-c0 { background: linear-gradient(145deg, #ff5252, #a4161a); }
.srv-c1 { background: linear-gradient(145deg, #38bdf8, #0b5f8c); }
.srv-c2 { background: linear-gradient(145deg, #fb923c, #b34700); }
.srv-c3 { background: linear-gradient(145deg, #a78bfa, #4b2aa8); }
.srv-c4 { background: linear-gradient(145deg, #34d399, #13784a); }
.srv-c5 { background: linear-gradient(145deg, #fcd34d, #a87800); }
@media (prefers-reduced-motion: reduce) {
  .srv-dd .srv-chev, .srv-dd > .srv-pick { transition: none; }
  .srv-dd-list { animation: none; }
}

/* ---------------- login page v3 ( 2026-10-27, user: "login fields look ugly ... make something awesome" ) ----------------
   Split screen: brand side ( logo over the CS artwork, what the panel does ) + the login card. Fields with icons, show / hide
   password, Caps Lock hint, busy button ( app.js ), Chrome's autofill colours overridden. Phones: only the card, logo on top. */
body.bare { padding: 24px 16px; }
.auth {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  width: min(1120px, 100%); min-height: min(660px, calc(100vh - 48px));
  border-radius: 26px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(13, 13, 17, .92);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .04);
  animation: auth-in .6s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes auth-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }

/* brand side */
.auth-side {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; padding: 46px 46px 34px;
  background:
    linear-gradient(160deg, rgba(229, 56, 59, .30) 0%, rgba(10, 10, 12, .15) 42%, rgba(10, 10, 12, .85) 100%),
    linear-gradient(0deg, rgba(8, 8, 10, .96) 0%, rgba(8, 8, 10, .35) 55%, rgba(8, 8, 10, .55) 100%),
    url(auth-bg.jpg) 58% center / cover no-repeat;
}
.auth-side::after {
  content: ""; position: absolute; right: 0; top: 8%; bottom: 8%; width: 1px;
  background: linear-gradient(transparent, rgba(229, 56, 59, .8), transparent);
}
.auth-side-logo { display: block; width: min(330px, 92%); height: auto; filter: drop-shadow(0 12px 34px rgba(229, 56, 59, .45)); }
.auth-side h2 { margin: 26px 0 10px; font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -.025em; color: #fff; }
.auth-side p { margin: 0; max-width: 400px; color: #c9c9d2; font-size: 15px; line-height: 1.6; }
.auth-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.auth-points li { display: flex; align-items: center; gap: 13px; color: #ececf1; font-weight: 550; font-size: 14.5px; }
.auth-points li .ic {
  flex: none; width: 36px; height: 36px; padding: 9px; border-radius: 11px; color: #ff6b6e;
  background: rgba(229, 56, 59, .16); border: 1px solid rgba(229, 56, 59, .38);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.auth-side-foot { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .42); }

/* form side */
.auth-main {
  display: grid; place-items: center; padding: 44px 34px;
  background: radial-gradient(520px 320px at 100% 0%, rgba(229, 56, 59, .09), transparent 70%);
}
.auth-card { display: flex; flex-direction: column; gap: 18px; width: min(380px, 100%); }
.auth-logo-sm { display: none; }
.auth-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #ff5a5d; }
.auth-kicker::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: #ff5a5d; box-shadow: 0 0 10px rgba(229, 56, 59, .9); }
.auth-head h1 { margin: 10px 0 6px; font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; color: #fff; }
.auth-head p { margin: 0; color: var(--muted); font-size: 14.5px; }
.auth-card .alert { margin: 0; }

.auth-field { display: flex; flex-direction: column; gap: 8px; }
.auth-label { font-size: 12.5px; font-weight: 650; color: var(--text-2); }
.auth-input {
  position: relative; display: flex; align-items: center; height: 52px; border-radius: 14px;
  background: #0e0e12; border: 1px solid #2a2a33; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.auth-input:hover { border-color: #3b3b46; }
.auth-input:focus-within { background: #111116; border-color: #e5383b; box-shadow: 0 0 0 4px rgba(229, 56, 59, .16), 0 10px 28px rgba(229, 56, 59, .12); }
.auth-input > .ic { position: absolute; left: 16px; width: 18px; height: 18px; color: #6f6f7c; pointer-events: none; transition: color .15s ease; }
.auth-input:focus-within > .ic { color: #ff5a5d; }
.auth-input input[type] {
  flex: 1; min-width: 0; width: auto; height: 100%; margin: 0; padding: 0 14px 0 46px;
  border: 0 !important; border-radius: 14px; background: transparent !important; box-shadow: none !important; outline: none;
  color: #fff; font: 600 15px var(--font); letter-spacing: .01em;
}
.auth-input input[type=password] { letter-spacing: .16em; }
.auth-input input::placeholder { color: #55555f; letter-spacing: normal; font-weight: 500; }
/* Chrome autofill paints its own slate-blue: keep the field dark */
.auth-input input:-webkit-autofill,
.auth-input input:-webkit-autofill:hover,
.auth-input input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff; caret-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #0e0e12 inset !important; box-shadow: 0 0 0 1000px #0e0e12 inset !important;
  transition: background-color 600000s 0s, color 600000s 0s;
}
.auth-input:focus-within input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #111116 inset !important; box-shadow: 0 0 0 1000px #111116 inset !important; }

.auth-eye {
  position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin-right: 6px;
  border: 0; border-radius: 10px; background: transparent; color: #6f6f7c; cursor: pointer; transition: color .15s ease, background-color .15s ease;
}
.auth-eye .ic { width: 18px; height: 18px; }
.auth-eye:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.auth-eye.on { color: #ff5a5d; }
.auth-eye.on::after { content: ""; position: absolute; width: 21px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(-45deg); box-shadow: 0 0 0 2px #111116; }
.auth-caps { display: flex; align-items: center; gap: 8px; margin: -8px 0 0; font-size: 12.5px; font-weight: 600; color: #fbbf24; }
.auth-caps[hidden] { display: none; }
.auth-caps .ic { width: 14px; height: 14px; }

.auth-submit {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; margin-top: 4px; border: 0; border-radius: 14px; cursor: pointer;
  font: 700 15px var(--font); letter-spacing: .02em; color: #fff;
  background: linear-gradient(135deg, #ff5254 0%, #e5383b 45%, #a4161a 100%);
  box-shadow: 0 12px 30px rgba(229, 56, 59, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.auth-submit:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 16px 40px rgba(229, 56, 59, .45), inset 0 1px 0 rgba(255, 255, 255, .3); }
.auth-submit:active { transform: translateY(0); }
.auth-submit:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.auth-submit::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-18deg); transition: left .7s ease;
}
.auth-submit:hover::before { left: 125%; }
.auth-submit .ic { width: 18px; height: 18px; transition: transform .2s ease; }
.auth-submit:hover .ic { transform: translateX(3px); }
.auth-submit.busy { pointer-events: none; }
.auth-submit.busy > * { opacity: 0; }
.auth-submit.busy::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: auth-spin .7s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.auth-foot.center { justify-content: center; }
.auth-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.auth-back:hover { color: #fff; }
.auth-back .ic { width: 15px; height: 15px; }
.auth-lang { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #0e0e12; border: 1px solid #23232b; }
.auth-lang button {
  display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 0; border-radius: 9px;
  background: transparent; color: var(--muted); font: 600 12.5px var(--font); cursor: pointer; transition: color .15s ease, background-color .15s ease;
}
.auth-lang button:hover { color: #fff; }
.auth-lang button.on { color: #fff; background: #1d1d25; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 2px 8px rgba(0, 0, 0, .3); }

/* phones / small windows: only the card, the logo on top */
@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); width: min(460px, 100%); min-height: 0; border-radius: 22px; }
  .auth-side { display: none; }
  .auth-main { padding: 34px 24px 28px; }
  .auth-logo-sm { display: block; width: min(240px, 80%); height: auto; margin: 0 auto 6px; filter: drop-shadow(0 10px 26px rgba(229, 56, 59, .4)); }
  .auth-head { text-align: center; }
  .auth-head h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth { animation: none; }
  .auth-submit, .auth-submit::before, .auth-submit .ic, .auth-input { transition: none; }
}
/* end login page v3 */
/* ---------------- login page v5 ( 2026-10-28, user: "i want the same login for mixpanel.spkhosting and cspanel.spkhosting [ as panel.spikefresh.com ],
   remove the squares at the bottom" ) ----------------
   Replaces the v4 effects block and makes the v3 markup look like the panel.spikefresh.com login ( themes/spk login v2.4 ): 940 px glass card with a
   light running around it, plain dark brand side, logo 220 px, kicker with the green dot, uppercase
   labels, 50 px fields with red icons, uppercase red button with the light sweep, "© 2026 SPK Hosting" under the card. Background: drifting red glow +
   the red grid floor + embers ( canvas, app.js "login page v4 fx" ). Texts: "Your servers, / one click away." + a small line under every point. Only body.bare ( the login pages ). Same block in cspanel ( rl_panel ) and mixpanel. */
body.bare { min-height: 100vh; align-content: start; gap: 22px; padding-top: max(28px, 9vh); background: #07070a; }   /* card near the top, like the panel login */
body.bare::after { content: "\00a9  2026 SPK Hosting"; position: relative; z-index: 1; font-size: 12px; color: rgba(255, 255, 255, .35); }
body.bare .fx-grid, body.bare .fx-embers, body.bare .fx-sweep, body.bare .fx-glow { display: none; }   /* one glow ( ::before ) like the panel login - the panels' own .fx-glow made the page redder and the card look grey */
body.bare .fx::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(38% 34% at 22% 30%, rgba(229, 36, 59, .30), transparent 70%),
    radial-gradient(34% 30% at 80% 72%, rgba(229, 36, 59, .22), transparent 70%),
    radial-gradient(30% 26% at 70% 18%, rgba(255, 120, 60, .10), transparent 70%);
  filter: blur(10px);
  animation: authfx-drift 22s ease-in-out infinite alternate;
}
body.bare .fx::after {   /* the red grid floor going into the distance ( user: "leave the squares" ) - same as the panel login */
  content: ""; position: absolute; left: -60%; right: -60%; bottom: 0; height: 100vh;
  background-image: linear-gradient(rgba(229, 36, 59, .5) 2px, transparent 2px), linear-gradient(90deg, rgba(229, 36, 59, .5) 2px, transparent 2px);
  background-size: 64px 64px;
  transform: perspective(700px) rotateX(56deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .35) 40%, transparent 70%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .35) 40%, transparent 70%);
  animation: authfx-floor 2.4s linear infinite;
}
@keyframes authfx-drift { 0% { transform: translate(-4%, -3%) rotate(0deg); } 100% { transform: translate(4%, 3%) rotate(8deg); } }
@keyframes authfx-floor { from { background-position: 0 0, 0 0; } to { background-position: 0 64px, 0 0; } }
body.bare .fx canvas.authfx-embers { position: absolute; inset: 0; width: 100%; height: 100%; }

/* the card */
body.bare .auth {
  grid-template-columns: 44% 56%; width: min(940px, 100%); min-height: 0; border-radius: 22px; border: 0;
  background: rgba(13, 13, 18, .9);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .65), 0 0 60px rgba(229, 36, 59, .14);
  animation: authfx-in .7s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes authfx-in { from { opacity: 0; transform: translateY(18px) scale(.985); } }
body.bare .auth::before {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--authfx-a, 0deg), rgba(229, 36, 59, 0) 0deg, rgba(255, 70, 90, .95) 60deg, rgba(229, 36, 59, 0) 140deg,
              rgba(255, 255, 255, .08) 200deg, rgba(229, 36, 59, 0) 260deg, rgba(255, 70, 90, .6) 320deg, rgba(229, 36, 59, 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: authfx-spin 6s linear infinite;
}
@property --authfx-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes authfx-spin { to { --authfx-a: 360deg; } }

/* left: brand panel, plain dark with a red tint ( like the panel login ) */
body.bare .auth-side {
  justify-content: center; gap: 0; padding: 34px 32px;
  background: linear-gradient(160deg, rgba(229, 36, 59, .20) 0%, rgba(20, 10, 14, .2) 55%, rgba(0, 0, 0, 0) 100%);   /* plain dark like the panel login ( no artwork ) */
}
body.bare .auth-side::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 8, 12, .38), rgba(8, 8, 12, .86));
}
body.bare .auth-side::after { top: 0; bottom: 0; background: rgba(229, 36, 59, .35); }
body.bare .auth-side > * { position: relative; z-index: 1; }
body.bare .auth-side-logo { width: 220px; max-width: 100%; margin: 0 0 22px -4px; animation: authfx-glow 3.2s ease-in-out infinite alternate; }
@keyframes authfx-glow { from { filter: drop-shadow(0 0 18px rgba(229, 36, 59, .45)); } to { filter: drop-shadow(0 0 28px rgba(255, 60, 80, .75)); } }
/* "Your servers, / one click away." - the second line in the moving red gradient ( like the panel login's h3 b ) */
body.bare .auth-side h2 { margin: 0 0 8px; font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.4px; color: #fff; }
body.bare .auth-side h2 b {
  font-weight: 800;
  background: linear-gradient(90deg, #ff3b50, #ff8a5c, #ff3b50); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: authfx-shine 4s linear infinite;
}
@keyframes authfx-shine { to { background-position: -200% 0; } }
body.bare .auth-side p { max-width: none; margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, .66); }
body.bare .auth-points { margin: 22px 0 0; gap: 12px; }
body.bare .auth-points li { gap: 12px; font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, .86); }
body.bare .auth-points li small { display: block; font-size: 11.5px; font-weight: 400; color: rgba(255, 255, 255, .5); }
body.bare .auth-points li .ic {
  width: 32px; height: 32px; padding: 7px; border-radius: 9px; color: #ff5a6c;
  background: rgba(229, 36, 59, .14); border: 1px solid rgba(229, 36, 59, .38); box-shadow: 0 0 14px rgba(229, 36, 59, .2);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
body.bare .auth-side-foot { display: none; }

/* right: the form */
body.bare .auth-main { display: block; padding: 40px 38px 30px; background: none; }
body.bare .auth-card { width: 100%; gap: 18px; }
body.bare .auth-head { margin-bottom: 6px; }
body.bare .auth-kicker { gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; color: #ff5a6c; }
body.bare .auth-kicker::before {
  width: 7px; height: 7px; border-radius: 50%; background: #2ee66b; box-shadow: 0 0 10px #2ee66b;
  animation: authfx-dot 1.8s ease-in-out infinite;
}
@keyframes authfx-dot { 50% { opacity: .35; } }
body.bare .auth-head h1 { margin: 10px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
body.bare .auth-head p { margin: 6px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .58); }
body.bare .auth-field { gap: 7px; }
body.bare .auth-label { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
body.bare .auth-input {
  height: 50px; border-radius: 12px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .1); box-shadow: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
body.bare .auth-input:hover { border-color: rgba(255, 255, 255, .2); }
body.bare .auth-input:focus-within {
  background: rgba(229, 36, 59, .06); border-color: rgba(255, 70, 90, .85);
  box-shadow: 0 0 0 4px rgba(229, 36, 59, .16), 0 0 26px rgba(229, 36, 59, .22);
}
body.bare .auth-input > .ic, body.bare .auth-input:focus-within > .ic { color: #ff5a6c; }
body.bare .auth-input input[type] { border-radius: 12px; font-weight: 500; }
body.bare .auth-input input:-webkit-autofill, body.bare .auth-input input:-webkit-autofill:hover, body.bare .auth-input input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #17171c inset !important; box-shadow: 0 0 0 1000px #17171c inset !important;
}
body.bare .auth-input:focus-within input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #1c1218 inset !important; box-shadow: 0 0 0 1000px #1c1218 inset !important; }
body.bare .auth-submit {
  height: 52px; margin-top: 4px; border-radius: 12px;
  background: linear-gradient(135deg, #ff3b50 0%, #e5243b 45%, #a8101f 100%);
  font-size: 14px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(229, 36, 59, .42), inset 0 1px 0 rgba(255, 255, 255, .25);
}
body.bare .auth-submit:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 18px 40px rgba(229, 36, 59, .55), inset 0 1px 0 rgba(255, 255, 255, .3); }
body.bare .auth-submit > .ic { display: none; }
body.bare .auth-submit::before {
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg);
  animation: authfx-sweep 3.4s ease-in-out infinite;
}
@keyframes authfx-sweep { 0%, 55% { left: -60%; } 100% { left: 130%; } }
body.bare .auth-foot a, body.bare .auth-back { font-size: 12.5px; color: rgba(255, 255, 255, .55); }
body.bare .auth-foot a:hover, body.bare .auth-back:hover { color: #ff5a6c; }

/* phones: the card alone, the small logo on top ( v3 hides the brand side ) */
@media (max-width: 900px) {
  body.bare .auth { grid-template-columns: minmax(0, 1fr); width: min(460px, 100%); }
  body.bare .auth-main { padding: 30px 22px 24px; }
  body.bare .auth-logo-sm { width: min(200px, 70%); animation: authfx-glow 3.2s ease-in-out infinite alternate; }
}
@media (prefers-reduced-motion: reduce) {
  body.bare .fx::before, body.bare .auth, body.bare .auth::before, body.bare .auth-side-logo, body.bare .auth-logo-sm,
  body.bare .fx::after, body.bare .auth-side h2 b, body.bare .auth-kicker::before, body.bare .auth-submit::before { animation: none; }
}
/* end login page v5 */
