/* Reset e Configurações Básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0b5ed7; /* azul profundo */
    --secondary-color: #ffb33a; /* dourado suave */
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    --gradient-primary: linear-gradient(135deg, #0b5ed7 0%, #073e99 100%);
    --gradient-secondary: linear-gradient(135deg, #ffb33a 0%, #e79a12 100%);
    --gradient-success: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    --border-radius: 0.75rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-800);
    background: #f3f4f6; /* cinza claro suave */
    background-attachment: fixed;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========================================
   Header Minimalista
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0b5ed7 0%, #073e99 100%);
    box-shadow: 0 4px 15px rgba(11, 94, 215, 0.3);
    z-index: 9999;
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 70px;
    width: auto;
    filter: brightness(1.1) drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.btn-consultar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-consultar-header:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-consultar-header i {
    font-size: 1rem;
}

/* Mobile responsive for minimalist header */
@media (max-width: 768px) {
    .header {
        padding: 15px 0;
    }
    
    .header-content {
        justify-content: space-between;
    }
    
    .logo {
        height: 55px;
    }
    
    .btn-consultar-header {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .btn-consultar-header span {
        display: block;
    }
    
    .btn-consultar-header i {
        font-size: 0.9rem;
    }
}

/* Ajuste para el contenido principal con header fijo */
.prize-section {
    margin-top: 110px; /* Espacio para el header fijo más grande */
    padding: 2rem 0 1rem; /* Reducido padding */
}

.logo-container {
    text-align: center;
}

.logo {
    max-height: 110px; /* aumenta o tamanho da logo */
    width: auto;
    max-width: 280px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.logo:hover {
    transform: scale(1.05);
}

/* Seção do Prêmio */
.prize-section {
    background: transparent;
    padding: 1rem 0 1.5rem;
}

.prize-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    padding: 1rem 0;
}

.prize-header::before {
    content: '🎉';
    position: absolute;
    left: 50%;
    top: -10px;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.prize-title {
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #0b5ed7 0%, #ffb33a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.2;
    text-shadow: none;
    position: relative;
    display: inline-block;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.1); }
}

.prize-subtitle {
    font-size: 1.15rem;
    color: var(--gray-700);
    font-weight: 500;
    font-style: italic;
    position: relative;
    padding: 0 20px;
}

.prize-subtitle::before,
.prize-subtitle::after {
    content: '✨';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.prize-subtitle::before {
    left: 0;
}

.prize-subtitle::after {
    right: 0;
}

@media (max-width: 768px) {
    .prize-title {
        font-size: 2rem;
    }
    
    .prize-subtitle {
        font-size: 1rem;
    }
}

.prize-image-container {
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(11, 94, 215, 0.15);
}

.prize-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.prize-image:hover {
    transform: scale(1.02);
}

.prize-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 10px 25px rgba(231, 154, 18, 0.35);
}

.prize-badge span {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prize-badge strong {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* detalhes removidos da seção do prêmio */

.prize-details h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-weight: 600;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.detail-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.detail-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.detail-item span {
    font-weight: 500;
    color: var(--gray-700);
}

/* Seção de Informações */
/* seção de informações removida */

.countdown-container {
    text-align: center;
    margin-bottom: 2rem;
}

.countdown-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.time-unit {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: var(--border-radius);
    min-width: 80px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.time-unit .number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.time-unit .label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    text-align: center;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem 1rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--warning-color);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Seção de Compra */
.purchase-section {
    background: transparent;
    padding: 2rem 0;
}
/* Checkout */
.checkout-section {
    background: transparent;
    padding: 1rem 0 2rem;
}

.checkout-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    max-width: 720px;
    margin: 0 auto;
}

.checkout-head { display: flex; align-items: center; gap: 0.5rem; }
.checkout-info h3 {
    color: var(--dark-color);
    font-size: 1.1rem;
    margin: 0.25rem 0 0.5rem;
}

.checkout-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.summary-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f7f9fc;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}
.summary-pill.total {
    background: linear-gradient(135deg, #0b5ed7 0%, #073e99 100%);
    color: #fff;
    border: none;
}

.summary-label { color: var(--gray-600); }
.summary-value { font-weight: 800; color: var(--dark-color); }
.summary-pill.total .summary-label { color: rgba(255,255,255,0.85); }
.summary-pill.total .summary-value { color: #fff; }

.checkout-hint { color: var(--gray-500); font-size: 0.9rem; }

.checkout-actions { display: flex; gap: 0.5rem; }

.btn-finalize {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.1s ease;
}

.btn-finalize[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn-finalize:not([disabled]):hover { filter: brightness(1.05); }
.btn-finalize:not([disabled]):active { transform: translateY(1px); }

.badge {
    background: var(--gradient-secondary);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.hidden { display: none; }

@media (max-width: 520px) {
    .checkout-card { grid-template-columns: 1fr; }
    .checkout-actions { justify-content: stretch; }
    .btn-finalize { width: 100%; }
}

/* Barra de progresso de vendas */
.progress-wrapper {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1rem 1rem 1.25rem;
    box-shadow: var(--shadow-sm);
    max-width: 720px;
    margin: 0 auto 1.2rem;
}

.progress-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress-title {
    font-weight: 700;
    color: var(--dark-color);
}

.progress-percent {
    font-weight: 700;
    color: var(--secondary-color);
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, #e9ecef, #f8f9fa, #e9ecef);
    background-size: 200% 100%;
    animation: backgroundShift 3s ease-in-out infinite;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

@keyframes backgroundShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #0b5ed7 0%, #0d6efd 50%, #0b5ed7 100%);
    border-radius: 999px;
    box-shadow: 
        inset 0 -2px 4px rgba(0,0,0,0.2),
        inset 0 2px 4px rgba(255,255,255,0.3);
    transition: width 0.8s ease;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
    overflow: hidden;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: translateX(-100%);
    animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.progress-legend {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.purchase-header {
    text-align: center;
    margin-bottom: 2rem;
}

.purchase-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.purchase-header p {
    font-size: 1.1rem;
    color: var(--gray-600);
}

.quota-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.quota-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quota-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.quota-card:hover::before {
    left: 100%;
}

.quota-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(11,94,215,0.6);
}

.quota-card.selected {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(11,94,215,0.95), rgba(7,62,153,0.95));
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(7,62,153,0.35);
}

.quota-card.popular {
    position: relative;
    border-color: rgba(11, 94, 215, 0.6);
    box-shadow: 0 16px 40px rgba(11, 94, 215, 0.2);
    transform: translateY(-3px);
}

.quota-card.best-value {
    position: relative;
    border-color: rgba(255, 179, 58, 0.7);
    box-shadow: 0 18px 44px rgba(255, 179, 58, 0.2);
    transform: translateY(-3px);
}

.quota-card.premium {
    border-color: var(--secondary-color);
    position: relative;
}

.popular-badge,
.best-value-badge,
.premium-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0 var(--border-radius-lg) 0 var(--border-radius);
}

.popular-badge {
    background: var(--gradient-primary);
    color: var(--white);
}

.best-value-badge {
    background: var(--gradient-secondary);
    color: var(--white);
}

.premium-badge {
    background: linear-gradient(135deg, #6f42c1, #5a2d91);
    color: var(--white);
}

.quota-header {
    margin-bottom: 0.75rem;
}

.quota-count {
    display: block;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

.quota-card.selected .quota-count {
    color: var(--white);
}

.quota-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    color: var(--gray-600);
}

.quota-card.selected .quota-label {
    color: var(--white);
}

.quota-price {
    margin-bottom: 1rem;
}

.price-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2a37;
    margin-bottom: 0.15rem;
}

.quota-card.selected .price-value {
    color: var(--white);
}

.price-per-quota {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

.quota-card.selected .price-per-quota {
    color: rgba(255, 255, 255, 0.8);
}

.quota-chance { display: none !important; }

.quota-card.selected .quota-chance {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

/* Formulário de Compra */
.purchase-form {
    background: var(--gray-100);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin-top: 2rem;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.purchase-form h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-weight: 600;
}

.selected-info {
    text-align: center;
    background: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.selected-info p {
    font-weight: 600;
    color: var(--gray-700);
    margin: 0.25rem 0;
}

.selected-info span {
    color: var(--primary-color);
    font-weight: 700;
}

.form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input {
    padding: 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.btn-purchase {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.btn-purchase:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-purchase:active {
    transform: translateY(0);
}

/* Seção de Regulamento */
.rules-section {
    background: transparent;
    padding: 2rem 0;
}

.rules-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
    color: var(--dark-color);
}

.rules-content {
    display: grid;
    gap: 1rem;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.rule-item i {
    color: var(--success-color);
    font-size: 1.25rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.rule-item p {
    font-weight: 500;
    color: var(--gray-700);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--gray-700);
    padding: 1.5rem 0 1rem;
    border-top: 1px solid var(--gray-300);
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.footer-section p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray-600);
}

.footer-section i {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(11, 94, 215, 0.25);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-300);
    color: var(--gray-500);
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .prize-title {
        font-size: 1.75rem;
    }
    
    .prize-subtitle {
        font-size: 1rem;
    }
    
    .quota-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .quota-card {
        padding: 1.5rem;
    }
    
    .quota-count {
        font-size: 2.5rem !important;
    }
    
    .price-value {
        font-size: 1.75rem !important;
    }
    
    .countdown {
        gap: 0.5rem;
    }
    
    .time-unit {
        min-width: 70px;
        padding: 0.75rem;
    }
    
    .time-unit .number {
        font-size: 1.5rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .purchase-form {
        padding: 1.5rem;
    }
    
    .form {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .prize-section,
    .purchase-section {
        padding: 1.5rem 0;
    }
    
    .info-section {
        padding: 1.5rem 0;
    }
    
    .prize-badge {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.5rem 0.75rem;
    }
    
    .prize-badge span {
        font-size: 0.7rem;
    }
    
    .prize-badge strong {
        font-size: 1rem;
    }
    
    .quota-card {
        padding: 1.25rem;
    }
    
    .purchase-header h2 {
        font-size: 1.5rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* Animações adicionais */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quota-card {
    animation: fadeInUp 0.6s ease forwards;
}

.quota-card:nth-child(1) { animation-delay: 0.1s; }
.quota-card:nth-child(2) { animation-delay: 0.2s; }
.quota-card:nth-child(3) { animation-delay: 0.3s; }
.quota-card:nth-child(4) { animation-delay: 0.4s; }
.quota-card:nth-child(5) { animation-delay: 0.5s; }
.quota-card:nth-child(6) { animation-delay: 0.6s; }
.quota-card:nth-child(7) { animation-delay: 0.7s; }

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Personalização da scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-200);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* ========================================
   Sección de Consulta de Números
   ======================================== */

.query-section {
    padding: 35px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.query-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.query-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(11,94,215,0.05) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.query-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.query-icon i {
    font-size: 36px;
    color: white;
}

.query-card h3 {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.query-card p {
    color: var(--gray-600);
    margin-bottom: 30px;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.btn-query {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(11,94,215,0.3);
}

.btn-query:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11,94,215,0.4);
}

.btn-query i {
    margin-right: 10px;
}

/* ========================================
   Modal de Consulta
   ======================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-500);
    cursor: pointer;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--danger-color);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal-header h3 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.modal-header p {
    color: var(--gray-600);
    font-size: 14px;
}

/* Formulario de Consulta */
.consultation-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-700);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input.error {
    border-color: var(--danger-color);
}

.error-message {
    color: var(--danger-color);
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.btn-search {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(11,94,215,0.3);
}

.btn-search:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loader */
.loader {
    text-align: center;
    padding: 30px;
}

.loader.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader p {
    color: var(--gray-600);
    font-size: 14px;
}

/* Resultados */
.consultation-results {
    margin-top: 20px;
}

.consultation-results.hidden {
    display: none;
}

.results-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-200);
}

.results-header h4 {
    color: var(--success-color);
    font-size: 20px;
    margin-bottom: 5px;
}

.results-header p {
    color: var(--gray-700);
    font-size: 16px;
}

.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.ticket-number-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 10px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(102,126,234,0.3);
    position: relative;
    overflow: hidden;
}

.ticket-number-card::before {
    content: '🎟️';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 30px;
    opacity: 0.1;
}

.results-summary {
    text-align: center;
    padding-top: 15px;
    border-top: 2px solid var(--gray-200);
}

.results-summary p {
    font-size: 16px;
    color: var(--gray-700);
}

.results-summary span {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 18px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 40px;
}

.no-results.hidden {
    display: none;
}

.no-results i {
    font-size: 60px;
    color: var(--gray-400);
    margin-bottom: 15px;
}

.no-results p {
    color: var(--gray-600);
    font-size: 16px;
    margin-bottom: 5px;
}

.no-results small {
    color: var(--gray-500);
    font-size: 13px;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .query-card {
        padding: 30px 20px;
    }
    
    .query-card h3 {
        font-size: 22px;
    }
    
    .btn-query {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .modal-header i {
        font-size: 36px;
    }
    
    .tickets-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 8px;
    }
    
    .ticket-number-card {
        font-size: 16px;
        padding: 12px 8px;
    }
}

/* ========================================
   Sistema de Notificaciones de Vendas
   ======================================== */

.notifications-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    pointer-events: none;
}

.sale-notification {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideInRight 0.5s ease-out forwards;
    pointer-events: auto;
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

@keyframes slideInRight {
    0% {
        transform: translateX(400px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.sale-notification.fade-out {
    animation: fadeOutRight 0.5s ease-out forwards;
}

@keyframes fadeOutRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(400px);
        opacity: 0;
    }
}

.notification-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: iconPulse 1.5s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.notification-icon i {
    color: white;
    font-size: 20px;
    animation: iconRotate 2s ease-in-out infinite;
}

@keyframes iconRotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(10deg); }
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 0.9rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notification-location {
    color: var(--primary-color);
    font-weight: 600;
}

.notification-details {
    font-size: 0.85rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-count {
    background: var(--gradient-secondary);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.75rem;
    display: inline-block;
    animation: ticketBounce 0.5s ease-out;
}

@keyframes ticketBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.notification-time {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Barra de progresso da notificação */
.sale-notification::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    animation: progressTimer 5s linear forwards;
}

@keyframes progressTimer {
    0% { width: 100%; }
    100% { width: 0%; }
}

/* Responsive para notificações */
@media (max-width: 768px) {
    .notifications-container {
        bottom: 70px;
        right: 10px;
        left: 10px;
        max-width: 100%;
    }
    
    .sale-notification {
        padding: 14px 16px;
    }
    
    .notification-icon {
        width: 40px;
        height: 40px;
    }
    
    .notification-icon i {
        font-size: 18px;
    }
}


