/* صفحات الكورسات (/courses/*.html): ستايل واحد للتلات صفحات.
   لون الكورس بييجي من كلاس الـ body: cp-beam (ذهبي) / cp-qs (سماوي) / cp-excel (أخضر). */

:root {
    --bg: #07090d;
    --bg-2: #0b0f15;
    --card: #10151c;
    --card-2: #151c26;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .15);
    --text: #eef2f6;
    --muted: #9ba7b4;
    --soft: #c9d2dc;
    --accent: #ffc107;
    --accent-2: #ff9500;
    --accent-rgb: 255, 193, 7;
    --on-accent: #1a1300;
    --bundle: #ff2f55;
    --bundle-2: #ff7a45;
    --ok: #34d399;
    --radius: 22px;
    --shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.cp-qs {
    --accent: #22d3ee;
    --accent-2: #3b82f6;
    --accent-rgb: 34, 211, 238;
    --on-accent: #041318;
}

.cp-excel {
    --accent: #34d399;
    --accent-2: #16a34a;
    --accent-rgb: 52, 211, 153;
    --on-accent: #03140c;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

/* clip مش hidden: hidden بيخلّي الـ body حاوية سكرول فبيبوّظ الـ sticky (شريط الأقسام وكارت الشراء) */
body.cp { max-width: 100%; overflow-x: clip; }

body.cp {
    margin: 0;
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    background:
        radial-gradient(900px 520px at 88% -8%, rgba(var(--accent-rgb), .16), transparent 60%),
        radial-gradient(700px 500px at -10% 30%, rgba(59, 130, 246, .08), transparent 60%),
        var(--bg);
    color: var(--text);
    font-size: 17px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

.cp a { color: inherit; }
.cp img { max-width: 100%; }
.cp [hidden] { display: none !important; }

.cp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- شريط العرض ---------- */
.cp-offer-bar {
    position: relative;
    z-index: 5;
    background: linear-gradient(90deg, #b3001e, var(--bundle), #ff5f3d);
    color: #fff;
    text-align: center;
    font-weight: 800;
    font-size: 15.5px;
    padding: 9px 16px 9px 120px;
    box-shadow: 0 6px 20px rgba(255, 47, 85, .25);
}

.cp-offer-bar .cp-timer {
    display: inline-block;
    margin-inline-start: 8px;
    padding: 1px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, .28);
    font-variant-numeric: tabular-nums;
    direction: ltr;
}

/* ---------- الهيرو ---------- */
.cp-hero { padding: 64px 0 34px; position: relative; }

.cp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: 44px;
    align-items: center;
}

.cp-crumbs { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.cp-crumbs a { text-decoration: none; color: var(--soft); }
.cp-crumbs a:hover { color: var(--accent); }
.cp-crumbs span { margin: 0 6px; opacity: .6; }

.cp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb), .45);
    background: rgba(var(--accent-rgb), .1);
    color: var(--accent);
    font-weight: 800;
    font-size: 15px;
}

.cp-hero h1 {
    margin: 16px 0 12px;
    font-size: clamp(32px, 4.6vw, 58px);
    line-height: 1.3;
    font-weight: 900;
    letter-spacing: -.3px;
}

.cp-grad {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cp-lead { font-size: clamp(18px, 1.6vw, 21.5px); color: var(--soft); margin: 0 0 22px; max-width: 620px; }

.cp-teacher-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px 8px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line-2);
    text-decoration: none;
    margin-bottom: 26px;
}

.cp-teacher-chip strong { display: block; font-size: 17px; line-height: 1.3; }
.cp-teacher-chip small { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; }

.cp-avatar {
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 22.5px;
    color: var(--on-accent);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18);
}

.cp-stats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.cp-stats li {
    padding: 12px 10px;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    text-align: center;
}

.cp-stats b {
    display: block;
    font-size: 25.5px;
    line-height: 1.2;
    font-weight: 900;
    color: var(--accent);
}

.cp-stats b i { font-size: 22.5px; }
.cp-stats span { display: block; font-size: 14px; color: var(--soft); line-height: 1.5; margin-top: 4px; }

.cp-media {
    position: relative;
    border-radius: var(--radius);
    padding: 10px;
    background: linear-gradient(145deg, rgba(var(--accent-rgb), .55), rgba(255, 255, 255, .06) 40%, rgba(var(--accent-rgb), .25));
    box-shadow: var(--shadow), 0 0 80px rgba(var(--accent-rgb), .12);
}

.cp-media video,
.cp-media .cp-media-art {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 15px;
    background: #000;
    object-fit: cover;
}

.cp-media-tag {
    position: absolute;
    top: 22px;
    right: 22px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .65);
    border: 1px solid var(--line-2);
    font-size: 14px;
    font-weight: 800;
    pointer-events: none;
}

.cp-media-art {
    display: grid !important;
    place-items: center;
    background:
        radial-gradient(circle at 30% 30%, rgba(var(--accent-rgb), .35), transparent 55%),
        linear-gradient(145deg, #0e1a14, #07100b) !important;
    text-align: center;
    padding: 20px;
}

.cp-media-art b { display: block; font-size: clamp(43px, 7vw, 81.5px); line-height: 1; color: var(--accent); font-weight: 900; direction: ltr; }
.cp-media-art span { display: block; color: var(--soft); margin-top: 12px; font-weight: 700; }

/* ---------- المحتوى + كارت الشراء ---------- */
.cp-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 30px;
    align-items: start;
    padding-bottom: 40px;
}

.cp-buy { grid-column: 2; grid-row: 1; }

/* كارت الشراء بيفضل ظاهر وانت بتنزل، بس لو الشاشة طويلة كفاية تعرضه كله */
@media (min-width: 981px) and (min-height: 860px) {
    .cp-buy { position: sticky; top: 18px; }
}
.cp-content { grid-column: 1; grid-row: 1; min-width: 0; }

.cp-buy-card {
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--card-2), var(--card));
    border: 1px solid rgba(var(--accent-rgb), .35);
    box-shadow: var(--shadow);
    padding: 20px;
}

.cp-buy-title { font-weight: 900; font-size: 17px; color: var(--soft); margin-bottom: 12px; }

.cp-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.cp-plan {
    position: relative;
    font: inherit;
    color: var(--text);
    cursor: pointer;
    text-align: center;
    padding: 12px 8px 10px;
    border-radius: 16px;
    border: 1.5px solid var(--line-2);
    background: rgba(255, 255, 255, .02);
    transition: border-color .2s, background .2s, transform .2s;
}

.cp-plan:hover { border-color: rgba(var(--accent-rgb), .6); }
.cp-plan:focus-visible { outline: 3px solid rgba(var(--accent-rgb), .45); outline-offset: 2px; }

.cp-plan.is-active {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), .1);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .1);
}

.cp-plan-name { display: block; font-weight: 900; font-size: 17px; }
.cp-plan-price { display: block; font-weight: 900; font-size: 21.5px; color: var(--accent); direction: ltr; unicode-bidi: isolate; }
.cp-plan-price small { font-size: 13.5px; color: var(--muted); font-weight: 700; }
.cp-plan-old { display: block; font-size: 13.5px; color: #ff8a9b; text-decoration: line-through; }

.cp-plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 12.5px;
    font-weight: 900;
    padding: 1px 10px;
    border-radius: 999px;
    color: var(--on-accent);
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.cp-price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin: 18px 0 4px;
}

.cp-price-now { font-size: 49px; font-weight: 900; line-height: 1; letter-spacing: -1px; }
.cp-price-cur { font-weight: 800; color: var(--soft); }
.cp-price-old { width: 100%; text-align: center; color: #ff8a9b; text-decoration: line-through; font-weight: 700; }
.cp-price-note { text-align: center; color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }

.cp-offer-pill {
    display: block;
    text-align: center;
    margin: 0 auto 12px;
    padding: 5px 12px;
    border-radius: 12px;
    background: rgba(255, 47, 85, .12);
    border: 1px solid rgba(255, 47, 85, .45);
    color: #ffb4c1;
    font-weight: 800;
    font-size: 14.5px;
}

.cp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    border-radius: 16px;
    border: 0;
    font: inherit;
    font-weight: 900;
    font-size: 19px;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s, box-shadow .18s, filter .18s;
}

.cp-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.cp-btn:focus-visible { outline: 3px solid rgba(255, 255, 255, .5); outline-offset: 3px; }

.cp-btn-main {
    color: var(--on-accent) !important;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 30px rgba(var(--accent-rgb), .3);
}

.cp-btn-ghost {
    color: var(--text) !important;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line-2);
}

.cp-includes { list-style: none; padding: 0; margin: 16px 0 0; }

.cp-includes li {
    position: relative;
    padding: 6px 30px 6px 0;
    font-size: 16px;
    color: var(--soft);
    border-top: 1px dashed var(--line);
}

.cp-includes li:first-child { border-top: 0; }

.cp-includes li::before {
    content: "✓";
    position: absolute;
    right: 0;
    top: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13.5px;
    font-weight: 900;
    color: var(--on-accent);
    background: var(--accent);
}

/* عرض الباقة الشاملة */
.cp-bundle {
    position: relative;
    margin-top: 18px;
    padding: 16px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 47, 85, .22), transparent 55%),
        rgba(255, 47, 85, .06);
    border: 1px solid rgba(255, 47, 85, .5);
}

.cp-bundle-or {
    position: absolute;
    top: -13px;
    right: 50%;
    transform: translateX(50%);
    padding: 0 12px;
    background: var(--card);
    color: var(--muted);
    font-size: 14.5px;
    font-weight: 800;
}

.cp-bundle-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cp-bundle-title { font-weight: 900; font-size: 18.5px; line-height: 1.5; }

.cp-save {
    flex: none;
    padding: 3px 11px;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    font-size: 14.5px;
    background: linear-gradient(90deg, var(--bundle), var(--bundle-2));
    box-shadow: 0 6px 16px rgba(255, 47, 85, .35);
}

.cp-bundle p { margin: 6px 0 10px; font-size: 15px; color: var(--soft); line-height: 1.7; }

.cp-bundle-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cp-bundle-price strong { font-size: 30px; font-weight: 900; line-height: 1; }
.cp-bundle-price del { color: var(--muted); font-weight: 700; }
.cp-bundle-price em { font-style: normal; color: var(--ok); font-weight: 800; font-size: 14.5px; }

.cp-btn-bundle {
    color: #fff !important;
    font-size: 17.5px;
    padding: 12px 16px;
    background: linear-gradient(90deg, var(--bundle), var(--bundle-2));
    box-shadow: 0 12px 26px rgba(255, 47, 85, .3);
}

.cp-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.cp-trust i { color: var(--accent); margin-inline-end: 4px; }

/* ---------- تنقل الأقسام ---------- */
.cp-tabs {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0 0 8px;
    padding: 8px 0;
    background: rgba(7, 9, 13, .86);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.cp-tabs-in { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.cp-tabs-in::-webkit-scrollbar { display: none; }

.cp-tabs a {
    flex: none;
    padding: 7px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--soft);
    font-weight: 700;
    font-size: 15.5px;
    border: 1px solid transparent;
}

.cp-tabs a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.cp-tabs a.is-active { color: var(--accent); border-color: rgba(var(--accent-rgb), .45); background: rgba(var(--accent-rgb), .08); }

/* ---------- الأقسام ---------- */
.cp-section { padding: 26px 0 8px; }

.cp-h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(24.5px, 2.6vw, 30px);
    font-weight: 900;
    margin: 0 0 6px;
}

.cp-h2::before {
    content: "";
    width: 6px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.cp-sub { color: var(--muted); margin: 0 0 18px; }

.cp-modules { display: grid; gap: 14px; }

.cp-module {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, var(--card-2), var(--card));
    border: 1px solid var(--line);
    transition: border-color .2s, transform .2s;
}

.cp-module:hover { border-color: rgba(var(--accent-rgb), .45); transform: translateY(-2px); }

.cp-num {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 25.5px;
    font-weight: 900;
    color: var(--accent);
    background: rgba(var(--accent-rgb), .1);
    border: 1px solid rgba(var(--accent-rgb), .3);
    direction: ltr;
}

.cp-module h3 { margin: 0 0 4px; font-size: 21.5px; font-weight: 900; line-height: 1.5; }
.cp-module p { margin: 0; color: var(--soft); font-size: 17px; }

.cp-tag {
    display: inline-block;
    margin-inline-start: 6px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 800;
    vertical-align: middle;
    color: var(--accent);
    background: rgba(var(--accent-rgb), .12);
    direction: ltr;
}

.cp-points { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }

.cp-points li {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 14.5px;
    color: var(--soft);
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
}

/* التطبيق العملي: 3 مباني */
.cp-module-feature {
    border-color: rgba(var(--accent-rgb), .45);
    background:
        radial-gradient(circle at 90% 0%, rgba(var(--accent-rgb), .14), transparent 55%),
        linear-gradient(180deg, var(--card-2), var(--card));
}

.cp-buildings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }

.cp-building {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 8px 12px;
    border-radius: 16px;
    background: rgba(0, 0, 0, .25);
    border: 1px solid var(--line);
    min-height: 150px;
}

.cp-building svg { width: 84px; height: auto; color: var(--accent); }
.cp-building b { font-size: 16px; }

/* قائمة النتايج */
.cp-checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.cp-checks li {
    position: relative;
    padding: 14px 50px 14px 14px;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    font-weight: 700;
    line-height: 1.7;
}

.cp-checks li::before {
    content: "✓";
    position: absolute;
    right: 14px;
    top: 14px;
    width: 26px;
    height: 26px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: var(--on-accent);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.cp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }

.cp-box {
    padding: 16px;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--line);
}

.cp-box h3 { margin: 0 0 6px; font-size: 18px; font-weight: 900; color: var(--accent); }
.cp-box p { margin: 0; color: var(--soft); font-size: 16px; }

/* البرامج */
.cp-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.cp-tool {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--line);
}

.cp-tool-ico {
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line-2);
    font-size: 22.5px;
    color: var(--accent);
    overflow: hidden;
}

.cp-tool-ico img { width: 34px; height: 34px; object-fit: contain; }
.cp-tool b { display: block; font-size: 17.5px; line-height: 1.5; direction: ltr; text-align: right; }
.cp-tool span { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.cp-tool-included { border-color: rgba(var(--accent-rgb), .45); }
.cp-tool-included .cp-tool-flag { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 900; color: var(--ok); }

/* المحاضر */
.cp-teacher {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 22px;
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb), .14), transparent 50%),
        linear-gradient(180deg, var(--card-2), var(--card));
    border: 1px solid var(--line-2);
}

.cp-teacher .cp-avatar { width: 110px; height: 110px; font-size: 49px; box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .12), 0 18px 40px rgba(0, 0, 0, .4); }
.cp-teacher h3 { margin: 0; font-size: 24.5px; font-weight: 900; }
.cp-teacher-role { color: var(--accent); font-weight: 800; margin: 2px 0 10px; }
.cp-teacher ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.cp-teacher li { color: var(--soft); }
.cp-teacher li i { color: var(--accent); width: 20px; text-align: center; margin-inline-end: 6px; }

/* جدول التفاصيل */
.cp-table { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }

.cp-row {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    border-top: 1px solid var(--line);
}

.cp-row:first-child { border-top: 0; }
.cp-row > div { padding: 12px 16px; }
.cp-row > div:first-child { color: var(--muted); font-weight: 800; background: rgba(255, 255, 255, .02); }
.cp-row > div:last-child { font-weight: 700; }

/* خطوات الاشتراك */
.cp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: step; }

.cp-steps li {
    counter-increment: step;
    padding: 16px 14px;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--soft);
    font-size: 15.5px;
}

.cp-steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    margin-bottom: 10px;
    font-weight: 900;
    color: var(--on-accent);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.cp-steps b { display: block; color: var(--text); font-size: 17.5px; margin-bottom: 4px; }

/* الأسئلة الشائعة */
.cp-faq { display: grid; gap: 10px; }

.cp-faq details {
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    overflow: hidden;
}

.cp-faq details[open] { border-color: rgba(var(--accent-rgb), .4); }

.cp-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cp-faq summary::-webkit-details-marker { display: none; }

.cp-faq summary::after {
    content: "+";
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: var(--accent);
    background: rgba(var(--accent-rgb), .1);
    transition: transform .2s;
}

.cp-faq details[open] summary::after { transform: rotate(45deg); }
.cp-faq details > div { padding: 0 18px 16px; color: var(--soft); }
.cp-faq details a { color: var(--accent); font-weight: 800; }

/* الدعوة الأخيرة */
.cp-final {
    margin: 30px 0 10px;
    padding: 30px 24px;
    border-radius: 26px;
    text-align: center;
    background:
        radial-gradient(circle at 50% -20%, rgba(var(--accent-rgb), .3), transparent 60%),
        linear-gradient(180deg, var(--card-2), var(--card));
    border: 1px solid rgba(var(--accent-rgb), .4);
}

.cp-final h2 { margin: 0 0 6px; font-size: clamp(24.5px, 3vw, 32px); font-weight: 900; }
.cp-final p { margin: 0 auto 18px; color: var(--soft); max-width: 560px; }
.cp-final .cp-btn { max-width: 360px; margin: 0 auto; }
.cp-final-alt { display: inline-block; margin-top: 14px; color: #ff8fa3; font-weight: 800; text-decoration: none; }
.cp-final-alt:hover { color: #ffb4c1; text-decoration: underline; }

.cp-foot { text-align: center; color: var(--muted); font-size: 14.5px; padding: 26px 16px 110px; }
.cp-foot a { color: var(--soft); text-decoration: none; margin: 0 8px; }
.cp-foot a:hover { color: var(--accent); }

/* شريط الشراء السريع على الموبايل */
.cp-bar {
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 2147483001;
    display: none;
    align-items: center;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(10, 13, 18, .96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(var(--accent-rgb), .35);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .45);
    transform: translateY(110%);
    transition: transform .25s ease;
}

.cp-bar.is-on { transform: none; }
.cp-bar-price { line-height: 1.25; }
.cp-bar-price b { display: block; font-size: 22.5px; font-weight: 900; }
.cp-bar-price small { color: var(--muted); font-size: 13.5px; }
.cp-bar .cp-btn { width: auto; flex: 1; padding: 12px 14px; font-size: 18px; }

/* ---------- موبايل وتابلت ---------- */
@media (max-width: 980px) {
    .cp-hero { padding-top: 60px; }
    .cp-hero-grid { grid-template-columns: 1fr; gap: 26px; }
    .cp-main { grid-template-columns: 1fr; gap: 10px; }
    .cp-buy, .cp-content { grid-column: 1; grid-row: auto; }
    .cp-buy { position: static; max-width: 560px; width: 100%; margin: 0 auto 10px; }
    .cp-bar { display: flex; }
    body.cp-has-bar .site-assistant-link { bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
    /* زرار "الرئيسية" الثابت فوق على الشمال: شريط الأقسام بيقف قبله */
    .cp-tabs-in { margin-left: 104px; }
    .cp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .cp-offer-bar { padding: 8px 12px 8px 96px; font-size: 14.5px; text-align: right; }
    .cp-hero { padding: 58px 0 18px; }
    .cp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cp-teacher-chip { border-radius: 18px; padding: 8px 12px 8px 8px; }
    .cp-tools { grid-template-columns: 1fr; }
    .cp-checks, .cp-two { grid-template-columns: 1fr; }
    .cp-module { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
    .cp-num { width: 52px; height: 52px; font-size: 22.5px; border-radius: 15px; }
    .cp-buildings { gap: 8px; }
    .cp-building { min-height: 128px; }
    .cp-building svg { width: 62px; }
    .cp-teacher { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .cp-teacher ul { text-align: right; }
    .cp-row { grid-template-columns: 1fr; }
    .cp-row > div:first-child { padding-bottom: 2px; background: none; }
    .cp-row > div:last-child { padding-top: 0; }
    .cp-steps { grid-template-columns: 1fr; }
    .cp-price-now { font-size: 43px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .cp *, .cp *::before, .cp *::after { transition: none !important; }
}
