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

.pricing-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff, #ace8ff70);
    border-radius: 32px;
    padding: 3rem 2.8rem;
    text-align: center;
    cursor: grab;

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);

    transition: transform .35s ease, box-shadow .35s ease;
}

/* soft glow border */
.pricing-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg,
            rgba(99, 102, 241, .25),
            rgba(56, 189, 248, .25),
            rgba(99, 102, 241, .25));
    opacity: 0;
    transition: opacity .35s ease;
    z-index: -1;
}

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

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .14);
}

.pricing-card:active {
    cursor: grabbing;
}


/* =========================
   FEATURED PLAN
========================= */

.featured {
    background: linear-gradient(180deg, #ffffff, #d4faff);
    box-shadow: 0 35px 80px rgba(99, 102, 241, .30);
    /* transform: translateY(-6px); */
}

.badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    font-size: 11px;
    padding: .45rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
}


/* =========================
   TEXT & PRICE
========================= */

.pricing-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #0f172a;
}

.price-box {
    margin-top: 1.2rem;
}

.starting,
.per {
    font-size: .85rem;
    color: #6b7280;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.03em;
    line-height: 1.1;
}


/* =========================
   FEATURES LIST
========================= */

.pricing-card ul {
    margin-top: 1.8rem;
    padding: 0;
}

.pricing-card ul li {
    position: relative;
    padding-left: 1.7rem;
    margin-bottom: .9rem;
    font-size: .95rem;
    color: #4b5563;
}

.pricing-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}


/* =========================
   BUTTON
========================= */

.add-to-custom-btn {
    position: relative;
    width: 100%;
    margin-top: 1.8rem;
    padding: .8rem 1.8rem;
    border-radius: 999px;

    border: 1px solid #6366f1;
    color: #6366f1;
    background: transparent;
    font-size: .9rem;
    font-weight: 500;

    transition: all .25s ease;
}

.add-to-custom-btn:hover {
    background: #6366f1;
    color: #fff;
    transform: translateY(-2px);
}

.featured .add-to-custom-btn {
    position: relative;
    width: 100%;
    margin-top: 1.8rem;
    padding: .8rem 1.8rem;
    border-radius: 999px;

    border: 1px solid #6366f1;
    color: #6366f1;
    background: transparent;
    font-size: .9rem;
    font-weight: 500;

    transition: all .25s ease;
}

.featured .add-to-custom-btn:hover {
    background: #4f46e5;
}

.add-to-custom-btn.added {
    background: #527dff;
    color: #fff;
    border: none;
    cursor: not-allowed;
}


/* =========================
   CUSTOM PLAN BUILDER
========================= */

.custom-plan {
    background: rgba(255, 255, 255, .75);
    backdrop-filter: blur(22px);
    border-radius: 36px;
    padding: 2.5rem;
    box-shadow: 0 40px 90px rgba(0, 0, 0, .12);
}

.drop-zone {
    border: 2px dashed #c7d2fe;
    border-radius: 28px;
    padding: 1.5rem;
    min-height: 120px;

    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    align-items: center;

    background: radial-gradient(circle at top,
            rgba(99, 102, 241, .08),
            transparent 60%);
}


/* =========================
   SELECTED PLAN CARD
========================= */

.selected-plan {
    width: 320px;
    background: linear-gradient(180deg, #fff, #f8fafc);
    border-radius: 24px;
    padding: 1.8rem 1.9rem 2rem;

    box-shadow:
        0 20px 40px rgba(0, 0, 0, .08),
        inset 0 1px 0 rgba(255, 255, 255, .6);

    animation: scaleFade .45s ease;
}

.selected-plan h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #0f172a;
}

.selected-plan .mini-price {
    font-size: 1.6rem;
    font-weight: 700;
    margin: .6rem 0 1rem;
}

.selected-plan ul {
    font-size: .85rem;
    color: #6b7280;
}

.selected-plan ul li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: .4rem;
}

.selected-plan ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #6366f1;
}

/* =========================
   PRIMARY CTA BUTTON
========================= */

.cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 0.9rem 2.4rem;
    border-radius: 999px;

    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;

    color: white;
    background: linear-gradient(135deg, #6365f1d3, #3b83f6db);

    border: none;
    cursor: pointer;
    overflow: hidden;

    box-shadow:
        0 10px 25px rgba(99, 102, 241, 0.35),
        0 4px 10px rgba(59, 130, 246, 0.25);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        filter .25s ease;
}

/* glow hover */
.cta-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);

    box-shadow:
        0 18px 45px rgba(99, 102, 241, 0.35),
        0 8px 18px rgba(59, 130, 246, 0.25);
}

/* press effect */
.cta-btn:active {
    transform: translateY(0);
    box-shadow:
        0 6px 14px rgba(99, 102, 241, 0.35);
}

/* shine animation */
.cta-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -120%;
    width: 60%;
    height: 200%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.6),
            transparent);
    transform: rotate(25deg);
    transition: left 0.7s ease;
}

.cta-btn:hover::after {
    left: 130%;
}



/* =========================
   REMOVE BUTTON
========================= */

.remove-plan {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(99, 102, 241, .15);
    color: #4338ca;
    cursor: pointer;
    transition: .2s ease;
}

.remove-plan:hover {
    background: #4338ca;
    color: #fff;
    transform: scale(1.1);
}


/* =========================
   ANIMATION
========================= */

@keyframes scaleFade {
    from {
        transform: scale(.92) translateY(8px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}