
/* ==========================================================================
   1. VARIABLES & BASE SETUP
   ========================================================================= */
html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-dark: #060814;
    --bg-surface: #0b1126;
    --bg-card: #121b3a;
    
    /* Neon Key Tiers Color */
    --accent-myth: #ff4500; /* Orange-Red Lava Glow */
    --accent-basic: #a1b0cb;
    --accent-legendary: #ffd700;
    --accent-supreme: #9b51e0;
    --accent-limited: #ff2a5f;
    --accent-blue: #00d2ff;
    --accent-green: #00f59b;
    
    --text-main: #ffffff;
    --text-muted: #8fa0dd;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

/* ==========================================================================
   2. NAVBAR INTEGRATION
   ========================================================================= */
nav {
    background-color: rgba(6, 8, 20, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid #142046;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 10%;
}

.nav-logo { font-size: 26px; font-weight: 900; letter-spacing: 2px; text-shadow: 0 0 10px rgba(0, 210, 255, 0.6); }
.nav-links { display: flex; gap: 35px; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 700; font-size: 15px; text-transform: uppercase; }
.active-link { color: var(--accent-blue) !important; border-bottom: 2px solid var(--accent-blue); padding-bottom: 4px; }

/* ==========================================================================
   3. CONTAINMENT & LAYOUT
   ========================================================================= */
.container {
    max-width: 1200px;
    margin: 150px auto 80px auto;
    padding: 0 40px;
}

.back-to-shop { text-align: left; margin-bottom: 20px; }
.back-to-shop a { color: var(--accent-blue); text-decoration: none; font-weight: 700; font-size: 14px; }

.shop-title {
    font-size: 3.2rem; font-weight: 900; text-align: center; text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 30%, #a5ccff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 10px;
}

.shop-subtitle { text-align: center; color: var(--text-muted); max-width: 700px; margin: 0 auto 50px auto; }

.section-divider {
    text-align: left; font-size: 1.4rem; font-weight: 800; letter-spacing: 1px; margin: 40px 0 25px 0;
}
.bundle-title { color: #ff9f43; text-shadow: 0 0 10px rgba(255, 159, 67, 0.3); }
.single-title { color: var(--accent-blue); text-shadow: 0 0 10px rgba(0, 210, 255, 0.3); }

/* --- GRID GENERATOR --- */
.keys-grid { display: grid; gap: 30px; width: 100%; }
.bundle-section { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.single-section { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* ==========================================================================
   4. CARD ARCHITECTURE
   ========================================================================= */
.key-card {
    background: linear-gradient(145deg, var(--bg-surface) 0%, var(--bg-card) 100%);
    border: 2px solid #15224f; border-radius: 24px; padding: 35px 25px;
    display: flex; flex-direction: column; position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); transition: transform 0.3s, border-color 0.3s;
}
.key-card:hover { transform: translateY(-5px); }

/* --- BUNDLE GLOW COLOR --- */
.basic-bundle:hover { border-color: var(--accent-basic); box-shadow: 0 15px 35px rgba(161, 176, 203, 0.15); }
.legendary-bundle { border-color: rgba(255, 215, 0, 0.15); }
.legendary-bundle:hover { border-color: var(--accent-legendary); box-shadow: 0 15px 35px rgba(255, 215, 0, 0.2); }
.supreme-bundle { border-color: rgba(155, 81, 224, 0.15); }
.supreme-bundle:hover { border-color: var(--accent-supreme); box-shadow: 0 15px 35px rgba(155, 81, 224, 0.2); }

/* --- SINGLE CARD COLOR --- */
.tier-legendary:hover { border-color: var(--accent-legendary); box-shadow: 0 15px 30px rgba(255, 215, 0, 0.1); }
.tier-supreme:hover { border-color: var(--accent-supreme); box-shadow: 0 15px 30px rgba(155, 81, 224, 0.1); }
.tier-limited:hover { border-color: var(--accent-limited); box-shadow: 0 15px 30px rgba(255, 42, 95, 0.15); }

/* --- BADGES --- */
.bonus-badge {
    position: absolute; top: -14px; right: 20px; background: #00f59b; color: #000;
    font-size: 10px; font-weight: 900; padding: 5px 12px; border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 245, 155, 0.3); letter-spacing: 0.5px;
}

/* --- TEXT INLINE HEADERS --- */
.pass-header, .key-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.key-icon { font-size: 2.2rem; }
.key-title-inline { display: flex; align-items: center; }
.key-name { font-size: 20px; font-weight: 800; color: #ffffff; }

/* Custom Text Color berdasarkan Tier */
.tier-legendary .key-name, .legendary-bundle .key-name { color: var(--accent-legendary); }
.tier-supreme .key-name, .supreme-bundle .key-name { color: var(--accent-supreme); }
.tier-limited .key-name { color: var(--accent-limited); }
.tier-myth:hover { 
    border-color: var(--accent-myth); 
    box-shadow: 0 15px 30px rgba(255, 69, 0, 0.2); 
}

.tier-myth .key-name { 
    color: var(--accent-myth); 
    text-shadow: 0 0 8px rgba(255, 69, 0, 0.3);
}

/* --- PRICING --- */
.price-tag { display: flex; flex-direction: column; margin-bottom: 20px; }
.old-price { font-size: 13px; color: #475569; text-decoration: line-through; font-weight: 600; }
.current-price { font-size: 26px; font-weight: 900; color: #ffffff; }
.unit { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* --- LISTS & DESCRIPTION --- */
.key-details { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; flex-grow: 1; }
.key-details li { font-size: 14px; color: #cbd5e1; padding-left: 18px; position: relative; }
.key-details li::before { content: "•"; position: absolute; left: 0; color: var(--accent-blue); font-weight: bold; }

.key-desc { font-size: 13.5px; color: var(--text-muted); margin-bottom: 30px; flex-grow: 1; line-height: 1.5; }

.highlight { color: #ffffff; font-weight: 700; }
.highlight-bonus { color: var(--accent-green); font-weight: 700; }
.perk-note { font-style: italic; color: #64748b !important; }

/* --- INTERACTIVE ACTION BUTTON --- */
.buy-link { text-decoration: none; width: 100%; display: block; }
.buy-btn {
    width: 100%; background: #ffffff; color: #060814; border: none; padding: 13px;
    border-radius: 12px; font-size: 14px; font-weight: 800; cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}
.buy-btn:hover { background-color: #e2e8f0; }
.buy-btn:active { transform: scale(0.98); }

.basic-bundle .buy-btn { background: var(--accent-basic); color: #000; }
.legendary-bundle .buy-btn { background: var(--accent-legendary); color: #000; }
.supreme-bundle .buy-btn { background: var(--accent-supreme); color: #fff; }

.normal-btn { background: transparent; border: 2px solid #1d2d5f; color: #ffffff; }
.normal-btn:hover { background: #1d2d5f; }

/* ==========================================================================
   5. RESPONSIVE LAYER (FIXED FOR MOBILE)
   ========================================================================= */
@media (max-width: 768px) {
    /* 1. Fix Navbar Mobile (Tidak Hilang, Bisa Di-swipe Kesamping) */
    nav { 
        padding: 15px 5% !important; 
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .nav-links { 
        display: flex !important; 
        overflow-x: auto;
        width: 100%;
        gap: 18px;
        padding-bottom: 6px;
        white-space: nowrap;
    }

    .nav-links a {
        font-size: 13px;
    }

    /* 2. Fix Jarak & Padding Container */
    .container { 
        margin-top: 130px; 
        padding: 0 18px; 
    }

    .shop-title { 
        font-size: 2.2rem; 
    }

    .shop-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .section-divider {
        font-size: 1.15rem;
        margin: 30px 0 20px 0;
    }

    /* 3. Fix Grid Card Bundle & Single Key (Aman dari Overflow) */
    .bundle-section, 
    .single-section { 
        grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)) !important; 
        gap: 20px;
    }

    .key-card {
        padding: 25px 18px;
    }
}

@media (max-width: 480px) {
    .shop-title {
        font-size: 1.8rem;
    }
    
    .current-price {
        font-size: 22px;
    }
}
