:root { 
    --bg: #000; 
    --purple: #a855f7; 
    --blue: #38bdf8; 
    --text: #e5e7eb; 
    --card: rgba(10, 0, 26, 0.6); 
    --border: rgba(168, 85, 247, 0.3); 
    --header-h: 80px; 
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'JetBrains Mono', monospace; 
    scroll-behavior: smooth; 
}

/* =========================================
   🚀 1. STRICT VIEWPORT LOCK
   ========================================= */
html, body { 
    background: var(--bg); 
    color: var(--text); 
    overflow-x: clip; 
    width: 100%; 
    max-width: 100vw; 
    line-height: 1.6; 
    position: relative;
    -webkit-text-size-adjust: 100%;
}

.main-bg-video { 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; 
    height: 100vh; 
    object-fit: cover; 
    z-index: 0; 
    opacity: 0.15; 
    pointer-events: none; 
    filter: brightness(1.2) contrast(1.1);
}

#mainContent { position: relative; z-index: 10; }

/* Animations & Loader */
@keyframes fadeInPage { 0% { opacity: 0; transform: translateY(25px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes fadeOutPage { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-25px); } }
@keyframes scaleIn { 0% { opacity: 0; transform: scale(0.92); } 100% { opacity: 1; transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
/* FIXED: Continuous leftward scroll */
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

#loader { position: fixed; inset: 0; background: #000; z-index: 9999999; display: flex; justify-content: center; align-items: center; transition: 0.5s; pointer-events: none; }
.spinner { width: 50px; height: 50px; border: 4px solid rgba(168, 85, 247, 0.1); border-top-color: var(--purple); border-radius: 50%; animation: spin 1s linear infinite; }

.page { display: none; width: 100%; min-height: 100vh; padding-top: var(--header-h); opacity: 0; position: relative; z-index: 10; background: transparent !important; }
.page.active { display: block; animation: fadeInPage 0.4s ease-out forwards; }
.page.fade-out { display: block; animation: fadeOutPage 0.3s ease-in forwards; pointer-events: none; }

#topBanner { text-align: center; padding: 10px 15px; font-weight: bold; font-size: 0.95rem; z-index: 1000000; position: fixed; top: 0; left: 0; right: 0; display: none; transition: background 0.3s, color 0.3s; transform: translate3d(0,0,0); }

/* =========================================
   🛠️ 2. CSS GRID HEADER
   ========================================= */
#landingHeader { 
    position: fixed; top: 0; left: 0; right: 0; height: 80px; 
    background: rgba(10, 0, 26, 0.85); border-bottom: 2px solid var(--purple); 
    z-index: 999999; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); 
    transition: top 0.3s; transform: translate3d(0,0,0);
}

.main-nav { 
    display: grid; grid-template-columns: max-content 1fr max-content; 
    align-items: center; width: 100%; height: 100%; 
    padding: 0 max(1rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left)); gap: 10px;
}

.nav-left { grid-column: 1; display: flex; align-items: center; }
.nav-middle { grid-column: 2; display: flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; transition: 0.3s; cursor: pointer; }
.nav-middle:hover { transform: scale(1.05); }
.nav-right { grid-column: 3; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

.header-gif { height: 40px; width: auto; object-fit: contain; border-radius: 6px; border: 1px solid var(--purple); display: block; margin: 0; }
.header-team-text { font-weight: 800; font-size: 1.3rem; text-shadow: 0 0 10px var(--purple); color: #fff; margin: 0; padding-top: 3px; }

.thin-search-input { width: 220px; background: rgba(255,255,255,0.08); color: white; border: 1.5px solid var(--purple); padding: 10px 15px; border-radius: 10px; font-size: 0.9rem; outline: none; transition: 0.3s; }
.ctrl-btn { background: rgba(168,85,247,0.1); border: 1.5px solid var(--purple); color: white; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 0.85rem; transition: 0.3s; white-space: nowrap; }
.ctrl-btn:hover { background: var(--purple); color: #000; }
.hamburger-icon { font-size: 2.2rem; color: var(--purple); cursor: pointer; padding: 0 5px; }

/* =========================================
   📱 3. SIDE MENU
   ========================================= */
.side-menu { 
    position: fixed; top: var(--header-h); width: 320px; height: calc(100vh - var(--header-h)); 
    background: #080015; z-index: 999998; transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1); 
    overflow-y: auto; opacity: 0; pointer-events: none; transform: translate3d(0,0,0);
}
html[dir="rtl"] .side-menu { right: 0; left: auto; border-left: 3px solid var(--purple); clip-path: inset(0 0 0 100%); }
html[dir="ltr"] .side-menu { left: 0; right: auto; border-right: 3px solid var(--purple); clip-path: inset(0 100% 0 0); }
.side-menu.open { opacity: 1 !important; pointer-events: auto !important; clip-path: inset(0 0 0 0) !important; transform: none !important; }
.menu-link { display: block; padding: 20px 40px; color: white; text-decoration: none; font-size: 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.05); transition: 0.3s; }

/* =========================================
   🖼️ HERO SECTION & QUICK LINKS
   ========================================= */
.hero-container { width: 100%; max-width: 100%; position: relative; margin: 0; padding: 0; overflow: hidden; display: block; }
.hero-img { width: 100%; height: auto; max-height: none; object-fit: cover; display: block; border-bottom: 2px solid var(--purple); box-shadow: 0 10px 40px rgba(168,85,247,0.3); transition: filter 0.4s; }
.hero-img:hover { filter: brightness(1.1); }

.quick-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 20px; max-width: 1200px; margin: 30px auto; padding: 0 20px; }
.quick-link-card { aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; cursor: pointer; border: 2px solid var(--purple); box-shadow: 0 5px 20px rgba(168,85,247,0.2); transition: 0.3s; background: #0a001a; }
.quick-link-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(56, 189, 248, 0.5); border-color: var(--blue); }
.quick-link-card img { width: 100%; height: 100%; object-fit: cover; }

.hero-actions { display: flex; gap: 20px; margin-top: 30px; justify-content: center; padding: 0 20px; width: 100%; max-width: 700px; margin-bottom: 2rem; margin-left: auto; margin-right: auto; }
.hero-main-btn, .hero-alt-btn { flex: 1; padding: 18px; border-radius: 12px; font-size: 1.1rem; font-weight: 800; cursor: pointer; transition: 0.3s; border: none; text-align: center; }
.hero-main-btn { background: linear-gradient(135deg, var(--purple), #c084fc); color: #000; box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); }
.hero-main-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(168, 85, 247, 0.8); }
.hero-alt-btn { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); color: #fff; border: 1px solid var(--purple); }
.hero-alt-btn:hover { background: rgba(168, 85, 247, 0.2); transform: translateY(-3px); }

/* =========================================
   🛍️ PRODUCT GRID
   ========================================= */
.section-header { text-align: center; padding: 3rem 0 1rem 0; }
#pageTitle { font-size: 3rem; color: var(--blue); text-shadow: 0 0 20px rgba(56,189,248,0.4); }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 15px; max-width: 1400px; margin: 0 auto; }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; padding: 40px; } }

.card { background: var(--card); border: 1px solid rgba(168, 85, 247, 0.2); border-radius: 20px; overflow: hidden; transition: 0.4s; cursor: pointer; display: flex; flex-direction: column; opacity: 0; animation: scaleIn 0.5s ease forwards; box-shadow: 0 10px 30px rgba(0,0,0,0.4); position: relative; z-index: 2; }
.card:hover { transform: translateY(-10px); border-color: var(--blue); box-shadow: 0 15px 40px rgba(56, 189, 248, 0.2); background: rgba(10, 0, 26, 0.8); z-index: 5; }
.card-poster-wrapper { width: 100%; aspect-ratio: 3/4; overflow: hidden; position: relative; border-bottom: 2px solid rgba(168, 85, 247, 0.3); }
.card-poster { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.card:hover .card-poster { transform: scale(1.08); }
.card-content { padding: 20px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.card-title { font-size: 1.15rem; color: #fff; font-weight: 800; margin-bottom: 5px; }
.card-price { font-size: 1.4rem; color: var(--blue); font-weight: bold; margin-bottom: 10px; }
.card-desc { font-size: 0.9rem; color: #aaa; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* =========================================
   📄 PRODUCT INNER PAGE & CHECKOUT
   ========================================= */
.product-split { max-width: 1200px; margin: 3rem auto; padding: 0 2rem; display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.product-image-container { position: relative; top: 0; z-index: 5; }
.subpage-image { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 24px; border: 2px solid var(--purple); box-shadow: 0 0 40px rgba(168,85,247,0.2); background: #0a001a; }
.product-details-container { display: flex; flex-direction: column; gap: 2rem; z-index: 5; }
.product-title-large { font-size: 3rem; color: var(--blue); line-height: 1.2; text-shadow: 0 0 30px rgba(56,189,248,0.4); }
.product-desc { background: rgba(255, 255, 255, 0.05); padding: 2.5rem; border-radius: 20px; border: 1px solid var(--border); font-size: 1.15rem; line-height: 1.8; backdrop-filter: blur(5px); }
.buy-box { background: rgba(10,0,26,0.8); border: 2px solid var(--blue); border-radius: 24px; padding: 2.5rem; text-align: center; box-shadow: 0 0 50px rgba(56,189,248,0.1); position: relative; z-index: 5; backdrop-filter: blur(10px); }
.btn-purchase { display: inline-block; width: 100%; padding: 18px; background: linear-gradient(135deg, var(--purple), #c084fc); color: #000; font-weight: bold; border: none; border-radius: 12px; cursor: pointer; font-size: 1.2rem; transition: 0.3s; box-shadow: 0 0 20px rgba(168,85,247,0.4); }
.btn-purchase:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(168,85,247,0.8); }
.btn-purchase:disabled { background: #555; box-shadow: none; cursor: not-allowed; color: #aaa; transform: none; }

.faq-section { grid-column: 1 / -1; background: rgba(255, 255, 255, 0.05); padding: 3rem; border-radius: 24px; border: 1px solid var(--border); margin-top: 1rem; backdrop-filter: blur(5px); }
.faq-section h2 { color: var(--purple); margin-bottom: 2rem; font-size: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.faq-item { margin-bottom: 1.5rem; background: rgba(0,0,0,0.5); padding: 1.5rem; border-radius: 16px; border-left: 3px solid var(--blue); }
html[dir="rtl"] .faq-item { border-left: none; border-right: 3px solid var(--blue); }
.faq-item h4 { color: var(--blue); margin-bottom: 8px; font-size: 1.2rem; }
.faq-item p { color: #ccc; line-height: 1.6; }

#checkoutModal { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 9999999; display: none; justify-content: center; align-items: center; backdrop-filter: blur(8px); }
.modal-box { background: #0a001a; border: 2px solid var(--purple); padding: 35px; border-radius: 24px; width: 90%; max-width: 450px; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.8); max-height: 90vh; overflow-y: auto; }
.close-modal-btn { position: absolute; top: 15px; right: 20px; background: none; border: none; color: #888; font-size: 2rem; cursor: pointer; transition: 0.3s; z-index: 10; }
.close-modal-btn:hover { color: #fff; transform: scale(1.1); }
html[dir="rtl"] .close-modal-btn { right: auto; left: 20px; }
.form-group { margin-bottom: 15px; text-align: left; }
html[dir="rtl"] .form-group { text-align: right; }
.form-group label { display: block; margin-bottom: 8px; color: var(--blue); font-weight: bold; }
.form-group input, .form-group textarea { width: 100%; padding: 14px; border-radius: 10px; border: 1px solid var(--border); background: rgba(0,0,0,0.5); color: #fff; outline: none; transition: 0.3s; }

/* =========================================
   🌐 5. FOOTER (COMPLETELY REBUILT)
   ========================================= */
footer { 
    padding: 4rem 2rem 2rem; 
    background: rgba(8, 0, 21, 0.95); 
    border-top: 2px solid rgba(168, 85, 247, 0.3); 
    margin-top: 4rem; 
    text-align: center; 
    position: relative;
    z-index: 20; 
    overflow: hidden; /* Contains any accidental expansion */
}

/* Flexbox for links */
.footer-links { 
    display: flex; 
    justify-content: center; 
    gap: 30px; 
    flex-wrap: wrap; 
    margin-bottom: 40px; 
}
.footer-links a { 
    color: #e5e7eb; 
    text-decoration: none; 
    font-size: 1.05rem; 
    font-weight: 500; 
    letter-spacing: 0.5px; 
    transition: 0.3s; 
    white-space: nowrap; /* Prevents awkward text breaking on PC */
}
.footer-links a:hover { color: var(--blue); text-shadow: 0 0 10px rgba(56, 189, 248, 0.5); }

/* The Trust Wrapper Box */
.footer-trust-wrapper { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: rgba(10, 0, 26, 0.8); 
    border: 1px solid var(--border); 
    border-radius: 16px; 
    padding: 20px 40px; 
    margin: 2rem auto; 
    max-width: 1100px; 
    gap: 30px; 
    backdrop-filter: blur(10px);
}

.powered-by-whop { 
    display: flex; 
    align-items: center; 
    border-right: 2px solid rgba(255,255,255,0.2); 
    padding-right: 30px; 
    flex-shrink: 0; /* Protects section from squishing */
}
html[dir="rtl"] .powered-by-whop { border-right: none; border-left: 1px solid rgba(255,255,255,0.1); padding-right: 0; padding-left: 30px; }

/* Locks Whop logo image */
.powered-by-whop img {
    height: 24px !important;
    max-height: 24px;
    width: auto;
    flex-shrink: 0;
}

/* Slider Track Logic */
.trust-slider-container { 
    flex-grow: 1; 
    overflow: hidden; 
    position: relative; 
    height: 35px; 
    display: flex;
    align-items: center;
}
.trust-slider-track { 
    display: flex; 
    align-items: center; 
    gap: 50px; 
    width: max-content; 
    animation: marqueeScroll 15s linear infinite; 
}

/* FIXED: Complete dimension lock for slider images */
.trust-badge { 
    height: 28px !important; 
    max-height: 28px !important;
    width: auto !important; 
    object-fit: contain;
    flex-shrink: 0; /* Prevents blowing up on flex containers */
    transition: transform 0.4s ease-out; 
}
.trust-badge:hover { transform: scale(1.15); }

/* =========================================
   📱 6. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 900px) {
    .product-split { grid-template-columns: 1fr; gap: 2rem; margin: 2rem auto; }
    
    .footer-trust-wrapper { flex-direction: column; text-align: center; gap: 20px; padding: 25px 20px; }
    .powered-by-whop { border: none !important; border-bottom: 2px solid rgba(255,255,255,0.1) !important; padding: 0 0 20px 0 !important; width: 100%; justify-content: center; }
    .trust-slider-container { width: 100%; }
}

@media (max-width: 768px) {
    .thin-search-input { display: none; }
    
    .nav-middle { transform: scale(0.9); }
    .nav-middle:hover { transform: scale(0.95); }
    .header-team-text { font-size: 1.1rem; }
    
    .product-title-large { font-size: 2.2rem; }
    #pageTitle { font-size: 2.3rem; }
    .buy-box { padding: 1.5rem; }
    .product-desc { padding: 1.5rem; font-size: 1rem; }
    .faq-section { padding: 1.5rem; }
    .faq-section h2 { font-size: 1.5rem; }
}

@media (max-width: 650px) {
    .hero-actions { flex-direction: column; }
    .quick-links-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hero-img { max-height: 250px; }
    
    .product-grid { padding: 10px; gap: 10px; }
    .card-content { padding: 12px; }
    .card-title { font-size: 1rem; }
    .card-price { font-size: 1.2rem; }
    
    .ctrl-btn { padding: 6px 12px; font-size: 0.8rem; }

    /* Mobile Footer Optimization */
    footer { padding: 2.5rem 1rem 1.5rem; margin-top: 2.5rem; }

    /* Force links into a clean grid instead of flex-wrap chaos */
    .footer-links { 
        display: grid !important; 
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px 20px; 
        width: 100%;
        text-align: center;
        margin-bottom: 25px;
    }
    .footer-links a { font-size: 0.95rem; }
    .footer-links a:last-child { grid-column: 1 / -1; padding-top: 5px; } /* Center 'Contact' link */
    
    .footer-trust-wrapper { padding: 20px 15px; margin: 1.5rem auto; }
}
