/*
|--------------------------------------------------------------------------
| قسم باقات الرفاعي
|--------------------------------------------------------------------------
*/

.pricing-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(56, 189, 248, .11),
            transparent 25%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(37, 99, 235, .08),
            transparent 27%
        ),
        #ffffff;
}

.pricing-section::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -260px;
    right: -180px;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(37, 99, 235, .08);
    border-radius: 50%;
    box-shadow:
        0 0 0 70px rgba(37, 99, 235, .025),
        0 0 0 140px rgba(37, 99, 235, .015);
}

.pricing-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.pricing-status {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 26px;
    background: #f8fafc;
    color: #64748b;
    font-size: .75rem;
}

.pricing-status[hidden] {
    display: none;
}

.pricing-status.error {
    border-color: #fecaca;
    background: #fff7f7;
    color: #b91c1c;
}

.pricing-loader {
    width: 22px;
    height: 22px;
    border: 2px solid #dbeafe;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: pricing-spin .75s linear infinite;
}

@keyframes pricing-spin {
    to {
        transform: rotate(360deg);
    }
}

.pricing-card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 31px;
    overflow: hidden;
    border: 1px solid #dfe7f1;
    border-radius: 27px;
    background: rgba(255, 255, 255, .96);
    box-shadow:
        0 18px 48px rgba(15, 37, 79, .07);
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity .65s var(--ease),
        transform .65s var(--ease),
        box-shadow .35s var(--ease),
        border-color .35s var(--ease);
}

.pricing-card.in-view {
    opacity: 1;
    transform: none;
}

.pricing-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background:
        linear-gradient(
            90deg,
            #38bdf8,
            #2563eb
        );
}

.pricing-card:hover {
    transform: translateY(-7px);
    border-color: #bfdbfe;
    box-shadow:
        0 30px 75px rgba(15, 37, 79, .13);
}

.pricing-card:nth-child(2) {
    border-color: #93c5fd;
    box-shadow:
        0 26px 70px rgba(37, 99, 235, .13);
}

.plan-head {
    min-height: 205px;
}

.plan-topline {
    min-height: 29px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.plan-trial {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: .52rem;
    font-weight: 700;
}

.pricing-card h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 1.42rem;
    line-height: 1.5;
}

.plan-description {
    margin: 0;
    color: #64748b;
    font-size: .67rem;
    line-height: 1.95;
}

.plan-price {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 23px 0 19px;
    margin-top: 12px;
    border-top: 1px solid #e5eaf0;
}

.plan-price b {
    color: #06142f;
    font-size: 2.2rem;
    line-height: 1;
    font-weight: 800;
}

.plan-price span {
    padding-bottom: 2px;
    color: #64748b;
    font-size: .61rem;
}

.plan-yearly {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 22px;
    border: 1px solid #dbeafe;
    border-radius: 13px;
    background: #eff6ff;
}

.plan-yearly span,
.plan-yearly small {
    display: block;
}

.plan-yearly span {
    color: #1e3a8a;
    font-size: .59rem;
    font-weight: 700;
}

.plan-yearly small {
    margin-top: 2px;
    color: #64748b;
    font-size: .45rem;
}

.plan-yearly b {
    color: #1d4ed8;
    font-size: .78rem;
    white-space: nowrap;
}

.plan-features {
    display: grid;
    gap: 13px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #475569;
    font-size: .64rem;
}

.plan-features i {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #dcfce7;
    color: #16a34a;
}

.plan-features svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
}

.plan-card-footer {
    display: grid;
    gap: 13px;
    margin-top: auto;
    padding-top: 22px;
}

.plan-saving {
    color: #16a34a;
    font-size: .55rem;
    font-weight: 700;
    text-align: center;
}

.plan-register-button {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 18px;
    border: 1px solid #2563eb;
    border-radius: 13px;
    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1e3a8a
        );
    box-shadow:
        0 12px 25px rgba(37, 99, 235, .20);
    color: #ffffff;
    font-size: .66rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        filter .25s ease;
}

.plan-register-button:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow:
        0 17px 32px rgba(37, 99, 235, .29);
    filter: brightness(1.04);
}

.plan-register-button:active {
    transform: translateY(0);
}

.plan-register-button svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.pricing-footnote {
    max-width: 720px;
    margin: 30px auto 0;
    color: #94a3b8;
    font-size: .58rem;
    text-align: center;
}

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 670px;
        margin-inline: auto;
    }

    .plan-head {
        min-height: auto;
    }
}

@media (max-width: 650px) {
    .pricing-card {
        padding: 25px;
        border-radius: 22px;
    }

    .pricing-card h3 {
        font-size: 1.25rem;
    }

    .plan-price b {
        font-size: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pricing-card {
        opacity: 1;
        transform: none;
    }
}

/* REF3E CUSTOM PLAN CTA */
.custom-plan-cta {
    max-width: 980px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 34px auto 0;
    padding: 25px 28px;
    border: 1px solid #dbeafe;
    border-radius: 22px;
    background:
        linear-gradient(
            135deg,
            #f8fbff,
            #eff6ff
        );
    box-shadow:
        0 18px 45px rgba(15, 37, 79, .07);
}

.custom-plan-copy {
    max-width: 650px;
}

.custom-plan-kicker {
    display: block;
    margin-bottom: 7px;
    color: #2563eb;
    font-size: .54rem;
    font-weight: 700;
}

.custom-plan-copy h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 1.05rem;
    line-height: 1.6;
}

.custom-plan-copy p {
    margin: 0;
    color: #64748b;
    font-size: .62rem;
    line-height: 1.9;
}

.custom-plan-button {
    min-width: 220px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 20px;
    border-radius: 14px;
    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1e3a8a
        );
    box-shadow:
        0 13px 27px rgba(37, 99, 235, .24);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.custom-plan-button:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow:
        0 18px 34px rgba(37, 99, 235, .32);
}

.custom-plan-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

@media (max-width: 760px) {
    .custom-plan-cta {
        display: grid;
        gap: 20px;
        padding: 22px;
        text-align: center;
    }

    .custom-plan-button {
        width: 100%;
        min-width: 0;
    }
}

