:root {
    --primary-purple: #9243fc;
    --secondary-purple: #7a35d1;
    --indigo: #4c1d95;
    --dark-bg: #0a0a0f;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --shadow-glow: 0 0 40px rgba(146, 67, 252, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 25%, var(--indigo) 50%, #1e1b4b 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(146, 67, 252, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(79, 70, 229, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    margin: 4rem 0 2rem;
    text-align: center;
    color: #e2e8f0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.05em;
}

.leaderboard-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    margin: 0 auto 3rem;
    max-width: 450px;
    width: 100%;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.leaderboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(146, 67, 252, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-radius: 24px;
    z-index: -1;
}

.card-header {
    margin-bottom: 2rem;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.solpump-logo {
    max-width: 140px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.card-content {
    margin: 2rem 0;
    text-align: center;
}

.card-content p {
    color: var(--text-secondary);
    margin: 1rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.leaderboard-btn {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    color: var(--text-primary);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 20px rgba(146, 67, 252, 0.4);
    display: block;
    margin: 0 auto;
    width: fit-content;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.social-btn .handle {
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    letter-spacing: 0.01em;
}

.footer {
    margin-top: 4rem;
    text-align: center;
    position: relative;
}

.footer-content {
    position: relative;
    padding: 2rem 0;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.footer-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-purple), transparent);
    border-radius: 1px;
    box-shadow: 0 0 10px var(--primary-purple);
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .leaderboard-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-btn {
        padding: 0.875rem 1.25rem;
    }
    
    .leaderboard-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* Leaderboard Page Styles */
.leaderboard-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin: 0 0 2rem 0;
    padding: 0;
    text-shadow: 0 0 20px rgba(146, 67, 252, 0.5);
    letter-spacing: -0.02em;
}

.top-three-section {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.top-player {
    text-align: center;
    position: relative;
    padding: 1.5rem 1rem;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.top-player.first {
    order: 2;
    transform: scale(1.05);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.2);
}

.top-player.second {
    order: 1;
    border-color: rgba(192, 192, 192, 0.6);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(192, 192, 192, 0.15);
}

.top-player.third {
    order: 3;
    border-color: rgba(255, 140, 0, 0.6);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(255, 140, 0, 0.15);
}

.player-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.top-player.first .player-avatar {
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

.top-player.second .player-avatar {
    border-color: rgba(192, 192, 192, 0.8);
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.3);
}

.top-player.third .player-avatar {
    border-color: rgba(255, 140, 0, 0.8);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.3);
}

.player-avatar.gray {
    background-color: #c0c0c0;
}

.player-avatar.yellow {
    background-color: #ffd700;
}

.player-avatar.orange {
    background-color: #ff8c00;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.player-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.player-amount {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #32ff32;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(50, 255, 50, 0.5);
}

.player-wagered {
    font-size: 0.9rem;
    color: #e2e8f0;
    margin-bottom: 1rem;
    font-weight: 500;
}

.rank-badge {
    width: 35px;
    height: 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: white;
    margin: 0 auto;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.rank-badge.blue {
    background: linear-gradient(135deg, #4169e1, #6495ed);
}

.rank-badge.yellow {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.rank-badge.orange {
    background: linear-gradient(135deg, #ff8c00, #ffa500);
}

.play-now-section {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem 0;
}

.play-now-btn {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 
        0 6px 20px rgba(146, 67, 252, 0.3),
        0 0 20px rgba(146, 67, 252, 0.2);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}

.play-now-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.play-now-btn:hover::before {
    left: 100%;
}

.play-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(146, 67, 252, 0.4),
        0 0 30px rgba(146, 67, 252, 0.3);
}

.countdown {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(146, 67, 252, 0.3);
    display: inline-block;
}

.ranks-4-5-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1rem 0;
}

.player-entry {
    background: linear-gradient(145deg, rgba(146, 67, 252, 0.2), rgba(124, 58, 237, 0.15));
    border: 1px solid rgba(146, 67, 252, 0.4);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 250px;
    box-shadow: 0 6px 15px rgba(146, 67, 252, 0.2);
    backdrop-filter: blur(10px);
}

.rank-number {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(146, 67, 252, 0.3);
}

.player-avatar-small {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(146, 67, 252, 0.6);
    box-shadow: 0 3px 8px rgba(146, 67, 252, 0.2);
}

.profile-img-small {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-info {
    flex: 1;
}

.player-name-small {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.player-wagered-small {
    font-size: 0.8rem;
    color: #e2e8f0;
    font-weight: 500;
}

.player-prize-small {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(146, 67, 252, 0.5);
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    padding: 0.5rem 1rem;
    border-radius: 15px;
    border: 1px solid rgba(146, 67, 252, 0.4);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .leaderboard-header h1 {
        font-size: 1.8rem;
    }
    
    .top-three-section {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .top-player.first {
        order: 1;
        transform: none;
    }
    
    .top-player.second {
        order: 2;
    }
    
    .top-player.third {
        order: 3;
    }
    
    .ranks-4-5-section {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .player-entry {
        min-width: 220px;
    }
    
    .play-now-btn {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }
}