/* ============================================================
   Prolo — المساعد الذكي من برولاب تك (ar + en)
   ============================================================ */
.pr, .pr-sticky {
    --pr-ink: #0f172a;
    --pr-text: #334155;
    --pr-muted: #64748b;
    --pr-line: #e2e8f0;
    --pr-soft: #f5f8fc;
    --pr-navy: #0e4c7e;
    --pr-blue: #1c7fbf;
    --pr-green: #5cb335;
    --pr-wa: #25d366;
    --pr-hot: #e8452c;
    --pr-grad: linear-gradient(135deg, #1c7fbf 0%, #5cb335 100%);
    color: var(--pr-text);
    background: #fff;
}
.pr .container { padding-left: 16px; padding-right: 16px; }

/* ---------- الهيرو ---------- */
.pr-hero {
    position: relative;
    background: radial-gradient(1200px 500px at 80% -10%, rgba(92, 179, 53, .22), transparent 60%),
                radial-gradient(900px 500px at 0% 10%, rgba(28, 127, 191, .35), transparent 60%),
                #08111f;
    color: #fff;
    padding: 130px 0 70px;
    overflow: hidden;
}
.pr-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 48px;
    align-items: center;
}
.pr-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .9rem; color: #bcd3e6;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .04);
    border-radius: 999px; padding: 6px 14px;
}
.pr-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pr-green); box-shadow: 0 0 0 4px rgba(92, 179, 53, .25); animation: pr-pulse 1.8s infinite; }
@keyframes pr-pulse { 50% { box-shadow: 0 0 0 8px rgba(92, 179, 53, 0); } }
.pr-hero h1 {
    font-size: clamp(2rem, 4.4vw, 3.3rem);
    line-height: 1.25; font-weight: 800; color: #fff;
    margin: 18px 0 16px;
}
.pr-hero h1 .accent { background: linear-gradient(90deg, #6fc3ff, #8be36a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pr-hero .lead { font-size: 1.12rem; line-height: 1.9; color: #c6d4e1; max-width: 640px; }
.pr-platforms { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.pr-platforms span {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px; font-size: .92rem; font-weight: 600;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fff;
}
.pr-platforms .fa-whatsapp { color: #25d366; }
.pr-platforms .fa-facebook-messenger { color: #4aa3ff; }
.pr-platforms .fa-instagram { color: #ff5fa2; }
.pr-platforms .fa-telegram { color: #36aee2; }
.pr-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.pr-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 26px; border-radius: 12px; font-weight: 700; font-size: 1.02rem;
    border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s;
    text-align: center; line-height: 1.3;
}
.pr-btn:hover { transform: translateY(-2px); }
.pr-btn-primary { background: var(--pr-grad); color: #fff; box-shadow: 0 10px 30px rgba(28, 127, 191, .35); }
.pr-btn-wa { background: var(--pr-wa); color: #06361a; }
.pr-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.pr-btn-block { width: 100%; }
.pr-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: .93rem; color: #b5c6d6; }
.pr-trust li { display: inline-flex; align-items: center; gap: 7px; }
.pr-trust i { color: var(--pr-green); }

/* محادثة تجريبية */
.pr-phone {
    background: #0b141a; border-radius: 30px; padding: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 8px rgba(255, 255, 255, .03);
    max-width: 380px; margin: 0 auto; width: 100%;
}
.pr-phone-top { display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.pr-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--pr-grad); display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; }
.pr-phone-top b { color: #fff; font-size: .95rem; display: block; }
.pr-phone-top small { color: #7fd37f; font-size: .78rem; }
.pr-chat { height: 380px; overflow: hidden; padding: 14px 6px 6px; display: flex; flex-direction: column; gap: 9px; }
.pr-msg {
    max-width: 84%; padding: 9px 12px; border-radius: 12px; font-size: .9rem; line-height: 1.6;
    opacity: 0; transform: translateY(8px); animation: pr-in .35s forwards;
}
@keyframes pr-in { to { opacity: 1; transform: none; } }
.pr-msg.in { background: #202c33; color: #e9edef; align-self: flex-start; border-start-start-radius: 4px; }
.pr-msg.out { background: #005c4b; color: #e9edef; align-self: flex-end; border-start-end-radius: 4px; }
.pr-msg .meta { display: block; font-size: .7rem; color: #9fb4bd; margin-top: 3px; }
.pr-msg.voice { display: flex; align-items: center; gap: 8px; }
.pr-msg.voice .wave { flex: 1; height: 18px; background: repeating-linear-gradient(90deg, #8aa1ab 0 2px, transparent 2px 5px); border-radius: 4px; min-width: 110px; }
.pr-typing { align-self: flex-end; background: #005c4b; border-radius: 12px; padding: 10px 14px; display: none; gap: 4px; }
.pr-typing.on { display: inline-flex; }
.pr-typing i { width: 6px; height: 6px; border-radius: 50%; background: #cfe; animation: pr-dot 1s infinite; }
.pr-typing i:nth-child(2) { animation-delay: .15s; } .pr-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pr-dot { 50% { opacity: .3; transform: translateY(-3px); } }
.pr-demo-note { text-align: center; font-size: .78rem; color: #7f93a6; margin-top: 10px; }

/* ---------- شريط العرض ---------- */
.pr-offerbar {
    background: linear-gradient(90deg, #0e4c7e, #1c7fbf 50%, #3d8c3d);
    color: #fff; padding: 14px 0;
}
.pr-offerbar .container { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: center; text-align: center; }
.pr-offerbar strong { font-size: 1.05rem; }
.pr-offerbar a { background: #fff; color: var(--pr-navy); padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .92rem; }

/* المؤقت */
.pr-timer { display: inline-flex; gap: 6px; direction: ltr; }
.pr-timer span {
    min-width: 50px; padding: 5px 6px; border-radius: 8px; background: rgba(0, 0, 0, .28);
    font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.1rem; line-height: 1.1; text-align: center;
}
.pr-timer span small { display: block; font-size: .62rem; font-weight: 500; opacity: .85; }

/* ---------- أقسام عامة ---------- */
.pr-section { padding: 84px 0; }
.pr-section.alt { background: var(--pr-soft); }
.pr-section.dark { background: #08111f; color: #c6d4e1; }
.pr-head { text-align: center; max-width: 780px; margin: 0 auto 44px; }
.pr-head .kicker { display: inline-block; color: var(--pr-blue); font-weight: 700; font-size: .9rem; letter-spacing: .02em; margin-bottom: 8px; }
.pr-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); color: var(--pr-ink); line-height: 1.35; font-weight: 800; margin-bottom: 12px; }
.pr-section.dark .pr-head h2 { color: #fff; }
.pr-head p { font-size: 1.05rem; line-height: 1.9; color: var(--pr-muted); }
.pr-section.dark .pr-head p { color: #a9bccd; }
.pr-summary { max-width: 900px; margin: 0 auto; font-size: 1.08rem; line-height: 2; color: var(--pr-text); }
.pr-summary strong { color: var(--pr-ink); }

/* الحقائق */
.pr-facts { max-width: 900px; margin: 28px auto 0; border: 1px solid var(--pr-line); border-radius: 16px; overflow: hidden; background: #fff; }
.pr-facts h3 { background: var(--pr-navy); color: #fff; padding: 12px 18px; font-size: 1rem; }
.pr-facts dl { display: grid; grid-template-columns: minmax(130px, 220px) 1fr; }
.pr-facts dt, .pr-facts dd { padding: 11px 18px; border-top: 1px solid var(--pr-line); font-size: .96rem; line-height: 1.7; }
.pr-facts dt { font-weight: 700; color: var(--pr-ink); background: #fafcfe; }

/* المشكلة */
.pr-pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pr-pain { background: #fff; border: 1px solid var(--pr-line); border-radius: 16px; padding: 24px; }
.pr-pain i { font-size: 1.5rem; color: var(--pr-hot); margin-bottom: 12px; }
.pr-pain h3 { color: var(--pr-ink); font-size: 1.08rem; margin-bottom: 6px; }
.pr-pain p { font-size: .96rem; line-height: 1.8; color: var(--pr-muted); }

/* الخطوات */
.pr-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: st; }
.pr-step { position: relative; background: #fff; border: 1px solid var(--pr-line); border-radius: 16px; padding: 28px 24px 24px; }
.pr-step::before {
    counter-increment: st; content: counter(st);
    position: absolute; top: -16px; inset-inline-start: 22px;
    width: 34px; height: 34px; border-radius: 50%; background: var(--pr-grad); color: #fff; font-weight: 800; display: grid; place-items: center;
}
.pr-step h3 { color: var(--pr-ink); font-size: 1.08rem; margin: 6px 0; }
.pr-step p { font-size: .96rem; line-height: 1.8; color: var(--pr-muted); }

/* الميزات */
.pr-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pr-feature { background: #fff; border: 1px solid var(--pr-line); border-radius: 16px; padding: 24px; transition: box-shadow .2s, transform .2s; }
.pr-feature:hover { box-shadow: 0 14px 40px rgba(15, 23, 42, .08); transform: translateY(-3px); }
.pr-feature .ic { width: 46px; height: 46px; border-radius: 12px; background: #eaf4fb; color: var(--pr-blue); display: grid; place-items: center; font-size: 1.25rem; margin-bottom: 14px; }
.pr-feature h3 { color: var(--pr-ink); font-size: 1.05rem; margin-bottom: 6px; }
.pr-feature p { font-size: .95rem; line-height: 1.8; color: var(--pr-muted); }

/* القطاعات */
.pr-inds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pr-ind { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 18px; }
.pr-ind i { color: #8be36a; font-size: 1.3rem; margin-bottom: 10px; }
.pr-ind h3 { color: #fff; font-size: 1rem; margin-bottom: 4px; }
.pr-ind p { font-size: .88rem; line-height: 1.7; color: #9fb2c4; }

/* الحاسبة */
.pr-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; background: #fff; border: 1px solid var(--pr-line); border-radius: 20px; padding: 28px; max-width: 980px; margin: 0 auto; }
.pr-calc label { display: block; font-weight: 700; color: var(--pr-ink); margin: 14px 0 6px; font-size: .95rem; }
.pr-calc label:first-child { margin-top: 0; }
.pr-calc output { float: inline-end; color: var(--pr-blue); font-weight: 800; }
.pr-calc input[type=range] { width: 100%; accent-color: var(--pr-blue); }
.pr-calc-out { background: var(--pr-soft); border-radius: 16px; padding: 22px; display: grid; gap: 14px; align-content: start; }
.pr-calc-out div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--pr-line); padding-bottom: 10px; font-size: .96rem; }
.pr-calc-out b { color: var(--pr-ink); font-size: 1.15rem; white-space: nowrap; }
.pr-calc-out .big b { color: var(--pr-green); font-size: 1.5rem; }
.pr-calc-note { font-size: .82rem; color: var(--pr-muted); line-height: 1.7; }

/* المقارنة */
.pr-table-wrap { overflow-x: auto; max-width: 980px; margin: 0 auto; border: 1px solid var(--pr-line); border-radius: 16px; background: #fff; }
.pr-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.pr-table th, .pr-table td { padding: 13px 16px; border-bottom: 1px solid var(--pr-line); text-align: start; font-size: .95rem; line-height: 1.6; }
.pr-table thead th { background: var(--pr-navy); color: #fff; }
.pr-table thead th.us { background: var(--pr-green); }
.pr-table td.us { font-weight: 700; color: var(--pr-ink); background: #f3faef; }
.pr-table tr:last-child td { border-bottom: 0; }

/* ---------- الأسعار ---------- */
.pr-pricing { background: linear-gradient(180deg, #08111f 0, #0d1b30 100%); color: #c6d4e1; }
.pr-pricing .pr-head h2 { color: #fff; }
.pr-pricing .pr-head p { color: #a9bccd; }
.pr-offer-box {
    display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: center;
    max-width: 760px; margin: -14px auto 34px; padding: 14px 18px; border-radius: 16px;
    background: rgba(232, 69, 44, .12); border: 1px solid rgba(232, 69, 44, .45); color: #ffd9d2; text-align: center;
}
.pr-offer-box strong { color: #fff; }
.pr-offer-box .pr-timer span { background: rgba(232, 69, 44, .35); color: #fff; }
.pr-region { text-align: center; font-size: .88rem; color: #8fa6bb; margin: -20px 0 26px; min-height: 1.4em; }
.pr-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.pr-plan {
    position: relative; background: #fff; color: var(--pr-text); border-radius: 22px; padding: 30px 26px;
    display: flex; flex-direction: column; border: 2px solid transparent;
}
.pr-plan.pop { border-color: var(--pr-green); box-shadow: 0 20px 60px rgba(92, 179, 53, .25); transform: translateY(-8px); }
.pr-badge { position: absolute; top: -14px; inset-inline-start: 50%; transform: translateX(50%); background: var(--pr-green); color: #fff; font-weight: 800; font-size: .82rem; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
html[dir="ltr"] .pr-badge { transform: translateX(-50%); }
.pr-plan h3 { color: var(--pr-ink); font-size: 1.3rem; }
.pr-plan .for { color: var(--pr-muted); font-size: .92rem; margin: 4px 0 16px; min-height: 2.8em; line-height: 1.5; }
.pr-price-old { color: #94a3b8; font-size: 1.05rem; }
.pr-price-old s { text-decoration-thickness: 2px; text-decoration-color: var(--pr-hot); }
.pr-save { display: inline-block; background: #fdecea; color: var(--pr-hot); font-weight: 800; font-size: .8rem; padding: 3px 9px; border-radius: 999px; margin-inline-start: 6px; }
.pr-price { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 2px; direction: ltr; justify-content: flex-end; }
html[dir="ltr"] .pr-price { justify-content: flex-start; }
.pr-price .cur { font-size: 1.4rem; font-weight: 800; color: var(--pr-ink); }
.pr-price .amt { font-size: 3rem; font-weight: 800; color: var(--pr-ink); line-height: 1; font-variant-numeric: tabular-nums; }
.pr-price .per { color: var(--pr-muted); font-size: .95rem; }
.pr-yearly { font-size: .85rem; color: var(--pr-green); font-weight: 700; margin-bottom: 18px; }
.pr-plan ul { display: grid; gap: 10px; margin: 0 0 24px; flex: 1; }
.pr-plan li { display: flex; gap: 9px; font-size: .95rem; line-height: 1.55; }
.pr-plan li i { color: var(--pr-green); margin-top: 4px; flex: none; }
.pr-plan li.no { color: #a0aec0; }
.pr-plan li.no i { color: #cbd5e1; }
.pr-plan .pr-btn-ghost { color: var(--pr-navy); border-color: var(--pr-line); }
.pr-plans-foot { text-align: center; margin-top: 28px; font-size: .92rem; line-height: 1.9; color: #9fb2c4; }
.pr-plans-foot strong { color: #fff; }
.pr-priced[data-loading] .amt, .pr-priced[data-loading] .pr-price-old { opacity: .35; }

/* الضمانات */
.pr-guarantees { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.pr-guarantees div { text-align: center; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 16px 12px; font-size: .9rem; color: #c6d4e1; line-height: 1.6; }
.pr-guarantees i { display: block; color: #8be36a; font-size: 1.3rem; margin-bottom: 6px; }

/* ---------- الأسئلة ---------- */
.pr-faq { max-width: 880px; margin: 0 auto; display: grid; gap: 10px; }
.pr-faq details { background: #fff; border: 1px solid var(--pr-line); border-radius: 14px; padding: 0 20px; }
.pr-faq summary { cursor: pointer; list-style: none; padding: 17px 0; font-weight: 700; color: var(--pr-ink); display: flex; justify-content: space-between; gap: 12px; font-size: 1.02rem; }
.pr-faq summary::-webkit-details-marker { display: none; }
.pr-faq summary::after { content: '+'; font-size: 1.4rem; color: var(--pr-blue); line-height: 1; }
.pr-faq details[open] summary::after { content: '−'; }
.pr-faq details p { padding: 0 0 18px; line-height: 1.95; font-size: .98rem; }

/* ---------- التجربة ---------- */
.pr-trial { background: var(--pr-grad); color: #fff; padding: 80px 0; }
.pr-trial-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.pr-trial h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: #fff; line-height: 1.35; margin-bottom: 12px; }
.pr-trial p { font-size: 1.05rem; line-height: 1.9; color: #eef7ff; }
.pr-trial ul { margin: 18px 0; display: grid; gap: 8px; }
.pr-trial li { display: flex; gap: 9px; align-items: flex-start; }
.pr-trial dl div { display: flex; gap: 10px; margin-top: 6px; }
.pr-trial dt { font-weight: 700; }
.pr-ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }
.pr-form { background: #fff; color: var(--pr-text); border-radius: 20px; padding: 28px; box-shadow: 0 30px 70px rgba(0, 0, 0, .25); }
.pr-form h3 { color: var(--pr-ink); font-size: 1.25rem; margin-bottom: 6px; }
.pr-form .sub { font-size: .9rem; color: var(--pr-muted); margin-bottom: 14px; }
.pr-form label { display: block; font-weight: 600; font-size: .9rem; margin: 12px 0 5px; color: var(--pr-ink); }
.pr-form input, .pr-form select, .pr-form textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--pr-line); border-radius: 10px; font: inherit; font-size: .97rem; color: var(--pr-ink); background: #fff;
}
.pr-form input:focus, .pr-form select:focus, .pr-form textarea:focus { outline: 2px solid var(--pr-blue); border-color: transparent; }
.pr-form .pr-btn { margin-top: 18px; }
.pr-form .alt { text-align: center; font-size: .88rem; color: var(--pr-muted); margin-top: 12px; }
.pr-form .alt a { color: #128c4b; font-weight: 700; }

/* روابط داخلية */
.pr-local { max-width: 900px; margin: 0 auto; text-align: center; line-height: 2; font-size: .98rem; }
.pr-local a { color: var(--pr-blue); font-weight: 600; }
.pr-updated { text-align: center; font-size: .85rem; color: var(--pr-muted); margin-top: 14px; }

/* شريط ثابت على الجوال */
.pr-sticky {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 900; display: none;
    background: rgba(8, 17, 31, .96); backdrop-filter: blur(8px); padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, .1); gap: 8px;
}
.pr-sticky .pr-btn { flex: 1; padding: 12px 10px; font-size: .92rem; }
.pr-sticky.show { display: flex; }

/* ---------- الشاشات الصغيرة ---------- */
@media (max-width: 980px) {
    .pr-hero-grid, .pr-trial-grid, .pr-calc { grid-template-columns: minmax(0, 1fr); }
    .pr-plans { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin: 0 auto; }
    .pr-plan.pop { transform: none; order: -1; }
    .pr-features, .pr-pains, .pr-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pr-inds, .pr-guarantees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .pr-hero { padding: 110px 0 50px; }
    .pr-section { padding: 60px 0; }
    .pr-features, .pr-pains, .pr-steps { grid-template-columns: minmax(0, 1fr); }
    .pr-facts dl { grid-template-columns: minmax(0, 1fr); }
    .pr-facts dd { border-top: 0; padding-top: 0; }
    .pr-cta-row .pr-btn { flex: 1 1 100%; }
    .pr-chat { height: 340px; }
    .pr-calc { padding: 20px; }
    body.has-pr-sticky { padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) {
    .pr-msg { animation: none; opacity: 1; transform: none; }
    .pr-eyebrow .dot { animation: none; }
}

/* ---------- تخصيص حسب بلد الزائر ---------- */
.pr-geo-badge { display: inline-flex; margin-inline-start: 8px; margin-top: 8px; font-size: .88rem; font-weight: 700; color: #d9f5c9; background: rgba(92, 179, 53, .16); border: 1px solid rgba(92, 179, 53, .4); border-radius: 999px; padding: 6px 14px; }
.pr-geo-badge[hidden], .pr-welcome[hidden] { display: none; }
.pr-welcome { background: rgba(92, 179, 53, .15); border: 1px solid rgba(92, 179, 53, .45); color: #e8f8df; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; line-height: 1.7; font-size: .95rem; }
.pr-local-cur { color: var(--pr-muted); font-size: .88rem; min-height: 1.3em; margin-bottom: 2px; }
.pr-local-cur:empty { display: none; }
