/* Modern Pricing Card Styles */
.pricing-card-modern {
    transition: all 0.3s ease;
    border-radius: 20px;
    overflow: visible;
    margin-top: 20px;
}

.pricing-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

.pricing-card-featured {
    transition: all 0.3s ease;
    border-radius: 20px;
    overflow: visible;
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

.pricing-card-featured:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(40, 167, 69, 0.3) !important;
}

/* Badge positioning fixes */
.pricing-card-modern .position-absolute,
.pricing-card-featured .position-absolute {
    top: -15px !important;
    z-index: 10;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.pricing-card-modern .badge,
.pricing-card-featured .badge {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    white-space: nowrap;
    line-height: 1.3 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 18px !important;
    min-height: 36px;
    border-radius: 20px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.pricing-card-modern .badge i,
.pricing-card-featured .badge i {
    margin-right: 5px;
    font-size: 0.7rem;
    vertical-align: middle;
}

.pricing-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto;
    font-size: 24px;
}

.pricing-amount {
    position: relative;
}

.pricing-amount::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #dee2e6;
    border-radius: 1px;
}

.card-header {
    border-radius: 20px 20px 0 0 !important;
}

/* Feature list styling */
.list-unstyled li {
    border-radius: 8px;
    padding: 8px 0;
    transition: all 0.2s ease;
}

.list-unstyled li:hover {
    background: rgba(0,0,0,0.02);
    padding-left: 8px;
}

/* Button enhancements */
.btn-lg {
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ff8f00 0%, #ff6f00 100%);
    border-color: #ff6f00;
    transform: translateY(-2px);
}

.btn-success:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    border-color: #17a2b8;
    transform: translateY(-2px);
}

.btn-info:hover {
    background: linear-gradient(135deg, #6f42c1 0%, #495057 100%);
    border-color: #495057;
    transform: translateY(-2px);
}

/* Badge styles */
.badge {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Text overflow and word wrapping */
.pricing-amount .small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.875rem !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pricing-card-modern,
    .pricing-card-featured {
        margin-bottom: 2rem;
    }
    
    .pricing-badge {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .pricing-amount .small {
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.2;
        font-size: 0.8rem !important;
    }
    
    .h1 {
        font-size: 2rem !important;
    }
}

/* Animation for pricing cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-card-modern,
.pricing-card-featured {
    animation: fadeInUp 0.6s ease forwards;
}

.pricing-card-modern:nth-child(2) {
    animation-delay: 0.2s;
}

.pricing-card-modern:nth-child(3) {
    animation-delay: 0.4s;
}