/* ========================================
   MODERN PRICING SECTION STYLES
   ======================================== */

.modern-plans-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.modern-plans-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.modern-plans-section .section-title .subtitle {
    display: inline-block;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.modern-plans-section .section-title h2 {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

/* ========================================
   PRICING CAROUSEL WRAPPER
   ======================================== */

.pricing-carousel-wrapper {
    position: relative;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 40px 80px;
}

.pricing-carousel {
    overflow: hidden;
    border-radius: 20px;
}

.pricing-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 30px;
}

.pricing-slide {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
}

/* Desktop: Show 3 cards */
@media (min-width: 992px) {
    .pricing-slide {
        flex: 0 0 calc(33.333% - 20px);
        max-width: calc(33.333% - 20px);
    }
}

/* Tablet: Show 2 cards */
@media (min-width: 768px) and (max-width: 991px) {
    .pricing-slide {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

/* Mobile: Show 1 card */
@media (max-width: 767px) {
    .pricing-carousel-wrapper {
        padding: 20px 60px;
    }
    
    .pricing-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ========================================
   MODERN PRICING CARD
   ======================================== */

.modern-pricing-card {
    background: white;
    border-radius: 24px;
    padding: 50px 35px 40px 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.modern-pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(106, 17, 203, 0.2);
}

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

/* Featured Plan */
.modern-pricing-card.featured-plan {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.05);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.modern-pricing-card.featured-plan::before {
    background: linear-gradient(90deg, #ffd89b 0%, #19547b 100%);
    opacity: 1;
    height: 6px;
}

.modern-pricing-card.featured-plan:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 25px 70px rgba(102, 126, 234, 0.4);
}

.modern-pricing-card.featured-plan .plan-name,
.modern-pricing-card.featured-plan .plan-price,
.modern-pricing-card.featured-plan .payment-type {
    color: white;
}

.modern-pricing-card.featured-plan .feature-highlight {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.modern-pricing-card.featured-plan .feature-list li.included {
    color: white;
}

.modern-pricing-card.featured-plan .feature-list li.included i {
    color: #ffd89b;
}

.modern-pricing-card.featured-plan .features-divider {
    background: rgba(255, 255, 255, 0.2);
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd89b 0%, #ff6b6b 100%);
    color: white;
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    z-index: 10;
    white-space: nowrap;
}

.featured-badge i {
    margin-right: 6px;
    font-size: 10px;
}

/* ========================================
   PLAN HEADER
   ======================================== */

.plan-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.modern-pricing-card.featured-plan .plan-header {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 10px;
}

.plan-price .currency {
    font-size: 28px;
    font-weight: 600;
    color: #6a11cb;
    margin-right: 5px;
    margin-top: 10px;
}

.modern-pricing-card.featured-plan .plan-price .currency {
    color: white;
}

.plan-price .amount {
    font-size: 56px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}

.modern-pricing-card.featured-plan .plan-price .amount {
    color: white;
}

.payment-type {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.modern-pricing-card.featured-plan .payment-type {
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   PLAN FEATURES
   ======================================== */

.plan-features {
    flex: 1;
    margin-bottom: 30px;
}

.feature-highlight {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.feature-highlight:hover {
    transform: translateX(5px);
    background: linear-gradient(135deg, #e8eef5 0%, #dce4ef 100%);
}

.feature-highlight i {
    font-size: 20px;
    color: #6a11cb;
    min-width: 24px;
}

.modern-pricing-card.featured-plan .feature-highlight i {
    color: white;
}

.feature-highlight span {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.modern-pricing-card.featured-plan .feature-highlight span {
    color: white;
}

.features-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 25px 0;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
    transition: all 0.3s ease;
}

.feature-list li:hover {
    padding-left: 5px;
}

.feature-list li i {
    font-size: 18px;
    min-width: 20px;
}

.feature-list li.included {
    color: #1a1a1a;
}

.feature-list li.included i {
    color: #10b981;
}

.feature-list li.excluded {
    color: #999;
}

.feature-list li.excluded i {
    color: #e5e7eb;
}

.modern-pricing-card.featured-plan .feature-list li.excluded {
    color: rgba(255, 255, 255, 0.5);
}

.modern-pricing-card.featured-plan .feature-list li.excluded i {
    color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   PLAN FOOTER
   ======================================== */

.plan-footer {
    margin-top: auto;
}

.btn-get-started {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-get-started::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;
}

.btn-get-started:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(106, 17, 203, 0.4);
    color: white;
}

.btn-get-started:hover::before {
    left: 100%;
}

.btn-get-started i {
    transition: transform 0.3s ease;
}

.btn-get-started:hover i {
    transform: translateX(5px);
}

.btn-get-started.btn-featured {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-get-started.btn-featured:hover {
    background: #ffd89b;
    color: #1a1a1a;
    box-shadow: 0 8px 25px rgba(255, 216, 155, 0.5);
}

/* ========================================
   CAROUSEL NAVIGATION
   ======================================== */

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(106, 17, 203, 0.3);
}

.carousel-nav:hover i {
    color: white;
}

.carousel-nav i {
    font-size: 20px;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.carousel-nav.prev-nav {
    left: 10px;
}

.carousel-nav.next-nav {
    right: 10px;
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 767px) {
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-nav i {
        font-size: 16px;
    }
    
    .carousel-nav.prev-nav {
        left: 5px;
    }
    
    .carousel-nav.next-nav {
        right: 5px;
    }
}

/* ========================================
   CAROUSEL INDICATORS
   ======================================== */

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    background: #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator:hover {
    background: #9ca3af;
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    width: 32px;
    border-radius: 6px;
}

/* ========================================
   CUSTOM PLAN CTA
   ======================================== */

.custom-plan-text {
    font-size: 18px;
    color: #4b5563;
    margin: 0;
}

.custom-plan-link {
    color: #6a11cb;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.custom-plan-link:hover {
    color: #2575fc;
    gap: 12px;
}

.custom-plan-link i {
    transition: transform 0.3s ease;
}

.custom-plan-link:hover i {
    transform: translateX(5px);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 991px) {
    .modern-plans-section .section-title h2 {
        font-size: 36px;
    }
    
    .modern-pricing-card.featured-plan {
        transform: scale(1);
    }
    
    .modern-pricing-card.featured-plan:hover {
        transform: translateY(-10px) scale(1);
    }
}

@media (max-width: 767px) {
    .modern-plans-section .section-title h2 {
        font-size: 28px;
    }
    
    .modern-pricing-card {
        padding: 30px 20px;
    }
    
    .plan-name {
        font-size: 20px;
    }
    
    .plan-price .amount {
        font-size: 42px;
    }
    
    .plan-price .currency {
        font-size: 22px;
    }
    
    .feature-highlight {
        padding: 12px 15px;
    }
    
    .feature-highlight span {
        font-size: 14px;
    }
    
    .feature-list li {
        font-size: 14px;
    }
    
    .btn-get-started {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

.pricing-slide {
    animation: slideIn 0.6s ease-out;
}

@keyframes badgePulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
    }
}

.featured-badge {
    animation: badgePulse 2s ease-in-out infinite;
}
