.hidden { display: none !important; }

:root {
  --bg: #0a0c10;
  --sidebar-bg: #080a0e;
  --card: rgba(16, 20, 26, 0.72);
  --card-solid: #12161c;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(94, 255, 178, 0.25);
  --mint: #5effb7;
  --mint-dim: rgba(94, 255, 178, 0.12);
  --mint-glow: rgba(94, 255, 178, 0.35);
  --text: #f4f6f8;
  --muted: #7a8494;
  --muted2: #525a66;
  --alive: #5effb7;
  --partial: #c8f542;
  --dead: #ff5c7a;
  --dead-bg: rgba(255, 92, 122, 0.06);
  --sidebar-w: 248px;
  --topbar-control-h: 42px;
  --radius: 16px;
  --radius-sm: 12px;
  --font: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --scrollbar-size: 8px;
  --scrollbar-size-thin: 6px;
  --scrollbar-track: rgba(255, 255, 255, 0.03);
  --scrollbar-thumb: rgba(122, 132, 148, 0.38);
  --scrollbar-thumb-hover: rgba(94, 255, 178, 0.5);
  --scrollbar-thumb-active: rgba(94, 255, 178, 0.65);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* —— Scrollbars (page + panels) —— */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

html::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

html::-webkit-scrollbar-corner {
  background: transparent;
}

html::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background 0.2s ease;
}

html::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

html::-webkit-scrollbar-thumb:active {
  background: var(--scrollbar-thumb-active);
}

html::-webkit-scrollbar-button,
html::-webkit-scrollbar-button:single-button {
  display: none;
  width: 0;
  height: 0;
}

.kill-log-body,
.table-wrap,
.admin-card,
.custom-select__menu {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.kill-log-body::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar,
.admin-card::-webkit-scrollbar,
.custom-select__menu::-webkit-scrollbar {
  width: var(--scrollbar-size-thin);
  height: var(--scrollbar-size-thin);
}

.kill-log-body::-webkit-scrollbar-corner,
.table-wrap::-webkit-scrollbar-corner,
.admin-card::-webkit-scrollbar-corner,
.custom-select__menu::-webkit-scrollbar-corner {
  background: transparent;
}

.kill-log-body::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track,
.admin-card::-webkit-scrollbar-track,
.custom-select__menu::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 999px;
  margin: 4px 0;
}

.kill-log-body::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb,
.admin-card::-webkit-scrollbar-thumb,
.custom-select__menu::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
  transition: background 0.2s ease;
}

.kill-log-body::-webkit-scrollbar-thumb:hover,
.table-wrap::-webkit-scrollbar-thumb:hover,
.admin-card::-webkit-scrollbar-thumb:hover,
.custom-select__menu::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

.kill-log-body::-webkit-scrollbar-thumb:active,
.table-wrap::-webkit-scrollbar-thumb:active,
.admin-card::-webkit-scrollbar-thumb:active,
.custom-select__menu::-webkit-scrollbar-thumb:active {
  background: var(--scrollbar-thumb-active);
}

.kill-log-body::-webkit-scrollbar-button,
.table-wrap::-webkit-scrollbar-button,
.admin-card::-webkit-scrollbar-button,
.custom-select__menu::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.ambient {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 55% 40% at 50% -5%, rgba(94, 255, 178, 0.14), transparent 55%),
    radial-gradient(ellipse 30% 25% at 85% 20%, rgba(94, 255, 178, 0.06), transparent),
    var(--bg);
}

/* Pre-login landing: assets/css/landing.css */

/* â€”â€” Shell layout â€”â€” */
.shell {
  position: relative; z-index: 1;
  display: flex; min-height: 100vh;
}
.shell.hidden { display: none; }

.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  padding: 0 8px 28px; font-weight: 700; font-size: 1.05rem;
}
.logo-icon {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(145deg, var(--mint), #22c55e);
  display: grid; place-items: center;
  box-shadow: 0 0 20px var(--mint-glow);
}
.logo-icon i { font-size: 1.05rem; color: #0a0c10; }
.logo span { color: var(--text); }

.nav { list-style: none; flex: 1; }
.nav li { margin-bottom: 4px; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  color: var(--muted); font-size: 0.88rem; font-weight: 500;
  text-decoration: none; transition: background .15s, color .15s;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav a.active {
  color: var(--text); background: rgba(255,255,255,.07);
  border: 1px solid var(--border);
}
.nav a i { width: 20px; text-align: center; font-size: 0.95rem; opacity: 0.65; flex-shrink: 0; }
.nav a.active i { opacity: 1; color: var(--mint); }

.nav-group { margin-bottom: 4px; }
.nav-group.hidden-nav { display: none; }
.nav-parent {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: none; background: transparent;
  color: var(--muted); font-family: var(--font); font-size: 0.88rem; font-weight: 500;
  cursor: pointer; text-align: left; transition: background .15s, color .15s;
}
.nav-parent:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-parent.active, .nav-group.expanded > .nav-parent {
  color: var(--text); background: rgba(255,255,255,.07);
  border: 1px solid var(--border);
}
.nav-parent i:first-child { width: 20px; text-align: center; opacity: 0.65; }
.nav-parent.active i:first-child, .nav-group.expanded > .nav-parent i:first-child { opacity: 1; color: var(--mint); }
.nav-chevron { margin-left: auto; font-size: 0.7rem; opacity: 0.5; transition: transform .2s; }
.nav-group.expanded .nav-chevron { transform: rotate(180deg); }
.nav-sub {
  list-style: none; margin: 4px 0 0 0; padding: 0 0 0 8px;
  display: none;
}
.nav-group.expanded .nav-sub { display: block; }
.nav-sub a {
  padding: 10px 14px 10px 36px; font-size: 0.84rem;
}

.sidebar-cta i {
  display: block; font-size: 1rem; color: var(--mint);
  margin-bottom: 10px;
}

.sidebar-cta {
  margin-top: auto; padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hover);
  background: linear-gradient(135deg, rgba(94,255,178,.08), transparent);
}
.sidebar-cta strong { display: block; font-size: 0.82rem; margin-bottom: 6px; }
.sidebar-cta p { font-size: 0.72rem; color: var(--muted); line-height: 1.45; }

.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
}
.sidebar-user.hidden { display: none; }
.sidebar-user img { width: 36px; height: 36px; border-radius: 10px; }
.sidebar-user .info { flex: 1; min-width: 0; }
.sidebar-user .name {
  font-size: 0.82rem; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sidebar-user .role { font-size: 0.68rem; color: var(--muted); }
.btn-logout {
  width: 34px; height: 34px; padding: 0; border-radius: 8px;
  border: 1px solid var(--border); background: transparent;
  color: var(--muted); cursor: pointer; font-family: var(--font);
  display: grid; place-items: center; flex-shrink: 0;
}
.btn-logout:hover { color: var(--dead); border-color: rgba(255,92,122,.35); }

.main {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: none;
  padding: 28px clamp(20px, 2.5vw, 40px) 48px;
}

.topbar {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  justify-content: space-between; gap: 16px;
  margin-bottom: 28px;
  width: 100%;
}
.topbar-start {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1 1 200px;
}
.topbar-titles {
  min-width: 0;
}
.nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  place-items: center;
  font-size: 1.15rem;
}
.nav-toggle:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.06);
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
}
body.nav-scroll-lock {
  overflow: hidden;
}
.topbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: var(--topbar-control-h);
  padding: 0 14px;
  box-sizing: border-box;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.site-clock {
  border: 1px solid rgba(94, 255, 178, 0.2);
  background: linear-gradient(135deg, rgba(94, 255, 178, 0.06), rgba(16, 20, 26, 0.95));
  font-family: var(--mono);
  font-size: 0.72rem;
}
.site-clock__icon {
  font-size: 0.9rem;
  color: var(--mint);
  opacity: 0.9;
  flex-shrink: 0;
}
.site-clock__date {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.72rem;
  white-space: nowrap;
  padding-right: 10px;
  margin-right: 2px;
  border-right: 1px solid var(--border);
}
.site-clock__time {
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.breadcrumb {
  font-size: 0.8rem; color: var(--muted); margin-bottom: 6px;
}
.breadcrumb span { color: var(--muted2); }
.page-title { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; }

.topbar-actions {
  display: flex; align-items: center; gap: 12px;
}
.live-badge {
  background: linear-gradient(135deg, rgba(94, 255, 178, 0.08) 0%, rgba(16, 20, 26, 0.95) 100%);
  border: 1px solid rgba(94, 255, 178, 0.22);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--mint);
}
.live-badge.is-offline {
  border-color: rgba(255, 92, 122, 0.35);
  background: var(--dead-bg);
  color: #ffb3c1;
}
.live-badge.is-offline .live-badge__dot {
  background: var(--dead);
  box-shadow: 0 0 10px rgba(255, 92, 122, 0.45);
  animation: none;
}
.live-badge__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(94, 255, 178, 0.5);
  animation: live-dot-pulse 2s ease-in-out infinite;
}
@keyframes live-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(94, 255, 178, 0.45); opacity: 1; }
  50% { box-shadow: 0 0 0 6px rgba(94, 255, 178, 0); opacity: 0.85; }
}
.live-badge__label {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
}
.live-badge__seq {
  color: rgba(94, 255, 178, 0.85);
  font-weight: 600;
}
.live-badge__clock {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.7rem;
  white-space: nowrap;
}
.live-badge.is-offline .live-badge__clock {
  color: #ffb3c1;
}
.map-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 14px;
  height: var(--topbar-control-h);
  min-width: 220px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.map-search:focus-within {
  border-color: rgba(94, 255, 178, 0.35);
  box-shadow: 0 0 0 3px rgba(94, 255, 178, 0.1);
}
.map-search > i {
  opacity: 0.45;
  font-size: 0.9rem;
  color: var(--muted);
  flex-shrink: 0;
}
.map-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  outline: none;
}
.map-search input::placeholder {
  color: var(--muted2);
}
.map-search__clear {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
}
.map-search__clear:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
.maps-search-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  font-size: 0.9rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.maps-search-empty i {
  display: block;
  margin-bottom: 12px;
  font-size: 1.25rem;
  opacity: 0.4;
}

.kpi label i { margin-right: 6px; opacity: 0.55; font-size: 0.72rem; }
.btn-logout i { margin-right: 4px; }

.pill-status i { margin-right: 5px; font-size: 0.65rem; }
.map-icon i { font-size: 1rem; }

.err {
  padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px;
  background: var(--dead-bg); border: 1px solid rgba(255,92,122,.35);
  color: #ff9eb0; font-size: 0.88rem; display: none;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 28px;
}
@media (max-width: 900px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .kpi-row { grid-template-columns: 1fr; } }

.kpi {
  padding: 20px 22px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.kpi label {
  display: block; font-size: 0.72rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px;
}
.kpi b {
  font-family: var(--mono); font-size: 1.35rem; font-weight: 600;
  color: var(--text);
}
.kpi b.accent { color: var(--mint); }
.kpi .sub-kpi { font-size: 0.75rem; color: var(--muted); margin-top: 6px; }

.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.section-head h2 { font-size: 1rem; font-weight: 600; color: var(--muted); }
.section-head h2 i { margin-right: 8px; color: var(--mint); opacity: 0.85; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* Custom sort dropdown */
.custom-select {
  position: relative;
  display: inline-block;
  min-width: 15.5rem;
  font-size: 0.82rem;
}
.custom-select__trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(94, 255, 178, 0.22);
  background: linear-gradient(180deg, rgba(18, 22, 28, 0.95) 0%, rgba(10, 12, 16, 0.98) 100%);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.custom-select__trigger:hover {
  border-color: rgba(94, 255, 178, 0.38);
  background: linear-gradient(180deg, rgba(22, 28, 34, 0.98) 0%, rgba(12, 14, 18, 1) 100%);
}
.custom-select.is-open .custom-select__trigger {
  border-radius: 10px 10px 0 0;
  border-bottom-color: transparent;
  box-shadow: none;
}
.custom-select.is-open .custom-select__trigger,
.custom-select__trigger:focus-visible {
  outline: none;
  border-color: rgba(94, 255, 178, 0.5);
}
.custom-select__trigger:focus-visible:not(:hover) {
  box-shadow: 0 0 0 3px rgba(94, 255, 178, 0.12);
}
.custom-select__icon {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.custom-select.is-open .custom-select__icon,
.custom-select__trigger:hover .custom-select__icon {
  color: var(--mint);
}
.custom-select__label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.custom-select__caret {
  flex-shrink: 0;
  font-size: 0.7rem;
  color: var(--muted);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}
.custom-select.is-open .custom-select__caret {
  transform: rotate(180deg);
  color: var(--mint);
}
.custom-select__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  border-radius: 0 0 10px 10px;
  border: 1px solid rgba(94, 255, 178, 0.18);
  border-top: none;
  background: #0e1116;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  opacity: 0;
  transform: translateY(-6px) scaleY(0.96);
  transform-origin: top center;
  pointer-events: none;
  transition:
    opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.custom-select.is-open .custom-select__menu {
  opacity: 1;
  transform: translateY(0) scaleY(1);
  pointer-events: auto;
}
.custom-select__menu[hidden] {
  display: none;
}
.custom-select.is-open .custom-select__menu {
  display: block;
}
.custom-select__menu li {
  padding: 11px 16px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.custom-select__menu li:hover,
.custom-select__menu li:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.custom-select__menu li.is-selected {
  color: var(--mint);
}
.custom-select__menu li.is-selected:hover,
.custom-select__menu li.is-selected:focus {
  background: rgba(94, 255, 178, 0.1);
  color: var(--mint);
}
.view-panel.hidden { display: none !important; }
.nav a.hidden-nav { display: none !important; }
.role-badge {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em;
}
.role-badge.superadmin { background: rgba(255, 193, 7, 0.15); color: #ffd666; }
.role-badge.admin { background: rgba(94, 255, 178, 0.12); color: var(--mint); }
.role-badge.user { background: rgba(255,255,255,.06); color: var(--muted); }
.admin-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .admin-grid { grid-template-columns: 1fr 1fr; } }
.admin-card {
  border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--border); padding: 20px;
}
.admin-card h3 {
  font-size: 0.95rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.admin-card h3 i { color: var(--mint); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.admin-table th, .admin-table td {
  padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--border);
}
.admin-table th { color: var(--muted); font-weight: 500; font-size: 0.75rem; }
.admin-table code { font-family: var(--mono); font-size: 0.78rem; color: var(--mint); }
.admin-user-cell { display: flex; align-items: center; gap: 10px; }
.admin-av { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.dc-avatar {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.dc-avatar .admin-av {
  width: 100%;
  height: 100%;
  display: block;
}
.dc-avatar .admin-av--placeholder {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.dc-status {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid var(--card, #151a21);
  box-sizing: border-box;
  pointer-events: none;
}
.dc-status--online {
  background: #23a559;
}
.dc-status--offline {
  background: #80848e;
}
.admin-last-seen {
  font-size: 0.8rem;
  color: var(--text);
  white-space: nowrap;
}
.admin-user-text { min-width: 0; }
.admin-user-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.25;
}
.admin-user-name-row strong {
  font-size: 0.88rem;
  font-weight: 600;
}
.admin-handle {
  display: block;
  margin-top: 3px;
  font-size: 0.75rem;
  color: var(--muted);
}
.admin-hint { font-size: 0.8rem; color: var(--muted); margin-bottom: 12px; line-height: 1.45; }
.admin-online-card { margin-bottom: 16px; }
.admin-online-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-online-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(94, 255, 178, 0.05);
  border: 1px solid rgba(94, 255, 178, 0.14);
}
.admin-online-list li.admin-online-empty {
  justify-content: center;
  color: var(--muted);
  font-size: 0.84rem;
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  gap: 10px;
}
.admin-online-meta {
  flex: 1;
  min-width: 0;
}
.admin-online-meta strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}
.admin-online-ago {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--mint);
  white-space: nowrap;
}
.admin-av--empty {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.pill-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 0;
  padding: 2px 8px;
  flex-shrink: 0;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mint);
  background: rgba(94, 255, 178, 0.12);
  border: 1px solid rgba(94, 255, 178, 0.25);
  vertical-align: middle;
}
.pill-live i {
  font-size: 0.45rem;
  animation: live-pulse 1.4s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
.admin-form { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.admin-form input {
  flex: 1; min-width: 180px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: rgba(0,0,0,.25);
  color: var(--text); font-family: var(--mono); font-size: 0.82rem;
}
.admin-form input:focus { outline: none; border-color: var(--border-hover); }
.btn-admin {
  padding: 10px 14px; border-radius: 10px; border: none; cursor: pointer;
  font-family: var(--font); font-weight: 600; font-size: 0.82rem;
  background: var(--mint); color: #0a0c10;
}
.btn-admin.secondary { background: rgba(255,255,255,.08); color: var(--text); }
.btn-admin.danger { background: rgba(255, 92, 122, 0.2); color: #ffb3c1; }
.btn-admin:disabled { opacity: 0.45; cursor: not-allowed; }
.admin-msg {
  margin-top: 10px; font-size: 0.82rem; color: var(--muted); min-height: 1.2em;
}
.admin-msg.err { color: #ffb3c1; }
.admin-msg.ok { color: var(--mint); }
.config-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px;
}
.config-grid label { display: block; font-size: 0.72rem; color: var(--muted); margin-bottom: 4px; }
.config-grid input {
  width: 100%; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--border); background: rgba(0,0,0,.25);
  color: var(--text); font-family: var(--mono);
}

/* Map cards ~70% width, Kill feed ~130% vs previous 10:4 column split */
.dashboard-split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 5.2fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
  width: 100%;
}
@media (min-width: 1600px) {
  .dashboard-split {
    grid-template-columns: minmax(0, 7fr) minmax(320px, 5.2fr);
  }
}
.dashboard-main {
  min-width: 0;
  width: 100%;
}
#viewDashboard > .section-head {
  margin-bottom: 16px;
}
.kill-log-aside {
  position: sticky;
  top: 24px;
  width: 100%;
  align-self: start;
}
.kill-log-card {
  width: 100%;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.kill-log-head {
  padding: 22px 24px;
  min-height: 118px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 92, 122, 0.06) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.kill-log-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.kill-log-head h2 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.kill-log-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.kill-log-nav__btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.kill-log-nav__btn:hover:not(:disabled) {
  background: rgba(94, 255, 178, 0.08);
  border-color: rgba(94, 255, 178, 0.35);
  color: var(--mint);
}
.kill-log-nav__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.kill-log-nav__btn--stats {
  margin-left: 4px;
  position: relative;
}
.kill-log-nav__btn--stats::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 11px;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.kill-log-nav__btn--stats:hover:not(:disabled) {
  color: var(--mint);
  border-color: rgba(94, 255, 178, 0.45);
  background: rgba(94, 255, 178, 0.12);
}
.kill-log-nav__btn--stats:hover:not(:disabled)::after {
  border-color: rgba(94, 255, 178, 0.25);
  box-shadow: 0 0 14px rgba(94, 255, 178, 0.2);
}
.kill-log-nav__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  min-width: 7.5rem;
  max-width: 9rem;
  text-align: center;
  line-height: 1.25;
  font-family: var(--mono);
}
.kill-log-nav__label--live {
  color: var(--mint);
}
.kill-log-nav__label--hist {
  color: var(--dead);
}
.kill-log-head h2 i {
  color: var(--dead);
  opacity: 0.9;
}
.kill-log-hint {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}
.kill-log-body {
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  padding-right: 2px;
}
.kill-log-table-wrap {
  padding: 4px 0 8px;
}
.kill-log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.kill-log-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(12, 14, 18, 0.98);
  padding: 10px 14px;
  text-align: left;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted2);
  border-bottom: 1px solid var(--border);
}
.kill-log-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}
.kill-log-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}
.kill-log-table tbody tr.kill-log-row--new td {
  background: rgba(255, 92, 122, 0.08);
}
.kill-log-table td strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.kill-log-map {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}
.kill-log-player {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kill-log-player i {
  color: var(--muted);
  font-size: 0.7rem;
  flex-shrink: 0;
}
.kill-log-ch {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--mint);
  background: var(--mint-dim);
  border: 1px solid rgba(94, 255, 178, 0.2);
}
.kill-log-time {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}
.kill-log-time i {
  margin-right: 5px;
  opacity: 0.65;
}
.kill-log-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}
.kill-log-empty i {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 14px;
  opacity: 0.35;
  color: var(--dead);
}
.kill-log-empty p {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 0.9rem;
}
.kill-log-empty span {
  font-size: 0.8rem;
}

.maps { display: flex; flex-direction: column; gap: 20px; }

.map-card {
  border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.map-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 40px rgba(0,0,0,.25), 0 0 0 1px rgba(94,255,178,.06) inset;
}
.map-card.has-alive {
  border-color: rgba(94, 255, 178, 0.22);
  box-shadow: 0 0 0 1px rgba(94, 255, 178, 0.08) inset;
}
.map-card.monitor-offline {
  border-color: rgba(255, 92, 122, 0.45);
  box-shadow:
    0 0 0 1px rgba(255, 92, 122, 0.12) inset,
    0 8px 32px rgba(255, 92, 122, 0.08);
}
.map-card.monitor-offline:hover {
  border-color: rgba(255, 92, 122, 0.55);
}
.map-card.monitor-offline .map-icon {
  background: rgba(255, 92, 122, 0.12);
  border-color: rgba(255, 92, 122, 0.35);
  color: var(--dead);
}
.map-card.monitor-offline .map-head {
  background: linear-gradient(180deg, rgba(255, 92, 122, 0.08) 0%, transparent 100%);
}
.chip.monitor-offline-chip {
  border-color: rgba(255, 92, 122, 0.35);
  background: rgba(255, 92, 122, 0.12);
  color: #ffb3c1;
}
.chip.monitor-offline-chip .monitor-offline-label {
  color: var(--dead);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.monitor-offline-empty {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 240px;
  padding: 48px 32px 56px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 92, 122, 0.12);
}
.monitor-offline-empty__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(255, 92, 122, 0.14), transparent 65%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(80, 20, 40, 0.25), transparent 70%),
    linear-gradient(180deg, rgba(12, 10, 14, 0.2) 0%, rgba(8, 8, 10, 0.85) 100%);
}
.monitor-offline-empty__icon {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: rgba(255, 140, 160, 0.55);
  background: rgba(255, 92, 122, 0.06);
  border: 1px solid rgba(255, 92, 122, 0.12);
  box-shadow: 0 0 40px rgba(255, 92, 122, 0.08);
}
.monitor-offline-empty__title {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 200, 210, 0.92);
  margin: 0 0 12px;
}
.monitor-offline-empty__text {
  position: relative;
  z-index: 1;
  max-width: 26rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.map-card.monitor-offline .map-head {
  border-bottom-color: rgba(255, 92, 122, 0.15);
}

.map-head {
  padding: 22px 24px;
  min-height: 118px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: flex-start;
  justify-content: space-between; gap: 16px;
}
.map-title-row { display: flex; align-items: center; gap: 14px; }
.map-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(94,255,178,.1); border: 1px solid var(--border-hover);
  display: grid; place-items: center; color: var(--mint);
}
.map-icon .map-short {
  font-family: var(--mono); font-size: 0.65rem; font-weight: 600;
}
.map-head h2 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.boss-tag { font-size: 0.8rem; color: var(--muted); }
.boss-tag em { color: var(--mint); font-style: normal; font-weight: 500; }

.map-timers {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.chip {
  padding: 8px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: 0.72rem;
  background: rgba(0,0,0,.25); border: 1px solid var(--border);
  color: var(--muted);
}
.chip b.hl { color: var(--mint); font-weight: 600; }
.chip b.warn { color: var(--partial); font-weight: 600; }
.chip.phase-fresh b { color: var(--mint); }

.table-wrap { padding: 4px 8px 12px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
th {
  text-align: left; padding: 14px 16px;
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted2);
  border-bottom: 1px solid var(--border);
}
td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.03);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.02); }
tr.row-dead td { background: var(--dead-bg); }
tr.row-dead td:first-child {
  box-shadow: inset 3px 0 0 var(--dead);
}

.ch-cell { display: flex; align-items: center; gap: 10px; }
.ch-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(94,255,178,.12); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--mint); font-size: 0.75rem;
}
.ch { font-weight: 600; font-size: 0.88rem; }

.count { font-family: var(--mono); font-weight: 600; }
.count.full { color: var(--alive); }
.count.partial { color: var(--partial); }
.count.zero { color: var(--dead); }

.pill-status {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600;
}
.pill-status.alive {
  background: var(--mint-dim); color: var(--alive);
  border: 1px solid rgba(94,255,178,.2);
}
.pill-status.dead {
  background: var(--dead-bg); color: var(--dead);
  border: 1px solid rgba(255,92,122,.2);
}

.timer { font-family: var(--mono); font-weight: 600; color: var(--mint); font-size: 0.85rem; }
.timer i { margin-right: 6px; opacity: 0.75; font-size: 0.8rem; }
.timer.muted { color: var(--muted); font-weight: 500; }
.chip i { margin-right: 5px; opacity: 0.7; font-size: 0.72rem; }

/* —— Kill stats modal —— */
body.kill-stats-open {
  overflow: hidden;
}
.kill-stats-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.kill-stats-modal.hidden {
  display: none;
}
.kill-stats-modal--visible {
  opacity: 1;
}
.kill-stats-modal--visible .kill-stats-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.kill-stats-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
}
.kill-stats-modal__panel {
  position: relative;
  width: min(820px, 100%);
  max-height: min(88vh, 800px);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid rgba(94, 255, 178, 0.18);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(94, 255, 178, 0.12), transparent 55%),
    linear-gradient(165deg, rgba(22, 26, 32, 0.98) 0%, rgba(8, 10, 14, 0.99) 100%);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 60px rgba(94, 255, 178, 0.06);
  overflow: hidden;
  transform: translateY(12px) scale(0.97);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}
.kill-stats-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px 10px;
}
.kill-stats-modal__head h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.kill-stats-modal__head h2 i {
  color: var(--mint);
  filter: drop-shadow(0 0 12px var(--mint-glow));
}
.kill-stats-modal__sub {
  padding: 0 26px 16px;
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.kill-stats-modal__close {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.kill-stats-modal__close:hover {
  color: var(--text);
  border-color: rgba(255, 92, 122, 0.4);
  background: rgba(255, 92, 122, 0.08);
}
.kill-stats-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 26px 18px;
}
.kill-stats-kpis-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 0.85rem;
}
.kill-stats-kpis-empty i {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 10px;
  opacity: 0.4;
}
.kill-stats-kpi {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.kill-stats-kpi:hover {
  border-color: rgba(255, 255, 255, 0.12);
}
.kill-stats-kpi--highlight {
  border-color: rgba(94, 255, 178, 0.28);
  background: linear-gradient(135deg, rgba(94, 255, 178, 0.1), rgba(0, 0, 0, 0.2));
  box-shadow: 0 0 24px rgba(94, 255, 178, 0.08);
}
.kill-stats-kpi__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.kill-stats-kpi__icon--mint { color: var(--mint); background: var(--mint-dim); }
.kill-stats-kpi__icon--gold { color: #f5c542; background: rgba(245, 197, 66, 0.12); }
.kill-stats-kpi__icon--dead { color: var(--dead); background: var(--dead-bg); }
.kill-stats-kpi__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted2);
  margin-bottom: 4px;
}
.kill-stats-kpi__value {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.kill-stats-kpi__value--sm {
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kill-stats-kpi__meta {
  display: block;
  font-size: 0.7rem;
  color: var(--mint);
  margin-top: 4px;
  font-family: var(--mono);
}
.kill-stats-tabs {
  display: flex;
  gap: 6px;
  padding: 0 26px 4px;
  border-bottom: 1px solid var(--border);
}
.kill-stats-tab {
  padding: 10px 18px 12px;
  margin-bottom: -1px;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.kill-stats-tab:hover {
  color: var(--text);
}
.kill-stats-tab.active {
  color: var(--mint);
  border-bottom-color: var(--mint);
  background: transparent;
}
.kill-stats-modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 26px 26px;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
.kill-stats-modal__body::-webkit-scrollbar {
  width: var(--scrollbar-size-thin);
}
.kill-stats-modal__body::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}
.kill-stats-panel.hidden {
  display: none;
}
.kill-stats-panel--in {
  animation: killStatsFadeIn 0.35s ease both;
}
@keyframes killStatsFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.kill-stats-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
}
.kill-stats-empty__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mint-dim);
  color: var(--mint);
  font-size: 1.3rem;
  opacity: 0.7;
}
.kill-stats-empty p {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.95rem;
}
.kill-stats-empty span {
  font-size: 0.82rem;
}
/* Podium */
.kill-stats-podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 22px;
  padding: 8px 4px 0;
}
.kill-stats-podium__slot--1 .kill-stats-podium__pedestal {
  min-height: 148px;
  border-color: rgba(245, 197, 66, 0.35);
  background: linear-gradient(180deg, rgba(245, 197, 66, 0.14) 0%, rgba(0, 0, 0, 0.25) 100%);
  box-shadow: 0 0 32px rgba(245, 197, 66, 0.12);
}
.kill-stats-podium__slot--2 .kill-stats-podium__pedestal {
  min-height: 118px;
  border-color: rgba(192, 192, 210, 0.25);
}
.kill-stats-podium__slot--3 .kill-stats-podium__pedestal {
  min-height: 100px;
  border-color: rgba(205, 127, 50, 0.28);
}
.kill-stats-podium__pedestal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  gap: 6px;
}
.kill-stats-podium__place {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.kill-stats-podium__name {
  font-size: 0.88rem;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kill-stats-podium__kills {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mint);
}
.kill-stats-podium__kills small {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
}
.kill-stats-podium__pct {
  font-size: 0.68rem;
  color: var(--muted2);
}
.kill-stats-bar--podium {
  width: 100%;
  max-width: 120px;
  height: 4px;
}
/* Avatar */
.kill-stats-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--mono);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}
.kill-stats-avatar--lg {
  width: 48px;
  height: 48px;
  font-size: 0.95rem;
  border-radius: 14px;
}
/* Leaderboard rows */
.kill-stats-leaderboard {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kill-stats-row {
  display: grid;
  grid-template-columns: 40px 1fr minmax(72px, 88px) minmax(0, 1.2fr);
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  animation: killStatsRowIn 0.4s ease both;
  animation-delay: calc(var(--row-i, 0) * 40ms);
}
@keyframes killStatsRowIn {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}
.kill-stats-row:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}
.kill-stats-row--elite {
  border-color: rgba(94, 255, 178, 0.15);
  background: linear-gradient(90deg, rgba(94, 255, 178, 0.06), transparent 70%);
}
.kill-stats-row__rank {
  display: flex;
  justify-content: center;
}
.kill-stats-row__main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.kill-stats-row__info {
  min-width: 0;
}
.kill-stats-row__info strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kill-stats-row__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.kill-stats-row__metric {
  text-align: right;
}
.kill-stats-row__num {
  display: block;
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 6px;
}
.kill-stats-row__side {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}
/* Medals */
.kill-stats-medal {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 800;
}
.kill-stats-medal--gold {
  background: linear-gradient(145deg, #f5d76e, #c9a227);
  color: #1a1408;
  box-shadow: 0 0 16px rgba(245, 197, 66, 0.45);
}
.kill-stats-medal--silver {
  background: linear-gradient(145deg, #e8eaef, #9aa3b5);
  color: #1c2028;
  box-shadow: 0 0 12px rgba(180, 190, 210, 0.25);
}
.kill-stats-medal--bronze {
  background: linear-gradient(145deg, #e8a86a, #a65d28);
  color: #1a1008;
  box-shadow: 0 0 12px rgba(205, 127, 50, 0.3);
}
.kill-stats-rank {
  font-family: var(--mono);
  color: var(--muted2);
  font-size: 0.8rem;
  font-weight: 600;
}
/* Progress bars */
.kill-stats-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.kill-stats-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(94, 255, 178, 0.5), var(--mint));
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.kill-stats-bar--card .kill-stats-bar__fill {
  background: linear-gradient(90deg, rgba(255, 92, 122, 0.45), var(--dead));
}
/* Chips */
.kill-stats-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kill-stats-chip b {
  color: var(--mint);
  font-family: var(--mono);
  font-weight: 700;
}
.kill-stats-chip i {
  font-size: 0.6rem;
  opacity: 0.65;
}
.kill-stats-chip--muted {
  opacity: 0.5;
}
/* Boss / map cards */
.kill-stats-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kill-stats-card {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  animation: killStatsRowIn 0.4s ease both;
  animation-delay: calc(var(--row-i, 0) * 45ms);
}
.kill-stats-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}
.kill-stats-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.kill-stats-card__head > div {
  flex: 1;
  min-width: 0;
}
.kill-stats-card__head strong {
  display: block;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kill-stats-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--dead-bg);
  color: var(--dead);
  flex-shrink: 0;
}
.kill-stats-card__icon--map {
  background: var(--mint-dim);
  color: var(--mint);
}
.kill-stats-card__badge {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mint);
  flex-shrink: 0;
}
.kill-stats-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}
.kill-stats-muted {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 400;
}
.kill-stats-nav__btn--stats:focus-visible,
.kill-log-nav__btn--stats:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}
@media (max-width: 720px) {
  .kill-stats-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .kill-stats-podium {
    grid-template-columns: 1fr;
  }
  .kill-stats-podium__slot--1 { order: -1; }
  .kill-stats-row {
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
  }
  .kill-stats-row__metric,
  .kill-stats-row__side {
    grid-column: 2;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: grid;
  }
  .sidebar {
    display: flex;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    width: min(288px, 88vw);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    padding-top: max(24px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    box-shadow: none;
  }
  .shell.nav-open .sidebar {
    transform: translateX(0);
    box-shadow: 12px 0 48px rgba(0, 0, 0, 0.55);
  }
  .shell.nav-open .sidebar-backdrop {
    display: block;
  }
  .main {
    padding: 16px 14px 32px;
    padding-top: max(16px, env(safe-area-inset-top));
    max-width: none;
  }
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .topbar-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
  }
  .site-clock,
  .live-badge {
    flex: 1 1 auto;
    min-width: 0;
  }
  .live-badge {
    flex-wrap: wrap;
  }
  .map-search {
    display: flex;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }
  .page-title {
    font-size: 1.35rem;
  }
  .dashboard-split {
    grid-template-columns: 1fr;
  }
  .kill-log-aside {
    position: static;
  }
  .kill-log-body {
    max-height: min(50vh, 360px);
  }
  .kill-log-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .map-card .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .admin-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .kpi-row {
    grid-template-columns: 1fr 1fr;
  }
  .live-badge__clock {
    display: none;
  }
  .live-badge {
    padding: 8px 12px;
  }
}
