:root {
  color-scheme: dark;
  --bg: #080b0a;
  --ink: #eef3e8;
  --muted: #9aa89e;
  --faint: #617067;
  --panel: rgba(16, 22, 19, 0.9);
  --panel-solid: #111915;
  --panel-2: rgba(25, 34, 29, 0.92);
  --line: rgba(189, 167, 102, 0.24);
  --line-cool: rgba(106, 139, 124, 0.28);
  --amber: #f2b84b;
  --amber-soft: #f7d487;
  --green: #22a06b;
  --green-2: #0d7b5f;
  --ct: #4aa3ff;
  --t: #f0b13e;
  --red: #e24b3b;
  --danger: #ff6b57;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --inner: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(8, 11, 10, 0.98) 0%, rgba(8, 11, 10, 0.86) 42%, rgba(8, 11, 10, 0.62) 100%),
    url("/assets/cs-tactical-bg.png") center / cover fixed,
    var(--bg);
  color: var(--ink);
  font-family: Rajdhani, "Arial Narrow", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 75%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 82% 12%, rgba(226, 75, 59, 0.2), transparent 22%),
    radial-gradient(circle at 62% 0%, rgba(242, 184, 75, 0.14), transparent 30%);
  mix-blend-mode: screen;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 38px;
  border: 1px solid var(--line-cool);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(37, 49, 42, 0.96), rgba(19, 27, 23, 0.96));
  color: var(--ink);
  padding: 8px 13px;
  cursor: pointer;
  box-shadow: var(--inner), 0 10px 22px rgba(0, 0, 0, 0.18);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

button:hover {
  border-color: rgba(242, 184, 75, 0.58);
  color: #fff7db;
}

button.primary {
  background: linear-gradient(180deg, #e0a63d, #916210);
  border-color: rgba(255, 214, 128, 0.64);
  color: #171008;
  box-shadow: 0 12px 34px rgba(242, 184, 75, 0.2), var(--inner);
}

button.danger {
  background: linear-gradient(180deg, rgba(92, 32, 28, 0.96), rgba(43, 17, 15, 0.96));
  border-color: rgba(255, 107, 87, 0.5);
  color: #ffc7bd;
}

button.ghost {
  background: rgba(255, 255, 255, 0.03);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-cool);
  border-radius: 4px;
  background: rgba(6, 10, 8, 0.84);
  color: var(--ink);
  padding: 10px 11px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), inset 0 10px 24px rgba(0, 0, 0, 0.22);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(242, 184, 75, 0.72);
  box-shadow: 0 0 0 3px rgba(242, 184, 75, 0.12), inset 0 10px 24px rgba(0, 0, 0, 0.22);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(13, 18, 16, 0.96), rgba(8, 11, 10, 0.98)),
    rgba(8, 11, 10, 0.94);
  color: var(--ink);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid var(--line);
  box-shadow: 18px 0 44px rgba(0, 0, 0, 0.36);
}

.brand {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(74, 163, 255, 0.08), transparent 42%),
    linear-gradient(145deg, rgba(242, 184, 75, 0.12), rgba(34, 160, 107, 0.04));
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand strong {
  display: block;
  color: #fff4cf;
  font-size: 18px;
  line-height: 1.05;
  text-transform: uppercase;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 24px rgba(242, 184, 75, 0.2));
}

.brand-logo.big {
  position: absolute;
  top: 56px;
  right: 30px;
  width: 82px;
  height: 82px;
  z-index: 1;
}

.nav {
  display: grid;
  gap: 7px;
}

.nav button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  background: rgba(255, 255, 255, 0.035);
  color: #dae6dc;
  border-color: rgba(119, 143, 132, 0.18);
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.nav button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 3px;
  background: transparent;
}

.nav button.active,
.nav button:hover {
  background: linear-gradient(90deg, rgba(242, 184, 75, 0.16), rgba(34, 160, 107, 0.08));
  border-color: rgba(242, 184, 75, 0.38);
}

.nav button.active::before {
  background: var(--amber);
}

.mobile-nav-label {
  display: none;
}

.side-footer {
  margin-top: auto;
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.content {
  min-width: 0;
  padding: 26px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(74, 163, 255, 0.08), transparent 34%, rgba(240, 177, 62, 0.08)),
    linear-gradient(90deg, rgba(16, 22, 19, 0.92), rgba(16, 22, 19, 0.72)),
    rgba(16, 22, 19, 0.88);
  box-shadow: var(--shadow);
}

.topbar h1 {
  margin: 0;
  color: #fff2c9;
  font-size: 30px;
  line-height: 1.04;
  text-transform: uppercase;
}

.topbar p {
  margin: 5px 0 0;
  color: var(--muted);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.server-switch {
  min-width: 150px;
  gap: 4px;
  color: var(--amber-soft);
}

.server-switch select {
  min-height: 36px;
  padding: 7px 34px 7px 10px;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    var(--panel);
  border: 1px solid var(--line-cool);
  border-radius: 8px;
  box-shadow: var(--shadow), var(--inner);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--ct), var(--amber), var(--green), transparent);
}

.card::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 10px;
  width: 42px;
  height: 8px;
  opacity: 0.34;
  background: repeating-linear-gradient(90deg, var(--amber) 0 7px, transparent 7px 12px);
}

.card h2,
.card h3 {
  margin: 3px 0 13px;
  color: #fff2c9;
  font-size: 17px;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-head h2 {
  margin-bottom: 5px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.button-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 214, 128, 0.64);
  border-radius: 4px;
  background: linear-gradient(180deg, #e0a63d, #916210);
  color: #171008;
  padding: 8px 13px;
  box-shadow: 0 12px 34px rgba(242, 184, 75, 0.2), var(--inner);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.button-link.compact {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 12px;
}

.motd-card {
  display: grid;
  gap: 4px;
}

.motd-preview-link {
  display: block;
  border: 1px solid rgba(242, 184, 75, 0.38);
  border-radius: 6px;
  overflow: hidden;
  background: #0d1713;
}

.motd-preview {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #0d1713;
}

.motd-frame {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
  background: #0d1713;
  pointer-events: none;
}

.metric {
  min-height: 118px;
  display: grid;
  align-content: space-between;
  gap: 8px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.metric strong {
  color: #fff7df;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1;
}

.status-dot {
  display: inline-flex;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 8px;
  box-shadow: 0 0 14px rgba(226, 75, 59, 0.65);
}

.status-dot.on {
  background: #35f091;
  box-shadow: 0 0 16px rgba(53, 240, 145, 0.68);
}

.server-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid rgba(226, 75, 59, 0.48);
  border-radius: 999px;
  background: rgba(60, 18, 16, 0.72);
  color: #ffb0a6;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.server-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.server-chip.on {
  border-color: rgba(53, 240, 145, 0.42);
  background: rgba(14, 54, 35, 0.72);
  color: #7dffb4;
}

.server-chip.warn {
  border-color: rgba(242, 184, 75, 0.48);
  background: rgba(82, 55, 13, 0.74);
  color: #ffd88a;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line-cool);
  border-radius: 8px;
  background: rgba(6, 10, 8, 0.68);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(106, 139, 124, 0.2);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--amber-soft);
  font-size: 12px;
  text-transform: uppercase;
  background: rgba(20, 28, 24, 0.94);
  letter-spacing: 0.06em;
}

td {
  color: #dce6de;
}

tr:last-child td {
  border-bottom: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  position: relative;
  z-index: 1;
}

.login-box {
  width: min(1040px, 100%);
  min-height: 600px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  background: rgba(9, 13, 11, 0.84);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.62);
  overflow: hidden;
}

.login-side {
  background:
    linear-gradient(90deg, rgba(8, 11, 10, 0.84), rgba(8, 11, 10, 0.18)),
    url("/assets/cs-tactical-bg.png") center / cover;
  color: var(--ink);
  padding: 30px;
  display: grid;
  align-content: end;
  gap: 13px;
  position: relative;
}

.login-side::before {
  content: "BOMB SITE BM";
  position: absolute;
  top: 24px;
  left: 30px;
  color: rgba(247, 212, 135, 0.74);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.server-kicker {
  width: fit-content;
  border: 1px solid rgba(74, 163, 255, 0.42);
  border-radius: 999px;
  background: rgba(19, 58, 86, 0.5);
  color: #b9ddff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-side h1 {
  margin: 0;
  color: #fff0bd;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.94;
  max-width: 560px;
  text-transform: uppercase;
}

.server-strip {
  width: min(470px, 100%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border: 1px solid rgba(242, 184, 75, 0.32);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(5, 9, 7, 0.66);
}

.server-strip span,
.server-strip strong {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.server-strip span:first-child {
  color: #d9ecff;
  background: rgba(74, 163, 255, 0.17);
}

.server-strip span:last-child {
  color: #ffdf9b;
  background: rgba(240, 177, 62, 0.17);
}

.server-strip strong {
  color: #fff2c9;
  white-space: nowrap;
}

.login-side p {
  margin: 0;
  max-width: 500px;
  color: #c8d3cc;
  font-size: 16px;
}

.login-main {
  padding: 24px;
  display: grid;
  gap: 18px;
  align-content: center;
  background: rgba(8, 11, 10, 0.92);
}

.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line-cool);
  padding-bottom: 8px;
}

.tabs button {
  border-color: transparent;
  box-shadow: none;
}

.tabs button.active {
  background: linear-gradient(180deg, rgba(242, 184, 75, 0.2), rgba(242, 184, 75, 0.08));
  border-color: rgba(242, 184, 75, 0.4);
  color: #ffe1a0;
}

.notice {
  border: 1px solid rgba(53, 240, 145, 0.34);
  background: rgba(13, 72, 43, 0.46);
  color: #c8ffdf;
  border-radius: 6px;
  padding: 10px 12px;
}

.notice.error {
  border-color: rgba(255, 107, 87, 0.5);
  background: rgba(84, 25, 20, 0.5);
  color: #ffc9c0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  background: rgba(14, 91, 61, 0.66);
  color: #92ffc2;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pill.warn {
  background: rgba(113, 72, 8, 0.68);
  color: #ffd88a;
}

.pill.danger {
  background: rgba(94, 30, 25, 0.72);
  color: #ffb4aa;
}

.console {
  white-space: pre-wrap;
  overflow: auto;
  max-height: 340px;
  margin: 0;
  background:
    linear-gradient(rgba(53, 240, 145, 0.035) 1px, transparent 1px),
    #050806;
  background-size: 100% 21px;
  color: #bfffd8;
  border: 1px solid rgba(53, 240, 145, 0.17);
  border-radius: 8px;
  padding: 13px;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  box-shadow: inset 0 0 34px rgba(0, 0, 0, 0.5);
}

.muted {
  color: var(--muted);
}

.split-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.application-list {
  display: grid;
  gap: 12px;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.application-card {
  border: 1px solid var(--line-cool);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(242, 184, 75, 0.08), transparent 42%),
    rgba(7, 11, 9, 0.72);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.admin-card {
  border: 1px solid var(--line-cool);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(74, 163, 255, 0.08), transparent 42%),
    rgba(7, 11, 9, 0.72);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.admin-edit-form {
  display: grid;
  gap: 12px;
}

.permissions-help {
  border: 1px solid rgba(242, 184, 75, 0.24);
  border-radius: 6px;
  background: rgba(113, 72, 8, 0.22);
  color: #e8d2a5;
  padding: 10px 12px;
  margin-bottom: 12px;
  line-height: 1.45;
}

.permissions-help strong {
  color: #fff2c9;
}

.application-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(106, 139, 124, 0.22);
  padding-bottom: 10px;
}

.application-head strong {
  display: block;
  color: #fff2c9;
  font-size: 21px;
  line-height: 1;
}

.application-head span {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-size: 13px;
}

.application-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.detail-field {
  min-width: 0;
  border: 1px solid rgba(106, 139, 124, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  padding: 9px;
}

.detail-field span,
.detail-block span {
  display: block;
  color: var(--faint);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-field strong {
  display: block;
  min-width: 0;
  margin-top: 4px;
  color: #eaf3ec;
  overflow-wrap: anywhere;
}

.detail-block {
  display: grid;
  gap: 5px;
}

.detail-block p {
  margin: 0;
  color: #dce6de;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.application-actions {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  border-top: 1px solid rgba(106, 139, 124, 0.22);
  padding-top: 12px;
}

.notes-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.notes-form textarea {
  min-height: 68px;
}

.map-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  max-height: 420px;
  overflow: auto;
}

.map-item {
  border: 1px solid var(--line-cool);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(24, 33, 28, 0.86), rgba(9, 13, 11, 0.88));
  color: #dce6de;
  padding: 8px;
  font-size: 13px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.map-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.map-item button {
  min-height: 32px;
  padding: 5px 9px;
  font-size: 11px;
}

.public-shell .content {
  max-width: 1480px;
  width: 100%;
}

.mix-page {
  align-items: start;
}

.mix-account {
  align-content: start;
}

.mix-lobby-list {
  display: grid;
  gap: 12px;
}

.mix-lobby {
  border: 1px solid var(--line-cool);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(74, 163, 255, 0.08), transparent 50%, rgba(240, 177, 62, 0.08)),
    rgba(7, 11, 9, 0.72);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.mix-board {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 0.9fr) minmax(220px, 1fr);
  gap: 10px;
  align-items: stretch;
}

.mix-ready-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(92, 191, 126, 0.26);
  border-radius: 6px;
  background: rgba(40, 118, 70, 0.12);
  padding: 8px 10px;
  color: #dfffe7;
  font-weight: 850;
}

.mix-ready-summary small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.mix-ready-summary.complete {
  border-color: rgba(92, 191, 126, 0.46);
  background: rgba(40, 118, 70, 0.22);
}

.mix-team,
.mix-unassigned {
  min-width: 0;
  border: 1px solid rgba(106, 139, 124, 0.22);
  border-radius: 6px;
  background: rgba(5, 9, 7, 0.58);
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 9px;
}

.mix-team.ct {
  border-color: rgba(74, 163, 255, 0.36);
  background: linear-gradient(180deg, rgba(74, 163, 255, 0.08), rgba(5, 9, 7, 0.58));
}

.mix-team.t {
  border-color: rgba(240, 177, 62, 0.36);
  background: linear-gradient(180deg, rgba(240, 177, 62, 0.08), rgba(5, 9, 7, 0.58));
}

.mix-team h3,
.mix-unassigned h3 {
  margin: 0;
  color: #fff2c9;
  font-size: 15px;
  text-transform: uppercase;
}

.mix-captain {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mix-team-name-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
}

.mix-team-name-form input {
  min-width: 0;
}

.mix-slots,
.mix-pick-list {
  display: grid;
  gap: 7px;
}

.mix-slot {
  min-height: 50px;
  display: grid;
  align-content: center;
  gap: 2px;
  border: 1px dashed rgba(106, 139, 124, 0.26);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
  padding: 8px;
  overflow: hidden;
}

.mix-slot.filled {
  border-style: solid;
  border-color: rgba(242, 184, 75, 0.3);
  background: rgba(24, 33, 28, 0.78);
}

.mix-slot.ready {
  border-color: rgba(92, 191, 126, 0.56);
  background: linear-gradient(90deg, rgba(40, 118, 70, 0.2), rgba(24, 33, 28, 0.78));
}

.mix-slot span {
  min-width: 0;
  color: #f0f6ef;
  font-weight: 850;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.mix-slot small {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.mix-slot button.compact {
  width: fit-content;
  min-height: 30px;
  padding: 5px 8px;
  font-size: 11px;
}

.mix-pick-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: stretch;
}

.mix-pick-row button {
  min-width: 70px;
}

.mix-inline-actions {
  display: grid;
  gap: 6px;
  align-content: center;
}

.mix-turn {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(242, 184, 75, 0.34);
  border-radius: 999px;
  background: rgba(113, 72, 8, 0.34);
  color: #ffe1a0;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mix-actions {
  border-top: 1px solid rgba(106, 139, 124, 0.22);
  padding-top: 10px;
}

.server-quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.server-quick-actions button,
.server-quick-actions .button-link {
  min-height: 36px;
}

@media (max-width: 900px) {
  body {
    background:
      linear-gradient(180deg, rgba(8, 11, 10, 0.96), rgba(8, 11, 10, 0.92)),
      url("/assets/cs-tactical-bg.png") center top / cover fixed,
      var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  .shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .sidebar {
    position: static;
    padding: 10px;
    gap: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
  }

  .brand {
    padding: 8px;
    border-radius: 6px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand span {
    font-size: 12px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand-logo.big {
    top: 48px;
    right: 18px;
    width: 64px;
    height: 64px;
  }

  .nav {
    display: none;
  }

  .mobile-nav-label {
    display: grid;
    gap: 6px;
  }

  .mobile-nav {
    min-height: 44px;
    font-size: 15px;
    font-weight: 800;
    text-transform: none;
    background: rgba(8, 12, 10, 0.96);
    color: #fff4cf;
    border-color: rgba(242, 184, 75, 0.42);
  }

  .side-footer {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    font-size: 12px;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .login-box,
  .detail-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 10px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 6px;
    background: rgba(11, 16, 14, 0.94);
  }

  .topbar h1 {
    font-size: 24px;
    line-height: 1.1;
  }

  .topbar p {
    font-size: 14px;
    line-height: 1.35;
  }

  .toolbar {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .server-chip,
  .server-switch,
  .server-switch select,
  .toolbar button {
    width: 100%;
    justify-content: center;
    min-height: 42px;
  }

  .grid {
    gap: 10px;
  }

  .card {
    border-radius: 6px;
    padding: 12px;
    background: rgba(13, 19, 16, 0.96);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34), var(--inner);
  }

  .card::after {
    display: none;
  }

  .section-head {
    display: grid;
    gap: 10px;
  }

  .button-link {
    width: 100%;
    min-height: 42px;
  }

  .motd-preview {
    max-height: 260px;
  }

  .motd-frame {
    height: 260px;
  }

  .metric {
    min-height: 84px;
  }

  .metric span {
    font-size: 12px;
  }

  .metric strong {
    font-size: 30px;
  }

  .login-page {
    padding: 10px;
    align-items: start;
  }

  .login-box {
    min-height: 0;
    display: grid;
    border-radius: 6px;
    background: rgba(8, 11, 10, 0.96);
  }

  .login-side {
    min-height: 240px;
    padding: 18px;
    background:
      linear-gradient(180deg, rgba(8, 11, 10, 0.36), rgba(8, 11, 10, 0.9)),
      url("/assets/cs-tactical-bg.png") center / cover;
  }

  .login-side::before {
    display: none;
  }

  .login-side h1 {
    font-size: 32px;
    line-height: 1;
  }

  .server-strip {
    grid-template-columns: 1fr;
  }

  .server-strip span,
  .server-strip strong {
    min-height: 30px;
  }

  .login-side p {
    font-size: 15px;
    line-height: 1.4;
  }

  .login-main {
    padding: 14px;
  }

  input,
  select,
  textarea {
    min-height: 44px;
    font-size: 16px;
    background: rgba(3, 7, 5, 0.94);
  }

  textarea {
    min-height: 96px;
  }

  label {
    font-size: 12px;
    color: #b7c6bc;
  }

  .application-fields,
  .detail-grid,
  .application-actions,
  .mix-board,
  .notes-form {
    grid-template-columns: 1fr;
  }

  .mix-lobby {
    padding: 11px;
  }

  .mix-pick-row {
    grid-template-columns: 1fr;
  }

  .application-head {
    flex-direction: column;
  }

  .application-head strong {
    font-size: 19px;
    line-height: 1.15;
  }

  .detail-field {
    background: rgba(255, 255, 255, 0.04);
  }

  .detail-field strong,
  .detail-block p {
    font-size: 14px;
    line-height: 1.45;
  }

  .console {
    max-height: 260px;
    font-size: 11px;
  }

  .table-wrap {
    border-radius: 6px;
  }

  button {
    width: 100%;
    min-height: 42px;
    font-size: 12px;
  }

  .nav button {
    width: auto;
  }

  .side-footer span:nth-child(2) {
    display: none;
  }

  .side-footer button {
    width: auto;
    min-width: 108px;
  }

  .tabs button {
    width: auto;
  }

  .split-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .server-quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .split-actions button,
  .server-quick-actions button,
  .server-quick-actions .button-link,
  .notes-form button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .content {
    padding: 8px;
  }

  .topbar h1 {
    font-size: 23px;
  }

  .card,
  .application-card,
  .admin-card {
    padding: 11px;
  }

  .login-side {
    min-height: 230px;
  }

  .login-side h1 {
    font-size: 30px;
  }

  .tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tabs button {
    width: 100%;
  }

  .map-list {
    grid-template-columns: 1fr;
  }

  .map-item {
    grid-template-columns: 1fr;
  }

  .map-item button {
    width: 100%;
  }
}

/* Championship: match results in "Meciuri recente" */
.mix-score {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.mix-score strong.win {
  color: #4ade80;
}
.button-link.compact,
button.compact {
  padding: 4px 10px;
  font-size: 0.85em;
}
.mix-inline-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Championship bracket */
.bracket-match {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.bracket-match.played {
  border-color: rgba(74,222,128,0.35);
}
.bracket-match-label .win {
  color: #4ade80;
  font-weight: 700;
}
.bracket-score-entry {
  display: flex;
  gap: 6px;
  align-items: center;
}
.score-input {
  width: 52px;
  text-align: center;
}
.bracket-rounds {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.bracket-round {
  min-width: 240px;
  flex: 1;
}
.bracket-group {
  margin-bottom: 12px;
}

/* Map veto */
.bracket-match-wrap {
  margin-bottom: 8px;
}
.veto-box {
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 4px;
  background: rgba(255,255,255,0.03);
}
.veto-box p { margin: 4px 0; }
.veto-maps {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.veto-map {
  color: #4ade80;
  font-weight: 700;
  text-transform: uppercase;
}

.bo-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(242, 184, 75, 0.18);
  color: #f2b84b;
}
.forfeit-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #f87171;
  text-transform: uppercase;
}
button.warn, .button.warn {
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.4);
  color: #fca5a5;
}
.qr-card {
  text-align: center;
}
.qr-img {
  display: block;
  margin: 12px auto;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}
.qr-url {
  word-break: break-all;
  font-size: 12px;
}
.nav-ext {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #7dd3fc;
  font-weight: 700;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(125, 211, 252, 0.08);
  transition: background 0.15s ease;
}
.nav-ext:hover {
  background: rgba(125, 211, 252, 0.16);
}

/* Tournament info + champion */
.champion-banner {
  text-align: center;
  border: 2px solid #f5c518;
  background: linear-gradient(180deg, rgba(245,197,24,0.12), rgba(245,197,24,0.02));
}
.champion-name {
  font-size: 1.8em;
  font-weight: 800;
  color: #f5c518;
  margin: 6px 0;
}
.tournament-rules {
  white-space: pre-wrap;
  font-family: inherit;
  background: rgba(255,255,255,0.04);
  padding: 10px 12px;
  border-radius: 6px;
  line-height: 1.5;
}

/* ===== Championship visual glow-up (CSS-only, additive) ===== */
.champion-banner {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 28px rgba(245, 197, 24, 0.18), inset 0 0 40px rgba(245, 197, 24, 0.05);
}
.champion-banner h2 {
  letter-spacing: 2px;
  font-size: 13px;
  text-transform: uppercase;
  color: #f5c518;
  opacity: 0.85;
}
.champion-name {
  text-shadow: 0 0 18px rgba(245, 197, 24, 0.45);
  animation: champ-pulse 2.4s ease-in-out infinite;
}
@keyframes champ-pulse {
  0%, 100% { text-shadow: 0 0 14px rgba(245, 197, 24, 0.35); }
  50% { text-shadow: 0 0 26px rgba(245, 197, 24, 0.65); }
}

/* Bracket match cards: lift, accent edge, clearer winner */
.bracket-match {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid rgba(242, 184, 75, 0.35);
  border-radius: 8px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.bracket-match:hover {
  border-left-color: #f2b84b;
  transform: translateX(2px);
}
.bracket-match.played {
  border-left-color: #4ade80;
}
.bracket-match-label .win {
  color: #4ade80;
  font-weight: 800;
}
.bracket-match-label .win::before {
  content: "▸ ";
  color: #4ade80;
}

/* Standings + stats tables: zebra + hover + top-rank accent */
.mix-page table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}
.mix-page table tbody tr:hover {
  background: rgba(242, 184, 75, 0.07);
}
.mix-page table tbody tr:first-child td:first-child {
  color: #f2b84b;
  font-weight: 800;
}

/* Group/section headings within the tournament: subtle accent underline */
.mix-page .card h3 {
  border-bottom: 1px solid rgba(242, 184, 75, 0.18);
  padding-bottom: 6px;
}

/* QR card polish */
.qr-img {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
