/* Reset e Configurações Básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Nova paleta: Preto, Verde e Branco */
    --primary-color: #00c853; /* verde vibrante */
    --primary-dark: #00a843;
    --primary-light: #00e676;
    --secondary-color: #10b981; /* verde esmeralda */
    --accent-color: #22d3ee; /* cyan para destaques especiais */
    
    --success-color: #00c853;
    --warning-color: #fbbf24;
    --danger-color: #ef4444;
    
    /* Escala de pretos */
    --black-900: #0a0a0a;
    --black-800: #121212;
    --black-700: #1a1a1a;
    --black-600: #222222;
    --black-500: #2a2a2a;
    --black-400: #333333;
    --black-300: #444444;
    
    /* Escala de brancos/cinzas */
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #00c853 0%, #00a843 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    --gradient-glow: linear-gradient(135deg, #00c853 0%, #10b981 50%, #00e676 100%);
    --gradient-card: linear-gradient(145deg, #1a1a1a 0%, #121212 100%);
    
    /* Sombras com verde */
    --shadow-sm: 0 2px 8px rgba(0, 200, 83, 0.08);
    --shadow: 0 8px 24px rgba(0, 200, 83, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 200, 83, 0.2);
    --shadow-glow: 0 0 30px rgba(0, 200, 83, 0.3);
    
    --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(--white);
    background: var(--black-900);
    background-image: 
        radial-gradient(ellipse at 20% 0%, rgba(0, 200, 83, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========================================
   Sales Closed Overlay
   ======================================== */

.sales-closed-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.overlay-content {
    background: var(--gradient-card);
    border: 1px solid rgba(0, 200, 83, 0.2);
    border-radius: 30px;
    padding: 50px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.overlay-icon {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(0, 200, 83, 0.5);
}

.overlay-title {
    color: var(--white);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.overlay-subtitle {
    color: var(--gray-400);
    font-size: 18px;
    margin-bottom: 30px;
}

.draw-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.draw-date,
.draw-time {
    background: rgba(0, 200, 83, 0.1);
    padding: 15px 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0, 200, 83, 0.2);
}

.draw-date i,
.draw-time i {
    color: var(--primary-color);
    font-size: 20px;
}

.draw-date span,
.draw-time span {
    color: var(--white);
    font-size: 16px;
}

.draw-date strong,
.draw-time strong {
    color: var(--primary-color);
}

.countdown-container {
    margin-bottom: 40px;
}

.countdown-container h3 {
    color: var(--gray-300);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 500;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.countdown-item {
    background: var(--black-700);
    border: 2px solid rgba(0, 200, 83, 0.3);
    border-radius: 15px;
    padding: 20px;
    min-width: 100px;
}

.countdown-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 0 20px rgba(0, 200, 83, 0.4);
}

.countdown-label {
    display: block;
    font-size: 14px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-separator {
    color: var(--primary-color);
    font-size: 36px;
    font-weight: 700;
}

.countdown-finished {
    font-size: 32px;
    color: var(--primary-color);
    font-weight: 700;
    padding: 30px;
    background: rgba(0, 200, 83, 0.1);
    border-radius: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.overlay-actions {
    margin-bottom: 30px;
}

.btn-check-numbers {
    background: var(--gradient-primary);
    color: var(--black-900);
    border: none;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.btn-check-numbers:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-check-numbers:active {
    transform: translateY(-1px);
}

.btn-check-numbers i {
    font-size: 20px;
}

/* Estilos para botões em overlays */
#winnerOverlay button,
#salesClosedOverlay button {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

#winnerOverlay button:hover,
#salesClosedOverlay button:hover {
    transform: translateY(-2px);
}

#winnerOverlay button:active,
#salesClosedOverlay button:active {
    transform: translateY(0);
}

.overlay-footer {
    color: var(--gray-400);
    font-size: 16px;
}

.overlay-footer p {
    margin-bottom: 10px;
}

.prize-reminder {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .overlay-content {
        padding: 30px 20px;
    }

    .overlay-title {
        font-size: 28px;
    }

    .overlay-subtitle {
        font-size: 16px;
    }

    .countdown-item {
        min-width: 80px;
        padding: 15px;
    }

    .countdown-number {
        font-size: 36px;
    }

    .countdown-separator {
        font-size: 28px;
    }

    .btn-check-numbers {
        padding: 15px 30px;
        font-size: 16px;
    }

    .draw-info {
        flex-direction: column;
        gap: 15px;
    }

    .draw-date,
    .draw-time {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   Header - Tema Escuro com Verde
   ======================================== */

.header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--black-900) 0%, var(--black-800) 100%);
    border-bottom: 2px solid rgba(0, 200, 83, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 80px rgba(0, 200, 83, 0.1);
    z-index: 9999;
    padding: 25px 0;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 83, 0.05), transparent);
    animation: headerShine 8s ease-in-out infinite;
}

@keyframes headerShine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.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 10px rgba(0, 200, 83, 0.3));
}

.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-consultar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-consultar-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-consultar-header:hover::before {
    left: 0;
}

.btn-consultar-header:hover {
    color: var(--black-900);
    border-color: transparent;
    box-shadow: 0 0 30px rgba(0, 200, 83, 0.6), 0 0 60px rgba(0, 200, 83, 0.3);
    transform: translateY(-3px);
}

.btn-consultar-header i {
    font-size: 1rem;
}

/* Mobile responsive for header */
@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 0 10px;
    }

    .logo-container {
        width: 100%;
        text-align: center;
    }

    .logo {
        height: 45px;
        max-width: 150px;
    }

    .header-buttons {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .btn-consultar-header {
        width: 100%;
        padding: 10px 16px;
        font-size: 0.85rem;
        justify-content: center;
    }

    .btn-consultar-header span {
        display: inline-block;
    }

    .btn-consultar-header i {
        font-size: 0.9rem;
    }
}

@media (max-width: 380px) {
    .header {
        padding: 8px 0;
    }

    .logo {
        height: 40px;
    }

    .btn-consultar-header {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .btn-consultar-header span {
        font-size: 0.75rem;
    }

    .btn-consultar-header i {
        font-size: 0.85rem;
    }
}

/* Ajuste para el contenido principal */
.prize-section {
    margin-top: 0;
    padding: 2rem 0 1rem;
}

.logo-container {
    text-align: center;
}

.logo {
    max-height: 110px;
    width: auto;
    max-width: 280px;
    filter: drop-shadow(0 4px 15px rgba(0, 200, 83, 0.3));
    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-title {
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00c853 0%, #00e676 30%, #22d3ee 60%, #00e676 90%, #00c853 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0px;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    animation: titleGlow 4s ease-in-out infinite, titleShift 8s ease infinite;
}

@keyframes titleGlow {
    0%, 100% { 
        filter: brightness(1) drop-shadow(0 0 25px rgba(0, 200, 83, 0.4)) drop-shadow(0 0 50px rgba(0, 200, 83, 0.2)); 
    }
    50% { 
        filter: brightness(1.2) drop-shadow(0 0 35px rgba(0, 200, 83, 0.6)) drop-shadow(0 0 70px rgba(0, 200, 83, 0.3)); 
    }
}

@keyframes titleShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.prize-subtitle {
    font-size: 1.15rem;
    color: var(--gray-400);
    font-weight: 500;
    font-style: italic;
    position: relative;
}

@media (max-width: 768px) {
    .prize-title {
        font-size: 2rem;
    }
    
    .prize-subtitle {
        font-size: 1rem;
    }
}

.prize-image-container {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 0 100px rgba(0, 200, 83, 0.2);
    border: 3px solid transparent;
    background: linear-gradient(var(--black-800), var(--black-800)) padding-box,
                linear-gradient(135deg, var(--primary-color), var(--accent-color), var(--primary-light)) border-box;
}

.prize-image-container::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 30px;
    padding: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color), var(--primary-light));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
    animation: borderGlow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.prize-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.prize-image-container:hover .prize-image {
    transform: scale(1.05);
}

.prize-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--black-900);
    padding: 1rem 1.75rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 200, 83, 0.5), 0 0 60px rgba(0, 200, 83, 0.3);
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
    animation: badgeFloat 3s ease-in-out infinite;
    z-index: 10;
}

@keyframes badgeFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
        box-shadow: 0 10px 40px rgba(0, 200, 83, 0.5), 0 0 60px rgba(0, 200, 83, 0.3);
    }
    50% { 
        transform: translateY(-10px) rotate(-2deg);
        box-shadow: 0 15px 50px rgba(0, 200, 83, 0.6), 0 0 80px rgba(0, 200, 83, 0.4);
    }
}

.prize-badge span {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.prize-badge strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 900;
    margin-top: 0.35rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Mensagem de data do sorteio */
.draw-date-message {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.15), rgba(0, 200, 83, 0.05));
    border: 2px solid rgba(0, 200, 83, 0.4);
    border-radius: 24px;
    padding: 2rem 2.5rem;
    text-align: center;
    margin-top: 2rem;
    box-shadow: 0 15px 50px rgba(0, 200, 83, 0.2), 0 0 80px rgba(0, 200, 83, 0.1), inset 0 0 60px rgba(0, 200, 83, 0.05);
    position: relative;
    overflow: hidden;
}

.draw-date-message::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 200, 83, 0.1), transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.draw-date-message i {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
    filter: drop-shadow(0 0 20px rgba(0, 200, 83, 0.6));
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.draw-date-message p {
    color: var(--white);
    margin: 0.75rem 0;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.draw-date-message strong {
    color: var(--primary-color);
    font-size: 1.15rem;
    text-shadow: 0 0 20px rgba(0, 200, 83, 0.5);
}

.draw-date-subtitle {
    color: var(--gray-400) !important;
    font-size: 0.95rem;
}

/* detalhes do prêmio */
.prize-details h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--white);
    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(--black-700);
    border: 1px solid rgba(0, 200, 83, 0.15);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.detail-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.detail-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.detail-item span {
    font-weight: 500;
    color: var(--gray-300);
}

/* Countdown */
.countdown-container {
    text-align: center;
    margin-bottom: 2rem;
}

.countdown-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--white);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.time-unit {
    background: var(--black-700);
    padding: 1rem;
    border-radius: var(--border-radius);
    min-width: 80px;
    border: 1px solid rgba(0, 200, 83, 0.2);
}

.time-unit .number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
}

.time-unit .label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
    color: var(--gray-500);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    text-align: center;
}

.stat-item {
    background: var(--black-700);
    padding: 1.5rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 200, 83, 0.15);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
    color: var(--gray-400);
}

/* Seção de Compra */
.purchase-section {
    background: transparent;
    padding: 2rem 0;
}

/* Checkout */
.checkout-section {
    background: transparent;
    padding: 1rem 0 2rem;
}

.checkout-card {
    background: linear-gradient(135deg, var(--black-700) 0%, var(--black-600) 100%);
    border: 2px solid transparent;
    border-radius: 24px;
    padding: 2rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 200, 83, 0.2);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.checkout-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at bottom left, rgba(0, 200, 83, 0.08), transparent 70%);
    pointer-events: none;
}

.checkout-head { 
    display: flex; 
    align-items: center; 
    gap: 0.5rem;
    flex-wrap: wrap;
}
.checkout-info h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin: 0.25rem 0 0.75rem;
    font-weight: 700;
}

.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: var(--black-500);
    border: 2px solid rgba(0, 200, 83, 0.2);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.summary-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 83, 0.1), transparent);
    transition: left 0.6s ease;
}

.summary-pill:hover::before {
    left: 100%;
}

.summary-pill.total {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--black-900);
    border: none;
    box-shadow: 0 0 30px rgba(0, 200, 83, 0.4), 0 10px 30px rgba(0, 200, 83, 0.2);
    animation: totalGlow 3s ease-in-out infinite;
}

@keyframes totalGlow {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(0, 200, 83, 0.4), 0 10px 30px rgba(0, 200, 83, 0.2);
    }
    50% { 
        box-shadow: 0 0 40px rgba(0, 200, 83, 0.6), 0 10px 40px rgba(0, 200, 83, 0.3);
    }
}

.summary-label { 
    color: var(--gray-500);
    font-size: 0.9rem;
    white-space: nowrap;
}
.summary-value { 
    font-weight: 800; 
    color: var(--white);
    font-size: 1.2rem;
    white-space: nowrap;
}
.summary-pill.total .summary-label { 
    color: rgba(0,0,0,0.7);
    font-weight: 600;
}
.summary-pill.total .summary-value { 
    color: var(--black-900);
}

.checkout-hint { 
    color: var(--gray-500); 
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkout-actions { display: flex; gap: 0.5rem; }

.btn-finalize {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--black-900);
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 40px rgba(0, 200, 83, 0.4), 0 0 0 0 rgba(0, 200, 83, 0.5);
}

.btn-finalize::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-finalize:not([disabled]):hover::before {
    width: 300px;
    height: 300px;
}

.btn-finalize[disabled] { 
    opacity: 0.4; 
    cursor: not-allowed;
    filter: grayscale(1);
}

.btn-finalize:not([disabled]):hover { 
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 200, 83, 0.6), 0 0 80px rgba(0, 200, 83, 0.4), 0 0 0 8px rgba(0, 200, 83, 0.2);
}

.btn-finalize:not([disabled]):active { 
    transform: translateY(-2px) scale(1.02);
}

.badge {
    background: var(--gradient-primary);
    color: var(--black-900);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.hidden { display: none; }

@media (max-width: 480px) {
    .badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 768px) {
    .checkout-card { 
        grid-template-columns: 1fr; 
        padding: 1.5rem 1.25rem;
        gap: 1.5rem;
    }
    
    .checkout-info h3 {
        font-size: 1rem;
    }
    
    .checkout-summary {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    
    .summary-pill {
        padding: 1rem 1.25rem;
    }
    
    .summary-label {
        font-size: 0.85rem;
    }
    
    .summary-value {
        font-size: 1.1rem;
    }
    
    .checkout-actions { 
        justify-content: stretch; 
    }
    
    .btn-finalize { 
        width: 100%;
        padding: 1.1rem 2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .checkout-card { 
        padding: 1.25rem 1rem;
        gap: 1.25rem;
        border-radius: 18px;
    }
    
    .checkout-info h3 {
        font-size: 0.95rem;
    }
    
    .summary-pill {
        padding: 0.9rem 1.1rem;
        border-radius: 14px;
    }
    
    .summary-label {
        font-size: 0.8rem;
    }
    
    .summary-value {
        font-size: 1rem;
        font-weight: 700;
    }
    
    .btn-finalize { 
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 14px;
    }
    
    .checkout-hint {
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .checkout-card { 
        padding: 1rem 0.85rem;
        gap: 1rem;
    }
    
    .checkout-info h3 {
        font-size: 0.9rem;
    }
    
    .summary-pill {
        padding: 0.85rem 1rem;
        border-radius: 12px;
    }
    
    .summary-label {
        font-size: 0.75rem;
    }
    
    .summary-value {
        font-size: 0.95rem;
    }
    
    .btn-finalize { 
        padding: 0.95rem 1.25rem;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }
}

/* Barra de progresso de vendas */
.progress-wrapper {
    background: linear-gradient(135deg, var(--black-700), var(--black-600));
    border: 2px solid rgba(0, 200, 83, 0.3);
    border-radius: 20px;
    padding: 1.5rem 2rem 1.75rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 200, 83, 0.1);
    max-width: 900px;
    margin: 0 auto 2rem;
    position: relative;
    overflow: hidden;
}

.progress-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 200, 83, 0.08), transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.progress-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress-title {
    font-weight: 700;
    color: var(--white);
}

.progress-percent {
    font-weight: 700;
    color: var(--primary-color);
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 16px;
    background: var(--black-500);
    border-radius: 999px;
    overflow: visible;
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.4);
    border: 1px solid rgba(0, 200, 83, 0.15);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--primary-color));
    background-size: 200% 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),
        0 0 20px rgba(0, 200, 83, 0.6),
        0 0 40px rgba(0, 200, 83, 0.3),
        0 4px 15px rgba(0, 200, 83, 0.4);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: progressGlow 2s ease-in-out infinite, progressMove 3s linear infinite;
    overflow: hidden;
}

@keyframes progressGlow {
    0%, 100% { 
        filter: brightness(1);
        box-shadow: 
            inset 0 -2px 4px rgba(0,0,0,0.2),
            inset 0 2px 4px rgba(255,255,255,0.3),
            0 0 20px rgba(0, 200, 83, 0.6),
            0 0 40px rgba(0, 200, 83, 0.3),
            0 4px 15px rgba(0, 200, 83, 0.4);
    }
    50% { 
        filter: brightness(1.2);
        box-shadow: 
            inset 0 -2px 4px rgba(0,0,0,0.2),
            inset 0 2px 4px rgba(255,255,255,0.3),
            0 0 30px rgba(0, 200, 83, 0.8),
            0 0 60px rgba(0, 200, 83, 0.5),
            0 4px 20px rgba(0, 200, 83, 0.6);
    }
}

@keyframes progressMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.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-500);
}

.purchase-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.purchase-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--white), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.purchase-header p {
    font-size: 1.15rem;
    color: var(--gray-400);
    font-weight: 500;
}

.quota-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.quota-card {
    background: linear-gradient(135deg, #3a3a3a 0%, #2d2d2d 100%);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
}

.quota-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light), var(--accent-color), var(--primary-color));
    background-size: 300% 300%;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gradientRotate 3s ease infinite;
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
}

@keyframes gradientRotate {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.quota-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(0, 200, 83, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.quota-card:hover::before,
.quota-card:hover::after {
    opacity: 1;
}

.quota-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 200, 83, 0.3), 0 0 80px rgba(0, 200, 83, 0.2);
}

.quota-card.selected {
    background: linear-gradient(135deg, #2d2d2d 0%, #1f1f1f 100%);
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 25px 70px rgba(0, 200, 83, 0.5), 0 0 100px rgba(0, 200, 83, 0.4), inset 0 0 0 2px rgba(0, 200, 83, 0.4);
}

.quota-card.selected::before {
    opacity: 0.8;
}

.quota-card.selected::after {
    opacity: 0;
}

.quota-card.popular {
    position: relative;
    transform: translateY(-5px) scale(1.02);
}

.quota-card.popular::before {
    opacity: 0.5;
}

.quota-card.best-value {
    position: relative;
    transform: translateY(-5px) scale(1.02);
}

.quota-card.best-value::before {
    opacity: 0.5;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color), var(--accent-color));
    background-size: 300% 300%;
}

.quota-card.premium {
    position: relative;
    transform: translateY(-5px);
}

.popular-badge,
.best-value-badge,
.premium-badge {
    position: absolute;
    top: 15px;
    right: -5px;
    padding: 0.6rem 1.2rem;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%);
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.popular-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--black-900);
    animation: badgePulse 2s ease-in-out infinite;
}

.best-value-badge {
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    color: var(--black-900);
    animation: badgePulse 2s ease-in-out infinite;
    animation-delay: 0.5s;
}

.premium-badge {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: var(--white);
    animation: badgePulse 2s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes badgePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: -8px 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px currentColor;
    }
}

.quota-header {
    margin-bottom: 0.75rem;
}

.quota-count {
    display: block;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 200, 83, 0.3);
}

.quota-card.selected .quota-count {
    color: var(--primary-light);
    text-shadow: 0 0 30px rgba(0, 230, 118, 0.8), 0 0 60px rgba(0, 230, 118, 0.5), 0 2px 10px rgba(0, 0, 0, 0.8);
    font-weight: 900;
}

.quota-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    color: var(--gray-500);
}

.quota-card.selected .quota-label {
    color: var(--white);
    text-shadow: 0 0 15px rgba(0, 200, 83, 0.4), 0 2px 5px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.quota-price {
    margin-bottom: 1rem;
}

.price-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.15rem;
}

.quota-card.selected .price-value {
    color: var(--white);
    text-shadow: 0 0 20px rgba(0, 200, 83, 0.5), 0 2px 8px rgba(0, 0, 0, 0.7);
    font-weight: 800;
}

.price-per-quota {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

.quota-card.selected .price-per-quota {
    color: var(--gray-300);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    font-weight: 600;
}

.quota-chance { display: none !important; }

.quota-card.selected .quota-chance {
    background: rgba(0, 200, 83, 0.2);
    color: var(--white);
}

/* Formulário de Compra */
.purchase-form {
    background: var(--black-700);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin-top: 2rem;
    animation: slideIn 0.5s ease;
    border: 1px solid rgba(0, 200, 83, 0.15);
}

@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(--white);
    font-weight: 600;
}

.selected-info {
    text-align: center;
    background: var(--black-600);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 200, 83, 0.1);
}

.selected-info p {
    font-weight: 600;
    color: var(--gray-300);
    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-300);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input {
    padding: 1rem;
    border: 2px solid var(--black-400);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: all 0.3s ease;
    background: var(--black-600);
    color: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.15);
}

.btn-purchase {
    background: var(--gradient-primary);
    color: var(--black-900);
    border: none;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    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-glow);
}

.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(--white);
}

.rules-content {
    display: grid;
    gap: 1rem;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg, var(--black-700), var(--black-600));
    border: 2px solid rgba(0, 200, 83, 0.2);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.rule-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-primary);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.rule-item:hover::before {
    height: 100%;
}

.rule-item:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
    box-shadow: 0 12px 40px rgba(0, 200, 83, 0.3), -5px 0 30px rgba(0, 200, 83, 0.2);
}

.rule-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.rule-item p {
    font-weight: 500;
    color: var(--gray-300);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--black-800);
    color: var(--gray-400);
    padding: 1.5rem 0 1rem;
    border-top: 1px solid rgba(0, 200, 83, 0.15);
    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-500);
}

.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(--black-900);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.social-links a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 200, 83, 0.1);
    color: var(--gray-600);
}

/* 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: 1.25rem;
    }
    
    .quota-card {
        padding: 1.75rem 1.5rem;
    }
    
    .progress-wrapper {
        padding: 1.25rem 1.5rem 1.5rem;
    }
    
    .query-card {
        padding: 40px 30px;
    }
    
    .query-icon {
        width: 80px;
        height: 80px;
    }
    
    .query-icon i {
        font-size: 35px;
    }
    
    .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(--black-800);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ========================================
   Sección de Consulta de Números
   ======================================== */

.query-section {
    padding: 35px 0;
    background: linear-gradient(180deg, rgba(0, 200, 83, 0.05) 0%, transparent 100%);
}

.query-card {
    background: linear-gradient(135deg, var(--black-700), var(--black-600));
    border: 2px solid rgba(0, 200, 83, 0.3);
    border-radius: 28px;
    padding: 60px 50px;
    text-align: center;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 200, 83, 0.2);
    max-width: 700px;
    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(0, 200, 83, 0.12) 0%, transparent 60%);
    animation: pulse 5s ease-in-out infinite;
}

.query-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 200, 83, 0.4), 0 0 80px rgba(0, 200, 83, 0.3);
    animation: iconFloat 3s ease-in-out infinite;
    transform: rotate(-5deg);
}

@keyframes iconFloat {
    0%, 100% { 
        transform: rotate(-5deg) translateY(0);
    }
    50% { 
        transform: rotate(-5deg) translateY(-15px);
        box-shadow: 0 25px 70px rgba(0, 200, 83, 0.5), 0 0 100px rgba(0, 200, 83, 0.4);
    }
}

.query-icon i {
    font-size: 45px;
    color: var(--black-900);
}

.query-card h3 {
    font-size: 28px;
    color: var(--white);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.query-card p {
    color: var(--gray-400);
    margin-bottom: 30px;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.btn-query {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--black-900);
    border: none;
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 800;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    box-shadow: 0 15px 50px rgba(0, 200, 83, 0.4), 0 0 60px rgba(0, 200, 83, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
}

.btn-query::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-query:hover::before {
    width: 400px;
    height: 400px;
}

.btn-query:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 25px 70px rgba(0, 200, 83, 0.6), 0 0 100px rgba(0, 200, 83, 0.4);
}

.btn-query:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-query i {
    margin-right: 12px;
    font-size: 20px;
}

/* ========================================
   Modal de Consulta
   ======================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, var(--black-700), var(--black-600));
    border: 2px solid rgba(0, 200, 83, 0.3);
    border-radius: 28px;
    padding: 50px 45px;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 100px rgba(0, 200, 83, 0.2);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 200, 83, 0.05), transparent 70%);
    animation: modalGlow 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes modalGlow {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(10%, 10%) scale(1.1); opacity: 0.8; }
}

@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: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: var(--black-500);
    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(--white);
    margin-bottom: 5px;
}

.modal-header p {
    color: var(--gray-400);
    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-300);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid transparent;
    border-radius: 14px;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--black-500);
    color: var(--white);
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.form-group input::placeholder {
    color: var(--gray-600);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--black-600);
    box-shadow: 0 0 0 4px rgba(0, 200, 83, 0.2), 0 0 20px rgba(0, 200, 83, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.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: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--black-900);
    border: none;
    padding: 16px 20px;
    font-size: 17px;
    font-weight: 800;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 40px rgba(0, 200, 83, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-search::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-search:hover::before {
    width: 400px;
    height: 400px;
}

.btn-search:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 200, 83, 0.6), 0 0 80px rgba(0, 200, 83, 0.4);
}

.btn-search:active {
    transform: translateY(-1px);
}

.btn-search:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* Loader */
.loader {
    text-align: center;
    padding: 30px;
}

.loader.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--black-500);
    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-400);
    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(--black-500);
}

.results-header h4 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 5px;
}

.results-header p {
    color: var(--gray-300);
    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, var(--primary-color), var(--primary-light));
    color: var(--black-900);
    padding: 18px 12px;
    border-radius: 14px;
    text-align: center;
    font-size: 19px;
    font-weight: 900;
    box-shadow: 0 8px 30px rgba(0, 200, 83, 0.4), 0 0 40px rgba(0, 200, 83, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}

.ticket-number-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 200, 83, 0.6), 0 0 60px rgba(0, 200, 83, 0.4);
}

.ticket-number-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;
}

.ticket-number-card:hover::before {
    left: 100%;
}

.results-summary {
    text-align: center;
    padding-top: 15px;
    border-top: 2px solid var(--black-500);
}

.results-summary p {
    font-size: 16px;
    color: var(--gray-300);
}

.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-600);
    margin-bottom: 15px;
}

.no-results p {
    color: var(--gray-400);
    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: linear-gradient(135deg, var(--black-700), var(--black-600));
    border: 2px solid rgba(0, 200, 83, 0.4);
    border-radius: 18px;
    padding: 18px 22px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 200, 83, 0.2);
    display: flex;
    align-items: center;
    gap: 18px;
    animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: auto;
    border-left: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.sale-notification::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 83, 0.1));
    pointer-events: none;
}

@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: var(--black-900);
    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(--white);
    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-400);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-count {
    background: var(--gradient-primary);
    color: var(--black-900);
    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-600);
}

/* 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;
    }
}
