/*
 * GST Landing Page - Styles
 * Matches GSTDashboard Larkon Bootstrap 5 dark theme.
 * Font: Hanken Grotesk  |  Primary: #DC3545
 */

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --gst-font: 'Hanken Grotesk', sans-serif;
    --primary: #DC3545;
    --primary-rgb: 220, 53, 69;
    --primary-hover: #b02a37;
    --bg: #1a1d26;
    --bg-alt: #222736;
    --bg-card: #272d3b;
    --bg-surface: #2a3040;
    --text: #e2e5ec;
    --text-muted: #8a94a6;
    --border: rgba(255,255,255,0.06);
    --border-light: rgba(255,255,255,0.1);
    --shadow: 0 2px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --max-w: 1200px;
    --nav-h: 4rem;
}

html { scroll-behavior: smooth; color-scheme: dark; }
body {
    font-family: var(--gst-font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: #ea868f; }
img { max-width: 100%; height: auto; display: block; }

::selection { background: rgba(var(--primary-rgb),0.4); color: #fff; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--gst-font); font-weight: 600; font-size: 0.95rem;
    padding: 0.65rem 1.75rem; border: none; border-radius: var(--radius);
    cursor: pointer; transition: all .2s; text-decoration: none;
}
.btn-primary {
    background: var(--primary); color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); }
.btn-soft {
    background: rgba(var(--primary-rgb),0.12); color: var(--primary);
}
.btn-soft:hover { background: var(--primary); color: #fff; }
.btn-outline {
    background: transparent; color: var(--text); border: 1px solid var(--border-light);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.85rem; }

/* ===== Navbar ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--nav-h); background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}
.navbar .container {
    display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.navbar-brand {
    font-weight: 700; font-size: 1.15rem; color: var(--text);
    display: flex; align-items: center; gap: 0.5rem;
}
.navbar-brand:hover { color: var(--text); }
.navbar-brand svg { color: var(--primary); }
.navbar-nav { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.navbar-nav a {
    padding: 0.5rem 0.85rem; border-radius: var(--radius);
    font-weight: 500; font-size: 0.9rem; color: var(--text-muted);
    transition: color .15s, background .15s;
}
.navbar-nav a:hover, .navbar-nav a.active { color: var(--primary); background: rgba(var(--primary-rgb),0.08); }
.navbar-actions { display: flex; align-items: center; gap: 0.5rem; }
.navbar-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 0.5rem; }

/* ===== Hero ===== */
.hero {
    position: relative; min-height: 85vh; display: flex; align-items: center;
    overflow: hidden; padding-top: var(--nav-h);
    background: var(--bg-alt);
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
    width: 100%; height: 100%; object-fit: cover; opacity: 0.15;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 680px; padding: 4rem 0; }
.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800;
    line-height: 1.15; margin-bottom: 1.25rem;
}
.hero-content h1 em { font-style: normal; color: var(--primary); }
.hero-content p {
    font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2rem;
    max-width: 540px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ===== Section ===== */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
    font-size: clamp(1.35rem, 4vw, 1.75rem); font-weight: 700; margin-bottom: 0.5rem; text-align: center;
    line-height: 1.3;
}
.section-desc {
    color: var(--text-muted); text-align: center; max-width: 600px;
    margin: 0 auto 3rem; font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.65; padding: 0 0.5rem;
}

/* ===== Feature Cards (services) ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img {
    height: 180px; overflow: hidden; background: var(--bg);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.25rem; }
.card-body h3 { font-size: 1.1rem; font-weight: 600; color: var(--primary); margin-bottom: 0.5rem; }
.card-body p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; margin-bottom: 1rem; }

/* ===== Icon Features Grid ===== */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem; text-align: center;
}
.feature-item { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.feature-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--bg-card); border: 3px solid rgba(var(--primary-rgb),0.25);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 1.75rem;
    box-shadow: var(--shadow);
}
.feature-label { font-weight: 600; font-size: 0.95rem; }
.feature-badge {
    display: inline-block; background: rgba(var(--primary-rgb),0.85); color: #fff;
    font-size: 0.7rem; font-weight: 600; padding: 0.15rem 0.6rem;
    border-radius: 0.25rem; margin-top: 0.25rem;
}

/* ===== Pricing Section ===== */
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; max-width: 900px; margin: 0 auto;
}
.pricing-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2rem; text-align: center;
    transition: transform .2s, box-shadow .2s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
    border-color: var(--primary); position: relative;
}
.pricing-card.featured::before {
    content: 'Most Popular'; position: absolute; top: -0.75rem; left: 50%;
    transform: translateX(-50%); background: var(--primary); color: #fff;
    font-size: 0.75rem; font-weight: 600; padding: 0.2rem 1rem;
    border-radius: 1rem;
}
.pricing-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.pricing-card .price {
    font-size: 2.5rem; font-weight: 800; color: var(--primary); margin: 1rem 0;
}
.pricing-card .price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.pricing-card ul {
    list-style: none; text-align: left; margin: 1.5rem 0; padding: 0;
}
.pricing-card ul li {
    padding: 0.5rem 0; border-bottom: 1px solid var(--border);
    color: var(--text-muted); font-size: 0.9rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.pricing-card ul li::before {
    content: '?'; color: var(--primary); font-weight: 700;
}

/* ===== Stats Strip ===== */
.stats-strip {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem; text-align: center; padding: 2rem 0;
}
.stat-item h3 { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-item p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.25rem; }

/* ===== Anti-Cheat section ===== */
.anticheat-sell {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}
.anticheat-sell-main {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}
.anticheat-sell-main > p {
    font-size: clamp(0.92rem, 1.5vw, 1rem);
    color: var(--text-muted);
    line-height: 1.7;
}
.anticheat-benefit {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: box-shadow .2s;
}
.anticheat-benefit:hover {
    box-shadow: var(--shadow-lg);
}
.anticheat-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb),0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.anticheat-benefit strong {
    display: block;
    color: var(--text);
    font-size: clamp(0.95rem, 1.5vw, 1rem);
    margin-bottom: 0.35rem;
}
.anticheat-benefit p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0;
}
.anticheat-guarantee {
    background: linear-gradient(135deg, rgba(var(--primary-rgb),0.12), rgba(var(--primary-rgb),0.04));
    border: 1px solid rgba(var(--primary-rgb),0.35);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    margin-top: 0.5rem;
}
.anticheat-guarantee strong {
    display: block;
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: clamp(1rem, 2vw, 1.1rem);
}
.anticheat-guarantee p {
    margin: 0;
    color: var(--text);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    font-weight: 600;
    line-height: 1.65;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.anticheat-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* ===== CTA Banner ===== */
.cta-banner {
    background: linear-gradient(135deg, rgba(var(--primary-rgb),0.15), rgba(var(--primary-rgb),0.05));
    border: 1px solid rgba(var(--primary-rgb),0.2);
    border-radius: var(--radius-lg); padding: 3rem; text-align: center;
    margin: 2rem 0;
}
.cta-banner h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.75rem; }
.cta-banner p { color: var(--text-muted); margin-bottom: 1.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ===== Footer ===== */
.footer {
    background: var(--bg-alt); border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem; margin-bottom: 2rem;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.75rem; max-width: 280px; line-height: 1.6; }
.footer-col h4 {
    font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
    color: var(--primary); margin-bottom: 1rem; letter-spacing: 0.03em;
}
.footer-col a {
    display: block; color: var(--text-muted); font-size: 0.9rem;
    padding: 0.3rem 0; transition: color .15s;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
    border-top: 1px solid var(--border); padding-top: 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--text-muted); font-size: 0.85rem;
}
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(var(--primary-rgb),0.1); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.footer-social a:hover { background: var(--primary); color: #fff; }

/* ===== Page Header (for sub-pages) ===== */
.page-header {
    padding: 6rem 0 3rem; text-align: center;
    margin-top: var(--nav-h);
    background: var(--bg-alt);
}
.page-header h1 { font-size: 2.25rem; font-weight: 800; margin-bottom: 0.5rem; }
.page-header p { color: var(--text-muted); font-size: 1.05rem; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .navbar-nav { display: none; }
    .navbar-toggle { display: block; }
    .section { padding: 3rem 0; }
    .section-desc { margin-bottom: 2rem; }
    /* Anti-cheat: stack icon above, keep text left-aligned for readability on mobile */
    .anticheat-benefit {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 1.25rem;
        gap: 1rem;
    }
    .anticheat-sell-main { gap: 1.5rem; }
    .anticheat-guarantee {
        padding: 1.25rem 1rem;
        text-align: left;
    }
    .anticheat-guarantee strong { text-align: left; }
    .anticheat-guarantee p { text-align: left; }
    .anticheat-stats {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    .navbar-nav.open {
        display: flex; flex-direction: column;
        position: fixed; top: var(--nav-h); right: 0; bottom: 0;
        width: 260px; background: var(--bg-alt);
        border-left: 1px solid var(--border);
        padding: 1rem; z-index: 99;
        box-shadow: -4px 0 24px rgba(0,0,0,0.3);
    }
    .hero-content h1 { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    /* Stack two-column feature detail cards */
    .card[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
    .card[style*="grid-template-columns:1fr 1fr"] .card-img { min-height: 180px !important; }
    /* Stack 3-col game cards */
    .cards-grid[style*="repeat(3,1fr)"] { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .section { padding: 2.5rem 0; }
    .section-title { font-size: 1.25rem; }
    .anticheat-benefit { padding: 1rem; }
    .anticheat-icon { width: 42px; height: 42px; font-size: 1.25rem; }
    .anticheat-guarantee { padding: 1rem; }
    .anticheat-stats { grid-template-columns: 1fr; gap: 0.75rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .cards-grid { grid-template-columns: 1fr; }
    .cards-grid[style*="repeat(3,1fr)"] { grid-template-columns: 1fr !important; }
    .pricing-grid { grid-template-columns: 1fr; }
}

/* ===== Server Tracker ===== */
.server-controls {
    display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
    margin-bottom: 1rem;
}
.server-search {
    flex: 1; min-width: 220px;
    padding: 0.6rem 1rem; border-radius: var(--radius);
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text); font-family: var(--gst-font); font-size: 0.9rem;
    outline: none; transition: border-color .15s;
}
.server-search:focus { border-color: var(--primary); }
.server-search::placeholder { color: var(--text-muted); }

.game-pills { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.game-pill {
    padding: 0.4rem 1rem; border-radius: 2rem;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-muted); font-size: 0.82rem; font-weight: 600;
    cursor: pointer; transition: all .15s; font-family: var(--gst-font);
}
.game-pill:hover, .game-pill.active {
    background: rgba(var(--primary-rgb),0.12); color: var(--primary);
    border-color: rgba(var(--primary-rgb),0.3);
}

/* Players left (live feed) – scrollable box */
.players-left-feed {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    min-height: 80px;
    position: relative;
    overflow: hidden;
}
.players-left-feed .loading-spinner {
    padding: 1.5rem;
}
.players-left-list {
    padding: 0.75rem 1rem;
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
/* Scrollable box scrollbar */
.players-left-list::-webkit-scrollbar {
    width: 8px;
}
.players-left-list::-webkit-scrollbar-track {
    background: var(--bg);
    border-radius: 4px;
}
.players-left-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
.players-left-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
.players-left-item {
    padding: 0.5rem 0.6rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    line-height: 1.5;
}
.players-left-item:last-child { border-bottom: none; }
.players-left-name {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}
.players-left-name:hover { color: var(--primary); }
.players-left-joined {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.players-left-joined a {
    color: var(--primary);
    text-decoration: none;
}
.players-left-joined a:hover { text-decoration: underline; }
.players-left-offline {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-style: italic;
}
.players-left-empty {
    padding: 1.5rem;
    margin: 0;
    font-size: 0.9rem;
}

/* Player profile link (server + player pages) */
.player-bm-link,
.player-bm-link-inline {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    margin-left: 0.35rem;
    text-decoration: none;
}
.player-bm-link:hover,
.player-bm-link-inline:hover { text-decoration: underline; }
.player-bm-link {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 0.25rem;
    background: rgba(var(--primary-rgb),0.12);
    border: 1px solid rgba(var(--primary-rgb),0.25);
}
.player-bm-link:hover { background: rgba(var(--primary-rgb),0.2); }

/* Session source badge (GST tracker vs profile data) */
.session-source {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 0.2rem;
}
.session-source-gst {
    background: rgba(var(--primary-rgb),0.15);
    color: var(--primary);
}
.session-source-bm {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

/* Server Table */
.server-table-wrap {
    overflow-x: auto; border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.server-table {
    width: 100%; border-collapse: collapse; font-size: 0.9rem;
}
.server-table thead {
    background: var(--bg-surface); position: sticky; top: 0; z-index: 1;
}
.server-table th {
    padding: 0.75rem 1rem; text-align: left;
    color: var(--text-muted); font-weight: 600; font-size: 0.78rem;
    text-transform: uppercase; letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border); white-space: nowrap;
}
.server-table th.sortable { cursor: pointer; user-select: none; }
.server-table th.sortable:hover { color: var(--primary); }
.server-table td {
    padding: 0.65rem 1rem; border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.server-table tbody tr {
    background: var(--bg-card); transition: background .1s;
}
.server-table tbody tr:hover { background: var(--bg-surface); }
.server-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.012); }
.server-table tbody tr:nth-child(even):hover { background: var(--bg-surface); }

.rank-cell { color: var(--text-muted); font-weight: 600; width: 50px; text-align: center; }
.name-cell { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.name-cell a { color: var(--text); font-weight: 500; text-decoration: none; }
.name-cell a:hover { color: var(--primary); }

.status-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
}
.status-online { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.5); }
.status-offline { background: #6b7280; }

.players-cell { min-width: 130px; }
.player-count { font-weight: 600; font-size: 0.85rem; }
.player-bar {
    width: 100%; height: 4px; background: rgba(255,255,255,0.06);
    border-radius: 2px; margin-top: 4px; overflow: hidden;
}
.player-bar-fill {
    height: 100%; background: var(--primary); border-radius: 2px;
    transition: width .3s;
}
.player-delta {
    display: inline-block; font-size: 0.72rem; font-weight: 700;
    margin-left: 6px; padding: 1px 5px; border-radius: 3px;
    animation: deltaFade 2s ease-out forwards;
}
.delta-up { color: #22c55e; background: rgba(34,197,94,0.12); }
.delta-down { color: #ef4444; background: rgba(239,68,68,0.12); }
@keyframes deltaFade {
    0% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; }
}

/* Pagination */
.pagination {
    display: flex; justify-content: center; align-items: center; gap: 0.4rem;
    margin: 2rem 0 0;
}
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; border-radius: var(--radius);
    font-size: 0.85rem; font-weight: 600; padding: 0 0.5rem;
    border: 1px solid var(--border); color: var(--text-muted);
    transition: all .15s; text-decoration: none;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Server Profile */
.server-hero {
    padding: 2rem 0; margin-top: var(--nav-h);
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
}
.server-hero h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; word-break: break-word; }
.server-hero .meta {
    color: var(--text-muted); font-size: 0.9rem;
    display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap;
}
.server-hero .badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.2rem 0.75rem; border-radius: 2rem;
    font-size: 0.75rem; font-weight: 600;
}
.badge-online { background: rgba(34,197,94,0.12); color: #22c55e; }
.badge-offline { background: rgba(107,114,128,0.15); color: #6b7280; }
.badge-game { background: rgba(var(--primary-rgb),0.12); color: var(--primary); }

.server-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
}
.server-stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.25rem; text-align: center;
}
.server-stat-card .value { font-size: 1.75rem; font-weight: 800; color: var(--primary); }
.server-stat-card .label { color: var(--text-muted); font-size: 0.82rem; margin-top: 0.25rem; }

.chart-container {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.5rem;
    height: 400px; position: relative;
}

.server-details-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
}
.detail-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.7rem 1rem; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius);
}
.detail-item .detail-label { color: var(--text-muted); font-size: 0.85rem; }
.detail-item .detail-value { font-weight: 600; font-size: 0.88rem; }

/* Loading & Empty */
.loading-spinner { display: flex; justify-content: center; padding: 3rem; }
.spinner {
    width: 28px; height: 28px;
    border: 3px solid var(--border); border-top-color: var(--primary);
    border-radius: 50%; animation: gst-spin 0.7s linear infinite;
}
@keyframes gst-spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 3rem 2rem; color: var(--text-muted); }
.empty-state iconify-icon { font-size: 2.5rem; margin-bottom: 0.75rem; display: block; opacity: 0.5; }

/* Premium blur overlay */
.premium-blur-wrap {
    position: relative; overflow: hidden;
    border-radius: var(--radius-lg); border: 1px solid var(--border);
    background: var(--bg-card);
}
.premium-blur-content {
    padding: 1.5rem;
    filter: blur(6px); -webkit-filter: blur(6px);
    pointer-events: none; user-select: none;
}
.premium-blur-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(18,18,22,0.55);
    backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
    z-index: 2;
}
.premium-blur-cta {
    text-align: center; padding: 2rem; max-width: 380px;
}
.premium-blur-cta h3 {
    font-size: 1.15rem; font-weight: 700; margin: 0.75rem 0 0.5rem;
}
.premium-blur-cta p {
    color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1.25rem; line-height: 1.5;
}
.premium-blur-cta .btn { pointer-events: all; }

/* Player profile clickable row */
.player-row-link { cursor: pointer; transition: background 0.15s; }
.player-row-link:hover { background: rgba(var(--primary-rgb),0.06) !important; }

/* Responsive ? Server Tracker */
@media (max-width: 768px) {
    .server-table th:nth-child(4),
    .server-table td:nth-child(4) { display: none; }
    .name-cell { max-width: 200px; }
    .server-stats { grid-template-columns: repeat(2, 1fr); }
    .chart-container { height: 280px; }
    .premium-blur-content > div { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
    .server-table th:nth-child(6),
    .server-table td:nth-child(6) { display: none; }
    .name-cell { max-width: 150px; font-size: 0.82rem; }
    .server-stats { grid-template-columns: 1fr 1fr; }
    .server-details-grid { grid-template-columns: 1fr; }
}
