/* ==========================================
   PRICING SECTION - MODERN ANIMATIONS
   ========================================== */

/* === SECTION STYLING === */
.pricing-section {
    background: linear-gradient(180deg, #0f0a1f 0%, #1a1333 50%, #0f0a1f 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Floating orbs background */
.pricing-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: floatOrb 15s ease-in-out infinite;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 50px) scale(1.1); }
}

/* === PRICING GRID === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* === PRICING CARD === */
.pricing-card {
    background: linear-gradient(145deg, rgba(30, 27, 75, 0.9) 0%, rgba(49, 46, 129, 0.7) 100%);
    border-radius: 24px;
    padding: 35px 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(50px);
    animation: cardAppear 0.6s ease forwards;
    backdrop-filter: blur(10px);
}

.pricing-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-card:nth-child(2) { animation-delay: 0.2s; }
.pricing-card:nth-child(3) { animation-delay: 0.3s; }
.pricing-card:nth-child(4) { animation-delay: 0.4s; }
.pricing-card:nth-child(5) { animation-delay: 0.5s; }
.pricing-card:nth-child(6) { animation-delay: 0.6s; }

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

/* Card glow effect */
.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.5));
    -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;
    transition: opacity 0.5s ease;
}

.pricing-card:hover::before {
    opacity: 1;
}

/* Card shine sweep */
.pricing-card::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 60%,
        transparent 100%
    );
    transition: transform 0.8s ease;
    pointer-events: none;
}

.pricing-card:hover::after {
    transform: translate(50%, 50%);
}

.pricing-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow:
        0 25px 50px rgba(139, 92, 246, 0.3),
        0 0 100px rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.5);
}

/* === POPULAR CARD === */
.pricing-card.popular {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.3) 0%, rgba(49, 46, 129, 0.9) 100%);
    border-color: rgba(139, 92, 246, 0.5);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.popular::before {
    opacity: 1;
    background: linear-gradient(135deg, #8b5cf6, #6366f1, #8b5cf6);
    background-size: 200% 200%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.pricing-card.popular:hover {
    transform: scale(1.08) translateY(-10px);
}

/* Popular badge */
.pricing-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    padding: 8px 25px;
    border-radius: 0 0 15px 15px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4); }
    50% { box-shadow: 0 5px 30px rgba(139, 92, 246, 0.7), 0 0 50px rgba(139, 92, 246, 0.3); }
}

/* === PRICING HEADER === */
.pricing-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

/* Pricing icon */
.pricing-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #a78bfa;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pricing-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 20px;
}

.pricing-card:hover .pricing-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.pricing-card:hover .pricing-icon::before {
    opacity: 1;
}

.pricing-icon i {
    position: relative;
    z-index: 1;
    transition: all 0.5s ease;
}

.pricing-card:hover .pricing-icon i {
    color: white;
    transform: scale(1.1);
}

/* Popular card icon */
.pricing-card.popular .pricing-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(245, 158, 11, 0.3));
    animation: iconFloat 3s ease-in-out infinite;
}

.pricing-card.popular .pricing-icon i {
    color: #fbbf24;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Pricing name */
.pricing-name {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.pricing-card.popular .pricing-name {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* === PRICING PRICE === */
.pricing-price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    margin-bottom: 5px;
}

.pricing-currency {
    font-size: 24px;
    font-weight: 600;
    color: #a78bfa;
    margin-top: 8px;
}

.pricing-amount {
    font-size: 56px;
    font-weight: 800;
    color: white;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.pricing-card:hover .pricing-amount {
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(167, 139, 250, 0.5);
}

.pricing-period {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 5px;
}

.pricing-price-eur {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* === PRICING FEATURES === */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
    position: relative;
    z-index: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    opacity: 0;
    transform: translateX(-20px);
    animation: featureSlide 0.4s ease forwards;
}

.pricing-features li:nth-child(1) { animation-delay: 0.4s; }
.pricing-features li:nth-child(2) { animation-delay: 0.5s; }
.pricing-features li:nth-child(3) { animation-delay: 0.6s; }
.pricing-features li:nth-child(4) { animation-delay: 0.7s; }
.pricing-features li:nth-child(5) { animation-delay: 0.8s; }
.pricing-features li:nth-child(6) { animation-delay: 0.9s; }
.pricing-features li:nth-child(7) { animation-delay: 1.0s; }
.pricing-features li:nth-child(8) { animation-delay: 1.1s; }

@keyframes featureSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #10b981;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.pricing-card:hover .pricing-features li i {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    transform: scale(1.1);
}

/* Hover effect on features */
.pricing-features li {
    transition: all 0.3s ease;
}

.pricing-features li:hover {
    padding-right: 10px;
    color: white;
}

/* === PRICING CTA === */
.pricing-cta {
    position: relative;
    z-index: 1;
}

.pricing-cta .btn {
    width: 100%;
    padding: 16px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: white;
}

.pricing-cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.pricing-cta .btn:hover::before {
    left: 100%;
}

.pricing-cta .btn:hover {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.pricing-cta .btn i {
    transition: transform 0.3s ease;
}

.pricing-cta .btn:hover i {
    transform: translateX(-5px);
}

/* Popular card button */
.pricing-card.popular .pricing-cta .btn {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border: none;
    animation: buttonGlow 2s ease-in-out infinite;
}

@keyframes buttonGlow {
    0%, 100% { box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4); }
    50% { box-shadow: 0 5px 35px rgba(139, 92, 246, 0.7); }
}

.pricing-card.popular .pricing-cta .btn:hover {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    transform: translateY(-5px) scale(1.02);
}

/* === SECTION HEADER === */
.pricing-section .section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.pricing-section .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
    padding: 10px 20px;
    border-radius: 30px;
    color: #a78bfa;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.pricing-section .section-title {
    font-size: 42px;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    opacity: 1 !important;
}

.pricing-section .section-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .pricing-section {
        padding: 60px 0;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-section .section-title {
        font-size: 32px;
    }

    .pricing-amount {
        font-size: 48px;
    }
}

/* === REDUCE MOTION === */
@media (prefers-reduced-motion: reduce) {
    .pricing-card,
    .pricing-features li,
    .pricing-badge {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
