/* SISTEMA DE RIFAS - CSS Principal */

:root {
    --cor-primaria: #2196F3;
    --cor-primaria-escura: #043f61;
    --cor-secundaria: #FF9800;
    --cor-sucesso: #4CAF50;
    --cor-alerta: #FFC107;
    --cor-erro: #F44336;
    --cor-texto: #333;
    --cor-texto-claro: #666;
    --cor-fundo: #f5f5f5;
    --cor-fundo-card: #fff;
    --cor-borda: #ddd;
    --cor-branco: #fff;
    --cor-sombra: rgba(0, 0, 0, 0.1);
    --transicao: all 0.3s ease;

    /* --cor-primaria: #FF9800;
    --cor-primaria-escura: #F57C00;
    --cor-secundaria: #2196F3;
    --cor-sucesso: #4CAF50;
    --cor-alerta: #FFC107;
    --cor-erro: #F44336;
    --cor-texto: #333;
    --cor-texto-claro: #666;
    --cor-fundo: #f5f5f5;
    --cor-borda: #ddd;
    --cor-branco: #fff;
    --cor-sombra: rgba(0, 0, 0, 0.1);
    --transicao: all 0.3s ease; */
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    line-height: 1.6;
}

html, body {
    height: 100%;
}

/* HEADER E NAVEGAÇÃO */
header {
    background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-primaria-escura) 100%);
    color: var(--cor-branco);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px var(--cor-sombra);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.8rem;
    font-weight: bold;
}

header h1 .titulo-link {
    color: var(--cor-branco);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

header h1 .titulo-link:hover {
    opacity: 0.9;
    cursor: pointer;
}

nav {
    display: flex;
    gap: 0;
    align-items: center;
}

nav a {
    color: var(--cor-branco);
    text-decoration: none;
    transition: var(--transicao);
    white-space: nowrap;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

nav a:first-child {
    border-radius: 100px 0 0 100px;
}

nav a:last-child {
    border-radius: 0 100px 100px 0;
}

nav a.nav-share {
    padding: 0.6rem 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

nav a.nav-share svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

nav a:hover {
    opacity: 0.95;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Menu Hamburguer */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--cor-branco);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
    }

    header h1 {
        font-size: 1.3rem;
        flex-basis: 100%;
    }

    nav {
        flex-basis: 100%;
        gap: 0;
        margin-top: -1rem;
        justify-content: center;
    }

    nav a {
        padding: 0.5rem 1rem;
        display: inline-block;
    }

    nav a.nav-share {
        padding: 0.5rem 1rem;
    }
}

/* CONTAINER E GRID */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* CARD */
.card {
    background: var(--cor-branco);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--cor-sombra);
    padding: 1.5rem;
    transition: var(--transicao);
}

.card:hover {
    box-shadow: 0 4px 16px var(--cor-sombra);
    transform: translateY(-4px);
}

.card a img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.card-header {
    border-bottom: 2px solid var(--cor-primaria);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.card-header h2 {
    color: var(--cor-primaria);
    font-size: 1.4rem;
}

/* TABELA */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--cor-branco);
}

th {
    background: var(--cor-primaria);
    color: var(--cor-branco);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--cor-borda);
}

tr:hover {
    background: var(--cor-fundo);
}

/* FORMULÁRIO */
form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--cor-texto);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--cor-borda);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transicao);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* BOTÃO */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transicao);
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--cor-primaria);
    color: var(--cor-branco);
}

.btn-primary:hover {
    background: var(--cor-primaria-escura);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.btn-secondary {
    background: var(--cor-secundaria);
    color: var(--cor-branco);
}

.btn-secondary:hover {
    background: #1976D2;
}

.btn-success {
    background: var(--cor-sucesso);
    color: var(--cor-branco);
}

.btn-success:hover {
    background: #45a049;
}

.btn-warning {
    background: var(--cor-alerta);
    color: var(--cor-texto);
}

.btn-warning:hover {
    background: #FFA000;
}

.btn-danger {
    background: var(--cor-erro);
    color: var(--cor-branco);
}

.btn-danger:hover {
    background: #da190b;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* NÚMERO - SELEÇÃO */
.numeros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 0.5rem;
    margin: 2rem 0;
}

/* LAYOUT NOVO - Informações no Topo */
.rifa-info-top {
    background: var(--cor-branco);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px var(--cor-sombra);
}

.rifa-header-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.rifa-foto-destaque {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--cor-sombra);
}

.rifa-detalhes {
    width: 100%;
}

.rifa-titulo-destaque {
    font-size: 2rem;
    color: var(--cor-texto);
    margin-bottom: 1rem;
}

.rifa-descricao {
    color: var(--cor-texto-claro);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.rifa-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: var(--cor-fundo);
    border-radius: 8px;
    border: 2px solid var(--cor-borda);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--cor-texto-claro);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--cor-primaria);
}

.stat-vendidos {
    color: var(--cor-erro);
}

.stat-disponiveis {
    color: var(--cor-sucesso);
}

/* FILTROS DE STATUS */
.filtros-status {
    background: var(--cor-branco);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px var(--cor-sombra);
}

.filtros-titulo {
    font-size: 1.3rem;
    color: var(--cor-texto);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filtros-subtitulo {
    color: var(--cor-texto-claro);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.filtros-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filtro-btn {
    flex: 1;
    min-width: 150px;
    padding: 1rem 1.5rem;
    border: 2px solid var(--cor-borda);
    background: var(--cor-fundo);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transicao);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filtro-btn:hover {
    border-color: var(--cor-primaria);
    background: var(--cor-branco);
    transform: translateY(-2px);
}

.filtro-btn.active {
    border-color: var(--cor-primaria);
    background: var(--cor-primaria);
    color: var(--cor-branco);
}

.filtro-label {
    font-weight: 600;
    font-size: 1rem;
}

.filtro-badge {
    background: var(--cor-branco);
    color: var(--cor-texto);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.filtro-btn.active .filtro-badge {
    background: rgba(255, 255, 255, 0.3);
    color: var(--cor-branco);
}

.filtro-badge-disponivel {
    background: #4CAF50;
    color: var(--cor-branco);
}

.filtro-badge-pago {
    background: #d0d1d0;
    color: var(--cor-branco); 
}

.filtro-badge-reservado {
    background: #FFC107;
    color: var(--cor-texto);
}

/* CONTAINER DE NÚMEROS - LARGURA TOTAL */
.numeros-container {
    background: var(--cor-branco);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px var(--cor-sombra);
}

.numeros-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 0.4rem;
}

.numero-btn {
    aspect-ratio: 1;
    border: 2px solid var(--cor-borda);
    border-radius: 6px;
    background: var(--cor-branco);
    color: var(--cor-texto);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transicao);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.numero-btn:hover {
    transform: scale(1.05);
}

.numero-btn.disponivel {
    background: #4CAF50;
    border-color: #4CAF50;
    color: var(--cor-branco);
}

.numero-btn.disponivel:hover {
    background: var(--cor-primaria);
    color: var(--cor-branco);
    border-color: var(--cor-primaria);
}

.numero-btn.selecionado {
    background: var(--cor-primaria);
    border-color: var(--cor-primaria);
    color: var(--cor-branco);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
}

.numero-btn.pago,
.numero-btn.vendido {
    background: #d0d1d0;
    border-color: #d0d1d0;
    color: var(--cor-branco);
    cursor: not-allowed;
}

.numero-btn.reservado {
    background: #FFC107;
    border-color: #FFC107;
    color: var(--cor-texto);
    cursor: not-allowed;
}

.numero-btn.hidden {
    display: none;
}

/* INFORMAÇÕES ADICIONAIS - GRID */
.info-adicional-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

/* BADGE */
.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-primary {
    background: rgba(255, 152, 0, 0.2);
    color: var(--cor-primaria);
}

.badge-success {
    background: rgba(76, 175, 80, 0.2);
    color: var(--cor-sucesso);
}

.badge-warning {
    background: rgba(255, 193, 7, 0.2);
    color: #F57F17;
}

.badge-danger {
    background: rgba(244, 67, 54, 0.2);
    color: var(--cor-erro);
}

.badge-info {
    background: rgba(33, 150, 243, 0.2);
    color: var(--cor-secundaria);
}

/* ALERTA */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-info {
    background: rgba(33, 150, 243, 0.1);
    border-color: var(--cor-secundaria);
    color: var(--cor-secundaria);
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border-color: var(--cor-sucesso);
    color: var(--cor-sucesso);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: var(--cor-alerta);
    color: #F57F17;
}

.alert-danger {
    background: rgba(244, 67, 54, 0.1);
    border-color: var(--cor-erro);
    color: var(--cor-erro);
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--cor-branco);
    border-radius: 8px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px var(--cor-sombra);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--cor-primaria);
    padding-bottom: 1rem;
}

.modal-header h2 {
    color: var(--cor-primaria);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--cor-texto-claro);
}

.modal-close:hover {
    color: var(--cor-texto);
}

/* NOTIFICAÇÃO */
.notificacao {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    max-width: 400px;
    padding: 1rem;
    border-radius: 4px;
    background: var(--cor-branco);
    box-shadow: 0 4px 12px var(--cor-sombra);
    z-index: 1001;
    animation: slideIn 0.3s ease;
}

.notificacao.sucesso {
    border-left: 4px solid var(--cor-sucesso);
    color: var(--cor-sucesso);
}

.notificacao.erro {
    border-left: 4px solid var(--cor-erro);
    color: var(--cor-erro);
}

.notificacao.info {
    border-left: 4px solid var(--cor-secundaria);
    color: var(--cor-secundaria);
}

/* RESUMO/RESUMO LATERAL */
.resumo {
    background: var(--cor-fundo);
    border: 1px solid var(--cor-borda);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.resumo-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--cor-borda);
}

.resumo-item:last-child {
    border-bottom: none;
}

.resumo-total {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--cor-primaria);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--cor-primaria);
}

/* PROGRESSÃO */
.progress {
    width: 100%;
    height: 25px;
    background: var(--cor-borda);
    border-radius: 20px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--cor-primaria) 0%, var(--cor-primaria-escura) 100%);
    width: 0%;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cor-branco);
    font-size: 0.8rem;
    font-weight: 600;
}

/* ANIMAÇÕES */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* UTILITÁRIOS */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
    display: none !important;
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

/* BARRA FLUTUANTE DE BILHETES */
.barra-flutuante {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--cor-branco);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 3px solid var(--cor-primaria);
}

.barra-flutuante.show {
    transform: translateY(0);
}

.barra-flutuante-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.barra-flutuante-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.bilhetes-selecionados h4 {
    font-size: 0.9rem;
    color: var(--cor-texto-claro);
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.barra-grade-numeros {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    max-width: 500px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 0.5rem;
    align-items: center;
}

.barra-grade-numeros::-webkit-scrollbar {
    width: 4px;
}

.barra-grade-numeros::-webkit-scrollbar-track {
    background: var(--cor-fundo);
}

.barra-grade-numeros::-webkit-scrollbar-thumb {
    background: var(--cor-primaria);
    border-radius: 4px;
}

.barra-numero-item {
    background: var(--cor-primaria);
    color: var(--cor-branco);
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(255, 152, 0, 0.2);
    transition: var(--transicao);
    min-height: 32px;
    flex-shrink: 0;
}

.barra-numero-item:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(255, 152, 0, 0.4);
}

.barra-numero-valor {
    display: flex;
    align-items: center;
    justify-content: center;
}

.barra-numero-remover {
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: var(--cor-branco);
    padding: 0.2rem 0.3rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transicao);
    opacity: 0.9;
    min-width: 20px;
    min-height: 20px;
}

.barra-numero-remover:hover {
    background: rgba(0, 0, 0, 0.4);
    opacity: 1;
    transform: scale(1.1);
}

.lista-bilhetes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-height: 80px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.lista-bilhetes::-webkit-scrollbar {
    width: 4px;
}

.lista-bilhetes::-webkit-scrollbar-track {
    background: var(--cor-fundo);
}

.lista-bilhetes::-webkit-scrollbar-thumb {
    background: var(--cor-primaria);
    border-radius: 4px;
}

.bilhete-badge {
    background: var(--cor-primaria);
    color: var(--cor-branco);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.barra-total {
    display: none;
}

.barra-total-label {
    display: none;
}

.barra-total-valor {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--cor-primaria);
}

.btn-participar {
    background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-primaria-escura) 100%);
    color: var(--cor-branco);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transicao);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    white-space: nowrap;
}

.btn-participar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.btn-participar:active {
    transform: translateY(0);
}

/* FOOTER */
footer {
    background: var(--cor-texto);
    color: var(--cor-branco);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
    gap: 0.5rem;
}

.footer-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.footer-link-whatsapp { background: linear-gradient(135deg, #127535 0%, #2FE27D 100%); }
.footer-link-instagram { background: linear-gradient(135deg, #e6185d 0%, #F77737 100%); }
.footer-link-facebook { background: linear-gradient(135deg, #0f4a97 0%, #4C8BFF 100%); }
.footer-link-youtube { background: linear-gradient(135deg, #910101 0%, #FF4D4D 100%); }

.footer-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* RESPONSIVO - TABLET */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    nav a {
        margin-left: 1rem;
        font-size: 0.9rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .numeros-grid {
        grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .notificacao {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }

    /* Novo Layout */
    .rifa-header-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .rifa-foto-destaque {
        max-width: 300px;
        margin: 0 auto;
    }

    .rifa-titulo-destaque {
        font-size: 1.5rem;
    }

    .rifa-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .filtros-buttons {
        gap: 0.75rem;
    }

    .filtro-btn {
        min-width: calc(50% - 0.5rem);
    }

    .numeros-grid-full {
        grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
        gap: 0.35rem;
    }

    .info-adicional-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .barra-flutuante-container {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .barra-flutuante-info {
        width: 100%;
        flex-direction: column;
        gap: 1rem;
    }

    .barra-total {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        border-right: none;
        border-top: 1px solid var(--cor-borda);
        padding: 0.5rem 0;
        padding-right: 0;
    }

    .btn-participar {
        width: 100%;
        padding: 0.9rem 2rem;
    }

    .lista-bilhetes {
        max-height: 60px;
    }
}

@media (max-width: 600px) {
    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-link {
        width: 220px;
    }
}

/* RESPONSIVO - MOBILE */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.3rem;
    }

    .container {
        padding: 0 0.5rem;
    }

    .card {
        padding: 1rem;
    }

    .numeros-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .numero-btn {
        font-size: 0.8rem;
    }

    .btn {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 0.5rem;
    }

    .modal-content {
        padding: 1rem;
    }

    nav a {
        display: block;
        margin-left: 0;
        margin-top: 0.5rem;
    }

    /* Novo Layout Mobile */
    .rifa-info-top {
        padding: 1rem;
    }

    .rifa-titulo-destaque {
        font-size: 1.3rem;
    }

    .rifa-descricao {
        font-size: 0.95rem;
    }

    .rifa-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stat-item {
        padding: 0.75rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .filtros-status {
        padding: 1rem;
    }

    .filtros-titulo {
        font-size: 1.1rem;
    }

    .filtros-buttons {
        gap: 0.5rem;
    }

    .filtro-btn {
        min-width: 100%;
        padding: 0.75rem 1rem;
    }

    .numeros-container {
        padding: 1rem;
    }

    .numeros-grid-full {
        grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
        gap: 0.3rem;
    }

    .numero-btn {
        font-size: 0.75rem;
    }

    .barra-flutuante-container {
        padding: 0.75rem;
    }

    .barra-total-valor {
        font-size: 1.2rem;
    }

    .btn-participar {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }

    .bilhetes-selecionados h4 {
        font-size: 0.85rem;
    }

    .bilhete-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Adicionar padding no body quando a barra flutuante estiver visível */
body.barra-ativa main {
    margin-bottom: 180px;
}

@media (max-width: 768px) {
    body.barra-ativa main {
        margin-bottom: 220px;
    }
}

@media (max-width: 480px) {
    body.barra-ativa main {
        margin-bottom: 200px;
    }
}

/* ======================================
   GALERIA DE 4 FOTOS - Desktop/Mobile
   ====================================== */

/* DESKTOP: Grid de Fotos (lado a lado) */
.rifa-fotos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

.rifa-foto-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--cor-fundo);
    aspect-ratio: 4/3;
}

.rifa-foto-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    background: #fff;
}

.rifa-foto-item:hover img {
    transform: scale(1.05);
}

/* MOBILE: Carrossel (oculto no desktop) */
.rifa-fotos-carrossel {
    display: none;
}

@media (min-width: 768px) {
.visible_with_mobile {
    display: none !important;
}
}


/* RESPONSIVO: Mostrar carrossel no mobile, esconder grid */
@media (max-width: 768px) {

    .hidden_with_mobile {
        display: none !important;
    }

    .rifa-fotos-grid {
        display: none; /* Esconde grid no mobile */
    }

    .rifa-fotos-carrossel {
        display: block; /* Mostra carrossel no mobile */
        margin-bottom: 1.5rem;
    }

    .carrossel-container {
        position: relative;
        width: 100%;
        overflow: hidden;
        border-radius: 12px;
        background: var(--cor-fundo);
    }

    .carrossel-track {
        position: relative;
        width: 100%;
        aspect-ratio: 16/10;
        overflow: hidden;
        border-radius: 12px;
    }

    .carrossel-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.5s ease;
        pointer-events: none;
    }

    .carrossel-slide.ativo {
        opacity: 1;
        pointer-events: auto;
    }

    .carrossel-slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: #fff;
        border-radius: 12px;
    }

    .carrossel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        padding: 1rem 0.75rem;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 10;
        transition: background 0.3s ease;
        border-radius: 4px;
    }

    .carrossel-btn:hover {
        background: rgba(0, 0, 0, 0.7);
    }

    .carrossel-prev {
        left: 0.5rem;
    }

    .carrossel-next {
        right: 0.5rem;
    }

    .carrossel-dots {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 0.75rem;
    }

    .carrossel-dots .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--cor-borda);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .carrossel-dots .dot.ativo {
        background: var(--cor-primaria);
        transform: scale(1.3);
    }
}
