

@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400..700&display=swap');

.ebpcr4 {
    --ebpcr4-bg: #f7f5f1;
    --ebpcr4-eyebrow-text: #b08a5a;
    --ebpcr4-title-text: #2c2620;
    --ebpcr4-subtitle-text: #6b6459;
    --ebpcr4-shape-fill: rgba(176, 138, 90, 0.08);

    --ebpcr4-card-bg: #efe8db;
    --ebpcr4-card-border: rgba(176, 138, 90, 0.4);
    --ebpcr4-card-title: #2c2620;
    --ebpcr4-card-desc: #6b6459;
    --ebpcr4-card-icon-bg: rgba(176, 138, 90, 0.15);
    --ebpcr4-card-icon-color: #b08a5a;

    --ebpcr4-card-featured-bg: #f7f5f1;
    --ebpcr4-card-featured-border: #b08a5a;
    --ebpcr4-card-featured-title: #2c2620;
    --ebpcr4-card-featured-desc: #6b6459;
    --ebpcr4-card-featured-icon-bg: #b08a5a;
    --ebpcr4-card-featured-icon-color: #f7f5f1;

    --ebpcr4-price-old-text: #a59d8d;
    --ebpcr4-price-value-text: #2c2620;
    --ebpcr4-price-unit-text: #6b6459;
    --ebpcr4-price-featured-old-text: #ab9d84;
    --ebpcr4-price-featured-value-text: #7a4f22;
    --ebpcr4-price-featured-unit-text: #6b6459;

    --ebpcr4-feature-text: #6b6459;
    --ebpcr4-feature-icon-bg: rgba(176, 138, 90, 0.15);
    --ebpcr4-feature-icon-color: #b08a5a;
    --ebpcr4-feature-featured-text: #2c2620;
    --ebpcr4-feature-featured-icon-bg: #b08a5a;
    --ebpcr4-feature-featured-icon-color: #f7f5f1;

    --ebpcr4-btn-primary-bg: transparent;
    --ebpcr4-btn-primary-text: #b08a5a;
    --ebpcr4-btn-primary-border: #b08a5a;
    --ebpcr4-btn-primary-bg-hover: #b08a5a;
    --ebpcr4-btn-primary-text-hover: #f7f5f1;
    --ebpcr4-btn-primary-border-hover: #b08a5a;
    --ebpcr4-btn-primary-icon: #b08a5a;
    --ebpcr4-btn-primary-icon-hover: #f7f5f1;

    --ebpcr4-btn-ghost-text: #6b6459;
    --ebpcr4-btn-ghost-border: rgba(176, 138, 90, 0.35);
    --ebpcr4-btn-ghost-bg: transparent;
    --ebpcr4-btn-ghost-text-hover: #2c2620;
    --ebpcr4-btn-ghost-border-hover: #b08a5a;
    --ebpcr4-btn-ghost-bg-hover: rgba(176, 138, 90, 0.08);

    --ebpcr4-btn-featured-primary-bg: #b08a5a;
    --ebpcr4-btn-featured-primary-text: #f7f5f1;
    --ebpcr4-btn-featured-primary-border: #b08a5a;
    --ebpcr4-btn-featured-primary-bg-hover: #97723f;
    --ebpcr4-btn-featured-primary-text-hover: #f7f5f1;
    --ebpcr4-btn-featured-ghost-text: #2c2620;
    --ebpcr4-btn-featured-ghost-border: rgba(176, 138, 90, 0.5);
    --ebpcr4-btn-featured-ghost-bg: transparent;
    --ebpcr4-btn-featured-ghost-text-hover: #2c2620;
    --ebpcr4-btn-featured-ghost-border-hover: #b08a5a;
    --ebpcr4-btn-featured-ghost-bg-hover: rgba(176, 138, 90, 0.1);

    --ebpcr4-ribbon-bg: #b08a5a;
    --ebpcr4-ribbon-text: #f7f5f1;

    --ebpcr4-discount-bg: #b08a5a;
    --ebpcr4-discount-value-text: #ffffff;
    --ebpcr4-discount-label-text: #f7f5f1;
    --ebpcr4-discount-border: #b08a5a;

    --ebpcr4-trust-bg: transparent;
    --ebpcr4-trust-text: #6b6459;
    --ebpcr4-trust-icon-bg: rgba(176, 138, 90, 0.15);
    --ebpcr4-trust-icon-color: #b08a5a;
    --ebpcr4-trust-border: rgba(176, 138, 90, 0.35);

    --ebpcr4-padding-top: 4rem;
    --ebpcr4-padding-bottom: 4rem;
}

*, .ebpcr4 *, .ebpcr4 *::before, .ebpcr4 *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---------- Base — Mobile ---------- */
.ebpcr4 {
    position: relative;
    overflow: hidden;
    background: var(--ebpcr4-bg);
    padding: var(--ebpcr4-padding-top) 1.25rem var(--ebpcr4-padding-bottom);
    font-family: "El Messiri", sans-serif;
    direction: rtl;
}

.ebpcr4__shape-1,
.ebpcr4__shape-2,
.ebpcr4__shape-3 {
    position: absolute;
    background: transparent;
    border: 0.0625rem solid var(--ebpcr4-shape-fill);
    pointer-events: none;
    z-index: 0;
}
.ebpcr4__shape-1 { width: 12rem; height: 12rem; border-radius: 50%; top: -6rem; right: -6rem; }
.ebpcr4__shape-2 { width: 8rem; height: 8rem; border-radius: 50%; bottom: -4rem; left: -4rem; }
.ebpcr4__shape-3 { width: 5rem; height: 5rem; transform: rotate(45deg); top: 40%; left: 3%; }

.ebpcr4__container {
    position: relative;
    z-index: 1;
    max-width: 75rem;
    margin: 0 auto;
}

.ebpcr4__header {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2.5rem;
}
.ebpcr4__eyebrow {
    display: inline-block;
    font-size: clamp(0.75rem, 3vw, 0.85rem);
    font-weight: 500;
    color: var(--ebpcr4-eyebrow-text);
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}
.ebpcr4__title {
    font-size: clamp(1.5rem, 6vw, 2.25rem);
    font-weight: 700;
    color: var(--ebpcr4-title-text);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}
.ebpcr4__subtitle {
    font-size: clamp(0.9rem, 3.5vw, 1.05rem);
    color: var(--ebpcr4-subtitle-text);
    line-height: 1.7;
}

.ebpcr4__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem 1.5rem;
    align-items: stretch;
}

.ebpcr4__card {
    position: relative;
    background: var(--ebpcr4-card-bg);
    border: 0.0625rem solid var(--ebpcr4-card-border);
    border-radius: 0.5rem;
    animation: ebpcr4-fade-up 0.6s ease both;
}
.ebpcr4__card:nth-child(1) { animation-delay: 0s; }
.ebpcr4__card:nth-child(2) { animation-delay: 0.1s; }
.ebpcr4__card:nth-child(3) { animation-delay: 0.2s; }

.ebpcr4__card-inner {
    position: relative;
    padding: 2rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.ebpcr4__ribbon,
.ebpcr4__discount {
    display: none;
}

.ebpcr4__plan-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.5rem;
    background: var(--ebpcr4-card-icon-bg);
    color: var(--ebpcr4-card-icon-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 1.25rem;
}

.ebpcr4__card-title {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    font-weight: 700;
    color: var(--ebpcr4-card-title);
    margin-bottom: 0.4rem;
}
.ebpcr4__card-desc {
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    color: var(--ebpcr4-card-desc);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.ebpcr4__price {
    margin-bottom: 1.5rem;
}
.ebpcr4__price-old {
    display: inline-block;
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    color: var(--ebpcr4-price-old-text);
    text-decoration: line-through;
    margin-bottom: 0.25rem;
}
.ebpcr4__price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}
.ebpcr4__price-value {
    font-size: clamp(2rem, 8vw, 2.5rem);
    font-weight: 700;
    color: var(--ebpcr4-price-value-text);
}
.ebpcr4__price-unit {
    font-size: clamp(0.75rem, 3vw, 0.85rem);
    color: var(--ebpcr4-price-unit-text);
}

.ebpcr4__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
    text-align: right;
}
.ebpcr4__feature {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    color: var(--ebpcr4-feature-text);
}
.ebpcr4__feature-icon {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 0.3rem;
    background: var(--ebpcr4-feature-icon-bg);
    color: var(--ebpcr4-feature-icon-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

.ebpcr4__actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: auto;
}
.ebpcr4__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    font-weight: 700;
    padding: 0.85rem 1rem;
    border-radius: 0.35rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ebpcr4__btn--primary {
    background: var(--ebpcr4-btn-primary-bg);
    color: var(--ebpcr4-btn-primary-text);
    border: 0.0625rem solid var(--ebpcr4-btn-primary-border);
}
.ebpcr4__btn--primary:hover {
    background: var(--ebpcr4-btn-primary-bg-hover);
    color: var(--ebpcr4-btn-primary-text-hover);
    border-color: var(--ebpcr4-btn-primary-border-hover);
}
.ebpcr4__btn-icon { color: inherit; font-size: 0.85em; }
.ebpcr4__btn--ghost {
    background: var(--ebpcr4-btn-ghost-bg);
    color: var(--ebpcr4-btn-ghost-text);
    border: 0.0625rem solid var(--ebpcr4-btn-ghost-border);
}
.ebpcr4__btn--ghost:hover {
    background: var(--ebpcr4-btn-ghost-bg-hover);
    color: var(--ebpcr4-btn-ghost-text-hover);
    border-color: var(--ebpcr4-btn-ghost-border-hover);
}

/* ---------- الكارت المميز — إطار مزدوج + ميدالية مركزية ---------- */
.ebpcr4__card--featured {
    background: var(--ebpcr4-card-featured-bg);
    border-color: var(--ebpcr4-card-featured-border);
    box-shadow: 0 0 0 0.25rem var(--ebpcr4-bg), 0 0 0 0.3125rem var(--ebpcr4-card-featured-border);
    overflow: visible;
}
.ebpcr4__card--featured::before,
.ebpcr4__card--featured::after {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: var(--ebpcr4-card-featured-border);
    z-index: 1;
}

.ebpcr4__card--featured::before {
    top: 12px;
    right: 12px;
    border-top: 1px solid;
    border-right: 1px solid;
}

.ebpcr4__card--featured::after {
    bottom: 12px;
    left: 12px;
    border-bottom: 1px solid;
    border-left: 1px solid;
}
.ebpcr4__card--featured::before { top: 0.5rem; right: 0.6rem; }
.ebpcr4__card--featured::after { bottom: 0.5rem; left: 0.6rem; }

/* Featured badge — ميدالية/ختم دائري مزدوج الحلقة، نص علوي، نصفها
   تقريبًا خارج الكارت (position: absolute + z-index عالي، بدون
   أي overflow: hidden على الكارت أو الحاوية) — مختلف تمامًا عن
   البادچ العضوي (ثيم1) وبادچ التاج (ثيم2). */
.ebpcr4__card--featured .ebpcr4__ribbon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    position: absolute;
    top: -2.1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4.6rem;
    height: 4.6rem;
    border-radius: 50%;
    background: var(--ebpcr4-ribbon-bg);
    color: var(--ebpcr4-ribbon-text);
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    padding: 0.4rem;
    box-shadow:
        0 0 0 0.1875rem var(--ebpcr4-bg),
        0 0 0 0.28rem var(--ebpcr4-ribbon-bg),
        0 0.6rem 1.1rem rgba(44, 38, 32, 0.3);
    z-index: 5;
    white-space: normal;
}
.ebpcr4__card--featured .ebpcr4__ribbon::before {
    content: "\f559";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1rem;
    margin-bottom: 0.1rem;
}


.ebpcr4__card--featured .ebpcr4__discount {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 3.5rem;
  left: -1.1rem;
    right: auto;
    width: 3.4rem;
    height: 2.6rem;
    background: var(--ebpcr4-discount-bg);
    border: 0.0625rem solid var(--ebpcr4-discount-border);
    clip-path: polygon(0 15%, 85% 15%, 100% 50%, 85% 85%, 0 85%, 12% 50%);
    line-height: 1.05;
    box-shadow: 0.15rem 0.15rem 0 rgba(44, 38, 32, 0.08);
    z-index: 4;
}
.ebpcr4__card--featured .ebpcr4__discount-value {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--ebpcr4-discount-value-text);
}
.ebpcr4__card--featured .ebpcr4__discount-label {
    font-size: 0.5rem;
    color: var(--ebpcr4-discount-label-text);
}
.ebpcr4__card--featured .ebpcr4__card-inner { padding-top: 3.5rem; padding-bottom: 2.5rem; }
.ebpcr4__card--featured .ebpcr4__plan-icon {
    background: var(--ebpcr4-card-featured-icon-bg);
    color: var(--ebpcr4-card-featured-icon-color);
}
.ebpcr4__card--featured .ebpcr4__card-title { color: var(--ebpcr4-card-featured-title); }
.ebpcr4__card--featured .ebpcr4__card-desc { color: var(--ebpcr4-card-featured-desc); }
.ebpcr4__card--featured .ebpcr4__price-old { color: var(--ebpcr4-price-featured-old-text); }
.ebpcr4__card--featured .ebpcr4__price-value { color: var(--ebpcr4-price-featured-value-text); }
.ebpcr4__card--featured .ebpcr4__price-unit { color: var(--ebpcr4-price-featured-unit-text); }
.ebpcr4__card--featured .ebpcr4__feature { color: var(--ebpcr4-feature-featured-text); }
.ebpcr4__card--featured .ebpcr4__feature-icon {
    background: var(--ebpcr4-feature-featured-icon-bg);
    color: var(--ebpcr4-feature-featured-icon-color);
}
.ebpcr4__card--featured .ebpcr4__btn--primary {
    background: var(--ebpcr4-btn-featured-primary-bg);
    color: var(--ebpcr4-btn-featured-primary-text);
    border-color: var(--ebpcr4-btn-featured-primary-border);
}
.ebpcr4__card--featured .ebpcr4__btn--primary:hover {
    background: var(--ebpcr4-btn-featured-primary-bg-hover);
    color: var(--ebpcr4-btn-featured-primary-text-hover);
}
.ebpcr4__card--featured .ebpcr4__btn--ghost {
    color: var(--ebpcr4-btn-featured-ghost-text);
    border-color: var(--ebpcr4-btn-featured-ghost-border);
    background: var(--ebpcr4-btn-featured-ghost-bg);
}
.ebpcr4__card--featured .ebpcr4__btn--ghost:hover {
    color: var(--ebpcr4-btn-featured-ghost-text-hover);
    border-color: var(--ebpcr4-btn-featured-ghost-border-hover);
    background: var(--ebpcr4-btn-featured-ghost-bg-hover);
}

.ebpcr4__trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2rem;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 0.0625rem solid var(--ebpcr4-trust-border);
}
.ebpcr4__trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.75rem, 3vw, 0.85rem);
    color: var(--ebpcr4-trust-text);
}
.ebpcr4__trust-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.35rem;
    background: var(--ebpcr4-trust-icon-bg);
    color: var(--ebpcr4-trust-icon-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

@keyframes ebpcr4-fade-up {
    from { opacity: 0; transform: translateY(1.25rem); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Breakpoints ---------- */
@media (min-width: 481px) {
    .ebpcr4__actions { flex-direction: row; }
}

@media (min-width: 601px) {
    .ebpcr4__grid { grid-template-columns: repeat(2, 1fr); }
    .ebpcr4__card:nth-child(3) { grid-column: 1 / -1; max-width: 22rem; margin: 0 auto; }
}

@media (min-width: 769px) {
    .ebpcr4 { padding-left: 2rem; padding-right: 2rem; }
    .ebpcr4__grid {
        grid-template-columns: 0.9fr 1.2fr 0.9fr;
        gap: 1.5rem;
        align-items: center;
    }
    .ebpcr4__card:nth-child(3) { grid-column: auto; max-width: none; margin: 0; }
    /* تعرّج تحريري خفيف — الأعمدة الجانبية بمستوى مختلف عن المميز، بدل الـGrid المتساوي التقليدي */
    .ebpcr4__card:nth-child(1) { transform: translateY(1.25rem); }
    .ebpcr4__card:nth-child(3) { transform: translateY(1.25rem); }
}

@media (min-width: 1025px) {
    .ebpcr4 { --ebpcr4-padding-top: 5rem; --ebpcr4-padding-bottom: 5rem; }
    .ebpcr4__grid { gap: 2rem; }
    .ebpcr4__card-inner { padding: 2.5rem 1.85rem 2rem; }
}

@media (min-width: 1281px) {
    .ebpcr4__container { max-width: 78rem; }
    .ebpcr4__price-value { font-size: 2.75rem; }
}

@media (min-width: 1441px) {
    .ebpcr4 { --ebpcr4-padding-top: 6rem; --ebpcr4-padding-bottom: 6rem; }
    .ebpcr4__container { max-width: 82rem; }
}

@media (min-width: 1921px) {
    .ebpcr4__container { max-width: 90rem; }
    .ebpcr4__title { font-size: 2.75rem; }
}
.ebpcr4__feature-icon, .ebpcr4__trust-icon { display: flex !important; }
