/* ─── NBGV · Indicia-style Design System ─── */

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

:root {
  --primary: #4f46e5;
  --primary-hover: #6366f1;
  --primary-bg: rgba(79,70,229,.1);
  --primary-border: rgba(79,70,229,.3);
  --primary-active-bg: #13112e;
  --green: #22c55e;
  --green-bg: rgba(34,197,94,.1);
  --green-border: rgba(34,197,94,.3);
  --red: #ef4444;
  --red-bg: rgba(239,68,68,.1);
  --red-border: rgba(239,68,68,.3);
  --yellow: #eab308;
  --yellow-bg: rgba(234,179,8,.1);
  --yellow-border: rgba(234,179,8,.3);
  --pink: #ec4899;
  --pink-bg: rgba(236,72,153,.1);
  --pink-border: rgba(236,72,153,.3);
}

html, body { height: 100%; }

body {
  background: #000;
  color: #e4e4e7;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Typography imports ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }

/* ══════════════════════════════════════════
   APP SHELL  (sidebar + main)
══════════════════════════════════════════ */

.app { display: flex; height: 100dvh; background: #000; }

/* ── Sidebar ── */
.sidebar {
  width: 288px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(39,39,42,.7);
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(12px);
  height: 100svh;
  position: relative;
  overflow: hidden;
}

.sidebar-header {
  flex-shrink: 0;
  border-bottom: 1px solid rgba(39,39,42,.7);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
}

.logo-img span { color: var(--primary-hover); }

.sidebar-search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: #000;
  border: 1px solid rgba(39,39,42,.6);
  border-radius: 8px;
  color: #71717a;
  font-size: 14px;
  transition: all .15s;
}
.sidebar-search-btn:hover { border-color: rgba(63,63,70,.6); background: #09090b; color: #a1a1aa; }
.sidebar-search-btn kbd {
  margin-left: auto;
  font-family: monospace;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(63,63,70,.5);
  border: 1px solid rgba(82,82,91,.5);
  color: #71717a;
}

/* Nav */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0 12px 16px;
  scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar { display: none; }

.nav-section { margin-top: 20px; }
.nav-section:first-child { margin-top: 12px; }

.nav-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #71717a;
  padding: 0 12px;
  margin-bottom: 6px;
  display: block;
}

.nav-items { display: flex; flex-direction: column; gap: 2px; }

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #71717a;
  transition: all .15s;
  cursor: pointer;
}
.nav-item:hover { background: rgba(255,255,255,.05); color: #e4e4e7; }
.nav-item.active {
  background: var(--primary-active-bg);
  color: #a5b4fc;
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 16px;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-item.active svg { color: #818cf8; }

/* ── Main content area ── */
.main {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ── Top bar ── */
.topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(39,39,42,.6);
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-title {
  font-size: 14px;
  font-weight: 600;
  color: #e4e4e7;
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-title svg { width: 16px; height: 16px; color: #71717a; }

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

/* ══════════════════════════════════════════
   INDEX PAGE — Search form
══════════════════════════════════════════ */

.search-page {
  padding: 32px 24px;
  max-width: 720px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.search-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.search-heading h1 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}
.search-heading p { font-size: 13px; color: #71717a; }

/* Platform pills */
.plat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.plat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #71717a;
  border: 1px solid rgba(39,39,42,.8);
  background: transparent;
  transition: all .15s;
  cursor: pointer;
}
.plat-pill:hover { color: #a1a1aa; border-color: rgba(63,63,70,.8); }
.plat-pill.active {
  color: #a5b4fc;
  background: var(--primary-active-bg);
  border-color: var(--primary-border);
}

/* Search box */
.search-form { display: flex; gap: 8px; align-items: stretch; }

.search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.search-input-wrap svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #52525b;
  pointer-events: none;
}
.search-input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 40px;
  background: #000;
  border: 1px solid #27272a;
  border-radius: 8px;
  color: #e4e4e7;
  font-size: 13px;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.search-input::placeholder { color: #52525b; }
.search-input:focus {
  border-color: rgba(79,70,229,.5);
  box-shadow: 0 0 0 1px rgba(79,70,229,.3);
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.search-btn:hover { background: var(--primary-hover); }
.search-btn:disabled { opacity: .5; cursor: not-allowed; }
.search-btn svg { width: 16px; height: 16px; }

.search-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #52525b;
  min-height: 16px;
  margin-top: -8px;
}
.search-hint.ok  { color: var(--green); }
.search-hint.err { color: var(--red); }

/* Examples */
.examples-label {
  font-size: 11px;
  font-weight: 500;
  color: #52525b;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}

.examples-list { display: flex; flex-wrap: wrap; gap: 6px; }

.ex-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid rgba(39,39,42,.8);
  border-radius: 6px;
  color: #71717a;
  cursor: pointer;
  transition: all .15s;
}
.ex-chip:hover { color: #a1a1aa; border-color: rgba(63,63,70,.8); background: rgba(255,255,255,.03); }

/* Stats section */
.stats-section { display: flex; flex-direction: column; gap: 12px; }

.stats-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #52525b;
  font-family: monospace;
  font-size: 12px;
  padding: 24px 0;
}

.spinner {
  width: 14px; height: 14px;
  border: 1.5px solid rgba(39,39,42,.8);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.stat-card {
  background: rgba(9,9,11,.6);
  border: 1px solid rgba(39,39,42,.6);
  border-radius: 10px;
  overflow: hidden;
}
.stat-card-header {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(39,39,42,.6);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #71717a;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 14px;
  border-bottom: 1px solid rgba(39,39,42,.3);
  font-size: 12px;
}
.stat-row:last-child { border-bottom: none; }
.stat-key { color: #71717a; }
.stat-val { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #e4e4e7; }
.stat-val.ok { color: var(--green); }

/* ══════════════════════════════════════════
   RESULT PAGES
══════════════════════════════════════════ */

/* Loading bar */
.loading-bar {
  position: fixed;
  top: 0; left: 0;
  z-index: 999;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  width: 0;
  transition: width .4s ease;
}

/* Status strip */
.status-strip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  border-bottom: 1px solid rgba(39,39,42,.6);
  background: rgba(0,0,0,.4);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #52525b;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.status-dot.pulse { animation: pulse-dot 1s ease-in-out infinite; }
.status-dot.done  { background: var(--green); animation: none; }
.status-dot.error { background: var(--red); animation: none; }
@keyframes pulse-dot { 0%,100%{opacity:1}50%{opacity:.3} }

/* Result layout */
.result-page { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }

/* Error */
.error-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 80px 20px;
  text-align: center;
}
.error-icon {
  width: 48px; height: 48px;
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--red);
}
.error-msg { font-size: 13px; color: #71717a; max-width: 320px; line-height: 1.6; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid rgba(39,39,42,.8);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #a1a1aa;
  transition: all .15s;
}
.btn-outline:hover { color: #e4e4e7; border-color: rgba(63,63,70,.8); background: rgba(255,255,255,.03); }

/* Profile grid */
.profile-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 860px) { .profile-grid { grid-template-columns: 1fr; } }

/* ── Left panel ── */
.profile-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  background: rgba(9,9,11,.6);
  border: 1px solid rgba(39,39,42,.6);
  border-radius: 12px;
  position: sticky;
  top: 60px;
}

/* Avatar */
.avatar-wrap { position: relative; }
.avatar {
  width: 80px; height: 80px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(39,39,42,.6);
  background: #18181b;
  display: block;
  cursor: pointer;
}
.avatar.circle { border-radius: 50%; }
.avatar-placeholder {
  width: 80px; height: 80px;
  border-radius: 12px;
  background: linear-gradient(135deg, #5865F2, #4752c4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border: 2px solid rgba(39,39,42,.6);
}

/* Status dot on avatar */
.status-pip {
  position: absolute;
  bottom: -3px; right: -3px;
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 2px solid #000;
  background: #52525b;
  cursor: default;
}
.status-pip.online  { background: #22c55e; }
.status-pip.busy    { background: #ef4444; }
.status-pip.away    { background: #f59e0b; }
.status-pip.offline { background: #3f3f46; }

.game-status-chip{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    margin-top:8px;
    padding:8px 14px;

    border:1px solid rgba(34,197,94,.18);
    background:rgba(34,197,94,.08);
    border-radius:12px;
}

.game-status-main{
    display:flex;
    align-items:center;
    gap:8px;
}

.game-status-text{
    color:#22c55e;
    font-size:13px;
    font-weight:600;
}

.game-status-ip{
    margin-top:4px;
    font-size:11px;
    color:#a1a1aa;
}

.game-status-ip a{
    color:#22c55e;
    text-decoration:none;
}

.game-status-ip a:hover{
    text-decoration:underline;
}

.online-dot{
    position:relative;
    width:10px;
    height:10px;
    border-radius:50%;
    background:#22c55e;
    flex:none;
}

.online-dot::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:50%;
    background:#22c55e;
    animation:onlinePulse 1.8s infinite;
}

@keyframes onlinePulse{
    0%{
        transform:scale(1);
        opacity:.7;
    }

    75%{
        transform:scale(2.8);
        opacity:0;
    }

    100%{
        opacity:0;
    }
}

/* Level badge */
.level-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  background: var(--primary-active-bg);
  border: 1px solid var(--primary-border);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #a5b4fc;
}
.level-pill span:first-child { color: #6366f1; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }

.profile-name { font-size: 14px; font-weight: 600; color: #fff; text-align: center; word-break: break-all; }
.profile-sub  { font-size: 11px; color: #71717a; text-align: center; }

.profile-country {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #71717a;
}

/* Banner (discord) */
.profile-banner {
  width: 100%;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #5865F2 0%, #4752c4 100%);
  display: none;
}
.profile-banner.show { display: block; }

/* Badges */
.badge-list { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.badge-chip {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  background: var(--primary-bg);
  border: 1px solid var(--primary-border);
  color: #a5b4fc;
}
.badge-chip.gold { background: var(--yellow-bg); border-color: var(--yellow-border); color: var(--yellow); }

/* Left tab nav */
.left-nav { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.left-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #71717a;
  transition: all .15s;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.left-nav-btn:hover { background: rgba(255,255,255,.05); color: #a1a1aa; }
.left-nav-btn.active {
  background: var(--primary-active-bg);
  color: #a5b4fc;
}

/* ── Right panel ── */
.profile-right { display: flex; flex-direction: column; gap: 12px; }

.tab-pane { display: flex; flex-direction: column; gap: 12px; animation: fadeIn .2s ease; }
.tab-pane.hidden { display: none !important; }
@keyframes fadeIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }

/* ── Cards ── */
.card {
  background: rgba(9,9,11,.6);
  border: 1px solid rgba(39,39,42,.6);
  border-radius: 12px;
  overflow: hidden;
}
.card.warn { border-color: var(--red-border); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(39,39,42,.6);
}
.card-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #71717a;
}
.card-title.warn { color: var(--red); }

/* KV rows */
.kv-list { display: flex; flex-direction: column; }
.kv-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: start;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(39,39,42,.3);
  transition: background .1s;
}
.kv-row:last-child { border-bottom: none; }
.kv-row:hover { background: rgba(255,255,255,.02); }
.kv-key { font-size: 12px; color: #71717a; padding-top: 1px; }
.kv-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #e4e4e7;
  word-break: break-all;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.kv-val.warn { color: var(--red); }
.kv-val.ok   { color: var(--green); }

/* Copyable */
.copyable { cursor: pointer; transition: color .1s; }
.copyable:hover { color: #a5b4fc; }

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 500;
}
.tag.green  { background: var(--green-bg);  border: 1px solid var(--green-border);  color: var(--green); }
.tag.red    { background: var(--red-bg);    border: 1px solid var(--red-border);    color: var(--red); }
.tag.blue   { background: var(--primary-bg); border: 1px solid var(--primary-border); color: #a5b4fc; }
.tag.yellow { background: var(--yellow-bg); border: 1px solid var(--yellow-border); color: var(--yellow); }
.tag.pink   { background: var(--pink-bg);   border: 1px solid var(--pink-border);   color: var(--pink); }
.tag.default{ background: rgba(39,39,42,.5); border: 1px solid rgba(63,63,70,.5); color: #a1a1aa; }

/* Links */
.ext-link { color: #818cf8; transition: opacity .1s; }
.ext-link:hover { opacity: .7; }
.val-sep { color: #52525b; }

/* Skeleton */
.skeleton {
  height: 36px;
  background: linear-gradient(90deg, rgba(39,39,42,.5) 25%, rgba(63,63,70,.5) 50%, rgba(39,39,42,.5) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-bottom: 1px solid rgba(39,39,42,.3);
}
.skeleton:last-child { border-bottom: none; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* IP chips */
.ips-wrap { padding: 12px 16px; display: flex; flex-direction: column; gap: 0; }
.ip-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(39,39,42,.3);
}
.ip-row:last-child { border-bottom: none; }
.ip-addr { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #818cf8; cursor: pointer; }
.ip-addr:hover { opacity: .7; }
.source-chips { display: flex; gap: 4px; }
.source-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  padding: 2px 6px;
  background: var(--primary-bg);
  border: 1px solid var(--primary-border);
  border-radius: 3px;
  color: #a5b4fc;
}

/* Services grid */
.services-grid { padding: 12px 16px; display: flex; flex-direction: column; gap: 16px; }
.services-section-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #52525b;
  margin-bottom: 6px;
}
.service-links { display: flex; flex-direction: column; gap: 2px; }
.service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: #a1a1aa;
  transition: all .1s;
}
.service-link:hover { background: rgba(255,255,255,.05); color: #e4e4e7; }
.service-link .service-arrow { color: #52525b; font-size: 11px; }

/* Faceit match rows */
.match-list { display: flex; flex-direction: column; }
.match-row {
  display: grid;
  grid-template-columns: 60px 1fr 80px 1fr 80px 32px;
  gap: 8px;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(39,39,42,.3);
  font-size: 11px;
  transition: background .1s;
}
.match-row:last-child { border-bottom: none; }
.match-row:hover { background: rgba(255,255,255,.02); }
.match-row.win-row  { border-left: 2px solid var(--green); }
.match-row.lose-row { border-left: 2px solid var(--red); }
.match-game { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: #71717a; text-transform: uppercase; }
.match-dates { display: flex; flex-direction: column; gap: 2px; }
.match-date-row { display: flex; gap: 4px; align-items: center; font-size: 10px; }
.match-date-label { color: #52525b; font-size: 9px; min-width: 30px; }
.match-date-val { color: #a1a1aa; }
.match-date-time { color: #71717a; }
.match-mode { color: #71717a; font-size: 11px; }
.match-comp { color: #a1a1aa; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-result { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; }
.match-result.win  { color: var(--green); }
.match-result.lose { color: var(--red); }
.match-link { color: #818cf8; font-size: 13px; transition: opacity .1s; }
.match-link:hover { opacity: .7; }
.result-dots { display: flex; gap: 3px; flex-wrap: wrap; }
.result-dot { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 3px; font-size: 8px; font-weight: 700; }
.result-dot.win  { background: var(--green-bg);  color: var(--green); border: 1px solid var(--green-border); }
.result-dot.lose { background: var(--red-bg);    color: var(--red);   border: 1px solid var(--red-border); }

/* Game cards */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; padding: 12px 16px; }
.game-card {
  padding: 10px 12px;
  background: rgba(24,24,27,.6);
  border: 1px solid rgba(39,39,42,.6);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.game-name { font-size: 12px; font-weight: 500; }
.game-elo  { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 700; color: #a5b4fc; }
.game-lvl  { font-size: 11px; color: #71717a; }

/* Discord servers */
.servers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; padding: 12px 16px; }
.server-card {
  padding: 12px;
  background: rgba(24,24,27,.6);
  border: 1px solid rgba(39,39,42,.6);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .15s;
  position: relative;
}
.server-card:hover { border-color: rgba(63,63,70,.8); }
.server-card.left-server { opacity: .6; }
.server-head { display: flex; align-items: center; gap: 10px; }
.server-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, #5865F2, #4752c4);
  flex-shrink: 0;
}
.server-icon-placeholder {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #5865F2, #4752c4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.server-name { font-size: 12px; font-weight: 600; word-break: break-word; line-height: 1.3; }
.server-roles { display: flex; flex-wrap: wrap; gap: 3px; }
.server-role {
  font-size: 9px;
  padding: 1px 5px;
  background: rgba(39,39,42,.8);
  border: 1px solid rgba(63,63,70,.6);
  border-radius: 3px;
  color: #a1a1aa;
}
.server-left-tag {
  font-size: 9px;
  padding: 2px 6px;
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  border-radius: 3px;
  color: var(--red);
  width: fit-content;
}
.server-invite { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #818cf8; display: flex; align-items: center; gap: 4px; }
.server-invite:hover { opacity: .7; }
.server-meta { font-size: 10px; color: #52525b; }

/* Connected accounts */
.conn-list { display: flex; flex-direction: column; }
.conn-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(39,39,42,.3);
  transition: background .1s;
}
.conn-row:last-child { border-bottom: none; }
.conn-row:hover { background: rgba(255,255,255,.02); }
.conn-row.from-db { border-left: 2px solid var(--primary-bg); opacity: .8; }
.conn-icon { width: 20px; text-align: center; flex-shrink: 0; font-size: 14px; }
.conn-label { font-size: 11px; color: #71717a; min-width: 80px; }
.conn-val {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e4e4e7;
}
.conn-val a { color: inherit; }
.conn-val a:hover { color: #818cf8; }
.conn-verified { font-size: 9px; color: var(--green); flex-shrink: 0; }
.conn-db-tag { font-size: 9px; color: #52525b; padding: 1px 5px; background: rgba(39,39,42,.5); border-radius: 3px; white-space: nowrap; }

/* VK groups */
.group-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(39,39,42,.3);
  transition: background .1s;
  color: inherit;
}
.group-row:last-child { border-bottom: none; }
.group-row:hover { background: rgba(255,255,255,.02); }
.group-ava {
  width: 36px; height: 36px;
  border-radius: 8px;
  object-fit: cover;
  background: #27272a;
  flex-shrink: 0;
}
.group-name { font-size: 12px; font-weight: 500; flex: 1; }
.group-meta { font-size: 11px; color: #71717a; }

/* Members */
.members-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(39,39,42,.6);
}
.members-search {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  padding: 6px 10px;
  background: #09090b;
  border: 1px solid rgba(39,39,42,.8);
  border-radius: 6px;
}
.members-search input {
  background: none;
  border: none;
  outline: none;
  color: #e4e4e7;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  width: 100%;
}
.members-search input::placeholder { color: #52525b; }
.members-search svg { width: 14px; height: 14px; color: #52525b; flex-shrink: 0; }

.member-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 6px 16px;
  border-bottom: 1px solid rgba(39,39,42,.3);
  font-size: 12px;
  transition: background .1s;
}
.member-row:last-child { border-bottom: none; }
.member-row:hover { background: rgba(255,255,255,.02); }
.member-ava { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; background: #27272a; }
.member-name { font-weight: 500; }
.member-id { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #52525b; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  border-top: 1px solid rgba(39,39,42,.3);
}
.page-btn {
  padding: 4px 10px;
  font-size: 12px;
  background: transparent;
  border: 1px solid rgba(39,39,42,.8);
  border-radius: 6px;
  color: #71717a;
  transition: all .15s;
}
.page-btn:hover { color: #a1a1aa; border-color: rgba(63,63,70,.8); }
.page-btn.active { color: #a5b4fc; border-color: var(--primary-border); background: var(--primary-active-bg); }
.page-btn:disabled { opacity: .3; cursor: not-allowed; }

/* Toast */
.toast {
  position: fixed;
  bottom: 20px; right: 20px;
  background: rgba(24,24,27,.95);
  border: 1px solid rgba(39,39,42,.8);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  color: #e4e4e7;
  z-index: 1000;
  opacity: 0;
  transform: translateY(6px);
  transition: all .2s;
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.toast.show { opacity: 1; transform: none; }

/* Utility */
.hidden { display: none !important; }
.no-data { font-size: 12px; color: #52525b; padding: 16px; display: block; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* Phone */
.phone-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--green);
}

/* Divider in kv */
.kv-divider {
  padding: 6px 16px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #52525b;
  background: rgba(9,9,11,.4);
  border-bottom: 1px solid rgba(39,39,42,.3);
}

/* VK post */
.post-card {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(39,39,42,.3);
  font-size: 13px;
  line-height: 1.6;
}
.post-card:last-child { border-bottom: none; }
.post-meta { font-size: 10px; color: #52525b; margin-bottom: 5px; }

/* Card count badge */
.count-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #52525b;
  padding: 2px 6px;
  background: rgba(39,39,42,.5);
  border-radius: 4px;
}

/* Mobile */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .result-page { padding: 14px 16px; }
  .kv-row { grid-template-columns: 110px 1fr; }
}


/* ══════════════════════════════════════════
   FIXES v3
══════════════════════════════════════════ */

/* ── 1. Remove duplicate right-side tab nav on result pages ── */
/* Tab nav inside .profile-left is the only one; hide sidebar duplicate */
.sidebar .left-nav-btn { display: flex; }

/* ── 3. VK Pagination (pag-btn class from vk.js) ── */
.pag-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  background: transparent;
  border: 1px solid rgba(39,39,42,.8);
  border-radius: 6px;
  color: #71717a;
  cursor: pointer;
  transition: all .15s;
}
.pag-btn:hover { color: #a1a1aa; border-color: rgba(63,63,70,.8); background: rgba(255,255,255,.03); }

.pag-info {
  font-size: 12px;
  color: #52525b;
  font-family: 'JetBrains Mono', monospace;
  padding: 0 4px;
}

/* ── 2. Telegram history accordion ── */
.hist-dropdown {
  border-bottom: 1px solid rgba(39,39,42,.4);
}
.hist-dropdown:last-child { border-bottom: none; }

.hist-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background .1s;
  font-family: 'Poppins', sans-serif;
}
.hist-toggle:hover { background: rgba(255,255,255,.03); }
.hist-dropdown.hist-open .hist-toggle { background: rgba(99,102,241,.05); }

.hist-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #a5b4fc;
  min-width: 130px;
  flex-shrink: 0;
}
.hist-preview {
  font-size: 12px;
  color: #71717a;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hist-arrow {
  font-size: 12px;
  color: #52525b;
  transition: transform .2s;
  flex-shrink: 0;
}
.hist-open .hist-arrow { transform: rotate(180deg); }

.hist-body { background: rgba(0,0,0,.2); }
.hist-body .kv-list { /* same as card kv-list but nested */ }

/* ── VK group rows (old classes from vk.js) ── */
.group-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(39,39,42,.3);
  transition: background .1s;
}
.group-row:last-child { border-bottom: none; }
.group-row:hover { background: rgba(255,255,255,.02); }

.group-avatar {
  width: 40px; height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: #27272a;
  flex-shrink: 0;
}
.group-avatar-placeholder {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: #27272a;
  flex-shrink: 0;
}
.group-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.group-name { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-members { font-size: 11px; color: #71717a; }
.group-link-btn { color: #818cf8; font-size: 14px; flex-shrink: 0; transition: opacity .1s; }
.group-link-btn:hover { opacity: .7; }

/* ── ip-chip (for telegram ips) ── */
.ip-chip {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #818cf8;
  padding: 4px 10px;
  background: rgba(99,102,241,.08);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: 6px;
  cursor: pointer;
  margin: 4px;
  transition: opacity .1s;
}
.ip-chip:hover { opacity: .7; }

/* ── 5. Stats grid: flexible columns, centered numbers ── */
#statsGrid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #e4e4e7;
  text-align: right;
}
.stat-val.ok { color: #22c55e; }

/* ── 6. Search spotlight modal ── */
.spotlight-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  animation: fadeInOverlay .15s ease;
}
@keyframes fadeInOverlay { from{opacity:0} to{opacity:1} }

.spotlight-box {
  width: 100%;
  max-width: 560px;
  background: #0c0c0e;
  border: 1px solid rgba(63,63,70,.6);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.8);
  animation: slideDown .15s ease;
}
@keyframes slideDown { from{transform:translateY(-10px);opacity:0} to{transform:none;opacity:1} }

.spotlight-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(39,39,42,.6);
}
.spotlight-input-row svg { color: #71717a; flex-shrink: 0; }
.spotlight-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #e4e4e7;
}
.spotlight-input::placeholder { color: #52525b; }

.spotlight-sections { max-height: 360px; overflow-y: auto; }
.spotlight-section-label {
  padding: 8px 16px 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #52525b;
}
.spotlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 13px;
  color: #a1a1aa;
  cursor: pointer;
  transition: background .1s;
  border-radius: 0;
}
.spotlight-item:hover, .spotlight-item.active {
  background: rgba(99,102,241,.15);
  color: #e4e4e7;
}
.spotlight-item .sp-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: rgba(39,39,42,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.spotlight-item.active .sp-icon { background: rgba(99,102,241,.3); }

.spotlight-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px;
  border-top: 1px solid rgba(39,39,42,.6);
  font-size: 11px;
  color: #52525b;
}
.sp-key {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: rgba(39,39,42,.6);
  border: 1px solid rgba(63,63,70,.6);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #71717a;
}

/* ── 4. Sidebar collapse ── */
.sidebar-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border: 1px solid rgba(39,39,42,.8);
  border-radius: 6px;
  color: #71717a;
  background: transparent;
  cursor: pointer;
  transition: all .15s;
  flex-shrink: 0;
}
.sidebar-collapse-btn:hover { color: #a1a1aa; border-color: rgba(63,63,70,.8); }

.sidebar.collapsed {
  width: 0;
  overflow: hidden;
  border-right: none;
}

.app.sidebar-collapsed .sidebar { width: 0; overflow: hidden; border-right: none; }
.app.sidebar-collapsed .topbar-collapse-btn svg { transform: rotate(180deg); }

/* Topbar collapse toggle */
.topbar-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border: 1px solid rgba(39,39,42,.8);
  border-radius: 6px;
  color: #71717a;
  background: transparent;
  cursor: pointer;
  transition: all .15s;
}
.topbar-collapse-btn:hover { color: #a1a1aa; border-color: rgba(63,63,70,.8); }
.topbar-collapse-btn svg { transition: transform .25s; }

/* ── 7. Example chips redesign — text links with tooltip ── */
.examples-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid rgba(39,39,42,.6);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(9,9,11,.4);
}
.ex-chip {
  position: relative;
  padding: 7px 14px;
  border: none;
  border-right: 1px solid rgba(39,39,42,.6);
  border-radius: 0;
  background: transparent;
  color: #71717a;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.ex-chip:last-child { border-right: none; }
.ex-chip:hover { background: rgba(99,102,241,.1); color: #a5b4fc; }

/* Tooltip box shown in search-hint area, not a real tooltip */
/* Handled via JS: on hover, update #searchHint */


/* ══════════════════════════════════════════
   FIXES v4
══════════════════════════════════════════ */

/* ── Sidebar logo row: space-between for collapse btn ── */
.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Sidebar collapsed state */
.app.sidebar-collapsed .sidebar {
  width: 0 !important;
  min-width: 0 !important;
  overflow: hidden;
  border-right: none;
}

/* ── Stats grid: truly auto-fill ── */
#statsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 10px;
}
.stat-card {
  background: rgba(9,9,11,.6);
  border: 1px solid rgba(39,39,42,.6);
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
}
.stat-card-header, .stat-card-title {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(39,39,42,.5);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #71717a;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 14px;
  border-bottom: 1px solid rgba(39,39,42,.25);
  font-size: 12px;
}
.stat-row:last-child { border-bottom: none; }
.stat-key { color: #71717a; }
.stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #e4e4e7;
  font-weight: 500;
}
.stat-val.ok { color: #22c55e; }

/* ── Topbar: left group for title + status ── */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.topbar-title {
  font-size: 14px;
  font-weight: 600;
  color: #e4e4e7;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.topbar-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Ex-chip: fix text overflow ── */
.examples-inner, #exPanel {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid rgba(39,39,42,.5);
  border-radius: 8px;
  overflow: hidden;
}
.ex-chip {
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 500;
  color: #71717a;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(39,39,42,.5);
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
.ex-chip:last-child { border-right: none; }
.ex-chip:hover { background: rgba(99,102,241,.1); color: #a5b4fc; }

/* ── Search page: full width ── */
#panel-search { max-width: none !important; }
.indicia-search-wrap { max-width: none; }

/* ── vk-badge styles ── */
.vk-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 20px;
}
.vk-badge-verify {
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.3);
  color: #22c55e;
}
.vk-badge-ban {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  color: #ef4444;
}

/* ── Hide loading bar after done ── */
.loading-bar { transition: width .4s ease, opacity .4s ease; }


/* ══════════════════════════════════════════
   FIXES v5
══════════════════════════════════════════ */

/* ── Sidebar icon-only mode (collapsed) ── */
.app.sidebar-icon-only .sidebar {
  width: 52px !important;
  min-width: 52px !important;
  overflow: hidden;
}
.app.sidebar-icon-only .sidebar-header {
  padding: 12px 0;
  align-items: center;
  justify-content: center;
}
.app.sidebar-icon-only .logo-img { display: none; }
.app.sidebar-icon-only .sidebar-collapse-btn { margin: 0 auto; }
.app.sidebar-icon-only .sidebar-search-btn { display: none; }
.app.sidebar-icon-only .nav-label { display: none; }
.app.sidebar-icon-only .nav-item {
  padding: 10px 0;
  justify-content: center;
  border-radius: 0;
}
.app.sidebar-icon-only .nav-item span:not(svg):not(.nav-item > svg) { display: none; }
/* Hide text nodes - tricky, use font-size 0 on parent, restore on svg */
.app.sidebar-icon-only .nav-item {
  font-size: 0;
  gap: 0;
}
.app.sidebar-icon-only .nav-item svg { 
  font-size: 16px; /* irrelevant but reset */
  width: 18px; 
  height: 18px; 
}
/* For emoji-only nav items (no svg) */
.app.sidebar-icon-only .nav-item.left-nav-btn {
  font-size: 16px;
  overflow: hidden;
  white-space: nowrap;
}
/* Show only the emoji (first char) */
.app.sidebar-icon-only .left-nav-btn {
  position: relative;
}

/* ── Stats grid: nuclear override ── */
.stats-grid,
div#statsGrid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
}

/* ── Remove indicia-hint from layout (no more text under chips) ── */
.indicia-hint { display: none !important; }
#searchHint   { display: none !important; }

/* ── Tooltip position fix (floating, JS-placed) ── */
#exTooltip {
  max-width: 400px;
  word-break: break-all;
}

/* ── Icon-only: precise element hiding ── */
.app.sidebar-icon-only .nav-label-text { display: none; }
.app.sidebar-icon-only .nav-item {
  font-size: 14px !important;
  justify-content: center !important;
  padding: 10px 0 !important;
  gap: 0 !important;
}
.app.sidebar-icon-only .nav-emoji {
  font-size: 17px;
}
.app.sidebar-icon-only .nav-item svg {
  width: 18px; height: 18px;
}
.app.sidebar-icon-only .sidebar-logo {
  justify-content: center;
}
.app.sidebar-icon-only .logo-img {
  display: none;
}
/* Active indicator still shows */
.app.sidebar-icon-only .nav-item.active::before {
  height: 20px;
}
/* Sidebar width in icon mode */
.app.sidebar-icon-only .sidebar {
  width: 54px !important;
  min-width: 54px !important;
}
.app.sidebar-icon-only .sidebar-collapse-btn {
  margin: 0 auto;
}


/* ── IP pills (steam IPs tab) ── */
.ip-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 16px;
}

.ip-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: rgba(24,24,27,.8);
  border: 1px solid rgba(63,63,70,.6);
  border-radius: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #a5b4fc;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.ip-pill:hover {
  background: rgba(99,102,241,.1);
  border-color: rgba(99,102,241,.35);
  color: #c7d2fe;
}

/* ── Status pip: only dot, no text ── */
.status-pip {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #09090b;
  background: #3f3f46;
  cursor: default;
  flex-shrink: 0;
}
.status-pip.online  { background: #22c55e; }
.status-pip.busy    { background: #ef4444; }
.status-pip.away    { background: #f59e0b; }
.status-pip.offline { background: #3f3f46; }


/* ── IP chips wrap: override ips-wrap column layout ── */
#ipsContent,
.ip-chips-wrap {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding: 14px 16px !important;
  align-items: center;
}

.ip-pill {
  display: inline-flex !important;
  align-items: center;
  padding: 5px 12px;
  background: rgba(24,24,27,.8);
  border: 1px solid rgba(63,63,70,.6);
  border-radius: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #a5b4fc;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .15s;
}
.ip-pill:hover {
  background: rgba(99,102,241,.12);
  border-color: rgba(99,102,241,.4);
  color: #c7d2fe;
}


/* ── Discord bot tag ── */
.bot-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  background: var(--primary-bg);
  border: 1px solid var(--primary-border);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #a5b4fc;
  letter-spacing: .04em;
  margin-right: 5px;
  vertical-align: middle;
}
.discord-badge.bot-badge {
  background: rgba(99,102,241,.15);
  border: 1px solid rgba(99,102,241,.35);
  color: #a5b4fc;
}


/* ── Stats panel: full width, no search-page constraint ── */
#panel-stats {
  max-width: none !important;
  width: 100% !important;
}
#statsGrid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
}


/* ══════════════════════════════════════════
   ALTS GRAPH
══════════════════════════════════════════ */

#altsGraph {
  position: relative;
  overflow: hidden;
  padding: 16px;
}

.alt-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: transform .15s;
  width: 88px;
}
.alt-node:hover { transform: translateY(-3px); }

.alt-node-main .alt-avatar-wrap { position: relative; }

.alt-avatar-wrap {
  position: relative;
  width: 60px;
  height: 60px;
}
.alt-node-main .alt-avatar-wrap {
  width: 68px;
  height: 68px;
}

.alt-avatar {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(63,63,70,.7);
  background: #18181b;
  display: block;
}
.alt-node-main .alt-avatar {
  border-color: rgba(99,102,241,.6);
  border-width: 2px;
}

.alt-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: #27272a;
  border: 2px solid rgba(63,63,70,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

/* Glowing ring on main node */
.alt-main-ring {
  position: absolute;
  inset: -4px;
  border-radius: 16px;
  border: 2px solid rgba(99,102,241,.4);
  box-shadow: 0 0 12px rgba(99,102,241,.2);
  pointer-events: none;
  animation: ring-pulse 2.5s ease-in-out infinite;
}
@keyframes ring-pulse {
  0%,100% { opacity: .5; }
  50%      { opacity: 1; }
}

.alt-name {
  font-size: 11px;
  font-weight: 500;
  color: #e4e4e7;
  text-align: center;
  max-width: 84px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.alt-node-main .alt-name { color: #a5b4fc; font-weight: 600; }

.alt-label {
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 20px;
  background: rgba(99,102,241,.15);
  border: 1px solid rgba(99,102,241,.3);
  color: #818cf8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.alt-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: #52525b;
  text-align: center;
  max-width: 84px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* ══════════════════════════════════════════
   STEAM LEFT PANEL REDESIGN
══════════════════════════════════════════ */

/* Profile stat grid */
.profile-stat-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(39,39,42,.6);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 4px;
}
.profile-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(39,39,42,.4);
  font-size: 12px;
  transition: background .1s;
}
.profile-stat-row:last-child { border-bottom: none; }
.profile-stat-row:hover { background: rgba(255,255,255,.02); }
.profile-stat-key { color: #71717a; }
.profile-stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #e4e4e7;
  text-align: right;
}
.profile-stat-val a { color: #818cf8; }

/* Quick link buttons */
.profile-quick-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.quick-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border: 1px solid rgba(39,39,42,.7);
  border-radius: 6px;
  color: #71717a;
  transition: all .15s;
}
.quick-link-btn:hover { color: #a5b4fc; border-color: rgba(99,102,241,.3); background: rgba(99,102,241,.08); }

/* Bans in left panel */
.profile-bans-wrap {
  width: 100%;
  background: rgba(239,68,68,.06);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: 8px;
  overflow: hidden;
}
.profile-bans-title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #ef4444;
  border-bottom: 1px solid rgba(239,68,68,.15);
}
.profile-bans-wrap .kv-row {
  padding: 5px 10px;
  font-size: 11px;
}
.profile-bans-wrap .kv-key { font-size: 11px; }
.profile-bans-wrap .kv-val { font-size: 11px; }

/* CS2 Medals */
.profile-medals-wrap {
  width: 100%;
}
.profile-medals-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #71717a;
  margin-bottom: 6px;
  text-align: center;
}
.medals-list {
  max-height: 160px;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.cs2-medal {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
  background: rgba(39,39,42,.5);
  border: 1px solid rgba(63,63,70,.5);
  cursor: default;
  transition: transform .15s;
}
.cs2-medal:hover { transform: scale(1.2); }

/* ══════════════════════════════════════════
   CS2 STATS TAB
══════════════════════════════════════════ */

/* Leetify grid */
.leetify-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1px;
  background: rgba(39,39,42,.4);
}
.leetify-cell {
  background: rgba(9,9,11,.8);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.leetify-label {
  font-size: 11px;
  color: #71717a;
}
.leetify-val {
  font-size: 18px;
  font-weight: 700;
  color: #e4e4e7;
  line-height: 1;
}
.stat-bar {
  height: 3px;
  background: rgba(39,39,42,.8);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}
.stat-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width .6s ease;
}

/* CS2 Stats grid */
.cs2stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1px;
  background: rgba(39,39,42,.4);
}
.cs2stat-cell {
  background: rgba(9,9,11,.8);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cs2stat-label {
  font-size: 11px;
  color: #71717a;
}
.cs2stat-val {
  font-size: 20px;
  font-weight: 700;
  color: #e4e4e7;
  font-family: 'JetBrains Mono', monospace;
}
.cs2stat-val.cs2-accent { color: #818cf8; }
.cs2stat-val.cs2-yellow { color: #eab308; }
.cs2stat-val.cs2-red    { color: #ef4444; }


/* ══════════════════════════════════════════
   FIXES v6 — left panel overflow fix
══════════════════════════════════════════ */

/* Left panel: scrollable, doesn't grow into right panel */
.profile-left {
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(63,63,70,.5) transparent;
  /* stop being sticky so it doesn't overlap */
  position: relative !important;
  top: auto !important;
  align-self: start;
}
.profile-left::-webkit-scrollbar { width: 4px; }
.profile-left::-webkit-scrollbar-thumb { background: rgba(63,63,70,.5); border-radius: 2px; }

/* Profile grid: align items to start so left panel doesn't stretch */
.profile-grid {
  align-items: start !important;
}

/* Stat grid: more compact */
.profile-stat-row { padding: 5px 10px; }

/* Level pill inline in stat grid */
.profile-stat-val .level-pill {
  font-size: 10px;
  padding: 1px 7px;
}


/* ══════════════════════════════════════════
   LEETIFY + CS2 STATS — exact reference layout
══════════════════════════════════════════ */

/* Leetify 3-column grid */
.leet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(39,39,42,.5);
}
.leet-cell {
  padding: 12px 14px;
  border-right: 1px solid rgba(39,39,42,.4);
  border-bottom: 1px solid rgba(39,39,42,.4);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.leet-cell:nth-child(3n) { border-right: none; }
.leet-label {
  font-size: 11px;
  color: #71717a;
}
.leet-val {
  font-size: 22px;
  font-weight: 700;
  color: #e4e4e7;
  line-height: 1.1;
}
.lbar {
  height: 3px;
  background: rgba(39,39,42,.8);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 5px;
}
.lbar-fill {
  height: 100%;
  border-radius: 2px;
}

/* CS2 Stats */
.cs2-rank-row {
  display: flex;
  border-top: 1px solid rgba(39,39,42,.5);
}
.cs2-rank-cell {
  flex: 1;
  padding: 14px 16px;
  border-right: 1px solid rgba(39,39,42,.4);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cs2-rank-cell:last-child { border-right: none; }
.cs2-rank-label { font-size: 11px; color: #71717a; }
.cs2-rank-val   { font-size: 22px; font-weight: 700; color: #818cf8; line-height: 1.1; }

.cs2-friend-row {
  padding: 14px 16px;
  border-top: 1px solid rgba(39,39,42,.4);
}

.cs2-comm-row {
  padding: 14px 16px;
  border-top: 1px solid rgba(39,39,42,.4);
}
.cs2-comm-label { font-size: 11px; color: #71717a; margin-bottom: 10px; }
.cs2-comm-cells {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.cs2-comm-cell { text-align: center; }
.cs2-comm-val  { font-size: 24px; font-weight: 700; }
.cs2-comm-sub  { font-size: 11px; color: #71717a; margin-top: 2px; }

.cs2-lifetime-header {
  padding: 10px 16px 0;
  font-size: 12px;
  color: #71717a;
  font-weight: 500;
  border-top: 1px solid rgba(39,39,42,.4);
}
.cs2-lifetime-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(39,39,42,.3);
  margin-top: 8px;
}
.cs2-lt-cell {
  padding: 12px 16px;
  border-right: 1px solid rgba(39,39,42,.3);
  border-bottom: 1px solid rgba(39,39,42,.3);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cs2-lt-cell:nth-child(3n) { border-right: none; }
.cs2-lt-label { font-size: 11px; color: #71717a; }
.cs2-lt-val   { font-size: 20px; font-weight: 700; color: #e4e4e7; line-height: 1.1; }

/* Bans block — clean style */
.profile-bans-wrap .kv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  font-size: 12px;
  gap: 8px;
  border-bottom: 1px solid rgba(239,68,68,.1);
}
.profile-bans-wrap .kv-row:last-child { border-bottom: none; }
.profile-bans-wrap .kv-key { color: #ef4444; font-size: 12px; min-width: 60px; }
.profile-bans-wrap .kv-val { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-align: right; }
.profile-bans-wrap .tag.red {
  white-space: nowrap;
  font-size: 10px;
}