:root {
    /* Base Colors */
    --bg-main:      #0a0c10;
    --bg-card:      #12151f;
    --bg-row:       #0f1219;
    --cyan:         #00f2fe;
    --text-white:   #ffffff;
    --text-muted:   #4a5568;
    --border:       #1a2035;

    /* Tiers */
    --ht1: #ffaa00; --ht2: #ff5555; --lt2: #ffaaaa;
    --ht3: #ff55ff; --lt3: #ffaaff; --ht4: #55ffff;
    --lt4: #5555ff; --ht5: #55ff55; --lt5: #aaaaaa;

    /* Podium Colors */
    --gold:   #ffd700;
    --silver: #c0c0c0;
    --bronze: #cd7f32;

    /* Global Transitions */
    --transition-fast: 0.2s ease;
}

* {
    box-sizing: border-box; 
    margin: 0; 
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body { 
    background: var(--bg-main); 
    color: var(--text-white); 
    overflow-x: hidden; 
    padding-bottom: 80px; 
    text-rendering: optimizeLegibility;
}

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
    background: rgba(8, 10, 15, 0.95);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    position: sticky; 
    top: 0; 
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.nav-container { 
    max-width: 1100px; 
    margin: 0 auto; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 16px; 
}
.logo { 
    font-size: 20px; 
    font-weight: 900; 
    letter-spacing: -0.3px; 
    user-select: none;
}
.logo-accent { color: var(--cyan); }
.nav-links a { 
    color: var(--text-muted); 
    text-decoration: none; 
    margin-right: 20px; 
    font-weight: 600; 
    font-size: 13px; 
    transition: color var(--transition-fast); 
}
.nav-links a.active, .nav-links a:hover { color: var(--text-white); }
.search-container { position: relative; }
.search-icon { 
    position: absolute; 
    left: 11px; 
    top: 50%; 
    transform: translateY(-50%); 
    color: var(--text-muted); 
    font-size: 12px; 
    pointer-events: none;
}
#playerSearch {
    background: #0c0e16; 
    border: 1px solid var(--border);
    color: var(--text-white); 
    padding: 8px 12px 8px 32px;
    border-radius: 8px; 
    outline: none; 
    width: 200px; 
    font-size: 13px;
    transition: border-color var(--transition-fast);
}
#playerSearch:focus { border-color: rgba(255,255,255,0.15); }

/* ── Sub bar ─────────────────────────────────────────────── */
.sub-bar { 
    max-width: 1100px; 
    margin: 14px auto 0; 
    padding: 0 24px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.info-btn {
    background: rgba(255, 255, 255, .04); 
    border: 1px solid var(--border);
    color: var(--text-muted); 
    padding: 7px 14px; 
    border-radius: 8px;
    cursor: pointer; 
    font-size: 13px; 
    font-weight: 600;
    transition: all var(--transition-fast); 
    display: flex; 
    align-items: center; 
    gap: 6px;
}
.info-btn:hover { color: var(--text-white); border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); }
.ip-container {
    background: #0c0f18; 
    border: 1px solid var(--border);
    padding: 7px 14px; 
    border-radius: 8px;
    display: flex; 
    align-items: center; 
    gap: 8px;
}
.ip-label { color: var(--text-muted); font-size: 10px; font-weight: 700; letter-spacing: .5px; }
.ip-value { color: var(--cyan); font-weight: 700; font-size: 13px; }
.copy-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; transition: color var(--transition-fast); }
.copy-btn:hover { color: var(--text-white); }

/* ── Tabs ─────────────────────────────────────────────────── */
.tabs-container { max-width: 1100px; margin: 20px auto 0; padding: 0 24px; }
.tabs-wrapper {
    display: flex; 
    gap: 4px; 
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
    scrollbar-width: none; /* Firefox */
}
.tabs-wrapper::-webkit-scrollbar { display: none; } /* Safari/Chrome */

.tab-item {
    background: none; 
    border: none; 
    color: var(--text-muted);
    padding: 10px 14px 12px; 
    cursor: pointer; 
    font-weight: 600;
    font-size: 11px; 
    display: flex; 
    flex-direction: column;
    align-items: center; 
    gap: 7px; 
    transition: all var(--transition-fast);
    border-bottom: 2px solid transparent; 
    min-width: 68px;
    white-space: nowrap;
}
.tab-item:hover { color: var(--text-white); }
.tab-item.active { color: var(--text-white); border-bottom-color: var(--cyan); }
.icon-box { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.icon-box .mc-icon { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }

/* Filter Optimization */
.icon-box .mc-icon.tint-red  { filter: sepia(1) saturate(5) hue-rotate(-50deg) brightness(.9); }
.icon-box .mc-icon.tint-cyan { filter: sepia(1) saturate(5) hue-rotate(140deg) brightness(1.05); }
.icon-box .trophy-icon { font-size: 16px; color: var(--gold); }
.tab-item .icon-box { filter: grayscale(60%) opacity(40%); transition: filter var(--transition-fast); }
.tab-item.active .icon-box, .tab-item:hover .icon-box { filter: none; }

/* ── Leaderboard ─────────────────────────────────────────── */
.leaderboard-container { max-width: 1100px; margin: 16px auto; padding: 0 24px; }
.leaderboard-list { display: flex; flex-direction: column; gap: 10px; }

.lb-card {
    display: flex;
    align-items: center;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-row);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    position: relative;
    min-height: 76px;
}
.lb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,.5);
}

/* Borders for Top 3 */
.lb-card.pos-gold   { border-color: rgba(255,215,0,.45); }
.lb-card.pos-silver { border-color: rgba(192,192,192,.35); }
.lb-card.pos-bronze { border-color: rgba(205,127,50,.35); }

/* FIXED: Shimmer Sweep Content Bug Fix */
@keyframes sweep {
    0%   { transform: translateX(-200%); }
    100% { transform: translateX(200%); }
}
.pos-gold::after, .pos-silver::after, .pos-bronze::after {
    content: ""; /* FIXED: Empty string needed to render */
    position: absolute; 
    inset: 0; 
    pointer-events: none; 
    z-index: 3;
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.06) 50%, transparent 65%);
    animation: sweep 4s linear infinite;
}
.pos-silver::after { animation-duration: 5s; }
.pos-bronze::after { animation-duration: 6s; }

/* Left Section Shape */
.lb-left {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    min-width: 80px;
    align-self: stretch;
    position: relative;
    z-index: 1;
    padding: 0 16px 0 8px;
    flex-shrink: 0;
    overflow: hidden;
}
.lb-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.04);
    clip-path: polygon(0 0, 75% 0, 100% 100%, 0 100%);
    z-index: 0;
}
.pos-gold   .lb-left::before { background: linear-gradient(160deg, #f0c030, #c8900a); }
.pos-silver .lb-left::before { background: linear-gradient(160deg, #d0d0d0, #909090); }
.pos-bronze .lb-left::before { background: linear-gradient(160deg, #d49050, #9a5a20); }

.lb-pos {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    color: rgba(255,255,255,.25);
    position: relative;
    z-index: 2;
}
.pos-gold .lb-pos, .pos-silver .lb-pos, .pos-bronze .lb-pos { color: rgba(255,255,255,.9); }

.lb-avatar {
    width: 48px; 
    height: 48px;
    image-rendering: pixelated;
    border-radius: 6px;
    z-index: 2;
    flex-shrink: 0;
    margin-left: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Right panel */
.lb-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 18px;
    gap: 7px;
    min-width: 0;
    z-index: 1;
}
.lb-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lb-name { 
    font-size: 16px; 
    font-weight: 800; 
    letter-spacing: -.2px; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}
.lb-rank-row { display: flex; align-items: center; gap: 6px; }
.lb-rank-icon { width: 15px; height: 15px; image-rendering: pixelated; flex-shrink: 0; }
.lb-rank-name { font-size: 13px; font-weight: 700; }
.lb-points { font-size: 12px; color: var(--text-muted); }

.region-badge { padding: 3px 8px; border-radius: 5px; font-weight: 700; font-size: 10px; color: #fff; flex-shrink: 0; }
.tier-inline  { font-size: 10px; }

/* ── Badges ─────────────────────────────────────────── */
.badge { 
    padding: 3px 7px; 
    border-radius: 4px; 
    font-size: 10px; 
    font-weight: 800; 
    color: #05070a; 
    text-align: center; 
    min-width: 36px; 
    display: inline-block;
}
.badge.ht1 { background: var(--ht1); }
.badge.ht2 { background: var(--ht2); }
.badge.lt2 { background: var(--lt2); }
.badge.ht3 { background: var(--ht3); }
.badge.lt3 { background: var(--lt3); }
.badge.ht4 { background: var(--ht4); }
.badge.lt4 { background: var(--lt4); color: #fff; }
.badge.ht5 { background: var(--ht5); }
.badge.lt5 { background: var(--lt5); color: #fff; }
.badge.none { background: rgba(255,255,255,.04); color: #4a5568; font-weight: 500; }

/* ── Modals Shared ───────────────────────────────────────── */
.modal-overlay {
    position: fixed; 
    inset: 0;
    background: rgba(4,5,10,.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex; 
    align-items: center; 
    justify-content: center;
    opacity: 0; 
    pointer-events: none;
    transition: opacity .22s ease;
    z-index: 1000; 
    padding: 16px;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-card {
    background: var(--bg-card);
    width: 100%; 
    max-width: 420px;
    border-radius: 20px; 
    padding: 28px;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,.8);
    border: 1px solid var(--border);
    transform: scale(.92) translateY(10px);
    transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.modal-overlay.open .modal-card { transform: scale(1) translateY(0); }
.close-modal {
    position: absolute; top: 14px; right: 16px;
    background: rgba(255,255,255,.06); border: none;
    color: var(--text-muted); font-size: 20px; cursor: pointer;
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-fast);
}
.close-modal:hover { background: rgba(255,255,255,.12); color: var(--text-white); }

/* Profile Modals */
.modal-header { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 22px; }
.modal-avatar { width: 90px; image-rendering: pixelated; margin-bottom: 12px; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5)); }
.modal-header h2 { font-size: 22px; font-weight: 800; }
.modal-rank-row { display: flex; align-items: center; gap: 7px; margin-top: 8px; }
.modal-rank-icon { width: 20px; height: 20px; image-rendering: pixelated; }
.modal-rank-name { font-weight: 700; font-size: 15px; }
.modal-points { font-size: 12px; color: var(--text-muted); background: rgba(255,255,255,.05); padding: 3px 10px; border-radius: 20px; }
.modal-region-tag { margin-top: 10px; font-size: 11px; color: var(--text-muted); background: rgba(255,255,255,.04); padding: 5px 14px; border-radius: 20px; font-weight: 600; }
.modal-tiers-section h3 { font-size: 10px; color: var(--text-muted); margin-bottom: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* FIXED: Grid auto-fit for flexible column wrapping */
.modal-tiers-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(75px, 1fr)); 
    gap: 8px; 
}
.modal-tier-item {
    display: flex; 
    flex-direction: column; 
    align-items: center;
    gap: 5px; 
    background: rgba(255,255,255,.03);
    padding: 10px 6px; 
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.04);
    transition: background var(--transition-fast), border-color var(--transition-fast);
}
.modal-tier-item:hover { background: rgba(255,255,255,.06); border-color: rgba(0,242,254,0.2); }
.modal-tier-cat { font-size: 8px; color: var(--text-muted); text-align: center; letter-spacing: .3px; }
.no-tiers-msg { grid-column: 1/-1; text-align: center; color: var(--text-muted); font-size: 13px; padding: 20px 0; }

/* Info Modals */
.info-modal-card { max-height: 85vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.info-tabs-row { display: flex; background: rgba(255,255,255,.05); border-radius: 10px; padding: 4px; margin-bottom: 22px; }
.info-tab { flex: 1; background: none; border: none; color: var(--text-muted); padding: 9px; border-radius: 7px; font-weight: 600; font-size: 14px; cursor: pointer; transition: all var(--transition-fast); }
.info-tab.active { background: var(--bg-main); color: var(--text-white); }
.info-content h3 { font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.info-content h3 u { text-decoration-color: var(--cyan); }
.info-ranks-list { display: flex; flex-direction: column; gap: 14px; }
.info-rank-item { display: flex; align-items: center; gap: 14px; }
.info-rank-icon { width: 28px; height: 28px; image-rendering: pixelated; flex-shrink: 0; }
.info-rank-name { font-weight: 700; font-size: 15px; }
.info-rank-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.info-points-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.info-tier-row { border-left: 3px solid; padding-left: 14px; }
.info-tier-title { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.info-tier-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.info-pts-badge { padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--text-muted); background: rgba(255,255,255,.06); }
.info-pts-badge.ht-badge { background: rgba(255,170,0,.15); color: #ffaa00; }
.info-pts-badge.lt-badge { background: rgba(255,255,255,.07); color: #ccc; }
.info-note { font-size: 11px; color: var(--text-muted); line-height: 1.6; margin-top: 4px; }

/* ── Responsive Mobile Optimizations ─────────────────────── */
@media (max-width: 600px) {
    .nav-container { flex-direction: column; align-items: stretch; gap: 12px; }
    .search-container { width: 100%; }
    #playerSearch { width: 100%; }
    .sub-bar { flex-direction: column; gap: 10px; align-items: stretch; }
    .info-btn { justify-content: center; }
    .ip-container { justify-content: center; }
    .lb-left { width: 70px; min-width: 70px; }
    .lb-avatar { width: 40px; height: 40px; margin-left: 6px; }
    .lb-pos { font-size: 18px; }
    .lb-name { font-size: 14px; }
    .modal-card { padding: 20px; }
    }

/* ══════════════════════════════════════════════════
   SPLASH SCREEN
══════════════════════════════════════════════════ */
#splashScreen {
    position: fixed;
    inset: 0;
    background: #0a0c10;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#splashScreen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    user-select: none;
}
.splash-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    image-rendering: pixelated;
    animation: splashPulse 1.4s ease-in-out infinite alternate;
}
@keyframes splashPulse {
    from { transform: scale(0.93); filter: drop-shadow(0 0 10px rgba(0,242,254,0.25)); }
    to   { transform: scale(1.06); filter: drop-shadow(0 0 30px rgba(0,242,254,0.75)); }
}
.splash-title {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin-top: 4px;
}
.splash-accent { color: #00f2fe; }
.splash-tagline {
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: -6px;
}
.splash-bar-wrap {
    width: 180px;
    height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 20px;
}
.splash-bar-fill {
    height: 100%;
    width: 55%;
    background: linear-gradient(90deg, transparent, #00f2fe, transparent);
    border-radius: 3px;
    animation: splashBar 1.4s ease-in-out infinite;
}
@keyframes splashBar {
    0%   { transform: translateX(-150%); }
    100% { transform: translateX(320%); }
}

/* ══════════════════════════════════════════════════
   CARD SLIDE-IN ANIMATION
══════════════════════════════════════════════════ */
@keyframes cardSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.lb-card {
    opacity: 0;
    animation: cardSlideIn 0.38s ease forwards;
}

/* ══════════════════════════════════════════════════
   NAVBAR - NEW (logo + discord + gear)
══════════════════════════════════════════════════ */
.nav-logo {
    width: 30px; height: 30px;
    object-fit: contain; image-rendering: pixelated;
    vertical-align: middle; margin-right: 8px;
}
.logo { cursor: pointer; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-discord-btn {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(88,101,242,0.1);
    border: 1px solid rgba(88,101,242,0.25);
    color: #7289da; font-size: 17px;
    text-decoration: none; transition: all 0.2s;
}
.nav-discord-btn:hover { background: rgba(88,101,242,0.22); color: #fff; }

.nav-gear-btn {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-muted); font-size: 16px;
    cursor: pointer; transition: all 0.2s;
}
.nav-gear-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-white); }

/* ══════════════════════════════════════════════════
   MENU OVERLAY + SIDE MENU
══════════════════════════════════════════════════ */
.menu-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    z-index: 500; opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }

.side-menu {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: 275px; max-width: 85vw;
    background: #0c0e17;
    border-right: 1px solid var(--border);
    z-index: 600;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    display: flex; flex-direction: column; overflow: hidden;
}
.side-menu.open { transform: translateX(0); }

.side-menu-header {
    display: flex; align-items: center; gap: 10px;
    padding: 18px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
    flex-shrink: 0;
}
.side-menu-logo {
    width: 34px; height: 34px;
    object-fit: contain; image-rendering: pixelated;
}
.side-menu-title { font-size: 16px; font-weight: 900; flex: 1; }
.side-menu-close {
    background: rgba(255,255,255,0.06); border: none;
    color: var(--text-muted); width: 30px; height: 30px;
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; transition: all 0.2s; flex-shrink: 0;
}
.side-menu-close:hover { background: rgba(255,255,255,0.14); color: var(--text-white); }

.side-menu-nav { padding: 12px 10px; flex: 1; overflow-y: auto; }

.menu-nav-item {
    display: flex; align-items: center; gap: 13px;
    width: 100%; padding: 13px 12px;
    background: none; border: 1px solid transparent;
    color: var(--text-muted); cursor: pointer;
    border-radius: 12px; margin-bottom: 6px;
    font-weight: 600; font-size: 15px;
    transition: all 0.2s ease; text-align: left;
}
.menu-nav-item:hover { background: rgba(255,255,255,0.05); color: var(--text-white); }
.menu-nav-item.active {
    background: rgba(0,242,254,0.07);
    color: var(--cyan);
    border-color: rgba(0,242,254,0.18);
}
.menu-nav-icon {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.05);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0; transition: all 0.2s;
}
.menu-nav-item.active .menu-nav-icon { background: rgba(0,242,254,0.12); color: var(--cyan); }
.menu-nav-label { flex: 1; }
.menu-nav-arrow { font-size: 10px; opacity: 0.25; }
.menu-nav-item.active .menu-nav-arrow { opacity: 0.5; color: var(--cyan); }

/* ══════════════════════════════════════════════════
   PAGE SECTIONS
══════════════════════════════════════════════════ */
.page-section.hidden { display: none; }
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.page-section { animation: pageFadeIn 0.3s ease; }

/* ══════════════════════════════════════════════════
   HOME HERO
══════════════════════════════════════════════════ */
.home-hero {
    display: flex; flex-direction: column; align-items: center;
    padding: 52px 24px 28px; text-align: center;
}
.home-hero-logo {
    width: 80px; height: 80px;
    object-fit: contain; image-rendering: pixelated;
    margin-bottom: 14px;
    animation: heroGlow 3s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    from { filter: drop-shadow(0 0 12px rgba(0,242,254,0.2)); transform: scale(0.97); }
    to   { filter: drop-shadow(0 0 28px rgba(0,242,254,0.55)); transform: scale(1.04); }
}
.home-hero-title { font-size: 32px; font-weight: 900; letter-spacing: -1px; }
.home-hero-sub {
    font-size: 11px; font-weight: 700;
    color: var(--text-muted); letter-spacing: 4px;
    text-transform: uppercase; margin-top: 10px;
}

/* ══════════════════════════════════════════════════
   PODIUM
══════════════════════════════════════════════════ */
.podium-section { padding: 0 20px 80px; max-width: 700px; margin: 0 auto; }

.top-players-heading {
    text-align: center; font-size: 17px; font-weight: 900;
    color: var(--gold); margin-bottom: 40px;
    text-shadow: 0 0 16px rgba(255,215,0,0.3);
    letter-spacing: 3px; text-transform: uppercase;
}

.podium-wrap {
    display: flex; align-items: flex-end;
    justify-content: center; gap: 10px;
}

.podium-slot {
    display: flex; flex-direction: column; align-items: center;
    flex: 1; max-width: 200px;
}

.podium-info {
    display: flex; flex-direction: column; align-items: center;
    position: relative;
}

.podium-crown {
    font-size: 26px; margin-bottom: 2px;
    animation: crownFloat 1.8s ease-in-out infinite;
}
@keyframes crownFloat {
    0%,100% { transform: translateY(0) rotate(-3deg); }
    50%      { transform: translateY(-5px) rotate(3deg); }
}

.podium-skin {
    width: 90px; image-rendering: pixelated;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.55));
    display: block;
}
.podium-slot.gold .podium-skin {
    width: 110px;
    animation: goldFloat 2.5s ease-in-out infinite;
    filter: drop-shadow(0 6px 24px rgba(255,215,0,0.22));
}
.podium-slot.silver .podium-skin { filter: drop-shadow(0 6px 14px rgba(192,192,192,0.18)); }
.podium-slot.bronze .podium-skin { filter: drop-shadow(0 6px 14px rgba(205,127,50,0.18)); }
@keyframes goldFloat {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
}

.podium-player-name {
    font-size: 12px; font-weight: 800; margin-top: 8px;
    text-align: center; max-width: 110px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.podium-slot.gold   .podium-player-name { color: var(--gold); font-size: 13px; }
.podium-slot.silver .podium-player-name { color: #d0d0d0; }
.podium-slot.bronze .podium-player-name { color: #cd7f32; }
.podium-player-pts { font-size: 10px; color: var(--text-muted); margin-top: 3px; }

.podium-block {
    width: 100%; border-radius: 10px 10px 0 0;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden; margin-top: 10px;
}
.podium-slot.gold .podium-block {
    height: 130px;
    background: linear-gradient(160deg, #ffe066, #d4a900, #a07800);
    box-shadow: 0 0 36px rgba(255,215,0,0.3), inset 0 1px 0 rgba(255,255,255,0.22);
}
.podium-slot.silver .podium-block {
    height: 90px;
    background: linear-gradient(160deg, #e0e0e0, #b0b0b0, #787878);
    box-shadow: 0 0 18px rgba(192,192,192,0.18), inset 0 1px 0 rgba(255,255,255,0.18);
}
.podium-slot.bronze .podium-block {
    height: 65px;
    background: linear-gradient(160deg, #e09040, #b06020, #7a4010);
    box-shadow: 0 0 14px rgba(205,127,50,0.18), inset 0 1px 0 rgba(255,255,255,0.12);
}
.podium-pos-num {
    font-size: 36px; font-weight: 900;
    color: rgba(0,0,0,0.22); line-height: 1; user-select: none;
}
.podium-slot.gold .podium-pos-num { font-size: 50px; }
/* Gold shimmer sweep */
.podium-slot.gold .podium-block::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    animation: sweep 2.2s linear infinite;
}
.podium-loading {
    color: var(--text-muted); font-size: 14px;
    padding: 40px; text-align: center; width: 100%;
}

/* Sub-bar search group */
.sub-bar-right { display: flex; align-items: center; gap: 10px; }

/* ══════════════════════════════════════════════════
   SPLASH SCREEN
══════════════════════════════════════════════════ */
#splashScreen {
    position: fixed; inset: 0; background: #0a0c10;
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#splashScreen.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-content {
    display: flex; flex-direction: column; align-items: center;
    gap: 12px; user-select: none;
}
.splash-logo {
    width: 110px; height: 110px; object-fit: contain; image-rendering: pixelated;
    animation: splashPulse 1.4s ease-in-out infinite alternate;
}
@keyframes splashPulse {
    from { transform: scale(0.93); filter: drop-shadow(0 0 10px rgba(0,242,254,0.25)); }
    to   { transform: scale(1.06); filter: drop-shadow(0 0 30px rgba(0,242,254,0.75)); }
}
.splash-title { font-size: 28px; font-weight: 900; letter-spacing: -0.5px; color: #fff; margin-top: 4px; }
.splash-accent { color: #00f2fe; }
.splash-tagline {
    font-size: 12px; font-weight: 600; color: #4a5568;
    letter-spacing: 3px; text-transform: uppercase; margin-top: -6px;
}
.splash-bar-wrap {
    width: 180px; height: 3px;
    background: rgba(255,255,255,0.08); border-radius: 3px;
    overflow: hidden; margin-top: 20px;
}
.splash-bar-fill {
    height: 100%; width: 55%;
    background: linear-gradient(90deg, transparent, #00f2fe, transparent);
    border-radius: 3px; animation: splashBar 1.4s ease-in-out infinite;
}
@keyframes splashBar {
    0%   { transform: translateX(-150%); }
    100% { transform: translateX(320%); }
}

/* ══════════════════════════════════════════════════
   CARD SLIDE-IN
══════════════════════════════════════════════════ */
@keyframes cardSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.lb-card { opacity: 0; animation: cardSlideIn 0.38s ease forwards; }

/* ══════════════════════════════════════════════════
   COMING SOON (SERVER PAGE)
══════════════════════════════════════════════════ */
.coming-soon-wrap {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    min-height: 72vh; padding: 40px 24px;
    text-align: center; position: relative; overflow: hidden;
}


    5%   { opacity: 1; }
    95%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
.cs-logo {
    width: 70px; height: 70px; object-fit: contain; image-rendering: pixelated;
    margin-bottom: 32px;
    animation: csFade 2s ease-in-out infinite alternate;
}
@keyframes csFade {
    from { opacity: 0.4; filter: drop-shadow(0 0 8px rgba(0,242,254,0.1)); }
    to   { opacity: 0.75; filter: drop-shadow(0 0 18px rgba(0,242,254,0.35)); }
}
.cs-text {
    font-size: 36px; font-weight: 900;
    color: var(--cyan); letter-spacing: 8px; text-transform: uppercase;
    
}

    87% { text-shadow: -3px 0 #ff0044, 3px 0 #00f2fe; transform: translateX(-2px); }
    89% { text-shadow: 3px 0 #ff0044, -3px 0 #00f2fe; transform: translateX(2px); }
    91% { text-shadow: 0 0 18px rgba(0,242,254,0.45); transform: none; }
}
.cs-sub { font-size: 14px; color: var(--text-muted); margin-top: 18px; line-height: 1.7; }
.cs-dots { display: flex; gap: 8px; margin-top: 28px; }
.cs-dots span {
    width: 8px; height: 8px; background: var(--cyan); border-radius: 50%;
    opacity: 0.3; animation: dotPulse 1.4s ease-in-out infinite;
}
.cs-dots span:nth-child(2) { animation-delay: 0.2s; }
.cs-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPulse {
    0%,100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
}

/* ══════════════════════════════════════════════════
   MOBILE OVERRIDES
══════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .nav-container { flex-direction: row; align-items: center; gap: 0; }
    .sub-bar { flex-direction: column; gap: 10px; align-items: stretch; }
    .sub-bar-right { flex-direction: column; align-items: stretch; gap: 8px; }
    .search-container { width: 100%; }
    #playerSearch { width: 100%; }
    .info-btn { justify-content: center; }
    .ip-container { justify-content: center; }
    .lb-left { width: 70px; min-width: 70px; }
    .lb-avatar { width: 40px; height: 40px; margin-left: 6px; }
    .lb-pos { font-size: 18px; }
    .lb-name { font-size: 14px; }
    .modal-card { padding: 20px; }
    .podium-skin { width: 68px !important; }
    .podium-slot.gold .podium-skin { width: 84px !important; }
    .home-hero-title { font-size: 26px; }
    .cs-text { font-size: 22px; letter-spacing: 5px; }
    .podium-slot.gold .podium-block { height: 100px; }
    .podium-slot.silver .podium-block { height: 70px; }
    .podium-slot.bronze .podium-block { height: 52px; }
}

/* ══════════════════════════════════════════════════
   MINECRAFT FONT
══════════════════════════════════════════════════ */
.mc-font { font-family: 'Press Start 2P', monospace; }

/* ══════════════════════════════════════════════════
   SERVER PAGE
══════════════════════════════════════════════════ */
.servers-page {
    max-width: 800px; margin: 0 auto;
    padding: 40px 20px 80px;
}
.servers-heading {
    font-size: 11px; font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 20px;
}

/* ── Server Card ── */
.srv-card {
    border-radius: 14px; overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 16px;
}
.srv-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}
.srv-banner {
    background-size: cover; background-position: center;
    position: relative; min-height: 110px;
}
.srv-banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(8,10,15,0.88) 0%, rgba(8,10,15,0.55) 60%, rgba(8,10,15,0.3) 100%);
}
.srv-card-body {
    position: relative; z-index: 1;
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 18px 20px; gap: 14px;
}
.srv-left { display: flex; align-items: center; gap: 14px; }
.srv-logo {
    width: 64px; height: 64px;
    border-radius: 10px; object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.srv-info { display: flex; flex-direction: column; gap: 5px; }
.srv-name {
    font-size: 14px; color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    line-height: 1.4;
}
.srv-type { font-size: 11px; color: var(--text-muted); }
.srv-status-row { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.srv-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #888; flex-shrink: 0;
    transition: background 0.3s;
}
.srv-dot.online  { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.srv-dot.offline { background: #ef4444; }
.srv-online-count { font-size: 12px; font-weight: 700; color: #22c55e; }
.srv-online-label { font-size: 11px; color: var(--text-muted); }

.srv-play-btn {
    font-size: 10px; padding: 10px 22px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none; border-radius: 8px; color: #fff;
    cursor: pointer; flex-shrink: 0;
    transition: all 0.2s; letter-spacing: 1px;
    box-shadow: 0 4px 14px rgba(34,197,94,0.3);
}
.srv-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(34,197,94,0.5);
}
.srv-play-btn:active {
    transform: scale(0.95);
}
@keyframes playPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.18); }
    70%  { transform: scale(0.93); }
    100% { transform: scale(1); }
}
.srv-play-btn.popping { animation: playPop 0.35s ease forwards; }

/* ── Server Modal ── */
.srv-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease;
}
.srv-modal-overlay.open { opacity: 1; pointer-events: auto; }

.srv-modal {
    background: #0d0f18;
    border: 1px solid var(--border);
    border-radius: 18px; overflow: hidden;
    width: 100%; max-width: 440px;
    position: relative;
    transform: scale(0.88) translateY(12px);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}
.srv-modal-overlay.open .srv-modal {
    transform: scale(1) translateY(0);
}
.srv-modal-close {
    position: absolute; top: 12px; right: 14px;
    background: rgba(255,255,255,0.08); border: none;
    color: var(--text-muted); width: 30px; height: 30px;
    border-radius: 50%; font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 10; transition: all 0.2s;
}
.srv-modal-close:hover { background: rgba(255,255,255,0.15); color: #fff; }

.srv-modal-banner {
    height: 100px;
    background-size: cover; background-position: center;
}
.srv-modal-body { padding: 20px; }
.srv-modal-header {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 20px; margin-top: -32px; position: relative; z-index: 1;
}
.srv-modal-logo {
    width: 60px; height: 60px; border-radius: 10px;
    border: 3px solid #0d0f18; object-fit: cover; flex-shrink: 0;
}
.srv-modal-name {
    font-size: 12px; color: #fff; margin-top: 12px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    line-height: 1.5;
}
.srv-modal-motd {
    font-size: 11px; color: var(--text-muted); margin-top: 4px;
    line-height: 1.6;
}
.srv-modal-details {
    display: flex; flex-direction: column; gap: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px; padding: 14px;
}
.srv-detail-row {
    display: flex; align-items: center; gap: 10px;
}
.srv-detail-label {
    font-size: 10px; font-weight: 700; letter-spacing: 1px;
    color: var(--text-muted); text-transform: uppercase;
    min-width: 70px;
}
.srv-detail-val {
    font-size: 12px; font-weight: 600; color: var(--text-white);
    flex: 1;
}
.srv-copy-btn {
    background: none; border: none; color: var(--text-muted);
    cursor: pointer; padding: 4px; transition: color 0.2s; font-size: 13px;
}
.srv-copy-btn:hover { color: var(--cyan); }

/* Mobile */
@media (max-width: 600px) {
    .srv-name { font-size: 10px; }
    .srv-play-btn { font-size: 8px; padding: 8px 14px; }
    .srv-card-body { padding: 14px; gap: 10px; }
}

/* ══════════════════════════════════════════════════
   REMOVE CYAN OUTLINE + PRESS EFFECT
══════════════════════════════════════════════════ */
* { -webkit-tap-highlight-color: transparent !important; }
button:focus, a:focus,
button:focus-visible, a:focus-visible { outline: none !important; box-shadow: none !important; }
button:active { transform: scale(0.95); transition: transform 0.1s ease; }
.lb-card:active { transform: scale(0.98) !important; }
.tab-item:active { transform: scale(0.94); }

/* ══════════════════════════════════════════════════
   HOME STATS CARDS
══════════════════════════════════════════════════ */
.home-stats {
    display: flex; gap: 10px;
    padding: 0 20px 28px;
    max-width: 700px; margin: 0 auto;
}
.stat-card {
    flex: 1; background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 14px; padding: 16px 14px;
}
.stat-number {
    font-size: 22px; font-weight: 900;
    color: #fff; margin-bottom: 6px; line-height: 1;
}
.stat-label {
    font-size: 9px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--text-muted);
}
.stat-live-row {
    display: flex; align-items: center;
    gap: 8px; margin-bottom: 6px;
}
.stat-live-dot {
    width: 9px; height: 9px;
    background: #22c55e; border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: livePulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes livePulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:0.5; transform:scale(0.8); }
}
.stat-live-text {
    font-size: 17px; font-weight: 900;
    color: #22c55e; letter-spacing: 1px;
}
@media(max-width:600px) {
    .home-stats { gap: 8px; padding: 0 14px 22px; }
    .stat-number { font-size: 18px; }
    .stat-live-text { font-size: 14px; }
    .stat-card { padding: 14px 10px; }
}

/* ══════════════════════════════════════════════════
   CT TIER TAGGER MOD BUTTON
══════════════════════════════════════════════════ */
.mod-btn-wrap {
    display: flex; justify-content: center;
    padding: 0 20px 36px;
}
.mod-btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 26px;
    background: linear-gradient(135deg, #b45309, #f59e0b, #fbbf24, #f59e0b, #b45309);
    background-size: 300% 100%;
    border-radius: 12px;
    color: #000; font-weight: 800; font-size: 13px;
    text-decoration: none; letter-spacing: 0.3px;
    box-shadow: 0 4px 22px rgba(245,158,11,0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: goldShift 3s ease-in-out infinite;
}
@keyframes goldShift {
    0%,100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
.mod-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(245,158,11,0.6);
}
.mod-btn:active { transform: scale(0.96); }
/* Glint sweep */
.mod-btn::after {
    content: "";
    position: absolute; top: 0; left: -80%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
    animation: glintSweep 2.2s ease-in-out infinite;
}
@keyframes glintSweep {
    0%      { left: -80%; }
    40%,100% { left: 140%; }
}
.mod-btn-sub {
    font-size: 9px; font-weight: 700;
    background: rgba(0,0,0,0.2); border-radius: 4px;
    padding: 2px 6px; letter-spacing: 1px; text-transform: uppercase;
}

/* ══════════════════════════════════════════════════
   COREMC LOGO NEXT TO IP
══════════════════════════════════════════════════ */
.ip-with-logo {
    display: flex; align-items: center; gap: 8px;
}
.coremc-logo {
    height: 36px; width: 36px;
    object-fit: contain; flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}
@media(max-width:600px) {
    .ip-with-logo { justify-content: center; }
    .coremc-logo { height: 30px; width: 30px; }
}

/* ══════════════════════════════════════════════════
   HOME PAGE - FIXED NO-SCROLL LAYOUT
══════════════════════════════════════════════════ */
#page-home {
    height: calc(100vh - 58px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 0;
}

/* Tighten hero */
.home-hero {
    padding: 16px 20px 10px !important;
}
.home-hero-logo {
    width: 52px !important; height: 52px !important;
    margin-bottom: 8px !important;
}
.home-hero-title { font-size: 22px !important; }
.home-hero-sub   { margin-top: 5px !important; }

/* Tighten stats */
.home-stats {
    padding: 0 20px 12px !important;
}
.stat-card { padding: 12px 12px !important; }
.stat-number { font-size: 18px !important; margin-bottom: 4px !important; }
.stat-live-text { font-size: 14px !important; }

/* Tighten mod button */
.mod-btn-wrap { padding: 0 20px 14px !important; }
.mod-btn { padding: 10px 20px !important; font-size: 12px !important; }

/* Tighten podium section */
.podium-section {
    padding: 0 20px 0 !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.top-players-heading { margin-bottom: 16px !important; }

/* Shorter podium platforms */
.podium-slot.gold   .podium-block { height: 80px !important; }
.podium-slot.silver .podium-block { height: 55px !important; }
.podium-slot.bronze .podium-block { height: 40px !important; }
.podium-slot.gold   .podium-pos-num { font-size: 32px !important; }
.podium-pos-num { font-size: 24px !important; }

/* Smaller skins */
.podium-skin { width: 70px !important; }
.podium-slot.gold .podium-skin { width: 86px !important; }
.podium-player-name { font-size: 11px !important; margin-top: 5px !important; }

/* Mobile: allow scroll on small screens */
@media (max-width: 600px) and (max-height: 700px) {
    #page-home { height: auto; overflow: auto; padding-bottom: 40px; }
}

/* ══ BUTTON OUTLINE FIX - FINAL ══ */
*,*::before,*::after { -webkit-tap-highlight-color: transparent !important; }
:focus { outline: none !important; box-shadow: none !important; }
:focus-visible { outline: none !important; box-shadow: none !important; }
button, a, input, select, textarea {
    outline: none !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
}
button:focus, button:focus-visible,
a:focus, a:focus-visible { outline: none !important; box-shadow: none !important; }

/* Professional press effect */
.info-btn:active, .copy-btn:active, .close-modal:active,
.nav-gear-btn:active, .nav-discord-btn:active,
.side-menu-close:active, .menu-nav-item:active,
.tab-item:active, .srv-play-btn:active,
.info-tab:active { filter: brightness(0.82); transform: scale(0.94); }
.lb-card:active  { filter: brightness(0.9);  transform: scale(0.99) !important; }

/* ══ CUSTOM MENU ICONS ══ */
.menu-custom-icon {
    width: 20px; height: 20px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: brightness(0.7);
    transition: filter 0.2s;
}
.menu-nav-item.active .menu-custom-icon,
.menu-nav-item:hover  .menu-custom-icon { filter: brightness(1); }

/* ══ NUKE ALL CYAN OUTLINES - FINAL ══ */
html { -webkit-tap-highlight-color: rgba(0,0,0,0) !important; }
*, *::before, *::after {
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
    outline: none !important;
    box-shadow: none !important;
}
a, button, input, select, textarea,
a:focus, a:focus-visible, a:active,
button:focus, button:focus-visible, button:active {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
}
/* Remove cyan fill when menu item clicked */
.menu-nav-item:focus, .menu-nav-item:active {
    background: rgba(255,255,255,0.04) !important;
    border-color: transparent !important;
    color: var(--text-white) !important;
}
.menu-nav-item.active:focus, .menu-nav-item.active:active {
    background: rgba(0,242,254,0.07) !important;
    border-color: rgba(0,242,254,0.18) !important;
    color: var(--cyan) !important;
}
/* Search box cyan outline fix */
.search-container:focus-within-disabled {
    border-color: rgba(0,242,254,0.3) !important;
    box-shadow: none !important;
}
#playerSearch:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* ══ MENU ICONS - BIGGER + NO BLUR + NO CYAN ACTIVE ══ */
.menu-custom-icon {
    width: 26px !important;
    height: 26px !important;
    object-fit: contain !important;
    image-rendering: auto !important;
    filter: brightness(0.65) !important;
    transition: filter 0.2s, transform 0.2s !important;
}
.menu-nav-item:hover  .menu-custom-icon { 
    filter: brightness(1) !important; 
    transform: scale(1.12) !important;
}
.menu-nav-item.active .menu-custom-icon { 
    filter: brightness(1) !important;
}

/* Remove ALL cyan from menu - use white/subtle instead */
.menu-nav-item.active {
    background: rgba(255,255,255,0.07) !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.12) !important;
}
.menu-nav-item.active .menu-nav-label { color: #ffffff !important; }
.menu-nav-item.active .menu-nav-arrow { color: rgba(255,255,255,0.4) !important; }
.menu-nav-item.active .menu-nav-icon {
    background: rgba(255,255,255,0.1) !important;
}

/* Press animation - scale bounce */
.menu-nav-item:active {
    transform: scale(0.96) !important;
    background: rgba(255,255,255,0.05) !important;
    border-color: transparent !important;
}

/* Bigger icon box */
.menu-nav-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
}

/* ══ GRASS BLOCK - BIGGER ══ */
.menu-nav-item[href="/servers"] .menu-custom-icon {
    width: 34px !important;
    height: 34px !important;
}

/* ══ FIX BLURRY ICONS ══ */

/* Gamemode tab icons - crisp pixel rendering */
.mc-icon {
    image-rendering: pixelated !important;
    image-rendering: crisp-edges !important;
}

/* CT navbar logo - crisp on all screens */
.nav-logo {
    image-rendering: pixelated !important;
    image-rendering: crisp-edges !important;
    width: 32px !important;
    height: 32px !important;
}

/* Overall trophy icon in tabs */
.trophy-icon { font-size: 18px !important; }

/* Tab icon box sharper */
.tab-item .icon-box img {
    image-rendering: pixelated !important;
    image-rendering: crisp-edges !important;
}

/* ══════════════════════════════════════════════════
   GUIDE PAGE
══════════════════════════════════════════════════ */
.guide-page {
    max-width: 720px; margin: 0 auto;
    padding: 32px 16px 80px;
}
.guide-hero {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; padding: 24px 0 32px;
}
.guide-hero-icon {
    width: 60px; height: 60px;
    object-fit: contain; image-rendering: pixelated;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 12px rgba(0,242,254,0.3));
}
.guide-hero-title {
    font-size: 26px; font-weight: 900; color: #fff;
    margin-bottom: 8px;
}
.guide-hero-sub {
    font-size: 12px; color: var(--text-muted);
    letter-spacing: 1px;
}

/* ── Mode Cards ── */
.guide-modes-list { display: flex; flex-direction: column; gap: 10px; }

.guide-mode-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden;
    transition: border-color 0.2s;
}
.guide-mode-card.open { border-color: rgba(0,242,254,0.2); }

.guide-mode-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; cursor: pointer; gap: 12px;
    transition: background 0.2s;
}
.guide-mode-header:hover { background: rgba(255,255,255,0.04); }

.guide-mode-left { display: flex; align-items: center; gap: 14px; flex: 1; }
.guide-mode-emoji { font-size: 26px; flex-shrink: 0; }
.guide-mode-name { font-size: 15px; font-weight: 800; color: #fff; }
.guide-mode-desc { font-size: 11px; color: var(--text-muted); margin-top: 3px; line-height: 1.5; }

.guide-mode-arrow {
    color: var(--text-muted); font-size: 12px; flex-shrink: 0;
    transition: transform 0.3s ease;
}
.guide-mode-card.open .guide-mode-arrow { transform: rotate(90deg); color: var(--cyan); }

.guide-mode-body {
    display: none; padding: 0 18px 18px; border-top: 1px solid var(--border);
}
.guide-mode-card.open .guide-mode-body { display: block; }

/* Loadout */
.guide-loadout {
    background: rgba(255,255,255,0.03);
    border-radius: 10px; padding: 12px 14px;
    margin: 14px 0;
}
.guide-loadout-title {
    font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px;
}
.guide-loadout ul { margin: 0; padding-left: 16px; }
.guide-loadout li { font-size: 12px; color: var(--text-white); line-height: 2; }

/* Tier Cards */
.guide-tiers { display: flex; flex-direction: column; gap: 8px; }

.guide-tier-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 10px; overflow: hidden; cursor: pointer;
}
.guide-tier-header {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
}
.guide-tier-name { font-size: 13px; font-weight: 900; min-width: 46px; }
.tier-badge-label {
    font-size: 9px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; color: #ffd700;
    background: rgba(255,215,0,0.1); border-radius: 4px;
    padding: 2px 7px; border: 1px solid rgba(255,215,0,0.2);
}
.guide-tier-arrow {
    margin-left: auto; color: var(--text-muted); font-size: 11px;
    transition: transform 0.25s;
}
.guide-tier-card.open .guide-tier-arrow { transform: rotate(180deg); }

.guide-tier-body {
    display: none; padding: 0 14px 14px;
    border-top: 1px solid var(--border);
}
.guide-tier-card.open .guide-tier-body { display: block; }
.guide-tier-body ol { margin: 10px 0 0; padding-left: 18px; }
.guide-tier-body li { font-size: 12px; color: var(--text-white); line-height: 1.9; }
.guide-tier-body b { color: var(--cyan); }

.alt-note {
    font-size: 11px; color: var(--text-muted);
    background: rgba(255,255,255,0.04); border-radius: 8px;
    padding: 10px 12px; margin-top: 10px; line-height: 1.7;
}
.alt-note b { color: #fff; }

/* LT3 scores */
.lt3-scores { display: flex; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.lt3-score {
    flex: 1; min-width: 80px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    border-radius: 10px; padding: 10px; text-align: center;
}
.lt3-val { display: block; font-size: 14px; font-weight: 900; color: var(--cyan); }
.lt3-label { display: block; font-size: 10px; color: var(--text-muted); margin-top: 4px; }

.guide-footer-note {
    font-size: 10px; color: var(--text-muted);
    text-align: center; margin-top: 16px;
    padding-top: 12px; border-top: 1px solid var(--border);
    letter-spacing: 0.3px;
}

@media(max-width: 600px) {
    .guide-mode-emoji { font-size: 20px; }
    .guide-mode-name { font-size: 13px; }
    .guide-mode-desc { font-size: 10px; }
}

/* ── Guide MC Icons ── */
.guide-mode-mc-icon {
    width: 40px; height: 40px;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

/* ══ GUIDE ANIMATIONS ══ */
.guide-mode-body {
    display: none;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease !important;
}
.guide-mode-card.open .guide-mode-body {
    display: block;
    opacity: 1;
}
.guide-tier-body {
    display: none;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease !important;
}
.guide-tier-card.open .guide-tier-body {
    display: block;
    opacity: 1;
}
.guide-mode-card {
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s !important;
}
.guide-mode-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.guide-mode-header { transition: background 0.2s !important; }

/* ══ FINAL OUTLINE KILL - ALL ELEMENTS ══ */
* { -webkit-tap-highlight-color: rgba(0,0,0,0) !important; outline: none !important; }
input, input:focus, input:active,
button, button:focus, button:focus-visible, button:active,
a, a:focus, a:focus-visible, a:active,
div, div:focus, span:focus,
.search-container, .search-container:focus-within,
#playerSearch, #playerSearch:focus,
.info-btn, .info-btn:focus,
.copy-btn, .copy-btn:focus,
.nav-gear-btn, .nav-gear-btn:focus,
.nav-discord-btn, .nav-discord-btn:focus,
.tab-item, .tab-item:focus,
.lb-card, .lb-card:focus,
.menu-nav-item, .menu-nav-item:focus,
.modal-card, .close-modal, .close-modal:focus,
.srv-play-btn, .srv-play-btn:focus,
.guide-mode-card, .guide-mode-header, .guide-tier-card {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
}

/* ══ SEARCH BOX - NO CYAN BORDER ══ */


#playerSearch:focus { border-color: transparent !important; outline: none !important; box-shadow: none !important; }

/* Info button - no outline */
.info-btn, .info-btn:focus, .info-btn:active, .info-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
}

/* ══ SEARCH BOX FINAL FIX ══ */
.search-container {
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 16px !important;
    transition: border-color 0.2s ease, background 0.2s ease !important;
    outline: none !important;
    box-shadow: none !important;
}
.search-container:focus-within {
    border-color: rgba(255,255,255,0.22) !important;
    background: rgba(255,255,255,0.06) !important;
    box-shadow: none !important;
    outline: none !important;
}
#playerSearch {
    border-radius: 16px !important;
    outline: none !important;
    box-shadow: none !important;
}
#playerSearch:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

/* ══ INFO BTN FINAL - NO CYAN ANYWHERE ══ */
.info-btn:focus, .info-btn:focus-visible, .info-btn:active {
    outline: none !important;
    box-shadow: none !important;
    border-color: rgba(255,255,255,0.2) !important;
}

/* ══ TAB ICONS BIGGER + CRISP ══ */
.mc-icon {
    width: 28px !important;
    height: 28px !important;
    image-rendering: pixelated !important;
    image-rendering: crisp-edges !important;
    -ms-interpolation-mode: nearest-neighbor !important;
}
.tab-item .icon-box {
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.tab-item .icon-box img {
    width: 28px !important;
    height: 28px !important;
    image-rendering: pixelated !important;
    image-rendering: crisp-edges !important;
}

/* ══ CT LOGO - ALL INSTANCES CRISP ══ */
.nav-logo,
.splash-logo,
.home-hero-logo,
.side-menu-logo,
.cs-logo,
.guide-hero-icon {
    image-rendering: pixelated !important;
    image-rendering: crisp-edges !important;
    -ms-interpolation-mode: nearest-neighbor !important;
    transform: translateZ(0) !important;
    will-change: transform !important;
}
.nav-logo {
    width: 34px !important;
    height: 34px !important;
}

/* ══ TAB ICONS - GLOW + POP ANIMATION ══ */

/* Always glowing subtly */
.tab-item .icon-box img,
.tab-item .icon-box .mc-icon {
    image-rendering: auto !important;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.25)) brightness(0.8) !important;
    transition: filter 0.2s ease, transform 0.2s ease !important;
    width: 26px !important;
    height: 26px !important;
    object-fit: contain !important;
}

/* Active tab - bright glow */
.tab-item.active .icon-box img,
.tab-item.active .icon-box .mc-icon,
.tab-item.active .trophy-icon {
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.6)) brightness(1.2) !important;
}

/* Trophy icon glow */
.tab-item .trophy-icon {
    filter: drop-shadow(0 0 4px rgba(255,200,0,0.4)) !important;
    transition: filter 0.2s ease !important;
    font-size: 22px !important;
}
.tab-item.active .trophy-icon {
    filter: drop-shadow(0 0 10px rgba(255,200,0,0.8)) !important;
}

/* Pop animation on press */
@keyframes iconPop {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.35); }
    65%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}
.tab-item:active .icon-box img,
.tab-item:active .icon-box .mc-icon,
.tab-item:active .trophy-icon {
    animation: iconPop 0.3s ease forwards !important;
}

/* Fix distorted icons - keep aspect ratio */
.tab-item .icon-box {
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
}

/* ══ PROFILE MODAL TIER ICONS - BIGGER + CRISP ══ */
.modal-tier-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 8px !important;
}
.modal-tier-item .icon-box {
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.modal-tier-item .mc-icon {
    width: 38px !important;
    height: 38px !important;
    image-rendering: auto !important;
    object-fit: contain !important;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2)) brightness(1.1) !important;
}
.modal-tier-item .icon-box img {
    width: 38px !important;
    height: 38px !important;
    image-rendering: auto !important;
    object-fit: contain !important;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2)) brightness(1.1) !important;
}
.modal-tiers-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)) !important;
    gap: 8px !important;
}

/* ══ PROFILE MODAL ICONS - SLIGHTLY SMALLER ══ */
.modal-tier-item .mc-icon,
.modal-tier-item .icon-box img {
    width: 30px !important;
    height: 30px !important;
}
.modal-tier-item .icon-box {
    width: 36px !important;
    height: 36px !important;
}
