/* Reset e base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    background-color: #f8fafc;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Loading screen */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #5b21b6 100%);
    color: white;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

/* Utility classes */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.font-bold { font-weight: bold; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.overflow-hidden { overflow: hidden; }
.transform { transform: translateZ(0); }
.transition-all { transition: all 0.3s ease; }
.duration-200 { transition-duration: 0.2s; }
.duration-300 { transition-duration: 0.3s; }
.duration-700 { transition-duration: 0.7s; }
.ease-in-out { transition-timing-function: ease-in-out; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }

/* Background gradients */
.bg-gradient-purple {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #5b21b6 100%);
}

.bg-gradient-purple-btn {
    background: linear-gradient(90deg, #7c3aed 0%, #6d28d9 100%);
}

.bg-gradient-purple-btn:hover {
    background: linear-gradient(90deg, #6d28d9 0%, #5b21b6 100%);
}

/* Main container */
.main-container {
    min-height: 100vh;
    position: relative;
}

/* Background decorative elements */
.bg-decorations {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.bg-circle {
    position: absolute;
    border: 4px solid white;
    border-radius: 50%;
}

.bg-circle-1 { top: 5rem; left: 2.5rem; width: 8rem; height: 8rem; }
.bg-circle-2 { top: 10rem; right: 5rem; width: 6rem; height: 6rem; }
.bg-circle-3 { bottom: 8rem; left: 5rem; width: 10rem; height: 10rem; }
.bg-circle-4 { bottom: 5rem; right: 8rem; width: 7rem; height: 7rem; }
.bg-circle-5 { top: 50%; left: 25%; width: 5rem; height: 5rem; }
    padding: 2rem 1rem;

/* Content container */
.content-container-game {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem 1rem;
}

.content-container-final {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem 1rem;
}

.content-box {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    max-width: 28rem;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.content-box-large {
    max-width: 48rem;
}

/* Typography */
.title-large {
    font-size: 1.875rem;
    font-weight: bold;
    color: #7c3aed;
    margin-bottom: 1rem;
}

.title-medium {
    font-size: 1.5rem;
    font-weight: bold;
    color: #7c3aed;
    margin-bottom: 1.5rem;
}

.title-small {
    font-size: 1.25rem;
    font-weight: bold;
    color: #7c3aed;
    margin-bottom: 1rem;
}

.text-gray {
    color: #4b5563;
    line-height: 1.6;
}

.text-purple {
    color: #7c3aed;
}

.text-green {
    color: #10b981;
}

.text-red {
    color: #ef4444;
}

.text-yellow {
    color: #f59e0b;
}

/* Orange underline */
.orange-underline {
    width: 4rem;
    height: 0.25rem;
    background-color: #fb923c;
    margin: 0 auto 1.5rem;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.btn:hover {
    transform: scale(1.05);
}

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

@media (max-width: 768px) {
    .btn:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
}
.btn-primary {
    background: linear-gradient(90deg, #7c3aed 0%, #6d28d9 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #6d28d9 0%, #5b21b6 100%);
}

.btn-disabled {
    background-color: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-disabled:hover {
    transform: none;
    background-color: #d1d5db;
}

/* Check icon */
.check-icon {
    width: 4rem;
    height: 4rem;
    background-color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: bounce 1s infinite;
}

.check-icon::after {
    content: '✓';
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

/* Progress bar */
.progress-container {
    width: 100%;
    background-color: #e5e7eb;
    border-radius: 9999px;
    height: 0.75rem;
    margin-bottom: 1.25rem;
}

.progress-bar {
    background-color: #7c3aed;
    height: 0.75rem;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* Numbers grid */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.number-btn {
    height: 3.5rem;
    border-radius: 0.5rem;
    border: 1px solid #c4b5fd;
    font-weight: bold;
    font-size: 1.125rem;
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: white;
    color: #8b5cf6;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    z-index: 10;
    pointer-events: auto;
}

.number-btn:hover {
    border-color: #8b5cf6;
    background-color: #faf5ff;
}

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

.number-btn.selected {
    background-color: #7c3aed;
    color: white;
    border-color: #7c3aed;
    transform: scale(1.02);
}

.number-btn.ai-suggested {
    background-color: #ede9fe;
    color: #7c3aed;
    border-color: #a78bfa;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.number-btn.ai-suggested:hover {
    background-color: #ddd6fe;
    border-color: #8b5cf6;
}

.number-btn.ai-not-suggested {
    background-color: #f9fafb;
    color: #6b7280;
    border-color: #e5e7eb;
}

.number-btn.ai-not-suggested:hover {
    background-color: #f3f4f6;
}

.number-btn.hit {
    background-color: #10b981;
    color: white;
}

.number-btn.miss {
    background-color: #ef4444;
    color: white;
}

.number-btn.correct-not-selected {
    background-color: #fef3c7;
    color: #374151;
}

.number-btn.not-selected {
    background-color: #d1d5db;
    color: #6b7280;
}

/* Top banner */
.top-banner {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    max-width: 28rem;
    width: calc(100% - 2rem);
    background-color: #6d28d9;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
    text-align: center;
    pointer-events: none;
}

@media (max-width: 768px) {
    .top-banner {
        top: 0.5rem;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        width: calc(100% - 1rem);
    }
}

/* Result boxes */
.result-box {
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.result-success {
    background-color: #ecfdf5;
    border: 1px solid #d1fae5;
}

.result-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
}

.result-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

.result-icon.success {
    background-color: #10b981;
}

.result-icon.error {
    background-color: #ef4444;
}

.result-icon::after {
    color: white;
    font-weight: bold;
}

.result-icon.success::after {
    content: '✓';
}

.result-icon.error::after {
    content: '✗';
}

/* Phone carousel */
.phone-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 0.5rem;
    background: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.carousel-container {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    width: 200%;
}

.carousel-slide {
    width: 50%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
    background-color: #f8fafc;
}

/* Carousel indicators */
.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-dot.active {
    background-color: #7c3aed;
    transform: scale(1.2);
}

/* Testimonial carousel */
.testimonial-carousel {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: opacity 0.3s ease;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.75rem;
}

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    background-color: #d1d5db;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: bold;
    font-size: 0.875rem;
    color: #1f2937;
}

.testimonial-location {
    color: #6b7280;
    font-size: 0.875rem;
}

.testimonial-text {
    color: #374151;
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.6;
}

/* Guarantee section */
.guarantee-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.guarantee-image {
    width: 4rem;        /* Tamanho adequado para o container */
    height: 4rem;       /* Mantém proporção quadrada */
    margin: 0 auto 1rem;
    display: block;
    max-width: 100%;    /* Garante que não saia do container */
    object-fit: contain; /* Mantém proporção da imagem */
}

.guarantee-title {
    font-weight: bold;
    font-size: 1rem;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.guarantee-text {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Warning box */
.warning-box {
    background-color: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
}

.warning-content {
    display: flex;
    align-items: flex-start;
}

.warning-icon {
    color: #d97706;
    font-size: 1rem;
    margin-right: 0.5rem;
}

.warning-text {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.6;
}

/* How it works section */
.how-it-works {
    background-color: #f9fafb;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: left;
    margin-bottom: 2rem;
}

.how-it-works h3 {
    color: #7c3aed;
    font-weight: bold;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.how-it-works ul {
    list-style: none;
    padding: 0;
}

.how-it-works li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    color: #374151;
    font-size: 0.875rem;
}

.how-it-works li::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    background-color: #9ca3af;
    border-radius: 50%;
    margin-top: 0.5rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Earnings display */
.earnings-display {
    background-color: #faf5ff;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.earnings-label {
    color: #374151;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.earnings-amount {
    font-size: 2.25rem;
    font-weight: bold;
    color: #7c3aed;
    margin-bottom: 0.5rem;
    text-align: center;
}

.earnings-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
    text-align: center;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-30px);
    }
    70% {
        transform: translateY(-15px);
    }
    90% {
        transform: translateY(-4px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes coinFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Falling coins */
.falling-coins-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
}

.coin {
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    border-radius: 50%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid #fcd34d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    color: #92400e;
}

.coin::after {
    content: '$';
}

/* Confetti */
.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
}

.confetti-piece {
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    transform: rotate(45deg);
    animation: pulse 1s infinite;
}

.confetti-yellow { background-color: #fbbf24; }
.confetti-purple { background-color: #a855f7; }
.confetti-green { background-color: #10b981; }
.confetti-blue { background-color: #3b82f6; }
.confetti-red { background-color: #ef4444; }
.confetti-pink { background-color: #ec4899; }

/* Responsive */
@media (max-width: 768px) {
    .content-container-game {
        padding: 1rem 1rem;
    }
    
    .content-container-final {
        padding: 1rem 1rem;
    }
    
    .content-container {
        padding: 1.5rem 1rem;
    }
    
    .content-box {
        padding: 1.5rem;
        margin-top: 2.5rem;
    }
    
    .content-box-large {
        margin-top: 2.5rem;
    }
    
    .title-large {
        font-size: 1.5rem;
    }
    
    .numbers-grid {
        gap: 0.375rem;
        max-width: 95%;
    }
    
    .number-btn {
        height: 3rem;
        font-size: 1rem;
    }
    
    .phone-carousel {
        height: 500px;
        margin-bottom: 1rem;
    }
    
    .carousel-slide img {
        object-fit: contain;
        object-position: center;
        padding: 0.5rem;
    }
    
    .testimonial-carousel {
        min-height: 160px;
    }
    
    .carousel-indicators {
        bottom: 0.5rem;
    }
    
    .carousel-dot {
        width: 0.5rem;
        height: 0.5rem;
    }
}