/* ================================================
   PÁGINA DE OBRIGADO - MODERNA E ELEGANTE
   ================================================ */

:root {
    --primary-color: #A020F0;
    --primary-gradient: linear-gradient(135deg, #A020F0 0%, #8B00FF 100%);
    --success-color: #10B981;
    --dark-bg: #0F0F0F;
    --card-bg: #1A1A1A;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --border-color: rgba(255, 255, 255, 0.1);
}

.ead-thank-you-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0F0F0F 0%, #1A0033 50%, #0F0F0F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

/* Confetti Animation */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    opacity: 0;
    animation: confettiFall 4s ease-in-out forwards;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg);
    }
}

/* Main Content Container */
.thank-you-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    border-radius: 24px;
    padding: 60px 40px;
    box-shadow: 0 20px 60px rgba(160, 32, 240, 0.3);
    border: 1px solid var(--border-color);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Icon Animation */
.success-animation {
    text-align: center;
    margin-bottom: 30px;
}

.success-icon-circle {
    display: inline-block;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
    animation: scaleIn 0.5s ease-out 0.2s both;
}

.checkmark {
    width: 60px;
    height: 60px;
}

.checkmark-circle {
    stroke: #fff;
    stroke-width: 3;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

.checkmark-check {
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: strokeCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes strokeCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes strokeCheck {
    to {
        stroke-dashoffset: 0;
    }
}

/* Thank You Message */
.thank-you-message {
    text-align: center;
    margin-bottom: 40px;
}

.thank-you-message h1 {
    font-size: 48px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 15px 0;
    animation: fadeInDown 0.6s ease-out 0.3s both;
}

.thank-you-message h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    animation: fadeInDown 0.6s ease-out 0.4s both;
}

.thank-you-message .subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
    animation: fadeInDown 0.6s ease-out 0.5s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Course Info Card */
.course-info-card {
    background: linear-gradient(135deg, rgba(160, 32, 240, 0.1) 0%, rgba(139, 0, 255, 0.05) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    animation: scaleIn 0.5s ease-out 0.6s both;
}

.course-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: 16px;
    margin-bottom: 15px;
    box-shadow: 0 8px 24px rgba(160, 32, 240, 0.4);
}

.course-badge svg {
    color: #fff;
}

.course-info-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px 0;
}

.course-info-card p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Order Details */
.order-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    animation: fadeIn 0.6s ease-out 0.7s both;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.detail-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 600;
}

.detail-value {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Countdown */
.redirect-countdown {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeIn 0.6s ease-out 0.8s both;
}

.redirect-countdown p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 15px 0;
}

.redirect-countdown #countdown {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.countdown-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.countdown-progress {
    height: 100%;
    background: var(--primary-gradient);
    width: 100%;
    animation: countdownProgress 5s linear forwards;
}

@keyframes countdownProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Action Buttons */
.thank-you-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    margin-bottom: 30px;
    animation: fadeIn 0.6s ease-out 0.9s both;
    flex-wrap: wrap;
}

.thank-you-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 220px;
    height: 56px;
    box-sizing: border-box;
    flex: 0 1 auto;
}

.btn-primary {
    background: linear-gradient(135deg, #A020F0 0%, #8B00FF 100%);
    color: #FFFFFF !important;
    box-shadow: 0 4px 20px rgba(160, 32, 240, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(160, 32, 240, 0.6);
    color: #FFFFFF !important;
}

.btn-primary svg {
    fill: #FFFFFF;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    color: var(--text-primary) !important;
}

.btn-secondary svg {
    fill: var(--text-primary);
}

/* Footer Info */
.thank-you-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    animation: fadeIn 0.6s ease-out 1s both;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-item svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.footer-item p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .thank-you-content {
        padding: 40px 24px;
    }
    
    .thank-you-message h1 {
        font-size: 36px;
    }
    
    .thank-you-message h2 {
        font-size: 22px;
    }
    
    .course-info-card {
        padding: 20px;
    }
    
    .thank-you-actions {
        flex-direction: column;
    }
    
    .thank-you-actions a {
        width: 100%;
        justify-content: center;
    }
    
    .thank-you-footer {
        flex-direction: column;
        gap: 15px;
    }
}
