/* ========================================
   PROSPERIDADE PRÊMIOS - PRETO E BRANCO
   Design elegante e minimalista
======================================== */

:root {
    --preto: #000000;
    --cinza-escuro: #1A1A1A;
    --cinza-grafite: #2C2C2C;
    --cinza-medio: #666666;
    --cinza-claro: #E0E0E0;
    --branco: #FFFFFF;
    --cor-destaque: #000000;
    --cor-destaque-hover: #333333;
    
    --font-main: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: var(--branco) !important;
    color: var(--preto) !important;
    overflow-x: hidden;
    /* Forçar tema claro mesmo em dark mode */
    color-scheme: light;
}

/* Forçar tema claro em TODOS os elementos */
* {
    color-scheme: light;
}

/* ========================================
   HEADER PRETO
======================================== */

.header {
    background: var(--preto);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid var(--cinza-grafite);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.logo-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-line1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--branco);
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.logo-line2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--cinza-claro);
    letter-spacing: 3px;
    margin-left: 2.5rem;
    margin-top: 0.1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-icon {
    background: var(--branco);
    border: none;
    color: var(--preto);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.2);
}

.btn-icon:hover {
    background: var(--cinza-claro);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
}

.btn-icon:active {
    transform: scale(0.95);
}

.btn-menu {
    background: var(--branco);
    border: none;
    color: var(--preto);
    padding: 0.6rem 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.2);
}

.btn-menu:hover {
    background: var(--cinza-claro);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
}

.btn-menu:active {
    transform: scale(0.98);
}

/* ========================================
   MENU DROPDOWN
======================================== */

.menu-dropdown {
    background: var(--branco);
    position: fixed;
    top: 70px;
    right: 1.5rem;
    min-width: 200px;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    z-index: 1001;
    animation: slideDown 0.3s ease;
    border: 2px solid var(--cinza-grafite);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-dropdown a {
    display: block;
    padding: 0.9rem 1rem;
    color: var(--preto);
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition);
}

.menu-dropdown a:hover {
    background: var(--cinza-claro);
}

/* ========================================
   MAIN CONTENT
======================================== */

main {
    padding: 1rem;
    max-width: 100%;
}

.container {
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   CONTADOR REGRESSIVO
======================================== */

.countdown-section {
    background: var(--branco);
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--cinza-grafite);
}

.countdown-title {
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--preto);
}

.countdown-boxes {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.countdown-box {
    background: linear-gradient(145deg, var(--preto), var(--cinza-grafite));
    border-radius: 12px;
    padding: 1rem 1.2rem;
    min-width: 90px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--cinza-grafite);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--branco);
    line-height: 1;
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #999;
    margin-top: 0.4rem;
    font-weight: 600;
}

/* ========================================
   BANNER DO PRÊMIO
======================================== */

.premio-banner {
    background: linear-gradient(145deg, var(--preto) 0%, var(--cinza-grafite) 100%);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--cinza-grafite);
}

.premio-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

.premio-tag {
    display: inline-block;
    background: var(--branco);
    color: var(--preto);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.premio-titulo {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--branco);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    line-height: 1;
}

.premio-subtitulo {
    background: var(--branco);
    color: var(--preto);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    margin-top: 1rem;
}

.premio-valor {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--preto);
}

.premio-descricao {
    color: var(--cinza-claro);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.premio-ou {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--branco);
    margin: 0.8rem 0;
}

.premio-pix {
    color: var(--cinza-claro);
    text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.3);
}

.premio-destaque {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ========================================
   SEÇÃO BENEFÍCIOS
======================================== */

.beneficios-section {
    background: var(--cinza-escuro);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--cinza-medio);
}

.beneficios-section::after {
    content: '💰';
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 6rem;
    opacity: 0.1;
}

.beneficios-titulo {
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--preto);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.beneficios-texto {
    font-size: 0.95rem;
    color: var(--cinza-escuro);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.beneficios-item {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.6rem;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-desconto {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--azul);
    color: var(--branco);
    padding: 0.6rem 1rem;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.badge-desconto small {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ========================================
   SELETOR DE QUANTIDADE
======================================== */

.quantidade-section {
    background: linear-gradient(145deg, var(--cinza-escuro) 0%, var(--cinza-grafite) 100%);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    border: 2px solid var(--cinza-grafite);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.qty-btn {
    background: var(--preto);
    border: 2px solid var(--branco);
    color: var(--branco);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--branco);
    color: var(--preto);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-display {
    background: var(--branco);
    color: var(--preto);
    font-size: 2.5rem;
    font-weight: 900;
    min-width: 120px;
    padding: 0.8rem;
    border-radius: 12px;
    text-align: center;
}

/* ========================================
   BOTÃO COMPRAR
======================================== */

.btn-comprar {
    background: var(--preto);
    border: 2px solid var(--branco);
    color: var(--branco);
    width: 100%;
    padding: 1.5rem;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.btn-comprar:hover {
    background: var(--branco);
    color: var(--preto);
}

.btn-comprar:active {
    transform: translateY(2px);
}

.btn-comprar-icon {
    font-size: 1.8rem;
}

.btn-comprar-texto {
    flex: 1;
    text-align: center;
}

.btn-comprar-valor {
    font-size: 1.5rem;
}

/* ========================================
   CARDS DE RIFAS
======================================== */

.rifas-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rifa-card {
    background: var(--branco) !important;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--cinza-grafite);
    transition: var(--transition);
    color: var(--preto) !important;
    display: flex;
    flex-direction: column;
}

.rifa-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
}

/* Container de imagem do card */
.rifa-card-image-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

/* Aspect ratio 16:9 para consistência */
.rifa-card-image-wrapper::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 */
}

.rifa-card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ========================================
   IMAGENS RESPONSIVAS (100% COMPATÍVEL)
======================================== */

.rifa-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 300px;
    object-fit: cover;
    object-position: center;
    background: #f0f0f0;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Forçar carregamento de imagens */
.rifa-image {
    content-visibility: auto;
    loading: eager;
}

/* Mobile - Otimização para telas pequenas */
@media (max-width: 768px) {
    .rifa-image {
        min-height: 180px;
        max-height: 250px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .rifa-image {
        min-height: 150px;
        max-height: 200px;
    }
}

/* Desktop - Imagens maiores */
@media (min-width: 1024px) {
    .rifa-image {
        max-height: 350px;
    }
}

/* Garantir que img sempre apareça */
img {
    max-width: 100%;
    height: auto;
}

/* Container de imagem responsivo */
.img-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f0f0f0;
}

.img-responsive {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.rifa-content {
    padding: 1.5rem;
}

.rifa-titulo {
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--preto);
    margin-bottom: 0.8rem;
}

.rifa-info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.rifa-info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem;
    background: #F5F5F5;
    border-radius: 8px;
    font-size: 0.9rem;
}

.rifa-info-label {
    color: var(--cinza-medio);
    font-weight: 600;
}

.rifa-info-value {
    font-weight: 700;
    color: var(--preto);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #E0E0E0;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: var(--preto);
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--cinza-medio);
}

/* ========================================
   FORMULÁRIOS
======================================== */

.form-container {
    background: var(--branco);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    border: 2px solid var(--cinza-grafite);
}

.form-title {
    font-weight: 900;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--preto);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--cinza-medio);
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--preto);
}

.btn-primary {
    background: var(--preto);
    border: 2px solid var(--branco);
    color: var(--branco);
    width: 100%;
    padding: 1.2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--branco);
    color: var(--preto);
}

.btn-primary:active {
    transform: translateY(2px);
}

.form-link {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.form-link a {
    color: var(--preto);
    font-weight: 700;
    text-decoration: none;
}

.form-link a:hover {
    text-decoration: underline;
}

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

.footer {
    background: linear-gradient(145deg, var(--preto), var(--cinza-grafite));
    color: var(--branco);
    padding: 2rem 1.5rem;
    text-align: center;
    margin-top: 2rem;
    border-top: 3px solid var(--cinza-grafite);
}

.footer-content p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* ========================================
   TOAST & LOADING
======================================== */

.toast {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    z-index: 10000;
    min-width: 280px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

.toast.success {
    background: var(--preto);
    color: var(--branco);
}

.toast.error {
    background: #F44336;
    color: var(--branco);
}

.toast.info {
    background: var(--azul);
    color: var(--branco);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 1rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #E0E0E0;
    border-top: 5px solid var(--preto);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   UTILITÁRIAS
======================================== */

.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVIDADE
======================================== */

/* ========================================
   RESPONSIVIDADE APRIMORADA
======================================== */

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .header {
        padding: 1.2rem 1.5rem;
    }
    
    main {
        padding: 1.5rem;
    }
    
    .rifas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .rifa-image {
        max-height: 250px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .header {
        padding: 1.5rem 2rem;
    }
    
    main {
        padding: 2rem;
    }
    
    .rifas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .rifa-image {
        max-height: 350px;
    }
}

/* Desktop Grande */
@media (min-width: 1440px) {
    .rifas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .container {
        max-width: 1200px;
    }
}

/* Mobile Pequeno */
@media (max-width: 480px) {
    .header {
        padding: 0.8rem 1rem;
    }
    
    .logo-icon {
        width: 45px;
        height: 45px;
    }
    
    .logo-line1 {
        font-size: 0.9rem;
    }
    
    .logo-line2 {
        font-size: 0.75rem;
    }
    
    .header-actions {
        gap: 0.4rem;
    }
    
    .btn-icon,
    .btn-menu {
        width: 42px;
        height: 42px;
        padding: 0.5rem;
    }
    
    .btn-menu span {
        font-size: 0.7rem;
    }
    
    .countdown-box {
        min-width: 70px;
        padding: 0.6rem 0.8rem;
    }
    
    .countdown-number {
        font-size: 1.8rem;
    }
    
    .premio-titulo {
        font-size: 1.8rem;
    }
    
    .qty-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .qty-display {
        min-width: 90px;
        font-size: 1.8rem;
    }
    
    .rifa-card {
        border-radius: 15px;
    }
    
    .rifa-image {
        min-height: 150px;
        max-height: 200px;
    }
    
    /* Botão de compra responsivo */
    .btn-comprar {
        padding: 1.2rem 1rem;
        font-size: 1rem;
    }
    
    .btn-comprar-icon {
        font-size: 1.4rem;
    }
    
    .btn-comprar-texto {
        font-size: 0.95rem;
    }
    
    .btn-comprar-valor {
        font-size: 1.1rem;
    }
}

/* Mobile Muito Pequeno */
@media (max-width: 360px) {
    .header {
        padding: 0.6rem 0.8rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .logo-line1 {
        font-size: 0.8rem;
    }
    
    .logo-line2 {
        font-size: 0.65rem;
    }
    
    .btn-icon,
    .btn-menu {
        width: 38px;
        height: 38px;
        padding: 0.4rem;
    }
    
    .btn-menu span {
        font-size: 0.65rem;
    }
    
    .countdown-box {
        min-width: 60px;
        padding: 0.5rem 0.6rem;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .premio-titulo {
        font-size: 1.5rem;
    }
    
    .rifa-image {
        min-height: 120px;
        max-height: 180px;
    }
    
    .rifa-destaque-imagem img {
        max-height: 300px !important;
    }
    
    /* Botão de compra extra pequeno */
    .btn-comprar {
        padding: 1rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .btn-comprar-icon {
        font-size: 1.2rem;
    }
    
    .btn-comprar-texto {
        font-size: 0.85rem;
    }
    
    .btn-comprar-valor {
        font-size: 1rem;
    }
}

/* ========================================
   SELETOR DE QUANTIDADE - NOVO ESTILO
======================================== */

.quantidade-opcoes-section {
    margin: 1.5rem 0;
}

.quantidade-opcoes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.opcao-quantidade {
    background: white;
    border: 2px solid var(--cinza-claro);
    border-radius: 12px;
    padding: 1rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.opcao-quantidade:hover {
    border-color: var(--preto);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.opcao-quantidade.ativa {
    background: linear-gradient(135deg, var(--preto), var(--cinza-grafite));
    border-color: var(--preto);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.opcao-numero {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
}

.opcao-quantidade.ativa .opcao-numero {
    color: white;
}

.opcao-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--cinza-medio);
}

.opcao-quantidade.ativa .opcao-label {
    color: var(--cinza-claro);
}

.opcao-valor {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--preto);
    margin-top: 0.2rem;
}

.opcao-quantidade.ativa .opcao-valor {
    color: #FFD700;
}

/* Responsivo - Seletor de Quantidade */
@media (max-width: 768px) {
    .quantidade-opcoes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .opcao-quantidade {
        padding: 0.8rem 0.4rem;
    }
    
    .opcao-numero {
        font-size: 1.5rem;
    }
    
    .opcao-label {
        font-size: 0.7rem;
    }
    
    .opcao-valor {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .quantidade-opcoes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .opcao-quantidade {
        padding: 0.7rem 0.3rem;
    }
    
    .opcao-numero {
        font-size: 1.3rem;
    }
    
    .opcao-label {
        font-size: 0.65rem;
    }
    
    .opcao-valor {
        font-size: 0.75rem;
    }
}

/* ========================================
   IMAGEM DE DESTAQUE DA RIFA
======================================== */

.rifa-destaque-imagem {
    width: 100%;
    margin: 1.5rem 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    background: var(--cinza-claro);
}

.rifa-destaque-imagem img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
    transition: transform 0.3s ease;
}

.rifa-destaque-imagem img:hover {
    transform: scale(1.02);
}

/* Responsivo para imagem destaque */
@media (max-width: 768px) {
    .rifa-destaque-imagem {
        margin: 1rem 0;
        border-radius: 15px;
    }
    
    .rifa-destaque-imagem img {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .rifa-destaque-imagem {
        margin: 1rem 0;
        border-radius: 12px;
    }
    
    .rifa-destaque-imagem img {
        max-height: 350px;
    }
}

/* ========================================
   ANIMAÇÕES NÚMEROS PREMIADOS
======================================== */

@keyframes pulse-premio {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(255, 215, 0, 0.8);
    }
}

@keyframes pulse-text {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* ========================================
   MODAL TÍTULO PREMIADO
======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.hidden {
    display: none;
}

.modal-pix-container {
    background: #fff;
    border-radius: 24px;
    padding: 2rem 2.5rem;
    width: min(420px, 90vw);
    position: relative;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25);
    text-align: center;
}

.modal-pix-container .modal-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: transparent;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #9ca3af;
}

.pix-step {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pix-step.hidden {
    display: none;
}

.pix-loader {
    width: 52px;
    height: 52px;
    border: 4px solid #f3f4f6;
    border-top-color: #111;
    border-radius: 50%;
    margin: 1.5rem auto 0;
    animation: spin 1s linear infinite;
}

.pix-loading-text {
    font-weight: 700;
    color: #111827;
    font-size: 1rem;
}

.pix-instrucao {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: -0.4rem;
}

.pix-step img#pixQrImagem {
    width: 220px;
    height: 220px;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    margin: 0 auto;
}

.pix-copy-box {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

#pixCopyField {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.8rem;
    font-size: 0.85rem;
    height: 90px;
    resize: none;
    background: #f9fafb;
    color: #111;
}

.btn-copiar,
.btn-confirmar {
    border: none;
    border-radius: 999px;
    padding: 0.9rem 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-copiar {
    background: #f3f4f6;
    color: #111827;
}

.btn-confirmar {
    background: #111827;
    color: #fff;
}

.btn-copiar:hover,
.btn-confirmar:hover {
    transform: translateY(-2px);
}

.pix-sucesso-texto {
    color: #4b5563;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.pix-numeros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.5rem;
    margin: 0.2rem 0 0.4rem;
}

.pix-numeros-grid span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.6rem;
    border-radius: 12px;
    background: #f3f4f6;
    font-weight: 800;
    font-family: 'Space Mono','Courier New',monospace;
    color: #111827;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.modal-container {
    background: linear-gradient(145deg, var(--preto) 0%, var(--cinza-grafite) 100%);
    border: 3px solid var(--branco);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.2);
    animation: slideUp 0.4s ease;
}

.modal-header {
    background: var(--preto);
    border-bottom: 3px solid var(--cinza-grafite);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 17px 17px 0 0;
}

.modal-title {
    color: var(--branco);
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-close {
    background: var(--branco);
    color: var(--preto);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--preto);
    color: var(--branco);
    border: 2px solid var(--branco);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.modal-info {
    background: var(--cinza-escuro);
    border: 2px solid var(--cinza-grafite);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.modal-rifa-nome {
    color: var(--branco);
    font-size: 1.1rem;
    font-weight: 900;
    margin: 0 0 1rem 0;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--cinza-grafite);
}

.modal-instrucoes {
    color: var(--cinza-claro);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.modal-label {
    display: block;
    color: var(--branco);
    font-size: 0.9rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-hint {
    color: var(--cinza-medio);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 0.5rem;
}

.modal-input,
.modal-textarea {
    width: 100%;
    padding: 1rem;
    background: var(--cinza-escuro);
    border: 2px solid var(--cinza-grafite);
    border-radius: 10px;
    color: var(--branco);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.modal-input:focus,
.modal-textarea:focus {
    outline: none;
    border-color: var(--branco);
    background: var(--preto);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.modal-input::placeholder,
.modal-textarea::placeholder {
    color: var(--cinza-medio);
}

.btn-gerar-cota-grande {
    width: 100%;
    padding: 1.5rem 2rem;
    background: linear-gradient(145deg, #FF9800, #F57C00);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 900;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
    text-transform: uppercase;
}

.btn-gerar-cota-grande:hover:not(:disabled) {
    background: linear-gradient(145deg, #F57C00, #E65100);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
}

.btn-gerar-cota-grande:active:not(:disabled) {
    transform: translateY(0);
}

.btn-gerar-cota-grande:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.modal-textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-error {
    display: block;
    color: #ff4444;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

.modal-error.hidden {
    display: none;
}

.modal-preview {
    background: linear-gradient(145deg, #FFD700, #FFA500);
    border: 3px solid #FF4500;
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
    animation: pulse-premio 2s infinite;
}

.modal-preview.hidden {
    display: none;
}

.preview-header {
    color: var(--preto);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.preview-numero {
    color: var(--preto);
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.preview-numero::before {
    content: '👑';
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 2rem;
}

.preview-premio {
    color: var(--preto);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
}

.modal-footer {
    background: var(--cinza-escuro);
    border-top: 3px solid var(--cinza-grafite);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    border-radius: 0 0 17px 17px;
}

.btn-modal-cancel,
.btn-modal-confirm {
    flex: 1;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-modal-cancel {
    background: var(--cinza-grafite);
    color: var(--branco);
    border: 2px solid var(--cinza-medio);
}

.btn-modal-cancel:hover {
    background: var(--branco);
    color: var(--preto);
    border-color: var(--branco);
    transform: translateY(-2px);
}

.btn-modal-confirm {
    background: linear-gradient(145deg, #FFD700, #FFA500);
    color: var(--preto);
    border: 2px solid #FF4500;
}

.btn-modal-confirm:hover {
    background: linear-gradient(145deg, #FFA500, #FFD700);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsivo para Modal */
@media (max-width: 768px) {
    .modal-container {
        max-width: 95%;
        margin: 0.5rem;
    }

    .modal-title {
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-footer {
        flex-direction: column;
    }

    .preview-numero {
        font-size: 2.5rem;
    }
}

/* ========================================
   FORÇAR TEMA CLARO EM DARK MODE
======================================== */

@media (prefers-color-scheme: dark) {
    body {
        background: var(--branco) !important;
        color: var(--preto) !important;
    }
    
    .rifa-card,
    .form-container,
    .countdown-section,
    .container,
    main {
        background: var(--branco) !important;
        color: var(--preto) !important;
    }
    
    /* Manter apenas header e footer pretos */
    .header,
    .footer,
    .premio-banner,
    .countdown-box,
    .btn-comprar,
    .btn-primary {
        /* Estes mantêm fundo preto - OK */
    }
}

/* ========================================
   FEATURES EXTRAS - CUPONS, NOTIFICAÇÕES, ETC
======================================== */

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.cupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.cupom-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--cinza-claro);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.cupom-card.inativo {
    opacity: 0.6;
    filter: grayscale(0.5);
}

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

.cupom-codigo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--preto);
    background: var(--cinza-claro);
    padding: 8px 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
}

.cupom-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

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

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

.cupom-body {
    margin: 15px 0;
}

.cupom-valor {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 10px;
}

.cupom-descricao {
    color: var(--cinza-grafite);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.cupom-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 15px 0;
    padding: 15px;
    background: var(--cinza-claro);
    border-radius: 8px;
}

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

.info-label {
    font-size: 0.8rem;
    color: var(--cinza-grafite);
    margin-bottom: 3px;
}

.info-value {
    font-weight: 600;
    color: var(--preto);
    font-size: 0.95rem;
}

.cupom-footer {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-small {
    flex: 1;
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.compartilhamento-section {
    margin: 30px 0;
    padding: 25px;
    background: var(--cinza-claro);
    border-radius: 15px;
    border: 2px solid var(--cinza-grafite);
}

.compartilhamento-section h3 {
    color: var(--preto);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.btn-compartilhar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    color: white !important;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-compartilhar:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn-compartilhar span {
    font-size: 1.3rem;
}

.btn-compartilhar.whatsapp {
    background: #25D366;
}

.btn-compartilhar.whatsapp:hover {
    background: #1da851;
}

.btn-compartilhar.facebook {
    background: #1877F2;
}

.btn-compartilhar.facebook:hover {
    background: #145dbf;
}

.btn-compartilhar.twitter {
    background: #1DA1F2;
}

.btn-compartilhar.twitter:hover {
    background: #1a8cd8;
}

.btn-compartilhar.copiar {
    background: var(--preto);
}

.btn-compartilhar.copiar:hover {
    background: var(--cinza-grafite);
}

.status-pagamento {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    background: white;
    margin: 15px 0;
    border-left: 4px solid;
}

.status-icon {
    font-size: 1.5rem;
}

.status-texto {
    font-weight: 600;
    font-size: 1rem;
}

.status-pendente {
    background: #fff3cd;
    color: #856404;
    border-color: #ffc107;
}

.status-confirmado {
    background: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.status-cancelado {
    background: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

@media (max-width: 768px) {
    .botoes-compartilhamento {
        grid-template-columns: 1fr 1fr;
    }
    
    .cupons-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .cupom-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .botoes-compartilhamento {
        grid-template-columns: 1fr;
    }
    
    .btn-compartilhar {
        padding: 15px;
        font-size: 1rem;
    }
    
    .cupom-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* ========================================
   DASHBOARD DE ESTATÍSTICAS (CUPONS)
======================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-card-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-card-label {
    opacity: 0.9;
    font-size: 1rem;
}

/* Gradientes coloridos para cada card */
.stat-card-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card-success {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card-warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-card-icon {
        font-size: 2rem;
    }
    
    .stat-card-value {
        font-size: 1.5rem;
    }
    
    .stat-card-label {
        font-size: 0.9rem;
    }
}

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

/* ========================================
   RANKING MAIORES COMPRADORES
======================================== */

.ranking-section {
    margin: 2rem 0;
    padding: 0;
}

.ranking-titulo {
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--preto);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ranking-icone {
    font-size: 1.5rem;
}

.ranking-lista {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--cinza-claro);
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--cinza-claro);
    transition: all 0.2s ease;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-item:hover {
    background: #f9f9f9;
    transform: translateX(5px);
}

.ranking-item-top {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF3CD 100%);
}

.ranking-item-top:hover {
    background: linear-gradient(135deg, #FFF3CD 0%, #FFE69C 100%);
}

.ranking-posicao {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: var(--preto);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
}

.ranking-item-top .ranking-posicao {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--preto);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.ranking-numero {
    display: block;
    text-align: center;
}

.ranking-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.ranking-nome {
    font-weight: 700;
    font-size: 1rem;
    color: var(--preto);
}

.ranking-cotas {
    font-size: 0.85rem;
    color: var(--cinza-medio);
    font-weight: 600;
}

/* Responsivo Ranking */
@media (max-width: 768px) {
    .ranking-section {
        margin: 1.5rem 0;
    }
    
    .ranking-titulo {
        font-size: 1.1rem;
    }
    
    .ranking-lista {
        padding: 0.8rem;
    }
    
    .ranking-item {
        padding: 0.7rem 0.8rem;
    }
    
    .ranking-posicao {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .ranking-nome {
        font-size: 0.95rem;
    }
    
    .ranking-cotas {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .ranking-section {
        margin: 1rem 0;
    }
    
    .ranking-titulo {
        font-size: 1rem;
    }
    
    .ranking-lista {
        padding: 0.6rem;
        border-radius: 12px;
    }
    
    .ranking-item {
        padding: 0.6rem;
        gap: 0.8rem;
    }
    
    .ranking-posicao {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .ranking-nome {
        font-size: 0.9rem;
    }
    
    .ranking-cotas {
        font-size: 0.75rem;
    }
}

/* ========================================
   MODAL COMPRA - DESIGN MINIMALISTA
======================================== */

/* Sobrescrever estilos do modal de compra */
#modalComprarNumeros .modal-container {
    background: white !important;
    border: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

/* Botões circulares + e - */
#modalComprarNumeros button[onclick*="Quantidade"] {
    transition: all 0.2s ease !important;
}

#modalComprarNumeros button[onclick*="Quantidade"]:hover {
    background: #f5f5f5 !important;
    border-color: #999 !important;
    transform: scale(1.05);
}

#modalComprarNumeros button[onclick*="Quantidade"]:active {
    transform: scale(0.95);
}

/* Botão Cancelar */
#modalComprarNumeros button[onclick*="fecharModalCompra"] {
    transition: all 0.2s ease !important;
}

#modalComprarNumeros button[onclick*="fecharModalCompra"]:hover {
    background: #f5f5f5 !important;
    border-color: #999 !important;
}

/* Botão Confirmar */
#modalComprarNumeros button[onclick*="confirmarCompraModal"] {
    transition: all 0.2s ease !important;
}

#modalComprarNumeros button[onclick*="confirmarCompraModal"]:hover {
    background: linear-gradient(135deg, #333, #000) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25) !important;
}

#modalComprarNumeros button[onclick*="confirmarCompraModal"]:active {
    transform: translateY(0);
}

/* Input de quantidade */
#modalComprarNumeros #modalQuantidadeInput:focus {
    outline: none;
}

/* Remove spinner do input number */
#modalComprarNumeros input[type="number"]::-webkit-inner-spin-button,
#modalComprarNumeros input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#modalComprarNumeros input[type="number"] {
    -moz-appearance: textfield;
}

/* Animação do modal */
#modalComprarNumeros .modal-container {
    animation: modalSlideIn 0.3s ease-out !important;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsivo para modal de compra */
@media (max-width: 500px) {
    #modalComprarNumeros .modal-container {
        max-width: 95% !important;
        margin: 1rem;
    }
    
    #modalComprarNumeros button[onclick*="Quantidade"] {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.5rem !important;
    }
    
    #modalComprarNumeros #modalQuantidadeInput {
        width: 70px !important;
        font-size: 1.5rem !important;
    }
    
    #modalComprarNumeros #modalValorTotal {
        font-size: 2rem !important;
    }
}

