/* Основные стили баннера */
.tilda-thankyou-banner {
    max-width: 600px;
    margin: 40px auto;
    padding: 50px 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(255, 107, 107, 0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #e9ecef;
    animation: bannerSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* Анимация появления баннера */
@keyframes bannerSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Контент баннера */
.thank-you-content {
    position: relative;
    z-index: 2;
}

/* Анимированная иконка конфетти */
.confetti-icon {
    font-size: 80px;
    margin-bottom: 25px;
    display: inline-block;
    animation: confettiBounce 2s ease-in-out infinite,
               confettiRotate 3s linear infinite;
}

@keyframes confettiBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes confettiRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Заголовок */
.thank-you-title {
    color: #2d3436;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    animation: textSlideIn 0.8s ease 0.2s both;
}

/* Основной текст */
.thank-you-text {
    color: #636e72;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
    animation: textSlideIn 0.8s ease 0.4s both;
}

.thank-you-subtext {
    color: #ff6b6b;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 30px;
    animation: textSlideIn 0.8s ease 0.6s both;
}

/* Анимация появления текста */
@keyframes textSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Кнопка кручения колеса */
.spin-wheel-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white !important;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    margin: 25px 0;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    animation: buttonPulse 2s ease-in-out infinite 1s both;
    position: relative;
    overflow: hidden;
}

.spin-wheel-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.6);
}

.spin-wheel-btn:active {
    transform: translateY(-1px);
}

/* Анимация пульсации кнопки */
@keyframes buttonPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(255, 107, 107, 0.6);
    }
}

/* Детали заказа */
.order-details {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px dashed #e9ecef;
    animation: textSlideIn 0.8s ease 0.8s both;
}

.order-details p {
    color: #636e72;
    font-size: 14px;
    margin: 8px 0;
    line-height: 1.5;
}

/* Декоративные элементы */
.tilda-thankyou-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
    animation: rotateBackground 20s linear infinite;
    z-index: 1;
}

@keyframes rotateBackground {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .tilda-thankyou-banner {
        margin: 20px 15px;
        padding: 40px 20px;
    }
    
    .thank-you-title {
        font-size: 26px;
    }
    
    .thank-you-text {
        font-size: 16px;
    }
    
    .confetti-icon {
        font-size: 60px;
    }
    
    .spin-wheel-btn {
        padding: 16px 35px;
        font-size: 16px;
    }
}

/* Эффект частиц (опционально) */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ff6b6b;
    border-radius: 50%;
    animation: particleFloat 6s ease-in-out infinite;
    z-index: 1;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
}