/* styles.css — Legacy Server Stats */

/* ═══ RESET & BASE ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: #09090f !important; font-family: 'Rajdhani', sans-serif; color: #fff; }
body::before { display: none !important; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #09090f; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 3px; }

/* ═══ FLAG IMAGES — Local SVG Assets ═══ */
.flag-svg {
  display: inline-block;
  vertical-align: middle;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  width: var(--flag-w, 28px);
  height: var(--flag-h, 19px);
}
.flag-unknown { opacity: .2; display: inline-block; vertical-align: middle; }

/* ═══ LAYOUT ═══ */
.main-content { position: relative; z-index: 1; padding-top: 64px; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* ═══ NAVBAR ═══ */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(9,9,15,.94); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,.07); }
.navbar-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; height: 64px; display: flex; align-items: center; justify-content: space-between; }

/* Logo */
.nav-logo { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; text-decoration: none; padding: 2px 0; gap: 2px; }
.nav-logo-main { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 1.25rem; letter-spacing: 4px; color: #fff; text-transform: uppercase; position: relative; padding-bottom: 4px; }
.nav-logo-main::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: #fff; box-shadow: 0 3px 0 #fff; }
.nav-logo-sub { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: .58rem; letter-spacing: 5px; color: rgba(255,255,255,.35); text-transform: uppercase; margin-top: 6px; }

/* Nav links */
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a { font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: .88rem; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.4); text-decoration: none; padding: 7px 14px; border-radius: 6px; transition: all .2s; border: 1px solid transparent; }
.nav-links a:hover { color: rgba(255,255,255,.85); background: rgba(255,255,255,.06); }
.nav-links a.active { color: #fff; border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.08); }

/* Search */
.nav-search { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 6px 14px; transition: border-color .2s; }
.nav-search:focus-within { border-color: rgba(255,255,255,.3); }
.nav-search input { background: none; border: none; outline: none; color: #fff; font-family: 'Rajdhani', sans-serif; font-size: .875rem; width: 180px; }
.nav-search input::placeholder { color: rgba(255,255,255,.25); }
.nav-search svg { color: rgba(255,255,255,.3); flex-shrink: 0; }
.search-results-dropdown { position: absolute; top: calc(100% + 8px); right: 0; width: 300px; background: #131318; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,.8); z-index: 9999; overflow: hidden; }
.srd-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-decoration: none; color: #fff; border-bottom: 1px solid rgba(255,255,255,.06); transition: background .15s; }
.srd-item:last-child { border-bottom: none; }
.srd-item:hover { background: rgba(255,255,255,.05); }
.srd-name { font-weight: 600; font-size: .88rem; }
.srd-pts { font-family: 'Share Tech Mono', monospace; font-size: .75rem; color: rgba(255,255,255,.4); }
.srd-none { padding: 14px; color: rgba(255,255,255,.3); font-size: .85rem; text-align: center; }
.hamburger { display: none; background: none; border: none; color: #fff; cursor: pointer; padding: 6px; }

/* ═══ NAV ACTIONS & STEAM AUTH ═══ */
.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn-steam-login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(23, 100, 154, .18);
  border: 1px solid rgba(23, 100, 154, .45);
  border-radius: 8px;
  padding: 6px 13px;
  color: #60a5fa;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .2s;
  flex-shrink: 0;
}
.btn-steam-login:hover {
  background: rgba(23, 100, 154, .35);
  border-color: rgba(96, 165, 250, .6);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 100, 154, .3);
}
.nav-user-wrap { position: relative; flex-shrink: 0; }
.nav-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  padding: 4px 10px 4px 5px;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.nav-user-btn:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .25);
}
.nav-user-avatar { border-radius: 6px; object-fit: cover; display: block; }
.nav-user-name {
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 200px;
  background: #131318;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .8);
  z-index: 9999;
  display: none;
  overflow: hidden;
}
.nav-user-dropdown.show { display: block; animation: fadeInUp .2s ease; }
.nav-user-drop-header { padding: 12px 14px 8px; }
.nav-user-drop-name { font-weight: 700; font-size: .92rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-user-drop-id { font-family: 'Share Tech Mono', monospace; font-size: .68rem; color: rgba(255, 255, 255, .35); margin-top: 2px; }
.nav-user-drop-divider { height: 1px; background: rgba(255, 255, 255, .07); margin: 4px 0; }
.nav-user-drop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  transition: background .15s, color .15s;
}
.nav-user-drop-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-user-drop-item.logout:hover { color: #f87171; background: rgba(248, 113, 113, .1); }

.mobile-only-user { display: none; }
@media (max-width: 680px) {
  .hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(19, 19, 24, .98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    flex-direction: column;
    padding: 1rem;
    gap: 6px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .8);
  }
  .nav-search { display: none; }
  .mobile-only-user { display: block; }
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeInUp .5s ease both; }
.fade-in-delay-1 { animation: fadeInUp .5s .1s ease both; }
.fade-in-delay-2 { animation: fadeInUp .5s .2s ease both; }
.fade-in-delay-3 { animation: fadeInUp .5s .3s ease both; }

/* ═══ PAGE HEADER ═══ */
.page-header { padding: 3rem 0 2rem; margin-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.07); position: relative; }
.page-header::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100px; height: 2px; background: linear-gradient(90deg, rgba(255,255,255,.6), transparent); }
.page-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: 3px; text-transform: uppercase; color: #fff; }
.page-title span { color: rgba(255,255,255,.4); }
.page-subtitle { color: rgba(255,255,255,.3); font-size: .88rem; margin-top: 4px; }

/* ═══ CARDS ═══ */
.card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 1.5rem; transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: rgba(255,255,255,.15); box-shadow: 0 4px 24px rgba(0,0,0,.5); }

/* ═══ BUTTONS ═══ */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; border-radius: 8px; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: .88rem; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; transition: all .2s; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: #fff; color: #09090f; border-color: #fff; }
.btn-primary:hover { background: rgba(255,255,255,.88); transform: translateY(-1px); }
.btn-outline { background: transparent; color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.25); }
.btn-outline:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost { background: rgba(255,255,255,.06); color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.12); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }

/* ═══ FILTER BAR ═══ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 1.5rem; }
.filter-bar label { font-size: .72rem; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: 1px; }
.filter-bar select,
.filter-bar input[type=text] {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-family: 'Rajdhani', sans-serif;
  font-size: .875rem;
  outline: none;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.filter-bar select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}
.filter-bar select option { background: #1a1a24; color: #fff; }
.filter-bar select:focus,
.filter-bar input[type=text]:focus { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.09); }

/* ═══ TABLE ═══ */
.ranking-table { width: 100%; border-collapse: collapse; }
.ranking-table thead tr { border-bottom: 1px solid rgba(255,255,255,.08); }
.ranking-table th { font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.3); padding: 10px 16px; text-align: left; white-space: nowrap; }
.ranking-table th a { color: inherit; text-decoration: none; transition: color .15s; }
.ranking-table th a:hover, .ranking-table th a.sort-active { color: rgba(255,255,255,.8); }
.ranking-table tbody tr { border-bottom: 1px solid rgba(255,255,255,.04); cursor: pointer; transition: background .15s; }
.ranking-table tbody tr:hover { background: rgba(255,255,255,.04); }
.ranking-table td { padding: 10px 16px; font-size: .9rem; vertical-align: middle; }
.rank-pos { font-family: 'Share Tech Mono', monospace; font-weight: 700; font-size: .9rem; }
.rank-pos.gold { color: #f5c842; }
.rank-pos.silver { color: #94a3b8; }
.rank-pos.bronze { color: #cd7f32; }
.rank-pos.normal { color: rgba(255,255,255,.25); }
.player-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1rem; color: #fff; letter-spacing: .5px; }
.score-val { font-family: 'Share Tech Mono', monospace; color: rgba(255,255,255,.65); font-size: .88rem; }
.time-val { font-family: 'Share Tech Mono', monospace; color: rgba(255,255,255,.3); font-size: .82rem; }

/* ═══ SECTION TITLE ═══ */
.section-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: .95rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; width: 3px; height: 14px; background: rgba(255,255,255,.5); border-radius: 2px; display: inline-block; }

/* ═══ DETAIL GRID ═══ */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .6rem; }
.detail-item { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 8px; }
.detail-label { font-size: .78rem; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .8px; }
.detail-value { font-family: 'Share Tech Mono', monospace; font-size: .85rem; color: #fff; font-weight: 700; }

/* ═══ STAT CARD ═══ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 1.5rem; text-align: center; transition: all .2s; }
.stat-card:hover { border-color: rgba(255,255,255,.18); }
.stat-icon { font-size: 1.6rem; margin-bottom: .4rem; display: block; }
.stat-label { font-size: .7rem; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.3); margin-bottom: .25rem; }
.stat-value { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 2rem; color: #fff; line-height: 1; }
.stat-value.blue { color: #60a5fa; }
.stat-value.gold { color: #f5c842; }
.stat-value.cyan { color: #34d399; }
.stat-value.green { color: #4ade80; }
.stat-value.purple { color: #a78bfa; }

/* ═══ BADGE / CHIP ═══ */
.badge { display: inline-block; padding: 2px 9px; border-radius: 4px; font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.badge-gold { background: rgba(245,200,66,.12); color: #f5c842; border: 1px solid rgba(245,200,66,.25); }
.badge-silver { background: rgba(148,163,184,.12); color: #94a3b8; border: 1px solid rgba(148,163,184,.25); }
.badge-bronze { background: rgba(205,127,50,.12); color: #cd7f32; border: 1px solid rgba(205,127,50,.25); }
.badge-blue { background: rgba(96,165,250,.1); color: #60a5fa; border: 1px solid rgba(96,165,250,.2); }
.stat-chip { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 5px; padding: 3px 9px; font-family: 'Share Tech Mono', monospace; font-size: .75rem; color: rgba(255,255,255,.5); }

/* ═══ PAGINATION ═══ */
.pagination { display: flex; gap: 5px; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 6px; font-family: 'Share Tech Mono', monospace; font-size: .82rem; text-decoration: none; border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.4); transition: all .15s; }
.pagination a:hover { border-color: rgba(255,255,255,.3); color: #fff; background: rgba(255,255,255,.07); }
.pagination .current { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); font-weight: 700; }

/* ═══ BACK LINK ═══ */
.back-link { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.3); text-decoration: none; font-size: .82rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1.5rem; transition: color .2s; }
.back-link:hover { color: #fff; }

/* ═══ PROGRESS BAR ═══ */
.progress-bar { height: 4px; background: rgba(255,255,255,.07); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.progress-fill { height: 100%; border-radius: 2px; background: rgba(255,255,255,.5); transition: width .6s ease; }

/* ═══ AWARDS ═══ */
.awards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.25rem; }
.award-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; overflow: hidden; transition: all .2s; }
.award-card:hover { border-color: rgba(255,255,255,.16); }
.award-header { padding: 1.1rem 1.4rem; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.award-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.award-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: .95rem; letter-spacing: 1.5px; text-transform: uppercase; }
.award-sub { font-size: .75rem; color: rgba(255,255,255,.3); }
.award-rows { padding: .4rem 0; }
.award-row { display: flex; align-items: center; gap: 10px; padding: 9px 1.4rem; text-decoration: none; color: #fff; border-bottom: 1px solid rgba(255,255,255,.04); transition: background .15s; }
.award-row:last-child { border-bottom: none; }
.award-row:hover { background: rgba(255,255,255,.04); }
.award-pos { width: 22px; font-family: 'Share Tech Mono', monospace; font-size: .75rem; font-weight: 700; text-align: center; flex-shrink: 0; }
.award-pos.p1 { color: #f5c842; font-size: .95rem; }
.award-pos.p2 { color: #94a3b8; }
.award-pos.p3 { color: #cd7f32; }
.award-pos.pn { color: rgba(255,255,255,.25); }
.award-pname { flex: 1; font-size: .88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.award-pval { font-family: 'Share Tech Mono', monospace; font-size: .82rem; color: rgba(255,255,255,.5); flex-shrink: 0; }

/* ═══ PROFILE ═══ */
.profile-hero { background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 2.5rem; margin-bottom: 1.5rem; }
.profile-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: 2px; color: #fff; margin-bottom: .5rem; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.25rem; }
.profile-stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; }
.profile-stat { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: .9rem 1rem; }
.profile-stat-label { font-size: .65rem; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.3); margin-bottom: 3px; }
.profile-stat-value { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.4rem; color: #fff; }

/* ═══ TABS ═══ */
.tab-nav { display: flex; gap: 3px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 1.5rem; overflow-x: auto; }
.tab-btn { padding: 9px 16px; font-family: 'Rajdhani', sans-serif; font-size: .8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.35); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: all .2s; }
.tab-btn:hover { color: rgba(255,255,255,.7); }
.tab-btn.active { color: #fff; border-bottom-color: rgba(255,255,255,.7); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ═══ STAT BAR ═══ */
.stat-bar-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.stat-bar-row:last-child { border-bottom: none; }
.stat-bar-label { width: 150px; font-size: .8rem; color: rgba(255,255,255,.4); flex-shrink: 0; }
.stat-bar-track { flex: 1; height: 5px; background: rgba(255,255,255,.06); border-radius: 3px; overflow: hidden; }
.stat-bar-fill { height: 100%; border-radius: 3px; background: rgba(255,255,255,.45); }
.stat-bar-val { width: 55px; text-align: right; font-family: 'Share Tech Mono', monospace; font-size: .77rem; color: rgba(255,255,255,.5); }

/* ═══ STEAM AVATAR ═══ */
.steam-avatar-wrap { position: relative; display: inline-block; flex-shrink: 0; }
.steam-avatar-wrap img { border-radius: 50%; object-fit: cover; display: block; }
.steam-status-dot { position: absolute; bottom: 2px; right: 2px; border-radius: 50%; border: 2px solid #09090f; display: block; }

/* ═══ PODIUM ═══ */
.podium-wrap { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 1rem; align-items: end; margin-bottom: 2.5rem; }
@media (max-width: 700px) { .podium-wrap { grid-template-columns: 1fr; } }
.pcard { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform .25s, border-color .25s, box-shadow .25s; padding-bottom: 1.5rem; }
.pcard:hover { transform: translateY(-5px); }
.pcard.rank-1 { border-color: rgba(245,200,66,.25); }
.pcard.rank-2 { border-color: rgba(148,163,184,.15); }
.pcard.rank-3 { border-color: rgba(205,127,50,.15); }
.pcard.rank-1:hover { box-shadow: 0 0 30px rgba(245,200,66,.2); border-color: rgba(245,200,66,.45); }
.pcard-accent { width: 100%; height: 3px; }
.pcard.rank-1 .pcard-accent { background: linear-gradient(90deg, transparent, #f5c842, transparent); }
.pcard.rank-2 .pcard-accent { background: linear-gradient(90deg, transparent, #94a3b8, transparent); }
.pcard.rank-3 .pcard-accent { background: linear-gradient(90deg, transparent, #cd7f32, transparent); }
.pcard-avatar-wrap { position: relative; margin: 1.25rem 0 .6rem; }
.pcard-avatar-wrap img { border-radius: 50%; object-fit: cover; display: block; }
.pcard.rank-1 .pcard-avatar-wrap img { width: 84px; height: 84px; border: 3px solid #f5c842; box-shadow: 0 0 16px rgba(245,200,66,.35); }
.pcard.rank-2 .pcard-avatar-wrap img { width: 72px; height: 72px; border: 2px solid #94a3b8; }
.pcard.rank-3 .pcard-avatar-wrap img { width: 72px; height: 72px; border: 2px solid #cd7f32; }
.pcard-medal { position: absolute; bottom: -5px; right: -5px; font-size: 1.1rem; filter: drop-shadow(0 2px 3px rgba(0,0,0,.8)); }
.pcard-status-dot { position: absolute; top: 1px; right: 1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #09090f; }
.pcard-rank { font-family: 'Share Tech Mono', monospace; font-size: .62rem; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 3px; }
.pcard.rank-1 .pcard-rank { color: #f5c842; }
.pcard.rank-2 .pcard-rank { color: #94a3b8; }
.pcard.rank-3 .pcard-rank { color: #cd7f32; }
.pcard-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.1rem; letter-spacing: .5px; color: #fff; padding: 0 .9rem; word-break: break-word; margin-bottom: .4rem; }
.pcard-points { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 1.8rem; letter-spacing: 1px; line-height: 1; }
.pcard.rank-1 .pcard-points { color: #f5c842; }
.pcard.rank-2 .pcard-points { color: #94a3b8; }
.pcard.rank-3 .pcard-points { color: #cd7f32; }
.pcard-points-label { font-family: 'Share Tech Mono', monospace; font-size: .6rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.2); margin-bottom: .8rem; }
.pcard-chips { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; padding: 0 .7rem; margin-bottom: .6rem; }
.pcard-chip { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); border-radius: 4px; padding: 2px 7px; font-family: 'Share Tech Mono', monospace; font-size: .66rem; color: rgba(255,255,255,.4); white-space: nowrap; }
.pcard-seen { font-size: .7rem; color: rgba(255,255,255,.25); }
.pcard-seen.is-online { color: #4ade80; font-weight: 700; }

/* ═══ FOOTER ═══ */
.footer { background: rgba(255,255,255,.02); border-top: 1px solid rgba(255,255,255,.06); padding: 2rem 0; margin-top: 5rem; position: relative; z-index: 1; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-text { font-size: .78rem; color: rgba(255,255,255,.2); font-family: 'Share Tech Mono', monospace; }
.footer-text strong { color: rgba(255,255,255,.5); }
.footer-links a:hover { color: #fff !important; text-decoration: underline; }

/* ═══ LOADING OVERLAY ═══ */
#loadingOverlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(9,9,15,.92);
  backdrop-filter: blur(16px);
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  pointer-events: auto; opacity: 0;
  transition: opacity .25s ease;
}
#loadingOverlay.active { display: flex; opacity: 1; }

/* ── Style 1: SPINNER ── */
.loading-spinner {
  width: 38px; height: 38px;
  border: 3px solid rgba(255,255,255,.08);
  border-top-color: rgba(255,255,255,.6);
  border-radius: 50%;
  animation: spinLoader .7s linear infinite;
}
@keyframes spinLoader { to { transform: rotate(360deg); } }

/* ── Style 2: PULSE ── */
.loading-pulse-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 1.3rem;
  letter-spacing: 4px; text-transform: uppercase;
  color: rgba(255,255,255,.35);
  animation: pulseLoader 1.8s ease-in-out infinite;
}
@keyframes pulseLoader {
  0%, 100% { opacity: .3; transform: scale(.97); }
  50%      { opacity: 1;  transform: scale(1); }
}
.loading-pulse-sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: .65rem; letter-spacing: 3px;
  color: rgba(255,255,255,.15);
  text-transform: uppercase;
}

/* ── Style 3: BARS (equalizer) ── */
.loading-bars { display: flex; align-items: end; gap: 4px; height: 32px; }
.loading-bar {
  width: 4px; border-radius: 2px;
  background: rgba(255,255,255,.5);
  animation: barBounce 1.2s ease-in-out infinite;
}
.loading-bar:nth-child(1) { animation-delay: 0s;    height: 12px; }
.loading-bar:nth-child(2) { animation-delay: .15s;   height: 20px; }
.loading-bar:nth-child(3) { animation-delay: .3s;    height: 28px; }
.loading-bar:nth-child(4) { animation-delay: .45s;   height: 20px; }
.loading-bar:nth-child(5) { animation-delay: .6s;    height: 12px; }
@keyframes barBounce {
  0%, 100% { transform: scaleY(.5); opacity: .3; }
  50%      { transform: scaleY(1);   opacity: 1;  }
}
.loading-bars-sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: .6rem; letter-spacing: 2px;
  color: rgba(255,255,255,.15);
  text-transform: uppercase;
  margin-top: .25rem;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) { .awards-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .container { padding: 0 1rem; } .navbar-inner { padding: 0 1rem; } }
