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

/* Acessibilidade - Texto visualmente oculto mas acessível para leitores de tela */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Melhor indicador de foco para acessibilidade */
*:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Skip to main content link (acessibilidade) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #d4af37;
    color: #0a0f1c;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #0a0f1c 0%, #1a2332 100%);
    min-height: 100vh;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, #141b2d 0%, #1f2937 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    animation: shimmer 3s infinite;
}

/* Espaço para Propagandas */
.ads-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.ad-container {
    background: linear-gradient(135deg, #141b2d 0%, #1f2937 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.ad-container:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 50px rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.ad-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.ad-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1400 / 250;
    border-radius: 8px;
    display: block;
    transition: all 0.3s ease;
}

.ad-image:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.ad-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(10, 15, 28, 0.85);
    color: #d4af37;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(4px);
    pointer-events: none;
    z-index: 10;
}

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

.main-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #d4af37, #f4e4c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.date-filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #1a2332 0%, #243447 100%);
    border: 1px solid #2a3f5f;
    border-radius: 8px;
}

.date-label {
    color: #d4af37;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.date-input {
    padding: 10px 20px;
    background: linear-gradient(135deg, #141b2d 0%, #1a2332 100%);
    border: 1px solid #2a3f5f;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.date-input:hover,
.date-input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(1) brightness(0.8);
    transition: all 0.2s ease;
}

.date-input::-webkit-calendar-picker-indicator:hover {
    filter: invert(0.7) sepia(1) saturate(5) hue-rotate(15deg);
}

.clear-date-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #1a2332 0%, #243447 100%);
    color: #a0a9b8;
    border: 1px solid #2a3f5f;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.clear-date-btn:hover {
    background: linear-gradient(135deg, #243447 0%, #2a3f5f 100%);
    border-color: #d4af37;
    color: #d4af37;
}

.filters-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.filter-btn {
    padding: 12px 28px;
    border: 1px solid #2a3f5f;
    border-radius: 4px;
    background: linear-gradient(135deg, #1a2332 0%, #243447 100%);
    color: #a0a9b8;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.filter-btn:hover {
    background: linear-gradient(135deg, #243447 0%, #2a3f5f 100%);
    border-color: #3a4f6f;
    color: #d4af37;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #2a3f5f 0%, #3a4f6f 100%);
    color: #d4af37;
    border-color: #d4af37;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.federal-filter {
    background: linear-gradient(135deg, #d4af37, #b8941f) !important;
    color: #0a0f1c !important;
    border: 2px solid #d4af37 !important;
    font-weight: 600 !important;
    position: relative;
    letter-spacing: 2px;
}

.federal-filter:hover {
    background: linear-gradient(135deg, #f4e4c1, #d4af37) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.federal-filter.active {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
    animation: goldPulse 2s infinite;
}

@keyframes goldPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }
    50% { box-shadow: 0 0 30px rgba(212, 175, 55, 0.6); }
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    padding: 14px 32px;
    background: linear-gradient(135deg, #1a2332 0%, #243447 100%);
    color: #a0a9b8;
    border: 1px solid #2a3f5f;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.refresh-btn:hover {
    background: linear-gradient(135deg, #243447 0%, #2a3f5f 100%);
    border-color: #d4af37;
    color: #d4af37;
}

.refresh-icon {
    font-size: 1.1rem;
    transition: transform 0.5s ease;
}

.refresh-btn:hover .refresh-icon {
    transform: rotate(360deg);
}

.loading {
    text-align: center;
    padding: 60px;
    background: linear-gradient(135deg, #141b2d 0%, #1f2937 100%);
    border: 1px solid #2a3f5f;
    border-radius: 12px;
    margin: 20px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 2px solid #2a3f5f;
    border-top: 2px solid #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.results-container {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.result-group {
    background: linear-gradient(135deg, #141b2d 0%, #1a2332 100%);
    border: 1px solid #2a3f5f;
    border-radius: 8px;
    padding: 30px;
    transition: all 0.2s ease;
    position: relative;
}

.result-group:hover {
    border-color: #3a4f6f;
    box-shadow: 0 5px 20px rgba(42, 63, 95, 0.3);
    transform: translateY(-2px);
}

.result-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: linear-gradient(135deg, #1a2332 0%, #243447 100%);
    border: 1px solid #3a4f6f;
    border-radius: 8px;
    padding: 30px;
}

.result-pair:hover {
    border-color: #4a5f7f;
    box-shadow: 0 5px 20px rgba(42, 63, 95, 0.4);
    transform: translateY(-2px);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.result-title {
    font-size: 1.2rem;
    font-weight: 400;
    color: #e0e0e0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.result-time {
    font-size: 0.9rem;
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
    padding: 6px 16px;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.numbers-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.number-ball {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #243447 0%, #2a3f5f 100%);
    color: #ffffff;
    padding: 12px;
    border-radius: 6px;
    min-width: 90px;
    border: 1px solid #3a4f6f;
    position: relative;
}

.number-main {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
}

.number-sub {
    font-size: 0.9rem;
    color: #d4af37;
    margin-top: 4px;
    font-weight: 500;
}

.federal-result {
    background: linear-gradient(135deg, #1a1510 0%, #2d2618 100%) !important;
    border: 2px solid #d4af37 !important;
    position: relative;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.federal-result .number-ball {
    background: linear-gradient(135deg, #2d2618 0%, #3d3628 100%);
    border-color: #d4af37;
}

.federal-result .result-header {
    border-bottom-color: rgba(212, 175, 55, 0.3);
}

.federal-banner {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #1a1510 0%, #2d2618 100%);
    border: 2px solid #d4af37;
    border-radius: 8px;
    padding: 20px 30px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    animation: slideIn 0.3s ease-out;
    z-index: 1000;
}

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

.federal-content h2 {
    color: #d4af37;
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.federal-content p {
    color: #e0e0e0;
    font-size: 0.9rem;
}

.hidden {
    display: none !important;
}

/* Mensagem de sem resultados */
.no-results {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #141b2d 0%, #1f2937 100%);
    border: 1px solid #2a3f5f;
    border-radius: 12px;
    margin: 20px 0;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease;
}

.no-results h2 {
    color: #e0e0e0;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.no-results p {
    color: #a0a9b8;
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.no-results p strong {
    color: #d4af37;
}

.no-results-hint {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #6b7280;
}

/* Mensagem de erro */
.error-message {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #2d1a1a 0%, #3d2020 100%);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 12px;
    margin: 20px 0;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease;
}

.error-message h2 {
    color: #e0e0e0;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.error-message p {
    color: #f87171;
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.error-date {
    color: #a0a9b8 !important;
    font-size: 0.95rem !important;
    margin: 20px 0;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    display: inline-block;
}

.error-date strong {
    color: #d4af37;
}

.error-actions {
    margin-top: 30px;
}

.error-hint {
    color: #a0a9b8 !important;
    font-size: 0.9rem !important;
    margin-bottom: 20px !important;
    font-style: italic;
}

.retry-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #1a2332 0%, #243447 100%);
    color: #e0e0e0;
    border: 1px solid #2a3f5f;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.retry-btn:hover {
    background: linear-gradient(135deg, #243447 0%, #2a3f5f 100%);
    border-color: #d4af37;
    color: #d4af37;
    transform: translateY(-2px);
}

/* Seção Informativa para SEO */
.info-section {
    background: linear-gradient(135deg, #141b2d 0%, #1a2332 100%);
    border: 1px solid #2a3f5f;
    border-radius: 12px;
    padding: 40px;
    margin: 60px 0 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.info-content h2 {
    color: #d4af37;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-align: center;
}

.info-content h3 {
    color: #e0e0e0;
    font-size: 1.3rem;
    font-weight: 400;
    margin: 30px 0 15px;
    letter-spacing: 0.5px;
}

.info-content p {
    color: #a0a9b8;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.info-content ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.info-content ul li {
    color: #a0a9b8;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.info-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: bold;
    font-size: 1.2rem;
}

.info-content strong {
    color: #d4af37;
    font-weight: 600;
}

.info-disclaimer {
    background: rgba(212, 175, 55, 0.05);
    border-left: 3px solid #d4af37;
    padding: 20px;
    margin-top: 30px;
    border-radius: 4px;
}

.info-disclaimer p {
    margin: 0;
    font-size: 0.9rem;
    color: #9ca3af;
    line-height: 1.6;
}

footer {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    margin-top: 20px;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

footer p {
    margin: 10px 0;
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: #a0a9b8;
    text-decoration: none;
    transition: color 0.2s ease;
    text-transform: none;
    letter-spacing: 0.5px;
}

.footer-links a:hover {
    color: #d4af37;
}

.filter-active {
    animation: fadeIn 0.3s ease;
}

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

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0f1c;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2a3f5f, #1a2332);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3a4f6f, #243447);
}

/* Posição do prêmio */
.prize-position {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #0a0f1c;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Destaque especial para 1º prêmio */
.first-prize {
    background: linear-gradient(135deg, #d4af37, #b8941f) !important;
    border: 2px solid #f4e4c1 !important;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4) !important;
    animation: goldGlow 2s ease-in-out infinite;
}

@keyframes goldGlow {
    0%, 100% { 
        box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
        transform: scale(1.1);
    }
    50% { 
        box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
        transform: scale(1.12);
    }
}

.first-prize .number-main {
    color: #0a0f1c !important;
    font-weight: 700 !important;
}

.first-prize .number-sub {
    color: #2a3f5f !important;
    font-weight: 600 !important;
}

.first-prize .prize-position {
    background: linear-gradient(135deg, #0a0f1c, #1a2332);
    color: #f4e4c1;
    font-size: 0.85rem;
    animation: pulse 1.5s ease-in-out infinite;
}

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

.first-prize .group-image {
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}

/* Estilos para imagens dos grupos */
.group-image {
    width: 30px;
    height: 30px;
    aspect-ratio: 1 / 1;
    margin-top: 8px;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Nome do bicho */
.bicho-name {
    font-size: 0.75rem;
    color: #a0a9b8;
    margin-top: 4px;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.first-prize .bicho-name {
    color: #2a3f5f !important;
    font-weight: 600 !important;
}

/* Showcase de grupos */
.groups-showcase {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.group-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.group-item img {
    width: 50px;
    height: 50px;
    padding: 8px;
    background: linear-gradient(135deg, #243447 0%, #2a3f5f 100%);
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.group-item:hover img {
    background: linear-gradient(135deg, #2a3f5f 0%, #3a4f6f 100%);
    border-color: #d4af37;
    transform: translateY(-3px) rotate(5deg);
    filter: drop-shadow(0 6px 12px rgba(212, 175, 55, 0.4));
}

.group-item .group-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: #d4af37;
    text-align: center;
}

/* Ajuste para Federal */
.federal-result .group-image {
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.4));
}

.federal-result .groups-showcase {
    border-top-color: rgba(212, 175, 55, 0.3);
}

.federal-result .group-item img {
    border-color: #d4af37;
    background: linear-gradient(135deg, #2d2618 0%, #3d3628 100%);
}

/* Efeito de brilho dourado sutil */
.result-group::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    padding: 1px;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.result-group:hover::after {
    opacity: 1;
}


@media (max-width: 768px) {
    .main-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .filters-container {
        justify-content: center;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .result-pair {
        grid-template-columns: 1fr;
    }

    .federal-banner {
        right: 10px;
        left: 10px;
        top: auto;
        bottom: 20px;
    }

    .ads-wrapper {
        margin-bottom: 20px;
    }

    .ad-container {
        padding: 15px;
        max-width: 100%;
    }

    .date-filter-container {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .date-label {
        font-size: 0.85rem;
    }

    .date-input,
    .clear-date-btn {
        width: 100%;
        text-align: center;
    }

    .no-results,
    .error-message {
        padding: 60px 20px;
    }

    .no-results h2,
    .error-message h2 {
        font-size: 1.3rem;
    }

    .no-results-icon,
    .error-icon {
        font-size: 3rem;
    }
}