* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #000000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: #000000;
    border-bottom: 2px solid #00f2ea;
    padding: 15px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 242, 234, 0.2);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

.prize-display {
    text-align: right;
}

.prize-label {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 600;
}

.prize-amount {
    font-size: 24px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Progress Bar */
.progress-container {
    padding: 20px;
    background: white;
}

.progress-bar {
    height: 8px;
    background: linear-gradient(90deg, #00f2ea 0%, #ff0050 100%);
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 242, 234, 0.5);
}

.progress-text {
    margin-top: 10px;
    font-size: 14px;
    color: #00f2ea;
    font-weight: 600;
    text-align: center;
}

/* Quiz Container */
.quiz-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.question-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.question-number {
    display: inline-block;
    background: linear-gradient(135deg, #00f2ea 0%, #ff0050 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
}

.question-text {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
    line-height: 1.4;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    background: white;
    border: 3px solid #e2e8f0;
    border-radius: 15px;
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

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

.option-btn:hover {
    border-color: #00f2ea;
    background: linear-gradient(135deg, rgba(0, 242, 234, 0.1) 0%, rgba(255, 0, 80, 0.1) 100%);
}

.option-btn.selected {
    background: linear-gradient(135deg, #00f2ea 0%, #ff0050 100%);
    border-color: #00f2ea;
    color: white;
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 242, 234, 0.5);
}

/* Prize Animation */
.prize-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #2d3748;
    padding: 30px 40px;
    border-radius: 20px;
    font-size: 32px;
    font-weight: 800;
    z-index: 1000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupAnimation 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes popupAnimation {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-10deg);
        opacity: 0;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(5deg);
        opacity: 1;
    }

    70% {
        transform: translate(-50%, -50%) scale(0.9) rotate(-2deg);
    }

    100% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 0;
    }
}

/* Final Screen */
.final-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    flex: 1;
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.final-screen.active {
    display: flex;
}

.celebration-icon {
    font-size: 100px;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.final-title {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #00f2ea 0%, #ff0050 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.final-subtitle {
    font-size: 18px;
    color: #718096;
    margin-bottom: 30px;
    font-weight: 600;
}

.final-prize {
    font-size: 64px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.final-message {
    font-size: 20px;
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 40px;
}

.restart-btn {
    background: linear-gradient(135deg, #00f2ea 0%, #ff0050 100%);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 10px 30px rgba(0, 242, 234, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Confetti Canvas */
#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.loading-text {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 242, 234, 0.2);
    border-top: 4px solid #00f2ea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* PIX Withdrawal Screen */
.pix-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
    flex: 1;
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.pix-screen.active {
    display: flex;
}

.pix-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.pix-title {
    font-size: 24px;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 30px;
    line-height: 1.3;
}

.amount-selection {
    width: 100%;
    max-width: 400px;
    margin-bottom: 30px;
}

.amount-label {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.amount-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.amount-btn {
    background: white;
    border: 3px solid #e2e8f0;
    border-radius: 15px;
    padding: 20px;
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', sans-serif;
}

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

.amount-btn:hover {
    border-color: #00f2ea;
    background: linear-gradient(135deg, rgba(0, 242, 234, 0.1) 0%, rgba(255, 0, 80, 0.1) 100%);
}

.amount-btn.selected {
    background: linear-gradient(135deg, #00f2ea 0%, #ff0050 100%);
    border-color: #00f2ea;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 242, 234, 0.5);
}

.amount-btn-total {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-color: #ffd700;
    color: #2d3748;
}

.amount-btn-total:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    border-color: #ffd700;
}

.amount-btn-total.selected {
    background: linear-gradient(135deg, #00f2ea 0%, #ff0050 100%);
    border-color: #00f2ea;
    color: white;
}

.pix-form {
    width: 100%;
    max-width: 400px;
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: #2d3748;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #00f2ea;
    box-shadow: 0 0 0 3px rgba(0, 242, 234, 0.1);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #00f2ea 0%, #ff0050 100%);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 10px 30px rgba(0, 242, 234, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 10px;
}

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

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* IOF Payment Screen */
.iof-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
    flex: 1;
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.iof-screen.active {
    display: flex;
}

.iof-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.iof-title {
    font-size: 24px;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.3;
}

.iof-description {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: 30px;
    text-align: left;
}

.value-breakdown {
    width: 100%;
    max-width: 400px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.value-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.value-row:last-child {
    margin-bottom: 0;
}

.value-label {
    font-size: 15px;
    color: #4a5568;
    font-weight: 600;
}

.value-amount {
    font-size: 16px;
    color: #2d3748;
    font-weight: 700;
}

.value-divider {
    height: 2px;
    background: linear-gradient(90deg, #00f2ea 0%, #ff0050 100%);
    margin: 15px 0;
    border-radius: 2px;
}

.value-total .value-label {
    font-size: 16px;
    color: #2d3748;
}

.value-total .value-amount {
    font-size: 18px;
}

.value-green {
    color: #10b981 !important;
}

.pix-payment-btn {
    width: 100%;
    max-width: 400px;
    background: linear-gradient(135deg, #00f2ea 0%, #00c9ba 100%);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 18px 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 10px 30px rgba(0, 242, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

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

.pix-payment-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pix-btn-logo {
    width: 30px;
    height: 30px;
}

.pix-payment-section {
    width: 100%;
    max-width: 400px;
    margin-bottom: 30px;
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.qr-code-container {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#qrCodeCanvas {
    max-width: 100%;
    height: auto;
}

.pix-code-container {
    margin-bottom: 20px;
}

.pix-code-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    text-align: left;
}

.pix-code-input-group {
    display: flex;
    gap: 10px;
}

.pix-code-input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    color: #2d3748;
    background: #f7fafc;
}

.copy-pix-btn {
    background: linear-gradient(135deg, #00f2ea 0%, #ff0050 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

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

.payment-sent-btn {
    width: 100%;
    background: #2d3748;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    margin-top: 10px;
    transition: all 0.3s ease;
}

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

.payment-confirmation-msg {
    margin-top: 15px;
    padding: 15px;
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    border-radius: 10px;
    color: #2f855a;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    animation: fadeIn 0.5s ease;
}

.iof-explanation {
    width: 100%;
    max-width: 500px;
    background: #f7fafc;
    border-left: 4px solid #00f2ea;
    border-radius: 10px;
    padding: 20px;
    text-align: left;
}

.explanation-title {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
}

.explanation-text {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .question-text {
        font-size: 20px;
    }

    .option-btn {
        font-size: 15px;
        padding: 16px 18px;
    }

    .final-title {
        font-size: 40px;
    }

    .final-prize {
        font-size: 56px;
    }
}