        :root {
            --primary: #0066ff;
            --primary-dark: #0041b5;
            --success: #00c853;
            --danger: #ff4444;
            --text-dark: #1a1a1a;
            --bg: #eef2f5;
            --white: #ffffff;
            --gray: #b9c0c7;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

        body {
            background: var(--bg);
            padding-bottom: 90px;
            color: var(--text-dark);
        }

        /* HEADER */
        header {
            background: linear-gradient(135deg, var(--primary-dark), var(--primary));
            color: var(--white);
            padding: 14px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        }

        .logo {
            font-size: 1.25rem;
            font-weight: 700;
            letter-spacing: 1px;
        }

        .btn-my-numbers {
            background: rgba(255,255,255,0.2);
            border: 1px solid rgba(255,255,255,0.3);
            color: white;
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 0.85rem;
            cursor: pointer;
            transition: 0.2s;
        }

        .btn-my-numbers:hover {
            background: rgba(255,255,255,0.35);
        }

        .container {
            max-width: 600px;
            margin: 20px auto;
            padding: 0 20px;
        }

        /* CARD PRÊMIO */
        .prize-card {
            background: var(--white);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
            margin-bottom: 25px;
        }

        .prize-img {
            width: 100%;
            height: 240px;
            object-fit: cover;
        }

        .prize-info {
            padding: 20px;
            text-align: center;
        }

        .prize-info h2 {
            font-size: 1.3rem;
            color: var(--primary-dark);
        }

        .grid-cotas {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 8px;
            margin-bottom: 20px;
        }

        .cota-item {
            background: var(--white);
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 12px 0;
            text-align: center;
            font-weight: 600;
            cursor: pointer;
            transition: 0.2s;
            user-select: none;
        }

        .cota-item:hover {
            transform: scale(1.05);
        }

        .cota-item.selected {
            background: var(--primary);
            color: var(--white);
            border-color: var(--primary);
            transform: scale(1.05);
        }

        .cota-item.paid {
            background: #e8e8e8;
            color: #999;
            border-color: #ccc;
            cursor: not-allowed;
            text-decoration: line-through;
            opacity: 0.7;
        }

        /* BARRA FIXA */
        .payment-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background: var(--white);
            padding: 15px 20px;
            box-shadow: 0 -6px 20px rgba(0,0,0,0.07);
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 50;
        }

        .btn-buy {
            background: var(--success);
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 50px;
            font-weight: 700;
            cursor: pointer;
            transition: 0.2s;
        }

        .btn-buy:hover {
            filter: brightness(1.1);
        }

        /* MODAIS */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0,0,0,0.7);
            z-index: 200;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .modal-content {
            background: var(--white);
            padding: 25px;
            border-radius: 20px;
            text-align: center;
            width: 100%;
            max-width: 380px;
            position: relative;
            box-shadow: 0 8px 25px rgba(0,0,0,0.2);
            animation: fadeIn 0.2s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: scale(0.95); }
            to   { opacity: 1; transform: scale(1); }
        }

        .close-btn {
            position: absolute;
            right: 15px; top: 15px;
            background: none;
            border: none;
            font-size: 1.3rem;
            cursor: pointer;
        }

        .custom-input {
            width: 100%;
            padding: 12px;
            margin: 15px 0;
            border: 2px solid #eee;
            border-radius: 10px;
            font-size: 0.95rem;
        }

        .my-numbers-list {
            margin-top: 15px;
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            justify-content: center;
        }

        .badge-num {
            background: var(--primary);
            color: white;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 0.85rem;
        }

        .small {
            font-size: 0.85rem;
            color: #666;
        }
        
        .header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

        /* --- ESTILOS DO PRELOADER --- */
        
        #preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #ffffff; /* Fundo Branco */
            z-index: 9999;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: opacity 0.8s ease, visibility 0.8s;
        }

        /* Container da logo: quadrado azul com bordas arredondadas */
        .logo-preloader-container {
            width: 120px; /* Tamanho do quadrado */
            height: 120px;
            background-color: #007bff; /* Azul mais vibrante para combinar com a logo */
            border-radius: 25px; /* Bordas arredondadas */
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); /* Sombra mais destacada */
            animation: pulseContainer 2s ease-in-out infinite; /* Animação de pulso */
        }

        /* A imagem da logo dentro do container */
        .preloader-logo-img {
            width: 80px; /* Tamanho da logo dentro do quadrado */
            height: 80px;
            object-fit: contain; /* Garante que a imagem se ajuste */
            filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5)); /* Leve brilho na logo */
        }

        /* --- ANIMAÇÕES (KEYFRAMES) --- */

        @keyframes pulseContainer {
            0% { transform: scale(0.95); opacity: 0.95; }
            50% { transform: scale(1.05); opacity: 1; }
            100% { transform: scale(0.95); opacity: 0.95; }
        }

        .hide-preloader {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

