/* Importando fontes e reset básico */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    /* Variáveis Globais */
    --white: #ffffff;
    --text-dark: #333;

    /* Variáveis do Sorteio Caioaba (Verde) */
    --green-dark: #2A522A;
    --green-light: #4CAF50;
    --gray-light: #F0F0F0;
    --gray-medium: #CCCCCC;
    --red-promo: #DC3545;
    --orange-star: #FFC107;

    /* Variáveis da Home OLX (Azul) */
    --olx-blue: #002f34;
    --olx-green: #3a77ff;
    --olx-background: linear-gradient(to bottom, #f5fbf5, #caebca); /* Gradiente verde claro */
    --olx-text-color: #404040;
    --olx-shadow-light: rgba(0, 0, 0, 0.1);
    --olx-border-light: #ccc;

    /* Variáveis do Bolão Megasena */
    --megasena-green: #1DB954;
}

* { box-sizing: border-box; }
body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f1f1f1;
  color: #212121;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =============================================================
   2. ESTILOS DA PÁGINA INICIAL (ESTILO OLX)
   ============================================================= */
body.olx-style {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--olx-background); /* Garante um fundo para as laterais */
    color: var(--olx-text-color);
}

.main-header {
    background-color: var(--olx-blue);
    padding: 10px 30px;
    color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative; /* Garante que fique sobre o fundo */
    z-index: 2; /* Acima do conteúdo e do fundo */
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    height: 40px;
    width: auto;
}

.search-bar {
    flex-grow: 1;
    max-width: 600px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-actions a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.user-actions a:hover {
    opacity: 0.8;
}

.btn-post {
    background-color: var(--olx-green);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative; /* Cria um contexto para o z-index dos filhos funcionar */
}

.main-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 30px 0 10px 0; /* Espaçamento acima e abaixo do logo */
    flex-wrap: wrap; /* Garante que o layout se ajuste em telas menores */
    flex-direction: column; /* Alinha os itens verticalmente */
    min-height: 150px; /* Evita que a página "pule" durante as transições */
}

.main-logo-container img {
    max-width: 250px; /* Tamanho máximo para o logo */
    height: auto;
    transition: opacity 0.2s ease-in-out;
}

.main-logo-container a:hover img {
    opacity: 0.85; /* Efeito sutil no hover */
}

.slogan {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    font-style: italic;
    color: var(--olx-blue);
    min-height: 1.5em; /* Evita pulos de layout quando o slogan está vazio */
    text-align: center;
}

.winners-ticker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
    font-size: 1.1rem;
    color: var(--olx-blue);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    text-align: center;
}

.winner-icon {
    color: #FFC107; /* Dourado */
    font-size: 1.8rem;
}

.raffles-count {
    text-align: center;
    margin-top: 5px;
    margin-bottom: 25px; /* Espaço antes da seção de categorias */
    font-size: 1rem;
    color: var(--olx-text-color);
    font-weight: 500;
}

.raffles-count strong {
    font-weight: 700;
    color: var(--olx-blue);
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em; /* Altura similar à da fonte */
    background-color: var(--olx-blue);
    animation: blink-cursor 1s step-end infinite;
    vertical-align: bottom; /* Alinha com a base do texto */
}

.categories {
    background-color: var(--white);
    padding: 20px 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px var(--olx-shadow-light);
}

.category-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.category-item {
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.2s;
    cursor: pointer;
}

.category-item:hover {
    color: var(--olx-green);
}

.category-icon {
    font-size: 28px;
    color: var(--olx-blue);
    margin-bottom: 5px;
}

.main-content h1 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 500;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(192px, 1fr)); /* 240px * 0.8 = 192px */
    gap: 20px;
}

.raffle-card {
    background-color: var(--white);
    border: 1px solid var(--olx-border-light);
    border-radius: 12px; /* Aumenta o arredondamento para um visual mais suave */
    /* overflow: hidden; */ /* Removido para que os recortes laterais fiquem visíveis */
    box-shadow: 0 2px 5px var(--olx-shadow-light);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative; /* Necessário para o posicionamento dos pseudo-elementos */
}

.raffle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px var(--olx-shadow-light);
}

.card-image {
    width: 100%;
    height: 145px; /* 180px * 0.8 = 144px */
    object-fit: cover;
    border-top-left-radius: 11px;  /* Arredonda os cantos da imagem para corresponder ao card */
    border-top-right-radius: 11px;
}

.card-details {
    padding: 15px;
    position: relative; /* Contexto para os pseudo-elementos */
    border-top: 2px dashed #e0e0e0; /* Linha pontilhada que separa as partes do ticket */
}

/* Pseudo-elementos para criar os recortes de círculo nas laterais */
.card-details::before,
.card-details::after {
    content: '';
    position: absolute;
    width: 12px;  /* Largura do recorte */
    height: 12px; /* Altura do recorte */
    background: transparent; /* Usa a cor de fundo da página para simular o recorte */
    border-radius: 50%;
    top: -8px; /* Posiciona o círculo sobre a linha pontilhada */
}

.card-details::before {
    left: -8px; /* Posição do recorte esquerdo */
}

.card-details::after {
    right: -8px; /* Posição do recorte direito */
}

.card-details h2 {
    font-size: 14px; /* Reduzido para melhorar a visualização */
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--olx-blue);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-category-tag {
    display: inline-block;
    background: var(--olx-background);
    color: var(--olx-green);
    border: 1px solid var(--olx-green);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.card-details .price {
    font-size: 18px; /* Reduzido proporcionalmente */
    font-weight: 700;
    color: var(--olx-blue);
    margin-bottom: 5px;
}

.card-details .status {
    font-size: 13px; /* Reduzido proporcionalmente */
    color: var(--olx-green);
    font-weight: 500;
}

.no-results, .loading-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    font-size: 1.1rem;
    color: #666;
}

/* =============================================================
   ANIMAÇÃO DO CURSOR (Typewriter)
   ============================================================= */
@keyframes blink-cursor {
    from, to {
        background-color: transparent;
    }
    50% {
        background-color: var(--olx-blue);
    }
}

/* =============================================================
   ANIMAÇÃO DO LOGO
   ============================================================= */
@keyframes gentle-swing {
    from {
        transform: rotate(-2deg); /* Rotação inicial para a esquerda */
    }
    to {
        transform: rotate(2deg); /* Rotação final para a direita */
    }
}

.main-logo-container img.swinging {
    transform-origin: top center;
    animation: gentle-swing 4s ease-in-out 1 alternate; /* Animação executa apenas uma vez */
}

/* =============================================================
   FOOTER
   ============================================================= */

.main-footer {
    background-color: var(--olx-blue);
    color: var(--white);
    padding: 20px 30px;
    width: 100%;
    margin-top: 50px; /* Adiciona um espaço entre o conteúdo e o rodapé */
    border-top: 5px solid var(--olx-green); /* Detalhe visual para separar o rodapé */
    position: relative; /* Garante que fique sobre o fundo */
    z-index: 1;
}

.footer-top-section {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 25px;
    padding-bottom: 30px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-search {
    flex-grow: 1;
}

.footer-bottom-section {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-section p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

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

.developed-by img {
    height: 40px; /* Altura do selo */
    width: auto;
}

.footer-seal {
    background-color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    transition: opacity 0.2s;
}

.footer-seal:hover {
    opacity: 0.9;
}

.footer-seal a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.footer-seal img { height: 16px; }

@media (max-width: 768px) {
    .footer-top-section, .footer-bottom-section {
        flex-direction: column;
        text-align: center;
    }

    .footer-search {
        width: 100%;
    }

    .user-actions {
        justify-content: center;
        margin-top: 15px;
    }

    .main-logo-container img {
        max-width: 200px;
    }

    .slogan {
        font-size: 1rem;
        text-align: center; /* Garante que o slogan centralize se quebrar a linha */
    }

    .main-content h1 {
        text-align: center;
    }
}



/* --- Classe Utilitária para Esconder Elementos --- */
.hidden {
    display: none !important;
}

/* --- Estilos dos Modais --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    width: 90%;
    max-width: 400px;
    margin: 1.75rem auto;
}

.modal-content {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: none;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-body {
    padding: 1.5rem;
}

/* Formulários dentro dos modais */
.app-form .form-floating {
    margin-bottom: 1.5rem;
    position: relative;
}

.app-form .form-control {
    height: 50px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    padding: 0 1rem;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.app-form .form-control:focus {
    border-color: var(--megasena-green);
    box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.2);
    background-color: #fff;
    outline: none;
}

.app-form .form-floating > label {
    color: #888;
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    transition: all 0.2s;
    pointer-events: none;
    background-color: transparent;
}

.app-form .form-control:focus + label,
.app-form .form-control:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.75rem;
    background-color: #fff;
    padding: 0 5px;
    color: var(--megasena-green);
}

.app-form button[type="submit"] {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    background-color: var(--megasena-green);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.app-form button[type="submit"]:hover {
    background-color: #189a46;
}

/* Modal de PIX */
#pix-modal .modal-body {
    text-align: center;
}

#qrcode {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
}

#qrcode img {
    max-width: 100%;
    height: auto;
}

#copia-e-cola {
    font-family: monospace;
    font-size: 0.9rem;
    background-color: #f0f2f5;
    border-radius: 8px;
    text-align: center;
    resize: none;
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
}

/* --- Estilos do Bolão Megasena --- */
.pool-total-section {
    background: linear-gradient(45deg, #0C5449, #1DB954);
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 8px 20px rgba(29, 185, 84, 0.3);
}

.pool-total-section h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
}

.pool-total-value {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 10px 0;
    letter-spacing: 1px;
}

.pool-total-section p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.megasena-grid-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.megasena-grid-container h3, .megasena-grid-container h4 {
    text-align: center;
    margin-top: 0;
}

.megasena-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 8px;
    margin: 20px 0;
}

.megasena-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #f0f2f5;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
    user-select: none;
}

.megasena-number:hover {
    background-color: #e0e3e8;
}

.megasena-number.selected {
    background-color: var(--megasena-green);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(29, 185, 84, 0.4);
}

.selection-info {
    text-align: center;
    font-weight: 500;
    color: #555;
}

.selection-subtext {
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: -10px;
    margin-bottom: 15px;
}

.participate-box {
    margin-bottom: 20px;
}

.btn-participate-full {
    width: 100%;
    background-color: #198754;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 15px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-participate-full:hover:not(:disabled) {
    background-color: #146c43;
    transform: translateY(-2px);
}

.btn-participate-full:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-participate-full .btn-participate-text { text-align: left; }
.btn-participate-full span { display: block; }
.btn-participate-full strong { display: block; font-size: 0.9rem; opacity: 0.8; }
.btn-participate-full i { font-size: 1.8rem; }

/* --- Estilos do Seletor de Cotas --- */
.raffle-quotes-container { background-color: #fff; padding: 20px; border-radius: 12px; margin-bottom: 20px; text-align: center; }
.manual-selector { display: flex; justify-content: center; align-items: center; margin: 15px 0; }
.quantity-btn { background-color: #f0f0f0; border: 1px solid #ccc; border-radius: 50%; font-size: 1.5em; width: 40px; height: 40px; cursor: pointer; }
#quantity-input { 
    width: 80px; text-align: center; font-size: 1.2em; margin: 0 10px; 
    border: 1px solid #ccc; border-radius: 5px; padding: 5px; 
    -moz-appearance: textfield; /* Firefox */
}
/* Esconde as setas do input number no Chrome, Safari, Edge, Opera */
#quantity-input::-webkit-outer-spin-button,
#quantity-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quote-packages { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.quote-btn { padding: 10px 15px; border: 1px solid #ccc; background-color: #f0f0f0; border-radius: 20px; cursor: pointer; font-weight: bold; }

/* --- Estilos do Botão Copiar PIX --- */
.copy-pix-container {
    position: relative;
    margin-top: 10px;
}

.btn-copy-pix {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #555;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.btn-copy-pix:hover {
    color: var(--megasena-green);
}

#copia-e-cola {
    padding-right: 50px; /* Espaço para o botão */
}

/* =============================================================
   ESTILOS V2 PARA SORTEIO (BASEADO EM SORTEIO.HTML)
   ============================================================= */

:root {
    --green-dark: #2A522A;
    --green-light: #4CAF50;
    --white: #FFFFFF;
    --gray-light: #F0F2F5;
    --gray-medium: #CCCCCC;
    --red-promo: #DC3545;
    --orange-star: #FFC107;
    --text-dark: #333;
}

body.raffle-page-v2 {
    background-color: var(--gray-light);
}

body.raffle-page-v2 .container {
    max-width: 600px;
    background-color: var(--white);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 0;
}

/* --- Floating Buttons --- */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}
.floating-buttons .float-btn.whatsapp {
    background-color: var(--green-light);
    color: var(--white);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    position: relative;
}
.floating-buttons .float-btn.whatsapp::before {
    content: '1'; /* Notification count */
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--red-promo);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}
.floating-buttons .btn-group {
    background-color: var(--green-dark);
    border-radius: 25px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
}
.floating-buttons .btn-group i {
    font-size: 18px;
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--green-dark);
    color: var(--white);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}

/* --- Main Image Section --- */
.main-image-section {
    padding: 15px;
    background-color: var(--white);
    text-align: center;
}
.main-image-wrapper {
    width: 100%;
    padding-bottom: 75%; /* Aspect ratio 4:3 */
    position: relative;
    background-color: var(--gray-light);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}
.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.action-card {
    background-color: var(--green-dark);
    border-radius: 8px;
    padding: 15px;
    color: var(--white);
    text-align: center;
}
.action-card h1 {
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 5px;
    font-weight: 500;
}
.action-card p {
    font-size: 0.9em;
    margin-bottom: 15px;
    opacity: 0.8;
}
.btn-view-cotas {
    background-color: var(--green-light);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 500;
}
.btn-view-cotas:hover {
    opacity: 0.9;
}

/* --- Raffle Info --- */
.raffle-info {
    background-color: var(--gray-light);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95em;
    border-bottom: 1px solid #e0e0e0;
}
.raffle-info strong {
    color: var(--green-light);
    font-size: 1.1em;
}

/* --- Buy Section --- */
.buy-section {
    background-color: var(--white);
    padding: 20px 15px;
    text-align: center;
}
.buy-section h2 {
    font-size: 1.1em;
    margin-bottom: 20px;
    font-weight: 500;
}
.quota-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}
.quota-option {
    border: 1px solid var(--gray-medium);
    border-radius: 8px;
    padding: 10px 5px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}
.quota-option.popular {
    border-color: var(--green-light);
    box-shadow: 0 0 0 2px var(--green-light);
}
.quota-option.popular::before {
    content: 'MAIS POPULAR';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--green-light);
    color: var(--white);
    font-size: 0.7em;
    padding: 2px 8px;
    border-radius: 5px;
    font-weight: bold;
    white-space: nowrap;
}
.quota-option span {
    display: block;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--green-dark);
}
.quota-option button {
    background-color: var(--green-light);
    color: var(--white);
    border: none;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    cursor: pointer;
}
.quota-option.selected {
    background-color: var(--green-light);
    border-color: var(--green-dark);
}
.quota-option.selected span, .quota-option.selected button { color: var(--white); }
.quota-option.selected button { background-color: var(--green-dark); }

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}
.quantity-control button {
    background-color: var(--gray-light);
    color: var(--text-dark);
    border: 1px solid var(--gray-medium);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quantity-control input {
    width: 80px;
    text-align: center;
    padding: 8px 0;
    border: 1px solid var(--gray-medium);
    border-radius: 5px;
    font-size: 1em;
    -moz-appearance: textfield;
    appearance: textfield;
}
.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.btn-participate {
    background-color: var(--green-light);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1.1em;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
}
.btn-participate i { margin-left: 8px; }

/* --- Promo & Status Section --- */
.promo-section {
    background-color: var(--red-promo);
    color: var(--white);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 0.95em;
}
.promo-section i { color: var(--orange-star); }

.quota-status {
    background-color: var(--green-dark);
    color: var(--white);
    padding: 12px 15px;
    text-align: center;
    font-size: 1.1em;
    font-weight: 500;
}

/* --- Generic Section Header --- */
.section-header {
    background-color: var(--green-dark);
    color: var(--white);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 1em;
    margin-top: 15px;
    cursor: pointer;
}
.section-header i { color: var(--orange-star); }

/* --- Ranking Section --- */
.ranking-section {
    padding: 20px 15px;
    background-color: var(--white);
}
.ranking-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}
.ranking-card {
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.ranking-card i {
    font-size: 2.5em;
    color: var(--gray-medium);
    margin-bottom: 10px;
}
.ranking-card .name {
    font-weight: bold;
    margin-bottom: 5px;
}
.ranking-card .cotas {
    font-size: 0.9em;
    color: var(--text-dark);
}

/* --- Awarded Cotas Section --- */
.awarded-cotas-section {
    padding: 20px 15px;
    background-color: var(--white);
}
.awarded-cotas-section p {
    font-size: 0.9em;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.prized-ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    background-color: var(--gray-light);
    margin-bottom: 8px;
}
.prized-ticket-item .prize-desc {
    font-weight: 500;
}
.prized-ticket-item .ticket-status {
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 15px;
    color: var(--white);
}
.prized-ticket-item .ticket-status.available {
    background-color: var(--green-light);
}
.prized-ticket-item .ticket-status.taken {
    background-color: var(--red-promo);
}

/* --- Footer --- */
footer {
    background-color: var(--green-dark);
    color: var(--white);
    padding: 20px 15px;
    text-align: center;
    font-size: 0.8em;
    margin-top: 20px;
}
.footer-social-icons {
    margin-bottom: 15px;
}
.footer-social-icons a {
    color: var(--white);
    font-size: 1.5em;
    margin: 0 8px;
    text-decoration: none;
}
footer p { margin: 5px 0; }
footer a { color: var(--green-light); text-decoration: none; }
.google-seal {
    margin-top: 15px;
    background-color: var(--white);
    padding: 5px;
    border-radius: 5px;
    display: inline-block;
}
.google-seal a { color: #333; display: flex; align-items: center; gap: 5px; }

/* --- Página Meus Números --- */
.orders-list {
    margin-top: 30px;
}
.order-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.order-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}
.order-details h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}
.order-details p {
    margin: 5px 0;
    font-size: 0.9rem;
}
.ticket-numbers {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}
.ticket-numbers p {
    background-color: #f0f2f5;
    padding: 10px;
    border-radius: 5px;
    font-style: italic;
    color: #555;
}
.error-message {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    padding: 10px;
    border-radius: 5px;
}

/* --- Estilos para a exibição dos números da sorte --- */
.ticket-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
    max-height: 150px; /* Limita a altura para não ocupar muito espaço */
    overflow-y: auto; /* Adiciona scroll se houver muitos números */
    padding: 5px;
    background-color: #f8f9fa;
    border-radius: 4px;
}
.ticket-number {
    background-color: #e9ecef;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
    font-family: monospace;
    color: #495057;
}
.ticket-generation-pending {
    font-style: italic;
    color: #6c757d;
    font-size: 0.9em;
    margin-top: 10px;
}

/* =============================================================
   ESTILOS V2 PARA SORTEIO (BASEADO EM SORTEIO.HTML)
   ============================================================= */

:root {
    --green-dark: #2A522A;
    --green-light: #4CAF50;
    --white: #FFFFFF;
    --gray-light: #F0F2F5;
    --gray-medium: #CCCCCC;
    --red-promo: #DC3545;
    --orange-star: #FFC107;
    --text-dark: #333;
}

body.raffle-page-v2 {
    background-color: var(--gray-light);
}

body.raffle-page-v2 .container {
    max-width: 600px;
    background-color: var(--white);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 0;
}

/* --- Floating Buttons --- */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}
.floating-buttons .float-btn.whatsapp {
    background-color: var(--green-light);
    color: var(--white);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    position: relative;
}
.floating-buttons .float-btn.whatsapp::before {
    content: '1'; /* Notification count */
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--red-promo);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}
.floating-buttons .btn-group {
    background-color: var(--green-dark);
    border-radius: 25px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
}
.floating-buttons .btn-group i {
    font-size: 18px;
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--green-dark);
    color: var(--white);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}

/* --- Main Image Section --- */
.main-image-section {
    padding: 15px;
    background-color: var(--white);
    text-align: center;
}
.main-image-wrapper {
    width: 100%;
    padding-bottom: 75%; /* Aspect ratio 4:3 */
    position: relative;
    background-color: var(--gray-light);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}
.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.action-card {
    background-color: var(--green-dark);
    border-radius: 8px;
    padding: 15px;
    color: var(--white);
    text-align: center;
}
.action-card h1 {
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 5px;
    font-weight: 500;
}
.action-card p {
    font-size: 0.9em;
    margin-bottom: 15px;
    opacity: 0.8;
}
.btn-view-cotas {
    background-color: var(--green-light);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 500;
}
.btn-view-cotas:hover {
    opacity: 0.9;
}

/* --- Raffle Info --- */
.raffle-info {
    background-color: var(--gray-light);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95em;
    border-bottom: 1px solid #e0e0e0;
}
.raffle-info strong {
    color: var(--green-light);
    font-size: 1.1em;
}

/* --- Buy Section --- */
.buy-section {
    background-color: var(--white);
    padding: 20px 15px;
    text-align: center;
}
.buy-section h2 {
    font-size: 1.1em;
    margin-bottom: 20px;
    font-weight: 500;
}
.quota-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}
.quota-option {
    border: 1px solid var(--gray-medium);
    border-radius: 8px;
    padding: 10px 5px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}
.quota-option.popular {
    border-color: var(--green-light);
    box-shadow: 0 0 0 2px var(--green-light);
}
.quota-option.popular::before {
    content: 'MAIS POPULAR';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--green-light);
    color: var(--white);
    font-size: 0.7em;
    padding: 2px 8px;
    border-radius: 5px;
    font-weight: bold;
    white-space: nowrap;
}
.quota-option span {
    display: block;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--green-dark);
}
.quota-option button {
    background-color: var(--green-light);
    color: var(--white);
    border: none;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    cursor: pointer;
}
.quota-option.selected {
    background-color: var(--green-light);
    border-color: var(--green-dark);
}
.quota-option.selected span, 
.quota-option.selected button { 
    color: var(--white); 
}
.quota-option.selected button { 
    background-color: transparent; border: 1px solid var(--white); 
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}
.quantity-control button {
    background-color: var(--gray-light);
    color: var(--text-dark);
    border: 1px solid var(--gray-medium);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quantity-control input {
    width: 80px;
    text-align: center;
    padding: 8px 0;
    border: 1px solid var(--gray-medium);
    border-radius: 5px;
    font-size: 1em;
    -moz-appearance: textfield;
    appearance: textfield;
}
.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.btn-participate {
    background-color: var(--green-light);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1.1em;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
}
.btn-participate i { margin-left: 8px; }

/* --- Promo & Status Section --- */
.promo-section {
    background-color: var(--red-promo);
    color: var(--white);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 0.95em;
}
.promo-section i { color: var(--orange-star); }

.quota-status {
    background-color: var(--green-dark);
    color: var(--white);
    padding: 12px 15px;
    text-align: center;
    font-size: 1.1em;
    font-weight: 500;
}

/* --- Generic Section Header --- */
.section-header {
    background-color: var(--green-dark);
    color: var(--white);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 1em;
    margin-top: 15px;
    cursor: pointer;
}
.section-header i { color: var(--orange-star); }

/* --- Conteúdo do Acordeão (Descrição/Regulamento) --- */
.collapse-content {
    padding: 20px 15px; /* Adiciona a margem interna solicitada */
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    border-top: none;
    display: none; /* Começa escondido, o JS controla a exibição */
}
.description-content {
    line-height: 1.7;
    font-size: 0.95rem;
}

/* --- Ranking Section --- */
.ranking-section {
    padding: 20px 15px;
    background-color: var(--white);
}
.ranking-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}
.ranking-card {
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.ranking-card i {
    font-size: 2.5em;
    color: var(--gray-medium);
    margin-bottom: 10px;
}
.ranking-card .name {
    font-weight: bold;
    margin-bottom: 5px;
}
.ranking-card .cotas {
    font-size: 0.9em;
    color: var(--text-dark);
}

/* --- Awarded Cotas Section --- */
.awarded-cotas-section {
    padding: 20px 15px;
    background-color: var(--white);
}
.awarded-cotas-section p {
    font-size: 0.9em;
    color: var(--text-dark);
    margin-bottom: 15px;
}

/* --- Footer --- */
footer {
    background-color: var(--green-dark);
    color: var(--white);
    padding: 20px 15px;
    text-align: center;
    font-size: 0.8em;
    margin-top: 20px;
}
.footer-social-icons {
    margin-bottom: 15px;
}
.footer-social-icons a {
    color: var(--white);
    font-size: 1.5em;
    margin: 0 8px;
    text-decoration: none;
}
footer p { margin: 5px 0; }
footer a { color: var(--green-light); text-decoration: none; }
.google-seal {
    margin-top: 15px;
    background-color: var(--white);
    padding: 5px;
    border-radius: 5px;
    display: inline-block;
}
.google-seal a { color: #333; display: flex; align-items: center; gap: 5px; }
