* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: #0f0f14;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* HERO */
.hero {
    background: linear-gradient(135deg, #1a1a25, #0d0d12);
    padding: 60px 0;
    text-align: center;
    border-bottom: 2px solid rgba(0,255,150,0.2);
}

.logo h1 {
    font-size: 38px;
    font-weight: 900;
    text-shadow: 0 0 12px #00ff96;
}

.logo p {
    font-size: 18px;
    opacity: 0.8;
}

/* BADGE */
.premio-badge {
    margin-top: 25px;
    display: inline-block;
    padding: 15px 30px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 20px rgba(0,255,150,0.3);
}

.premio-badge span {
    display: block;
    font-size: 14px;
    opacity: 0.7;
}

.premio-badge strong {
    font-size: 26px;
    font-weight: 900;
    color: #00ff96;
}

/* INFO CARD & CHECKOUT CARD */
.info-card, .checkout-card, .payment-card {
    margin-top: 40px;
    padding: 40px;
    border-radius: 24px;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.checkout-card {
    max-width: 600px;
}

.info-card h2, .checkout-card h2 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 900;
    font-size: 26px;
    color: #00ff96;
    text-shadow: 0 0 8px #00ff96;
}

.checkout-card p {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
    font-size: 14px;
}

/* FORM STYLES */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.9;
}

.form-group input {
    width: 100%;
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #00ff96;
    box-shadow: 0 0 20px rgba(0, 255, 150, 0.15);
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* SUMMARY BOX */
.summary {
    background: rgba(0, 255, 150, 0.03);
    border-radius: 16px;
    padding: 25px;
    margin: 30px 0;
    border: 1px solid rgba(0, 255, 150, 0.1);
}

.summary h3 {
    font-size: 15px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.summary-item.total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    font-size: 22px;
    color: #fff;
    align-items: center;
}

.summary-item.total strong {
    color: #00ff96;
    font-size: 28px;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
    font-weight: 600;
}

.back-link:hover {
    color: #fff;
    transform: translateX(-5px);
}

.rules-list {
    list-style: none;
    line-height: 1.8;
    font-size: 17px;
}

.rules-list li strong {
    color: #00ff96;
}

/* STATUS */
.status-section {
    margin-top: 35px;
    text-align: center;
    padding: 25px;
    border-radius: 18px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(0,255,150,0.1);
    box-shadow: 0 0 30px rgba(0,255,150,0.1);
}

.status-section h3 {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 15px;
    color: #fff;
}

/* PROGRESS BAR */
.progress-bar-container {
    width: 100%;
    height: 8px; /* Reduzido de 14px */
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar {
    height: 100%;
    background: #00ff96;
    box-shadow: 0 0 15px #00ff96;
    transition: 0.5s;
}

/* BADGES */
.esgotado-badge, .error h3 {
    color: #ff4d4d;
    font-weight: 900;
}

/* ALERT */
.alert-box.error {
    background: rgba(255,0,0,0.1);
    border-left: 4px solid #ff4d4d;
    padding: 15px;
    margin: 20px 0;
    border-radius: 12px;
}

/* BOTÕES */
.btn, .btn-success {
    display: inline-block;
    width: auto; /* Alterado de 100% para auto no desktop */
    min-width: 250px; /* Largura mínima para ficar bonito */
    text-align: center;
    margin-top: 18px;
    padding: 15px 30px; /* Reduzido de 20px 40px */
    font-size: 16px; /* Reduzido de 18px */
    font-weight: 900;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-success {
    background: linear-gradient(90deg, #00ff96, #00cc77);
    color: #0a0a10;
    box-shadow: 0 4px 15px rgba(0,255,150,0.4);
}

.btn-success:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0,255,150,0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* DESATIVADO */
.btn-disabled {
    background: #222;
    color: #777;
    cursor: not-allowed;
}

/* ANIMAÇÃO PULSAR */
.pulsate {
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(0,255,150,0.7); }
    100% { transform: scale(1.05); box-shadow: 0 0 20px rgba(0,255,150,0); }
}

/* WINNERS TICKER */
.winners-ticker-container {
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(0, 255, 150, 0.2);
    border-bottom: 1px solid rgba(0, 255, 150, 0.2);
    padding: 10px 0;
    position: relative;
    overflow: hidden;
    margin-top: 40px;
    backdrop-filter: blur(10px);
}

.winners-ticker-title {
    text-align: center;
    color: #00ff96;
    font-weight: 900;
    font-size: 14px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.winners-ticker-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.winners-ticker {
    display: inline-block;
    animation: marquee 180s linear infinite;
    padding-left: 100%; /* Começa fora da tela */
}

.winner-item {
    display: inline-block;
    padding: 0 30px;
    font-size: 16px;
    color: #fff;
    font-weight: bold;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* FOOTER */
footer {
    margin-top: auto;
    padding: 40px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* PAYMENT PAGE STYLES */
.qr-code-area {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    display: inline-block;
}

.qr-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.payment-card {
    text-align: center; 
}

.copy-paste-area {
    margin-bottom: 30px;
    text-align: left;
}

.copy-paste-area p {
    margin-bottom: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 13px;
}

.btn-copy {
    background: rgba(0,255,150,0.2);
    color: #00ff96;
    border: 1px solid rgba(0,255,150,0.3);
    padding: 0 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
}

.btn-copy:hover {
    background: rgba(0,255,150,0.4);
}

.timer-box {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.timer-box p {
    color: #ffaa00;
    font-size: 14px;
    margin: 0;
}

.verification-box {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.verification-box p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

/* Spinner */
.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top-color: #00ff96;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.payment-instructions {
    text-align: left;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
}

.payment-instructions h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
}

.payment-instructions ol {
    padding-left: 20px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.6;
}

.payment-instructions li {
    margin-bottom: 8px;
}

.payment-instructions strong {
    color: #00ff96;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(0,255,150,0.5);
    transition: 0.3s;
    z-index: 9999;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    padding: 10px;
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(0,255,150,0.9);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .premio-badge strong { font-size: 1.5rem; }
    .container { padding: 0 20px; }
    
    .info-card, .checkout-card, .payment-card, .status-section {
        padding: 25px;
        margin-top: 20px;
    }

    .btn, .btn-success {
        width: 100%;
        padding: 15px; /* Ajuste mobile */
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group input {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .btn-copy {
        width: 100%;
        padding: 15px;
    }

    /* Prevent zoom on iOS inputs */
    input[type="text"], input[type="tel"], input[type="email"], input[type="number"] {
        font-size: 16px;
    }

    /* Admin Panel Mobile Tweaks */
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 15px;
    }

    /* Better table scrolling */
    .table-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* MEMBER AREA & CARTELAS */
.member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 12px;
}

.cartelas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.cartela-card {
    background: white;
    color: #333;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cartela-title {
    font-weight: 900;
    color: #8e24aa; /* Roxo */
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cartela-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #666;
    width: 100%;
}

.cartela-header .acertos {
    color: #28a745;
    font-weight: 900;
}

.lotofacil-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    width: 100%;
}

.loto-number {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #f0f0f0; /* Cinza claro */
    font-weight: bold;
    font-size: 0.9rem;
    color: #555;
    transition: 0.3s;
}

.loto-number.marked {
    background: #8e24aa; /* Roxo Lotofácil */
    color: white;
}

.loto-number.hit {
    background: #00c853; /* Verde Acerto */
    color: white;
    box-shadow: 0 0 10px #00c853;
    z-index: 1;
    transform: scale(1.1);
}

/* CUSTOM MODAL */
.custom-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.custom-modal {
    background: white;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.custom-modal h3 {
    color: #8e24aa;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.custom-modal p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.custom-modal .btn-ok {
    background: #8e24aa;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

.custom-modal .btn-ok:hover {
    background: #7b1fa2;
}

/* VERIFICATION SECTION */
.verification-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center;
    color: #333;
}

.verification-section h3 {
    color: #8e24aa;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.verification-section p {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.verification-input-group {
    margin-bottom: 20px;
    text-align: left;
}

.verification-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.verification-input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    background: #f9f9f9;
}

.verification-input-group input:focus {
    border-color: #8e24aa;
    outline: none;
    background: white;
}

.btn-verify {
    background: #8e24aa;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-verify:hover {
    background: #7b1fa2;
}
