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

body {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* HEADER MELHORADO */
header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.logo span {
    color: #ffcc00;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-icon {
    font-size: 32px;
    color: #ffcc00;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-btn.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffcc00 0%, #ff9900 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.file-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
}

#foto-preview {
    text-align: center;
    margin-top: 10px;
}

#foto-preview-img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 8px;
    border: 2px solid #eee;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-phone {
    font-weight: 500;
    font-size: 14px;
}

.user-status {
    font-size: 12px;
    opacity: 0.8;
    color: #ffcc00;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

.sorteio-image img,
.premio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* CORREÇÃO PARA RADIO BUTTONS EM MOBILE */
@media (max-width: 768px) {
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }

    .radio-group label {
        padding: 12px;
        border: 2px solid #eaeaea;
        border-radius: 8px;
        background: #f8f9fa;
        transition: all 0.3s ease;
    }

    .radio-group label:hover {
        border-color: #6a11cb;
        background: #f0f0ff;
    }

    .radio-group input[type="radio"]:checked+span {
        color: #6a11cb;
        font-weight: 600;
    }

    .radio-group label:has(input[type="radio"]:checked) {
        border-color: #6a11cb;
        background: #f0f0ff;
    }
}

/* MELHORIAS GERAIS PARA OS RADIO BUTTONS */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.radio-group label:hover {
    background: #f8f9fa;
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.radio-group span {
    font-weight: 500;
    color: #333;
}

/* Melhorias para o grid de sorteios */
@media (max-width: 1024px) {
    .sorteios-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
}

/* Melhorias para telas muito pequenas (smartphones pequenos) */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 12px;
    }

    header {
        padding: 10px 12px;
    }

    .logo h1 {
        font-size: 18px;
        max-width: 120px;
    }

    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .user-info {
        padding: 5px 8px;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
    }

    .logout-btn {
        padding: 8px 10px;
        min-width: 40px;
    }
}

/* Resto do CSS permanece igual */
.main-content {
    padding: 30px;
}

.page-title {
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    border-bottom: 2px solid #6a11cb;
    padding-bottom: 10px;
}

.sorteios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.sorteio-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eaeaea;
}

.sorteio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.sorteio-image {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.sorteio-content {
    padding: 20px;
}

.sorteio-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.sorteio-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sorteio-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.youtube-video-container {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.youtube-video-container:hover .video-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

.video-info {
    padding: 10px;
    background: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
}

.watch-on-youtube {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ff0000;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

.watch-on-youtube:hover {
    color: #cc0000;
    text-decoration: underline;
}

.sorteio-card.has-video .sorteio-content {
    padding-top: 0;
}

/* Responsividade para vídeos */
@media (max-width: 768px) {
    .youtube-video-container {
        height: 180px;
    }

    .video-overlay {
        opacity: 1;
        /* Sempre visível em mobile */
    }
}


.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 10px;
}

.status-aberto {
    background: #d4edda;
    color: #155724;
}

.status-pausado {
    background: #e2e3e5;
    color: #383d41;
}

.status-programado {
    background: #cce5ff;
    color: #004085;
}

.status-encerrado {
    background: #f8d7da;
    color: #721c24;
}

.sorteio-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-ver-sorteio {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.btn-ver-sorteio:hover {
    opacity: 0.9;
}

.numeros-disponiveis {
    font-size: 13px;
    color: #666;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

.filter-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.filter-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.filter-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #ddd;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn.active {
    background: #6a11cb;
    color: white;
    border-color: #6a11cb;
}

.filter-btn:hover {
    border-color: #6a11cb;
}

/* Estilos para o popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.popup-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.popup-header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.popup-body {
    padding: 20px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

/* Estilos para a lista de números */
.numeros-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.numero-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s;
}

.numero-item.reservado {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.numero-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sorteio-info-popup {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.sorteio-title-popup {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.sorteio-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 14px;
}

.sorteio-detail {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 2px;
}

.detail-value {
    font-weight: 500;
    color: #333;
}

.empty-numeros {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-numeros i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #dee2e6;
}

.sorteio-resultado {
    margin-bottom: 20px;
    transition: all 0.3s ease;

}

.sorteio-resultado:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sorteio-resultado.vencedor {
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
    border-radius: 12px;
    padding: 15px;
    border-left: 4px solid #28a745;
}

.sorteio-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin: 10px 0;
    padding: 8px 12px;
    border-radius: 6px;
}

.status-vencedor {
    background: #d4edda;
    color: #155724;
}

.status-perdedor {
    background: #f8d7da;
    color: #721c24;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

.resultado-info {
    margin: 15px 0;
}

.resultado-info h5 {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.numeros-sorteados {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.numero-sorteado {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    min-width: 60px;
    position: relative;
}

.numero-sorteado.seu-numero {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.numero-sorteado .posicao {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
}

.numero-sorteado .numero {
    font-size: 18px;
    font-weight: bold;
}

.badge-seu {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #28a745;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.criterio-vencedor {
    color: #6c757d;
    font-style: italic;
}

.seus-numeros h5 {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.numero-item.premiado {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    position: relative;
}

.premiado-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ffc107;
    color: #000;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* Adicione ao seu arquivo CSS */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.popup .close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* Estilos específicos para o popup de cadastro */
.cadastro-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.cadastro-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cadastro-header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.cadastro-header h2 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cadastro-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.cadastro-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cadastro-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #eaeaea;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #6a11cb;
    outline: none;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 5px;
}

.checkbox-group input {
    width: auto;
    margin-top: 3px;
}

.checkbox-group label {
    font-weight: normal;
    line-height: 1.4;
}

.terms-link {
    color: #6a11cb;
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

.btn-primary {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* Adicione este estilo para o campo de data */
.date-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #eaeaea;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.date-input:focus {
    border-color: #6a11cb;
    outline: none;
}

.date-input::placeholder {
    color: #999;
}

.cep-valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.cep-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.cep-loading {
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}


/* ===== MELHORIAS DE RESPONSIVIDADE ===== */

/* HEADER - Melhorias para mobile */
@media (max-width: 768px) {
    header {
        padding: 12px 15px;
        flex-wrap: wrap;
        position: relative;
    }

    .header-left {
        flex: 1;
        min-width: 0;
        /* Permite que o conteúdo se ajuste */
    }

    .logo h1 {
        font-size: 20px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }

    .logo-icon {
        font-size: 22px;
    }

    .nav-buttons {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
        padding: 15px;
        flex-direction: column;
        gap: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        display: none;
        border-radius: 0 0 12px 12px;
    }

    .nav-buttons.show {
        display: flex !important;
    }

    .nav-btn {
        padding: 12px 15px;
        border-radius: 8px;
        justify-content: flex-start;
        font-size: 14px;
    }

    .nav-btn span {
        margin-left: 8px;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.2);
        color: white;
        font-size: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-left: 10px;
    }

    .mobile-menu-btn:hover {
        background: rgba(255, 255, 255, 0.25);
    }

    .header-right {
        flex-shrink: 0;
    }

    .user-info {
        padding: 6px 10px;
        gap: 10px;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .user-details {
        display: none;
        /* Oculta detalhes em mobile */
    }

    .logout-btn {
        padding: 10px 12px;
        font-size: 14px;
    }

    .logout-btn span {
        display: none;
        /* Oculta texto, mantém ícone */
    }
}

/* Melhorias para telas muito pequenas (smartphones pequenos) */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 12px;
    }

    header {
        padding: 10px 12px;
    }

    .logo h1 {
        font-size: 18px;
        max-width: 120px;
    }

    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .user-info {
        padding: 5px 8px;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
    }

    .logout-btn {
        padding: 8px 10px;
        min-width: 40px;
    }
}

/* Melhorias para o conteúdo principal */
@media (max-width: 768px) {
    .main-content {
        padding: 20px 15px;
    }

    .page-title {
        font-size: 24px;
        margin-bottom: 20px;
        padding-bottom: 8px;
    }

    .filter-section {
        padding: 15px;
        margin-bottom: 20px;
    }

    .filter-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .filter-options {
        gap: 10px;
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 13px;
        flex: 1;
        min-width: calc(50% - 10px);
        text-align: center;
    }
}

/* Melhorias para o grid de sorteios */
@media (max-width: 1024px) {
    .sorteios-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .sorteios-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .sorteio-card {
        margin-bottom: 0;
    }

    .sorteio-image {
        height: 180px;
        font-size: 40px;
    }

    .sorteio-content {
        padding: 15px;
    }

    .sorteio-title {
        font-size: 18px;
    }

    .sorteio-info {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 12px;
    }

    .info-label {
        font-size: 11px;
    }

    .info-value {
        font-size: 13px;
    }

    .sorteio-footer {
        padding: 12px 15px;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .numeros-disponiveis {
        font-size: 12px;
    }

    .btn-ver-sorteio {
        align-self: stretch;
        text-align: center;
        padding: 10px;
    }
}

@media (max-width: 677px) {
    .sorteios-grid {
        gap: 12px;
    }

    .sorteio-image {
        height: 160px;
        font-size: 36px;
    }

    .sorteio-content {
        padding: 12px;
    }

    .sorteio-info {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .sorteio-footer {
        padding: 10px 12px;
    }
}

/* Melhorias para os popups em mobile */
@media (max-width: 768px) {
    .popup-overlay {
        padding: 10px;
        align-items: flex-start;
        /* Alinha ao topo em mobile */
    }

    .popup-content {
        max-height: 90vh;
        max-width: 100%;
        border-radius: 12px;
    }

    .popup-header {
        padding: 15px;
    }

    .popup-header h3 {
        font-size: 18px;
    }

    .popup-body {
        padding: 15px;
        max-height: calc(90vh - 60px);
    }

    .numeros-list {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 8px;
    }

    .numero-item {
        padding: 8px;
        font-size: 14px;
    }
}

/* Melhorias específicas para o popup de cadastro em mobile */
@media (max-width: 768px) {
    .cadastro-popup {
        padding: 10px;
    }

    .cadastro-content {
        max-width: 100%;
        max-height: 95vh;
    }

    .cadastro-header {
        padding: 15px;
    }

    .cadastro-header h2 {
        font-size: 18px;
    }

    .cadastro-body {
        padding: 15px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .form-group input,
    .form-group select {
        padding: 10px;
        font-size: 16px;
        /* Melhora a usabilidade em iOS */
    }

    .btn-primary {
        padding: 14px;
        font-size: 16px;
    }
}

/* Melhorias para telas muito pequenas */
@media (max-width: 480px) {
    .popup-header {
        padding: 12px;
    }

    .popup-body {
        padding: 12px;
    }

    .cadastro-header {
        padding: 12px;
    }

    .cadastro-body {
        padding: 12px;
    }

    .numeros-list {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 6px;
    }
}

/* Melhorias para orientação paisagem em mobile */
@media (max-height: 500px) and (max-width: 768px) {
    .popup-overlay {
        align-items: flex-start;
        padding-top: 20px;
    }

    .popup-content {
        max-height: 80vh;
    }
}

/* Ajustes para evitar zoom em iOS ao focar em inputs */
@media (max-width: 768px) {

    input,
    select,
    textarea {
        font-size: 16px;
        /* Previne zoom no iOS */
    }
}

/* Melhorias de acessibilidade para toque */
@media (max-width: 768px) {

    .nav-btn,
    .filter-btn,
    .btn-ver-sorteio,
    .logout-btn {
        min-height: 44px;
        /* Tamanho mínimo recomendado para toque */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-btn {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Melhorias de performance para animações em mobile */
@media (max-width: 768px) {
    .sorteio-card {
        transform: none;
        /* Remove transform para melhor performance */
        transition: box-shadow 0.3s ease;
    }

    .sorteio-card:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }
}

/* Suporte para dispositivos com notch/dynamic island */
@supports(padding: max(0px)) {
    @media (max-width: 768px) {
        body {
            padding-left: max(10px, env(safe-area-inset-left));
            padding-right: max(10px, env(safe-area-inset-right));
            padding-top: max(10px, env(safe-area-inset-top));
            padding-bottom: max(10px, env(safe-area-inset-bottom));
        }
    }
}

/* ===== MELHORIAS ESPECÍFICAS PARA 750px - 1300px ===== */

@media (min-width: 751px) and (max-width: 1300px) {

    /* HEADER - Otimização para tablets e telas médias */
    header {
        padding: 12px 20px;
        flex-wrap: nowrap;
    }

    .header-left {
        flex: 1;
        min-width: 0;
        /* Permite que o conteúdo se ajuste */
        gap: 15px;
    }

    .logo {
        flex-shrink: 0;
    }

    .logo h1 {
        font-size: 22px;
        white-space: nowrap;
    }

    .logo-icon {
        font-size: 24px;
    }

    .nav-buttons {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .nav-btn {
        padding: 8px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    .nav-btn span {
        display: inline;
        /* Garante que o texto seja visível */
    }

    .header-right {
        flex-shrink: 0;
        gap: 10px;
    }

    .user-info {
        padding: 6px 12px;
        gap: 8px;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .user-details {
        display: flex;
    }

    .user-phone {
        font-size: 13px;
    }

    .user-status {
        font-size: 11px;
    }

    .logout-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .logout-btn span {
        display: inline;
        /* Mantém o texto visível */
    }

    /* Ajustes específicos para telas entre 900px e 1100px */
    @media (min-width: 901px) and (max-width: 1100px) {
        .nav-buttons {
            gap: 6px;
        }

        .nav-btn {
            padding: 6px 10px;
            font-size: 12px;
        }

        .nav-btn span {
            display: none;
            /* Oculta texto para economizar espaço */
        }

        .nav-btn i {
            margin-right: 0;
        }
    }

    /* Ajustes para telas muito próximas do limite inferior */
    @media (min-width: 751px) and (max-width: 850px) {
        .logo h1 {
            font-size: 18px;
        }

        .user-details {
            display: none;
            /* Oculta detalhes do usuário para economizar espaço */
        }

        .nav-btn span {
            display: none;
            /* Oculta texto dos botões de navegação */
        }
    }
}

/* ===== MELHORIAS ADICIONAIS PARA O CONTEÚDO PRINCIPAL ===== */

@media (min-width: 751px) and (max-width: 1300px) {
    .main-content {
        padding: 25px;
    }

    .page-title {
        font-size: 26px;
        margin-bottom: 25px;
    }

    .sorteios-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 20px;
    }

    .filter-section {
        padding: 18px;
        margin-bottom: 25px;
    }

    .filter-options {
        gap: 12px;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* ===== OTIMIZAÇÕES PARA O POPUP DE CADASTRO ===== */

@media (min-width: 751px) and (max-width: 1300px) {
    .cadastro-content {
        max-width: 550px;
    }

    .cadastro-body {
        padding: 20px;
    }

    .form-row {
        gap: 12px;
    }
}

/* ===== MELHORIAS PARA O POPUP DE NÚMEROS ===== */

@media (min-width: 751px) and (max-width: 1300px) {
    .popup-content {
        max-width: 700px;
    }

    .numeros-list {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 8px;
    }
}

/* Adicione ao index.css */
.user-info {
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px);
}

.user-info:active {
    transform: translateY(0);
}

/* Estilo para quando o popup de edição estiver aberto */
.cadastro-popup[style*="display: flex"] .cadastro-content {
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ESTILOS PARA CAMPOS COM MÁSCARA */
.form-group input:valid {
    border-color: #28a745 !important;
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #dc3545 !important;
}

/* Indicador visual para campos obrigatórios */
/* Indicador visual APENAS para campos obrigatórios (que contêm 'required') */
.form-group:has(input[required]) label::after,
.form-group:has(select[required]) label::after,
.form-group:has(textarea[required]) label::after {
    content: ' *';
    color: #dc3545;
}

.form-group label.optional::after {
    content: ' (Opcional)';
    color: #6c757d;
    font-weight: normal;
}

/* Feedback visual para o CPF */
.cpf-valid {
    border-color: #28a745 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.cpf-invalid {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Adicione ao seu CSS existente */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #6a11cb;
    box-shadow: 0 0 0 0.2rem rgba(106, 17, 203, 0.25);
}

.form-control.valid {
    border-color: #28a745;
}

.form-control.invalid {
    border-color: #dc3545;
}

.validation-message {
    font-size: 12px;
    margin-top: 5px;
    min-height: 18px;
}

.validation-message .fas {
    margin-right: 5px;
}

/* Estilos para os estados de validação do CPF */
.cpf-validando {
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.cpf-valido {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.cpf-invalido {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.cpf-incompleto {
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* Transição suave para mudanças de cor */
.form-group input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Estilos para as mensagens de validação */
.validation-message {
    font-size: 12px;
    margin-top: 5px;
    min-height: 18px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.validation-message .fas {
    font-size: 14px;
}

.validation-message.valid {
    color: #28a745;
}

.validation-message.invalid {
    color: #dc3545;
}

.validation-message.loading {
    color: #ffc107;
}

/* Controle de exibição dos sorteios conforme resolução */
@media (min-width: 1081px) {
    .sorteios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1080px) {
    .sorteios-grid {
        grid-template-columns: 1fr;
    }
}

/* Adicione ao index.css */

/* Layout principal com sidebar de prêmios */
.sorteio-with-premios {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 25px;
    margin-bottom: 30px;
}

.sorteio-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eaeaea;
    height: fit-content;
}

.premios-sidebar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #eaeaea;
    height: fit-content;
    position: sticky;
    top: 200px;
}

.premios-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #6a11cb;
}

.premios-header h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.premios-header h3 i {
    color: #6a11cb;
}

/* Prêmio principal (grande) */
.premio-principal {
    margin-bottom: 25px;
    text-align: center;
}

.premio-principal-imagem {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.premio-principal-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premio-principal-imagem .premio-placeholder {
    font-size: 48px;
    color: #6a11cb;
    opacity: 0.7;
}

.premio-principal-titulo {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
}

/* Grid de prêmios menores */
.premios-secundarios {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.premio-secundario {
    text-align: center;
}

.premio-secundario-imagem {
    width: 100%;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.premio-secundario-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premio-secundario-imagem .premio-placeholder {
    font-size: 24px;
    color: #6a11cb;
    opacity: 0.7;
}

/* Indicador de mais prêmios */
.mais-premios {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #6c757d;
    font-size: 14px;
}

.mais-premios i {
    margin-right: 5px;
    color: #6a11cb;
}

/* Estados vazios */
.premios-vazios {
    text-align: center;
    padding: 30px 20px;
    color: #6c757d;
}

.premios-vazios i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #dee2e6;
}

.premios-vazios h4 {
    margin-bottom: 8px;
    font-size: 16px;
}

/* Responsividade para a sidebar de prêmios */
@media (max-width: 1024px) {
    .sorteio-with-premios {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .premios-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .premios-sidebar {
        padding: 15px;
    }

    .premio-principal-imagem {
        height: 150px;
    }

    .premios-secundarios {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .premio-secundario-imagem {
        height: 70px;
    }
}

@media (max-width: 480px) {
    .premios-secundarios {
        grid-template-columns: repeat(2, 1fr);
    }

    .premio-principal-imagem {
        height: 120px;
    }

    .premio-secundario-imagem {
        height: 60px;
    }
}

/* Layout da lista de sorteios */
.sorteios-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Remove o grid antigo */
.sorteios-grid {
    display: contents;
}

/* ===== MELHORIAS PARA O LAYOUT DE PRÊMIOS EM MOBILE ===== */

@media (max-width: 768px) {
    .sorteio-with-premios {
        position: relative;
        display: block;
        margin-bottom: 20px;
    }

    .sorteio-card {
        position: relative;
        z-index: 1;
    }

    .premios-sidebar {
        position: absolute;
        bottom: 70px;
        /* Posiciona acima do botão Ver Sorteio */
        right: 15px;
        width: 200px;
        overflow-y: auto;
        z-index: 2;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(106, 17, 203, 0.2);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        padding: 12px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .premios-sidebar:hover {
        background: rgba(255, 255, 255, 0.98);
        transform: translateY(-2px);
    }

    .premios-header {
        margin-bottom: 10px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(106, 17, 203, 0.3);
    }

    .premios-header h3 {
        font-size: 14px;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .premios-header h3 i {
        font-size: 12px;
    }

    .premio-principal {
        margin-bottom: 12px;
        text-align: center;
    }

    .premio-principal-imagem {
        height: 80px;
        margin-bottom: 8px;
    }

    .premio-principal-titulo {
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
    }

    .premios-secundarios {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        margin-bottom: 8px;
    }

    .premio-secundario-imagem {
        height: 50px;
        margin-bottom: 4px;
    }

    .premio-secundario-imagem .premio-placeholder {
        font-size: 16px;
    }

    .mais-premios {
        font-size: 11px;
        padding: 6px;
    }

    .premios-vazios {
        padding: 15px 10px;
    }

    .premios-vazios i {
        font-size: 32px;
        margin-bottom: 8px;
    }

    .premios-vazios h4 {
        font-size: 13px;
        margin-bottom: 5px;
    }

    .premios-vazios p {
        font-size: 11px;
    }
}

/* Melhorias para telas muito pequenas */
@media (max-width: 480px) {
    .premios-sidebar {
        width: 180px;
        bottom: 65px;
        right: 10px;
        padding: 10px;
    }

    .premio-principal-imagem {
        height: 70px;
    }

    .premio-secundario-imagem {
        height: 45px;
    }

    .premios-secundarios {
        gap: 4px;
    }
}

/* Melhorias para orientação paisagem em mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .premios-sidebar {
        bottom: 60px;
    }

    .premio-principal-imagem {
        height: 60px;
    }

    .premio-secundario-imagem {
        height: 40px;
    }
}

/* Garantir que o botão Ver Sorteio fique acessível */
@media (max-width: 768px) {
    .sorteio-footer {
        position: relative;
        z-index: 3;
    }

    .btn-ver-sorteio {
        position: relative;
        z-index: 4;
    }
}

/* Efeito de hover para melhor usabilidade */
@media (min-width: 769px) {
    .premios-sidebar {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .premios-sidebar:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
}

/* ACIMA DE 768px - LAYOUT NORMAL (À DIREITA) */
@media (min-width: 769px) {
    .sorteio-with-premios {
        display: grid;
        grid-template-columns: 1fr 300px;
        /* Card à esquerda, prêmios à direita */
        gap: 25px;
        margin-bottom: 30px;
    }

    .sorteio-card {
        order: 1;
        /* Card fica na primeira posição (esquerda) */
    }

    .premios-sidebar {
        order: 2;
        /* Prêmios ficam na segunda posição (direita) */
        position: static;
        /* Remove o posicionamento absoluto */
        width: auto;
        max-height: none;
        background: white;
        backdrop-filter: none;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border: 1px solid #eaeaea;
    }
}

/* NOVOS ESTILOS PARA OS CARDS MODERNIZADOS */
.sorteio-card {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
    background-clip: padding-box;
}

.sorteio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, #8a2be2 0%, #2575fc 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 1;
    pointer-events: none;
}

.sorteio-card:hover::before {
    background: linear-gradient(135deg, #9d4edd 0%, #4d8dfc 100%);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
}

/* Barra de progresso moderna */
.progress-container {
    margin: 15px 0;
    position: relative;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.progress-percentage {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    background: white;
    padding: 2px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Cores da barra de progresso */
.progress-fill.blue {
    background: linear-gradient(90deg, #2575fc, #6a11cb);
}

.progress-fill.yellow {
    background: linear-gradient(90deg, #ffb347, #ffcc33);
}

.progress-fill.red {
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
}

/* Contador ao vivo */
.countdown-timer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 12px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.countdown-timer i {
    font-size: 14px;
}

.countdown-expired {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
}

/* Texto de escassez */
.scarcity-text {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin: 8px 0;
    text-align: center;
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

/* Layout responsivo para mobile */
@media (max-width: 768px) {
    .sorteio-content {
        margin-right: 240px;
        /* Espaço para o modal flutuante */
    }

    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .progress-percentage {
        align-self: flex-end;
        margin-top: -20px;
    }

    .countdown-timer {
        font-size: 12px;
        padding: 8px 10px;
    }

    .scarcity-text {
        font-size: 11px;
        padding: 6px 10px;
    }
}

/* Melhorias para telas muito pequenas */
@media (max-width: 480px) {
    .sorteio-content {
        margin-right: 190px;
    }

    .countdown-timer {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
}

/* Adicione estas regras CSS */

/* Margem para o countdown-timer e scarcity-text */
.countdown-timer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 12px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-right: 50px;
    /* Nova margem para evitar sobreposição */
}

.scarcity-text {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin: 8px 0;
    text-align: center;
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
    margin-right: 50px;
    /* Nova margem para evitar sobreposição */
}

/* Badge de status no topo do card */
.sorteio-card {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
    background-clip: padding-box;
}

.status-badge-top {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.status-aberto-top {
    background: #28a745;
    color: white;
}

.status-encerrado-top {
    background: #dc3545;
    color: white;
}

.status-pausado-top {
    background: #ffc107;
    color: #000;
}

.status-programado-top {
    background: #17a2b8;
    color: white;
}

/* Ajustes para mobile */
@media (max-width: 768px) {

    .countdown-timer,
    .scarcity-text {
        margin-right: 0;
        /* Remove a margem em mobile já que o modal fica absoluto */
    }

    .status-badge-top {
        top: 10px;
        left: 10px;
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* Gradiente para o título do sorteio */
.sorteio-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Estilo para o valor com ícone de cédula */
.info-value.valor {
    color: #6a11cb;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-value.valor::before {
    content: "💵";
    font-size: 14px;
}

/* Alternativa com ícone Font Awesome */
.info-value.valor.fa::before {
    content: "\f155";
    /* Código do ícone de dólar do Font Awesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    margin-right: 4px;
}

/* Estilo para o total de números com trevo */
.info-value.numeros {
    color: #28a745;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-value.numeros::before {
    content: "🍀";
    font-size: 14px;
}

/* Alternativa com ícone Font Awesome */
.info-value.numeros.fa::before {
    content: "\f1bb";
    /* Código do ícone de trevo do Font Awesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    margin-right: 4px;
}

/* ===== ESTILOS DO SLIDER DE BANNERS ===== */
.banner-slider {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;

    /* CORREÇÃO ADICIONADA: */
    /* Faz os slides invisíveis serem "não-clicáveis" */
    pointer-events: none;
    z-index: 1; /* Garante que os inativos fiquem atrás */
}

.banner-slide.active {
    opacity: 1;
    
    /* CORREÇÃO ADICIONADA: */
    /* Faz APENAS o slide ativo ser clicável */
    pointer-events: auto;
    z-index: 2; /* Traz o ativo para a frente */
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    /* Remove sublinhado ou cor de link */
}

/* Botões de navegação do slider */
.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #6a11cb;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.banner-prev:hover,
.banner-next:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

/* Indicadores do slider */
.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: #6a11cb;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .banner-slider {
        height: 350px;
    }

    .banner-prev,
    .banner-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .banner-prev {
        left: 10px;
    }

    .banner-next {
        right: 10px;
    }

    .banner-indicators {
        bottom: 10px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* Para telas muito pequenas */
@media (max-width: 480px) {
    .banner-slider {
        height: 350px;
    }

    .banner-prev,
    .banner-next {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Animações para o slider */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

/* Estilos para lista de números expansível */
.numeros-participados-container {
    margin: 10px 0;
}

.expandir-numeros-btn {
    background: #6a11cb;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.expandir-numeros-btn:hover {
    background: #2575fc;
    transform: translateY(-1px);
}

.expandir-numeros-btn i {
    transition: transform 0.3s ease;
}

.expandir-numeros-btn.expandido i {
    transform: rotate(180deg);
}

.numeros-participados-lista {
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #eaeaea;
}

.numeros-participados-lista.mostrar {
    display: flex;
}

.numero-participado {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    min-width: 30px;
    text-align: center;
}

.numero-participado.proximo {
    background: #ffeb3b;
    border-color: #ffc107;
    color: #000;
    font-weight: bold;
}

.contador-numeros {
    font-size: 12px;
    color: #6c757d;
    margin-left: 8px;
    font-weight: normal;
}

/* Para mobile */
@media (max-width: 768px) {
    .numeros-participados-lista {
        gap: 4px;
        padding: 8px;
    }
    
    .numero-participado {
        padding: 3px 6px;
        font-size: 11px;
        min-width: 26px;
    }
    
    .expandir-numeros-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* Estilos específicos para Meus Números */
.meus-numeros-header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.meus-numeros-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.sorteio-numeros-card {
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sorteio-numeros-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.sorteio-numeros-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.sorteio-numeros-title {
    flex: 1;
}

.sorteio-numeros-title h5 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.sorteio-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.status-ativo {
    background: #d4edda;
    color: #155724;
}

.status-encerrado {
    background: #f8d7da;
    color: #721c24;
}

.status-pausado {
    background: #fff3cd;
    color: #856404;
}

.valores-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.valor-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.valor-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.valor-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.valor-total {
    color: #28a745;
}

.valor-por-numero {
    color: #6a11cb;
}

.valor-quantidade {
    color: #17a2b8;
}

.numeros-section {
    margin-top: 15px;
}

.numeros-section h6 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.empty-meus-numeros {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-meus-numeros i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #dee2e6;
}

.empty-meus-numeros h4 {
    margin-bottom: 10px;
    font-size: 18px;
}

.empty-meus-numeros p {
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto;
}

/* Responsividade */
@media (max-width: 768px) {
    .sorteio-numeros-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .valores-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .valor-value {
        font-size: 14px;
    }
    
    .sorteio-numeros-card {
        padding: 15px;
    }
}


/* Estilos para melhor carregamento dos banners */
.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.banner-slide:not(.active) .banner-image {
    opacity: 0;
}

.banner-slide.active .banner-image {
    opacity: 1;
}

/* Loading state para banners */
.banner-slider.loading {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slider.loading::before {
    content: 'Carregando banners...';
    color: #6c757d;
    font-size: 16px;
}