:root {
    --bg-dark: #050505;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent-color: #8a2be2; /* Violet Néon */
    --accent-glow: rgba(138, 43, 226, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --font-gta: 'Russo One', sans-serif; /* Remplacement propre pour Pricedown */
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    background-color: var(--bg-dark); /* Assure un fond noir pendant le fondu */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    opacity: 0; /* Page invisible au départ pour le fondu */
    transition: opacity 0.5s ease-in-out; /* Ajout de la transition fluide */
}

/* --- Iframe Integration Mode --- */
.in-iframe {
    background-color: rgba(5, 5, 5, 0.95) !important; /* Fond semi-transparent */
}

.in-iframe .glass-header {
    width: 100%;
    border-radius: 0;
    top: 0;
    border-top: none;
    border-left: none;
    border-right: none;
}

/* --- Background & Effects --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.ambient-light {
    position: fixed;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: floatLight 10s infinite alternate;
}

@keyframes floatLight {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, 100px); }
}

/* --- Typography --- */
.gta-font {
    font-family: var(--font-gta);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight {
    color: var(--accent-color);
    text-shadow: 0 0 15px var(--accent-glow);
}

.text-gradient {
    background: linear-gradient(45deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Header & Nav --- */
.glass-header {
    position: sticky;
    top: 20px;
    width: 90%;
    margin: 0 auto;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    z-index: 1000;
    padding: 15px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    color: white;
}

.desktop-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* --- Buttons --- */
.btn-primary {
    background: var(--accent-color);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    box-shadow: 0 0 20px var(--accent-glow);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s;
    margin-right: 10px;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: -100px; /* Counteract header margin */
    padding-top: 100px;
}

.hero-content h1 {
    font-size: 4rem;
    margin: 20px 0;
    line-height: 1.1;
}

.hero-content p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.badge-premium {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border: 1px solid var(--glass-border);
}

/* --- Shop Grid --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    border-left: 5px solid var(--accent-color);
    padding-left: 20px;
}

.grid-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

/* --- Product Cards (Liquid Glass) --- */
.card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 30px var(--accent-glow), 0 0 10px var(--accent-color);
}

.card-img-container {
    height: 180px;
    background: rgba(0,0,0,0.3);
    border-radius: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.1);
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    height: 40px; /* Fixed height for alignment */
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-family: var(--font-gta);
    font-size: 1.2rem;
    color: white;
}

.btn-buy {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: black;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.btn-buy:hover {
    background: var(--accent-color);
    color: white;
    transform: rotate(90deg);
}

/* --- Modals & Popups --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-glass {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 30px;
    width: 90%;
    max-width: 800px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 0 50px rgba(138, 43, 226, 0.2);
}

.modal-overlay.active .modal-glass {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.coins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.coin-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
}

.coin-card:hover {
    background: var(--accent-color);
    border-color: transparent;
    transform: translateY(-5px);
}

.coin-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ffd700;
}

.popular {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

.badge-pop {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
}

/* --- Payment UI --- */
.payment-methods {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pay-btn {
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
}

.pay-btn:hover {
    background: white;
    color: black;
}

/* --- Footer --- */
.glass-footer {
    border-top: 1px solid var(--glass-border);
    background: black;
    padding: 50px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.socials a {
    color: white;
    font-size: 1.5rem;
    margin-left: 20px;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--accent-color);
}

/* --- Mobile Responsive --- */
.burger-menu, .mobile-menu { display: none; }

@media (max-width: 768px) {
    .desktop-nav, .header-actions { display: none; }
    .burger-menu { display: block; font-size: 1.5rem; cursor: pointer; }
    
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100%;
        background: rgba(10,10,10,0.95);
        backdrop-filter: blur(20px);
        z-index: 999;
        padding-top: 100px;
        transition: 0.4s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mobile-menu.active { right: 0; }

    .mobile-menu a {
        color: white;
        text-decoration: none;
        font-size: 1.5rem;
        margin: 20px 0;
        font-family: var(--font-gta);
    }

    .hero-content h1 { font-size: 2.5rem; }
    .glass-header { width: 95%; }
}
