/* Reset & System Framework Layout */
        * { box-sizing: border-box; margin: 0; padding: 0; }
        
        /* ------------------------------------------
        THEME DICTIONARY MATRIX
        Simply swap the class name on your <body> 
        ------------------------------------------ */
        
        /* Theme 1: Cyber Gaming (Neon Cyberpunk Accent) */
        body.theme-gaming {
            --bg-gradient: linear-gradient(135deg, #090a15 0%, #120e2e 50%, #05050d 100%);
            --panel-bg: rgba(22, 17, 51, 0.65);
            --primary-accent: #ff0055;
            --secondary-accent: #00ffcc;
            --text-main: #ffffff;
            --text-muted: #b5b3cd;
            --border-glow: rgba(0, 255, 204, 0.2);
        }

        /* Theme 2: Dynamic Sports (Stadium Athletic Accent) */
        body.theme-sports {
            --bg-gradient: linear-gradient(135deg, #0a1128 0%, #001f54 50%, #000814 100%);
            --panel-bg: rgba(0, 28, 85, 0.6);
            --primary-accent: #ffc300;
            --secondary-accent: #0077b6;
            --text-main: #ffffff;
            --text-muted: #90e0ef;
            --border-glow: rgba(255, 195, 0, 0.25);
        }

        /* Theme 3: Vivid Anime (Cel-Shaded Pop Culture Accent) */
        body.theme-anime {
            --bg-gradient: linear-gradient(135deg, #1d1a39 0%, #451e3e 50%, #0b0c10 100%);
            --panel-bg: rgba(69, 30, 62, 0.5);
            --primary-accent: #ff7e67;
            --secondary-accent: #ffeb99;
            --text-main: #ffffff;
            --text-muted: #e0b0ff;
            --border-glow: rgba(255, 126, 103, 0.3);
        }

        /* Base Architecture Layout Elements */
        body {
            font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background: var(--bg-gradient);
            background-attachment: fixed;
            color: var(--text-main);
            line-height: 1.6;
            overflow-x: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* Enforce Exact Mobile Width Constraint & Containerization */
        .page-container {
            width: 100%;
            max-width: 600px;
            background: rgba(5, 5, 10, 0.85);
            box-shadow: 0 0 50px rgba(0, 0, 0, 0.85);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            border-left: 1px solid rgba(255, 255, 255, 0.05);
            border-right: 1px solid rgba(255, 255, 255, 0.05);
        }

        /* Top Navigation Elements */
        header {
            background: rgba(5, 5, 10, 0.9);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-bottom: 2px solid var(--primary-accent);
            padding: 14px 16px;
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .nav-inner {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo-text {
            font-size: 1.4rem;
            font-weight: 900;
            letter-spacing: 2px;
            text-transform: uppercase;
            background: linear-gradient(to right, var(--primary-accent), var(--secondary-accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        main {
            padding: 16px;
            flex: 1;
        }

        .banner-wrapper {
            position: relative;
            width: 100%;
            height: 560px; /* Lock the frame height on desktop views */
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--border-glow);
            box-shadow: 0 4px 20px var(--border-glow);
            margin-bottom: 20px;
            background: #000000; /* Letterbox background fill */
        }

        /* Creates a fallback text overlay that only shows if images/videos are missing */
        .banner-wrapper::before {
            content: "1win";
            color: #ff0055;
            font-family: sans-serif;
            font-size: 24px;
            font-weight: bold;
            position: absolute;
            z-index: 1; /* Sits behind the carousel slides */
        }

        /* Carousel Root Wrapper styling matching your structural framework */
        .carousel-container {
            position: relative;
            width: 100% !important; /* Force full wrapper expansion layout */
            height: 100%;       
            margin: 0 auto;
            overflow: hidden; /* Locks out overlapping background slide visuals completely */
            background-color: #000;
            z-index: 2; 
        }

        .carousel-slides {
            display: flex !important; /* Retain strict linear horizontal row behavior */
            width: 100% !important;   
            height: 100%;
            transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
        }

        .slide {
            width: 100% !important;
            min-width: 100% !important; /* Absolutely prevents next slides from pushing inside visible bounds */
            max-width: 100% !important; /* Prevents desktop structural rules from leaking on mobile */
            height: 100%;
            position: relative;
            flex-shrink: 0 !important; /* Prevents flexbox track squeezing */
        }

        /* Video slide fills the entire box from edge-to-edge, cropping cleanly if needed */
        .slide video {
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important; 
        }

        /* Image slides scale down to fit 100% inside the box with zero cropping */
        .slide img {
            width: 100% !important;
            height: 100% !important;
            object-fit: contain !important; 
        }

        /* Control Element Overlays */
        .carousel-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.4);
            color: #ffffff;
            border: none;
            font-size: 20px;
            padding: 14px 18px;
            cursor: pointer;
            user-select: none;
            transition: background 0.2s;
            z-index: 5;
            /* Added display properties to help align icons inside button frames */
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .carousel-nav:hover {
            background: rgba(0, 0, 0, 0.8);
        }

        /* Clear positioning layout anchors */
        .prev { left: 0; border-radius: 0 4px 4px 0; }
        .next { right: 0; border-radius: 4px 0 0 4px; }

        /* Bottom Dots tracking placement */
        .carousel-indicators {
            position: absolute;
            bottom: 15px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
            z-index: 5;
        }

        .carousel-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.4);
            cursor: pointer;
            transition: background 0.3s, transform 0.3s;
        }

        .carousel-dot.active {
            background: #ffffff;
            transform: scale(1.2);
        }

        /* Responsive scaling boundaries */
        @media (max-width: 768px) {
            .banner-wrapper {
                height: 320px; /* Adjust the carousel frame down for mobile screens */
            }
            .carousel-container {
                height: 320px; /* Scales down seamlessly for smaller screens */
            }
            .carousel-nav {
                padding: 8px 12px;
                font-size: 16px;
            }
        }
        
        /* Heading Wrapper */
        .heading-wrapper {
            display: flex;
            align-items: center;         /* Vertically centers the icon and text text elements perfectly */
            gap: 10px;                   /* Clean horizontal spacing between the icon asset and header words */
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding-bottom: 6px;
            margin-bottom: 14px;
        }

        .heading-wrapper h3 {
            font-size: 1.1rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-muted, #b5b3cd);
            margin: 0;                   /* Reset browser headings defaults */
            border-bottom: none;         /* Cleans older style remnants */
            padding-bottom: 0;
        }

        .heading-wrapper svg {
            width: 20px;
            height: 20px;
            color: var(--secondary-accent, #00ffcc);
            flex-shrink: 0;
            display: block;
        }

        /* Double CTA Buttons Layer */
        .cta-group {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-bottom: 24px;
        }

        .btn {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 14px 10px;
            font-size: 0.95rem;
            font-weight: bold;
            text-transform: uppercase;
            text-decoration: none;
            letter-spacing: 1px;
            border-radius: 8px;
            transition: transform 0.2s, filter 0.2s;
            text-align: center;
        }

        .btn:active { transform: scale(0.97); }

        .btn-primary {
            background: linear-gradient(90deg, var(--primary-accent), #ff5500);
            color: #fff;
            box-shadow: 0 4px 15px rgba(255, 0, 85, 0.3);
        }

        .btn-secondary {
            background: linear-gradient(90deg, var(--secondary-accent), #0099ff);
            color: #050510;
            box-shadow: 0 4px 15px rgba(0, 255, 204, 0.2);
        }

        /* Highlight Block Styling */
        .highlight-box {
            background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
            border-left: 4px solid var(--primary-accent);
            border-right: 4px solid var(--secondary-accent);
            padding: 16px;
            border-radius: 8px;
            margin-bottom: 24px;
            text-align: center;
        }

        .highlight-box h2 {
            font-size: 1.1rem;
            color: #fff;
            margin-bottom: 4px;
            text-transform: uppercase;
        }

        .highlight-box p {
            color: var(--secondary-accent);
            font-weight: bold;
            font-size: 0.9rem;
        }

        /* Adaptive Section Headings with Integrated Vector Icons */
        h3 {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 1.1rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 14px;
            color: var(--text-muted);
            border-bottom: 1px solid rgba(255,255,255,0.1);
            padding-bottom: 6px;
        }

        h3 svg {
            width: 18px;
            height: 18px;
            color: var(--secondary-accent);
            flex-shrink: 0;
        }

        /* 4 Cards Matrix Layout Setup */
        .cards-section { margin-bottom: 28px; }
        
        .cards-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr); /* 2 Column Configuration */
            gap: 10px;
        }

        .info-card {
            background: var(--panel-bg);
            border: 1px solid rgba(255,255,255,0.05);
            padding: 14px 12px;
            border-radius: 8px;
            display: flex;
            flex-direction: column;
        }

        .info-card h4 {
            color: var(--secondary-accent);
            font-size: 0.9rem;
            margin-bottom: 4px;
            text-transform: uppercase;
        }

        .info-card p {
            font-size: 0.78rem;
            line-height: 1.4;
            color: var(--text-muted);
        }

        /* 4 Payment Methods */
        .payment-section { 
            margin-bottom: 28px; 
            display: none;
            align-items: center; 
        }

        .payment-wrapper {
            background: rgba(0, 0, 0, 0.2);
            width: 100%;
            max-width: 100%;
            overflow: hidden;           
            box-sizing: border-box;
        }

        /* Collapsible Native Accordion FAQs */
        .faq-section { margin-bottom: 30px; }

        details {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 8px;
            margin-bottom: 8px;
            overflow: hidden;
        }

        summary {
            padding: 14px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            color: #fff;
            user-select: none;
        }

        details[open] summary {
            border-bottom: 1px solid rgba(255,255,255,0.08);
            background: rgba(255, 255, 255, 0.03);
        }

        .faq-content {
            padding: 14px;
            font-size: 0.85rem;
            color: var(--text-muted);
            background: rgba(0,0,0,0.15);
        }

        /* Footer Navigation Structure */
        footer {
            background: #05050a;
            border-top: 1px solid rgba(255,255,255,0.08);
            padding: 24px 16px;
            text-align: center;
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        footer p { margin-bottom: 8px; }
        .footer-links a { color: var(--secondary-accent); text-decoration: none; margin: 0 8px; }
        .render-shield {
            opacity: 0;
            transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            will-change: opacity;
        }
        .render-shield.is-ready {
            opacity: 1;
        }
        .faq-list {
            list-style-type: decimal;
            padding-left: 20px;
        }
        /* App Download Structural Layer */
        .app-download-section {
            margin-bottom: 28px;
            padding: 0 4px;
        }

        .app-download-section p {
            margin-top: 14px;
            font-size: 0.78rem;
            line-height: 1.4;
            color: var(--text-muted);
        }

        .app-btn-grid {
            display: grid;
            grid-template-columns: 1fr 1fr; /* Two distinct columns side-by-side */
            gap: 12px;
            margin-top: 14px;
        }

        .btn-app {
            display: inline-flex;       /* Forces strict content alignment wrapping */
            align-items: center;        /* Perfectly centers the icon and text vertically */
            justify-content: center;    /* Keeps content centered horizontally within the button container */
            gap: 8px;                   /* Precise horizontal gap spacing between icon and text elements */
            padding: 14px 8px;
            font-size: 0.88rem;
            font-weight: 700;
            text-transform: uppercase;
            text-decoration: none;
            letter-spacing: 0.5px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            color: #ffffff;
            width: 100%;                /* Content fills the column grid layout bounding boxes smoothly */
        }

        /* Hardens icon nodes to block baseline alignment drifting */
        .btn-app svg {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
            display: block;             /* Strips internal baseline layout spaces around inline SVGs */
        }

        /* Clean text line wrapping safeguard */
        .btn-app span {
            display: inline-block;
            line-height: 1;             /* Enforces absolute text matching bounds with the SVG node heights */
        }

        /* Theme Adaptive Colors (Leverages your CSS variable architecture) */
        .btn-android {
            background: linear-gradient(135deg, rgba(0, 255, 204, 0.15) 0%, rgba(0, 153, 255, 0.05) 100%);
            border-color: var(--secondary-accent, #00ffcc);
            box-shadow: 0 4px 15px rgba(0, 255, 204, 0.1);
        }

        .btn-ios {
            background: linear-gradient(135deg, rgba(255, 0, 85, 0.15) 0%, rgba(255, 85, 0, 0.05) 100%);
            border-color: var(--primary-accent, #ff0055);
            box-shadow: 0 4px 15px rgba(255, 0, 85, 0.1);
        }

        .btn-app:active {
            transform: scale(0.96);
        }
        /* Screenshots Layout Framework */
        .screenshots-accordion {
            margin-bottom: 28px;
            padding: 0 4px;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }

        .screenshots-accordion details {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 10px;
            width: 100%;
            max-width: 100%;
            overflow: hidden;           
        }

        .screenshots-accordion summary {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 16px;
            font-size: 0.9rem;
            font-weight: 700;
            cursor: pointer;
            color: #ffffff;
            list-style: none; 
            user-select: none;
        }

        .screenshots-accordion summary::-webkit-details-marker {
            display: none; 
        }

        .screenshots-accordion .summary-content {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .screenshots-accordion summary svg {
            width: 18px;
            height: 18px;
            color: var(--secondary-accent, #00ffcc);
            flex-shrink: 0;
        }

        /* Accordion Open State Tweaks */
        .screenshots-accordion details[open] summary {
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.03);
        }

        .screenshots-accordion details[open] .arrow-icon {
            transform: rotate(180deg);
        }

        .screenshots-accordion .arrow-icon {
            transition: transform 0.25s ease;
        }

        .screenshots-wrapper {
            padding: 14px 16px;
            background: rgba(0, 0, 0, 0.2);
            width: 100%;
            max-width: 100%;
            overflow: hidden;           
            box-sizing: border-box;
        }

        .gallery-desc {
            font-size: 0.82rem;
            color: var(--text-muted, #b5b3cd);
            line-height: 1.4;
            margin-bottom: 14px;
        }

        /* HARDENED HORIZONTAL SWIPE CONTAINER */
        .horizontal-scroll-track {
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: nowrap !important;   
            gap: 12px;
            width: 100% !important;
            max-width: 100% !important;
            overflow-x: scroll !important;  /* Forces horizontal slider initialization */
            overflow-y: hidden !important; 
            box-sizing: border-box;
            scroll-snap-type: x proximity;
            -webkit-overflow-scrolling: touch; 
            padding-bottom: 14px;           /* Breathing space for the desktop trackbar */
        }

        /* DESKTOP ACCESSIBILITY: Display an elegant custom neon scrollbar on desktop mouse hover */
        @media (pointer: fine) {
            .horizontal-scroll-track::-webkit-scrollbar {
                height: 6px !important;     /* Creates a sleek, ultra-thin track line */
                display: block !important;
                background: rgba(255, 255, 255, 0.02) !important;
            }
            
            .horizontal-scroll-track::-webkit-scrollbar-thumb {
                background: rgba(255, 255, 255, 0.1) !important;
                border-radius: 10px !important;
                transition: background 0.2s ease !important;
            }
            
            /* Lights up the scroll thumb bar using your theme neon styling when interacted with */
            .horizontal-scroll-track:hover::-webkit-scrollbar-thumb {
                background: var(--secondary-accent, #00ffcc) !important;
                box-shadow: 0 0 10px var(--secondary-accent, #00ffcc) !important;
            }
        }

        /* MOBILE VIEWPORTS: Ensure default hidden settings hold true on native touch screens */
        @media (pointer: coarse) {
            .horizontal-scroll-track::-webkit-scrollbar {
                width: 0 !important;
                height: 0 !important;
                display: none !important;
                background: transparent !important;
            }
        }

        .screenshot-item {
            flex: 0 0 170px !important;     
            width: 170px !important;        
            min-width: 170px !important;    
            scroll-snap-align: start;
            border-radius: 8px;
            overflow: hidden;
            background: #111;
            border: 1px solid rgba(255, 255, 255, 0.05);
            aspect-ratio: 240 / 490;
        }

        .screenshot-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        
        /* Core Dark Overlay Framework */
        .redirect-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(10, 10, 12, 0.75);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 99999;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            padding: 16px;
            box-sizing: border-box;
        }

        .redirect-overlay.is-active {
            opacity: 1;
            pointer-events: auto;
        }

        /* Dark Modal Surface Card */
        .redirect-card {
            background-color: #16161a;
            border: 1px solid #24242b;
            width: 100%;
            max-width: 520px;
            border-radius: 20px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            position: relative;
            padding: 36px;
            box-sizing: border-box;
            transform: translateY(20px);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .redirect-overlay.is-active .redirect-card {
            transform: translateY(0);
        }

        /* Close UI Elements */
        .close-btn {
            position: absolute;
            top: 24px;
            right: 24px;
            background: none;
            border: none;
            font-size: 26px;
            color: #4e4e5a;
            cursor: pointer;
            line-height: 1;
            padding: 4px;
            transition: color 0.2s ease;
        }
        .close-btn:hover { color: #9a9aaf; }

        /* Responsive Header Logo Framework */
        .header-section { 
            margin-bottom: 32px; 
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .brand-logo {
            max-width: 140px; /* Scaled cleanly for the 1win aspect ratio */
            max-height: 55px;
            object-fit: contain;
            height: auto;
            filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.3));
        }

        /* Content Section Layout */
        .content-section {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        /* Repositioned Secure Badge Headline Component */
        .secure-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            font-size: 18px;
            font-weight: 600;
            color: #e4e4e7;
            line-height: 1.4;
            margin-bottom: 14px;
        }
        .secure-badge strong {
            color: #3b82f6;
        }
        .lock-icon { 
            width: 20px; 
            height: 20px; 
            fill: #3b82f6; 
            flex-shrink: 0;
        }

        .content-section p {
            font-size: 14px;
            color: #9a9aaf;
            line-height: 1.6;
            margin: 0 0 32px 0;
        }

        /* CTA Layout Elements */
        .cta-section {
            border-top: 1px solid #24242b;
            padding-top: 28px;
            margin-bottom: 28px;
            display: flex;
            flex-direction: column;
            gap: 18px;
        }
        .continue-btn {
            background-color: #3b82f6;
            color: #ffffff;
            text-decoration: none;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 14px 24px;
            border-radius: 10px;
            font-weight: 600;
            font-size: 15px;
            transition: background-color 0.2s ease, transform 0.1s ease;
            text-align: center;
        }
        .continue-btn:hover { 
            background-color: #2563eb; 
        }
        .continue-btn:active {
            transform: scale(0.99);
        }

        /* Micro Loading Ring Animation */
        .countdown-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
        }
        .countdown-text {
            font-size: 13px;
            color: #6c6c7c;
            margin: 0;
        }
        .loading-ring {
            display: inline-block;
            position: relative;
            width: 16px;
            height: 16px;
        }
        .loading-ring div {
            box-sizing: border-box;
            display: block;
            position: absolute;
            width: 16px;
            height: 16px;
            border: 2px solid #3b82f6;
            border-radius: 50%;
            animation: ringRotate 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
            border-color: #3b82f6 transparent transparent transparent;
        }
        .loading-ring div:nth-child(1) { animation-delay: -0.45s; }
        .loading-ring div:nth-child(2) { animation-delay: -0.3s; }
        .loading-ring div:nth-child(3) { animation-delay: -0.15s; }
        @keyframes ringRotate {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Secure Footer Section */
        .footer-section {
            border-top: 1px solid #24242b;
            padding-top: 24px;
        }
        .footer-badge {
            display: flex;
            align-items: flex-start;
            gap: 14px;
        }
        .shield-icon {
            width: 22px;
            height: 22px;
            fill: #4e4e5a;
            flex-shrink: 0;
            margin-top: 2px;
        }
        .footer-text {
            display: flex;
            flex-direction: column;
            font-size: 12px;
            line-height: 1.5;
        }
        .footer-text strong { color: #9a9aaf; font-weight: 600; }
        .footer-text span { color: #4e4e5a; }

/* Automad carousel track integration */
.carousel-slides { display:flex; width:100%; height:100%; transition:transform .6s cubic-bezier(.25,1,.5,1); }
.carousel-slides .slide { display:block; flex:0 0 100%; width:100%; min-width:100%; height:100%; position:relative; }
.carousel-slides .slide img,.carousel-slides .slide video { display:block; width:100%; height:100%; object-fit:contain; }
.carousel-slides .slide a { display:block; width:100%; height:100%; }
.brand-affiliate { color:var(--text-muted); font-size:.8rem; text-align:right; }
.logo-text img { object-fit:contain; vertical-align:middle; }
