/* ============================================
   PKM UNIVERSE - COMMON STYLES
   Shared CSS for mobile optimization
   ============================================ */

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   CSS VARIABLES - THEME COLORS
   ============================================ */
:root {
    /* Gold Theme (Default) */
    --gold: #d4af37;
    --gold-light: #f0d875;
    --gold-dark: #b8941f;
    --amber: #f59e0b;

    /* Background & Cards */
    --bg-dark: #0a0a0a;
    --card-bg: rgba(15, 15, 20, 0.9);

    /* Text Colors */
    --text: #ffffff;
    --text-dim: #888;
    --text-muted: #666;

    /* Status Colors */
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    /* Tier Colors */
    --tier-free: #6b7280;
    --tier-basic: #3b82f6;
    --tier-pro: #a855f7;
    --tier-elite: #d4af37;
}

/* ============================================
   BODY & TYPOGRAPHY
   ============================================ */
body {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Orbitron headings */
h1, h2, h3, .heading-display {
    font-family: 'Orbitron', sans-serif;
}

/* ============================================
   CUSTOM CURSOR (Desktop Only)
   ============================================ */
@media (min-width: 769px) and (hover: hover) {
    .custom-cursor {
        position: fixed;
        width: 20px;
        height: 20px;
        border: 2px solid var(--gold);
        border-radius: 50%;
        pointer-events: none;
        z-index: 99999;
        transition: transform 0.1s, background 0.2s;
    }

    .custom-cursor.clicking {
        transform: scale(0.8);
        background: var(--gold);
    }

    .cursor-trail {
        position: fixed;
        width: 8px;
        height: 8px;
        background: var(--gold);
        border-radius: 50%;
        pointer-events: none;
        z-index: 99998;
        opacity: 0.5;
    }
}

/* Hide cursor on mobile */
@media (max-width: 768px), (hover: none) {
    .custom-cursor,
    .cursor-trail {
        display: none !important;
    }
}

/* ============================================
   NEWS TICKER
   ============================================ */
.news-ticker {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
    z-index: 10000;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ticker-label {
    background: var(--bg-dark);
    color: var(--gold);
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-scroll {
    display: flex;
    animation: tickerScroll 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    color: var(--bg-dark);
    font-weight: 600;
    padding: 0 50px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticker-item span {
    color: rgba(0,0,0,0.6);
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   NAVIGATION - FLOATING NAV BAR
   ============================================ */
.nav-container {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 0 20px;
}

.nav {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50px;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
}

.nav::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 52px;
    background: conic-gradient(from var(--angle, 0deg), transparent, var(--gold), transparent, var(--gold), transparent);
    z-index: -1;
    animation: spinBorder 4s linear infinite;
    opacity: 0.5;
}

@keyframes spinBorder {
    to { --angle: 360deg; }
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Nav Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pokeball-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(180deg, #ff1a1a 50%, #fff 50%);
    border-radius: 50%;
    position: relative;
    animation: pokeballSpin 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.pokeball-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border: 3px solid #333;
    border-radius: 50%;
}

.pokeball-logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #333;
    transform: translateY(-50%);
}

@keyframes pokeballSpin {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

.nav-brand {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 10px;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

.nav-link.active {
    color: #000;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > .nav-link::after {
    content: ' \25BE';
    font-size: 10px;
}

.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 25px;
    min-width: 500px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    pointer-events: none;
    margin-top: 10px;
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
}

.nav-dropdown:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mega-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid transparent;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text);
}

.mega-item:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.mega-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
}

.mega-item-icon img {
    width: 36px;
    height: 36px;
    image-rendering: pixelated;
}

.mega-item-content h4 {
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--gold);
}

.mega-item-content p {
    font-size: 12px;
    color: var(--text-dim);
}

.mega-item-simple {
    display: block;
    padding: 15px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    color: var(--text);
}

.mega-item-simple:hover {
    background: rgba(212, 175, 55, 0.1);
}

.mega-item-simple h4 {
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--gold);
}

.mega-item-simple p {
    font-size: 12px;
    color: var(--text-dim);
}

/* Status indicators */
.mega-item-status {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

.status-dot.offline {
    background: var(--error);
    animation: none;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.queue-badge {
    font-size: 10px;
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Notifications */
.nav-notifications {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
}

.nav-notifications:hover {
    background: rgba(212, 175, 55, 0.1);
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    background: var(--error);
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Theme Switcher */
.theme-switcher {
    display: flex;
    gap: 5px;
    padding: 5px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
}

.theme-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.theme-btn:hover {
    transform: scale(1.1);
}

.theme-btn.active {
    border-color: #fff;
}

.theme-gold { background: linear-gradient(135deg, #d4af37, #b8941f); }
.theme-cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.theme-purple { background: linear-gradient(135deg, #a855f7, #7c3aed); }

/* Nav divider & tab links */
.nav-divider {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
    font-weight: 300;
}

.nav-tab-link {
    color: #00ff88 !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-tab-link:hover {
    color: #00ffaa !important;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 150px 20px 80px;
    position: relative;
}

/* Mesh Background */
.mesh-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: blobFloat 20s ease-in-out infinite;
}

.mesh-blob:nth-child(1) {
    width: 600px;
    height: 600px;
    background: var(--gold);
    top: -200px;
    right: -200px;
}

.mesh-blob:nth-child(2) {
    width: 500px;
    height: 500px;
    background: var(--amber);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

.mesh-blob:nth-child(3) {
    width: 400px;
    height: 400px;
    background: #f97316;
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* Hero Banner */
.hero-banner {
    position: relative;
    padding: 40px 80px;
    background: rgba(10, 10, 15, 0.7);
    border-radius: 30px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(20px);
    margin-bottom: 40px;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 33px;
    background: conic-gradient(from var(--angle, 0deg), var(--gold), transparent 20%, var(--gold) 40%, transparent 60%, var(--gold) 80%, transparent);
    z-index: -1;
    animation: spinBorder 6s linear infinite;
    opacity: 0.6;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 64px;
    font-weight: 900;
    letter-spacing: 8px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark), var(--gold-light));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3s ease-in-out infinite;
    position: relative;
}

@keyframes shimmerText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Typewriter */
.hero-tagline {
    text-align: center;
    margin-bottom: 30px;
    height: 30px;
}

.typewriter {
    font-size: 20px;
    color: var(--text-dim);
    font-weight: 500;
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 24px;
    background: var(--gold);
    margin-left: 5px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ============================================
   BUTTONS - COMMON STYLES
   ============================================ */
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-btn,
.btn {
    padding: 15px 40px;
    border-radius: 50px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hero-btn-primary,
.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg-dark);
    border: none;
}

.hero-btn-primary:hover,
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.hero-btn-secondary,
.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.hero-btn-secondary:hover,
.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
}

.hero-btn-gold,
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #000;
    border: none;
    font-weight: 700;
}

.hero-btn-gold:hover,
.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* Button ripple effect */
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

/* ============================================
   CARDS - COMMON STYLES
   ============================================ */
.card {
    background: var(--card-bg);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.1);
}

/* Game Cards with flip effect */
.game-card {
    position: relative;
    height: 280px;
    perspective: 1000px;
    cursor: pointer;
}

.game-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.game-card:hover .game-card-inner {
    transform: rotateY(180deg);
}

.game-card-front, .game-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}

.game-card-front {
    background: var(--card-bg);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Holographic Effect */
.holo-effect {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        transparent 0%,
        rgba(255, 0, 0, 0.1) 10%,
        rgba(255, 154, 0, 0.1) 20%,
        rgba(208, 222, 33, 0.1) 30%,
        rgba(79, 220, 74, 0.1) 40%,
        rgba(63, 218, 216, 0.1) 50%,
        rgba(47, 201, 226, 0.1) 60%,
        rgba(28, 127, 238, 0.1) 70%,
        rgba(95, 21, 242, 0.1) 80%,
        rgba(186, 12, 248, 0.1) 90%,
        transparent 100%
    );
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    mix-blend-mode: color-dodge;
}

.game-card:hover .holo-effect {
    opacity: 1;
    animation: holoShift 3s ease infinite;
}

@keyframes holoShift {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.game-card-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.1), transparent);
}

.game-card-image img {
    max-height: 120px;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}

.game-card-content {
    padding: 20px;
}

.game-card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.game-card-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bot-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-dim);
}

.queue-count {
    font-size: 12px;
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
    padding: 4px 12px;
    border-radius: 20px;
}

.game-card-back {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.game-card-back h3 {
    color: var(--bg-dark);
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    margin-bottom: 15px;
}

.game-card-back p {
    color: rgba(0,0,0,0.7);
    font-size: 14px;
    margin-bottom: 20px;
}

.game-card-back .trade-btn {
    background: var(--bg-dark);
    color: var(--gold);
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.game-card-back .trade-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .games-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .games-grid { grid-template-columns: 1fr; }
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-dim);
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 60px 20px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: var(--gold);
    display: block;
}

.stat-label {
    font-size: 14px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Sparkline */
.stat-sparkline {
    width: 100px;
    height: 30px;
    margin: 10px auto 0;
}

.stat-sparkline svg {
    width: 100%;
    height: 100%;
}

.sparkline-path {
    fill: none;
    stroke: var(--gold);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawSparkline 2s ease forwards;
}

.sparkline-fill {
    fill: url(#sparklineGradient);
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

@keyframes drawSparkline {
    to { stroke-dashoffset: 0; }
}

@keyframes fadeIn {
    to { opacity: 0.3; }
}

/* ============================================
   LIVE INDICATORS
   ============================================ */
.live-counter {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(10, 10, 15, 0.8);
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 40px;
}

.live-dot {
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
}

.live-label {
    font-size: 14px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.live-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--gold);
}

.live-text {
    font-size: 14px;
    color: var(--text-dim);
}

/* ============================================
   ACTIVITY FEED
   ============================================ */
.activity-section {
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.activity-feed {
    background: var(--card-bg);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    overflow: hidden;
}

.activity-header {
    padding: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.activity-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
}

.activity-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    animation: slideInActivity 0.5s ease;
}

@keyframes slideInActivity {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.activity-item:hover {
    background: rgba(212, 175, 55, 0.05);
}

.activity-pokemon {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-pokemon img {
    width: 40px;
    height: 40px;
}

.activity-info {
    flex: 1;
}

.activity-user {
    font-weight: 600;
    color: var(--gold);
}

.activity-action {
    font-size: 14px;
    color: var(--text-dim);
}

.activity-time {
    font-size: 12px;
    color: var(--text-dim);
}

.activity-game {
    font-size: 11px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    padding: 3px 8px;
    border-radius: 8px;
    margin-left: 10px;
}

/* ============================================
   LOADING STATES
   ============================================ */
.loading-skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   LEADERBOARD
   ============================================ */
.leaderboard-section {
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.leaderboard {
    background: var(--card-bg);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    overflow: hidden;
}

.leaderboard-header {
    padding: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    text-align: center;
}

.leaderboard-header h3 {
    font-family: 'Orbitron', sans-serif;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
}

.leaderboard-item:hover {
    background: rgba(212, 175, 55, 0.05);
}

.leaderboard-rank {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 18px;
    border-radius: 50%;
}

.rank-1 { background: linear-gradient(135deg, #ffd700, #ffaa00); color: #000; }
.rank-2 { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); color: #000; }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #a0522d); color: #fff; }
.rank-default { background: rgba(255,255,255,0.1); color: var(--text-dim); }

.leaderboard-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--bg-dark);
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-name {
    font-weight: 600;
}

.leaderboard-trades {
    font-size: 12px;
    color: var(--text-dim);
}

.leaderboard-score {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--gold);
}

/* ============================================
   COMMAND PALETTE
   ============================================ */
.command-palette {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 100000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 150px;
}

.command-palette.active {
    display: flex;
}

.command-box {
    width: 100%;
    max-width: 600px;
    background: var(--card-bg);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    overflow: hidden;
    animation: commandSlide 0.2s ease;
}

@keyframes commandSlide {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.command-input {
    width: 100%;
    padding: 20px 25px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    color: var(--text);
    font-size: 18px;
    font-family: 'Rajdhani', sans-serif;
}

.command-input:focus {
    outline: none;
}

.command-input::placeholder {
    color: var(--text-dim);
}

.command-results {
    max-height: 400px;
    overflow-y: auto;
}

.command-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.2s;
}

.command-item:hover, .command-item.selected {
    background: rgba(212, 175, 55, 0.1);
}

.command-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    font-size: 20px;
}

.command-text {
    flex: 1;
}

.command-text h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.command-text p {
    font-size: 12px;
    color: var(--text-dim);
}

.command-shortcut {
    font-size: 12px;
    color: var(--text-dim);
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 5px;
}

.command-hint {
    padding: 15px 25px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    font-size: 12px;
    color: var(--text-dim);
    text-align: center;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    color: var(--text-dim);
    font-size: 14px;
}

.footer kbd {
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
        letter-spacing: 4px;
    }

    .hero-banner {
        padding: 30px 40px;
    }

    .nav {
        padding: 10px 20px;
        gap: 15px;
    }

    .nav-brand {
        display: none;
    }

    .mega-dropdown {
        min-width: 300px;
        grid-template-columns: 1fr;
    }

    .stats-section {
        gap: 30px;
    }

    .stat-number {
        font-size: 36px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .hero-btn,
    .btn {
        width: 100%;
        padding: 12px 30px;
    }
}

@media (max-width: 900px) {
    .nav-divider {
        display: none;
    }

    .nav-tab-link {
        font-size: 11px;
        padding: 4px 8px !important;
    }
}

@media (max-width: 600px) {
    .nav-tab-link {
        display: none;
    }

    .nav-container {
        top: 40px;
        padding: 0 10px;
    }

    .hero {
        padding: 120px 15px 60px;
    }

    .hero-banner {
        padding: 20px 30px;
    }

    .hero-title {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .live-counter {
        flex-wrap: wrap;
        justify-content: center;
        padding: 15px 20px;
    }

    .live-number {
        font-size: 24px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gold { color: var(--gold); }
.text-dim { color: var(--text-dim); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.hidden { display: none !important; }
.visible { display: block; }

/* ============================================
   POKEMON CLUSTER (Homepage specific but commonly used)
   ============================================ */
.pokemon-cluster {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cluster-pokemon {
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

.cluster-pokemon img {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 20px var(--poke-color, var(--gold)));
    animation: pokemonFloat 3s ease-in-out infinite;
    transition: all 0.3s;
}

.cluster-pokemon:nth-child(1) img { animation-delay: 0s; --poke-color: #ff6b35; }
.cluster-pokemon:nth-child(2) img { animation-delay: 0.3s; --poke-color: #c4a052; }
.cluster-pokemon:nth-child(3) img { animation-delay: 0.6s; --poke-color: #7dd87d; }
.cluster-pokemon:nth-child(4) img { animation-delay: 0.9s; --poke-color: #ff69b4; }
.cluster-pokemon:nth-child(5) img { animation-delay: 1.2s; --poke-color: #fff078; }
.cluster-pokemon:nth-child(6) img { animation-delay: 1.5s; --poke-color: #ffcba4; }
.cluster-pokemon:nth-child(7) img { animation-delay: 1.8s; --poke-color: #f8d030; }

@keyframes pokemonFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.cluster-pokemon:hover img {
    transform: scale(1.3) translateY(-10px);
    filter: drop-shadow(0 0 40px var(--poke-color, var(--gold)));
}
