:root {
  --bg: #06060a;
  --bg-elevated: #0c0c12;
  --bg-card: #101018;
  --bg-glass: rgba(16, 16, 24, 0.72);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.14);
  --text: #f0f0f5;
  --text-muted: #72728a;
  --accent: #7c5cff;
  --accent-glow: rgba(124, 92, 255, 0.35);
  --steam: #33aaff;
  --green: #34d399;
  --red: #f87171;
  --yellow: #fbbf24;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(960px, 92vw); margin-inline: auto; }
.container--profile { width: min(980px, 94vw); margin-inline: auto; }
.hidden { display: none !important; }

.mono { font-family: var(--mono); }

/* ─── Background effects (home) ─── */
.bg-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 20%, transparent 70%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
}

.orb--1 {
  width: 500px; height: 500px;
  background: var(--accent);
  top: -180px; left: 50%;
  transform: translateX(-60%);
  opacity: 0.25;
}

.orb--2 {
  width: 400px; height: 400px;
  background: var(--steam);
  top: 20%; right: -120px;
  opacity: 0.12;
}

.orb--3 {
  width: 300px; height: 300px;
  background: #ec4899;
  bottom: 10%; left: -80px;
  opacity: 0.08;
}

/* ─── Header ─── */
.header {
  position: relative;
  z-index: 10;
  padding: 1.25rem 0;
}

.header--profile {
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text);
}

.brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(51, 170, 255, 0.1));
  border: 1px solid rgba(124, 92, 255, 0.32);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(124, 92, 255, 0.2);
  flex-shrink: 0;
}

.brand__mark img {
  display: block;
  width: 20px;
  height: 20px;
}

.brand__name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.back-link {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.back-link:hover { color: var(--text); }

/* ─── Hero (home) ─── */
.page-home main { position: relative; z-index: 1; flex: 1; }

.hero {
  padding: 2rem 0 4rem;
  text-align: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  padding: 0.375rem 0.875rem;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: #a78bfa;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, #c4b5fd, var(--steam));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
}

/* Search card (home) */
.search-card {
  width: 100%;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.search-card__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-card__inner:focus-within {
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: var(--shadow), 0 0 0 4px rgba(124, 92, 255, 0.12);
}

.search-card__icon { color: var(--text-muted); flex-shrink: 0; }

.search-card__inner input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--text);
}

.search-card__inner input::placeholder {
  color: var(--text-muted);
  font-family: var(--font);
}

.search-card__hint {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.search-card__hint code {
  font-family: var(--mono);
  font-size: 0.6875rem;
  background: rgba(255,255,255,0.05);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
}

/* Features row */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.feature__icon { font-size: 1rem; }

/* Recent section (home) */
.recent-section {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}

.recent-section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.recent-section h2 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.recent-section__note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.625rem;
}

.recent-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.recent-card:hover {
  border-color: rgba(124, 92, 255, 0.35);
  background: var(--bg-elevated);
  transform: translateY(-2px);
}

.recent-card img {
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}

.recent-card__body { flex: 1; min-width: 0; text-align: left; }

.recent-card__name {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-card__time {
  display: block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

.recent-card__arrow {
  color: var(--text-muted);
  font-size: 1rem;
  transition: transform 0.2s;
}

.recent-card:hover .recent-card__arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* ─── Profile page search bar ─── */
.profile-search-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.75rem 0;
  background: rgba(6, 6, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.search-inline__box {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0.375rem 0.375rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s;
}

.search-inline__box:focus-within { border-color: rgba(124, 92, 255, 0.4); }
.search-inline__box.error { border-color: rgba(248, 113, 113, 0.5); }
.search-inline__box svg { color: var(--text-muted); flex-shrink: 0; }

.search-inline__box input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--text);
}

.profile-main { flex: 1; padding-bottom: 3rem; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.125rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}

.btn--sm { padding: 0.375rem 0.875rem; font-size: 0.75rem; }
.btn--lg { padding: 0.75rem 1.5rem; font-size: 0.9375rem; }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #6344e0);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn--ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn--ghost:hover { color: var(--text); border-color: var(--border-hover); }

/* ─── States ─── */
.state {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--text-muted);
}

.state__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.state--error { color: var(--red); }
.state--error .btn { margin-top: 1.25rem; }

.spinner {
  width: 36px; height: 36px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 0.65s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Profile layout ─── */
.profile { animation: fadeUp 0.4s ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile__hero { position: relative; margin-bottom: 2rem; }

.profile__banner {
  position: relative;
  height: 128px;
  overflow: hidden;
  background: var(--bg);
}

.profile__banner-bg {
  position: absolute;
  inset: -60px;
  background-size: cover;
  background-position: center;
  filter: blur(56px) saturate(1.35) brightness(0.85);
  transform: scale(1.15);
  opacity: 0.55;
}

.profile__banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 6, 10, 0.1) 0%, rgba(6, 6, 10, 0.55) 45%, var(--bg) 100%),
    linear-gradient(90deg, rgba(6, 6, 10, 0.2) 0%, transparent 45%, transparent 55%, rgba(6, 6, 10, 0.2) 100%);
}

.profile__banner-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 120% at 15% -20%, rgba(124, 92, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 90% at 85% 10%, rgba(51, 170, 255, 0.14), transparent 50%);
  pointer-events: none;
}

.profile__hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.25rem 1.5rem;
  margin-top: -52px;
  padding-bottom: 0.25rem;
  position: relative;
  z-index: 1;
}

.profile__avatar {
  width: 100px;
  height: 100px;
  border-radius: 18px;
  border: 3px solid var(--bg);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px rgba(124, 92, 255, 0.35),
    0 12px 40px rgba(0, 0, 0, 0.55);
}

.profile__identity { flex: 1; min-width: 200px; padding-bottom: 0.25rem; }

.profile__name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}

.profile__name-row h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.profile__realname {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

.profile__level-pill {
  display: inline-block;
  margin-top: 0.375rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--steam);
  background: rgba(51, 170, 255, 0.12);
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
}

.profile__url {
  display: block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--steam);
  text-decoration: none;
  margin-top: 0.375rem;
  word-break: break-all;
}

.profile__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-bottom: 0.5rem;
}

.profile__body {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

/* Stat row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.stat-row--profile .stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 0.5rem;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.125rem;
}

.stat-box__icon { font-size: 1.125rem; opacity: 0.8; }
.stat-box__val { font-family: var(--mono); font-size: 1.125rem; font-weight: 700; }
.stat-box__lbl { font-size: 0.625rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* Notices */
.notice {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
}

.notice--clean { background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.2); color: var(--green); }
.notice--ban { background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.2); color: #fca5a5; }
.notice--playing {
  background: rgba(51, 170, 255, 0.08);
  border: 1px solid rgba(51, 170, 255, 0.2);
  display: flex; align-items: center; gap: 0.625rem;
}

.notice__label { font-family: var(--mono); font-size: 0.625rem; text-transform: uppercase; color: var(--steam); }

/* Panels */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

.panel {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.panel--cs2 { border-color: rgba(51, 170, 255, 0.15); }

/* Cheat probability */
.cheat-verdict {
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--verdict-color);
  box-shadow: 0 0 40px color-mix(in srgb, var(--verdict-color) 12%, transparent);
}

.cheat-verdict--clean { --verdict-color: #34d399; }
.cheat-verdict--suspicious { --verdict-color: #fbbf24; }
.cheat-verdict--likely { --verdict-color: #f87171; }

.cheat-verdict__main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.cheat-verdict__score-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 88px;
  padding: 0.5rem 0.75rem;
  background: color-mix(in srgb, var(--verdict-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--verdict-color) 35%, transparent);
  border-radius: var(--radius);
}

.cheat-verdict__score {
  font-family: var(--mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--verdict-color);
  line-height: 1;
}

.cheat-verdict__score-lbl {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.cheat-verdict__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cheat-verdict__verdict {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--verdict-color);
  letter-spacing: -0.02em;
}

.cheat-verdict__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.cheat-verdict__stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.625rem;
}

.cheat-verdict__stat {
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cheat-verdict__stat--high {
  border-color: color-mix(in srgb, var(--verdict-color) 45%, var(--border));
  background: color-mix(in srgb, var(--verdict-color) 8%, transparent);
}

.cheat-verdict__stat-lbl {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.cheat-verdict__stat-val {
  font-family: var(--mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.panel__head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.875rem;
}

.panel__title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
}

.panel__head-row .panel__title { margin-bottom: 0; }

.panel__subtitle {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 1rem 0 0.625rem;
}

.panel__link { font-size: 0.75rem; color: var(--steam); text-decoration: none; }
.panel__link:hover { text-decoration: underline; }
.panel__empty { font-size: 0.8125rem; color: var(--text-muted); }

/* Details */
.detail-list { display: flex; flex-direction: column; gap: 0.625rem; }

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.8125rem;
}

.detail-row dt { color: var(--text-muted); flex-shrink: 0; }
.detail-row dd { display: flex; align-items: center; gap: 0.375rem; text-align: right; min-width: 0; }
.detail-row code { font-family: var(--mono); font-size: 0.6875rem; word-break: break-all; }

.copy-btn {
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  cursor: pointer;
  flex-shrink: 0;
}

.copy-btn:hover { color: var(--text); }

.status-badge {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.status-badge--online { color: var(--green); background: rgba(52, 211, 153, 0.15); }
.status-badge--offline { color: var(--text-muted); background: rgba(255,255,255,0.06); }
.status-badge--busy, .status-badge--away, .status-badge--snooze { color: var(--steam); background: rgba(51, 170, 255, 0.12); }

/* Games */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
}

.game-grid--compact { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

.game-card {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}

.game-card:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.04); }
.game-card img { width: 36px; height: 36px; border-radius: 6px; flex-shrink: 0; }
.game-card__placeholder { width: 36px; height: 36px; background: var(--bg-elevated); border-radius: 6px; }
.game-card__info { min-width: 0; }
.game-card__name { display: block; font-size: 0.75rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-card__time { display: block; font-family: var(--mono); font-size: 0.625rem; color: var(--text-muted); }

/* CS2 stats */
.cs2-premier {
  display: inline-flex;
  align-items: baseline;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  margin-bottom: 1rem;
  background: rgba(51, 170, 255, 0.08);
  border: 1px solid rgba(51, 170, 255, 0.2);
  border-radius: var(--radius);
}

.cs2-premier__lbl { font-size: 0.6875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.cs2-premier__val { font-family: var(--mono); font-size: 1.375rem; font-weight: 800; color: var(--steam); }

.cs2-ratings { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }

.rating-bar__header { display: flex; justify-content: space-between; font-size: 0.8125rem; margin-bottom: 0.375rem; }
.rating-bar__header .mono { font-family: var(--mono); color: var(--text-muted); font-size: 0.75rem; }
.rating-bar__track { height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.rating-bar__fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--steam)); border-radius: 3px; }

.cs2-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.5rem; }

.stat-chip {
  padding: 0.625rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-chip__lbl { display: block; font-size: 0.625rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.stat-chip__val { display: block; font-family: var(--mono); font-size: 0.9375rem; font-weight: 700; margin-top: 0.2rem; }
.stat-chip--pos .stat-chip__val { color: var(--green); }
.stat-chip--neg .stat-chip__val { color: var(--red); }

.match-table-wrap { overflow-x: auto; }
.match-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
.match-table th {
  text-align: left;
  padding: 0.5rem 0.625rem;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.match-table td { padding: 0.5rem 0.625rem; border-bottom: 1px solid rgba(255,255,255,0.04); }
.map-tag { text-transform: capitalize; font-weight: 500; padding: 0.15rem 0.4rem; background: rgba(255,255,255,0.05); border-radius: 4px; }
.result-tag { font-family: var(--mono); font-size: 0.625rem; font-weight: 700; text-transform: uppercase; }
.result-tag--win { color: var(--green); }
.result-tag--loss { color: var(--red); }
.result-tag--tie { color: var(--yellow); }

/* Badges & friends */
.xp-bar { height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; margin-bottom: 0.875rem; overflow: hidden; }
.xp-bar__fill { height: 100%; background: var(--steam); }

.badge-grid { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.badge-item {
  padding: 0.375rem 0.625rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.625rem;
}
.badge-item__level { color: var(--yellow); font-weight: 700; }
.badge-item__id { color: var(--text-muted); }

.friend-grid { display: flex; flex-direction: column; gap: 0.375rem; }
.friend-chip {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-size: 0.8125rem;
  transition: border-color 0.15s;
}
.friend-chip:hover { border-color: var(--border-hover); }
.friend-chip__avatar { width: 28px; height: 28px; border-radius: 6px; }
.friend-chip__name { font-weight: 500; }

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  margin-top: auto;
}

.footer--minimal { border-top: none; padding: 1rem 0; }

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer__inner a { color: var(--text-muted); text-decoration: none; }
.footer__inner a:hover { color: var(--steam); }

/* Responsive */
@media (max-width: 768px) {
  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .cheat-verdict__main { flex-direction: column; align-items: flex-start; }
  .cheat-verdict__stats { grid-template-columns: repeat(2, 1fr); }
  .profile__banner { height: 96px; }
  .profile__hero-content { flex-direction: column; align-items: flex-start; margin-top: -40px; }
  .profile__avatar { width: 84px; height: 84px; border-radius: 16px; }
  .profile__actions { width: 100%; }
  .profile__actions .btn { flex: 1; }
  .search-card__inner { flex-wrap: wrap; padding: 0.875rem; }
  .search-card__inner input { width: 100%; order: 1; }
  .search-card__inner .btn { order: 2; width: 100%; margin-top: 0.25rem; }
  .recent-section__head { flex-direction: column; }
}

@media (max-width: 480px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .features { flex-direction: column; align-items: stretch; }
  .feature { justify-content: center; }
}
