/* ============================================================
   darkcore-cyber.css — Floating Island Sidebar Edition
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* ── Backgrounds (Deep, moody space-like darks) ── */
  --bg:            #050508;
  --bg-deep:       #020204;
  --surface:       #0b0c13;
  --surface-alt:   #10121c;
  --surface-hover: #161926;
  --surface-raised:#1a1d2e;

  /* ── Borders (Subtle glowing edges) ── */
  --border:        #1c2035;
  --border-hover:  #2a3054;
  --border-glow:   rgba(100, 130, 255, 0.3);

  /* ── Text ── */
  --text:          #eef0fa;
  --text-muted:    #8187a6;
  --text-dim:      #4a506b;

  /* ── Radius ── */
  --radius:        10px;
  --radius-lg:     16px;
  --radius-sm:     6px;

  /* ── Accents (Cyber Blue / Purple / Cyan / Green) ── */
  --accent:        #5a7cff;
  --accent-hover:  #7492ff;
  --accent-cyan:   #00d2ff;
  --accent-purple: #9d4edd;
  --accent-green:  #10b981;
  --accent-red:    #ef4444;
  
  --accent-dim:    rgba(90, 124, 255, 0.1);
  --accent-glow:   rgba(90, 124, 255, 0.25);
  --accent-glow-strong: rgba(90, 124, 255, 0.5);

  /* ── Role colours ── */
  --role-106: #f59e0b;
  --role-105: #fb923c;
  --role-104: #60a5fa;
  --role-103: #c084fc;
  --role-102: #a78bfa;
  --role-101: #818cf8;
  --role-100: #34d399;
  --role-099: #94a3b8;

  /* ── Status colours ── */
  --red:          #ef4444;
  --red-soft:     #f87171;
  --green:        #10b981;
  --yellow:       #f59e0b;

  /* ── Admin tokens ── */
  --admin-accent:        #fca5a5;
  --admin-bg-active:     linear-gradient(90deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.02) 100%);
  --admin-border-active: rgba(239, 68, 68, 0.2);
  --admin-glow:          rgba(239, 68, 68, 0.3);

  /* ── Nav active item tokens ── */
  --nav-active-text:     #ffffff;
  --nav-active-bg:       linear-gradient(90deg, rgba(90, 124, 255, 0.15) 0%, transparent 100%);
  --nav-active-border:   rgba(90, 124, 255, 0.3);
  --nav-active-accent:   #5a7cff;

  /* ── Shadows (Volumetric, multiple layers for depth) ── */
  --shadow-sm:    0 2px 8px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --shadow-md:    0 8px 24px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-lg:    0 16px 48px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-xl:    0 24px 64px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  
  --shadow-glow:  0 0 20px var(--accent-glow), 0 0 0 1px rgba(90, 124, 255, 0.2);
  --shadow-cyan:  0 0 20px rgba(0, 210, 255, 0.2), 0 0 0 1px rgba(0, 210, 255, 0.3);

  /* ── Layout ── */
  --sidebar-w:    240px;
  --sidebar-collapsed-w: 68px;
  --sidebar-margin: 20px;
  --topbar-h:     52px;

  /* ── Transitions ── */
  --t:            200ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:       120ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-smooth:     350ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Light Theme Overrides ── */
[data-theme="light"] {
  --bg:            #eef1f8;
  --bg-deep:       #e2e6f0;
  --surface:       #ffffff;
  --surface-alt:   #f3f5fb;
  --surface-hover: #e9edf6;
  --surface-raised:#ffffff;

  --border:        #dde2ee;
  --border-hover:  #bcc5dc;
  --border-glow:   rgba(90, 124, 255, 0.4);

  --text:          #111827;
  --text-muted:    #616b85;
  --text-dim:      #9ca3af;

  --nav-active-text:     #3b5bdb;
  --nav-active-bg:       linear-gradient(90deg, rgba(90, 124, 255, 0.12) 0%, transparent 100%);
  --nav-active-border:   rgba(90, 124, 255, 0.3);
  --nav-active-accent:   #3b5bdb;

  --admin-accent:        #dc2626;
  --admin-bg-active:     linear-gradient(90deg, rgba(220, 38, 38, 0.08) 0%, transparent 100%);
  --admin-border-active: rgba(220, 38, 38, 0.25);
  --admin-glow:          rgba(220, 38, 38, 0.2);

  --role-106: #d97706;
  --role-105: #ea580c;
  --role-104: #2563eb;
  --role-103: #9333ea;
  --role-102: #7c3aed;
  --role-101: #4f46e5;
  --role-100: #059669;
  --role-099: #475569;

  --shadow-sm:    0 2px 8px rgba(30, 41, 80, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1);
  --shadow-md:    0 8px 24px rgba(30, 41, 80, 0.1), inset 0 1px 0 rgba(255, 255, 255, 1);
  --shadow-lg:    0 16px 48px rgba(30, 41, 80, 0.15), inset 0 1px 0 rgba(255, 255, 255, 1);
  --shadow-xl:    0 24px 64px rgba(30, 41, 80, 0.2), inset 0 1px 0 rgba(255, 255, 255, 1);
  
  --shadow-glow:  0 0 20px rgba(90, 124, 255, 0.15), 0 0 0 1px rgba(90, 124, 255, 0.2);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* ── Scrollbars ── */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-hover) transparent;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

body {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Cyber background gradients */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(90, 124, 255, 0.08), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(157, 78, 221, 0.06), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(0, 210, 255, 0.03), transparent 60%);
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; color: inherit; line-height: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ============================================================
   3. KEYFRAMES
   ============================================================ */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes dropdownFadeIn { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pulseSquare { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.85); } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }

.page-enter { animation: fadeIn 250ms var(--t-smooth) forwards; }
.skeleton {
  background: linear-gradient(90deg, var(--surface-alt) 0%, var(--surface-hover) 40%, var(--surface-alt) 80%);
  background-size: 800px 100%;
  border-radius: var(--radius);
  animation: shimmer 1.6s linear infinite;
}
.playtime-bar-fill { transition: width 400ms var(--t-smooth); }

/* ============================================================
   4. SIDEBAR (FLOATING ISLAND & EXPANDABLE NAV)
   ============================================================ */
.sidebar {
  position: fixed;
  top: var(--sidebar-margin);
  left: var(--sidebar-margin);
  bottom: var(--sidebar-margin);
  max-height: calc(100vh - var(--sidebar-margin) * 2);
  width: var(--sidebar-w);
  background: rgba(11, 12, 19, 0.88);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  z-index: 200;
  transition: width 300ms cubic-bezier(0.16, 1, 0.3, 1), transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  will-change: width;
  transform: translateZ(0);
}

[data-theme="light"] .sidebar {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--border);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* Sidebar Header / Logo */
.sidebar-header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
  transition: padding 300ms var(--t-smooth);
}

[data-theme="light"] .sidebar-header {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.sidebar .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  overflow: hidden;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(90, 124, 255, 0.6));
  transition: filter var(--t), transform var(--t);
}

.sidebar .logo:hover .logo-icon {
  filter: drop-shadow(0 0 18px rgba(0, 210, 255, 0.8));
  transform: scale(1.05);
}

.sidebar .logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  white-space: nowrap;
  transition: opacity 200ms ease, transform 200ms ease;
}

.sidebar .logo-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.2;
}

.sidebar .logo-sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Nav Items container */
.sidebar-nav {
  flex: 1;
  min-height: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

/* Nav Items (Expanded Island Style) */
.nav-item {
  width: 100%;
  height: 38px;
  min-height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 10px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--surface-alt);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: width 300ms cubic-bezier(0.16, 1, 0.3, 1), padding 300ms cubic-bezier(0.16, 1, 0.3, 1), color var(--t), background var(--t), border-color var(--t), box-shadow var(--t), transform var(--t);
  position: relative;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 2px 4px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  cursor: pointer;
}

[data-theme="light"] .nav-item {
  background: var(--surface-alt);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-item:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .nav-item:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), color var(--t), filter var(--t);
}

.nav-item:hover .nav-icon {
  transform: scale(1.15);
}

.nav-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  transition: opacity 200ms ease, transform 200ms ease;
}

/* Color variations / accents */
.nav-item-accent {
  background: rgba(90, 124, 255, 0.12);
  border-color: rgba(90, 124, 255, 0.25);
  color: var(--accent-cyan);
}
.nav-item-accent:hover {
  background: rgba(90, 124, 255, 0.22);
  box-shadow: 0 0 16px rgba(90, 124, 255, 0.3);
}
.nav-item-accent .nav-icon {
  filter: drop-shadow(0 0 6px currentColor);
}

.nav-item-purple {
  background: rgba(157, 78, 221, 0.12);
  border-color: rgba(157, 78, 221, 0.25);
  color: var(--accent-purple);
}
.nav-item-purple:hover {
  background: rgba(157, 78, 221, 0.22);
  box-shadow: 0 0 16px rgba(157, 78, 221, 0.3);
}

.nav-item-green {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--accent-green);
}
.nav-item-green:hover {
  background: rgba(16, 185, 129, 0.22);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.3);
}

.nav-item-red, .nav-item-admin {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: var(--admin-accent);
}
.nav-item-red:hover, .nav-item-admin:hover {
  background: rgba(239, 68, 68, 0.2);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.3);
  color: #fff;
}

/* Active State */
.nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #3b5bdb);
  border-color: var(--accent-hover);
  box-shadow: 0 0 20px rgba(90, 124, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.nav-item.active .nav-icon {
  color: #ffffff !important;
  stroke: #ffffff !important;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #fff;
  box-shadow: 0 0 8px #fff;
}

.nav-item-admin.active {
  color: #fff !important;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  border-color: #f87171;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Divider & Admin Section */
.nav-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
  flex-shrink: 0;
}

.nav-section-admin {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed rgba(239, 68, 68, 0.2);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

[data-theme="light"] .sidebar-footer {
  border-top-color: rgba(0, 0, 0, 0.06);
}

/* ── Collapsed Sidebar Support (Desktop Toggle) ── */
body.sidebar-collapsed .sidebar {
  width: var(--sidebar-collapsed-w);
  overflow: visible;
}

body.sidebar-collapsed .sidebar .sidebar-nav {
  overflow: visible;
}



body.sidebar-collapsed .sidebar .logo {
  justify-content: center;
}

body.sidebar-collapsed .sidebar .logo-text,
body.sidebar-collapsed .sidebar .nav-label {
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  visibility: hidden !important;
  transform: translateX(-8px) scale(0.95) !important;
  transition: opacity 120ms ease, transform 120ms ease !important;
}

body.sidebar-collapsed .sidebar .sidebar-nav {
  overflow-y: auto;
  overflow-x: hidden;
}

body.sidebar-collapsed .sidebar-header {
  padding: 12px 6px;
  justify-content: center;
}

body.sidebar-collapsed .sidebar .nav-item {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  justify-content: center;
  align-self: center;
}

body.sidebar-collapsed .sidebar .nav-item:hover {
  transform: translateY(-2px);
}

body.sidebar-collapsed .sidebar .nav-item.active::before {
  display: none;
}

body.sidebar-collapsed .sidebar-footer {
  padding: 8px 6px;
  align-items: center;
}

body.sidebar-collapsed .sidebar-footer .nav-item {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  justify-content: center;
}

/* Tooltips in Collapsed Mode */
body.sidebar-collapsed .sidebar .nav-item::after {
  content: attr(aria-label);
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) scale(0.92);
  background: var(--surface-raised);
  border: 1px solid var(--border-glow);
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-fast), transform 150ms cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  z-index: 300;
}

body.sidebar-collapsed .sidebar .nav-item:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

body.sidebar-collapsed .layout-main {
  margin-left: calc(var(--sidebar-collapsed-w) + var(--sidebar-margin) * 2);
}

/* Mobile overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 2, 4, 0.8);
  backdrop-filter: blur(4px);
  z-index: 190;
  animation: fadeIn 200ms ease;
}
.sidebar-overlay.open { display: block; }


/* ============================================================
   5. MAIN LAYOUT
   ============================================================ */
.layout-main {
  /* Отступ слева = маргин + ширина сайдбара + отступ */
  margin-left: calc(var(--sidebar-w) + var(--sidebar-margin) * 2);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  transition: margin-left 300ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: margin-left;
  position: relative;
  z-index: 1;
}

/* ── Topbar ── */
.topbar {
  height: var(--topbar-h);
  background: rgba(5, 5, 8, 0.75);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.75);
}

.hamburger {
  display: none;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 16px;
  transition: color var(--t), background var(--t), transform var(--t-fast);
}
.hamburger:hover {
  color: var(--accent-cyan);
  background: var(--surface-alt);
  transform: scale(1.08);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.topbar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t), transform var(--t-fast);
}
.topbar-link:hover {
  color: var(--accent-hover);
  transform: translateY(-1px);
}

/* ── Content ── */
.content {
  flex: 1;
  padding: 28px 28px 40px;
  min-width: 0;
  position: relative;
}

.content:has(.dashboard-cockpit),
.content:has(.banlist-cockpit),
.content:has(.compare-cockpit),
.content:has(.lab-cockpit) {
  padding: 14px 24px 14px;
  height: calc(100vh - var(--topbar-h));
  max-height: calc(100vh - var(--topbar-h));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1025px) {
  .content:has(.dashboard-cockpit),
  .content:has(.banlist-cockpit),
  .content:has(.compare-cockpit),
  .content:has(.lab-cockpit) {
    overflow: hidden;
  }
}

/* Page Titles */
.page-header { margin-bottom: 24px; }
.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px rgba(90, 124, 255, 0.2);
}
.page-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 400;
}

/* ============================================================
   6. SECTIONS & CARDS
   ============================================================ */
.section { margin-bottom: 20px; }
.section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-cyan), transparent);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  pointer-events: none;
}
.card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md), 0 0 24px rgba(90, 124, 255, 0.08);
  transform: translateY(-2px);
}
.card-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.stat-card {
  background: linear-gradient(160deg, var(--surface-raised) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: -30%; right: -20%;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 124, 255, 0.08), transparent 70%);
  pointer-events: none;
  transition: opacity var(--t);
}
.stat-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md), 0 0 30px rgba(90, 124, 255, 0.12);
  transform: translateY(-2px);
}
.stat-card:hover::after { opacity: 1.5; }
.stat-icon {
  font-size: 16px;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.4));
}
.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
}

.grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.grid-team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

/* ============================================================
   7-11. BADGES, BUTTONS, INPUTS, TABLES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
  transition: box-shadow var(--t), transform var(--t-fast);
}
.badge:hover { transform: translateY(-1px); }

.badge-106 { color: var(--role-106); border-color: color-mix(in srgb, var(--role-106) 40%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--role-106) 15%, transparent); background: color-mix(in srgb, var(--role-106) 8%, transparent); }
.badge-105 { color: var(--role-105); border-color: color-mix(in srgb, var(--role-105) 40%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--role-105) 15%, transparent); background: color-mix(in srgb, var(--role-105) 8%, transparent); }
.badge-104 { color: var(--role-104); border-color: color-mix(in srgb, var(--role-104) 40%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--role-104) 15%, transparent); background: color-mix(in srgb, var(--role-104) 8%, transparent); }
.badge-103 { color: var(--role-103); border-color: color-mix(in srgb, var(--role-103) 40%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--role-103) 15%, transparent); background: color-mix(in srgb, var(--role-103) 8%, transparent); }
.badge-102 { color: var(--role-102); border-color: color-mix(in srgb, var(--role-102) 40%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--role-102) 15%, transparent); background: color-mix(in srgb, var(--role-102) 8%, transparent); }
.badge-101 { color: var(--role-101); border-color: color-mix(in srgb, var(--role-101) 40%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--role-101) 15%, transparent); background: color-mix(in srgb, var(--role-101) 8%, transparent); }
.badge-100 { color: var(--role-100); border-color: color-mix(in srgb, var(--role-100) 40%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--role-100) 15%, transparent); background: color-mix(in srgb, var(--role-100) 8%, transparent); }
.badge-099 { color: var(--role-099); border-color: color-mix(in srgb, var(--role-099) 40%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--role-099) 15%, transparent); background: color-mix(in srgb, var(--role-099) 8%, transparent); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-raised) 0%, var(--surface) 100%);
  color: var(--text);
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  pointer-events: none;
}
.btn:hover {
  background: linear-gradient(180deg, var(--surface-hover) 0%, var(--surface-alt) 100%);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md), 0 0 16px rgba(90, 124, 255, 0.15);
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-sm);
}
.btn-sm { padding: 6px 12px; font-size: 12px; }

.btn-danger {
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--red-soft);
  background: rgba(239, 68, 68, 0.05);
}
.btn-danger:hover {
  border-color: var(--red);
  background: rgba(239, 68, 68, 0.1);
  box-shadow: var(--shadow-md), 0 0 16px rgba(239, 68, 68, 0.2);
}
.btn-export-format.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 16px rgba(90, 124, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.input-wrapper { position: relative; }
.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
  transition: color var(--t);
}
.input-wrapper:focus-within .input-icon { color: var(--accent-cyan); }
.input {
  width: 100%;
  padding: 10px 16px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
.input:hover {
  border-color: var(--border-hover);
  background: var(--surface);
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90, 124, 255, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.2);
  background: var(--surface);
}
.input::placeholder { color: var(--text-dim); }
.input-with-icon { padding-left: 38px; }

.select {
  padding: 10px 34px 10px 14px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238187a6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
.select:hover, .select:focus {
  border-color: var(--border-glow);
  background: var(--surface);
}
.select:focus { border-color: var(--accent); }
.select option { background: var(--surface-alt); color: var(--text); padding: 10px; }

.custom-select-wrapper { position: relative; user-select: none; }
.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.custom-select-trigger:hover {
  border-color: var(--border-glow);
  background: var(--surface-hover);
}
.custom-select-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 100%;
  background: var(--surface-raised);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(90, 124, 255, 0.15);
  z-index: 100;
  display: none;
  flex-direction: column;
  padding: 6px;
  gap: 2px;
}
.custom-select-options.open { display: flex; animation: dropdownFadeIn 160ms var(--t-smooth); }
.custom-select-option {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--t), color var(--t), transform var(--t-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}
.custom-select-option:hover {
  background: var(--surface-hover);
  color: var(--text);
  transform: translateX(2px);
}
.custom-select-option.selected {
  background: var(--accent-dim);
  color: var(--accent-cyan);
  font-weight: 600;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.table-wrapper {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-md);
  background: var(--surface);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
  white-space: nowrap;
  transition: background var(--t-fast);
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: linear-gradient(90deg, rgba(90, 124, 255, 0.06), transparent); }

.nick-link {
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: color var(--t), text-shadow var(--t);
}
.nick-link:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-shadow: 0 0 12px rgba(0, 210, 255, 0.4);
}

.avatar {
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t), box-shadow var(--t);
}
.avatar:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 12px rgba(90, 124, 255, 0.2);
}
.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface-alt), var(--surface-raised));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif;
  flex-shrink: 0;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  padding-top: 24px;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t-fast);
  box-shadow: var(--shadow-sm);
}
.page-btn:hover:not(:disabled):not(.active) {
  color: var(--text);
  border-color: var(--border-glow);
  background: var(--surface-hover);
  box-shadow: var(--shadow-md), 0 0 12px rgba(90, 124, 255, 0.1);
  transform: translateY(-1px);
}
.page-btn.active {
  color: #fff;
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent), #3b5bdb);
  box-shadow: 0 0 16px rgba(90, 124, 255, 0.4), var(--shadow-sm);
  font-weight: 700;
}
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 3px;
  flex-shrink: 0;
  margin-right: 6px;
  vertical-align: middle;
}
.dot-banned    { background: var(--red);    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6); }
.dot-unbanned  { background: var(--green);  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
.dot-permanent { background: var(--yellow); box-shadow: 0 0 8px rgba(245, 158, 11, 0.6); }

.search-container { position: relative; }
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--surface-raised);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  z-index: 1000;
  overflow: hidden;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), 0 0 20px rgba(90, 124, 255, 0.1);
  animation: fadeInScale 160ms var(--t-smooth);
}
.autocomplete-item {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: background var(--t), color var(--t), padding-left var(--t-fast);
  display: flex;
  align-items: center;
  gap: 10px;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover,
.autocomplete-item.highlighted {
  background: var(--surface-hover);
  color: var(--text);
  padding-left: 20px;
}
.autocomplete-item i { font-size: 12px; flex-shrink: 0; color: var(--accent-cyan); }

.team-card {
  background: linear-gradient(160deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t);
  box-shadow: var(--shadow-sm);
}
.team-card:hover {
  border-color: var(--border-glow);
  background: linear-gradient(160deg, var(--surface-hover), var(--surface-alt));
  box-shadow: var(--shadow-md), 0 0 24px rgba(90, 124, 255, 0.1);
  transform: translateY(-2px);
}
.team-card-info { flex: 1; min-width: 0; }
.team-card-name { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-card-server { font-size: 12px; color: var(--text-muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: linear-gradient(160deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.profile-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan), var(--accent-purple));
  opacity: 0.7;
}
.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  padding: 4px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(90, 124, 255, 0.4), rgba(0, 210, 255, 0.1), transparent);
}
.profile-nick { font-size: 24px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; line-height: 1.1; text-shadow: 0 0 30px rgba(90, 124, 255, 0.2); }
.profile-status { font-size: 13px; color: var(--text-muted); margin-top: 8px; line-height: 1.5; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; }
.profile-meta-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); transition: color var(--t); }
.profile-meta-item:hover { color: var(--accent-cyan); }
.profile-meta-item i { font-size: 12px; width: 14px; text-align: center; color: var(--accent); opacity: 0.8; }
.profile-actions { margin-left: auto; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; }

.roles-list { display: flex; flex-direction: column; gap: 8px; }
.role-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--t);
  box-shadow: var(--shadow-sm);
}
.role-item:hover {
  border-color: var(--border-glow);
  background: var(--surface-hover);
  box-shadow: var(--shadow-md), 0 0 12px rgba(90, 124, 255, 0.08);
}
.role-server { font-size: 13px; color: var(--text); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.playtime-list { display: flex; flex-direction: column; gap: 10px; }
.playtime-item { display: grid; grid-template-columns: 160px 1fr 70px; align-items: center; gap: 14px; font-size: 13px; line-height: 1.4; }
.playtime-server { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.playtime-bar-track {
  height: 8px;
  background: var(--bg-deep);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.02);
}
.playtime-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.4);
  position: relative;
}
.playtime-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent);
  border-radius: 4px 4px 0 0;
}
.playtime-value { color: var(--text); text-align: right; white-space: nowrap; font-weight: 600; font-size: 12px; }

.forum-list { display: flex; flex-direction: column; gap: 8px; }
.forum-item {
  padding: 12px 16px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--t-fast);
  box-shadow: var(--shadow-sm);
}
.forum-item:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md), 0 0 12px rgba(90, 124, 255, 0.08);
  transform: translateX(2px);
}
.forum-item-title { font-size: 13px; color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.forum-item-meta { display: flex; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.forum-item-meta span { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.forum-item-meta i { font-size: 11px; color: var(--accent); opacity: 0.7; }

.ban-card {
  background: linear-gradient(160deg, rgba(239, 68, 68, 0.05), var(--surface));
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.1), var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.ban-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
}
.ban-card-header { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--red-soft); margin-bottom: 14px; }
.ban-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.ban-detail-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.ban-detail-value { font-size: 13px; color: var(--text); font-weight: 500; }

.confirmed-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
  vertical-align: middle;
  margin-left: 8px;
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); font-size: 14px; }
.empty-state i { font-size: 32px; margin-bottom: 16px; display: block; opacity: 0.4; color: var(--accent-cyan); filter: drop-shadow(0 0 16px rgba(0, 210, 255, 0.4)); }
.empty-state p { line-height: 1.6; }

.player-search-wrap { max-width: 560px; margin-bottom: 28px; }
.player-search-wrap .input-wrapper { display: flex; gap: 10px; }

.ban-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: all var(--t);
  box-shadow: var(--shadow-sm);
}
.ban-row:hover {
  border-color: var(--border-glow);
  background: var(--surface-alt);
  box-shadow: var(--shadow-md), 0 0 16px rgba(90, 124, 255, 0.08);
}

/* ============================================================
   22-29. MODALS & LAYOUTS
   ============================================================ */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw; height: 100vh;
  background: rgba(2, 2, 4, 0.85);
  backdrop-filter: blur(10px) saturate(1.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 180ms ease;
}
.search-modal {
  width: 100%;
  max-width: 640px;
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), 0 0 40px rgba(90, 124, 255, 0.15);
  overflow: hidden;
  animation: fadeInScale 200ms var(--t-smooth);
}
.search-modal-header { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border); background: rgba(90, 124, 255, 0.03); }
.search-modal-header input { flex: 1; background: transparent; border: none; color: var(--text); font-size: 16px; outline: none; }
.search-modal-header input::placeholder { color: var(--text-dim); }
.search-modal-header i { color: var(--accent-cyan); filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.5)); }
.modal-esc-badge { font-size: 10px; color: var(--text-muted); background: var(--surface-alt); padding: 4px 8px; border-radius: 4px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.search-modal-results { max-height: 400px; overflow-y: auto; padding: 10px 0; }
.search-hint { padding: 30px; text-align: center; color: var(--text-muted); font-size: 14px; }
.search-result-group-title { padding: 10px 20px 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.06em; }
.search-result-item { display: flex; align-items: center; gap: 14px; padding: 12px 20px; color: var(--text); cursor: pointer; transition: all var(--t-fast); text-decoration: none; }
.search-result-item:hover, .search-result-item.active { background: linear-gradient(90deg, rgba(90, 124, 255, 0.1), transparent); padding-left: 24px; }
.search-result-item i { color: var(--accent); width: 18px; text-align: center; }

/* Grids */
.player-sessions-tags-grid { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.player-three-cols-grid { display: grid; grid-template-columns: auto 1.25fr 1fr; gap: 20px; align-items: stretch; }
@media (max-width: 1100px) { .player-three-cols-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
@media (max-width: 768px) { .player-three-cols-grid { grid-template-columns: 1fr; gap: 16px; } }
.radar-two-cols-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 640px) { .radar-two-cols-grid { grid-template-columns: 1fr; gap: 16px; } }

/* Ban Analytics */
.ban-analytics-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: start; }
.ban-recidivists-scroll { display: flex; flex-direction: column; gap: 8px; max-height: 580px; overflow-y: auto; padding-right: 8px; }
.recidivist-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: var(--surface-alt);
  border: 1px solid var(--border); border-radius: var(--radius);
  gap: 12px; transition: all var(--t-fast); box-shadow: var(--shadow-sm);
}
.recidivist-row:hover { border-color: var(--border-glow); background: var(--surface-hover); box-shadow: var(--shadow-md), 0 0 12px rgba(90, 124, 255, 0.08); transform: translateX(2px); }
.analytics-subcard {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: var(--surface-alt);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: all var(--t-fast); box-shadow: var(--shadow-sm);
}
.analytics-subcard:hover { border-color: var(--border-glow); background: var(--surface-hover); box-shadow: var(--shadow-md), 0 0 12px rgba(90, 124, 255, 0.08); }
@media (max-width: 1024px) { .ban-analytics-grid { grid-template-columns: 1fr; gap: 16px; } }

/* Banlist Cockpit */
.banlist-cockpit { display: flex; flex-direction: column; height: 100%; min-height: 0; gap: 12px; }
.banlist-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; flex-shrink: 0; }
.banlist-filter-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
.banlist-breakdown-card {
  padding: 10px 14px !important; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  flex-shrink: 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; box-shadow: var(--shadow-sm);
}
.banlist-table-container {
  flex: 1; min-height: 0; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--surface);
  overflow: auto; position: relative; box-shadow: var(--shadow-md);
}
.banlist-table-container table { width: 100%; border-collapse: collapse; font-size: 13px; }
.banlist-table-container thead th {
  position: sticky; top: 0; z-index: 5; background: var(--surface-alt);
  border-bottom: 1px solid var(--border); padding: 12px 16px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); white-space: nowrap;
}
.banlist-table-container tbody td { padding: 10px 16px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; white-space: nowrap; }
.banlist-table-container tbody tr:hover { background: linear-gradient(90deg, rgba(90, 124, 255, 0.05), transparent); }
.banlist-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; flex-shrink: 0; padding-top: 6px; }
@media (max-width: 992px) { .player-sessions-tags-grid { grid-template-columns: 1fr; gap: 16px; } }

/* Chip Buttons */
.chip-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius);
  font-size: 12px; font-weight: 600; border: 1px solid var(--border);
  background: var(--surface-alt); color: var(--text-muted);
  cursor: pointer; transition: all var(--t-fast);
  outline: none; white-space: nowrap; box-shadow: var(--shadow-sm);
}
.chip-btn:hover { border-color: var(--border-glow); color: var(--text); background: var(--surface-hover); box-shadow: var(--shadow-md), 0 0 12px rgba(90, 124, 255, 0.08); transform: translateY(-1px); }
.chip-btn.active { border-color: var(--yellow); background: linear-gradient(180deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05)); color: var(--yellow); box-shadow: 0 0 16px rgba(245, 158, 11, 0.2), var(--shadow-sm); }
.btn-grid-action {
  width: 28px; height: 28px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-alt); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 12px; cursor: pointer;
  text-decoration: none; transition: all var(--t-fast); box-shadow: var(--shadow-sm);
}
.btn-grid-action:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); background: var(--surface-hover); transform: scale(1.1); box-shadow: 0 0 12px rgba(0, 210, 255, 0.3); }

/* Cookie Banner */
.cookie-banner {
  position: fixed; bottom: 24px; right: 24px; max-width: 480px;
  background: linear-gradient(160deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--border-glow); border-radius: var(--radius-lg);
  padding: 18px 22px; display: flex; align-items: center; justify-content: space-between;
  gap: 18px; z-index: 999; box-shadow: var(--shadow-xl), 0 0 30px rgba(90, 124, 255, 0.1);
  animation: slideUp 300ms var(--t-smooth);
}
@media (max-width: 600px) { .cookie-banner { left: 16px; right: 16px; bottom: 16px; flex-direction: column; align-items: stretch; } }

/* Lang Selector */
.lang-dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 150px;
  background: var(--surface-raised); border: 1px solid var(--border-glow);
  border-radius: var(--radius); padding: 8px; display: flex; flex-direction: column; gap: 4px;
  z-index: 1000; box-shadow: var(--shadow-lg), 0 0 20px rgba(90, 124, 255, 0.15); animation: dropdownFadeIn 160ms var(--t-smooth);
}
.lang-dropdown-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-radius: var(--radius-sm); font-size: 12px;
  font-weight: 600; color: var(--text-muted); background: transparent;
  border: none; cursor: pointer; width: 100%; text-align: left; transition: all var(--t-fast);
}
.lang-dropdown-item:hover { background: var(--surface-hover); color: var(--text); transform: translateX(2px); }
.lang-dropdown-item.active { color: var(--accent-cyan); background: var(--accent-dim); }

/* Live badge */
.live-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  background: color-mix(in srgb, var(--green) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 35%, transparent);
  border-radius: var(--radius); font-size: 11px; font-weight: 700;
  color: var(--green); letter-spacing: 0.06em; text-transform: uppercase; user-select: none;
  box-shadow: 0 0 20px color-mix(in srgb, var(--green) 15%, transparent);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 3px; background: var(--green);
  box-shadow: 0 0 10px var(--green), 0 0 20px color-mix(in srgb, var(--green) 50%, transparent);
  animation: pulseSquare 1.8s ease-in-out infinite;
}

/* Dashboard Cockpit */
.dashboard-cockpit { display: flex; flex-direction: column; gap: 14px; flex: 1; min-height: 0; height: 100%; }
.dashboard-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
.dashboard-quick-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; background: linear-gradient(160deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  gap: 12px; flex-wrap: wrap; flex-shrink: 0; box-shadow: var(--shadow-sm);
}
.dashboard-quick-search { display: flex; gap: 10px; flex: 1; min-width: 240px; }
.dashboard-quick-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dashboard-main-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; align-items: stretch; flex: 1.15; min-height: 0; }
.dashboard-secondary-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; align-items: stretch; flex: 1; min-height: 0; }
.dashboard-card { padding: 16px 20px !important; display: flex; flex-direction: column; justify-content: space-between; min-height: 0; height: 100%; }
.dashboard-chart-wrap { position: relative; width: 100%; flex: 1; min-height: 140px; height: 100%; }
.server-load-item { padding: 8px 12px; background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 6px; transition: all var(--t-fast); box-shadow: var(--shadow-sm); }
.server-load-item:last-child { margin-bottom: 0; }
.server-load-item:hover { border-color: var(--border-glow); background: var(--surface-hover); box-shadow: var(--shadow-md), 0 0 12px rgba(90, 124, 255, 0.08); }
.server-load-bar { height: 6px; background: var(--bg-deep); border-radius: 3px; overflow: hidden; margin-top: 6px; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4); }
.server-load-fill { height: 100%; border-radius: 3px; transition: width 0.4s var(--t-smooth); box-shadow: 0 0 10px rgba(90, 124, 255, 0.4); }
.platform-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--bg-deep); margin: 10px 0 0 0; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4); }
.platform-bar-pc { background: linear-gradient(90deg, var(--accent), var(--accent-cyan)); transition: width 0.3s ease; box-shadow: 0 0 8px rgba(0, 210, 255, 0.4); }
.platform-bar-mobile { background: linear-gradient(90deg, var(--accent-purple), #c084fc); transition: width 0.3s ease; box-shadow: 0 0 8px rgba(157, 78, 221, 0.4); }
.dashboard-mod-cols { display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; flex: 1; min-height: 0; }
.rule-bar-item { margin-bottom: 8px; }
.rule-bar-item:last-child { margin-bottom: 0; }
.rule-bar-header { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 4px; font-weight: 600; }
.rule-progress { height: 5px; background: var(--bg-deep); border-radius: 3px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4); }
.rule-progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-cyan)); border-radius: 3px; transition: width 0.4s var(--t-smooth); box-shadow: 0 0 8px rgba(0, 210, 255, 0.4); }
.incident-card { padding: 8px 10px; background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 6px; transition: all var(--t-fast); box-shadow: var(--shadow-sm); }
.incident-card:last-child { margin-bottom: 0; }
.incident-card:hover { border-color: var(--border-glow); background: var(--surface-hover); box-shadow: var(--shadow-md), 0 0 10px rgba(90, 124, 255, 0.06); }
.staff-duty-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; min-height: 0; }
.staff-duty-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); gap: 8px; min-width: 0; transition: all var(--t-fast); box-shadow: var(--shadow-sm); }
.staff-duty-item:hover { border-color: var(--border-glow); background: var(--surface-hover); box-shadow: var(--shadow-md), 0 0 12px rgba(90, 124, 255, 0.08); transform: translateY(-1px); }

@media (max-width: 1024px) {
  .dashboard-cockpit { height: auto; }
  .dashboard-main-grid, .dashboard-secondary-grid, .dashboard-mod-cols, .staff-duty-grid { grid-template-columns: 1fr; }
  .dashboard-chart-wrap { min-height: 200px; }
}
@media (max-width: 640px) { .dashboard-chart-wrap { min-height: 170px; } }

/* Lab Cockpit */
.lab-cockpit { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; height: 100%; }
.lab-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
.lab-profile-header-card { overflow: visible !important; position: relative; z-index: 25; padding: 12px 18px !important; background: linear-gradient(160deg, var(--surface-raised), var(--surface)); border: 1px solid var(--border); border-top: 3px solid var(--accent-cyan); border-radius: var(--radius-lg); flex-shrink: 0; box-shadow: var(--shadow-md), 0 0 24px rgba(0, 210, 255, 0.08); }
.lab-main-grid { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; }
.lab-row-top { display: grid; grid-template-columns: 1fr 280px; gap: 12px; flex: 1.25; min-height: 0; align-items: stretch; }
.lab-row-bottom { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; flex: 0.95; min-height: 0; align-items: stretch; }
.lab-mon-cockpit-grid { display: grid; grid-template-columns: 1fr 340px; gap: 12px; flex: 1; min-height: 0; align-items: stretch; }
.lab-mon-left-col { display: flex; flex-direction: column; gap: 12px; min-height: 0; height: 100%; }
.lab-mon-chart-card { flex: 0 0 210px; min-height: 200px; padding: 12px 16px !important; }
.lab-mon-servers-card { flex: 1; min-height: 0; padding: 0 !important; overflow: hidden; }
.lab-mon-right-col { display: flex; flex-direction: column; min-height: 0; height: 100%; }
@media (max-width: 1024px) { .lab-mon-cockpit-grid { grid-template-columns: 1fr; height: auto; } .lab-mon-chart-card { flex: none; height: 220px; } }
.lab-card { padding: 14px 16px !important; display: flex; flex-direction: column; min-height: 0; height: 100%; overflow: hidden; }
@media (max-width: 1024px) { .lab-cockpit { height: auto; min-height: 0; } .lab-row-top, .lab-row-bottom, .lab-mon-row-top { grid-template-columns: 1fr; } }

/* Tooltips */
.dcc-custom-tooltip {
  position: fixed; z-index: 100000; pointer-events: none;
  background: var(--surface-raised); border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm); padding: 8px 12px;
  box-shadow: var(--shadow-md), 0 0 16px rgba(90, 124, 255, 0.2);
  font-size: 12px; color: var(--text); white-space: nowrap;
  opacity: 0; transform: translate(-50%, -100%) translateY(-4px) scale(0.96);
  transition: opacity 0.12s ease, transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dcc-custom-tooltip.is-visible { opacity: 1; transform: translate(-50%, -100%) translateY(-8px) scale(1); }
.dcc-rule-tooltip {
  position: fixed; z-index: 100000; pointer-events: none;
  background: var(--surface-raised); border: 1px solid var(--border-glow);
  border-radius: var(--radius); padding: 12px 16px;
  box-shadow: var(--shadow-lg), 0 0 32px rgba(90, 124, 255, 0.15);
  max-width: 320px; opacity: 0; transform: translateY(6px) scale(0.97);
  transition: opacity 0.16s ease, transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1);
  line-height: 1.5; color: var(--text);
}
.dcc-rule-tooltip.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.dcc-rule-tooltip-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.dcc-rule-tooltip-title { font-weight: 700; font-size: 13px; color: var(--yellow); display: flex; align-items: center; gap: 6px; }
.dcc-rule-tooltip-body { font-size: 12px; color: var(--text); margin-bottom: 8px; }
.dcc-rule-tooltip-punishment { font-size: 11px; font-weight: 700; color: var(--red-soft); background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); padding: 4px 8px; border-radius: 4px; display: inline-block; box-shadow: 0 0 12px rgba(239, 68, 68, 0.15); }
.rule-hover-trigger { cursor: help; display: inline-flex; align-items: center; gap: 5px; border-bottom: 1px dashed var(--border-glow); transition: color var(--t), border-color var(--t); }
.rule-hover-trigger:hover { color: var(--yellow) !important; border-bottom-color: var(--yellow); }

/* Dossier */
.dossier-modal-backdrop { position: fixed; inset: 0; background: rgba(2, 2, 4, 0.9); backdrop-filter: blur(12px) saturate(1.4); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn 0.2s ease; }
.dossier-modal-dialog { background: linear-gradient(180deg, var(--surface-raised), var(--surface)); border: 1px solid var(--border-glow); border-radius: var(--radius-lg); max-width: 820px; width: 100%; max-height: 90vh; display: flex; flex-direction: column; box-shadow: var(--shadow-xl), 0 0 50px rgba(90, 124, 255, 0.2); overflow: hidden; animation: fadeInScale 240ms var(--t-smooth); }
.dossier-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; background: var(--surface-alt); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.dossier-modal-body { padding: 28px; overflow-y: auto; display: flex; justify-content: center; background: #040407; }
.dossier-card { width: 760px; background: #0a0b12; border: 1px solid #1e2235; border-radius: var(--radius-lg); position: relative; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(90, 124, 255, 0.08); color: #e2e8f0; font-family: 'Space Grotesk', -apple-system, sans-serif; line-height: 1.5; }
.dossier-card * { box-sizing: border-box; line-height: inherit; }
.dossier-card-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; background: linear-gradient(180deg, #10121c, #0c0e16); border-bottom: 1px solid #1e2235; position: relative; }
.dossier-card-header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-cyan), var(--accent-purple)); box-shadow: 0 0 20px rgba(0, 210, 255, 0.4); }
.dossier-agency-label { font-family: monospace; font-size: 10px; letter-spacing: 0.15em; color: #5a6280; text-transform: uppercase; margin-bottom: 4px; }
.dossier-doc-id { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: #ffffff; text-shadow: 0 0 20px rgba(90, 124, 255, 0.3); }
.dossier-stamp { padding: 6px 14px; border-radius: 4px; font-family: monospace; font-weight: 800; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.dossier-card-content { padding: 24px; display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.dossier-identity-col { display: flex; flex-direction: column; gap: 16px; padding-right: 24px; border-right: 1px dashed #1e2235; }
.dossier-avatar-box { width: 100%; aspect-ratio: 1; border-radius: var(--radius); background: #10131e; border: 2px solid #232838; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; box-shadow: 0 0 24px rgba(90, 124, 255, 0.08); }
.dossier-details-col { display: flex; flex-direction: column; gap: 14px; }
.dossier-stat-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #10131e; border: 1px solid #1c2030; border-radius: var(--radius-sm); font-size: 12px; transition: border-color var(--t); }
.dossier-stat-row:hover { border-color: #2b3350; }
.dossier-card-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; background: #0c0e16; border-top: 1px solid #1a1e2c; font-family: monospace; font-size: 10px; color: #4a5070; }
@media print {
  body * { visibility: hidden; }
  #dossierPrintArea, #dossierPrintArea * { visibility: visible; }
  #dossierPrintArea { position: absolute; left: 0; top: 0; width: 100%; margin: 0; padding: 0; }
  .dossier-modal-backdrop { position: static; background: transparent; padding: 0; }
  .dossier-modal-header, .dossier-modal-actions { display: none !important; }
}

/* Toasts */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 500; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: linear-gradient(160deg, var(--surface-raised), var(--surface)); border: 1px solid var(--border-glow); border-radius: var(--radius); font-size: 13px; color: var(--text); min-width: 240px; max-width: 360px; pointer-events: all; animation: toastIn 200ms var(--t-smooth) forwards; box-shadow: var(--shadow-lg), 0 0 24px rgba(90, 124, 255, 0.1); }
.toast-error   { border-color: var(--red); box-shadow: var(--shadow-lg), 0 0 24px rgba(239, 68, 68, 0.2); }
.toast-success { border-color: var(--green); box-shadow: var(--shadow-lg), 0 0 24px rgba(16, 185, 129, 0.2); }
.toast-icon { font-size: 14px; flex-shrink: 0; }
.toast-error   .toast-icon { color: var(--red);   }
.toast-success .toast-icon { color: var(--green); }

/* ============================================================
   RESPONSIVE & MOTION
   ============================================================ */
@media (max-width: 1024px) {
  .content { padding: 20px 20px 40px; }
  .content:has(.dashboard-cockpit),
  .content:has(.banlist-cockpit),
  .content:has(.compare-cockpit),
  .content:has(.lab-cockpit) { height: auto; max-height: none; overflow: visible; padding: 16px 20px 24px; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(calc(-100% - 24px)); }
  .sidebar.open { transform: translateX(0); }
  .layout-main { margin-left: 0; }
  .hamburger { display: flex; align-items: center; }
  .topbar { padding: 0 16px; }
  .topbar-right { gap: 8px; }
  .topbar-link span, .topbar-link { font-size: 12px; }
  .content { padding: 16px 16px 32px; }
  .grid-stats { grid-template-columns: repeat(2, 1fr); }
  .grid-team { grid-template-columns: 1fr; }
  .profile-header { flex-direction: column; align-items: flex-start; }
  .profile-actions { margin-left: 0; width: 100%; }
  .playtime-item { grid-template-columns: 110px 1fr 55px; gap: 10px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar .select, .filter-bar .input { width: 100%; }
}

@media (max-width: 580px) {
  #btnGlobalSearch span, #btnGlobalSearch kbd, #cubix-site-link { display: none !important; }
  #btnGlobalSearch { padding: 8px 10px !important; }
}

@media (max-width: 480px) {
  .topbar-right { gap: 6px; }
  #liveIndicator span:last-child { display: none; }
  #liveIndicator { padding: 5px 8px !important; }
  .content { padding: 12px 12px 28px; }
  .page-title { font-size: 18px; }
  .grid-stats { grid-template-columns: 1fr; }
  .playtime-item { grid-template-columns: 85px 1fr 48px; gap: 8px; }
  .table td, .table th { padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ── Stacking context & dropdown elevation ── */
.search-container, .input-wrapper.search-container {
  position: relative;
  z-index: 30;
}
.autocomplete-dropdown {
  z-index: 1000 !important;
}
.custom-select-options {
  z-index: 1000 !important;
}
.lang-dropdown-menu {
  z-index: 1000 !important;
}

/* ── Mobile & Responsive fix for Monitoring page ── */
@media (max-width: 1024px) {
  .lab-mon-left-col {
    height: auto !important;
    min-height: 0 !important;
    flex: none !important;
  }
  .lab-mon-chart-card {
    flex: none !important;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
  }
  .lab-mon-chart-card canvas {
    max-height: 170px !important;
  }
  .lab-mon-servers-card {
    flex: none !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  .lab-mon-servers-card > div:last-child {
    overflow-y: visible !important;
    max-height: none !important;
  }
}
@media (max-width: 640px) {
  .lab-mon-chart-card {
    height: 190px !important;
    min-height: 190px !important;
    max-height: 190px !important;
  }
  .lab-mon-chart-card canvas {
    max-height: 140px !important;
  }
}

/* ── Responsive Mobile & Tablet Layout Fixes ── */
@media (max-width: 768px) {
  .layout-main,
  body.sidebar-collapsed .layout-main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  .sidebar,
  body.sidebar-collapsed .sidebar {
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    width: 260px !important;
    border-radius: 0 !important;
    transform: translateX(calc(-100% - 24px));
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .sidebar.open,
  body.sidebar-collapsed .sidebar.open {
    transform: translateX(0) !important;
  }
  /* Reset collapsed icons styles on mobile */
  body.sidebar-collapsed .sidebar .logo-text,
  body.sidebar-collapsed .sidebar .nav-label {
    opacity: 1 !important;
    pointer-events: auto !important;
    position: static !important;
    visibility: visible !important;
    transform: none !important;
  }
  body.sidebar-collapsed .sidebar .nav-item {
    width: 100% !important;
    height: auto !important;
    min-height: 40px !important;
    padding: 0 10px !important;
    justify-content: flex-start !important;
  }
  body.sidebar-collapsed .sidebar .nav-item::after {
    display: none !important;
  }
  /* Mobile container bounds */
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  .content {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
}

/* ── Search Modal Footer & Segmented Mode Switcher ── */
.search-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  gap: 12px;
  flex-wrap: wrap;
}
.search-modal-footer-hints {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-footer-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.search-footer-hint kbd {
  font-family: inherit;
  font-size: 9.5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 4px;
  color: var(--text);
}
.search-ui-mode-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.search-ui-mode-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.search-ui-mode-group {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2px;
  gap: 2px;
}
.search-ui-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition: all var(--t);
}
.search-ui-mode-btn:hover {
  color: var(--text);
}
.search-ui-mode-btn.active {
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
}

/* ============================================================
   ULTRA FX & GLASS AURA ENGINE (High-Fidelity Visual Suite)
   ============================================================ */

/* ── 1. Animated Ambient Aurora Background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 15% 20%, rgba(90, 124, 255, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(0, 210, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(157, 78, 221, 0.06) 0%, transparent 55%),
    radial-gradient(circle at 80% 15%, rgba(16, 185, 129, 0.06) 0%, transparent 40%);
  animation: auroraBreathe 18s ease-in-out infinite alternate;
  filter: blur(40px);
}

@keyframes auroraBreathe {
  0% { transform: scale(1) translate(0, 0); opacity: 0.8; }
  50% { transform: scale(1.08) translate(-15px, 20px); opacity: 1; }
  100% { transform: scale(1.03) translate(20px, -15px); opacity: 0.85; }
}

/* ── 2. Glassmorphism & Liquid Shimmer on Cards ── */
.card, .stat-card, .team-card {
  position: relative;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  background: linear-gradient(135deg, rgba(20, 24, 40, 0.7) 0%, rgba(11, 13, 22, 0.85) 100%) !important;
  border: 1px solid rgba(100, 130, 255, 0.18) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 300ms cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

[data-theme="light"] .card,
[data-theme="light"] .stat-card,
[data-theme="light"] .team-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(240, 244, 255, 0.9) 100%) !important;
  border: 1px solid rgba(90, 124, 255, 0.2) !important;
  box-shadow: 0 10px 30px rgba(30, 41, 80, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* Shimmer Light Beam Effect on Hover */
.card::after, .stat-card::after, .team-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  transform: skewX(-25deg);
  pointer-events: none;
  transition: none;
  z-index: 2;
}

.card:hover::after, .stat-card:hover::after, .team-card:hover::after {
  left: 160%;
  transition: left 800ms ease;
}

.card:hover, .stat-card:hover, .team-card:hover {
  transform: translateY(-3px) scale(1.006) !important;
  border-color: rgba(90, 124, 255, 0.5) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 25px rgba(90, 124, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* ── 3. Pulsing Live Radar / Status Waves ── */
.status-dot, .dot-online {
  position: relative;
}

.status-dot.dot-online::before,
.dot-online::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: inherit;
  opacity: 0.6;
  animation: radarWave 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes radarWave {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* ── 4. Interactive Magnetic Button Glows ── */
.btn {
  position: relative;
  transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn:hover {
  transform: translateY(-1.5px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(90, 124, 255, 0.25) !important;
}

.btn:active {
  transform: translateY(0.5px) scale(0.98) !important;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 50%, #06b6d4 100%) !important;
  background-size: 200% 200% !important;
  animation: gradientFlow 6s ease infinite !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35) !important;
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.55), 0 0 20px rgba(6, 182, 212, 0.4) !important;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── 5. Sidebar Floating Island Kinetic Glow ── */
.sidebar {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(90, 124, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(100, 130, 255, 0.22) !important;
}

.sidebar .nav-item {
  position: relative;
  transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sidebar .nav-item:hover {
  transform: translateX(3px) !important;
  background: linear-gradient(90deg, rgba(90, 124, 255, 0.14) 0%, transparent 100%) !important;
}

.sidebar .nav-item.active {
  background: linear-gradient(90deg, rgba(90, 124, 255, 0.2) 0%, rgba(90, 124, 255, 0.03) 100%) !important;
  box-shadow: inset 3px 0 0 var(--accent), 0 0 20px rgba(90, 124, 255, 0.15) !important;
}

.sidebar .nav-item.active .nav-icon {
  filter: drop-shadow(0 0 8px rgba(90, 124, 255, 0.8));
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

/* ── 6. Futuristic Input Glow Focus ── */
.input, .select {
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.input:focus, .select:focus {
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.18), 0 0 20px rgba(0, 210, 255, 0.15) !important;
  transform: translateY(-0.5px);
}

/* ── 7. Badges with Subtle Glow ── */
.badge {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.badge:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* ── 8. Search Modal Glass Elevation ── */
.search-modal {
  backdrop-filter: blur(24px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.6) !important;
  background: linear-gradient(180deg, rgba(16, 20, 36, 0.95), rgba(8, 10, 18, 0.98)) !important;
  border: 1px solid rgba(100, 130, 255, 0.35) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 50px rgba(90, 124, 255, 0.25) !important;
}
