/* ============================================================
   CS2 Arena — FaceIt-inspired Dark Theme
   ============================================================ */

:root {
  --bg:            #0d0d0f;
  --bg-2:          #141416;
  --bg-3:          #1a1a1e;
  --surface:       #1e1e23;
  --surface-2:     #242429;
  --surface-3:     #2a2a30;
  --border:        #2e2e36;
  --border-2:      #3a3a44;

  --primary:       #ff6b35;
  --primary-hover: #ff5520;
  --primary-dim:   rgba(255,107,53,.12);

  --team1:         #3b82f6;
  --team1-dim:     rgba(59,130,246,.12);
  --team2:         #f59e0b;
  --team2-dim:     rgba(245,158,11,.12);

  --success:       #22c55e;
  --success-dim:   rgba(34,197,94,.12);
  --danger:        #ef4444;
  --danger-dim:    rgba(239,68,68,.12);
  --warning:       #f59e0b;
  --warning-dim:   rgba(245,158,11,.15);

  --text-1:        #f0f0f5;
  --text-2:        #a0a0b0;
  --text-3:        #6b6b7d;

  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     14px;
  --radius-xl:     20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  --shadow:    0 4px 16px rgba(0,0,0,.5);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.6);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-h: 60px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-content {
  min-height: calc(100vh - var(--nav-h) - 60px);
  padding-bottom: 40px;
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13,13,15,.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -.5px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: all .15s;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-1);
  background: var(--surface-2);
}
.nav-link.active { color: var(--primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-user-wrapper {
  position: relative;
}

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  color: inherit;
}
.nav-user-btn:hover { border-color: var(--border-2); background: var(--bg-2); }
.nav-user-btn.open { border-color: var(--primary); }

.nav-user-chevron { color: var(--text-3); transition: transform .2s; flex-shrink: 0; }
.nav-user-btn.open .nav-user-chevron { transform: rotate(180deg); }

.nav-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }

.nav-user-info { display: flex; flex-direction: column; gap: 1px; text-align: left; }
.nav-username { font-size: 13px; font-weight: 600; }
.nav-elo { font-size: 11px; font-weight: 700; }

.nav-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  padding: 6px;
  z-index: 200;
}
.nav-user-dropdown.open { display: block; }

.nav-user-drop-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 7px;
  color: var(--text-1); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: background .12s;
}
.nav-user-drop-item:hover { background: var(--bg-2); }
.nav-user-drop-item svg { color: var(--text-3); flex-shrink: 0; }

.nav-user-drop-divider {
  height: 1px; background: var(--border);
  margin: 4px 0;
}
.nav-user-drop-logout { color: #ef4444; }
.nav-user-drop-logout svg { color: #ef4444; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all .15s;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); }

.btn-ghost {
  background: transparent;
  border-color: var(--border-2);
  color: var(--text-2);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text-1); border-color: var(--border-2); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: #16a34a; color: #fff; }
.btn-success:hover { background: #15803d; }

.btn-warning { background: var(--warning); color: #111; }
.btn-warning:hover { opacity: .9; }

.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-full { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .4; pointer-events: none; }

/* ── Live dot ── */
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--danger);
  animation: blink 1.4s ease-in-out infinite;
}
.dot-orange { background: var(--primary); }
.dot-green  { background: var(--success); }
.stat-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: .3; }
}

.pulse-btn { animation: pulseGlow 2s ease-in-out infinite; }
@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,107,53,.4); }
  50%      { box-shadow: 0 0 0 8px rgba(255,107,53,0); }
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.card-title { font-size: 15px; font-weight: 700; }
.card-link { font-size: 13px; color: var(--primary); }
.card-link:hover { opacity: .8; }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
}
.badge-live     { background: var(--danger-dim); color: var(--danger); border: 1px solid rgba(239,68,68,.3); }
.badge-veto     { background: var(--primary-dim); color: var(--primary); border: 1px solid rgba(255,107,53,.3); }
.badge-finished { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.badge-scheduled{ background: var(--success-dim); color: var(--success); border: 1px solid rgba(34,197,94,.3); }
.badge-admin    { background: var(--primary-dim); color: var(--primary); border: 1px solid rgba(255,107,53,.3); }
.badge-you      { background: var(--team1-dim); color: var(--team1); border: 1px solid rgba(59,130,246,.3); font-size: 10px; padding: 2px 7px; }

/* ── Hero Section ── */
.hero {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255,107,53,.1) 0%, transparent 70%),
              linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--primary-dim);
  color: var(--primary);
  border: 1px solid rgba(255,107,53,.3);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 18px;
}

.text-primary { color: var(--primary); }

.hero-subtitle {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 16px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.hero-stat { text-align: center; }
.hero-stat-value { font-size: 24px; font-weight: 800; }
.hero-stat-label { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }
.hero-stat-divider { width: 1px; height: 36px; background: var(--border); }

/* ── Home Grid ── */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 40px 0 0;
}

/* ── Player List ── */
.player-list { padding: 8px 0; }

.player-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  transition: background .12s;
  border-radius: var(--radius-sm);
}
.player-row:hover { background: var(--surface-2); }

.player-rank { width: 24px; text-align: center; font-size: 13px; font-weight: 700; color: var(--text-3); }
.player-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.player-info { flex: 1; }
.player-name { font-size: 14px; font-weight: 600; }
.player-meta { display: flex; gap: 10px; margin-top: 2px; }
.player-elo { font-size: 15px; font-weight: 700; }

.level-badge { font-size: 12px; font-weight: 600; }
.muted { color: var(--text-3); font-size: 13px; }
.sep   { color: var(--text-3); }

/* ── Match List ── */
.match-list { padding: 8px 0; }

.match-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  transition: background .12s;
}
.match-row:hover { background: var(--surface-2); }

.match-map { display: flex; align-items: center; gap: 8px; min-width: 100px; }
.map-name { font-size: 13px; font-weight: 600; }

.match-score { display: flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 800; }
.score-sep { color: var(--text-3); }
.score-win { color: var(--success); }

.match-teams { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 12px; justify-content: flex-end; }
.vs-text { color: var(--text-3); font-size: 11px; }

/* ── How It Works ── */
.how-it-works { padding: 60px 0 0; }

.section-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 32px;
  letter-spacing: -.5px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.step-icon {
  width: 52px; height: 52px;
  background: var(--primary-dim);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin-bottom: 16px;
}

.step-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  background: var(--bg-2);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700;
}

.footer-stats { display: flex; gap: 16px; font-size: 13px; color: var(--text-2); }
.footer-links { margin-left: auto; display: flex; gap: 16px; }
.footer-links a { font-size: 13px; color: var(--text-3); }
.footer-links a:hover { color: var(--text-1); }

/* ── Auth Pages ── */
.auth-body { display: flex; min-height: 100vh; align-items: center; justify-content: center; }

.auth-container {
  width: 100%;
  max-width: 440px;
  padding: 20px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.auth-logo { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 28px; }
.auth-site-name { font-size: 20px; font-weight: 800; }

.auth-title { font-size: 24px; font-weight: 800; text-align: center; margin-bottom: 6px; }
.auth-subtitle { font-size: 14px; color: var(--text-2); text-align: center; margin-bottom: 28px; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
}
.auth-footer a { color: var(--primary); }
.auth-footer a:hover { opacity: .8; }

/* ── Form Controls ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label { font-size: 13px; font-weight: 600; color: var(--text-2); }

.form-control {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
}
.form-control::placeholder { color: var(--text-3); }
.form-control:focus { border-color: var(--primary); }

.form-hint { font-size: 12px; color: var(--text-3); }

.input-password-wrapper { position: relative; }
.input-password-wrapper .form-control { padding-right: 44px; }
.toggle-password {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); padding: 4px; background: none; border: none; cursor: pointer;
}
.toggle-password:hover { color: var(--text-1); }

/* ── Alert ── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-error   { background: var(--danger-dim); border: 1px solid rgba(239,68,68,.3); color: var(--danger); }
.alert-success { background: var(--success-dim); border: 1px solid rgba(34,197,94,.3); color: var(--success); }
.alert-warning { background: var(--warning-dim); border: 1px solid rgba(245,158,11,.3); color: var(--warning); }
.alert-link    { font-weight: 700; text-decoration: underline; }

/* ── Profile Page ── */
.profile-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 40px 0 32px;
}

.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}

.profile-level-badge {
  position: absolute;
  bottom: -4px; right: -4px;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  color: #fff;
  border: 2px solid var(--bg);
}

.profile-info { flex: 1; }

.profile-username-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 4px;
}
.profile-username { font-size: 28px; font-weight: 800; letter-spacing: -.5px; }

.profile-level-name { font-size: 14px; font-weight: 600; margin-bottom: 8px; }

.profile-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.steam-name { font-size: 13px; color: var(--text-2); }
.steam-link { display: flex; align-items: center; gap: 5px; color: var(--primary); font-size: 13px; }

.profile-elo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  text-align: center;
  min-width: 160px;
}

.elo-value { font-size: 36px; font-weight: 900; letter-spacing: -1px; }
.elo-label { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }

.elo-history-mini {
  display: flex; gap: 3px; margin-top: 14px; justify-content: center;
}

.elo-bar {
  width: 8px; height: 24px; border-radius: 3px;
}
.bar-win  { background: var(--success); }
.bar-loss { background: var(--danger); }

/* ── Stats Grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
}

.stat-value { font-size: 22px; font-weight: 800; }
.stat-label { font-size: 12px; color: var(--text-3); margin-top: 4px; }

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
}

/* ── Tables ── */
.table { width: 100%; border-collapse: collapse; }
.table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--border);
}
.table td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--surface-2); }

.recent-matches-table { padding: 0 4px; overflow-x: auto; }

.result-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
.result-win  { background: var(--success-dim); color: var(--success); }
.result-loss { background: var(--danger-dim); color: var(--danger); }
.result-draw { background: var(--surface-2); color: var(--text-3); }

.match-link { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-sm      { font-size: 12px; }
.text-xs      { font-size: 11px; }

/* ── Settings Tabs ── */
.settings-tabs {
  display: flex;
  gap: 4px;
  padding: 16px 20px 0;
  border-bottom: 1px solid var(--border);
}
.tab-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: 14px; font-weight: 600;
  color: var(--text-2);
  transition: all .15s;
  background: none;
  border: none;
  cursor: pointer;
}
.tab-btn:hover { color: var(--text-1); }
.tab-btn.active { color: var(--primary); background: var(--primary-dim); }

.tab-content { display: none; padding: 20px; }
.tab-content.active { display: block; }

.settings-form { display: flex; flex-direction: column; gap: 16px; }

.steam-linked-box {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px;
}
.steam-linked-icon { color: #66c0f4; flex-shrink: 0; }
.steam-linked-info { flex: 1; min-width: 0; }
.steam-linked-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 2px; }
.steam-linked-name { font-weight: 600; font-size: 15px; }
.steam-linked-id { font-size: 12px; font-family: monospace; }

/* ── Settings Page ── */
.settings-page {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding: 40px 0;
  align-items: start;
}
.settings-sidebar {
  display: flex; flex-direction: column; gap: 8px;
  position: sticky; top: 80px;
}
.settings-user-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 16px;
  text-align: center; margin-bottom: 8px;
}
.settings-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; margin-bottom: 10px;
  border: 2px solid var(--border);
}
.settings-user-name { font-weight: 700; font-size: 15px; }
.settings-user-elo { font-size: 13px; margin-top: 2px; }

.settings-nav { display: flex; flex-direction: column; gap: 2px; }
.settings-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px;
  color: var(--text-2); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: background .15s, color .15s;
}
.settings-nav-item:hover { background: var(--bg-2); color: var(--text-1); }
.settings-nav-item.active { background: var(--bg-2); color: var(--text-1); }
.settings-nav-badge {
  margin-left: auto; font-size: 10px; font-weight: 600;
  padding: 2px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
}
.settings-nav-badge.linked { background: #16a34a22; color: #22c55e; }
.settings-nav-badge.unlinked { background: #78716c22; color: #a8a29e; }

.settings-back-link {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-3); font-size: 13px; text-decoration: none;
  padding: 8px 14px; margin-top: 4px;
  transition: color .15s;
}
.settings-back-link:hover { color: var(--text-1); }

.settings-content {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px;
}
.settings-section-header { margin-bottom: 24px; }
.settings-section-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.settings-section-desc { color: var(--text-2); font-size: 14px; }

.profile-settings-btn {
  position: absolute; top: 0; right: 0;
}
.profile-header { position: relative; }

@media (max-width: 700px) {
  .settings-page { grid-template-columns: 1fr; }
  .settings-sidebar { position: static; }
}

/* ── Queue Page ── */
.queue-page { padding: 40px 0; }

.queue-header {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
}

.page-title { font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.page-subtitle { color: var(--text-2); font-size: 15px; margin-top: 4px; }
.page-header { padding: 40px 0 28px; }

.queue-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
}

.queue-cards { display: flex; flex-direction: column; gap: 16px; }

.queue-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color .15s;
}
.queue-card-active { border-color: var(--primary); }

.queue-card-header {
  display: flex; justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.queue-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.queue-mode {
  display: inline-block;
  padding: 2px 8px;
  background: var(--surface-3);
  border-radius: 4px;
  font-size: 12px; font-weight: 600; color: var(--text-2);
}

.queue-progress-wrap { margin-bottom: 16px; }
.queue-progress {
  height: 6px; background: var(--surface-3);
  border-radius: 99px; overflow: hidden;
  margin-bottom: 8px;
}
.queue-progress-bar { height: 100%; background: var(--primary); border-radius: 99px; transition: width .3s; }

.queue-count { display: flex; align-items: baseline; gap: 4px; }
.count-current { font-size: 28px; font-weight: 800; color: var(--primary); }
.count-sep { color: var(--text-3); font-size: 16px; }
.count-max { font-size: 18px; font-weight: 700; color: var(--text-2); }
.count-label { font-size: 13px; color: var(--text-3); }

/* ── Lobby ── */
.queue-lobby {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
}

.lobby-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}

.lobby-live-indicator { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--primary); }

.lobby-players {
  flex: 1; padding: 8px 0;
  max-height: 520px;
  overflow-y: auto;
}

.lobby-player {
  display: flex; align-items: center;
  gap: 12px; padding: 10px 20px;
  transition: background .12s;
}
.lobby-player:hover { background: var(--surface-2); }
.lobby-player-self { background: var(--primary-dim) !important; }

.lobby-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.lobby-avatar-empty {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-3);
  border: 2px dashed var(--border-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
}

.lobby-slot-empty { opacity: .5; }

.lobby-player-info { flex: 1; }
.lobby-player-name { font-size: 14px; font-weight: 600; }
.lobby-player-elo  { font-size: 12px; font-weight: 600; }
.lobby-player-level { font-size: 12px; font-weight: 700; }

.lobby-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}

.searching-indicator { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--primary); }

.search-spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--primary-dim);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.avg-elo { font-size: 13px; color: var(--text-2); }

.match-active-alert { margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }

/* ── Match Room ── */
.match-container { padding: 32px 0; }

.match-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.match-title-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}

.match-id-badge {
  font-size: 13px; font-weight: 700; color: var(--text-3);
}

.match-map-display {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--text-2);
  margin-left: auto;
}

.match-scoreboard {
  display: flex; align-items: center; justify-content: center;
  gap: 32px;
}

.score-team { display: flex; align-items: center; gap: 16px; }
.score-team-1 { flex-direction: row-reverse; }
.score-team-2 { flex-direction: row; }
.score-team-name { font-size: 15px; font-weight: 700; color: var(--text-2); }

.score-num {
  font-size: 48px; font-weight: 900; letter-spacing: -2px;
  color: var(--text-2);
  min-width: 60px; text-align: center;
}
.score-winner { color: var(--text-1); }
.score-divider { font-size: 32px; font-weight: 800; color: var(--border-2); }

.connect-info {
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.connect-cmd { display: flex; align-items: center; gap: 12px; }
.connect-cmd code {
  font-family: 'Courier New', monospace;
  font-size: 14px; color: var(--success);
  background: var(--surface-2);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}
.gotv-info { font-family: 'Courier New', monospace; }

/* ── Match Body ── */
.match-body {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
}

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

/* ── Teams ── */
.teams-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.team-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.team-indicator {
  width: 4px; height: 20px; border-radius: 2px;
}
.team-1-color { background: var(--team1); }
.team-2-color { background: var(--team2); }
.team-title   { font-size: 14px; font-weight: 700; }

.team-players { padding: 8px 0; }

.team-player {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  transition: background .12s;
}
.team-player:hover { background: var(--surface-2); }

.team-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

.player-ready-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ready-yes { background: var(--success); }
.ready-no  { background: var(--border-2); }

.team-player-info { flex: 1; }
.team-player-name { font-size: 13px; font-weight: 600; }
.team-player-elo  { font-size: 11px; font-weight: 600; }
.captain-crown    { color: var(--primary); }

.team-player-stats { font-size: 12px; color: var(--text-2); text-align: right; }

/* ── Veto Section ── */
.veto-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.veto-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.veto-header h3 { font-size: 16px; font-weight: 700; }

.veto-turn-indicator {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-2);
}

.team-1-text { color: var(--team1); font-weight: 700; }
.team-2-text { color: var(--team2); font-weight: 700; }

.your-turn-badge {
  padding: 3px 10px;
  background: var(--primary);
  color: #fff;
  border-radius: 99px;
  font-size: 11px; font-weight: 700;
  animation: pulseGlow .8s ease-in-out infinite;
}

.veto-complete { display: flex; align-items: center; gap: 6px; color: var(--success); font-size: 14px; }

/* ── Veto Timeline ── */
.veto-timeline {
  display: flex; gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.veto-step {
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 90px;
  border: 1px solid var(--border);
}

.veto-ban    { background: var(--danger-dim); border-color: rgba(239,68,68,.25); }
.veto-pick   { background: var(--success-dim); border-color: rgba(34,197,94,.25); }
.veto-pending{ background: var(--surface-2); }

.veto-team-1 .veto-step-action { color: var(--team1); }
.veto-team-2 .veto-step-action { color: var(--team2); }

.veto-step-action { font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.veto-step-map    { font-size: 12px; font-weight: 600; margin-top: 4px; }
.veto-step-by     { font-size: 10px; margin-top: 2px; }

/* ── Map Grid ── */
.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.map-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  position: relative;
  background: var(--surface-2);
  transition: all .2s;
}

.map-card-image { aspect-ratio: 16/9; overflow: hidden; }
.map-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }

.map-card:hover .map-card-image img { transform: scale(1.05); }

.map-card-info {
  padding: 8px 10px;
  position: relative;
}
.map-card-name { font-size: 12px; font-weight: 700; }

.map-selectable {
  border-color: var(--primary);
  cursor: pointer;
}
.map-selectable:hover { border-color: var(--primary-hover); box-shadow: 0 0 16px rgba(255,107,53,.3); }

.map-banned { opacity: .4; filter: grayscale(80%); }
.map-voting { opacity: .5; pointer-events: none; cursor: wait; }

.map-ban-overlay {
  position: absolute;
  inset: 0;
  background: rgba(239,68,68,.15);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}

.ban-x { font-size: 28px; font-weight: 900; color: var(--danger); }
.ban-info { font-size: 10px; color: var(--danger); margin-top: 2px; }

.map-hover-action {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  text-align: center;
  font-size: 10px; color: var(--primary); font-weight: 700;
}

.final-map-display {
  margin-top: 20px;
  padding: 20px;
  background: var(--success-dim);
  border: 1px solid rgba(34,197,94,.3);
  border-radius: var(--radius);
  text-align: center;
}
.final-map-label { font-size: 12px; color: var(--success); font-weight: 600; text-transform: uppercase; }
.final-map-name  { font-size: 22px; font-weight: 800; margin-top: 4px; }

/* ── Live Stats ── */
.live-stats {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.live-stats h3 { padding: 16px 20px; font-size: 15px; font-weight: 700; border-bottom: 1px solid var(--border); }

.stats-table-wrap { overflow-x: auto; }

.stats-table { font-size: 13px; }
.stats-table .team-header-row td {
  background: var(--surface-2);
  font-size: 12px; font-weight: 700;
  color: var(--team1);
  padding: 8px 16px;
  text-transform: uppercase;
}
.stats-table .team-2-row td { color: var(--team2); }

.stats-player { display: flex; align-items: center; gap: 8px; }
.stats-avatar  { width: 24px; height: 24px; border-radius: 50%; }

/* ── Chat ── */
.match-sidebar { display: flex; flex-direction: column; }

.chat-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  height: 600px;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}

.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.chat-header h4 { font-size: 14px; font-weight: 700; }

.chat-messages {
  flex: 1; overflow-y: auto; padding: 12px 16px;
  display: flex; flex-direction: column; gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}

.chat-message { font-size: 13px; line-height: 1.4; }
.chat-user    { color: var(--primary); font-weight: 600; margin-right: 4px; }
.chat-text    { color: var(--text-1); }
.chat-time    { color: var(--text-3); font-size: 11px; margin-left: 6px; }
.chat-system  { background: var(--surface-2); padding: 6px 10px; border-radius: var(--radius-sm); }
.chat-system .chat-text { color: var(--text-2); font-style: italic; }

.chat-form {
  display: flex; gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.chat-input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
}
.chat-input:focus { border-color: var(--primary); }

.chat-send {
  width: 36px; height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: pointer; border: none;
}
.chat-send:hover { background: var(--primary-hover); }

/* ── Leaderboard ── */
.leaderboard-card { overflow: visible; }
.leaderboard-table .rank-col { width: 60px; }

.rank-medal { font-size: 18px; }
.rank-num   { font-size: 13px; font-weight: 700; color: var(--text-3); }

.leaderboard-row.top-1 td { background: rgba(255,215,0,.04); }
.leaderboard-row.top-2 td { background: rgba(192,192,192,.04); }
.leaderboard-row.top-3 td { background: rgba(205,127,50,.04); }
.my-row td { background: var(--primary-dim) !important; }

.leaderboard-player { display: flex; align-items: center; gap: 10px; }
.lb-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.lb-name   { font-size: 14px; font-weight: 600; }
.lb-elo    { font-size: 16px; font-weight: 800; }

.level-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px; font-weight: 700;
  border: 1px solid;
}

.winrate-cell { display: flex; flex-direction: column; gap: 4px; min-width: 80px; }
.winrate-bar-wrap { height: 4px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.winrate-bar { height: 100%; background: var(--success); border-radius: 99px; }

/* ── Matches Page ── */
.matches-list { display: flex; flex-direction: column; gap: 10px; }

.match-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  transition: border-color .15s;
}
.match-card:hover { border-color: var(--border-2); }

.match-card-id { font-size: 12px; color: var(--text-3); font-weight: 600; min-width: 60px; }
.match-card-map { min-width: 100px; }
.match-card-map-name { font-size: 14px; font-weight: 700; }
.match-card-mode { font-size: 11px; color: var(--text-3); text-transform: uppercase; }

.match-card-score {
  display: flex; align-items: center; gap: 8px;
  font-size: 22px; font-weight: 800;
  min-width: 80px; justify-content: center;
}
.mc-score { min-width: 24px; text-align: center; }
.mc-sep   { color: var(--text-3); font-size: 14px; }

.match-card-teams {
  flex: 1; display: flex; align-items: center;
  gap: 10px; font-size: 14px;
}
.mc-team { flex: 1; font-weight: 600; }
.mc-vs   { color: var(--text-3); font-size: 12px; flex-shrink: 0; }

.match-card-meta { display: flex; align-items: center; gap: 12px; }
.match-status-badge {
  padding: 3px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase;
}
.status-live      { background: var(--danger-dim); color: var(--danger); }
.status-veto      { background: var(--primary-dim); color: var(--primary); }
.status-finished  { background: var(--surface-2); color: var(--text-3); }
.status-scheduled { background: var(--success-dim); color: var(--success); }

.mc-players, .mc-time { font-size: 12px; color: var(--text-3); }

.filter-tabs { display: flex; gap: 6px; margin-top: 8px; }
.filter-tab {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  color: var(--text-2);
  border: 1px solid transparent;
  transition: all .15s;
  display: flex; align-items: center; gap: 6px;
}
.filter-tab:hover  { background: var(--surface); }
.filter-tab.active { background: var(--surface); border-color: var(--border); color: var(--text-1); }

/* ── Notifications ── */
.nav-notif-wrapper { position: relative; }

.notif-btn {
  position: relative;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .15s;
}
.notif-btn:hover { background: var(--surface-2); color: var(--text-1); }

.notif-badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--danger);
  color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}

.notif-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  display: none;
  overflow: hidden;
}
.notif-dropdown.open { display: block; }

.notif-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px; font-weight: 700;
}
.notif-clear { font-size: 12px; color: var(--primary); font-weight: 600; }

.notif-item {
  display: block; padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.notif-item:hover { background: var(--surface-2); }
.notif-item:last-child { border-bottom: none; }

.notif-msg  { font-size: 13px; font-weight: 500; }
.notif-time { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.notif-empty{ padding: 20px; text-align: center; font-size: 13px; color: var(--text-3); }

/* ── Pagination ── */
.pagination {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 24px;
}

/* ── Empty State ── */
.empty-state {
  padding: 40px; text-align: center;
  font-size: 14px; color: var(--text-3);
}

/* ── Admin Layout ── */
.admin-wrapper {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - var(--nav-h));
  max-width: 1400px;
  margin: 0 auto;
  gap: 0;
}

.admin-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}

.admin-sidebar-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  padding: 0 20px 16px;
}

.admin-nav { flex: 1; }

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}

.admin-nav-item:hover { background: var(--surface-2); color: var(--text-1); }
.admin-nav-item.active { background: var(--primary-dim); color: var(--primary); border-left-color: var(--primary); }

.admin-nav-icon { font-size: 1rem; width: 20px; text-align: center; }

.admin-sidebar-footer { padding: 16px; border-top: 1px solid var(--border); margin-top: auto; }

.admin-main {
  padding: 32px;
  overflow-x: hidden;
}

.admin-page-header { margin-bottom: 28px; }
.admin-page-title  { font-size: 1.5rem; font-weight: 800; color: var(--text-1); }
.admin-page-sub    { font-size: 0.875rem; color: var(--text-3); margin-top: 4px; }

/* Admin stats grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.admin-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.admin-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 6px;
}

.admin-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-1);
}

/* Admin section */
.admin-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.admin-section-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Admin form */
.admin-form { }
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

/* Admin table */
.admin-table-wrap { overflow-x: auto; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.admin-table td {
  padding: 10px 12px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: var(--surface-2); }
.admin-table tr.row-banned td { opacity: 0.55; }
.admin-table tr.row-banned:hover td { opacity: 0.85; }
.admin-table strong { color: var(--text-1); }

.admin-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* Admin map grid */
.admin-map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.admin-map-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.admin-map-card:hover { border-color: var(--border-2); }
.admin-map-card.map-inactive { opacity: 0.45; }

.admin-map-thumb {
  height: 80px;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-3);
}

.admin-map-info { padding: 10px 12px 4px; }
.admin-map-name { font-size: 0.875rem; font-weight: 600; color: var(--text-1); }
.admin-map-code { font-size: 0.75rem; color: var(--text-3); font-family: monospace; }
.admin-map-actions { padding: 8px 12px; }
.admin-map-actions .btn { width: 100%; }

/* Level pill (admin users) */
.level-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Utility aliases used in admin */
.text-muted { color: var(--text-3) !important; }
.link { color: var(--primary); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .match-body { grid-template-columns: 1fr; }
  .chat-panel { height: 400px; position: static; }
}

@media (max-width: 768px) {
  .home-grid    { grid-template-columns: 1fr; }
  .queue-grid   { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .teams-grid   { grid-template-columns: 1fr; }
  .profile-header { flex-direction: column; align-items: center; text-align: center; }
  .nav-links    { display: none; }
  .hero-stats   { flex-direction: column; gap: 16px; }
  .hero-stat-divider { display: none; }
  .steps-grid   { grid-template-columns: 1fr; }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); }
}
