:root {
    --primary: #7000ff;
    --accent: #00e5ff;
    --bg-dark: #07070a;
    --card-bg: rgba(18, 18, 28, 0.65);
    --text-main: #ffffff;
    --text-muted: #a0a0b8;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography & Neon */
.neon-text {
    color: #fff;
    text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary), 0 0 40px var(--primary);
    font-weight: 800;
    letter-spacing: 2px;
}
.neon-text-cyan {
    color: #fff;
    text-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent), 0 0 40px var(--accent);
    font-weight: 800;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Header / Nav */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-shadow: 0 0 5px var(--primary);
}

nav {
    display: flex;
    align-items: center;
}

.rate-container {
    margin-right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-container label {
    font-weight: 600;
    color: var(--accent);
}

.rate-container input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: white;
    padding: 0.4rem;
    border-radius: 6px;
    width: 80px;
    font-family: inherit;
    font-weight: bold;
}

.rate-container input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(0, 85, 255, 0.15) 0%, var(--bg-dark) 70%);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), #a200ff);
    color: #fff;
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.5);
    border: 2px solid transparent;
}

.primary-btn:hover {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.6), inset 0 0 15px rgba(0, 229, 255, 0.3);
    transform: translateY(-2px);
}

.action-btn {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
    margin-top: 1rem;
    display: block;
    text-align: center;
}

.action-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
}

/* Catalog */
.catalog-section {
    padding: 5rem 5%;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.glassmorphism {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.game-card {
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.2);
    border-color: rgba(0, 229, 255, 0.4);
}

.card-header {
    height: 160px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 1rem 1.5rem;
    position: relative;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(10,10,15,0.9), rgba(10,10,15,0.1));
}

.card-header h3 {
    position: relative;
    z-index: 1;
    font-size: 1.8rem;
    font-weight: 800;
}

.card-body {
    padding: 1.5rem;
}

.highlight-offer {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent);
    padding: 0.8rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 229, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
}

/* Package Grid Buttons */
.package-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.package-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(0,0,0,0.4));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 5px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.package-btn:hover {
    background: rgba(0, 229, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.15), inset 0 0 10px rgba(0, 229, 255, 0.1);
}

.package-amount {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.package-price {
    color: var(--accent);
    font-weight: 800;
    font-size: 1.15rem;
}

.package-btn.promo {
    background: rgba(0, 85, 255, 0.15);
    border-color: var(--primary);
}

.package-btn.promo:hover {
    background: rgba(0, 229, 255, 0.2);
    border-color: var(--accent);
}


/* Zinli Section */
.special-section {
    padding: 2rem 5% 5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.premium-card {
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    align-items: center;
    min-height: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(0, 85, 255, 0.3);
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 85, 255, 0.4);
    border-color: rgba(0, 229, 255, 0.5);
}

.zinli-content h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.8rem;
}

.zinli-content p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: rgba(5, 5, 8, 1);
    padding: 2.5rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.3rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent);
}

/* WhatsApp FAB */
.fab-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.fab-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }
    nav a {
        margin: 0 1rem;
    }
    .premium-card {
        padding: 2rem;
        text-align: center;
        justify-content: center;
    }
    .game-page-layout {
        grid-template-columns: 1fr;
    }
    .checkout-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

/* --- Game Page Layout (Homero Style) --- */
.game-hero {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
.game-hero img {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    object-fit: cover;
}

.game-page-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 25px;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 5%;
}

.packages-col .glass-box {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}
.packages-col .package-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.package-btn {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    padding: 15px 20px;
    align-items: center;
    background: rgba(0,0,0,0.3);
}

.checkout-sidebar {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    position: sticky;
    top: 90px;
    height: fit-content;
}
.sidebar-section {
    margin-bottom: 25px;
}
.sidebar-section h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
}
.input-field {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    font-family: inherit;
}
.input-field:focus {
    outline: none;
    border-color: #f3ba2f; /* Gold accent like Homero */
}

/* --- Cart Styles --- */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}
.cart-item:hover {
    border-color: rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.05);
}
.cart-item-details {
    display: flex;
    flex-direction: column;
}
.cart-item-name {
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--text-main);
}
.cart-item-price {
    font-size: 0.85rem;
    color: #f3ba2f;
    font-weight: bold;
}
.cart-item-remove {
    background: transparent;
    border: none;
    color: #ff3366;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    padding: 5px;
}
.cart-item-remove:hover {
    color: #ff4a4a;
    transform: scale(1.2);
}

/* Hub Catalog Grid */
.hub-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.hub-card {
    display: block;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, rgba(20,20,30,0.8), rgba(10,10,15,0.9));
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,229,255,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.hub-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(0,229,255,0.2), 0 0 15px rgba(0,229,255,0.4) inset;
}
.hub-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.hub-card:hover img {
    transform: scale(1.1);
}
.hub-card .title {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Overlays & Modals (Keeping just for simple alerts if needed) */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 5, 8, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    width: 90%;
    max-width: 450px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}
.close-modal:hover { color: var(--text-main); }
.error-msg {
    color: #ff3366 !important;
    margin-top: 5px;
    display: none;
    font-size: 0.85rem;
}

/* --- NEW FEATURES: BACKGROUND, TOP BAR, MODALS --- */

/* Page Background Overlay */
.page-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
    opacity: 0.2; /* Subtle so it doesn't overpower the UI */
    transition: background-image 0.5s ease-in-out;
}
.page-bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.4), rgba(10, 10, 15, 1));
    z-index: -1;
}

/* Top Alert Bar */
.top-alert-bar {
    background: #1a1515;
    color: #ff4a4a;
    font-size: 0.85rem;
    padding: 8px 0;
    text-align: center;
    font-weight: bold;
    border-bottom: 2px solid #ff4a4a;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.top-alert-bar marquee {
    width: 100%;
    max-width: 800px;
    color: #f3ba2f; /* Warning yellow */
}

/* NVL Advanced Modals */
.nvl-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.nvl-modal {
    background: #191c29; /* Dark blueish grey from reference */
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    animation: slideUp 0.3s ease-out;
    border: 1px solid rgba(255,255,255,0.05);
}

.nvl-modal-header {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

.nvl-modal-header h3 {
    margin: 0;
    color: #f3ba2f; /* Orange/Yellow from ref */
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.nvl-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: 1px solid rgba(255, 74, 74, 0.3);
    color: #ff4a4a;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.nvl-close-btn:hover {
    background: rgba(255, 74, 74, 0.1);
    box-shadow: 0 0 10px rgba(255, 74, 74, 0.4);
}

.nvl-modal-body {
    padding: 20px;
    overflow-y: auto;
}

/* Modal Info Boxes */
.modal-info-box {
    background: #12141f;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}
.modal-info-box h4 {
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}
.modal-info-box.blue { border-left: 3px solid #00e5ff; }
.modal-info-box.blue h4 { color: #00e5ff; }
.modal-info-box.green { border-left: 3px solid #00ff88; }
.modal-info-box.green h4 { color: #00ff88; }
.modal-info-box.orange { border-left: 3px solid #ff6a00; border-color: #ff6a00; }
.modal-info-box.orange h4 { color: #ff6a00; }
.modal-info-box.red { border-left: 3px solid #ff4a4a; border-color: #ff4a4a; background: rgba(255, 74, 74, 0.05); }
.modal-info-box.red h4 { color: #ff4a4a; }

.modal-info-box p {
    margin: 0;
    font-size: 0.9rem;
    color: #aeb4ca;
    line-height: 1.5;
}
.modal-info-box p strong {
    color: white;
}

.nvl-modal-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    background: #12141f;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}
.checkbox-container input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.checkbox-container label {
    font-size: 0.9rem;
    color: #ccc;
    cursor: pointer;
    flex: 1;
}

.btn-accept-terms {
    width: 100%;
    padding: 15px;
    background: #2a2f45;
    color: #6c7592;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: not-allowed;
    transition: all 0.3s;
}
.btn-accept-terms.enabled {
    background: #394263;
    color: white;
    cursor: pointer;
}
.btn-accept-terms.enabled:hover {
    background: #47527a;
    box-shadow: 0 0 15px rgba(255,255,255,0.1);
}

/* Video Template */
.video-placeholder {
    width: 100%;
    height: 300px;
    background: black;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #555;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-success {
    width: 100%;
    padding: 15px;
    background: #0b2e21;
    color: #00d178;
    border: 1px solid #00d178;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.btn-success:hover {
    background: #0f3d2c;
    box-shadow: 0 0 15px rgba(0, 184, 106, 0.4);
}

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