/* ============================================================
   Wolves Gags — matches the wolves-cs.com home design
   ============================================================ */

:root {
  --bg: #090a0c;
  --bg-soft: #0e1014;
  --surface: #14171d;
  --surface-2: #1a1e26;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eceef2;
  --muted: #9aa1ad;
  --dim: #9097a3;
  --accent: #e63946;
  --accent-bright: #ff5967;
  --accent-deep: #a31f2b;
  --accent-btn: #c62d3a;
  --accent-btn-hover: #d13340;
  --ok: #35d07f;
  --radius: 14px;
  --container: 1160px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.bans-page,
body.gags-page {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: "Barlow Condensed", "Poppins", sans-serif;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin: 0;
}

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Shared bits (same as home) ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-line {
  width: 26px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}
.dot { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition),
              border-color var(--transition), box-shadow var(--transition), color var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent-btn);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(230, 57, 70, 0.8);
}
.btn-primary:hover {
  background: var(--accent-btn-hover);
  box-shadow: 0 16px 38px -12px rgba(230, 57, 70, 0.95);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: var(--accent); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 12.5px; }

.section { padding: 56px 0 84px; position: relative; }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative;
  padding: 76px 0 0;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 78% 20%, rgba(230, 57, 70, 0.14), transparent 62%),
    radial-gradient(600px 400px at 10% 80%, rgba(230, 57, 70, 0.05), transparent 65%),
    linear-gradient(180deg, #0c0e12 0%, var(--bg) 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 460px;
  height: 460px;
  right: 4%;
  top: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.16), transparent 68%);
  filter: blur(24px);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  padding-bottom: 46px;
}
.page-title {
  margin: 0 0 4px;
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.page-title span { color: var(--accent); }
.page-subtitle {
  max-width: 640px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 15px;
}
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.bans-section { padding-top: 0; }
.bans-shell { display: grid; gap: 18px; }

/* ---------- Panels (home card style) ---------- */
.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(140deg, var(--surface), var(--bg-soft));
  box-shadow: 0 26px 60px -38px rgba(0, 0, 0, 0.95);
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 72%);
  opacity: 0.85;
  pointer-events: none;
}
.panel-controls { padding: 22px; }
.panel-table { padding: 22px; }

/* ---------- Search ---------- */
.search-form { margin: 0; }
.search-label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.search-input-wrap {
  position: relative;
  flex: 1 1 320px;
}
.search-input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dim);
  font-size: 14px;
  pointer-events: none;
}
.search-form input[type="text"] {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 40px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(9, 10, 12, 0.72);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-form input[type="text"]::placeholder { color: var(--dim); }
.search-form input[type="text"]:focus {
  border-color: rgba(230, 57, 70, 0.55);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.16);
}
.search-button { min-height: 48px; }

/* ---------- IP status ---------- */
.status-row { margin-top: 16px; }
.ban-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  font-size: 13px;
  color: var(--muted);
}
.ban-status strong { color: var(--text); font-weight: 600; }
.ban-status.banned {
  color: #ffd2d6;
  background: rgba(230, 57, 70, 0.12);
  border-color: rgba(230, 57, 70, 0.32);
}
.ban-status.banned strong { color: #fff; }
.ban-status.not-banned {
  color: #c9f5df;
  background: rgba(53, 208, 127, 0.1);
  border-color: rgba(53, 208, 127, 0.28);
}
.ban-status.not-banned strong { color: #fff; }

/* ---------- Table ---------- */
.table-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 2px 14px;
  flex-wrap: wrap;
}
.pagination-info, .meta-count {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}
.pagination-info strong { color: var(--text); font-weight: 600; }
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(9, 10, 12, 0.35);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}
.table-staff { min-width: 1140px; }
thead th {
  text-align: left;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(9, 10, 12, 0.7);
  border-bottom: 1px solid var(--line);
  padding: 13px 16px;
  white-space: nowrap;
}
tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #dbe0e8;
  font-size: 13px;
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(230, 57, 70, 0.055); }
.flag { display: inline-flex; align-items: center; margin-right: 8px; }
.flag-img {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  transform: translateY(2px);
}
.flag-fallback { color: var(--muted); }
.empty-row {
  text-align: center;
  color: var(--muted);
  padding: 30px 16px !important;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-active {
  color: #8ce7b6;
  background: rgba(53, 208, 127, 0.1);
  border-color: rgba(53, 208, 127, 0.28);
}
.badge-expired {
  color: #ffb3b9;
  background: rgba(230, 57, 70, 0.1);
  border-color: rgba(230, 57, 70, 0.28);
}

/* ---------- Pagination (home button style) ---------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}
.pagination a {
  min-width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 13px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.pagination a:hover {
  color: #fff;
  border-color: rgba(230, 57, 70, 0.5);
  background: rgba(230, 57, 70, 0.08);
}
.pagination a.active {
  color: #fff;
  background: var(--accent-btn);
  border-color: var(--accent-btn);
  box-shadow: 0 8px 22px -12px rgba(230, 57, 70, 0.9);
}

/* ---------- Staff extras ---------- */
.status-active { color: #8ce7b6; font-weight: 600; }
.indicator { color: #ff9aa3; font-weight: 600; }
.action-group { display: flex; flex-wrap: wrap; gap: 6px; }
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: #dbe0e8;
  border-radius: 7px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 12px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.action-btn:hover { border-color: rgba(230, 57, 70, 0.5); color: #fff; }
.action-delete { border-color: rgba(230, 57, 70, 0.35); color: #ffb3b9; }
.action-expire { border-color: rgba(53, 208, 127, 0.35); color: #bdeed3; }

/* staff pagination window */
.pagination-window {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 16px;
}
.pagination-window a,
.pagination-window .current,
.pagination-window .dots {
  min-width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 13px;
}
.pagination-window a:hover { color: #fff; border-color: rgba(230, 57, 70, 0.5); }
.pagination-window a.current,
.pagination-window .current {
  color: #fff;
  background: var(--accent-btn);
  border-color: var(--accent-btn);
}

/* ---------- Footer (same as home) ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-mark { width: 38px; height: 38px; object-fit: contain; opacity: 0.85; }
.footer-brand div { display: flex; flex-direction: column; line-height: 1.35; }
.footer-brand strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 19px;
  letter-spacing: 0.05em;
}
.footer-brand small { font-size: 11px; color: var(--dim); }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
  transition: all var(--transition);
}
.footer-social a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.back-top { font-size: 12px; color: var(--muted); transition: color var(--transition); }
.back-top:hover { color: var(--accent); }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .page-hero-inner { padding-bottom: 38px; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 32px, var(--container)); }
  .page-hero { padding-top: 52px; }
  .page-title { font-size: clamp(2.9rem, 14vw, 4.6rem); }
  .page-actions .btn { width: 100%; }
  .section { padding: 44px 0 64px; }
  .panel-controls, .panel-table { padding: 16px; }
  .search-row { align-items: stretch; }
  .search-button { width: 100%; }
  .ban-status { width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-social { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Staff sign in ---------- */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(230, 57, 70, 0.16), transparent 70%),
    var(--bg);
}
.auth-shell { width: min(100%, 430px); }
.auth-card {
  background: linear-gradient(180deg, rgba(26, 30, 38, 0.92), rgba(20, 23, 29, 0.96));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 34px 30px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 26px; }
.auth-brand .brand-mark { width: 38px; height: 38px; }
.auth-title { font-size: 2.2rem; margin-bottom: 6px; }
.auth-sub { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.auth-form { display: grid; gap: 16px; }
.auth-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.auth-input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(9, 10, 12, 0.7);
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.auth-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.18);
}
.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--accent-btn);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.auth-btn:hover { background: var(--accent-btn-hover); transform: translateY(-1px); }
.auth-btn:active { transform: none; }
.auth-alert {
  margin: 0 0 18px;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
}
.auth-alert-error { background: rgba(230, 57, 70, 0.12); border-color: rgba(230, 57, 70, 0.45); color: #ffb3ba; }
.auth-alert-ok { background: rgba(53, 208, 127, 0.1); border-color: rgba(53, 208, 127, 0.4); color: #8ff0bd; }
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 12.5px;
  transition: color var(--transition);
}
.auth-back:hover { color: var(--text); }
@media (max-width: 480px) {
  .auth-page { padding: 18px; }
  .auth-card { padding: 26px 20px 22px; }
  .auth-title { font-size: 1.9rem; }
}

/* ============================================================
   Gag list additions
   ============================================================ */

/* ---------- Small helpers ---------- */
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.stack { display: grid; gap: 4px; }
.inline-form { display: inline; margin: 0; }
.page-narrow { width: min(100% - 48px, 820px); margin-inline: auto; }

/* ---------- Stats tiles ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.stat-tile {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(140deg, var(--surface), var(--bg-soft));
  padding: 18px 18px 16px;
  overflow: hidden;
}
.stat-tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  opacity: 0.8;
}
.stat-tile .stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.stat-tile .stat-head i { color: var(--accent); font-size: 13px; }
.stat-tile .stat-value {
  margin: 8px 0 0;
  font-family: "Barlow Condensed", "Poppins", sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
}
.stat-tile.stat-ok::before { background: linear-gradient(90deg, var(--ok), transparent 70%); }
.stat-tile.stat-ok .stat-head i,
.stat-tile.stat-ok .stat-value { color: #8ce7b6; }
.stat-tile.stat-warn::before { background: linear-gradient(90deg, #f0b849, transparent 70%); }
.stat-tile.stat-warn .stat-head i,
.stat-tile.stat-warn .stat-value { color: #f3c877; }
.stat-tile.stat-muted .stat-head i,
.stat-tile.stat-muted .stat-value { color: #c3cad6; }

/* ---------- Panels with headers ---------- */
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 12, 0.35);
}
.panel-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.22rem;
  letter-spacing: 0.02em;
}
.panel-head h2 i { color: var(--accent); font-size: 0.95rem; }
.panel-head .panel-link {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  transition: color var(--transition);
}
.panel-head .panel-link:hover { color: var(--accent-bright); }
.panel-body { padding: 22px; }
.panel-body-tight { padding: 0; }

/* ---------- Filter bar ---------- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.filter-row .search-input-wrap { flex: 1 1 300px; }
.select {
  height: 48px;
  padding: 0 38px 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background-color: rgba(9, 10, 12, 0.72);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa1ad' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  color: var(--text);
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.select:focus {
  outline: none;
  border-color: rgba(230, 57, 70, 0.55);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.16);
}
.select option { background: #14171d; color: var(--text); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 20px; }
.form-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-section { display: grid; gap: 18px; }
.form-section + .form-section {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.form-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: 0.03em;
}
.form-section-title i { color: var(--accent); font-size: 0.9rem; }
.field { display: grid; gap: 7px; }
.field > span,
.field > label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.field .req { color: var(--accent-bright); }
.field small { color: var(--dim); font-size: 11.5px; }
.input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(9, 10, 12, 0.72);
  color: var(--text);
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input::placeholder { color: var(--dim); }
.input:focus {
  outline: none;
  border-color: rgba(230, 57, 70, 0.55);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.16);
}
.input:disabled { background: rgba(255, 255, 255, 0.04); color: var(--muted); cursor: not-allowed; }
select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa1ad' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
select.input option { background: #14171d; color: var(--text); }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #dbe0e8;
  font-size: 13px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.checkbox-chip:hover { border-color: rgba(230, 57, 70, 0.45); }
.checkbox-chip input { accent-color: var(--accent); }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.form-actions .spacer { flex: 1 1 auto; }

/* ---------- Alerts ---------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.5;
}
.alert i { margin-top: 2px; }
.alert-error {
  background: rgba(230, 57, 70, 0.12);
  border-color: rgba(230, 57, 70, 0.45);
  color: #ffb3ba;
}
.alert-success {
  background: rgba(53, 208, 127, 0.1);
  border-color: rgba(53, 208, 127, 0.4);
  color: #8ff0bd;
}
.alert-warn {
  background: rgba(240, 184, 73, 0.1);
  border-color: rgba(240, 184, 73, 0.35);
  color: #f3c877;
}

/* ---------- Buttons extras ---------- */
.btn-danger {
  background: #a32630;
  color: #fff;
  box-shadow: 0 10px 30px -14px rgba(230, 57, 70, 0.9);
}
.btn-danger:hover { background: #ba2c37; }
.btn-success {
  background: #227a4d;
  color: #fff;
}
.btn-success:hover { background: #289059; }
.btn-link {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 0;
  min-height: 0;
  cursor: pointer;
  font-size: 12.5px;
}
.btn-link:hover { color: var(--accent-bright); transform: none; }

/* ---------- Badges extras ---------- */
.badge-permanent {
  color: #f3c877;
  background: rgba(240, 184, 73, 0.1);
  border-color: rgba(240, 184, 73, 0.32);
}
.badge-muted {
  color: var(--muted);
  background: rgba(154, 161, 173, 0.08);
  border-color: var(--line-strong);
}

/* ---------- Dashboard / quick actions ---------- */
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 18px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.quick-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(140deg, var(--surface-2), var(--bg-soft));
  color: var(--text);
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}
.quick-card:hover {
  border-color: rgba(230, 57, 70, 0.45);
  transform: translateY(-2px);
}
.quick-card i { color: var(--accent); font-size: 18px; }
.quick-card strong { font-size: 13.5px; font-weight: 600; }
.quick-card small { color: var(--dim); font-size: 11.5px; }

/* The two primary staff choices get a bigger, clearer numbered menu. */
.staff-menu-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.staff-menu-grid .quick-card {
  gap: 10px;
  padding: 24px;
}
.staff-menu-grid .quick-card > i { font-size: 22px; }
.staff-menu-grid .quick-card strong {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.05rem;
}
.staff-menu-grid .rank {
  width: 32px;
  height: 32px;
  font-size: 14px;
}
.staff-menu-grid .quick-card small { font-size: 12.5px; }

/* ---------- Simple list rows ---------- */
.list-rows { display: grid; }
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: rgba(230, 57, 70, 0.05); }
.rank {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.rank.rank-1 { background: rgba(240, 184, 73, 0.16); color: #f3c877; }
.rank.rank-2 { background: rgba(190, 198, 212, 0.14); color: #d4dae4; }
.rank.rank-3 { background: rgba(230, 140, 70, 0.16); color: #f0a878; }
.rank-name { display: flex; align-items: center; gap: 11px; min-width: 0; }
.rank-name strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Progress / chart ---------- */
.progress {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
}
.progress.progress-ok > span { background: linear-gradient(90deg, #227a4d, var(--ok)); }
.progress.progress-info > span { background: linear-gradient(90deg, #2f6fa8, #52a8e8); }
.progress.progress-warn > span { background: linear-gradient(90deg, #a8791f, #f0b849); }
.metric + .metric { margin-top: 18px; }
.metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
}
.metric-head i { color: var(--accent); width: 17px; text-align: center; }
.metric-head strong { font-weight: 600; }

.chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 170px;
  padding-top: 22px;
}
.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}
.chart-bar-wrap {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.chart-bar {
  width: 100%;
  max-width: 42px;
  min-height: 5px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent-deep));
  position: relative;
}
.chart-bar span {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 11px;
}
.chart-label { color: var(--dim); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Detail strip (edit page) ---------- */
.detail-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(9, 10, 12, 0.35);
  margin-bottom: 22px;
}
.detail-strip span {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* ---------- Admin account rows ---------- */
.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}
.account-row:last-child { border-bottom: 0; }
.account-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-btn), var(--accent-deep));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}
.account-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.account-actions .input { width: 180px; height: 38px; font-size: 13px; }
.tag-you {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(230, 57, 70, 0.16);
  color: #ffb3b9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .dash-grid { grid-template-columns: 1fr; }
  .form-grid.two-col { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .panel-head { padding: 14px 16px; }
  .panel-body { padding: 16px; }
  .list-row, .account-row { padding: 12px 16px; }
  .account-actions { width: 100%; }
  .account-actions .input { flex: 1; width: auto; }
  .filter-row { align-items: stretch; }
  .filter-row .select,
  .filter-row .btn { width: 100%; }
  .chart { height: 140px; }
  .stat-tile .stat-value { font-size: 1.8rem; }
}

