/* Estilos para rifas encerradas */
.sorteio-card.encerrada {
    opacity: 0.7;
    filter: grayscale(0.3);
    transition: all 0.3s ease;
}

.sorteio-card.encerrada:hover {
    opacity: 0.8;
    filter: grayscale(0.2);
}

.encerrada-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc2626;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
    z-index: 10;
}

.sorteio-card.encerrada .magic-badge {
    background: #dc2626 !important;
    color: white !important;
}

.sorteio-card.encerrada .sorteio-image {
    filter: grayscale(0.4);
}

/* Seção de últimos ganhadores */
.winners-section {
    padding: 0 0 2rem 0;
}

.winners-container {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-bottom: 0;
}

.winners-header {
    text-align: center;
    margin-bottom: 1rem;
}

.winners-header h2 {
    margin: 0;
    font-weight: 600;
    color: #ffffff;
    font-size: 1.4rem;
}

.winners-header h2 strong { color: #fff; }
.winners-header p { color: #cfcfcf; margin: .2rem 0 0 0; }

/* Grid de ganhadores - Layout vertical no desktop (igual sorteios encerrados) */
.ganhadores-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem !important;
    margin-top: 1rem;
}

/* Card de ganhador - EXATAMENTE IGUAL aos sorteios encerrados */
.ganhador-card {
    background: white;
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
    padding: 1.5rem;
    margin-bottom: 1rem !important;
}

.ganhador-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.ganhador-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
}

.ganhador-foto {
    flex-shrink: 0;
    width: 220px;
    height: 190px;
    display: flex;
    align-items: center;
    margin-left: 6rem;
}

.ganhador-foto img {
    width: 220px;
    height: 190px;
    object-fit: cover;
    border-radius: 12px;
}

.ganhador-foto .placeholder {
    width: 220px;
    height: 190px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 2rem;
}

.ganhador-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    min-width: 0;
    align-items: center;
    text-align: center;
    justify-content: center;
    margin-left: auto;
    margin-right: 6rem;
    width: 100%;
    max-width: 400px;
}

.ganhador-nome {
    margin-bottom: 0;
    order: 1;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.ganhador-rifa {
    margin-bottom: 0;
    order: 2;
    font-size: 1rem;
    color: #333;
    margin: 0;
}

.ganhador-status {
    order: 3;
    margin-top: 0.5rem;
    align-self: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

/* Responsividade - EXATAMENTE IGUAL aos sorteios encerrados */
@media (max-width: 768px) {
    .ganhador-card {
        padding: 0.6rem !important;
    }
    
    .ganhador-content {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        align-items: stretch !important;
        width: 100% !important;
        position: relative !important;
    }
    
    .ganhador-foto {
        width: 35% !important;
        height: 120px !important;
        margin-left: 0 !important;
        min-width: 100px !important;
        max-width: 120px !important;
        flex-shrink: 0 !important;
        order: 1 !important;
        position: relative !important;
        z-index: 1 !important;
        display: flex !important;
        align-items: stretch !important;
    }
    
    .ganhador-foto img {
        width: 100% !important;
        height: 120px !important;
        object-fit: cover !important;
        border-radius: 12px !important;
        max-width: 120px !important;
        max-height: 120px !important;
    }
    
    .ganhador-info {
        margin-left: 7px !important;
        margin-right: 0 !important;
        align-items: flex-start !important;
        text-align: left !important;
        max-width: none !important;
        gap: 0.9rem !important;
        flex: 1 !important;
        order: 2 !important;
        position: relative !important;
        z-index: 1 !important;
        min-width: 0 !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
    }
    
    /* Diminuir fontes proporcionalmente no mobile */
    .ganhador-nome {
        font-size: 0.9rem !important;
        margin: 0 !important;
    }
    
    .ganhador-rifa {
        font-size: 0.8rem !important;
        margin: 0 !important;
    }
    
    .ganhador-status {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.8rem !important;
        margin: 0 !important;
    }
}

@media (max-width: 600px) {
    .ganhador-card {
        padding: 0.5rem !important;
    }
    
    .ganhador-content {
        gap: 10px !important;
    }
    
    .ganhador-foto {
        width: 35% !important;
        height: 100px !important;
        min-width: 80px !important;
        max-width: 100px !important;
    }
    
    .ganhador-foto img {
        max-width: 100px !important;
        max-height: 100px !important;
        height: 100px !important;
    }
    
    .ganhador-info {
        gap: 0.6rem !important;
    }
    
    /* Diminuir fontes proporcionalmente no mobile pequeno */
    .ganhador-nome {
        font-size: 0.85rem !important;
    }
    
    .ganhador-rifa {
        font-size: 0.75rem !important;
    }
    
    .ganhador-status {
        font-size: 0.65rem !important;
        padding: 0.25rem 0.7rem !important;
    }
}

/* Animações para os cards */
.ganhador-card.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.ganhador-card:nth-child(1) { animation-delay: 0.1s; }
.ganhador-card:nth-child(2) { animation-delay: 0.2s; }
.ganhador-card:nth-child(3) { animation-delay: 0.3s; }
.ganhador-card:nth-child(4) { animation-delay: 0.4s; }
.ganhador-card:nth-child(5) { animation-delay: 0.5s; }
.ganhador-card:nth-child(6) { animation-delay: 0.6s; }

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

/* Estilos para seção de sorteios encerrados */
.encerrados-section {
    padding: 2rem 0;
    margin-top: 2rem;
}

.sorteio-encerrado-card {
    background: white;
    border: 1px solid var(--border-dark);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 1rem !important;
}

.sorteio-encerrado-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important;
}

.sorteio-encerrado-card img {
    transition: all 0.3s ease;
}

.sorteio-encerrado-card:hover img {
    transform: scale(1.05);
}

/* Animação para entrada dos cards */
.sorteio-encerrado-card.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Seção de passos (como participar) */
.steps-section { padding: 0 0 2rem 0; }
.steps-title { color: #fff; font-size: 1.4rem; font-weight: 600; margin: 1.2rem 0; }

/* Padronização de todos os títulos das seções */
.hero-section h2,
.encerrados-section h2,
.winners-section h2,
.steps-section h2,
.faq-section h2,
.encerrados-title,
.steps-title,
.faq-title,
.winners-header h2 {
    color: #ffffff !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    margin: 0 0 0.5rem 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

/* Regra adicional para garantir consistência total */
.hero-section h2,
.encerrados-section h2,
.winners-section h2,
.steps-section h2,
.faq-section h2,
.encerrados-title,
.steps-title,
.faq-title,
.winners-header h2 {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}
.steps-grid { display: flex; flex-direction: column; gap: 1rem; }
.step-card {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1rem;
    align-items: center;
    background: var(--surface);
    border-radius: 12px;
    padding: 1.2rem 1rem;
    border: 3px solid var(--primary-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.step-card:nth-child(even) { border-color: var(--secondary-color); }
.step-number {
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: .85;
    text-align: center;
}
.step-title { color: #fff; font-weight: 800; margin-bottom: .35rem; }
.step-desc { color: var(--text-on-dark-muted); font-size: .95rem; }

@media (max-width: 600px) {
    .step-card { grid-template-columns: 70px 1fr; }
    .step-number { font-size: 52px; }
}

/* Seção de Perguntas Frequentes (FAQ) */
.faq-section { padding: 0 0 3rem 0; }
.faq-title { color: #fff; font-size: 1.4rem; font-weight: 600; margin: 1.2rem 0; }
.faq-list { display: flex; flex-direction: column; gap: .8rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.2rem;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: #fff;
}
.faq-item[open] summary::after { content: '-'; }
.faq-item .answer {
  padding: 0 1.2rem 1rem 1.2rem;
  color: var(--text-on-dark-muted);
  font-size: .95rem;
}
/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: var(--bg-body, #1A1A1A);
    min-height: 100vh;
}

/* Variáveis CSS */
:root {
    --primary-color: #00A859; /* Verde principal */
    --primary-rgb: 0, 168, 89; /* Para efeitos com transparência */
    --secondary-color: #FFC107; /* Amarelo destaque */
    --accent-color: #FFF59D; /* Amarelo claro para detalhes */
    --success-color: #2E7D32; /* Verde de sucesso mais sóbrio */
    --warning-color: #FFC107;
    --danger-color: #f44336;
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #fff;
    --bg-light: #f8f9fa;
    --border-color: #e9ecef;
    --bg-body: #1A1A1A;
    --surface: #1F1F1F;
    --surface-2: #262626;
    --text-on-dark: #ffffff;
    --text-on-dark-muted: rgba(255,255,255,0.8);
    --border-dark: rgba(255,255,255,0.08);
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-dark: 0 8px 30px rgba(0,0,0,0.2);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Magic UI Badge - Valor da Cota */
.magic-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    z-index: 10;
    overflow: hidden;
    animation: magic-pulse 2s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(0, 168, 89, 0.4);
}

.magic-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: magic-shimmer 3s ease-in-out infinite;
}



@keyframes magic-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 168, 89, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 168, 89, 0.6);
    }
}

@keyframes magic-shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Badge da Cota - Valor sobre a imagem */
.cota-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: cota-glow 2s ease-in-out infinite;
    overflow: hidden;
}

.cota-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: cota-shimmer 4s ease-in-out infinite;
    border-radius: 25px;
    overflow: hidden;
}

@keyframes cota-glow {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
    }
}

@keyframes cota-shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}



/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(26, 26, 26, 0.92);
    backdrop-filter: blur(8px);
    padding: 0.6rem 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    height: 72px;
    width: auto;
    display: block;
}

@media (max-width: 480px) {
    .logo img {
        height: 56px;
    }
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: #f3f4f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 0.45rem 0.9rem;
    border-radius: var(--border-radius);
}

.nav-menu a:hover {
    background: rgba(var(--primary-rgb), 0.2);
    color: #ffffff;
}

/* Header auth actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.header-actions .btn { font-size: 0.9rem; padding: 0.55rem 0.9rem; }

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.35);
}
.btn-outline-light:hover {
    background: rgba(var(--primary-rgb), 0.2);
    border-color: var(--primary-color);
}

.btn-accent {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #111;
}
.btn-accent:hover {
    filter: brightness(1.05);
}

/* Mobile header */
.desktop-nav { display: flex; align-items: center; gap: 1rem; }
.mobile-toggle {
    display: none;
    align-items: center;
    gap: .45rem;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 10px;
    padding: .45rem .75rem;
    font-size: .95rem;
}
.mobile-toggle i { color: var(--secondary-color); }

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border-dark);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    padding: .8rem 1rem 1rem 1rem;
}
.mobile-menu.open { display: block; }
.mobile-menu .menu-links { display: flex; flex-direction: column; gap: .6rem; margin-bottom: .6rem; }
.mobile-menu .menu-links a { color: #fff; font-size: 1rem; text-decoration: none; padding: .5rem 0; }
.mobile-menu .menu-actions { display: flex; gap: .6rem; }
.mobile-menu .menu-actions .btn { flex: 1; }

@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: inline-flex; }
}

/* Cards de sorteio */
.sorteios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0.5rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Classes para centralizar sorteios */
.sorteios-grid.single-item .sorteio-card:first-child {
    grid-column: 2;
}

.sorteios-grid.two-items .sorteio-card:first-child {
    grid-column: 1;
}
.sorteios-grid.two-items .sorteio-card:nth-child(2) {
    grid-column: 3;
}

/* Seção de sorteios encerrados */
.encerrados-section {
    padding: 0 0 2rem 0;
}

.encerrados-title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 1rem 0 1rem 0;
}

.encerrados-list {
    display: flex;
    flex-direction: column;
    gap: 1rem !important;
}

.encerrado-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-dark);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.encerrado-thumb {
    width: 110px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.encerrado-content { flex: 1; }

.badge-concluido {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: .4rem;
}

.encerrado-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: .25rem;
}

.encerrado-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: .9rem;
}

@media (max-width: 600px) {
    .encerrado-thumb { width: 92px; height: 68px; }
}

.sorteio-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.sorteio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.25);
}

/* Melhoria para cards clicáveis */
a.sorteio-card:hover {
    text-decoration: none;
    color: inherit;
}

a.sorteio-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.sorteio-media { 
    position: relative; 
    display: block;
    margin: 0;
    padding: 0;
}

.sorteio-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: top;
}

.sorteio-content {
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.95), rgba(255, 193, 7, 0.95));
    color: #fff;
    margin: 0;
}

.sorteio-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #333;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 0.25rem;
}

.sorteio-description { display: none; }

.sorteio-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #666;
}

.sorteio-price { font-weight: 800; color: #333; font-size: 1.05rem; }

.sorteio-date { color: #666; }

/* Magic UI-like blinking badge on images */
.badge-magic {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 900;
    padding: 6px 10px;
    border-radius: 9999px;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    letter-spacing: .3px;
    animation: magic-blink 1.2s linear infinite;
}

@keyframes magic-blink {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
  50% { opacity: .35; filter: drop-shadow(0 0 6px rgba(255,255,255,.35)); }
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #1B5E20);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-success {
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    color: #fff;
}

.btn-success:hover {
    box-shadow: 0 10px 25px rgba(27, 94, 32, 0.35);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #d32f2f;
}

/* Filtros e busca */
.filters-section {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    box-shadow: var(--shadow-light);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.filter-group input,
.filter-group select {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

/* Grade de números */
.numeros-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 0.5rem;
    margin: 2rem 0;
}

.numero-item {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.9rem;
}

.numero-item:hover {
    transform: scale(1.05);
}

.numero-disponivel {
    background: white;
    color: var(--text-primary);
}

.numero-disponivel:hover {
    background: var(--secondary-color);
    color: #1B1B1B;
    border-color: var(--secondary-color);
}

.numero-selecionado {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.numero-vendido {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

/* Formulários */
.form-section {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin: 2rem 0;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

/* Tabelas */
.table-container {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    margin: 2rem 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-primary);
}

.table tr:hover {
    background: var(--bg-light);
}

/* Status badges */
.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

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

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

/* Responsividade */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        gap: .5rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .sorteios-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 1rem 1rem;
        justify-items: center;
    }
    
    /* No mobile, remover classes de centralização e ajustar largura */
    .sorteios-grid.single-item .sorteio-card:first-child,
    .sorteios-grid.two-items .sorteio-card:first-child,
    .sorteios-grid.two-items .sorteio-card:nth-child(2) {
        grid-column: 1;
    }
    
    .sorteio-card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .numeros-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    /* Estilos mobile para sorteios encerrados - REMOVIDOS PARA EVITAR CONFLITOS */
}

@media (max-width: 600px) {
    /* Estilos mobile para sorteios encerrados - REMOVIDOS PARA EVITAR CONFLITOS */
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Animação de pulse para o ícone do relógio */
@keyframes pulse {
    0% { 
        transform: scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.1); 
        opacity: 0.8; 
    }
    100% { 
        transform: scale(1); 
        opacity: 1; 
    }
}



.encerrado-title {

    color: #fff;

    font-weight: 700;

    font-size: 1.05rem;

    margin-bottom: .25rem;

}



.encerrado-subtitle {

    color: rgba(255,255,255,0.85);

    font-size: .9rem;

}



@media (max-width: 600px) {

    .encerrado-thumb { width: 92px; height: 68px; }

}



.sorteio-card {

    background: var(--surface);

    border-radius: var(--border-radius);

    overflow: hidden;

    box-shadow: var(--shadow-light);

    transition: var(--transition);

    position: relative;

    cursor: pointer;

}



.sorteio-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.25);

}



/* Melhoria para cards clicáveis */

a.sorteio-card:hover {

    text-decoration: none;

    color: inherit;

}



a.sorteio-card:focus {

    outline: 2px solid var(--primary-color);

    outline-offset: 2px;

}



.sorteio-media { 

    position: relative; 

    display: block;

    margin: 0;

    padding: 0;

}



.sorteio-image {

    width: 100%;

    height: 320px;

    object-fit: cover;

    display: block;

    margin: 0;

    padding: 0;

    vertical-align: top;

}



.sorteio-content {

    padding: 1.2rem 1.5rem;

    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.95), rgba(255, 193, 7, 0.95));

    color: #fff;

    margin: 0;

}



.sorteio-title {

    font-size: 1.1rem;

    font-weight: 800;

    color: #fff;

    text-transform: uppercase;

    letter-spacing: .3px;

    margin-bottom: 0.25rem;

}



.sorteio-description { display: none; }



.sorteio-info {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 0.75rem;

    font-size: 0.9rem;

    color: rgba(255,255,255,0.9);

}



.sorteio-price { font-weight: 800; color: #fff; font-size: 1.05rem; }



.sorteio-date { color: rgba(255,255,255,0.9); }



/* Magic UI-like blinking badge on images */

.badge-magic {

    position: absolute;

    top: 10px;

    right: 10px;

    background: var(--primary-color);

    color: #fff;

    font-weight: 900;

    padding: 6px 10px;

    border-radius: 9999px;

    box-shadow: 0 8px 20px rgba(0,0,0,.25);

    letter-spacing: .3px;

    animation: magic-blink 1.2s linear infinite;

}



@keyframes magic-blink {

  0%, 100% { opacity: 1; filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }

  50% { opacity: .35; filter: drop-shadow(0 0 6px rgba(255,255,255,.35)); }

}



.btn {

    display: inline-block;

    padding: 0.8rem 1.5rem;

    border: none;

    border-radius: var(--border-radius);

    text-decoration: none;

    font-weight: 500;

    cursor: pointer;

    transition: var(--transition);

    text-align: center;

}



.btn-block {

    display: block;

    width: 100%;

    text-align: center;

}



.btn-primary {

    background: linear-gradient(135deg, var(--primary-color), #1B5E20);

    color: #fff;

}



.btn-primary:hover {

    transform: translateY(-2px);

    box-shadow: var(--shadow-medium);

}



.btn-success {

    background: linear-gradient(135deg, #2E7D32, #1B5E20);

    color: #fff;

}



.btn-success:hover {

    box-shadow: 0 10px 25px rgba(27, 94, 32, 0.35);

}



.btn-danger {

    background: var(--danger-color);

    color: white;

}



.btn-danger:hover {

    background: #d32f2f;

}



/* Filtros e busca */

.filters-section {

    background: white;

    padding: 2rem;

    border-radius: var(--border-radius);

    margin: 2rem 0;

    box-shadow: var(--shadow-light);

}



.filters-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

    gap: 1rem;

    margin-bottom: 1rem;

}



.filter-group {

    display: flex;

    flex-direction: column;

}



.filter-group label {

    font-weight: 500;

    margin-bottom: 0.5rem;

    color: var(--text-primary);

}



.filter-group input,

.filter-group select {

    padding: 0.8rem;

    border: 1px solid var(--border-color);

    border-radius: var(--border-radius);

    font-size: 1rem;

    transition: var(--transition);

}



.filter-group input:focus,

.filter-group select:focus {

    outline: none;

    border-color: var(--primary-color);

    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);

}



/* Grade de números */

.numeros-grid {

    display: grid;

    grid-template-columns: repeat(10, 1fr);

    gap: 0.5rem;

    margin: 2rem 0;

}



.numero-item {

    aspect-ratio: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 2px solid var(--border-color);

    border-radius: var(--border-radius);

    cursor: pointer;

    transition: var(--transition);

    font-weight: 600;

    font-size: 0.9rem;

}



.numero-item:hover {

    transform: scale(1.05);

}



.numero-disponivel {

    background: white;

    color: var(--text-primary);

}



.numero-disponivel:hover {

    background: var(--secondary-color);

    color: #1B1B1B;

    border-color: var(--secondary-color);

}



.numero-selecionado {

    background: var(--primary-color);

    color: #fff;

    border-color: var(--primary-color);

}



.numero-vendido {

    background: #e9ecef;

    color: #6c757d;

    cursor: not-allowed;

}



/* Formulários */

.form-section {

    background: white;

    padding: 2rem;

    border-radius: var(--border-radius);

    box-shadow: var(--shadow-light);

    margin: 2rem 0;

}



.form-group {

    margin-bottom: 1.5rem;

}



.form-group label {

    display: block;

    font-weight: 500;

    margin-bottom: 0.5rem;

    color: var(--text-primary);

}



.form-group input,

.form-group textarea,

.form-group select {

    width: 100%;

    padding: 0.8rem;

    border: 1px solid var(--border-color);

    border-radius: var(--border-radius);

    font-size: 1rem;

    transition: var(--transition);

}



.form-group input:focus,

.form-group textarea:focus,

.form-group select:focus {

    outline: none;

    border-color: var(--primary-color);

    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);

}



/* Tabelas */

.table-container {

    background: white;

    border-radius: var(--border-radius);

    overflow: hidden;

    box-shadow: var(--shadow-light);

    margin: 2rem 0;

}



.table {

    width: 100%;

    border-collapse: collapse;

}



.table th,

.table td {

    padding: 1rem;

    text-align: left;

    border-bottom: 1px solid var(--border-color);

}



.table th {

    background: var(--bg-light);

    font-weight: 600;

    color: var(--text-primary);

}



.table tr:hover {

    background: var(--bg-light);

}



/* Status badges */

.status-badge {

    padding: 0.3rem 0.8rem;

    border-radius: 20px;

    font-size: 0.8rem;

    font-weight: 500;

}



.status-pago {

    background: #d4edda;

    color: #155724;

}



.status-pendente {

    background: #fff3cd;

    color: #856404;

}



.status-cancelado {

    background: #f8d7da;

    color: #721c24;

}



/* Responsividade */

@media (max-width: 768px) {

    .header-content {

        flex-direction: row;

        justify-content: space-between;

        gap: .5rem;

    }

    

    .nav-menu {

        flex-wrap: wrap;

        justify-content: center;

    }

    

    .sorteios-grid {

        grid-template-columns: 1fr !important;

        gap: 1.5rem;

        padding: 1rem 1rem;

        justify-items: center;

    }

    

    /* No mobile, remover classes de centralização e ajustar largura */

    .sorteios-grid.single-item .sorteio-card:first-child,

    .sorteios-grid.two-items .sorteio-card:first-child,

    .sorteios-grid.two-items .sorteio-card:nth-child(2) {

        grid-column: 1;

    }

    

    .sorteio-card {

        width: 100%;

        max-width: 400px;

        margin: 0 auto;

    }

    

    .numeros-grid {

        grid-template-columns: repeat(8, 1fr);

    }

    

    .filters-grid {

        grid-template-columns: 1fr;

    }

}



@media (max-width: 480px) {

    .container {

        padding: 0 10px;

    }

    

    .numeros-grid {

        grid-template-columns: repeat(6, 1fr);

    }

    

    .form-section,

    .filters-section {

        padding: 1rem;

    }

}



/* Animações */

@keyframes fadeIn {

    from {

        opacity: 0;

        transform: translateY(20px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}



.fade-in {

    animation: fadeIn 0.5s ease-out;

}



/* Loading spinner */

.loading {

    display: inline-block;

    width: 20px;

    height: 20px;

    border: 3px solid rgba(255,255,255,.3);

    border-radius: 50%;

    border-top-color: #fff;

    animation: spin 1s ease-in-out infinite;

}



@keyframes spin {

    to { transform: rotate(360deg); }

}



/* Animação de pulse para o ícone do relógio */

@keyframes pulse {

    0% { 

        transform: scale(1); 

        opacity: 1; 

    }

    50% { 

        transform: scale(1.1); 

        opacity: 0.8; 

    }

    100% { 

        transform: scale(1); 

        opacity: 1; 

    }

}

/* ===== ESTILOS PARA SORTEIOS ENCERRADOS REMOVIDOS - USAR ARQUIVO DEDICADO ===== */




