:root {
            --color-bg-primary: #0D1117;
            --color-bg-secondary: #161B22;
            --color-bg-secondary-rgb: 22, 27, 34;
            --color-border: #30363D;
            --color-accent-start: #3B82F6; /* Terabox Blue */
            --color-accent-end: #6366F1;   /* Terabox Purple */
            --color-text-primary: #e6edf3;
            --color-text-secondary: #7d8590;
            --color-success: #28a745;
            --color-error: #f87171;
            --color-danger: #ff4d4f;
        }

        html, body {
            height: 100%;
            overflow-y: auto;
        }
        body {
            display: flex;
            flex-direction: column;
            background-color: var(--color-bg-primary);
            color: var(--color-text-primary);
            font-family: 'Inter', sans-serif;
            background-image: radial-gradient(var(--color-border) 0.5px, transparent 0.5px);
            background-size: 15px 15px;
        }
        main {
            flex-grow: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 0;
        }
        footer {
            flex-shrink: 0;
            padding: 1.5rem 0;
        }

        /* --- Icon Banner Card --- */
        .card_box {
            width: 150px;
            height: 150px;
            border-radius: 20px;
            background: linear-gradient(170deg, rgba(58, 56, 56, 0.623) 0%, rgb(31, 31, 31) 100%);
            position: relative;
            box-shadow: 0 25px 50px rgba(0,0,0,0.55);
            cursor: pointer;
            transition: all .3s;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden; /* Hide overflowing banner */
        }
        .card_box:hover {
            transform: scale(0.95);
        }
        .card_box .app-icon-banner {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 20px;
            opacity: 0.9;
            transition: opacity 0.3s ease;
        }
        .card_box:hover .app-icon-banner {
            opacity: 1;
        }
        .card_box span {
            position: absolute;
            overflow: hidden;
            width: 150px;
            height: 150px;
            top: -10px;
            left: -10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .card_box span::before {
            content: 'MOD';
            position: absolute;
            width: 150%;
            height: 40px;
            background-image: linear-gradient(45deg, var(--color-accent-end) 0%, var(--color-accent-start) 100%);
            transform: rotate(-45deg) translateY(-20px);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-weight: 600;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            box-shadow: 0 5px 10px rgba(0,0,0,0.23);
        }
        .card_box span::after {
            content: '';
            position: absolute;
            width: 10px;
            bottom: 0;
            left: 0;
            height: 10px;
            z-index: -1;
            box-shadow: 140px -140px #cc3f47;
            background-image: linear-gradient(45deg, var(--color-accent-end) 0%, var(--color-accent-start) 100%);
        }

        /* --- CTA Button Style --- */
        #download-btn {
            position: relative;
            background-color: var(--color-bg-secondary);
            border: none;
            border-radius: 0.75rem; /* 12px */
            cursor: pointer;
            z-index: 1;
        }
        #download-btn::before {
            content: '';
            position: absolute;
            inset: 0;
            left: -3px;
            top: -3px;
            margin: auto;
            width: calc(100% + 6px);
            height: calc(100% + 6px);
            border-radius: 1rem;
            background: linear-gradient(-45deg, var(--color-accent-end) 0%, var(--color-accent-start) 100%);
            z-index: -10;
            pointer-events: none;
            transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        #download-btn::after {
            content: "";
            z-index: -1;
            position: absolute;
            inset: 0;
            background: linear-gradient(-45deg, var(--color-accent-end) 0%, var(--color-accent-start) 100%);
            transform: translate3d(0, 0, 0) scale(0.95);
            filter: blur(20px);
            transition: filter 0.3s ease;
        }
        #download-btn:hover::after {
            filter: blur(30px);
        }
        #download-btn:hover::before {
            transform: rotate(-180deg);
        }
        #download-btn:active::before {
            scale: 0.95;
        }

        /* --- Glassmorphism Badges --- */
        .secure-badge-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
        .badge {
            position: relative;
            text-decoration: none;
            padding: 8px 16px;
            color: white;
            font-weight: 500;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: 999px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            user-select: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s ease;
        }
        .badge:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: scale(1.05);
        }
        .badge .sparkle {
            width: 25px;
            height: 25px;
            position: absolute;
            top: -12px;
            right: -2px;
            transform: rotate(-20deg);
            filter: blur(0.5px);
            pointer-events: none;
        }
        .badge .sparkle:before, .badge .sparkle:after { content: ""; position: absolute; }
        .badge .sparkle:before { width: 1px; height: 100%; left: 12px; background: linear-gradient( to bottom, transparent, rgba(255, 255, 255, 0.7), transparent ); }
        .badge .sparkle:after { width: 100%; height: 1px; top: 12px; background: linear-gradient( to left, transparent, rgba(255, 255, 255, 0.7), transparent ); }
        .badge:hover .sparkle:after, .badge:hover .sparkle:before { animation: rotate 1.5s linear infinite; }
        @keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

        /* --- Modal Styles --- */
        .mfp-bg { background: rgba(13, 17, 23, 0.8); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
        .mfp-zoom-in .mfp-content { opacity: 0; transform: scale(0.95); transition: all 0.45s ease-in-out; }
        .mfp-zoom-in.mfp-ready .mfp-content { opacity: 1; transform: scale(1); }
        .mfp-zoom-in.mfp-removing .mfp-content { opacity: 0; transform: scale(0.95); }
        #modal-container {
            background: transparent;
            border: none;
            box-shadow: none;
            width: 100%;
            max-width: 450px; /* Adjusted width for verification card */
        }
        .modal-outline-container {
            --login-box-color: #272727;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            overflow: hidden;
            background: var(--login-box-color);
            border-radius: 24px;
            width: 100%;
            max-width: 420px;
            margin: 0 auto;
            z-index: 8;
            transition: opacity 0.45s ease-in-out;
        }
        .modal-outline-container::before {
            content: "";
            position: absolute;
            inset: -80px;
            z-index: -2;
            background: conic-gradient(from 45deg, transparent 75%, var(--color-accent-start), transparent 100%);
            animation: spin 4s ease-in-out infinite;
        }
        @keyframes spin { 100% { transform: rotate(360deg); } }
        .modal-inner-box {
            background: var(--login-box-color);
            border-radius: 24px;
            padding: 28px;
            width: calc(100% - 2px);
            height: calc(100% - 2px);
            position: relative;
            z-index: 10;
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            box-shadow: inset 0 20px 40px -8px rgba(255, 255, 255, 0.08);
        }
        .platform-card {
             background-color: #3a3a3a;
             transition: all 0.2s ease-in-out;
             border-color: transparent;
        }
        .platform-card:hover, .platform-card:focus, .platform-card:active {
            border-color: var(--color-accent-start);
            transform: translateY(-4px);
            box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
            color: var(--color-text-primary);
            outline: none;
        }
        
        /* --- Superhero Loader animation styles (Unchanged) --- */
        .loader-container { position: relative; height: 100px; width: 200px; margin: 0 auto 1.5rem auto; }
        .loader { position: absolute; top: 50%; left: 50%; margin-left: -50px; animation: speeder 0.6s linear infinite; }
        .loader > span { height: 5px; width: 35px; background: var(--color-text-primary); position: absolute; top: -19px; left: 60px; border-radius: 2px 10px 1px 0; }
        .base span { position: absolute; width: 0; height: 0; border-top: 6px solid transparent; border-right: 100px solid var(--color-text-primary); border-bottom: 6px solid transparent; }
        .base span:before { content: ""; height: 22px; width: 22px; border-radius: 50%; background: var(--color-text-primary); position: absolute; right: -110px; top: -16px; }
        .base span:after { content: ""; position: absolute; width: 0; height: 0; border-top: 0 solid transparent; border-right: 55px solid var(--color-text-primary); border-bottom: 16px solid transparent; top: -16px; right: -98px; }
        .face-loader { position: absolute; height: 12px; width: 20px; background: var(--color-text-primary); border-radius: 20px 20px 0 0; transform: rotate(-40deg); right: -125px; top: -15px; }
        .face-loader:after { content: ""; height: 12px; width: 12px; background: var(--color-text-primary); right: 4px; top: 7px; position: absolute; transform: rotate(40deg); transform-origin: 50% 50%; border-radius: 0 0 0 2px; }
        .longfazers { position: absolute; width: 100%; height: 100%; top: 0; left: 0; }
        .longfazers span { position: absolute; height: 2px; width: 20%; background: var(--color-text-secondary); }
        .longfazers span:nth-child(1) { top: 20%; animation: lf 0.6s linear infinite; animation-delay: -5s; }
        .longfazers span:nth-child(2) { top: 40%; animation: lf2 0.8s linear infinite; animation-delay: -1s; }
        .longfazers span:nth-child(3) { top: 60%; animation: lf3 0.6s linear infinite; }
        .longfazers span:nth-child(4) { top: 80%; animation: lf4 0.5s linear infinite; animation-delay: -3s; }
        @keyframes lf { 0% { left: 200%; } 100% { left: -200%; opacity: 0; } } @keyframes lf2 { 0% { left: 200%; } 100% { left: -200%; opacity: 0; } } @keyframes lf3 { 0% { left: 200%; } 100% { left: -100%; opacity: 0; } } @keyframes lf4 { 0% { left: 200%; } 100% { left: -100%; opacity: 0; } }
        @keyframes speeder { 0% { transform: translate(2px, 1px) rotate(0deg); } 10% { transform: translate(-1px, -3px) rotate(-1deg); } 20% { transform: translate(-2px, 0px) rotate(1deg); } 30% { transform: translate(1px, 2px) rotate(0deg); } 40% { transform: translate(1px, -1px) rotate(1deg); } 50% { transform: translate(-1px, 3px) rotate(-1deg); } 60% { transform: translate(-1px, 1px) rotate(0deg); } 70% { transform: translate(3px, 1px) rotate(-1deg); } 80% { transform: translate(-2px, -1px) rotate(1deg); } 90% { transform: translate(2px, 1px) rotate(0deg); } 100% { transform: translate(1px, -2px) rotate(-1deg); } }

        /* --- Subtle Loader Bar --- */
        .progress-loader { display: block; --height-of-loader: 4px; --loader-color: var(--color-accent-start); width: 100%; max-width: 260px; height: var(--height-of-loader); border-radius: 30px; background-color: rgba(0,0,0,0.2); position: relative; margin: 1rem auto 0; }
        .progress-loader::before { content: ""; position: absolute; background: var(--loader-color); top: 0; left: 0; width: 0%; height: 100%; border-radius: 30px; animation: moving 1.5s ease-in-out infinite; }
        @keyframes moving { 50% { width: 100%; } 100% { width: 0; right: 0; left: unset; } }

        /* --- Other Helper Styles --- */
        .checklist-item.completed i { color: var(--color-success); }
        #countdown-timer.urgent { color: var(--color-danger); animation: pulse-urgent 1s infinite; }
        @keyframes pulse-urgent { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
        .star-rating { color: #FFD700; }
        .star-rating .empty { color: var(--color-text-secondary); }
        
        @keyframes icon-pulse-animation {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }
        .icon-pulse {
            animation: icon-pulse-animation 2s infinite cubic-bezier(0.36, 0.07, 0.19, 0.97);
        }

        /* Responsive adjustments */
        @media (max-width: 380px) and (max-height: 700px) { 
            main { align-items: flex-start; padding-top: 2rem; padding-bottom: 2rem; } 
            .card_box { width: 120px; height: 120px; }
            h1 { font-size: 2rem; line-height: 2.5rem; } 
            p.text-lg { font-size: 1rem; margin-bottom: 1.5rem; } 
            #download-btn { font-size: 1.125rem; padding: 0.75rem 2.5rem; } 
            div.mt-8 { margin-top: 1.5rem; } 
            footer { padding-top: 1rem; padding-bottom: 1rem; } 
            .badge { padding: 0.375rem 0.625rem; font-size: 0.75rem; } 
            .secure-badge-row { gap: 0.5rem; } 
            #modal-container { max-width: calc(100vw - 2rem); }
        }