/* Flying Snipers — CYBERSHOKE-style app shell */

:root {
  --bg: #0b0b0f;
  --bg-main: #0f0f14;
  --sidebar: #12121a;
  --sidebar-hover: #1a1a24;
  --sidebar-active: #1e1e2a;
  --surface: #16161f;
  --surface-2: #1c1c28;
  --line: rgba(255,255,255,0.07);
  --line-strong: rgba(255,255,255,0.12);
  --orange: #8b5cf6;
  --orange-2: #a78bfa;
  --orange-bg: rgba(139, 92, 246, 0.12);
  --purple: #8b5cf6;
  --purple-bg: rgba(139, 92, 246, 0.12);
  --cyan: #38bdf8;
  --text: #eeeef2;
  --muted: #9494a8;
  --dim: #5c5c70;
  --ok: #4ade80;
  --warn: #f87171;
  --sidebar-w: 240px;
  --sidebar-collapsed: 72px;
  --topbar-h: 56px;
  --bottom-nav-h: 64px;
  --r: 8px;
  --r-lg: 12px;
  --scrollbar-size: 6px;
  --scrollbar-track: rgba(255, 255, 255, 0.04);
  --scrollbar-thumb: rgba(255, 255, 255, 0.14);
  --scrollbar-thumb-hover: rgba(139, 92, 246, 0.55);
  --scrollbar-thumb-active: #a78bfa;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Custom scrollbar (collection preview, other lists) */
.ui-scrollbar,
.skins-preview {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb-hover) var(--scrollbar-track);
  scrollbar-gutter: stable;
}

.ui-scrollbar::-webkit-scrollbar,
.skins-preview::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

.ui-scrollbar::-webkit-scrollbar-track,
.skins-preview::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 99px;
  margin: 6px 0;
}

.ui-scrollbar::-webkit-scrollbar-thumb,
.skins-preview::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background-clip: padding-box;
  transition: background 0.15s ease;
}

.ui-scrollbar::-webkit-scrollbar-thumb:hover,
.skins-preview::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

.ui-scrollbar::-webkit-scrollbar-thumb:active,
.skins-preview::-webkit-scrollbar-thumb:active {
  background: var(--scrollbar-thumb-active);
}

.ui-scrollbar::-webkit-scrollbar-corner,
.skins-preview::-webkit-scrollbar-corner {
  background: transparent;
}

html { -webkit-text-size-adjust: 100%; }

body.app {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-main);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
  max-width: 100vw;
}

body.app.no-scroll { overflow: hidden; }

#app-root {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ===== APP GRID ===== */
.app-shell {
  display: flex;
  min-height: 100dvh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--topbar-h);
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.sidebar-brand-img {
  width: 100%;
  max-width: 190px;
  height: 34px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.nav-item:hover {
  background: var(--sidebar-hover);
  color: var(--text);
}

.nav-item.active {
  background: var(--sidebar-active);
  color: var(--text);
}

.nav-item.active .nav-icon {
  color: var(--orange-2);
}

.nav-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: inherit;
}

.nav-icon-svg {
  width: 20px;
  height: 20px;
  display: block;
}

.nav-item.active .nav-icon-svg {
  color: var(--orange-2);
}

.bottom-nav .nav-icon-svg {
  width: 22px;
  height: 22px;
}

.nav-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--orange-bg);
  color: var(--orange-2);
}

/* ===== MAIN ===== */
.app-main {
  margin-left: var(--sidebar-w);
  width: calc(100vw - var(--sidebar-w));
  max-width: calc(100vw - var(--sidebar-w));
  min-height: 100dvh;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  box-sizing: border-box;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--bg-main);
  overflow: visible;
}

.topbar-left {
  display: none;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.topbar-filters {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: visible;
}

.topbar-filters:empty {
  display: none;
}

.topbar-filters .filters-panel {
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.topbar-guest,
.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-user[hidden],
.topbar-guest[hidden] {
  display: none !important;
}

.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}

.balance-pill:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.balance-pill:disabled {
  opacity: 0.55;
  cursor: default;
}

.coin-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffd54a, #f59e0b);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.topbar-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.topbar-icon-btn:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
}

.topbar-icon-svg {
  width: 18px;
  height: 18px;
  display: block;
}

.friends-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.friends-badge[hidden] { display: none !important; }

.friends-wrap {
  position: relative;
}

.friends-drop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(300px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
  z-index: 120;
  overflow: hidden;
}

.friends-drop[hidden] { display: none !important; }

.friends-drop-head {
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
}

.friends-list {
  max-height: 280px;
  overflow-y: auto;
}

.friend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.friend-row:last-child { border-bottom: 0; }

.friend-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.friend-info {
  flex: 1;
  min-width: 0;
}

.friend-info strong {
  display: block;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-info span {
  font-size: 11px;
  color: var(--dim);
}

.friend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
  flex-shrink: 0;
}

.friend-dot.on { background: var(--ok); }

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  max-width: 180px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.profile-chip:focus-visible {
  outline: 2px solid var(--orange-2);
  outline-offset: 2px;
}

.profile-chip:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--orange-2), var(--orange));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.profile-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 520px) {
  .profile-name { display: none; }
  .profile-chip { padding: 4px; border-radius: 50%; }
  .balance-pill span:last-child { font-size: 12px; }
}

.menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 18px;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}

.btn-login:hover {
  border-color: var(--muted);
  background: var(--surface-2);
}

.btn-login.steam {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.btn-login.steam:hover {
  background: var(--orange-2);
  border-color: var(--orange-2);
  color: #fff;
}

.btn-login-steam-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn-login-steam-icon {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

#page-content {
  flex: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.content {
  flex: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 20px 20px 32px;
  box-sizing: border-box;
  overflow-x: hidden;
}

.content--servers {
  flex: 1;
  min-height: 0;
  padding: 16px 20px 20px;
  overflow-y: auto;
}

@media (min-width: 1200px) {
  .content { padding: 24px 24px 36px; }
  .content--servers { padding: 16px 24px 24px; }
}

/* ===== FILTERS PANEL ===== */
.filters-panel {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px 18px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  scrollbar-width: none;
}

.filters-panel::-webkit-scrollbar {
  display: none;
}

.filter-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  overflow: visible;
}

.filter-block + .filter-block {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.filter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

.filter-options {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
}

.filter-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.filter-opt:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.filter-opt.active {
  border-color: var(--orange);
  background: var(--orange-bg);
  color: var(--text);
}

.filter-opt.compact {
  font-family: inherit;
}

.filter-opt.map-opt {
  font-family: inherit;
  font-size: 12px;
}

.filter-opt.sort-opt {
  gap: 4px;
}

.filter-sort-arrow {
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  opacity: 0.9;
}

.filter-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.15s;
}

.filter-check:hover {
  color: var(--text);
}

.filter-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.filter-check-box {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  transition: border-color 0.15s, background 0.15s;
}

.filter-check-box::after {
  content: '';
  width: 8px;
  height: 5px;
  border-left: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
  transition: opacity 0.15s;
}

.filter-check input:checked + .filter-check-box {
  border-color: var(--orange);
  background: var(--orange-bg);
}

.filter-check input:checked + .filter-check-box::after {
  border-left-color: var(--orange-2);
  border-bottom-color: var(--orange-2);
  opacity: 1;
}

.filter-check input:focus-visible + .filter-check-box {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.filter-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.region-dropdown {
  min-width: 210px;
  position: relative;
}

.region-dropdown.is-open {
  z-index: 120;
}

.region-dropdown-menu[hidden] {
  display: none !important;
}

.region-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 210px;
  height: 30px;
  padding: 0 30px 0 9px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}

.region-dropdown-name {
  flex: 1;
  min-width: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.region-dropdown-item-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.region-dropdown-flag {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.region-flag-all {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #3f3f48;
  color: #9494a8;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.region-dropdown-item-left .region-dropdown-name {
  flex: 1;
}

.region-dropdown-ping {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.region-dropdown-menu {
  position: fixed;
  z-index: 300;
  min-width: 210px;
  padding: 4px;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
}

.region-dropdown-item:not([data-region=""]) {
  justify-content: space-between;
}

.region-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: background 0.15s;
}

.region-dropdown-item:hover {
  background: var(--surface-2);
}

.region-dropdown-item.is-selected {
  background: var(--orange-bg);
}

.filter-select-icon {
  position: absolute;
  right: 11px;
  top: 50%;
  width: 8px;
  height: 8px;
  pointer-events: none;
  border-right: 1.5px solid var(--dim);
  border-bottom: 1.5px solid var(--dim);
  transform: translateY(-65%) rotate(45deg);
  transition: border-color 0.15s, transform 0.15s;
}

.filter-select-wrap:hover .region-dropdown-trigger {
  border-color: var(--line-strong);
  color: var(--text);
}

.filter-select-wrap:hover .filter-select-icon {
  border-right-color: var(--muted);
  border-bottom-color: var(--muted);
}

.filter-select-wrap.is-open .filter-select-icon,
.filter-select-wrap:focus-within .filter-select-icon {
  transform: translateY(-35%) rotate(225deg);
}

.filter-select-wrap:focus-within .region-dropdown-trigger,
.filter-select-wrap.is-active .region-dropdown-trigger,
.filter-select-wrap.is-open .region-dropdown-trigger {
  border-color: var(--orange);
  background: var(--orange-bg);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.15);
}

.filter-select-wrap:focus-within .filter-select-icon,
.filter-select-wrap.is-active .filter-select-icon,
.filter-select-wrap.is-open .filter-select-icon {
  border-right-color: var(--orange-2);
  border-bottom-color: var(--orange-2);
}

.region-dropdown-trigger:focus {
  outline: none;
}

.region-dropdown-menu .ping-good { color: #6db892; }
.region-dropdown-menu .ping-mid { color: #d4b05a; }
.region-dropdown-menu .ping-bad { color: #e07070; }

#region-filter-ping.ping-good { color: #6db892; }
#region-filter-ping.ping-mid { color: #d4b05a; }
#region-filter-ping.ping-bad { color: #e07070; }


/* ===== SERVER GRID ===== */
.server-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
}

@media (min-width: 600px) {
  .server-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .server-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .server-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.s-card {
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  min-width: 0;
}

.s-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}

.s-card.is-off { opacity: 0.65; }

.s-card-media {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--bg);
}

.s-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 11, 15, 0.88) 0%, transparent 50%);
}

.s-card-badge {
  position: absolute;
  top: 10px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.s-card-map {
  left: 10px;
  right: auto;
}

.s-card-badge.s-card-last {
  top: auto;
  bottom: 10px;
  left: 10px;
  right: auto;
  z-index: 2;
  background: #7c3aed;
  color: #fff;
  backdrop-filter: none;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.s-card-body { padding: 12px 14px 14px; }

.s-card-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s-card-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.s-card-stats .ping {
  flex-shrink: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.s-card-stats-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.s-card-region {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: default;
  line-height: 1;
}

.s-card-region-flag {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.s-card-region-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  z-index: 5;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  pointer-events: none;
}

.s-card-region-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 8px;
  border: 5px solid transparent;
  border-top-color: var(--line-strong);
}

.s-card-region:hover .s-card-region-tip,
.s-card-region:focus-visible .s-card-region-tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.s-card-stats .pl {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.s-card-stats .pl-good { color: #6db892; }
.s-card-stats .pl-mid { color: #d4b05a; }
.s-card-stats .pl-bad { color: #e07070; }

.s-card .ping-good { color: #6db892; }
.s-card .ping-mid { color: #d4b05a; }
.s-card .ping-bad { color: #e07070; }

.s-card-bar {
  height: 3px;
  background: var(--line);
  border-radius: 3px;
  margin-bottom: 12px;
  overflow: hidden;
}

.s-card-bar i {
  display: block;
  height: 100%;
  transition: width 0.35s, background 0.25s;
}

.s-card-bar.fill-good i { background: #6db892; }
.s-card-bar.fill-mid i { background: #d4b05a; }
.s-card-bar.fill-bad i { background: #e07070; }

.s-card-actions {
  display: flex;
  gap: 8px;
}

.s-card-players-btn {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.s-card-players-btn.is-disabled {
  cursor: default;
}

.server-players-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.65);
}

.server-players-overlay[hidden] {
  display: none;
}

.server-players-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: min(80vh, 640px);
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.server-players-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.server-players-head h2 {
  font-size: 18px;
  margin-bottom: 4px;
}

.server-players-head p {
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 14px;
}

.server-players-table-wrap {
  flex: 1;
  overflow: auto;
  margin-bottom: 14px;
}

.server-players-actions {
  display: flex;
  gap: 10px;
}

.server-players-actions .btn-fire,
.server-players-actions .btn-ghost {
  flex: 1;
}

.btn-join-lg {
  flex: 1;
  height: 36px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-join-lg:hover:not(:disabled) {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.btn-join-lg:active:not(:disabled) {
  background: var(--orange-2);
  border-color: var(--orange-2);
  color: #fff;
}

.btn-join-lg:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-copy-lg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  display: grid;
  place-items: center;
}

.btn-copy-lg:hover { color: var(--text); border-color: var(--line-strong); }

.btn-copy-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.list-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--dim);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
}

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

.skins-sync-bar {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.skins-sync-bar--guest {
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.25);
  color: var(--muted);
}

.skins-sync-bar--ok {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--muted);
}

.skins-sync-bar--loading {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--dim);
}

.skins-sync-bar--err {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.skins-sync-login {
  border: none;
  background: none;
  color: var(--orange-2);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.skins-layout {
  --skins-catalog-w: 400px;
  --skins-tile-h: 116px;
  --skins-tile-pad: 5px;
  --skins-tile-gap: 12px;
  --skins-tile-cols: 4;
  --skins-catalog-max-rows: 4;
  --skins-catalog-row-gap: 36px;
  --skins-side-section-pad: 46px;
  --skins-catalog-label-pad: 8px;
  --skins-catalog-subhead-reserve: 0px;
  display: grid;
  grid-template-columns: var(--skins-catalog-w) minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
  align-items: start;
}

.skins-side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.skins-side-top {
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}

.skins-side-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.skins-side-sub {
  margin-top: 4px;
  font-size: 11px;
  color: var(--dim);
}

.skins-search {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.skins-search input {
  width: 100%;
  height: 34px;
  padding: 0 34px 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  outline: none;
}

.skins-search input::placeholder { color: var(--dim); font-weight: 600; }

.skins-search input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.18);
}

.skins-search-ico {
  position: absolute;
  right: 26px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  opacity: 0.7;
  color: #9aa0b1;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.skins-search-ico svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skins-side-section {
  flex: 0 1 auto;
  min-height: 0;
  padding: 10px 8px 36px 14px;
  overflow-x: hidden;
  overflow-y: hidden;
  scrollbar-gutter: auto;
}

.skins-side-section.is-catalog-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb-hover) var(--scrollbar-track);
  scrollbar-gutter: stable;
  max-height: calc(
    var(--skins-side-section-pad) + var(--skins-catalog-subhead-reserve) +
    var(--skins-catalog-max-rows) * var(--skins-tile-h) +
    (var(--skins-catalog-max-rows) - 1) * var(--skins-catalog-row-gap) +
    var(--skins-catalog-label-pad, 8px)
  );
}

.skins-side-section.is-catalog-scroll:has(.skins-subhead) {
  --skins-catalog-subhead-reserve: 44px;
}

.skins-side-section.is-catalog-scroll::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

.skins-side-section.is-catalog-scroll::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 99px;
  margin: 6px 0;
}

.skins-side-section.is-catalog-scroll::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background-clip: padding-box;
  transition: background 0.15s ease;
}

.skins-side-section.is-catalog-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

.skins-side-section.is-catalog-scroll::-webkit-scrollbar-thumb:active {
  background: var(--scrollbar-thumb-active);
}

.skins-side-section.is-catalog-scroll::-webkit-scrollbar-corner {
  background: transparent;
}

.skins-side-section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 10px;
}

/* catalog tile: name plate below icon (not under cursor) */
.catalog-tile {
  position: relative;
  overflow: visible;
  z-index: 0;
}

.catalog-tile:hover,
.catalog-tile:focus-visible {
  z-index: 5;
}

.catalog-tile-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.catalog-tile-label {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  z-index: 10;
  width: max(100%, 118px);
  max-width: 168px;
  padding: 5px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 12, 18, 0.96);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.catalog-tile:hover .catalog-tile-label,
.catalog-tile:focus-visible .catalog-tile-label {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.skins-agent-grid,
.skins-ssg-grid,
.skins-gloves-grid,
.skins-knife-grid,
.skins-agent-picker,
.skins-knife-picker,
.skins-ssg-picker,
.skins-gloves-picker {
  display: grid;
  grid-template-columns: repeat(var(--skins-tile-cols), minmax(0, 1fr));
  gap: var(--skins-tile-gap);
  overflow: visible;
  row-gap: 36px;
}

.agent-tile,
.ssg-tile,
.gloves-tile,
.knife-tile,
.agent-pick,
.knife-pick,
.ssg-pick,
.gloves-pick,
.knife-type,
.gloves-type {
  height: var(--skins-tile-h);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: #0f0f14;
  display: grid;
  place-items: center;
  padding: var(--skins-tile-pad);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

/* rarity tint — коллекция и каталог */
.has-rarity {
  --rarity-color: #9aa0b1;
  isolation: isolate;
  border-color: color-mix(in srgb, var(--rarity-color) 40%, rgba(255, 255, 255, 0.06));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--rarity-color) 26%, transparent),
    0 6px 20px color-mix(in srgb, var(--rarity-color) 9%, transparent);
}

.has-rarity::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--rarity-color) 12%, transparent) 0%,
    transparent 48%,
    color-mix(in srgb, var(--rarity-color) 7%, transparent) 100%
  );
}

.catalog-tile.has-rarity {
  background:
    radial-gradient(ellipse 110% 70% at 50% -10%, color-mix(in srgb, var(--rarity-color) 24%, transparent), transparent 56%),
    radial-gradient(ellipse 85% 50% at 50% 110%, color-mix(in srgb, var(--rarity-color) 10%, transparent), transparent 50%),
    #0f0f14;
}

.catalog-tile.has-rarity .catalog-tile-media {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  align-self: stretch;
}

.catalog-tile.has-rarity .catalog-tile-label {
  position: absolute;
  z-index: 2;
}

.agent-tile img,
.ssg-tile img,
.gloves-tile img,
.knife-tile img,
.agent-pick img,
.knife-pick img,
.ssg-pick img,
.gloves-pick img,
.knife-type img,
.gloves-type img,
.catalog-tile-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(var(--skins-tile-h) - var(--skins-tile-pad) * 2 - 2px);
  min-width: 0;
  display: block;
  object-fit: contain;
  opacity: 0.95;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.65));
  transform: scale(1.08);
  transform-origin: center center;
}

.agent-tile:hover,
.ssg-tile:hover,
.gloves-tile:hover,
.knife-tile:hover,
.agent-pick:hover,
.knife-pick:hover,
.ssg-pick:hover,
.gloves-pick:hover,
.knife-type:hover,
.gloves-type:hover,
.catalog-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(139,92,246,0.35);
  background: #10101a;
}

.catalog-tile.has-rarity:hover {
  border-color: color-mix(in srgb, var(--rarity-color) 55%, transparent);
  background:
    radial-gradient(ellipse 110% 70% at 50% -10%, color-mix(in srgb, var(--rarity-color) 32%, transparent), transparent 56%),
    radial-gradient(ellipse 85% 50% at 50% 110%, color-mix(in srgb, var(--rarity-color) 14%, transparent), transparent 50%),
    #10101a;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--rarity-color) 32%, transparent),
    0 10px 28px color-mix(in srgb, var(--rarity-color) 14%, transparent);
}

/* catalog tiles: flex layout so images can grow */
.agent-tile.catalog-tile,
.ssg-tile.catalog-tile,
.gloves-tile.catalog-tile,
.knife-tile.catalog-tile,
.agent-pick.catalog-tile,
.knife-pick.catalog-tile,
.ssg-pick.catalog-tile,
.gloves-pick.catalog-tile,
.knife-type.catalog-tile,
.gloves-type.catalog-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--skins-tile-pad);
  position: relative;
}

.skins-side-actions {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
}

.skins-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-self: start;
  width: 100%;
}

.skins-main-head {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}

.skins-main-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.skins-main-title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.skins-col-add {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px dashed rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.08);
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, opacity 0.15s;
}

.skins-col-add:hover:not(:disabled) {
  border-color: rgba(139, 92, 246, 0.75);
  background: rgba(139, 92, 246, 0.16);
}

.skins-col-add:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.skins-col-tabs-wrap {
  margin: 0 -4px 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

.skins-col-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 2px 4px 4px;
  min-width: min-content;
}

.skins-col-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 168px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}

.skins-col-tab:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.skins-col-tab.is-active {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.08);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.12);
}

.skins-col-tab-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 88px;
}

.skins-col-tab-badge {
  flex-shrink: 0;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(74, 222, 128, 0.18);
  color: #86efac;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.skins-col-tab-count {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  color: var(--dim);
}

.skins-col-tab.is-active .skins-col-tab-count {
  color: rgba(134, 239, 172, 0.85);
}

.skins-main-hint {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--dim);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.skins-main-hint strong {
  color: var(--text);
  font-weight: 800;
}

.skins-main-hint-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.65);
}

.skins-col-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skins-col-tool {
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.skins-col-tool:hover:not(:disabled) {
  border-color: var(--line-strong);
  color: var(--text);
  background: var(--surface-2);
}

.skins-col-tool:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.skins-col-tool--danger:hover:not(:disabled) {
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
}

.skins-preview {
  flex: 0 0 auto;
  padding: 12px 14px 14px;
  background:
    radial-gradient(ellipse 100% 55% at 50% 0%, rgba(139, 92, 246, 0.14) 0%, transparent 62%),
    var(--surface);
}

.skins-collection {
  --col-card-img-h: 68px;
  --col-card-body-h: 100px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.skins-collection-card:not(.is-empty) {
  position: relative;
}

.skins-collection-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  padding: 8px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-rows: auto var(--col-card-body-h);
  gap: 6px;
  isolation: isolate;
}

.skins-collection-card.has-rarity {
  border-color: color-mix(in srgb, var(--rarity-color) 42%, var(--line));
  background:
    radial-gradient(ellipse 115% 75% at 50% -15%, color-mix(in srgb, var(--rarity-color) 26%, transparent), transparent 58%),
    radial-gradient(ellipse 90% 55% at 50% 115%, color-mix(in srgb, var(--rarity-color) 12%, transparent), transparent 52%),
    var(--surface-2);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--rarity-color) 28%, transparent),
    0 8px 24px color-mix(in srgb, var(--rarity-color) 10%, transparent);
}

.skins-collection-card.has-rarity > *:not(.skins-collection-remove) {
  position: relative;
  z-index: 1;
}

.skins-collection-card.has-rarity .skins-collection-label {
  color: color-mix(in srgb, var(--rarity-color) 65%, var(--dim));
}

.skins-collection-card.is-empty {
  border-style: dashed;
  opacity: 0.85;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  appearance: none;
  transition: border-color 0.15s, background 0.15s, opacity 0.15s, transform 0.15s;
}

.skins-collection-card.is-empty:hover {
  opacity: 1;
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.06);
  transform: translateY(-1px);
}

.skins-collection-card.is-empty:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.55);
  outline-offset: 2px;
}

.skins-collection-card.is-empty .skins-collection-name {
  color: rgba(167, 139, 250, 0.95);
}

.skins-collection-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dim);
}

.skins-collection-body {
  height: var(--col-card-body-h);
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  overflow: hidden;
}

.skins-collection-body img {
  width: 100%;
  height: var(--col-card-img-h);
  max-height: var(--col-card-img-h);
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.55));
}

.skins-collection-empty-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 100%;
  height: var(--col-card-img-h);
  min-height: var(--col-card-img-h);
  color: var(--dim);
  opacity: 0.5;
  transition: opacity 0.15s, color 0.15s;
}

.skins-collection-empty-ico {
  width: 44px;
  height: 44px;
  display: block;
}

.skins-collection-card.is-empty:hover .skins-collection-empty-icon {
  opacity: 0.9;
  color: rgba(167, 139, 250, 0.85);
}

.skins-collection-name {
  width: 100%;
  max-height: 2.6em;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.skins-collection-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  left: auto;
  bottom: auto;
  z-index: 3;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.skins-collection-remove:hover {
  border-color: rgba(239, 68, 68, 0.6);
  color: #f87171;
}

/* agent category (no popup) */
.skins-subhead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.skins-subhead-title {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text);
}

.skins-subhead-sub {
  font-size: 11px;
  font-weight: 800;
  color: var(--dim);
}

.skins-back {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.skins-back:hover { border-color: var(--line-strong); }

.skins-back-ico {
  width: 18px;
  height: 18px;
  display: block;
}

@media (max-width: 899px) {
  .skins-layout {
    grid-template-columns: 1fr;
    --skins-tile-cols: 4;
  }
}

.skins-title .page-title {
  margin: 0;
}

.skins-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.skins-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-primary {
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r);
  background: var(--orange);
  border: 1px solid var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}

.btn-primary:hover { background: var(--orange-2); border-color: var(--orange-2); }

.btn-ghost {
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r);
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}

.btn-ghost:hover { background: var(--surface-2); }

.skins-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-lg);
  margin-bottom: 12px;
}

.skins-tabs {
  display: inline-flex;
  gap: 6px;
  flex-wrap: nowrap;
}

.skins-tab {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.skins-tab:hover { color: var(--text); border-color: var(--line-strong); }

.skins-tab.is-active {
  background: var(--orange-bg);
  border-color: var(--orange);
  color: var(--text);
}

.skins-current {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.skins-current-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 800;
  white-space: nowrap;
}

.skins-current-pill {
  max-width: 420px;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

@media (min-width: 700px) {
  .skins-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .skins-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.skin-item {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  min-width: 0;
  transition: transform 0.15s, border-color 0.15s;
}

.skin-item:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.35);
}

.skin-media {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: radial-gradient(120% 100% at 30% 20%, rgba(139,92,246,0.35) 0%, rgba(11,11,15,0.85) 55%, rgba(11,11,15,1) 100%);
}

.skin-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 11, 15, 0.88) 0%, transparent 55%);
}

.skin-media-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(closest-side, rgba(167,139,250,0.35), transparent 60%);
  filter: blur(10px);
  opacity: 0.6;
}

.skin-badges {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.skin-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: var(--text);
  white-space: nowrap;
}

.skin-badge-rarity { margin-left: auto; opacity: 0.95; }

.skin-body {
  padding: 12px 14px 14px;
}

.skin-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.skin-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.skin-equip {
  width: 100%;
  height: 36px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.skin-equip:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.skin-item.is-active {
  border-color: rgba(139,92,246,0.55);
  box-shadow: 0 0 0 1px rgba(139,92,246,0.18);
}

.skin-item.is-active .skin-equip {
  background: var(--orange-bg);
  border-color: rgba(139,92,246,0.55);
  color: var(--text);
}

.skin-item.is-active .skin-equip:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.skin-tone-gold .skin-media { background: radial-gradient(120% 100% at 30% 20%, rgba(255, 197, 64, 0.35) 0%, rgba(11,11,15,0.85) 55%, rgba(11,11,15,1) 100%); }
.skin-tone-red .skin-media { background: radial-gradient(120% 100% at 30% 20%, rgba(248, 113, 113, 0.35) 0%, rgba(11,11,15,0.85) 55%, rgba(11,11,15,1) 100%); }
.skin-tone-blue .skin-media { background: radial-gradient(120% 100% at 30% 20%, rgba(56, 189, 248, 0.30) 0%, rgba(11,11,15,0.85) 55%, rgba(11,11,15,1) 100%); }
.skin-tone-gray .skin-media { background: radial-gradient(120% 100% at 30% 20%, rgba(148, 148, 168, 0.20) 0%, rgba(11,11,15,0.85) 55%, rgba(11,11,15,1) 100%); }

/* ===== BOTTOM NAV MOBILE ===== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-h);
  background: var(--sidebar);
  border-top: 1px solid var(--line);
  z-index: 100;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-around;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 600;
  color: var(--dim);
  padding: 8px 12px;
}

.bottom-nav a.active { color: var(--orange-2); }

/* ===== RESPONSIVE ===== */
@media (max-width: 899px) {
  .sidebar {
    transform: translateX(-100%);
    width: min(300px, 85vw);
  }

  .sidebar.open { transform: translateX(0); }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 99;
  }

  .sidebar-backdrop.show { display: block; }

  .app-main {
    margin-left: 0;
    width: 100%;
    max-width: 100vw;
  }

  .topbar-left { display: flex; }

  .bottom-nav { display: block; }

  .app-main { padding-bottom: var(--bottom-nav-h); }

  .content { padding: 16px; }
  .content--servers { padding: 12px 16px 16px; }
}

@media (min-width: 900px) and (max-width: 1100px) {
  :root { --sidebar-w: var(--sidebar-collapsed); }

  .app-main {
    margin-left: var(--sidebar-w);
    width: calc(100vw - var(--sidebar-w));
    max-width: calc(100vw - var(--sidebar-w));
  }

  .sidebar-brand-text,
  .nav-item span:not(.nav-icon):not(.nav-badge) { display: none; }

  .sidebar-brand { justify-content: center; padding: 0; }
  .nav-item { justify-content: center; padding: 12px; }
  .nav-badge { display: none; }
}

/* toast + modal */
.toasts {
  position: fixed;
  bottom: calc(16px + var(--bottom-nav-h));
  right: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 360px;
}

@media (min-width: 900px) {
  .toasts { bottom: 16px; }
}

.toast {
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 13px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  pointer-events: auto;
}

.toast.ok { border-color: rgba(74,222,128,0.35); }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.overlay.open { display: flex; }

.dialog {
  width: min(400px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}

.dialog h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.dialog p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 10px; }

.dialog .btn-ghost {
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r);
  border: 1px solid var(--line);
}

.dialog .btn-fire {
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r);
  background: var(--orange);
  color: #fff;
  font-weight: 700;
}

.skins-col-dialog-overlay.open {
  display: flex;
}

.skins-col-dialog--danger {
  border-color: rgba(239, 68, 68, 0.22);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(239, 68, 68, 0.08);
}

.skins-col-dialog--rename {
  border-color: rgba(139, 92, 246, 0.28);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(139, 92, 246, 0.1);
}

.skins-col-dialog--reset {
  border-color: rgba(245, 158, 11, 0.28);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(245, 158, 11, 0.1);
}

.skins-col-dialog-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.skins-col-dialog-icon--danger {
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

.skins-col-dialog-icon--accent {
  border: 1px solid rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
}

.skins-col-dialog-icon--warn {
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.skins-col-dialog-icon svg {
  width: 22px;
  height: 22px;
}

.skins-rename-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}

.skins-rename-input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  outline: none;
  box-sizing: border-box;
}

.skins-rename-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.2);
}

.skins-rename-input[aria-invalid="true"] {
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.15);
}

.skins-rename-error {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #f87171;
  line-height: 1.35;
}

.skins-rename-hint {
  margin: 0 0 20px;
  font-size: 11px;
  color: var(--dim);
  font-weight: 600;
}

.skins-col-dialog #skins-delete-text strong,
.skins-col-dialog #skins-reset-text strong {
  color: var(--text);
  font-weight: 800;
}

.skins-col-dialog-note {
  margin: -12px 0 20px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}

.skins-col-dialog-note--warn {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.1);
  color: #fcd34d;
}

.dialog .btn-danger {
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r);
  border: 1px solid rgba(239, 68, 68, 0.55);
  background: #dc2626;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.dialog .btn-danger:hover {
  background: #ef4444;
  border-color: #f87171;
}

/* ===== PROFILE PAGE ===== */
.content--profile {
  padding: 0;
  background: var(--bg-main);
  overflow-x: clip;
}

.profile-page {
  width: 100%;
  min-height: calc(100vh - var(--topbar-h) - var(--bottom-nav-h));
  display: flex;
  flex-direction: column;
  background: var(--bg-main);
  overflow-x: clip;
}

/* --- Banner --- */
.profile-banner {
  position: relative;
  min-height: 200px;
  background-image: var(--profile-banner);
  background-size: cover;
  background-position: center 35%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 14, 0.92) 0%, rgba(8, 10, 14, 0.55) 45%, rgba(8, 10, 14, 0.75) 100%),
    linear-gradient(180deg, rgba(8, 10, 14, 0.2) 0%, rgba(8, 10, 14, 0.88) 100%);
}

.profile-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 24px;
}

.profile-banner-main {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  min-width: 0;
  flex: 1 1 320px;
}

.profile-banner-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--orange-2), var(--orange));
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.45), 0 0 28px rgba(139, 92, 246, 0.35);
}

.profile-banner-info {
  min-width: 0;
  padding-bottom: 2px;
}

.profile-banner-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.profile-banner-name {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}

.profile-banner-vip {
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.profile-banner-status {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
}

.profile-xp {
  max-width: 340px;
}

.profile-xp-top {
  margin-bottom: 6px;
}

.profile-xp-bolt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--orange-2);
}

.profile-xp-bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.profile-xp-bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  transition: width 0.35s ease;
}

.profile-xp-caption {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.profile-banner-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.profile-banner-social {
  display: flex;
  gap: 8px;
}

.profile-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.75);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.profile-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.profile-premium-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1208;
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.35);
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
}

.profile-premium-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.profile-premium-crown {
  font-size: 14px;
  line-height: 1;
}

/* --- Section nav (filter-opt buttons) --- */
.profile-section-nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 16px 0 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-section-options {
  flex-wrap: wrap;
}

/* --- Body / KPI --- */
.profile-body {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.profile-panel-view {
  padding: 20px 0 36px;
}

/* --- Profile stats layout --- */
.profile-panel-view--stats {
  padding-top: 24px;
}

.profile-viewing-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px 0;
  font-size: 13px;
  color: var(--muted);
}

.profile-viewing-bar strong {
  color: var(--text);
}

.profile-viewing-back {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange-2);
  text-decoration: none;
}

.profile-viewing-back:hover {
  text-decoration: underline;
}

.profile-showcase {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 1040px;
}

.profile-showcase-bento {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.profile-bento-row {
  display: grid;
  gap: 12px;
  align-items: stretch;
  width: 100%;
}

.profile-bento-row--lg {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-bento-row--sm {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-bento-row--lg > :only-child {
  max-width: min(100%, 520px);
}

.profile-bento-row--sm > :only-child {
  max-width: min(100%, 480px);
}

.profile-showcase-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.profile-bento-row--lg .profile-showcase-block {
  min-height: 300px;
}

.profile-bento-row--sm .profile-showcase-block {
  min-height: 220px;
}

.profile-showcase-block > .profile-stats-hero,
.profile-showcase-block > .profile-topmaps,
.profile-showcase-block > .profile-stat-card {
  flex: 1;
  width: 100%;
  max-width: none;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.profile-showcase-block .profile-stats-hero {
  justify-content: space-between;
}

.profile-showcase-block .profile-stat-card-body {
  flex: 1;
  justify-content: space-evenly;
}

.profile-showcase-block .profile-topmaps-list {
  flex: 1;
}

.profile-showcase-comments-zone {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 16px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.profile-showcase-comments-zone .profile-showcase-block--comments {
  width: 100%;
}

.profile-showcase-comments-zone .profile-comments {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
  padding: 20px max(20px, calc((100vw - 960px) / 2 + 20px));
  box-sizing: border-box;
}

.profile-stats-hero {
  padding: 20px 20px 18px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(139, 92, 246, 0.35);
  background:
    linear-gradient(155deg, rgba(139, 92, 246, 0.22) 0%, rgba(139, 92, 246, 0.04) 45%, var(--surface) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.profile-stats-hero-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-2);
  margin-bottom: 14px;
}

.profile-stats-hero-kd {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}

.profile-stats-hero-kd-value {
  font-size: clamp(42px, 6vw, 56px);
  font-weight: 800;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}

.profile-stats-hero-kd-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-stats-hero-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.profile-stats-chip {
  padding: 10px 8px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
}

.profile-stats-chip--accent {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.12);
}

.profile-stats-chip-value {
  display: block;
  font-size: 15px;
  font-weight: 800;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.profile-stats-chip-label {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.profile-stats-scout-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.profile-stats-scout-bar-head strong {
  color: var(--orange-2);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.profile-stat-bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.profile-stat-bar--hero {
  height: 8px;
}

.profile-stat-bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
}

.profile-topmaps {
  width: 100%;
  max-width: none;
  padding: 14px 14px 12px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.profile-topmaps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.profile-topmaps-item {
  display: grid;
  grid-template-columns: 26px 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 6px 4px;
  border-radius: var(--r);
}

.profile-topmaps-item:first-child {
  background: rgba(139, 92, 246, 0.1);
}

.profile-topmaps-rank {
  font-size: 11px;
  font-weight: 800;
  color: var(--orange-2);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  text-align: center;
}

.profile-topmaps-thumb {
  width: 48px;
  height: 30px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.profile-topmaps-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-topmaps-name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-topmaps-bar {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.profile-topmaps-bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
}

.profile-topmaps-hours {
  font-size: 13px;
  font-weight: 800;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--text);
  white-space: nowrap;
}

.profile-topmaps-hours span {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  margin-left: 1px;
}

.profile-comments {
  width: 100%;
  padding: 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}

.profile-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.profile-comments-head .profile-stat-card-title {
  margin: 0;
  padding: 0;
  border: none;
}

.profile-comments-count {
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--orange-bg);
  color: var(--orange-2);
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.profile-comment-form {
  margin-bottom: 16px;
}

.profile-comment-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background: var(--bg-main);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.45;
  resize: vertical;
  min-height: 72px;
}

.profile-comment-input:focus {
  outline: none;
  border-color: var(--orange-2);
  box-shadow: 0 0 0 2px var(--orange-bg);
}

.profile-comment-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.profile-comment-hint {
  font-size: 11px;
  color: var(--dim);
}

.profile-comment-submit {
  height: 34px;
  padding: 0 16px;
  border-radius: var(--r);
  border: 1px solid rgba(139, 92, 246, 0.45);
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.profile-comment-submit:hover {
  background: var(--orange-2);
}

.profile-comment-login-hint {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

.profile-comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.profile-comments-empty {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 0;
}

.profile-comment {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--bg-main);
}

.profile-comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--orange-2), var(--orange));
  overflow: hidden;
}

.profile-comment-avatar.has-img {
  background: rgba(255, 255, 255, 0.06);
}

.profile-comment-avatar.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.profile-comment-meta strong {
  font-size: 13px;
}

.profile-comment-meta time {
  font-size: 11px;
  color: var(--dim);
}

.profile-comment-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.profile-showcase-editor {
  max-width: 720px;
}

.profile-showcase-editor-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.profile-showcase-editor-lead {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.profile-showcase-editor-bento {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: var(--r-lg);
  border: 1px dashed rgba(139, 92, 246, 0.35);
  background: rgba(0, 0, 0, 0.25);
}

.profile-showcase-editor-row.profile-bento-row--lg .profile-showcase-editor-tile {
  min-height: 100px;
}

.profile-showcase-editor-row.profile-bento-row--sm .profile-showcase-editor-tile {
  min-height: 88px;
}

.profile-showcase-editor-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 92px;
  padding: 10px 10px 12px;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  cursor: grab;
  transition: box-shadow 0.15s, opacity 0.15s, border-color 0.15s;
  user-select: none;
}

.profile-showcase-editor-tile:active {
  cursor: grabbing;
}

.profile-showcase-editor-tile.is-dragging {
  opacity: 0.45;
  border-color: var(--orange-2);
}

.profile-showcase-editor-tile.is-drag-over {
  box-shadow: 0 0 0 2px var(--orange-2);
  border-color: var(--orange);
}

.profile-showcase-editor-tile.is-off {
  opacity: 0.42;
  border-style: dashed;
  background: var(--bg-main);
}

.profile-showcase-editor-comments-lock {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--r);
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: var(--orange-bg);
}

.profile-showcase-editor-comments-lock-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--orange-2);
}

.profile-showcase-editor-comments-lock strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.profile-showcase-editor-comments-lock span {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.profile-showcase-editor-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.profile-showcase-drag-handle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.profile-showcase-drag-icon {
  width: 16px;
  height: 16px;
}

.profile-showcase-editor-tile-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 4px;
}

.profile-showcase-editor-tile-body strong {
  font-size: 12px;
  font-weight: 800;
}

.profile-showcase-editor-tile-body span {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.35;
}

.profile-showcase-editor-check {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.profile-showcase-editor-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.profile-showcase-editor-check-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: var(--bg-main);
  display: block;
}

.profile-showcase-editor-check input:checked + .profile-showcase-editor-check-box {
  background: var(--orange);
  border-color: var(--orange-2);
  box-shadow: inset 0 0 0 2px var(--surface);
}

.profile-showcase-editor-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-showcase-editor-info strong {
  font-size: 13px;
}

.profile-showcase-editor-info span {
  font-size: 11px;
  color: var(--muted);
}

.profile-showcase-save {
  height: 40px;
  padding: 0 20px;
  border-radius: var(--r);
  border: none;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.profile-showcase-save:hover {
  background: var(--orange-2);
}

.friend-row--link {
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}

.friend-row--link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.profile-stat-card {
  padding: 16px 16px 14px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}

.profile-stat-card-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.profile-stat-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-stat-line-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-stat-line-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.profile-stat-line-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--text);
  text-align: right;
}

.profile-stat-line + .profile-stat-bar {
  margin-top: 8px;
}

.profile-stat-rank {
  color: var(--orange-2);
}

.profile-stat-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.profile-stat-country {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
}

.profile-stat-unit {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.profile-panel-view--friends {
  max-width: 560px;
}

.profile-friends-search {
  position: relative;
  margin-bottom: 14px;
}

.profile-friends-search-input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 40px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.profile-friends-search-input::placeholder {
  color: var(--dim);
}

.profile-friends-search-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.18);
}

.profile-friends-search-ico {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.profile-friends-search-ico svg {
  width: 18px;
  height: 18px;
}

.profile-friends-search-results {
  margin-bottom: 14px;
}

.profile-friends-search-results[hidden] {
  display: none !important;
}

.profile-friends-search-label {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-friends-search-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.friend-row--search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.friend-row--search .friend-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.profile-friend-search-add {
  flex-shrink: 0;
  height: 34px;
  padding: 0 14px;
  font-size: 12px;
}

.profile-friend-search-add.is-added {
  opacity: 0.65;
}

.profile-friends-head {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.profile-friends {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.profile-friends .friend-row {
  padding: 12px 14px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.profile-friends-empty {
  margin: 0;
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.profile-friend-btn {
  margin-top: 10px;
  width: 100%;
}

.profile-page--loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

@keyframes fs-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.fs-skeleton-bar,
.fs-skeleton-text,
.fs-skeleton-btn {
  display: block;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.11) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: fs-shimmer 1.25s ease-in-out infinite;
}

.fs-skeleton-bar {
  height: 12px;
  width: 72%;
  max-width: 140px;
}

.fs-skeleton-bar--short { width: 36px; max-width: 36px; }
.fs-skeleton-bar--label { width: 56px; max-width: 56px; height: 10px; }
.fs-skeleton-bar--wide { width: min(280px, 100%); max-width: none; height: 14px; }

.fs-skeleton-text--lg { width: 52%; height: 22px; margin-bottom: 10px; }
.fs-skeleton-text { height: 14px; }
.fs-skeleton-text--md { width: 68%; height: 16px; margin-bottom: 10px; }
.fs-skeleton-text--sm { width: 44%; height: 12px; margin-bottom: 12px; }

.fs-skeleton-btn {
  width: 100%;
  height: 38px;
  margin-top: 12px;
  border-radius: 8px;
}

.fs-row--skeleton td {
  padding-top: 14px;
  padding-bottom: 14px;
}

.fs-stat-chip--skeleton {
  pointer-events: none;
  min-width: 88px;
}

.s-card--skeleton {
  pointer-events: none;
}

.s-card--skeleton:hover {
  transform: none;
  border-color: var(--line);
}

.s-card--skeleton .s-card-media {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 75%
  );
  background-size: 200% 100%;
  animation: fs-shimmer 1.25s ease-in-out infinite;
}

.s-card--skeleton .s-card-media::after {
  display: none;
}

.s-card--skeleton .s-card-bar i {
  background: rgba(255, 255, 255, 0.08);
}

.profile-page--pending .profile-stats-chip-value,
.profile-page--pending .profile-stats-hero-kd-value,
.profile-page--pending .profile-stat-line strong,
.profile-page--pending .profile-stat-line .profile-stat-rank {
  color: transparent;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.11) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: fs-shimmer 1.25s ease-in-out infinite;
}

.profile-page--pending .profile-stats-hero-kd-value {
  min-width: 64px;
  display: inline-block;
}

.profile-page--pending .profile-banner-name:empty,
.profile-page--pending .profile-banner-name {
  min-width: 120px;
}

.profile-page--pending .profile-banner-avatar:not(.has-img) {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.11) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: fs-shimmer 1.25s ease-in-out infinite;
}

.profile-banner--skeleton {
  min-height: 220px;
}

.profile-section-nav--skeleton {
  display: flex;
  gap: 12px;
  padding: 0 0 16px;
  pointer-events: none;
}

.profile-section-nav--skeleton .fs-skeleton-bar {
  width: 96px;
  height: 34px;
  border-radius: 8px;
}

.profile-page--boot .profile-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

.friend-avatar.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.profile-panel-view--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 200px;
  gap: 16px;
}

.profile-panel-lead {
  font-size: 14px;
  color: var(--muted);
  max-width: 360px;
  line-height: 1.55;
}

.profile-cta-btn {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 22px;
  border-radius: 6px;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
}

.profile-cta-btn:hover {
  background: var(--orange-2);
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.4);
}

/* --- Footer --- */
.profile-footer {
  margin-top: auto;
  padding: 32px 24px 40px;
  display: flex;
  justify-content: center;
  opacity: 0.35;
}

.profile-footer-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(1.4);
}

/* --- Guest --- */
.profile-page--guest {
  min-height: min(520px, calc(100vh - var(--topbar-h) - var(--bottom-nav-h) - 80px));
  display: grid;
  place-items: center;
  padding: 24px;
}

.profile-guest-card {
  width: 100%;
  max-width: 420px;
  padding: 36px 28px 32px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--orange-bg) 0%, transparent 55%),
    var(--surface);
  text-align: center;
}

.profile-guest-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange-bg);
  color: var(--orange-2);
}

.profile-guest-icon .nav-icon-svg {
  width: 32px;
  height: 32px;
}

.profile-guest-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}

.profile-guest-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 22px;
}

.profile-guest-login {
  width: 100%;
  justify-content: center;
}

@media (max-width: 768px) {
  .profile-banner-inner {
    padding: 20px 16px 18px;
  }

  .profile-banner-actions {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .profile-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .profile-bento-row--lg,
  .profile-bento-row--sm {
    grid-template-columns: 1fr;
  }

  .profile-bento-row--lg > :only-child,
  .profile-bento-row--sm > :only-child {
    max-width: none;
  }

  .profile-showcase-comments-zone .profile-comments {
    padding-left: 16px;
    padding-right: 16px;
  }

  .profile-viewing-bar {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 480px) {
  .profile-banner-avatar {
    width: 72px;
    height: 72px;
    font-size: 22px;
  }

  .profile-stats-hero-chips {
    grid-template-columns: 1fr;
  }

  .profile-topmaps-item {
    grid-template-columns: 22px 40px minmax(0, 1fr) auto;
  }

}

/* ——— Secondary pages, sidebar foot, user menu ——— */
.sidebar-foot {
  padding: 12px 16px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-foot-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: var(--r);
}

.sidebar-foot-link:hover,
.sidebar-foot-link.active {
  color: var(--text);
  background: var(--sidebar-hover);
}

.user-menu-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.user-menu-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  width: 28px;
  height: 36px;
  border-radius: var(--r);
  cursor: pointer;
  font-size: 12px;
}

.user-menu-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.user-menu-drop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  z-index: 200;
}

.user-menu-drop a,
.user-menu-drop button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--r);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.user-menu-drop a:hover,
.user-menu-drop button:hover {
  background: var(--sidebar-hover);
}

.profile-avatar.has-img,
.profile-avatar img {
  padding: 0;
  overflow: hidden;
}

.profile-avatar.has-img img,
.profile-banner-avatar.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.profile-banner-avatar.has-img {
  padding: 0;
  overflow: hidden;
}

a.balance-pill {
  text-decoration: none;
  color: inherit;
}

.content--secondary {
  padding: 20px 24px 48px;
  max-width: 1100px;
}

.fs-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.fs-page-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.fs-page-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  max-width: 560px;
  line-height: 1.5;
}

.fs-neo-link {
  font-size: 13px;
  color: var(--orange-2);
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  white-space: nowrap;
}

.fs-neo-link:hover {
  background: var(--orange-bg);
  border-color: var(--orange);
}

.fs-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
}

.fs-table-wrap {
  padding: 0;
  overflow: auto;
}

.fs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.fs-table th,
.fs-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.fs-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fs-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.fs-rank {
  width: 48px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.fs-rank-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--orange-bg);
  color: var(--orange-2);
}

.fs-player-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.fs-player-link:hover {
  color: var(--orange-2);
}

.fs-rules-block + .fs-rules-block {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.fs-rules-block h2 {
  font-size: 16px;
  margin-bottom: 12px;
}

.fs-rules-block ul {
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.fs-rules-block li + li {
  margin-top: 8px;
}

.fs-search-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.fs-search-bar input {
  flex: 1;
  min-width: 200px;
  padding: 12px 14px;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background: var(--bg-main);
  color: var(--text);
  font: inherit;
}

.fs-ban-type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
}

.fs-ban-type--ban {
  background: rgba(248, 113, 113, 0.15);
  color: var(--warn);
}

.fs-ban-type--mute {
  background: rgba(56, 189, 248, 0.12);
  color: var(--cyan);
}

.fs-reg-users-stats {
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
}

.fs-access-denied {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 16px;
  text-align: center;
}

.fs-table-actions {
  text-align: right;
  white-space: nowrap;
}

.fs-btn-danger {
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.fs-btn-danger:hover:not(:disabled) {
  background: rgba(248, 113, 113, 0.22);
}

.fs-btn-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.fs-mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.shop-grid--locked {
  opacity: 0.55;
  pointer-events: none;
}

.shop-guest {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 20px;
  text-align: center;
}

.shop-guest p {
  color: var(--muted);
  margin-bottom: 16px;
}

.shop-pack {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-pack--popular {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange-bg);
}

.shop-pack-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--orange-2);
  background: var(--orange-bg);
  padding: 4px 8px;
  border-radius: 6px;
}

.shop-pack-coins {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
}

.shop-pack-bonus {
  font-size: 13px;
  color: var(--ok);
}

.shop-pack-bonus--empty {
  color: var(--dim);
}

.shop-pack-price {
  font-size: 18px;
  font-weight: 700;
  margin-top: 4px;
}

.shop-pack-buy {
  margin-top: auto;
  width: 100%;
}

.shop-note {
  font-size: 13px;
  color: var(--dim);
}

.shop-note code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}

.fs-neo-setup {
  margin-bottom: 16px;
  border-color: rgba(139, 92, 246, 0.35);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), transparent);
}

.fs-neo-setup-title {
  font-size: 16px;
  margin-bottom: 12px;
}

.fs-neo-setup-list {
  margin: 0 0 12px 20px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.fs-neo-setup-list strong {
  color: var(--text);
}

.fs-neo-setup-list a {
  color: var(--orange-2);
}

.fs-neo-setup-list code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--orange-2);
}

.fs-neo-setup-note {
  font-size: 13px;
  color: var(--dim);
}

.fs-api-notice {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.fs-table-empty {
  text-align: center;
  color: var(--dim);
  padding: 24px 12px;
}

.fs-table-error {
  color: #f87171;
}

.fs-player-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fs-player-ava {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.fs-ban-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.fs-stat-chip {
  flex: 1;
  min-width: 120px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
}

.fs-stat-chip span {
  display: block;
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 4px;
}

.fs-stat-chip strong {
  font-size: 20px;
  font-weight: 700;
}

.fs-ban-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.fs-ban-tab {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

.fs-ban-tab.is-active {
  background: rgba(249, 115, 22, 0.15);
  border-color: var(--orange);
  color: var(--orange-2);
}

.fs-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.fs-pager-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}

.fs-pager-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-ghost {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
}

.shop-balance-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 14px 18px;
  font-size: 15px;
}

.shop-balance-bar strong {
  font-size: 20px;
  color: var(--orange-2);
}

.fs-pay-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.fs-pay-modal[hidden] {
  display: none;
}

.fs-pay-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.fs-pay-modal-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 24px;
  z-index: 1;
}

.fs-pay-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.fs-pay-modal-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.fs-pay-modal-sum {
  font-size: 22px;
  font-weight: 700;
  color: var(--orange-2);
  margin-bottom: 16px;
}

.fs-pay-modal-label {
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 10px;
}

.fs-pay-gateways {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  min-height: 48px;
}

.fs-pay-gw {
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  display: block;
}

.fs-pay-gw:has(input:checked) {
  border-color: var(--orange);
}

.fs-pay-gw input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fs-pay-gw img {
  height: 32px;
  width: auto;
  display: block;
}

.width-100 {
  width: 100%;
}

.fs-row-banned {
  opacity: 0.55;
}

@media (max-width: 900px) {
  .sidebar-foot {
    display: none;
  }

  .content--secondary {
    padding: 16px 16px 80px;
  }
}
