:root {
            --color-bg-primary: #18181b; /* Zinc 900 */
            --color-bg-secondary: #27272a; /* Zinc 800 */
            --color-border: #3f3f46; /* Zinc 700 */
            --color-accent-start: #3b82f6; /* Blue 500 */
            --color-accent-end: #06b6d4;   /* Cyan 500 */
            --color-text-primary: #f4f4f5; /* Zinc 100 */
            --color-text-secondary: #a1a1aa; /* Zinc 400 */
            --color-success: #34D399;
            --color-error: #F87171;
            --color-danger: #EF4444;
        }

        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: 
                linear-gradient(rgba(24, 24, 27, 0.97), rgba(24, 24, 27, 0.97)),
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='%2327272a' fill-opacity='0.4'%3E%3Crect x='0' y='0' width='50' height='50'/%3E%3Crect x='50' y='50' width='50' height='50'/%3E%3C/g%3E%3C/svg%3E");
        }
        main {
            flex-grow: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 0;
        }
        footer {
            flex-shrink: 0;
            padding: 1.5rem 0;
        }
        h1 {
            font-weight: 900;
        }

        /* --- Icon Card --- */
        .card_box {
            width: 150px;
            height: 150px;
            border-radius: 20px;
            background: linear-gradient(170deg, #374151 0%, #111827 100%);
            position: relative;
            box-shadow: 0 25px 50px rgba(0,0,0,0.55);
            cursor: default;
            transition: all .3s;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border: 2px solid var(--color-border);
        }
        .card_box .app-icon-banner {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 20px;
            opacity: 0.9;
        }

        /* --- 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;
            font-weight: 700;
            letter-spacing: 0.5px;
        }
        #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;
            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.05);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            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.1);
            transform: scale(1.05);
        }
        
        /* --- Modal Styles --- */
        .mfp-bg { background: rgba(10, 10, 15, 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;
        }
        .modal-outline-container {
            --login-box-color: #18181b;
            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;
        }
        .platform-card {
             background-color: var(--color-bg-secondary);
             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.3);
            color: var(--color-text-primary);
            outline: none;
        }
        
        /* --- Clean Loader animation styles --- */
        .loader-container {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100px;
            width: 200px;
            margin: 0 auto 1.5rem auto;
        }
        .dot-loader {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: var(--color-text-primary);
            animation: pulse 1.4s infinite ease-in-out;
            animation-fill-mode: both;
            margin: 0 6px;
        }
        .dot-loader:nth-child(1) { animation-delay: -0.32s; }
        .dot-loader:nth-child(2) { animation-delay: -0.16s; }
        @keyframes pulse {
            0%, 80%, 100% { transform: scale(0); }
            40% { transform: scale(1.0); }
        }

        /* --- 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: 2.5rem; line-height: 2.75rem; } 
            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); }
        }