:root {
    --background: #020202;
    --surface: #0a0a0a;
    --primary: #d4af37;
    /* Gold */
    --primary-glow: rgba(212, 175, 55, 0.4);
    --secondary: #8b0000;
    /* Deep Red */
    --text: #ffffff;
    --text-muted: #888888;
    --border: rgba(255, 255, 255, 0.05);
    --glass: rgba(15, 15, 15, 0.7);
}

body {
    margin: 0;
    font-family: 'Inter', 'Outfit', sans-serif;
    background: radial-gradient(circle at top, #1a0505 0%, #020202 70%);
    color: var(--text);
    display: block;
    min-height: 100vh;
    padding-top: 80px;
    /* Offset for fixed navbar */
    overflow-x: hidden;
}

/* Glassmorphism Effect */
.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
}

/* Navbar Premium */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    padding: 1.2rem 3rem;
    border-bottom: 1px solid var(--border);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.nav-logo {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(to right, #d4af37, #f7e1ad, #d4af37);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.nav-btn {
    background: linear-gradient(135deg, #d4af37 0%, #a67c00 100%);
    color: #000;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    text-decoration: none;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    filter: brightness(1.1);
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 4rem 2rem 4rem;
    text-align: center;
}

.hero h1 {
    font-size: 6rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: -3px;
    line-height: 0.9;
    background: linear-gradient(180deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 2rem 0 3rem;
}

/* Game Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto 6rem;
    padding: 0 4rem;
}

.card {
    position: relative;
    border-radius: 24px;
    padding: 3rem;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
    overflow: hidden;
    text-align: left;
}

.card:hover {
    transform: translateY(-15px);
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(20, 20, 20, 0.9);
}

.card h3 {
    font-size: 1.8rem;
    margin: 0 0 1rem 0;
    color: #fff;
    font-weight: 700;
}

.card p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.card-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s;
}

.card:hover .card-btn {
    background: var(--primary);
    color: #000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero,
.card {
    animation: fadeIn 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* User Menu Pro */
.nav-user {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-display {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-display:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.user-balance {
    font-weight: 800;
    color: var(--primary);
    background: rgba(212, 175, 55, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.user-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.user-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
}

/* Dropdown Pro */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 15px);
    min-width: 200px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    overflow: visible;
    /* Changed to visible for the pseudo-element */
    padding: 0.5rem;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 25px;
    background: transparent;
}

.dropdown:hover .dropdown-content {
    display: block;
    transform: translateY(0);
}

.dropdown-content a {
    color: var(--text-muted);
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-content a.admin-link {
    color: #ef4444;
}

.dropdown-content a.admin-link:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Luxury Divider */
.divider {
    height: 1px;
    width: 100px;
    background: var(--primary);
    margin: 2rem auto;
}