/* Enhanced Pricing Section - Redesigned 2026 */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    align-items: stretch;
    padding: 0 1rem;
}

.price-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    padding: 2.5rem 2rem 3rem;
    border-radius: 24px;
    border: 2px solid transparent;
    /* Prepare for hover border */
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(99, 102, 241, 0.2));
    -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.4s;
    z-index: 1;
    /* Above background but below content */
    pointer-events: none;
}

.price-card:hover::before {
    opacity: 1;
}

.price-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.3);
}

/* Premium Featured Plan - Glassmorphism */
.price-card.featured {
    background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.95) 0%,
            rgba(79, 70, 229, 0.98) 50%,
            rgba(67, 56, 202, 1) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    box-shadow:
        0 25px 80px rgba(79, 70, 229, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    padding: 3.5rem 2.5rem 3.5rem;
    position: relative;
    z-index: 10;
}

.price-card.featured::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.price-card.featured:hover {
    transform: scale(1.05) translateY(-12px);
    box-shadow:
        0 30px 90px rgba(79, 70, 229, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

/* Ensure text visibility on dark background */
.price-card.featured * {
    color: white !important;
    position: relative;
    z-index: 2;
}

/* Featured Price Amount */
.price-card.featured .price-amount {
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
}

/* Featured Button */
.price-card.featured .btn-primary,
.price-card.featured .btn {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%) !important;
    color: #4f46e5 !important;
    font-weight: 800;
    box-shadow:
        0 4px 20px rgba(255, 255, 255, 0.4),
        0 0 0 1px rgba(79, 70, 229, 0.1) inset;
    border: none;
}

.price-card.featured .btn-primary:hover,
.price-card.featured .btn:hover {
    background: linear-gradient(135deg, #fefefe 0%, #e0e7ff 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.5);
}

/* Featured List Icons */
.price-card.featured .price-features li i {
    color: #fcd34d !important;
    filter: drop-shadow(0 2px 4px rgba(252, 211, 77, 0.5));
}

.price-card.featured .price-features li {
    border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}

/* Badge */
.badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ea580c 100%);
    color: #1e293b;
    padding: 0.65rem 2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 900;
    box-shadow:
        0 8px 25px rgba(251, 191, 36, 0.6),
        0 0 0 3px rgba(255, 255, 255, 0.3);
    animation: badgePulse 2.5s ease-in-out infinite;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    z-index: 20;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 8px 25px rgba(251, 191, 36, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.3);
    }

    50% {
        transform: translateX(-50%) scale(1.08);
        box-shadow: 0 10px 30px rgba(251, 191, 36, 0.8), 0 0 0 4px rgba(255, 255, 255, 0.4);
    }
}

/* Headers & Text */
.price-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.price-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
    background: rgba(99, 102, 241, 0.1);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: #4f46e5;
}

.price-card.featured .price-header h3 {
    font-size: 1.75rem !important;
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.5rem 0 0.5rem;
    line-height: 1;
    letter-spacing: -2px;
    display: block;
    /* Ensure centering */
}

.price-card.featured .price-amount {
    font-size: 4.5rem !important;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.price-currency {
    font-size: 1.1rem;
    color: #64748b;
    display: block;
    margin-top: 0.5rem;
    font-weight: 600;
    opacity: 0.9;
}

.price-card.featured .price-currency {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
}

.price-features {
    list-style: none;
    margin: 2rem 0;
    text-align: right;
    flex: 1;
}

.price-features li {
    padding: 1rem 0;
    color: #475569;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: all 0.3s;
}

.price-features li:hover {
    padding-right: 0.5rem;
    color: var(--dark);
}

.price-features li:last-child {
    border-bottom: none;
}

.price-features i {
    color: #10b981;
    margin-left: 0.75rem;
    font-size: 1rem;
    transition: transform 0.3s;
}

.price-features li:hover i {
    transform: scale(1.2);
}