/* ═══════════════════════════════════════════
   GameTracker Premium Design — templuxo.com
   ═══════════════════════════════════════════ */

/* ─── Hero Premium ─── */
.hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.04);
    background: linear-gradient(160deg, rgba(14,20,32,0.95), rgba(17,25,39,0.98));
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0,212,255,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(109,91,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0,201,123,0.03) 0%, transparent 40%);
    z-index: 0;
    animation: heroGlow 8s ease-in-out infinite alternate;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
}
.hero > * { position: relative; z-index: 1; }

@keyframes heroGlow {
    0% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

/* ─── Glassmorphism Cards ─── */
.glass-card {
    background: rgba(17,25,39,0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.card {
    border: 1px solid rgba(255,255,255,0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.sidebar-card {
    border: 1px solid rgba(255,255,255,0.04);
    background: rgba(17,25,39,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ─── Server Table Premium ─── */
.server-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.server-table tbody tr:hover {
    background: rgba(0,212,255,0.03);
    transform: translateX(2px);
}

.server-name {
    transition: color 0.2s;
    position: relative;
}
.server-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}
.server-name:hover::after { width: 100%; }

/* ─── Stat Cards Premium ─── */
.hero-stat {
    position: relative;
    padding: 12px 24px;
}
.hero-stat::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.1), transparent);
}
.hero-stat:last-child::after { display: none; }

.hero-stat-val {
    font-size: 28px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Badges ─── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.4;
}
.badge [data-lucide] { width: 9px; height: 9px; }
.badge svg { width: 9px; height: 9px; flex-shrink: 0; }
.badge-verified {
    background: rgba(0,201,123,0.1);
    border: 1px solid rgba(0,201,123,0.2);
    color: var(--success);
}
.badge-popular {
    background: rgba(255,176,32,0.1);
    border: 1px solid rgba(255,176,32,0.2);
    color: var(--accent4);
}
.badge-new {
    background: rgba(0,212,255,0.1);
    border: 1px solid rgba(0,212,255,0.2);
    color: var(--accent);
}
.badge-hot {
    background: rgba(255,71,87,0.1);
    border: 1px solid rgba(255,71,87,0.2);
    color: var(--danger);
}

/* ─── Number Counter Animation ─── */
.count-up {
    display: inline-block;
}

/* ─── Server Detail Hero ─── */
.server-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 28px 32px;
    margin-bottom: 20px;
}
.server-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14,20,32,0.92), rgba(17,25,39,0.96));
    z-index: 1;
}
.server-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(30px) brightness(0.4);
    transform: scale(1.2);
    z-index: 0;
}
.server-hero > *:not(.server-hero-bg) { position: relative; z-index: 2; }

/* ─── Game Card Hover Premium ─── */
.game-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.game-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--game-color, var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}
.game-card:hover::before { opacity: 1; }
.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* ─── Game List Card Premium ─── */
.game-list-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.game-list-card:hover {
    transform: translateY(-2px) translateX(4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25), inset 0 0 0 1px rgba(var(--accent-rgb),0.1);
}

/* ─── Widget Preview ─── */
.widget-preview {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.widget-preview::before {
    content: 'PREVIEW';
    position: absolute;
    top: 8px; right: 8px;
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ─── Smooth scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* ─── Toast Premium ─── */
.toast {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* ─── Players Bar Glow ─── */
.players-bar-fill {
    box-shadow: 0 0 8px rgba(0,201,123,0.3);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Section Divider ─── */
.section { position: relative; }
.section + .section::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    margin-bottom: 24px;
}

/* ─── Focus Glow ─── */
.form-control:focus {
    box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}

/* ─── Loading Skeleton ─── */
.skeleton {
    background: linear-gradient(90deg, rgba(28,42,66,0.3) 25%, rgba(28,42,66,0.5) 50%, rgba(28,42,66,0.3) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

/* ─── Language Switcher ─── */
.lang-switch {
    display: flex;
    gap: 2px;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    padding: 2px;
    margin-right: 8px;
}
.lang-btn {
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
    background: rgba(0,212,255,0.1);
    color: var(--accent);
}

/* ─── Star Rating ─── */
.star-label { transition: opacity 0.15s; }
.star-label:hover, .star-label:hover ~ .star-label { opacity: 1 !important; }

/* ─── Review Card Hover ─── */
#reviews > div > div:hover {
    background: rgba(0,0,0,0.12);
}

/* ─── Country Code Badge ─── */
.country-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 1px 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 3px;
    font-family: var(--font-mono);
}

/* ─── Premium Server Cards ─── */
.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.premium-card {
    position: relative;
    border-radius: 12px;
    padding: 2px;
    text-decoration: none;
    color: var(--text);
    animation: fadeInUp 0.5s ease-out backwards;
    transition: transform 0.3s, box-shadow 0.3s;
}
.premium-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    color: var(--text);
}

.premium-card-glow {
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: conic-gradient(from var(--angle, 0deg), var(--gc, #ffb020), #6d5bff, #00d4ff, #00c97b, var(--gc, #ffb020));
    opacity: 0.4;
    filter: blur(8px);
    z-index: 0;
    animation: premiumRotate 4s linear infinite;
}
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@keyframes premiumRotate {
    to { --angle: 360deg; }
}

.premium-card-border {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: conic-gradient(from var(--angle, 0deg), var(--gc, #ffb020), #6d5bff, #00d4ff, #00c97b, var(--gc, #ffb020));
    opacity: 0.6;
    z-index: 1;
    animation: premiumRotate 4s linear infinite;
}

.premium-card-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(145deg, #0e1420, #141c2c);
    border-radius: 11px;
    padding: 18px;
    overflow: hidden;
}
/* Game image bg for premium cards */
.premium-card-content::before {
    content: '';
    position: absolute; inset: 0;
    background-image: var(--server-bg, none);
    background-size: cover; background-position: center top;
    opacity: 0.08;
    transition: opacity 0.3s;
    border-radius: 11px;
}
.premium-card:hover .premium-card-content::before { opacity: 0.16; }
.premium-card-content > * { position: relative; z-index: 1; }

.premium-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.premium-card-name {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.premium-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.premium-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ─── Owner Role Colors ─── */
.owner-admin {
    color: #ff4757;
    font-weight: 700;
}
.owner-premium {
    background: linear-gradient(135deg, #ffb020, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}
.owner-user {
    color: var(--text-secondary);
}

/* responsive rules moved to responsive.css */

/* ─── Hero Carousel ─── */
.hero-carousel {
    position: relative;
    margin: 20px 0 8px;
    height: 44px;
    overflow: hidden;
}
.hero-carousel-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.06);
    text-decoration: none;
    color: var(--text);
    font-size: 13px;
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s, transform 0.5s;
    pointer-events: none;
}
.hero-carousel-item.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.hero-carousel-item:hover {
    background: rgba(0,0,0,0.4);
    border-color: rgba(var(--accent-rgb), 0.15);
    color: var(--text);
}

/* ─── Compact Tables for Top/Recent ─── */
.compact-table .server-table th,
.compact-table .server-table td {
    padding: 8px 10px;
    font-size: 12px;
}
.compact-table .server-name { font-size: 12px; }
.compact-table .server-rank { font-size: 11px; }
.compact-table .game-badge { font-size: 9px; padding: 1px 5px; }
.compact-table .players-text { font-size: 11px; }
.compact-table .players-bar { height: 2px; }
.compact-table .votes-count { font-size: 12px; }
.compact-table .server-tags { display: none; }

/* ─── Partners Grid ─── */
.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 60px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s;
    opacity: 0.7;
}
.partner-logo:hover {
    opacity: 1;
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}
.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0.9);
}
.partner-logo:hover img { filter: brightness(1.1); }

.partner-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 160px;
    height: 60px;
    justify-content: center;
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: 8px;
    transition: all 0.3s;
    cursor: default;
}
.partner-placeholder:hover {
    border-color: rgba(255,255,255,0.15);
}

/* ─── Hero Banner Space ─── */
.hero-banner-space {
    flex-shrink: 0;
    width: 300px;
}
.hero-premium-showcase {
    display: block;
    padding: 20px;
    background: rgba(10,14,26,0.85);
    border: 1px solid rgba(255,176,32,0.25);
    border-radius: 12px;
    text-decoration: none;
    color: #e2e8f0 !important;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}
/* Force all text inside showcase to stay light */
.hero-premium-showcase * { color: inherit; }
.hero-premium-showcase .premium-badge { color: var(--accent4) !important; }
[data-theme="light"] .hero-premium-showcase {
    background: rgba(10,14,26,0.88);
    border-color: rgba(255,176,32,0.35);
}
.hero-premium-showcase::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 12px;
    background: conic-gradient(from var(--angle, 0deg), rgba(255,176,32,0.3), rgba(109,91,255,0.2), rgba(0,212,255,0.2), rgba(255,176,32,0.3));
    z-index: -1;
    animation: premiumRotate 6s linear infinite;
    opacity: 0.5;
}
.hero-premium-showcase:hover {
    transform: translateY(-3px);
    border-color: rgba(255,176,32,0.45);
    color: #e2e8f0 !important;
    background: rgba(10,14,26,0.92);
}
@media (max-width: 900px) {
    .hero-banner-space { display: none; }
}

/* ─── Games Grid Fix - 3 columns on home, full on games page ─── */
.games-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}
@media (max-width: 768px) {
    .games-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
    .games-grid { grid-template-columns: 1fr !important; }
}

/* ─── Game Card bigger icon placeholder ─── */
.game-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    margin-bottom: 8px;
}

/* ─── Floating Download Card ─── */
.download-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #0e1420, #141c2c);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    max-width: 380px;
    animation: slideUp 0.5s ease-out;
}
@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.download-float-close {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.download-float-close:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.download-float-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.download-float-info { flex: 1; min-width: 0; }
.download-float-title { font-weight: 800; font-size: 14px; margin-bottom: 2px; }
.download-float-desc { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.download-float-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--accent), #6d5bff);
    color: #fff;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s;
}
.download-float-btn:hover { transform: scale(1.05); color: #fff; }

@media (max-width: 600px) {
    .download-float { left: 10px; right: 10px; max-width: none; bottom: 10px; }
}

/* ─── Game Card server count label ─── */
.game-card-count-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-top: -4px;
}

/* ═══════════════════════════════════════════════════
   PHASE 3 — Design Premium
   ═══════════════════════════════════════════════════ */

/* ─── 1. Section Background Art ─── */
.section {
    position: relative;
    overflow: hidden;
}
.section::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}
.section > * { position: relative; z-index: 1; }

/* Top Servers section — subtle crosshair pattern */
.section:nth-child(2)::after {
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255,176,32,0.04) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(0,212,255,0.03) 0%, transparent 50%);
    background-size: 100% 100%;
}

/* Recent section — circuit lines */
.section:nth-child(3)::after {
    background-image:
        radial-gradient(circle at 85% 30%, rgba(0,212,255,0.04) 0%, transparent 40%),
        radial-gradient(circle at 15% 70%, rgba(109,91,255,0.03) 0%, transparent 40%);
}

/* Games section — game glow */
.section:nth-child(4)::after {
    background-image:
        radial-gradient(circle at 50% 0%, rgba(109,91,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(0,201,123,0.03) 0%, transparent 50%);
}

/* ─── 2. Glassmorphism Cards ─── */
.card, .sidebar-card, .auth-card, .form-card {
    background: rgba(17,25,39,0.6) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.04);
}
.card:hover, .sidebar-card:hover {
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Glass on game cards */
.game-card {
    background: rgba(17,25,39,0.5) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}
.game-card:hover {
    background: rgba(17,25,39,0.7) !important;
    border-color: rgba(var(--accent-rgb),0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* Glass on filter bar */
.filter-bar {
    background: rgba(17,25,39,0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: var(--radius-lg);
    padding: 12px;
    margin-bottom: 16px;
}

/* Light mode glass overrides */
[data-theme="light"] .card,
[data-theme="light"] .sidebar-card,
[data-theme="light"] .auth-card,
[data-theme="light"] .form-card {
    background: rgba(255,255,255,0.7) !important;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.8);
}
[data-theme="light"] .game-card {
    background: rgba(255,255,255,0.5) !important;
    border-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .filter-bar {
    background: rgba(255,255,255,0.5);
    border-color: rgba(0,0,0,0.06);
}

/* ─── 3. Floating Game Icons (Hero) ─── */
.hero-floating-icons {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero-float-icon {
    position: absolute;
    opacity: 0.08;
    filter: grayscale(0.5);
    animation: floatIcon linear infinite;
    will-change: transform;
}
/* Mobile: completely remove floating icons from layout */
@media (max-width: 900px) {
    .hero-floating-icons { display: none !important; visibility: hidden !important; }
}
.hero-float-icon:nth-child(1) { top: 10%; left: 5%; width: 48px; animation-duration: 18s; animation-delay: 0s; }
.hero-float-icon:nth-child(2) { top: 60%; left: 15%; width: 36px; animation-duration: 22s; animation-delay: -4s; }
.hero-float-icon:nth-child(3) { top: 20%; right: 20%; width: 42px; animation-duration: 20s; animation-delay: -8s; }
.hero-float-icon:nth-child(4) { top: 70%; right: 8%; width: 32px; animation-duration: 16s; animation-delay: -2s; }
.hero-float-icon:nth-child(5) { top: 40%; left: 35%; width: 28px; animation-duration: 24s; animation-delay: -6s; }
.hero-float-icon:nth-child(6) { top: 15%; right: 40%; width: 38px; animation-duration: 19s; animation-delay: -10s; }
.hero-float-icon:nth-child(7) { top: 80%; left: 45%; width: 30px; animation-duration: 21s; animation-delay: -3s; }
.hero-float-icon:nth-child(8) { top: 50%; right: 30%; width: 34px; animation-duration: 17s; animation-delay: -7s; }

@keyframes floatIcon {
    0%   { transform: translateY(0) rotate(0deg) scale(1); }
    25%  { transform: translateY(-20px) rotate(5deg) scale(1.05); }
    50%  { transform: translateY(-8px) rotate(-3deg) scale(0.98); }
    75%  { transform: translateY(-25px) rotate(4deg) scale(1.03); }
    100% { transform: translateY(0) rotate(0deg) scale(1); }
}

/* ─── Hero Parallax ─── */
.hero[data-parallax] {
    transform-style: preserve-3d;
}
.hero-parallax-layer {
    transition: transform 0.15s ease-out;
    will-change: transform;
}

/* ─── 4. Premium Card Holographic Effect ─── */
.premium-card {
    perspective: 800px;
}
.premium-card-content {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.premium-card:hover .premium-card-content {
    box-shadow: 0 0 30px rgba(255,176,32,0.1);
}
.premium-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 11px;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255,255,255,0.06) 45%,
        rgba(255,255,255,0.12) 50%,
        rgba(255,255,255,0.06) 55%,
        transparent 70%
    );
    background-size: 200% 200%;
    transition: opacity 0.4s ease;
}
.premium-card:hover::after {
    opacity: 1;
    animation: holoSheen 1.5s ease-in-out infinite;
}
@keyframes holoSheen {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Holographic border shimmer */
.premium-card-glow {
    background: conic-gradient(
        from var(--angle, 0deg),
        #ffb020 0%, #ff6b6b 15%, #ff00ff 30%, #6d5bff 45%,
        #00d4ff 60%, #00c97b 75%, #ffb020 100%
    );
    transition: opacity 0.3s;
}
.premium-card:hover .premium-card-glow {
    opacity: 0.7;
    filter: blur(12px);
}
.premium-card:hover .premium-card-border {
    opacity: 0.9;
}

/* ─── 5. Live Activity Feed ─── */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(17,25,39,0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    transition: background 0.2s;
    animation: rowFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.activity-item:hover {
    background: rgba(var(--accent-rgb), 0.03);
}
.activity-icon {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.activity-body {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.activity-user {
    font-weight: 700;
    color: var(--text);
}
.activity-server {
    font-weight: 600;
    color: var(--accent);
}
.activity-server:hover {
    text-decoration: underline;
}
.activity-time {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: var(--font-mono);
}

/* Live pulse badge */
.live-pulse-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    color: var(--success);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.live-pulse-dot {
    width: 7px; height: 7px;
    background: var(--success);
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(0,201,123,0.5);
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

[data-theme="light"] .activity-feed {
    background: rgba(255,255,255,0.5);
    border-color: rgba(0,0,0,0.06);
}

/* ─── 6. Mini Sparkline Charts ─── */
.sparkline-wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
}
.sparkline-svg {
    width: 50px;
    height: 18px;
    overflow: visible;
}
.sparkline-svg polyline {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.sparkline-svg .sparkline-fill {
    fill: rgba(var(--accent-rgb), 0.1);
    stroke: none;
}
.sparkline-trend-up { color: var(--success); font-size: 10px; font-weight: 700; }
.sparkline-trend-down { color: var(--danger); font-size: 10px; font-weight: 700; }
.sparkline-trend-flat { color: var(--text-muted); font-size: 10px; font-weight: 700; }

/* Light mode sparkline */
[data-theme="light"] .sparkline-svg polyline { stroke: #0088cc; }
[data-theme="light"] .sparkline-svg .sparkline-fill { fill: rgba(0,136,204,0.08); }

/* ─── Light Mode: Premium / Hero / Server Page Fixes ─── */
[data-theme="light"] .hero {
    background: linear-gradient(135deg, #e8edf5, #f0f4fa) !important;
    border-color: #c8d0de;
}
[data-theme="light"] .hero::before { opacity: 0.3; }
[data-theme="light"] .hero::after { opacity: 0.06; }
[data-theme="light"] .hero-title { color: #1a202c; }
[data-theme="light"] .hero-title .accent { color: #0088cc; }
[data-theme="light"] .hero-sub { color: #4a5568; }
[data-theme="light"] .hero-stat-val { color: #0088cc; }
[data-theme="light"] .hero-stat-val span { color: #64748b !important; }
[data-theme="light"] .hero-stat-label { color: #64748b; }
[data-theme="light"] .hero-search .form-control { background: #fff; border-color: #d1d9e6; color: #1a202c; }

/* Premium cards */
[data-theme="light"] .premium-card-content {
    background: linear-gradient(145deg, #f8fafc, #ffffff) !important;
}
[data-theme="light"] .premium-card-name { color: #1a202c; }
[data-theme="light"] .premium-card-meta { color: #4a5568; }
[data-theme="light"] .premium-card-bottom { border-color: #e2e8f0; color: #1a202c; }
[data-theme="light"] .premium-badge { background: rgba(184,134,11,0.1); color: #b8860b; }

/* Server detail page */
[data-theme="light"] .server-hero { background: linear-gradient(135deg, #e8edf5, #f0f4fa); border-color: #d1d9e6; }
[data-theme="light"] .server-hero-bg { opacity: 0.05 !important; }
[data-theme="light"] .detail-name { color: #1a202c; }
[data-theme="light"] .detail-meta { color: #4a5568; }
[data-theme="light"] .detail-meta-item { color: #4a5568; }
[data-theme="light"] .stat-card { background: rgba(0,0,0,0.02) !important; border-color: #d1d9e6; }
[data-theme="light"] .stat-card-value { color: #0088cc; }
[data-theme="light"] .stat-card-label { color: #64748b; }
[data-theme="light"] .sidebar-card h4 { color: #1a202c; }

/* Chart tooltip */
[data-theme="light"] .card h3 { color: #1a202c; }

/* Players table on server page */
[data-theme="light"] .players-table thead { background: #f0f2f5; }
[data-theme="light"] .players-table thead th { color: #4a5568; border-color: #d1d9e6; }
[data-theme="light"] .players-table tbody td { border-color: #e2e8f0; color: #1a202c; }

/* Partners section */
[data-theme="light"] .partner-placeholder { color: #94a3b8; }

/* Footer stays dark on both themes — override text */
[data-theme="light"] .footer { background: #1a202c; color: #e4e9f2; }
[data-theme="light"] .footer a { color: #94a3b8; }
[data-theme="light"] .footer .accent { color: #00d4ff; }
[data-theme="light"] .footer h4 { color: #e4e9f2; }
[data-theme="light"] .footer-desc { color: #8492a6; }
[data-theme="light"] .footer-bottom { color: #64748b; border-color: rgba(255,255,255,0.08); }

/* Review section */
[data-theme="light"] .star-label { color: #b8860b !important; }

/* Inline dark backgrounds in server.php — override via classes */
[data-theme="light"] .server-hero .stats-grid .stat-card { background: rgba(0,136,204,0.04) !important; }

/* Download card */
[data-theme="light"] .download-card { background: #f0f2f5; border-color: #d1d9e6; }
[data-theme="light"] .download-float { background: #fff; border-color: #d1d9e6; color: #1a202c; }

/* Admin panel */
[data-theme="light"] .admin-sidebar { background: #f8fafc; border-color: #d1d9e6; }
[data-theme="light"] .admin-nav-link { color: #4a5568; }
[data-theme="light"] .admin-nav-link.active { color: #0088cc; background: rgba(0,136,204,0.06); }
[data-theme="light"] .admin-stat-card { background: #fff; border-color: #d1d9e6; }
[data-theme="light"] .admin-stat-card .stat-value { color: #0088cc; }
[data-theme="light"] .admin-stat-card .stat-label { color: #64748b; }

/* Game card */
[data-theme="light"] .game-card-name { color: #1a202c; }
[data-theme="light"] .game-card-cat { color: #64748b; }
[data-theme="light"] .game-card-count { color: #0088cc; }

/* Profile page */
[data-theme="light"] .profile-avatar { background: #0088cc; color: #fff; }

/* Banner section */
[data-theme="light"] .ban-tab { color: #64748b; }
[data-theme="light"] .ban-tab.active { color: #0088cc; background: rgba(0,136,204,0.08); }

/* Uptime bars */
[data-theme="light"] .uptime-bar { background: rgba(0,0,0,0.04); }

/* ─── Noise Texture Overlay ─── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ═══════════════════════════════════════════════════
   PHASE 5 — Monetization CSS
   ═══════════════════════════════════════════════════ */

/* ─── Pricing Cards Grid ─── */
.premium-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.plan-card:hover {
    border-color: var(--plan-color, var(--accent));
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.plan-popular {
    border-color: var(--accent2);
    box-shadow: 0 0 0 1px var(--accent2), 0 8px 30px rgba(109,91,255,0.15);
}
.plan-popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent2);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 10px;
    letter-spacing: 1px;
}
.plan-current { border-color: var(--success); }
.plan-current-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--success);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}
.plan-header { text-align: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.plan-name { font-family: var(--font-head); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.plan-price { display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.plan-currency { font-size: 18px; color: var(--text-muted); font-weight: 600; }
.plan-amount { font-size: 36px; font-weight: 800; font-family: var(--font-head); color: var(--text); }
.plan-period { font-size: 13px; color: var(--text-muted); }
.plan-features { flex: 1; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.plan-feature { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.plan-feature strong { color: var(--text); }
.plan-action { margin-top: auto; }

/* ─── Ad Zones ─── */
.promo-slot {
    text-align: center;
    margin: 16px 0;
    border-radius: var(--radius);
    display: block;
    position: relative;
    z-index: 5;
}
}
.promo-slot img { display: inline-block; max-width: 100%; border-radius: var(--radius); }
.promo-slot-home-top { margin-bottom: 20px; }
.promo-slot-sidebar { margin-bottom: 16px; }
.promo-slot-between-sections { margin: 24px 0; }
.ad-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 4px;
    opacity: 0.5;
}

/* ─── Sponsored Badge ─── */
.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,176,32,0.1);
    color: var(--accent4);
    font-size: 9px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ─── API Tier Badge ─── */
.api-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}
.api-tier-free { background: rgba(77,92,114,0.15); color: var(--text-muted); }
.api-tier-starter { background: rgba(0,212,255,0.1); color: var(--accent); }
.api-tier-pro { background: rgba(109,91,255,0.1); color: var(--accent2); }
.api-tier-business { background: rgba(255,176,32,0.1); color: var(--accent4); }

/* Light mode pricing */
[data-theme="light"] .plan-card { background: #fff; border-color: #d1d9e6; }
[data-theme="light"] .plan-card:hover { background: #f8fafc; }
[data-theme="light"] .plan-header { border-color: #e2e8f0; }
[data-theme="light"] .plan-amount { color: #1a202c; }
[data-theme="light"] .plan-feature strong { color: #1a202c; }
