
:root {
    --primary-gold: #ffcc33;
    --primary-orange: #ff5e00;
    --bg-dark: #050505;
    --bg-surface: #121214;
    --text-white: #ffffff;
    --text-dim: #999999;
    --accent: #ffd700;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

/* Navbar */
nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 1.5rem 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    backdrop-filter: blur(5px);
}

.nav-left { display: flex; align-items: center; gap: 15px; }
.nav-logo { width: 50px; height: 50px; }
.nav-title { font-size: 1.8rem; font-weight: 800; background: linear-gradient(to right, #fff, var(--primary-gold)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav-right { display: flex; gap: 40px; align-items: center; }
.menu-items { display: flex; gap: 30px; align-items: center; }
.nav-right a:not(.play-nav-btn) { 
    color: var(--text-white); 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.95rem; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 16px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}
.nav-right a:not(.play-nav-btn):hover { 
    color: var(--primary-gold); 
    background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
    display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer;
}

.play-nav-btn {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
    color: #000 !important;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(255, 94, 0, 0.4);
}
.play-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 94, 0, 0.6);
}

/* Hero Section with Game loading asset */
.hero {
    height: 100vh;
    background: url('assets/loading.jpg') top center/cover no-repeat;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 30%;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

.hero-content {
    max-width: 700px; z-index: 10;
    animation: fadeInUp 1s ease-out;
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 20px;
    backdrop-filter: blur(2px);
}

.hero-content h1 { 
    font-size: 4.5rem; 
    line-height: 1.1; 
    margin-bottom: 20px; 
    font-weight: 900; 
    color: #fff;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.hero-content p { font-size: 1.25rem; color: #ddd; margin-bottom: 40px; }

.cta-btn {
    padding: 1.25rem 3.5rem; font-size: 1.1rem; font-weight: 800;
    color: #000; background: var(--primary-gold);
    border: none; border-radius: 50px; cursor: pointer; transition: 0.3s;
}

.cta-btn:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(255, 204, 51, 0.5); }

/* Feature section with Game background asset */
#gameplay {
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('assets/game_bg.jpg') center/cover no-repeat;
    background-attachment: fixed;
}

.section-title { font-size: 3rem; text-align: center; margin-bottom: 60px; font-weight: 800; }

.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.feature-img { width: 100%; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.feature-text h3 { font-size: 2rem; margin-bottom: 20px; color: var(--primary-gold); }
.feature-text p { font-size: 1.1rem; color: var(--text-dim); margin-bottom: 20px; line-height: 1.8; }

/* Recharge Section */
.recharge-bg { background-color: var(--bg-surface); padding: 100px 10%; position: relative; }

.recharge-desc { text-align: center; max-width: 800px; margin: 0 auto 50px; color: var(--text-dim); font-size: 1.1rem; }

.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

.tier-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 24px; padding: 40px 30px; text-align: center; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; overflow: hidden;
}

.tier-card:hover { transform: translateY(-10px); border-color: var(--primary-gold); background: rgba(255,255,255,0.06); }

.tier-card i { font-size: 2.5rem; margin-bottom: 20px; display: block; }
.diamonds-amount { font-size: 2.5rem; font-weight: 800; margin-bottom: 10px; }
.diamonds-bonus { background: var(--primary-orange); color: #fff; font-size: 0.8rem; padding: 4px 12px; border-radius: 20px; margin-bottom: 20px; display: inline-block; }
.price-tag { font-size: 1.5rem; font-weight: 600; color: var(--primary-gold); margin-bottom: 30px; }

.buy-btn { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--primary-gold); background: transparent; color: var(--primary-gold); font-weight: 700; cursor: pointer; transition: 0.3s; }
.buy-btn:hover { background: var(--primary-gold); color: #000; }

.popular-tag { position: absolute; top: 20px; right: -30px; background: #e33; color: #fff; padding: 5px 40px; transform: rotate(45deg); font-size: 0.8rem; font-weight: bold; }

/* Footer */
footer { padding: 60px 10% 40px; border-top: 1px solid var(--border); background: #080808; }
.footer-top { display: flex; justify-content: space-between; margin-bottom: 50px; }
.footer-brand h4 { font-size: 1.5rem; margin-bottom: 15px; }
.footer-links a { color: var(--text-dim); text-decoration: none; margin-bottom: 10px; display: block; font-size: 0.9rem; transition: 0.3s; }
.footer-links a:hover { color: #fff; }

.footer-bottom { border-top: 1px solid var(--border); padding-top: 30px; display: flex; justify-content: space-between; font-size: 0.9rem; color: #666; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .features-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1rem; }
    .hero { padding: 0 5%; align-items: center; text-align: center; background-position: top center; }
    
    .menu-toggle { display: block; }
    .menu-items {
        display: none;
        position: fixed; top: 80px; left: 0; width: 100%;
        background: rgba(18, 18, 20, 0.98); flex-direction: column;
        padding: 40px 20px; gap: 20px; border-bottom: 1px solid var(--border);
        backdrop-filter: blur(10px);
    }
    .menu-items a { width: 100%; text-align: center; padding: 15px !important; }
    .menu-items.active { display: flex; }
    
    .nav-right { gap: 15px; }
    .nav-right a { font-size: 0.8rem; }
    .nav-title { font-size: 1.2rem; }
    .play-nav-btn { padding: 6px 16px; }
}

@media (max-width: 600px) {
    nav { padding: 1rem 3%; }
    .nav-right { gap: 10px; }
    .hero-content h1 { font-size: 2.2rem; }
    .nav-title { display: none; }
}

/* Payment Modal */
.pay-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); z-index: 2000; display: none;
    justify-content: center; align-items: center;
}
.pay-content {
    background: var(--bg-surface); padding: 40px; border-radius: 30px; border: 1px solid var(--border);
    max-width: 450px; width: 90%; text-align: center;
}
.qr-container { padding: 20px; background: #fff; border-radius: 20px; margin: 20px 0; display: flex; justify-content: center; }
.loading-spinner { width: 40px; height: 40px; border: 4px solid var(--primary-gold); border-top-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
