/* ==========================================================================
   جوار | Jewar Pro — صفحات المشروع / الكمبوند (project.html · compound.html)
   تُحمَّل بعد jewar-pro.css، وكل القواعد تحت body.jp
   ========================================================================== */

body.jp .cpd-page { padding-bottom: 8px; }

/* ── Loading / Error ──────────────────────────────────────────────────── */
body.jp .cpd-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 60vh; gap: 14px;
  color: var(--jp-muted); font-size: 15px; font-weight: 500;
}
body.jp .cpd-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--jp-primary-50);
  border-top-color: var(--jp-primary);
  border-radius: 50%;
  animation: cpd-spin .8s linear infinite;
}
@keyframes cpd-spin { to { transform: rotate(360deg); } }
body.jp .cpd-error {
  flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  min-height: 60vh; padding: 40px 16px; text-align: center;
  color: var(--jp-ink); font-size: 17px; font-weight: 700;
}
body.jp .cpd-error p { margin: 0; }
body.jp .cpd-error-ic {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fdecef; color: #c62845;
}

/* ── Breadcrumb + actions ─────────────────────────────────────────────── */
body.jp .cpd-topline {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 18px; padding-bottom: 14px;
}
body.jp .cpd-crumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  min-width: 0;
  font-size: 13.5px; color: var(--jp-muted); font-weight: 500;
}
body.jp .cpd-crumbs a { color: var(--jp-muted); text-decoration: none; }
body.jp .cpd-crumbs a:hover { color: var(--jp-primary); text-decoration: underline; }
body.jp .cpd-crumb-sep { color: #b9b4c2; font-size: 15px; line-height: 1; }
body.jp .cpd-crumb-cur {
  color: var(--jp-ink); font-weight: 700;
  max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
body.jp .cpd-acts { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
body.jp .cpd-act-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px;
  background: #fff; color: var(--jp-ink-2);
  border: 1px solid var(--jp-line); border-radius: 999px;
  font: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
body.jp .cpd-act-chip:hover { border-color: var(--jp-primary-100); color: var(--jp-primary); background: var(--jp-primary-50); }
body.jp .cpd-act-chip svg { flex-shrink: 0; }
body.jp .cpd-act-chip.fav-active { color: #e0245e; border-color: #f7c7d5; background: #fff5f8; }
body.jp .cpd-allam { color: var(--jp-primary); background: var(--jp-primary-50); border-color: var(--jp-primary-100); }
body.jp .cpd-allam svg { color: var(--jp-accent); }
body.jp .cpd-allam:hover { border-color: var(--jp-primary); }

/* ── Gallery mosaic ───────────────────────────────────────────────────── */
body.jp .cpd-gallery-wrap { padding-top: 0; }
body.jp .cpd-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 8px;
  height: 440px;
  border-radius: var(--jp-radius);
  overflow: hidden;
}
body.jp .cpd-mosaic.n1 { grid-template-columns: 1fr; }
body.jp .cpd-mosaic.n1 .cpd-mosaic-side { display: none; }
body.jp .cpd-gallery {
  position: relative;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  background: var(--jp-bg-soft);
  cursor: zoom-in;
}
body.jp .cpd-slider {
  position: absolute; inset: 0;
  direction: ltr;
  display: flex;
  height: 100%;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
body.jp .cpd-slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; }
body.jp .cpd-slide img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }

body.jp .cpd-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .94); color: var(--jp-ink);
  border: 0; box-shadow: var(--jp-shadow-sm);
  cursor: pointer;
  opacity: 0; transition: opacity .2s, background .15s;
}
body.jp .cpd-gallery:hover .cpd-nav, body.jp .cpd-nav:focus-visible { opacity: 1; }
body.jp .cpd-nav:hover { background: #fff; }
body.jp .cpd-nav-prev { right: 14px; }
body.jp .cpd-nav-next { left: 14px; }

body.jp .cpd-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  z-index: 4;
  display: flex; align-items: center; gap: 5px;
  padding: 5px 8px; border-radius: 999px;
  background: rgba(23, 21, 28, .35);
}
body.jp .cpd-dots:empty { display: none; }
body.jp .cpd-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  border: 0; padding: 0; cursor: pointer; flex-shrink: 0;
  transition: width .25s, background .25s, opacity .25s, transform .25s;
}
body.jp .cpd-dot.near { transform: scale(.85); }
body.jp .cpd-dot.far { transform: scale(.65); opacity: .7; }
body.jp .cpd-dot.active { width: 18px; border-radius: 4px; background: #fff; transform: none; opacity: 1; }

body.jp .cpd-count {
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 4;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(23, 21, 28, .6); color: #fff;
  font-size: 12px; font-weight: 700; direction: ltr;
  display: none;
  direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums;
}

body.jp .cpd-mosaic-side { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; min-height: 0; overflow: hidden; }
body.jp .cpd-mosaic.n2 .cpd-mosaic-side { grid-template-rows: minmax(0, 1fr); }
body.jp .cpd-mosaic-tile {
  position: relative; display: block; width: 100%; height: 100%;
  padding: 0; border: 0; overflow: hidden; cursor: zoom-in;
  background: var(--jp-bg-soft);
}
body.jp .cpd-mosaic-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
body.jp .cpd-mosaic-tile:hover img { transform: scale(1.03); }

body.jp .cpd-all-photos {
  position: absolute; bottom: 14px; inset-inline-end: 14px; z-index: 6;
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px;
  background: #fff; color: var(--jp-ink);
  border: 1px solid var(--jp-line); border-radius: var(--jp-radius-sm);
  font: inherit; font-size: 13px; font-weight: 800;
  box-shadow: var(--jp-shadow-sm);
  cursor: pointer;
}
body.jp .cpd-all-photos:hover { color: var(--jp-primary); border-color: var(--jp-primary-100); }
body.jp .cpd-thumbs-wrap { display: none; }

/* ── Header: identity + price + CTA ───────────────────────────────────── */
body.jp .cpd-head {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--jp-line);
}
body.jp .cpd-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
body.jp .cpd-dev-badge {
  flex-shrink: 0;
  width: 72px; height: 72px; border-radius: 50%;
  place-items: center;
  background: #fff; border: 1px solid var(--jp-line);
  overflow: hidden; text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
body.jp a.cpd-dev-badge[href]:hover { border-color: var(--jp-primary-100); box-shadow: var(--jp-shadow-sm); }
body.jp .cpd-dev-logo { width: 100%; height: 100%; object-fit: cover; display: block; }
body.jp .cpd-id-text { min-width: 0; }
body.jp .cpd-title {
  margin: 0;
  font-size: 30px; font-weight: 800; line-height: 1.3;
  color: var(--jp-ink); letter-spacing: 0;
}
body.jp .cpd-sub {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px;
  margin-top: 6px;
  font-size: 14px; color: var(--jp-muted); font-weight: 500;
}
body.jp .cpd-dev-name { color: var(--jp-primary); font-weight: 700; }
body.jp .cpd-dev-name:empty { display: none; }
body.jp .cpd-loc-row { align-items: center; gap: 5px; }
body.jp .cpd-loc-row svg { flex-shrink: 0; color: var(--jp-muted); }

body.jp .cpd-head-side { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
body.jp .cpd-price-strip { display: flex; align-items: stretch; gap: 0; }
body.jp .cpd-price-strip.is-empty { display: none; }
body.jp .cpd-price-col {
  display: flex; flex-direction: column; gap: 4px;
  padding: 0 20px;
}
body.jp .cpd-price-col + .cpd-price-col { border-inline-start: 1px solid var(--jp-line); }
body.jp .cpd-price-label { font-size: 13px; font-weight: 500; color: var(--jp-muted); white-space: nowrap; }
body.jp .cpd-price-val {
  font-size: 22px; font-weight: 800; color: var(--jp-ink);
  line-height: 1.25; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
body.jp .cpd-price-val small { font-size: 13px; font-weight: 700; color: var(--jp-muted); }
body.jp .cpd-cta { display: flex; gap: 10px; }
body.jp .cpd-cta .jp-btn { height: 48px; padding: 0 20px; font-size: 15px; }
body.jp .jp-btn-wa:hover { background: #1fbd5a; }

/* ── Sections ─────────────────────────────────────────────────────────── */
body.jp .cpd-sec { padding-top: 40px; }
body.jp #cpdPlansWrap > .cpd-sec,
body.jp #cpdAboutWrap > .cpd-sec,
body.jp #cpdFaqWrap > .cpd-sec { padding-top: 40px; }
body.jp #cpdPlansWrap:empty, body.jp #cpdAboutWrap:empty, body.jp #cpdFaqWrap:empty { display: none; }
body.jp .cpd-sec-head {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
  gap: 6px 16px; margin-bottom: 16px;
}
body.jp .cpd-sec-head .cpd-h2 { margin-bottom: 0; }
body.jp .cpd-h2 {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 16px;
  font-size: 22px; font-weight: 800; line-height: 1.35;
  color: var(--jp-ink);
}
body.jp .cpd-h2::before { content: none !important; display: none !important; }
body.jp .cpd-sec-note { font-size: 14px; color: var(--jp-muted); font-weight: 500; }
body.jp .cpd-count-chip {
  display: inline-grid; place-items: center;
  min-width: 28px; height: 26px; padding: 0 8px;
  border-radius: 999px;
  background: var(--jp-primary-50); color: var(--jp-primary);
  font-size: 13px; font-weight: 800;
}

/* ── Details tiles ────────────────────────────────────────────────────── */
body.jp .cpd-spec-tabs { display: flex; flex-wrap: wrap; gap: 12px; }
body.jp .cpd-tab-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  width: 132px; min-height: 112px; padding: 14px 10px;
  background: #fff; color: var(--jp-ink-2);
  border: 1px solid var(--jp-line); border-radius: var(--jp-radius);
  font: inherit; font-size: 13.5px; font-weight: 700; text-align: center;
  cursor: pointer; text-decoration: none;
  transition: border-color .15s, box-shadow .15s, color .15s;
}
body.jp .cpd-tab-btn:hover { border-color: var(--jp-primary-100); box-shadow: var(--jp-shadow-sm); color: var(--jp-primary); }
body.jp .cpd-tab-ic {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--jp-primary-50); color: var(--jp-primary);
}
body.jp .cpd-tab-lbl { line-height: 1.3; }
body.jp .cpd-tab-sub { margin-top: -4px; font-size: 12px; font-weight: 500; color: var(--jp-muted); }
body.jp .cpd-tab-sub:empty { display: none; }

/* ── Payment plans ────────────────────────────────────────────────────── */
body.jp .cpd-plans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
body.jp .cpd-plan {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--jp-line); border-radius: var(--jp-radius);
}
body.jp .cpd-plan-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
body.jp .cpd-plan-ic {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--jp-primary-50); color: var(--jp-primary);
}
body.jp .cpd-plan-lbl { font-size: 14px; font-weight: 700; color: var(--jp-ink-2); }
body.jp .cpd-plan-val {
  font-size: 28px; font-weight: 800; line-height: 1.2;
  color: var(--jp-primary);
  font-variant-numeric: tabular-nums;
}
body.jp .cpd-plan-notes { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--jp-muted); }
body.jp .cpd-plan-due {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  margin-top: 6px; padding: 4px 10px;
  border-radius: 999px; background: var(--jp-accent-50); color: #7a5f0e;
  font-size: 12px; font-weight: 700;
}

/* ── Units ────────────────────────────────────────────────────────────── */
body.jp .cpd-units-bar {
  align-items: center; justify-content: space-between; gap: 12px;
  margin: -4px 0 18px;
}
body.jp .cpd-pills {
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  min-width: 0; padding: 2px;
}
body.jp .cpd-pills::-webkit-scrollbar { display: none; }
body.jp .cpd-pill {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px;
  background: #fff; color: var(--jp-ink-2);
  border: 1px solid var(--jp-line); border-radius: 999px;
  font: inherit; font-size: 13.5px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
}
body.jp .cpd-pill b { font-weight: 700; font-size: 12px; color: var(--jp-muted); }
body.jp .cpd-pill:hover { border-color: var(--jp-primary-100); color: var(--jp-primary); }
body.jp .cpd-pill.active { background: var(--jp-primary); border-color: var(--jp-primary); color: #fff; }
body.jp .cpd-pill.active b { color: rgba(255, 255, 255, .75); }
body.jp .cpd-sort {
  position: relative; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px;
  background: #fff; color: var(--jp-ink-2);
  border: 1px solid var(--jp-line); border-radius: 999px;
  cursor: pointer;
}
body.jp .cpd-sort:focus-within { border-color: var(--jp-primary-600); box-shadow: 0 0 0 3px var(--jp-primary-50); }
body.jp .cpd-sort svg { flex-shrink: 0; color: var(--jp-muted); }
body.jp .cpd-sort select {
  appearance: none; -webkit-appearance: none;
  border: 0; background: transparent; outline: none;
  font: inherit; font-size: 13.5px; font-weight: 700; color: var(--jp-ink);
  padding: 0 2px; cursor: pointer;
}
body.jp #cpdPropsGrid { max-width: none; margin: 0; }
body.jp #cpdPropsGrid .property-card { animation: none; }

body.jp .cpd-pager {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px;
  margin-top: 24px;
}
body.jp .cpd-pg {
  min-width: 40px; height: 40px; padding: 0 12px;
  background: #fff; color: var(--jp-ink-2);
  border: 1px solid var(--jp-line); border-radius: var(--jp-radius-sm);
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
body.jp .cpd-pg:hover:not(:disabled) { border-color: var(--jp-primary-100); color: var(--jp-primary); }
body.jp .cpd-pg.active { background: var(--jp-primary); border-color: var(--jp-primary); color: #fff; }
body.jp .cpd-pg:disabled { opacity: .45; cursor: default; }

body.jp .cpd-empty {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 40px 20px; text-align: center;
  background: var(--jp-bg-soft);
  border: 1px dashed var(--jp-line); border-radius: var(--jp-radius);
  color: var(--jp-muted); font-size: 15px;
}
body.jp .cpd-empty p { margin: 0; }
body.jp .cpd-empty-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--jp-primary); border: 1px solid var(--jp-line);
}

/* ── About (rich text) ────────────────────────────────────────────────── */
body.jp .jp-prose {
  position: relative;
  max-width: 75ch;
  font-size: 16px; line-height: 1.9; color: var(--jp-ink-2);
  overflow-wrap: anywhere;
}
body.jp .jp-prose > :first-child { margin-top: 0; }
body.jp .jp-prose > :last-child { margin-bottom: 0; }
body.jp .jp-prose p { margin: 0 0 14px; }
body.jp .jp-prose h1, body.jp .jp-prose h2, body.jp .jp-prose h3,
body.jp .jp-prose h4, body.jp .jp-prose h5, body.jp .jp-prose h6 {
  margin: 24px 0 8px; color: var(--jp-ink); font-weight: 800; line-height: 1.4;
}
body.jp .jp-prose h1, body.jp .jp-prose h2 { font-size: 19px; }
body.jp .jp-prose h3 { font-size: 17px; }
body.jp .jp-prose h4, body.jp .jp-prose h5, body.jp .jp-prose h6 { font-size: 16px; }
body.jp .jp-prose ul, body.jp .jp-prose ol { margin: 0 0 14px; padding-inline-start: 22px; }
body.jp .jp-prose li { margin-bottom: 4px; }
body.jp .jp-prose li::marker { color: var(--jp-primary-600); }
body.jp .jp-prose a { color: var(--jp-primary); text-decoration: underline; text-underline-offset: 3px; }
body.jp .jp-prose strong, body.jp .jp-prose b { color: var(--jp-ink); font-weight: 700; }
body.jp .jp-prose blockquote {
  margin: 0 0 14px; padding: 10px 16px;
  background: var(--jp-bg-soft); border-radius: var(--jp-radius-sm);
  color: var(--jp-ink-2);
}
body.jp .jp-prose [style] { font-size: inherit !important; font-family: inherit !important; }
body.jp .jp-prose.is-collapsible:not(.is-open) { max-height: 300px; overflow: hidden; }
body.jp .jp-prose.is-collapsible:not(.is-open)::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 96px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}
body.jp .cpd-more-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; padding: 6px 0;
  background: none; border: 0;
  color: var(--jp-primary); font: inherit; font-size: 15px; font-weight: 800;
  cursor: pointer;
}
body.jp .cpd-more-btn:hover { text-decoration: underline; }
body.jp .cpd-more-btn svg { transition: transform .2s; }
body.jp .cpd-more-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
body.jp .cpd-faq-list {
  border: 1px solid var(--jp-line); border-radius: var(--jp-radius);
  overflow: hidden; background: #fff;
}
body.jp .cpd-faq-item + .cpd-faq-item { border-top: 1px solid var(--jp-line); }
body.jp .cpd-faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px;
  background: #fff; border: 0;
  font: inherit; font-size: 16px; font-weight: 700; color: var(--jp-ink);
  text-align: start; cursor: pointer;
}
body.jp .cpd-faq-q:hover { background: var(--jp-bg-soft); }
body.jp .cpd-faq-ic {
  position: relative; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--jp-line); color: var(--jp-primary);
}
body.jp .cpd-faq-ic::before, body.jp .cpd-faq-ic::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 12px; height: 2px; border-radius: 2px; background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .2s;
}
body.jp .cpd-faq-ic::after { transform: translate(-50%, -50%) rotate(90deg); }
body.jp .cpd-faq-item.open .cpd-faq-ic { background: var(--jp-primary); border-color: var(--jp-primary); color: #fff; }
body.jp .cpd-faq-item.open .cpd-faq-ic::after { transform: translate(-50%, -50%) rotate(0deg); }
body.jp .cpd-faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .25s ease;
}
body.jp .cpd-faq-a > div { overflow: hidden; }
body.jp .cpd-faq-item.open .cpd-faq-a { grid-template-rows: 1fr; }
body.jp .cpd-faq-a p {
  margin: 0; padding: 0 20px 18px;
  max-width: 75ch;
  font-size: 15px; line-height: 1.85; color: var(--jp-ink-2);
}

/* ── Mobile contact bar ───────────────────────────────────────────────── */
body.jp .cpd-mbar { display: none; }

/* ── Lightbox / plan modals ───────────────────────────────────────────── */
body.jp .cpd-overlay-modal {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  flex-direction: column; align-items: center; justify-content: center;
  padding: 56px 16px 16px;
  background: rgba(14, 10, 18, .94);
}
body.jp .cpd-overlay-modal.open { display: flex; }
body.jp .cpd-modal-close {
  position: absolute; top: 14px; left: 16px; z-index: 10;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 26px; line-height: 1; cursor: pointer;
}
body.jp .cpd-modal-close:hover { background: rgba(255, 255, 255, .24); }
body.jp .cpd-lb-main {
  position: relative; flex-shrink: 0;
  width: min(1000px, 100%); height: min(62vh, 620px);
  border-radius: var(--jp-radius); overflow: hidden;
  background: #000;
}
body.jp .cpd-lb-main img { width: 100%; height: 100%; object-fit: contain; transition: opacity .3s ease; }
body.jp .cpd-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; justify-content: space-between;
  width: 100%; padding: 0 12px; pointer-events: none;
}
body.jp .cpd-lb-nav-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--jp-ink);
  border: 0; box-shadow: var(--jp-shadow-sm);
  font-size: 24px; line-height: 1; cursor: pointer; pointer-events: auto;
}
body.jp .cpd-lb-nav-btn:hover { background: #fff; }
body.jp .cpd-lb-counter {
  position: absolute; bottom: 12px; right: 12px;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, .6); color: #fff;
  font-size: 13px; font-weight: 700; direction: ltr;
}
body.jp .cpd-lb-thumbs {
  display: flex; gap: 8px;
  width: min(1000px, 100%);
  margin-top: 14px; padding: 4px 0;
  overflow-x: auto; scrollbar-width: none;
}
body.jp .cpd-lb-thumbs::-webkit-scrollbar { display: none; }
body.jp .cpd-lb-thumb {
  width: 84px; height: 58px; flex-shrink: 0;
  border-radius: 8px; object-fit: cover;
  border: 2px solid transparent; opacity: .55; cursor: pointer;
  transition: opacity .2s, border-color .2s;
}
body.jp .cpd-lb-thumb:hover { opacity: .85; }
body.jp .cpd-lb-thumb.active { border-color: #fff; opacity: 1; }
body.jp .cpd-master-img {
  max-width: min(1100px, 100%); max-height: 84vh;
  border-radius: var(--jp-radius); object-fit: contain; background: #fff;
}

/* ── Tablet ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  body.jp .cpd-mosaic { height: 380px; }
  body.jp .cpd-head { flex-direction: column; align-items: stretch; gap: 18px; }
  body.jp .cpd-head-side { justify-content: space-between; }
  body.jp .cpd-price-col:first-child { padding-inline-start: 0; }
}

/* ── Mobile ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  body.jp .cpd-topline { padding-top: 12px; padding-bottom: 10px; gap: 10px; }
  body.jp .cpd-crumbs { font-size: 12.5px; flex-wrap: nowrap; overflow: hidden; }
  body.jp .cpd-crumbs > * { flex-shrink: 0; }
  body.jp .cpd-crumb-cur { flex-shrink: 1; min-width: 0; max-width: none; }
  body.jp .cpd-act-chip { width: 36px; padding: 0; justify-content: center; }
  body.jp .cpd-act-chip span { display: none; }

  body.jp .cpd-mosaic { grid-template-columns: 1fr; height: 250px; }
  body.jp .cpd-mosaic-side { display: none; }
  body.jp .cpd-nav { display: none !important; }
  body.jp .cpd-count { display: inline-block; }
  body.jp .cpd-all-photos { height: 34px; padding: 0 12px; font-size: 12.5px; bottom: 12px; inset-inline-end: 12px; }
  body.jp .cpd-dots { bottom: 12px; left: 16px; transform: none; inset-inline-start: auto; }

  body.jp .cpd-head { padding: 18px 0 22px; gap: 16px; }
  body.jp .cpd-id { align-items: flex-start; gap: 12px; }
  body.jp .cpd-dev-badge { width: 52px; height: 52px; }
  body.jp .cpd-title { font-size: 22px; }
  body.jp .cpd-sub { font-size: 13px; margin-top: 4px; }
  body.jp .cpd-head-side { flex-direction: column; align-items: stretch; gap: 0; }
  body.jp .cpd-price-strip {
    border: 1px solid var(--jp-line); border-radius: var(--jp-radius);
    background: var(--jp-bg-soft);
  }
  body.jp .cpd-price-col { flex: 1 1 0; padding: 12px 14px; min-width: 0; }
  body.jp .cpd-price-col:first-child { padding-inline-start: 14px; }
  body.jp .cpd-price-label { font-size: 12px; white-space: normal; }
  body.jp .cpd-price-val { font-size: 18px; }
  body.jp .cpd-cta { display: none; }

  body.jp .cpd-sec,
  body.jp #cpdPlansWrap > .cpd-sec,
  body.jp #cpdAboutWrap > .cpd-sec,
  body.jp #cpdFaqWrap > .cpd-sec { padding-top: 32px; }
  body.jp .cpd-h2 { font-size: 20px; margin-bottom: 14px; }
  body.jp .cpd-sec-head { margin-bottom: 14px; }

  body.jp .cpd-spec-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
  body.jp .cpd-tab-btn { width: auto; min-height: 100px; font-size: 12.5px; padding: 12px 6px; }
  body.jp .cpd-tab-ic { width: 40px; height: 40px; }

  body.jp .cpd-plans { grid-template-columns: 1fr 1fr; gap: 10px; }
  body.jp .cpd-plan { padding: 14px; }
  body.jp .cpd-plan-ic { width: 32px; height: 32px; }
  body.jp .cpd-plan-val { font-size: 22px; }

  body.jp .cpd-units-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  body.jp .cpd-pills { margin-inline: -16px; padding-inline: 16px; }
  body.jp .cpd-sort { align-self: flex-start; }

  body.jp .jp-prose { font-size: 15px; }
  body.jp .cpd-faq-q { padding: 16px; font-size: 15px; }
  body.jp .cpd-faq-a p { padding: 0 16px 16px; font-size: 14.5px; }

  body.jp.cpd-ready .cpd-mbar {
    position: fixed; inset: auto 0 0 0; z-index: 95;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--jp-line);
    box-shadow: 0 -4px 16px rgba(23, 21, 28, .06);
  }
  body.jp .cpd-mbar .jp-btn { height: 46px; font-size: 15px; }
  body.jp.cpd-ready .wa-float { bottom: 82px !important; }
  body.jp.cpd-ready .compare-bar { bottom: 66px; }

  body.jp .cpd-lb-main { height: 58vh; }
  body.jp .cpd-lb-thumb { width: 64px; height: 46px; }
}

@media (max-width: 380px) {
  body.jp .cpd-plans { grid-template-columns: 1fr; }
}
