/* =====================================================================
   Store Packages — "باقات إدارة وتسويق المتاجر الإلكترونية"
   Isolated .bsp-* namespace (no overlap with .pkg-pricing* / .os-* / .sx-*).
   Growth-tiers design on a dark luxury background, 4 escalating colors.
   ===================================================================== */

.bsp-section {
    position: relative;
    padding: 90px 0;
    overflow: hidden;
    color: #eaf0fb;
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    background:
        radial-gradient(1100px 560px at 82% -8%, rgba(47, 90, 174, .20), transparent 60%),
        radial-gradient(860px 480px at 8% 112%, rgba(124, 58, 237, .16), transparent 60%),
        linear-gradient(160deg, #0a1426 0%, #0c1a2a 46%, #0a1320 100%);
}
.bsp-section .container { position: relative; z-index: 2; }

.bsp-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .45;
    pointer-events: none;
    z-index: 1;
}
.bsp-glow--a { width: 460px; height: 460px; top: -130px; inset-inline-end: -110px;
    background: radial-gradient(circle, #2f5aae, transparent 70%); }
.bsp-glow--b { width: 420px; height: 420px; bottom: -150px; inset-inline-start: -90px;
    background: radial-gradient(circle, #7c3aed, transparent 70%); }

/* ───── Heading ───── */
.bsp-head { text-align: center; max-width: 760px; margin: 0 auto 54px; }
.bsp-eyebrow {
    display: inline-block;
    font-size: 14px; font-weight: 800; letter-spacing: .4px;
    color: #8fe3dd;
    background: rgba(20, 184, 166, .12);
    border: 1px solid rgba(20, 184, 166, .32);
    padding: 7px 18px; border-radius: 999px; margin-bottom: 18px;
}
.bsp-title { font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; line-height: 1.25; margin: 0 0 14px; color: #fff; }
.bsp-subtitle { font-size: clamp(15px, 1.6vw, 18px); color: #abb9d6; margin: 0; line-height: 1.85; }

/* ───── Grid ───── */
.bsp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

/* ───── Card ───── */
.bsp-card {
    --c1: #4f8bf0; --c2: #2f5aae; --soft: rgba(47, 90, 174, .18);
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    padding: 32px 24px 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
    border: 1px solid rgba(255, 255, 255, .10);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    animation: bspIn .55s ease both;
    animation-delay: calc(var(--bsp-i, 0) * .08s);
}
.bsp-card::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, var(--c1), var(--c2));
}
.bsp-card::after {
    content: "";
    position: absolute; inset: 0; border-radius: 22px;
    background: radial-gradient(420px 200px at 50% -10%, var(--soft), transparent 70%);
    opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.bsp-card:hover {
    transform: translateY(-8px);
    border-color: var(--c1);
    box-shadow: 0 26px 52px -22px rgba(0, 0, 0, .72), 0 0 0 1px var(--soft);
}
.bsp-card:hover::after { opacity: 1; }

/* color themes (escalating tiers) */
.bsp-card--teal   { --c1: #2dd4bf; --c2: #0d9488; --soft: rgba(20, 184, 166, .16); }
.bsp-card--blue   { --c1: #4f8bf0; --c2: #2f5aae; --soft: rgba(47, 90, 174, .18); }
.bsp-card--purple { --c1: #a855f7; --c2: #7c3aed; --soft: rgba(124, 58, 237, .18); }
.bsp-card--gold   { --c1: #e6c15a; --c2: #c8932f; --soft: rgba(200, 160, 60, .16); }

/* featured (الأكثر طلباً) */
.bsp-card--featured {
    background: linear-gradient(180deg, rgba(79, 139, 240, .16), rgba(255, 255, 255, .03));
    border-color: var(--c1);
    box-shadow: 0 30px 64px -24px rgba(0, 0, 0, .82), 0 0 0 1px var(--soft);
    transform: translateY(-12px) scale(1.025);
}
.bsp-card--featured:hover { transform: translateY(-18px) scale(1.025); }

/* "الأكثر طلباً" ribbon — always warm gold so it pops on any tier */
.bsp-card__ribbon {
    position: absolute; top: 14px; inset-inline-end: 14px; z-index: 3;
    font-size: 12px; font-weight: 800; color: #3a2a05;
    background: linear-gradient(90deg, #f5c451, #e0a92e);
    padding: 5px 12px; border-radius: 999px;
    box-shadow: 0 6px 16px -4px rgba(224, 169, 46, .6);
}

/* top */
.bsp-card__top { margin-bottom: 16px; }
.bsp-card__tier {
    display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .5px;
    color: var(--c1); text-transform: uppercase; margin-bottom: 8px;
}
.bsp-card__name { font-size: 23px; font-weight: 900; color: #fff; margin: 0 0 4px; line-height: 1.3; }
.bsp-card__name-en { font-size: 12.5px; font-weight: 700; letter-spacing: 1px; color: #8392b5; text-transform: uppercase; }

/* price */
.bsp-card__price {
    display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
    padding-bottom: 18px; margin-bottom: 18px;
    border-bottom: 1px dashed rgba(255, 255, 255, .14);
}
.bsp-card__amount {
    font-size: 34px; font-weight: 900; line-height: 1;
    background: linear-gradient(90deg, var(--c1), var(--c2));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: var(--c1);
}
.bsp-card__meta { display: flex; flex-direction: column; line-height: 1.3; }
.bsp-card__currency { font-size: 14px; font-weight: 800; color: #cdd8f0; }
.bsp-card__period { font-size: 12px; color: #8392b5; }

/* suitable line */
.bsp-card__suitable {
    font-size: 13.5px; line-height: 1.7; color: #c2cee8; margin: 0 0 20px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 12px; padding: 12px 14px;
}

/* blocks */
.bsp-card__block { margin-bottom: 18px; }
.bsp-card__label {
    position: relative; font-size: 13px; font-weight: 800; color: #fff;
    margin: 0 0 12px; padding-bottom: 8px;
}
.bsp-card__label::after {
    content: ""; position: absolute; bottom: 0; inset-inline-start: 0;
    width: 36px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--c1), var(--c2));
}

.bsp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bsp-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; line-height: 1.6; color: #d7e0f3; }

/* tick (تشمل) */
.bsp-tick {
    flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
    background: linear-gradient(135deg, var(--c1), var(--c2)); position: relative;
}
.bsp-tick::after {
    content: ""; position: absolute; left: 6px; top: 3px;
    width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* star (مميزات) */
.bsp-list--features li { color: #e7edfa; }
.bsp-star { flex: 0 0 auto; margin-top: 1px; font-size: 14px; line-height: 1.4; color: var(--c1); }

/* per-card CTA */
.bsp-card__btn {
    margin-top: auto;
    display: flex; align-items: center; justify-content: center;
    text-align: center; gap: 8px;
    padding: 13px 18px; border-radius: 14px;
    font-size: 15px; font-weight: 800; color: #fff;
    background: linear-gradient(90deg, var(--c1), var(--c2));
    box-shadow: 0 12px 26px -12px var(--c2);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.bsp-card__btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 16px 32px -12px var(--c2); }

/* ───── Disclaimer + section actions ───── */
.bsp-disclaimer {
    text-align: center; font-size: 13.5px; color: #95a3c3; margin: 36px auto 0; max-width: 640px;
}
.bsp-disclaimer::before { content: "ℹ️ "; }

.bsp-actions {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 30px;
}
.bsp-action {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; border-radius: 14px; font-size: 15px; font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.bsp-action--ghost {
    color: #eaf0fb; background: rgba(255, 255, 255, .05);
    border: 1.5px solid rgba(255, 255, 255, .22);
}
.bsp-action--ghost:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.bsp-action--solid {
    color: #fff; border: 1.5px solid transparent;
    background: linear-gradient(90deg, #4f8bf0, #2f5aae);
    box-shadow: 0 14px 30px -14px rgba(47, 90, 174, .9);
}
.bsp-action--solid:hover { transform: translateY(-2px); filter: brightness(1.08); }

/* ───── Animation ───── */
@keyframes bspIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

/* ───── Responsive ───── */
@media (max-width: 1100px) {
    .bsp-grid { grid-template-columns: repeat(2, 1fr); }
    .bsp-card--featured { transform: none; }
    .bsp-card--featured:hover { transform: translateY(-8px); }
}
@media (max-width: 620px) {
    .bsp-section { padding: 64px 0; }
    .bsp-grid { grid-template-columns: 1fr; }
    .bsp-card { padding: 28px 20px 24px; }
    .bsp-card__amount { font-size: 30px; }
    .bsp-action { flex: 1 1 auto; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .bsp-card { animation: none; }
    .bsp-card, .bsp-card__btn, .bsp-action { transition: none; }
}
