:root {
  --bg:      #07090e;
  --bg2:     #0c0f18;
  --bg3:     #111622;
  --surface: #161d2c;
  --border:  #1e2a3d;
  --accent:  #7c3aed;
  --accent2: #a855f7;
  --cyan:    #06b6d4;
  --green:   #22c55e;
  --red:     #ef4444;
  --gold:    #fbbf24;
  --silver:  #94a3b8;
  --bronze:  #b45309;
  --text:    #e2e8f0;
  --muted:   #475569;
  --radius:  10px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ── NAVBAR ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  background: rgba(7,9,14,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}

#navbar.scrolled {
  background: rgba(7,9,14,.97);
  border-bottom-color: var(--border);
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent2);
  white-space: nowrap;
}

.nav-logo span { color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: .2rem;
}

.nav-link {
  padding: .4rem .9rem;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--muted);
  transition: color .15s, background .15s;
}

.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(255,255,255,.05); }
.nav-link.active { color: var(--accent2); }

.btn-store {
  background: var(--accent);
  color: #fff !important;
  margin-left: .5rem;
  transition: background .15s !important;
}

.btn-store:hover { background: var(--accent2) !important; }

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.online-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.online-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: .5; }
}

.nav-search-wrap {
  position: relative;
  width: 260px;
}

.nav-search-wrap input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .5rem 1rem;
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
}

.nav-search-wrap input:focus { border-color: var(--accent2); }
.nav-search-wrap input::placeholder { color: var(--muted); }

.autocomplete-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: none;
  z-index: 300;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}

.autocomplete-list.show { display: block; }

.ac-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 1rem;
  cursor: pointer;
  transition: background .1s;
}

.ac-item:hover { background: var(--surface); }
.ac-item img { width: 24px; height: 24px; border-radius: 4px; }
.ac-name { font-weight: 700; flex: 1; }
.ac-elo { font-family: 'JetBrains Mono', monospace; font-size: .85rem; color: var(--accent2); }

/* ── HERO ── */
.hero {
  position: relative;
  padding: 140px 2rem 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(124,58,237,.15) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 80% 50%, rgba(6,182,212,.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  background: rgba(124,58,237,.15);
  border: 1px solid rgba(124,58,237,.3);
  border-radius: 20px;
  color: var(--accent2);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: .3rem 1rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 3px;
  margin-bottom: 1.2rem;
}

.hero-accent { color: var(--accent2); }
.accent { color: var(--accent2); }

.hero-content p {
  color: var(--silver);
  font-size: 1.15rem;
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: .75rem 2rem;
  transition: background .15s, transform .15s;
}

.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: .75rem 2rem;
  transition: border-color .15s;
}

.btn-secondary:hover { border-color: var(--accent2); color: var(--accent2); }
.copy-icon { font-size: 1.1rem; }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3.5rem;
  position: relative;
  z-index: 1;
}

.hstat { text-align: center; }
.hstat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent2);
}

.hstat-label { font-size: .9rem; color: var(--muted); font-weight: 600; letter-spacing: 1px; }
.hstat-sep { width: 1px; height: 40px; background: var(--border); }

/* ── SECTIONS ── */
.section { padding: 5rem 2rem; }
.section-dark { background: var(--bg2); }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.see-all {
  color: var(--accent2);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .5px;
  transition: opacity .15s;
}

.see-all:hover { opacity: .7; }

/* ── TOP 5 HOME ── */
.top5-grid { display: flex; flex-direction: column; gap: .5rem; }

.top5-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem 1.2rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.top5-row:hover { border-color: rgba(168,85,247,.4); background: rgba(168,85,247,.05); }

.top5-rank { font-size: 1.1rem; width: 36px; text-align: center; }
.top5-avatar { width: 32px; height: 32px; border-radius: 6px; }
.top5-name { font-weight: 700; font-size: 1.1rem; flex: 1; }
.top5-elo { font-family: 'JetBrains Mono', monospace; font-weight: 600; color: var(--accent2); }
.top5-wins { color: var(--green); font-size: .9rem; font-weight: 600; }

.skeleton-row {
  height: 56px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--bg3) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

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

/* ── NEWS ── */
.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.2rem;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color .2s;
}

.news-card:hover { border-color: rgba(168,85,247,.4); }
.news-card.featured { border-color: rgba(168,85,247,.3); }

.news-tag {
  display: inline-block;
  background: rgba(168,85,247,.15);
  border: 1px solid rgba(168,85,247,.3);
  border-radius: 4px;
  color: var(--accent2);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: .15rem .5rem;
  text-transform: uppercase;
  margin-bottom: .8rem;
}

.news-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .6rem; }
.news-card p { color: var(--silver); font-size: .95rem; line-height: 1.6; }
.news-date { color: var(--muted); font-size: .85rem; margin-top: 1rem; font-weight: 600; }

/* ── MODES SHOWCASE ── */
.modes-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.mode-card-big {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  display: block;
}

.mode-card-big:hover {
  border-color: var(--accent2);
  background: rgba(168,85,247,.08);
  transform: translateY(-3px);
}

.mode-icon { font-size: 2rem; margin-bottom: .6rem; }
.mode-name { font-size: 1.1rem; font-weight: 700; letter-spacing: 1px; }
.mode-desc { color: var(--muted); font-size: .85rem; margin-top: .3rem; }

/* ── LEADERBOARD PAGE ── */
.lb-hero {
  padding: 100px 2rem 40px;
  text-align: center;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(124,58,237,.12) 0%, transparent 65%);
}

.lb-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: 4px; text-transform: uppercase; }
.lb-hero p { color: var(--muted); font-size: 1rem; margin-top: .5rem; font-weight: 600; }

.lb-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.tabs-scroll { overflow-x: auto; padding-bottom: .5rem; margin-bottom: 1.5rem; }
.tabs-scroll::-webkit-scrollbar { height: 3px; }
.tabs-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.tabs-wrapper {
  display: flex;
  gap: .4rem;
  width: max-content;
  padding: .25rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.tab-btn {
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: .45rem 1.1rem;
  text-transform: uppercase;
  transition: all .15s;
  white-space: nowrap;
}

.tab-btn:hover { color: var(--text); background: rgba(255,255,255,.04); }
.tab-btn.active { background: var(--accent); color: #fff; }

/* ── PODIUM ── */
.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 2rem;
  min-height: 0;
}

.podium-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  width: 200px;
  position: relative;
}

.podium-card:hover { transform: translateY(-4px); }
.podium-card.first { width: 230px; border-color: rgba(251,191,36,.3); background: rgba(251,191,36,.04); }
.podium-card.silver { border-color: rgba(148,163,184,.2); }
.podium-card.bronze { border-color: rgba(180,83,9,.2); }

.podium-crown {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.6rem;
}

.podium-pos { font-size: .8rem; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); margin-bottom: .8rem; }
.podium-avatar { width: 72px; height: 72px; border-radius: 12px; margin-bottom: .7rem; }
.podium-card.first .podium-avatar { width: 88px; height: 88px; }
.podium-name { font-size: 1.1rem; font-weight: 700; }
.podium-elo { font-family: 'JetBrains Mono', monospace; font-size: 1.1rem; font-weight: 600; margin: .3rem 0; }
.podium-wl { font-size: .9rem; font-weight: 600; }
.podium-wl .w { color: var(--green); margin-right: .5rem; }
.podium-wl .l { color: var(--red); }

/* ── LB CONTROLS ── */
.lb-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: .8rem;
}

.sort-group { display: flex; align-items: center; gap: .5rem; }
.sort-label { color: var(--muted); font-size: .95rem; font-weight: 600; }

.sort-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  padding: .3rem .9rem;
  transition: all .15s;
}

.sort-btn:hover { color: var(--text); }
.sort-btn.active { border-color: var(--accent2); color: var(--accent2); background: rgba(168,85,247,.08); }

/* ── TABLE ── */
.table-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

table { width: 100%; border-collapse: collapse; }

thead th {
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: .8rem 1.2rem;
  text-align: left;
  text-transform: uppercase;
}

.th-rank { width: 60px; }

tbody tr {
  border-bottom: 1px solid rgba(30,42,61,.5);
  transition: background .1s;
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(168,85,247,.04); }

tbody td { padding: .85rem 1.2rem; vertical-align: middle; }
.td-rank { width: 60px; }

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 700;
}

.rank-badge.r1 { background: rgba(251,191,36,.12); color: var(--gold); border: 1px solid rgba(251,191,36,.3); }
.rank-badge.r2 { background: rgba(148,163,184,.08); color: var(--silver); border: 1px solid rgba(148,163,184,.2); }
.rank-badge.r3 { background: rgba(180,83,9,.1); color: #f97316; border: 1px solid rgba(180,83,9,.3); }
.rank-num { font-family: 'JetBrains Mono', monospace; font-size: .9rem; color: var(--muted); font-weight: 600; }

.player-cell { display: flex; align-items: center; gap: .75rem; }
.row-avatar { width: 36px; height: 36px; border-radius: 7px; }
.row-name { font-weight: 700; font-size: 1rem; }
.row-tier { font-size: .78rem; font-weight: 700; letter-spacing: .5px; }

.elo-val { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 1rem; }
.wins-val { color: var(--green); font-weight: 700; }
.losses-val { color: var(--red); font-weight: 700; }
.ratio-val { font-family: 'JetBrains Mono', monospace; font-size: .9rem; color: var(--silver); }
.empty-cell { text-align: center; padding: 3rem; color: var(--muted); }

/* ── PAGINATION ── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .4rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.page-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  min-width: 36px;
  padding: .35rem .8rem;
  transition: all .15s;
}

.page-btn:hover { border-color: var(--accent2); color: var(--text); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn:disabled { opacity: .3; cursor: default; pointer-events: none; }
.page-dots { color: var(--muted); padding: 0 .3rem; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(10px);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.modal-overlay.show { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: min(800px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  transform: translateY(24px) scale(.98);
  transition: transform .25s;
}

.modal-overlay.show .modal { transform: translateY(0) scale(1); }
.modal::-webkit-scrollbar { width: 4px; }
.modal::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.modal-close {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  padding: .3rem .65rem;
  line-height: 1;
  transition: color .15s, border-color .15s;
}

.modal-close:hover { color: var(--text); border-color: var(--silver); }

/* ── PROFILE ── */
.profile-error { text-align: center; padding: 3rem; color: var(--red); font-size: 1.1rem; font-weight: 600; }

.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.profile-avatar-wrap { position: relative; flex-shrink: 0; }

.profile-avatar {
  width: 100px; height: 100px;
  border-radius: 14px;
  display: block;
}

.profile-status {
  position: absolute;
  bottom: -6px; right: -6px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: .15rem .5rem;
  border-radius: 4px;
}

.profile-status.online { background: var(--green); color: #000; }
.profile-status.offline { background: var(--surface); border: 1px solid var(--border); color: var(--muted); }

.profile-info { flex: 1; min-width: 140px; }
.profile-name { font-size: 2rem; font-weight: 700; letter-spacing: 1px; }
.profile-tier { font-size: 1rem; font-weight: 700; margin: .3rem 0; }
.profile-rank-badge {
  display: inline-block;
  background: rgba(168,85,247,.1);
  border: 1px solid rgba(168,85,247,.25);
  border-radius: 6px;
  color: var(--accent2);
  font-size: .85rem;
  font-weight: 700;
  padding: .2rem .7rem;
  letter-spacing: 1px;
}

.profile-country { color: var(--muted); font-size: .9rem; margin-top: .4rem; font-weight: 600; }

.profile-elo-big { text-align: right; }
.elo-number { font-family: 'JetBrains Mono', monospace; font-size: 2.8rem; font-weight: 600; line-height: 1; }
.elo-label { color: var(--muted); font-size: .85rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }

.profile-summary {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.summary-stat {
  flex: 1;
  min-width: 80px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .9rem;
  text-align: center;
}

.ss-val { font-family: 'JetBrains Mono', monospace; font-size: 1.4rem; font-weight: 600; }
.ss-val.green { color: var(--green); }
.ss-val.red { color: var(--red); }
.ss-val.accent { color: var(--accent2); }
.ss-label { color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-top: .2rem; }

.winrate-bar {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  height: 24px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
}

.winrate-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width .6s;
}

.winrate-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

.profile-dates {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.date-item {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.date-label { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.date-val { font-weight: 600; font-size: .95rem; }

.profile-section-title {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.5rem 0 .8rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: .5rem;
}

.pmodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .7rem;
  margin-bottom: 1rem;
}

.pmode-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .9rem 1rem;
  transition: border-color .15s;
}

.pmode-card:hover { border-color: rgba(168,85,247,.3); }
.pmode-name { font-size: .75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.pmode-elo { font-family: 'JetBrains Mono', monospace; font-size: 1.2rem; font-weight: 600; }
.pmode-tier { font-size: .65rem; font-family: 'Rajdhani', sans-serif; color: var(--muted); }
.pmode-bar { height: 3px; background: var(--border); border-radius: 2px; margin: .4rem 0; overflow: hidden; }
.pmode-fill { height: 100%; border-radius: 2px; }
.pmode-stats { display: flex; gap: .6rem; font-size: .85rem; font-weight: 700; }
.pmode-stats .w { color: var(--green); }
.pmode-stats .l { color: var(--red); }
.pmode-stats .ratio { color: var(--muted); margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: .75rem; }

.matches-list { display: flex; flex-direction: column; gap: .4rem; }

.no-matches { text-align: center; padding: 1.5rem; color: var(--muted); font-size: .95rem; }

.match-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .65rem 1rem;
  font-size: .9rem;
  flex-wrap: wrap;
}

.match-row.win { border-left: 3px solid var(--green); }
.match-row.loss { border-left: 3px solid var(--red); }
.match-result { font-weight: 700; min-width: 90px; }
.match-row.win .match-result { color: var(--green); }
.match-row.loss .match-result { color: var(--red); }
.match-mode { color: var(--accent2); font-size: .8rem; font-weight: 700; letter-spacing: 1px; }
.match-vs { flex: 1; color: var(--silver); }
.match-elo { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: .9rem; }
.match-elo.pos { color: var(--green); }
.match-elo.neg { color: var(--red); }
.match-date { color: var(--muted); font-size: .75rem; }

/* ── SPINNER ── */
.spinner { display: flex; justify-content: center; padding: 4rem; }
.spinner-ring {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent2);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-weight: 700;
  padding: .9rem 1.4rem;
  z-index: 500;
  transform: translateY(20px);
  opacity: 0;
  transition: all .25s;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { border-color: var(--red); color: var(--red); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── FOOTER ── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 2rem 2.5rem;
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.footer-brand { max-width: 280px; }

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: .8rem;
}

.footer-logo span { color: var(--text); }

.footer-tagline {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.footer-tagline strong { color: var(--text); }
.footer-socials { display: flex; gap: .6rem; flex-wrap: wrap; }

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
  padding: .4rem .85rem;
  transition: all .15s;
  cursor: pointer;
}

.social-btn:hover { border-color: var(--accent2); color: var(--accent2); }

.footer-nav { flex: 1; display: flex; gap: 3rem; flex-wrap: wrap; }

.footer-col { display: flex; flex-direction: column; gap: .55rem; min-width: 110px; }

.footer-col-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: .3rem;
}

.footer-col a { color: var(--muted); font-size: .95rem; font-weight: 600; transition: color .15s; }
.footer-col a:hover { color: var(--accent2); }

.footer-ip-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .5rem .8rem;
  cursor: pointer;
  transition: border-color .15s;
  gap: .5rem;
}

.footer-ip-box:hover { border-color: var(--accent2); }
.footer-ip { font-family: 'JetBrains Mono', monospace; font-size: .9rem; font-weight: 600; color: var(--text); }
.footer-copy { font-size: .75rem; color: var(--muted); font-weight: 700; }
.footer-version { color: var(--muted); font-size: .85rem; font-weight: 600; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
  flex-wrap: wrap;
  gap: .5rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  #navbar { padding: 0 1rem; gap: 1rem; }
  .nav-links { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .podium { display: none; }
  .profile-header { flex-direction: column; }
  .profile-elo-big { text-align: left; }
  table thead th:nth-child(5), table tbody td:nth-child(5),
  table thead th:nth-child(6), table tbody td:nth-child(6) { display: none; }
}
