/* ===== Y2K Futurism Variables ===== */
:root {
    --bg-dark: #050508;
    --y2k-pink: #ff00ff;
    --y2k-blue: #00d4ff;
    --y2k-purple: #9945ff;
    --y2k-green: #00ff88;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(20px);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --secondary: var(--y2k-green);
    --primary: var(--y2k-purple);
    --gold: #FFD700;
    --gold-light: #FFEC8B;
    --gold-dark: #DAA520;
    --danger: #ff4444;
    --success: #00C853;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark) !important;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark) !important;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 0% 0%, rgba(255, 0, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(153, 69, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(0, 255, 136, 0.1) 0%, transparent 50%) !important;
    background-attachment: fixed !important;
}

/* Moving Mesh Effect (Subtle) */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 80%);
    animation: meshMove 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes meshMove {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== Header & Containers ===== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    height: 90px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    width: 130px;
    /* Reduzido para acompanhar a logo menor e mover para esquerda */
    height: 80px;
    position: relative;
}

/* Logo especial para a Home (Index) */
.logo-home {
    width: 250px;
    /* Reserva mais espaço na home */
}

.logo-img {
    height: 160px;
    /* Aumentado um pouco mais para subpáginas */
    width: auto;
    object-fit: contain;
    position: absolute;
    top: -20px;
    /* Subida um pouco */
    left: 0px;
    /* Mais pra esquerda */
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.8));
    z-index: 1001;
}

/* Tamanho maior apenas na home */
.logo-home .logo-img {
    height: 200px;
    top: -35px;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

/* Wallet Display */
.wallet-display {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.solana-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(255, 0, 255, 0.6));
    /* Glow Rosa suave */
}

.wallet-value {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    color: #00ff88 !important;
    /* Verde neon */
    font-size: 1.0rem;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
    /* Glow Verde */
}

.wallet-total {
    display: flex;
    flex-direction: column;
}

.wallet-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.wallet-value {
    font-weight: 600;
    color: var(--gold);
    font-size: 0.95rem;
}

.crypto-balances {
    display: flex;
    gap: 1rem;
}

.crypto-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.crypto-icon {
    color: var(--gold);
    font-weight: bold;
}

/* Game Buttons & Text */
.btn-play {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50px;
    padding: 1rem 3rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: white !important;
    /* Force white text */
    cursor: pointer;
    box-shadow: 0 0 25px rgba(153, 69, 255, 0.6) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 1.5rem;
    position: relative;
    z-index: 100;
    /* Ensure clickable */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-play:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
    filter: brightness(1.2);
}

.btn-play:disabled {
    background: #333;
    color: #888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.game-overlay p {
    color: #e0e0e0;
    /* Brighter text */
    margin-bottom: 2rem;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.btn-deposit {
    background: linear-gradient(135deg, #FFD700, #DAA520);
    color: #1a0b2e;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Liquid Gloss Reflection */
.btn-deposit::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(45deg);
    transition: 0.6s;
}

.btn-deposit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.5);
}

.btn-deposit:hover::before {
    left: 100%;
}

/* Nav */
.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-login,
.btn-register {
    padding: 0.7rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.btn-login {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--y2k-pink);
    color: var(--y2k-pink);
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.3);
    text-shadow: 0 0 8px rgba(255, 0, 128, 0.4);
    transform: translateY(-2px);
}

.btn-register {
    background: linear-gradient(135deg, var(--y2k-pink), var(--y2k-purple));
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(153, 69, 255, 0.4);
}

.btn-register:hover {
    box-shadow: 0 8px 25px rgba(255, 0, 128, 0.6);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* ===== User HUD Panel Redesign ===== */
.user-panel {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(153, 69, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.user-panel:hover {
    border-color: var(--y2k-purple);
    box-shadow: 0 0 20px rgba(153, 69, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

/* Notifications HUD */
.notification-hud {
    position: relative;
}

.btn-notif-hud {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.btn-notif-hud:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--y2k-blue);
    transform: scale(1.05);
}

.notif-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.4));
}

.notif-badge-hud {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 900;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1a1a1a;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    animation: radarPulse 2s infinite;
}

@keyframes radarPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}

/* User Profile HUD */
.user-profile-hud {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-right: 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar-hud {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--y2k-purple), var(--y2k-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.avatar-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(153, 69, 255, 0.6);
}

.avatar-letter {
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.user-details-hud {
    display: flex;
    flex-direction: column;
}

.username-hud {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--gold);
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-profile-hud {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-profile-hud:hover {
    color: white;
}

.friend-badge-hud {
    background: var(--y2k-blue);
    color: #000;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 4px;
    line-height: 1;
}

.btn-logout-hud {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-logout-hud:hover {
    background: rgba(255, 68, 68, 0.15);
    transform: rotate(10deg);
}

.logout-icon {
    font-size: 1.1rem;
    filter: grayscale(0.2);
}

/* HUD Dropdowns */
.notif-dropdown-hud {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 300px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow: hidden;
}

.notif-header-hud {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--y2k-blue);
}

.btn-clear-hud {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    cursor: pointer;
    font-weight: 700;
}

.btn-clear-hud:hover {
    color: white;
}

.notif-list-hud {
    max-height: 350px;
    overflow-y: auto;
}

.notif-item-hud {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
}

.notif-item-hud:hover {
    background: rgba(255, 255, 255, 0.02);
}

.notif-item-hud.unread-hud {
    background: rgba(0, 212, 255, 0.05);
    border-left: 2px solid var(--y2k-blue);
}

/* ===== Hero ===== */
/* ===== Redesigned Hero Section ===== */
.hero {
    position: relative;
    padding: 8rem 2rem;
    text-align: center;
    overflow: hidden;
    background: #010103;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 450px;
}

/* Animated Data Grid Background */
.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    transform: perspective(500px) rotateX(45deg) scale(2);
    transform-origin: center top;
    animation: gridMove 20s linear infinite;
    z-index: 1;
    opacity: 0.6;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 500px;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(153, 69, 255, 0.2) 0%, var(--bg-dark) 80%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    height: 180px;
    width: auto;
    margin-bottom: -20px;
    filter: drop-shadow(0 0 30px rgba(153, 69, 255, 0.5));
    animation: floatLogo 4s ease-in-out infinite;
    z-index: 4;
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0) scale(1.0);
        filter: drop-shadow(0 0 30px rgba(153, 69, 255, 0.5));
    }

    50% {
        transform: translateY(-15px) scale(1.05);
        filter: drop-shadow(0 0 50px rgba(0, 255, 136, 0.6));
    }
}

.hero-badge {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--y2k-green);
    color: var(--y2k-green);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
    animation: pulseNeon 2s ease-in-out infinite;
    backdrop-filter: blur(5px);
}

@keyframes pulseNeon {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(0, 255, 136, 0.7);
    }
}

.hero h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #fff 0%, var(--y2k-blue) 50%, var(--y2k-pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.hero p {
    color: #e0e0e0;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    max-width: 750px;
    margin: 0 auto 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    opacity: 0.9;
}

.hero-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2;
}

.decor-icon {
    position: absolute;
    font-size: 3rem;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    opacity: 0.7;
}

.icon-1 {
    top: 15%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.icon-2 {
    bottom: 20%;
    right: 10%;
    animation: float 8s ease-in-out infinite reverse;
}

.icon-3 {
    top: 40%;
    right: 5%;
    animation: float 7s ease-in-out infinite 1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    50% {
        transform: translateY(-30px) rotate(15deg) scale(1.1);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 1rem;
        min-height: 350px;
    }

    .hero-logo {
        height: 120px;
    }

    .hero h2 {
        font-size: 2.2rem;
        letter-spacing: 0;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .decor-icon {
        display: none;
    }
}

/* ===== Main Content ===== */
.main-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--y2k-pink), var(--y2k-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.game-card,
.promo-card,
.player-item,
.arena-panel,
.match-history,
.stat-card {
    border-radius: 24px !important;
    border: 1px solid var(--glass-border) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: var(--glass-blur) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

.game-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(212, 175, 55, 0.1);
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.game-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.game-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.btn-play {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    border: none;
    border-radius: 10px;
    color: var(--bg-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-play:hover {
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.5);
}

/* ===== Promotions ===== */
.promotions {
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

.promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.promo-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
}

.promo-badge {
    position: absolute;
    top: -8px;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--gold);
    color: var(--bg-dark);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 6px;
}

.promo-card h4 {
    margin-bottom: 0.5rem;
}

.promo-card p {
    color: var(--gold);
    font-size: 0.9rem;
}

/* ===== Modals ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: #13141f;
    /* Solid dark background */
    padding: 2rem;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    border: 1px solid var(--gold);
    /* Gold border */
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.modal-content.modal-wide {
    max-width: 500px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row input {
    margin-bottom: 0;
}

.form-error {
    color: var(--danger);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 1.2rem;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--gold);
    text-align: center;
}

.modal-content input {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    /* Lighter input bg */
    color: white;
    font-size: 1rem;
}

.modal-content input:focus {
    border-color: var(--y2k-pink);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    box-shadow: 0 0 15px rgba(255, 0, 128, 0.3);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--y2k-pink), var(--y2k-purple));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 128, 0.3);
    margin-top: 1rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 0, 128, 0.6);
    filter: brightness(1.2);
}

/* Specific styling for Verify Deposit button */
#btnCheckDeposit {
    background: linear-gradient(135deg, #00E676, #00C853);
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
}

#btnCheckDeposit:hover {
    box-shadow: 0 6px 25px rgba(0, 230, 118, 0.6);
}

/* Styling for Generate Address button */
#btnGenerateAddress {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--gold), #b8860b);
    border: none;
    border-radius: 12px;
    color: #000;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    margin-top: 1rem;
}

#btnGenerateAddress:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.6);
    filter: brightness(1.1);
}

.deposit-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.deposit-option {
    flex: 1;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.deposit-option:hover,
.deposit-option.selected {
    border-color: var(--gold);
}

/* ===== Game Modals ===== */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.game-modal-content {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2rem;
    max-width: 900px;
    width: 100%;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.game-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.game-modal-header h2 {
    color: var(--gold);
}

.btn-close-game {
    padding: 0.5rem 1rem;
    background: var(--danger);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
}

/* ===== Leaderboard Y2K Premium ===== */
.leaderboard-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.leaderboard-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--y2k-pink), var(--y2k-blue), transparent);
    opacity: 0.5;
}

.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--y2k-purple), var(--y2k-pink));
    border-color: var(--y2k-pink);
    color: #fff;
    box-shadow: 0 8px 25px rgba(255, 0, 255, 0.3);
    transform: translateY(-2px);
}

.tab-btn:hover {
    border-color: var(--y2k-blue);
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

/* Leaderboard Container */
.leaderboard-container {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: var(--glass-blur);
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Leaderboard Entry Cards */
.leaderboard-entry {
    display: grid;
    grid-template-columns: 80px 60px 1fr auto auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.leaderboard-entry:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.leaderboard-entry:last-child {
    border-bottom: none;
}

/* Rank Badge */
.rank-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    position: relative;
    flex-shrink: 0;
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), inset 0 2px 10px rgba(255, 255, 255, 0.5);
    animation: pulse-gold 2s ease-in-out infinite;
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #000;
    box-shadow: 0 0 25px rgba(192, 192, 192, 0.5), inset 0 2px 10px rgba(255, 255, 255, 0.5);
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #e89b5a);
    color: #000;
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.5), inset 0 2px 10px rgba(255, 255, 255, 0.3);
}

.rank-badge.rank-other {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 1.2rem;
}

@keyframes pulse-gold {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), inset 0 2px 10px rgba(255, 255, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.8), inset 0 2px 15px rgba(255, 255, 255, 0.7);
    }
}

/* Player Avatar */
.player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--glass-border);
    flex-shrink: 0;
}

/* Player Name Link */
.player-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.player-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--y2k-pink), var(--y2k-blue));
    transition: width 0.3s ease;
}

.player-name:hover {
    color: var(--y2k-blue);
    transform: translateX(3px);
}

.player-name:hover::after {
    width: 100%;
}

/* Stats Display */
.player-stat {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--y2k-green);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
    min-width: 120px;
    text-align: right;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.25rem;
}

/* ===== Multiplayer Lobby ===== */
.lobby-controls {
    text-align: center;
    margin-bottom: 2rem;
}

.bet-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.bet-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
    cursor: pointer;
}

.bet-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--success);
    min-width: 100px;
}

.finding-match {
    animation: pulse 1.5s infinite;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .wallet-display {
        order: 3;
        width: 100%;
    }

    .hero h2 {
        font-size: 2rem;
    }
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #13141f;
    border: 1px solid var(--gold);
    padding: 1rem;
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    animation: slideInLeft 0.5s ease;
    min-width: 250px;
}

@keyframes slideInLeft {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}