/* =============================================================================
   plans-v2.css — إعادة تصميم صفحة خطط الاشتراك (نفس المحتوى، عرض جديد)
   -----------------------------------------------------------------------------
   الفكرة: قصة سعر واحدة متصلة بدل ثلاث جزر منفصلة.
   1) بطاقة تفاعلية موحّدة: اختيار عدد المواد + إيصال حي يتحدث لحظياً.
   2) جدول المقارنة (29 صفاً) → تبويبات حسب الفئة (5-6 صفوف لكل عرض).
   3) شريط أرقام، إضافات، أسئلة شائعة، خاتمة.
   يعتمد متغيرات premium-theme (--pt-*, --brand) ويدعم الوضع الداكن تلقائياً.
   ========================================================================== */

:root {
  --plv-paper:        #FFFDF6;               /* ورق الإيصال */
  --plv-paper-line:   rgba(31, 41, 55, .14); /* خطوط الإيصال المتقطعة */
  --plv-save:         #178A50;               /* لون التوفير */
  --plv-save-bg:      rgba(23, 138, 80, .10);
  --plv-free:         #8A94A3;               /* عمود المجاني */
  --plv-free-bg:      rgba(138, 148, 163, .12);
  --plv-brand-bg:     rgba(212, 110, 42, .10);
  --plv-radius:       var(--pt-radius-lg, 20px);
}

/* في الوضع الداكن يفرض Bootstrap خلفية فاتحة عبر .bg-body — نحيّدها */
html.dark-style .plv-hero.bg-body,
[data-theme='theme-default-dark'] .plv-hero.bg-body {
  background: transparent !important;
}

html.dark-style {
  --plv-paper:      #221E17;
  --plv-paper-line: rgba(230, 232, 236, .18);
  --plv-save:       #4ADE80;
  --plv-save-bg:    rgba(74, 222, 128, .12);
  --plv-free:       #9AA0AB;
  --plv-free-bg:    rgba(154, 160, 171, .14);
  --plv-brand-bg:   rgba(212, 110, 42, .16);
}

/* ---------- هيكل عام ---------- */
.plv-section { padding: 3.5rem 0; }
.plv-section:first-of-type { padding-top: 7.5rem; }

@media (max-width: 991.98px) {
  .plv-section { padding: 2.5rem 0; }
  .plv-section:first-of-type { padding-top: 6.25rem; }
}

.plv-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .95rem;
  border-radius: 999px;
  background: var(--plv-brand-bg);
  color: var(--brand, #D46E2A);
  font-weight: 700;
  font-size: .92rem;
}

.plv-h2 {
  font-family: 'Tajawal', 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 800;
  color: var(--pt-text, #1F2937);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  margin: .9rem 0 .5rem;
}

.plv-sub {
  color: var(--pt-text-2, #6B7280);
  font-size: 1.02rem;
  max-width: 46rem;
  margin: 0 auto;
}

.plv-center { text-align: center; }

/* =============================================================================
   1) البطاقة الموحّدة: الخطة + الحاسبة + الإيصال الحي
   ========================================================================== */
.plv-hero { position: relative; }

.plv-hero-head { text-align: center; margin-bottom: 2.2rem; }

.plv-hero-title {
  font-family: 'Tajawal', sans-serif;
  font-weight: 900;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  color: var(--pt-text, #1F2937);
  margin: .95rem 0 .35rem;
  letter-spacing: -.5px;
}

.plv-hero-title b { color: var(--brand, #D46E2A); font-weight: 900; }

.plv-hero-tag {
  color: var(--pt-text-2, #6B7280);
  font-size: 1.08rem;
  margin: 0;
}

.plv-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 2.2rem;
  align-items: start;
  max-width: 1040px;
  margin-inline: auto;
}

@media (max-width: 991.98px) {
  /* margin-inline: auto — بدونها يلتصق العمود بطرف الحاوية ويترك فراغاً بالجهة الأخرى */
  .plv-hero-grid { grid-template-columns: 1fr; gap: 1.4rem; max-width: 560px; margin-inline: auto; }
}

/* ---- العمود الأيمن: السؤال + المزايا ---- */
.plv-build {
  background: var(--pt-card, #fff);
  border: 1px solid var(--pt-border, #E7EAF0);
  border-radius: var(--plv-radius);
  box-shadow: var(--pt-shadow-sm, 0 2px 8px rgba(16,24,40,.04));
  padding: 1.8rem 1.7rem;
}

.plv-step-label {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  color: var(--pt-text, #1F2937);
  font-size: 1.12rem;
  margin-bottom: .3rem;
}

.plv-step-num {
  display: inline-grid;
  place-items: center;
  inline-size: 1.7rem;
  block-size: 1.7rem;
  border-radius: 50%;
  background: var(--brand, #D46E2A);
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
  flex: none;
}

.plv-step-hint {
  color: var(--pt-text-2, #6B7280);
  font-size: .95rem;
  margin: 0 0 1rem 2.3rem;
}

/* أزرار عدد المواد */
.plv-steps {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0 0 1.6rem 0;
}

.calc-step {
  min-inline-size: 3.1rem;
  block-size: 3.1rem;
  padding-inline: .8rem;
  border-radius: 14px;
  border: 1.5px solid var(--pt-border, #E7EAF0);
  background: var(--pt-card, #fff);
  color: var(--pt-text, #1F2937);
  font-family: 'Tajawal', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color var(--pt-dur, .2s) var(--pt-ease, ease),
              background var(--pt-dur, .2s) var(--pt-ease, ease),
              transform .12s ease;
}

.calc-step:hover { border-color: var(--brand, #D46E2A); transform: translateY(-2px); }

.calc-step[aria-pressed="true"] {
  background: var(--brand, #D46E2A);
  border-color: var(--brand, #D46E2A);
  color: #fff;
  box-shadow: 0 6px 16px rgba(212, 110, 42, .35);
}

.calc-step:focus-visible,
.plv-tab:focus-visible,
.faq-item summary:focus-visible {
  outline: 2px solid var(--brand, #D46E2A);
  outline-offset: 2px;
}

/* المزايا */
.plv-feats {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px dashed var(--pt-border, #E7EAF0);
  display: grid;
  gap: .7rem;
}

.plv-feats li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  color: var(--pt-text, #1F2937);
  font-size: .98rem;
  line-height: 1.55;
}

.plv-feats li i {
  color: var(--plv-save);
  font-size: 1.15rem;
  margin-top: .1rem;
  flex: none;
}

/* =============================================================================
   الإيصال الحي — العنصر المميّز للصفحة
   ========================================================================== */
.plv-receipt-wrap { position: sticky; top: 96px; }

@media (max-width: 991.98px) {
  .plv-receipt-wrap { position: static; }
}

.plv-receipt {
  position: relative;
  background: var(--plv-paper);
  border: 1px solid var(--pt-border, #E7EAF0);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  padding: 1.55rem 1.5rem 1.9rem;
  box-shadow: var(--pt-shadow, 0 8px 24px rgba(16,24,40,.06));
  font-family: 'Tajawal', 'IBM Plex Sans Arabic', sans-serif;
}

/* حافة مثقّبة أسفل الإيصال */
.plv-receipt::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -9px;
  block-size: 10px;
  background:
    linear-gradient(-45deg, transparent 70%, var(--plv-paper) 71%) 0 0 / 14px 10px repeat-x,
    linear-gradient( 45deg, transparent 70%, var(--plv-paper) 71%) 0 0 / 14px 10px repeat-x;
  filter: drop-shadow(0 6px 8px rgba(16, 24, 40, .07));
}

.plv-receipt-head {
  text-align: center;
  border-bottom: 1.5px dashed var(--plv-paper-line);
  padding-bottom: .85rem;
  margin-bottom: .95rem;
}

.plv-receipt-title {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--pt-text, #1F2937);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.plv-receipt-title i { color: var(--brand, #D46E2A); }

.plv-receipt-sem {
  display: block;
  color: var(--pt-text-2, #6B7280);
  font-size: .84rem;
  margin-top: .25rem;
  font-weight: 500;
}

.plv-receipt-rows { display: grid; gap: .55rem; }

.plv-rrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .8rem;
  font-size: .96rem;
  color: var(--pt-text, #1F2937);
}

.plv-rrow > span:first-child { color: var(--pt-text-2, #6B7280); }

.plv-rrow .plv-rnum {
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  white-space: nowrap;
}

.plv-rrow.plv-rrow-before .plv-rnum { text-decoration: line-through; opacity: .6; font-weight: 600; }

.plv-roff {
  color: var(--plv-save);
  font-weight: 800;
  font-size: .84rem;
}

.plv-receipt-total {
  border-top: 1.5px dashed var(--plv-paper-line);
  margin-top: .95rem;
  padding-top: .95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plv-total-label { font-weight: 700; color: var(--pt-text-2, #6B7280); }

.plv-total-num {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--pt-text, #1F2937);
}

.plv-total-num svg { fill: var(--brand, #D46E2A) !important; }

/* ختم التوفير */
.plv-stamp {
  margin-top: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .55rem .8rem;
  border: 1.5px dashed var(--plv-save);
  border-radius: 12px;
  background: var(--plv-save-bg);
  color: var(--plv-save);
  font-weight: 800;
  font-size: .95rem;
  transform: rotate(-1.2deg);
  transition: opacity .2s ease, transform .2s ease;
}

.plv-stamp.is-idle {
  border-color: var(--pt-border, #E7EAF0);
  background: transparent;
  color: var(--pt-text-2, #6B7280);
  font-weight: 600;
  transform: none;
}

@keyframes plv-stamp-pop {
  0%   { transform: rotate(-1.2deg) scale(.85); opacity: .4; }
  60%  { transform: rotate(-1.2deg) scale(1.06); }
  100% { transform: rotate(-1.2deg) scale(1); opacity: 1; }
}

.plv-stamp.is-pop { animation: plv-stamp-pop .35s var(--pt-ease, ease); }

/* أزرار الإيصال */
.plv-receipt-actions { display: grid; gap: .6rem; margin-top: 1.15rem; }

.plv-receipt-actions .btn { font-weight: 700; }

.plv-receipt-pay {
  margin-top: .95rem;
  text-align: center;
  color: var(--pt-text-2, #6B7280);
  font-size: .82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}

.plv-receipt-pay i { color: var(--plv-save); }

/* =============================================================================
   2) شريط الأرقام
   ========================================================================== */
.plv-stats {
  max-width: 1040px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* توحيد مع سكة القمة (560px) في النطاق الأحادي — ثلاث بطاقات متراصة تحت 992 كانت مضغوطة */
@media (max-width: 991.98px) { .plv-stats { grid-template-columns: 1fr; max-width: 560px; } }

.plv-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--pt-card, #fff);
  border: 1px solid var(--pt-border, #E7EAF0);
  border-radius: var(--pt-radius, 16px);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--pt-shadow-sm, 0 2px 8px rgba(16,24,40,.04));
}

.plv-stat-ic {
  inline-size: 3rem;
  block-size: 3rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--plv-brand-bg);
  color: var(--brand, #D46E2A);
  font-size: 1.4rem;
  flex: none;
}

.plv-stat-num {
  font-family: 'Tajawal', sans-serif;
  font-weight: 900;
  font-size: 1.55rem;
  color: var(--brand, #D46E2A);
  line-height: 1.1;
}

.plv-stat h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--pt-text, #1F2937);
  margin: 0 0 .1rem;
}

.plv-stat p {
  margin: 0;
  color: var(--pt-text-2, #6B7280);
  font-size: .88rem;
  line-height: 1.5;
}

/* =============================================================================
   3) المقارنة — تبويبات حسب الفئة
   عمود «المشترك» شريط برتقالي متصل من الرأس حتى آخر صف، مع تاج في الرأس،
   أيقونة لكل فئة، وحركة دخول ناعمة عند تبديل التبويب.
   ========================================================================== */
.plv-compare-card {
  position: relative;
  max-width: 1040px;
  margin: 2rem auto 0;
  background: var(--pt-card, #fff);
  border: 1px solid var(--pt-border, #E7EAF0);
  border-radius: var(--plv-radius);
  box-shadow:
    0 24px 60px -22px rgba(212, 110, 42, .22),
    var(--pt-shadow-sm, 0 2px 8px rgba(16,24,40,.04));
  overflow: hidden;
}

/* خيط متدرج أعلى البطاقة */
.plv-compare-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  block-size: 4px;
  background: linear-gradient(90deg, #E08A2E, #D46E2A 45%, #B85B21);
}

.plv-tabs {
  display: flex;
  gap: .35rem;
  overflow-x: auto;
  padding: 1.15rem 1rem 0;
  border-bottom: 1px solid var(--pt-border, #E7EAF0);
  scrollbar-width: thin;
}

.plv-tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 0;
  background: transparent;
  color: var(--pt-text-2, #6B7280);
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: .97rem;
  padding: .65rem .9rem .85rem;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
  white-space: nowrap;
}

.plv-tab i {
  font-size: 1.1rem;
  opacity: .65;
  transition: opacity .15s ease, transform .2s var(--pt-ease, ease);
}

.plv-tab:hover { color: var(--pt-text, #1F2937); }

.plv-tab:hover i { opacity: 1; }

.plv-tab[aria-selected="true"] {
  color: var(--brand, #D46E2A);
  border-bottom-color: var(--brand, #D46E2A);
}

.plv-tab[aria-selected="true"] i { opacity: 1; transform: translateY(-1px) scale(1.08); }

.plv-panel { padding: 0 1.25rem; }

.plv-panel[hidden] { display: none; }

.plv-panel:not([hidden]) { animation: plv-panel-in .28s var(--pt-ease, ease); }

@keyframes plv-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* شبكة الصفوف — الخلايا ممتدة لكامل ارتفاع الصف ليتّصل شريط المشترك */
.plv-crow,
.plv-chead {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 0 .9rem;
  align-items: stretch;
  padding: 0;
}

.plv-chead > span,
.plv-crow > * {
  display: flex;
  align-items: center;
  padding-block: .85rem;
}

.plv-chead > span {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .1rem;
  color: var(--pt-text-2, #6B7280);
  font-size: .84rem;
  font-weight: 700;
}

.plv-chead { border-bottom: 1px solid var(--pt-border, #E7EAF0); }

.plv-chead small { font-weight: 500; font-size: .76rem; opacity: .85; }

/* رأس عمود المشترك: تاج + بداية الشريط */
.plv-col-paid-title {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--brand, #D46E2A);
}

.plv-col-paid-title i { font-size: 1rem; }

.plv-chead .plv-col-paid small { color: var(--brand, #D46E2A); opacity: .8; }

.plv-crow { border-bottom: 1px dashed var(--pt-border, #E7EAF0); }

.plv-crow:last-child { border-bottom: 0; }

.plv-crow:hover { background: rgba(212, 110, 42, .03); }

.plv-crow .plv-item {
  font-weight: 700;
  color: var(--pt-text, #1F2937);
  font-size: .95rem;
  line-height: 1.45;
}

.plv-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  line-height: 1.35;
}

.plv-pill svg { flex: none; inline-size: 17px; block-size: 17px; }

.plv-pill-free { color: var(--pt-text-2, #6B7280); }

.plv-pill-no   { color: var(--plv-free); }

html.dark-style .plv-pill-no svg { opacity: .45; }

.plv-pill-paid { color: var(--pt-text, #1F2937); font-weight: 600; }

/* الشريط البرتقالي المتصل لعمود المشترك */
.plv-chead .plv-col-paid,
.plv-crow .plv-cell-paid {
  background: linear-gradient(180deg, rgba(212, 110, 42, .10), rgba(212, 110, 42, .06));
  border-inline: 1px solid rgba(212, 110, 42, .16);
  padding-inline: .95rem;
}

.plv-chead .plv-col-paid {
  border-top: 1px solid rgba(212, 110, 42, .16);
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, rgba(212, 110, 42, .16), rgba(212, 110, 42, .08));
}

.plv-crow:last-child .plv-cell-paid {
  border-bottom: 1px solid rgba(212, 110, 42, .16);
  border-radius: 0 0 14px 14px;
  margin-bottom: .6rem;
}

/* شريط الخاتمة */
.plv-compare-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.25rem;
  background: linear-gradient(90deg, rgba(212, 110, 42, .16), rgba(212, 110, 42, .06));
  color: var(--brand, #D46E2A);
  font-weight: 700;
  font-size: .93rem;
  text-align: center;
}

.plv-compare-foot i { font-size: 1.05rem; }

/* الجوال: التبويبات تصبح رقائق ملتفة (كل الفئات ظاهرة بلا تمرير أفقي)،
   وكل خدمة تعرض المجاني والمشترك جنباً إلى جنب في صندوقين واضحين */
@media (max-width: 700px) {
  .plv-tabs {
    flex-wrap: wrap;
    overflow: visible;
    gap: .45rem;
    padding: 1.15rem 1rem .95rem;
  }

  .plv-tab {
    border: 1.5px solid var(--pt-border, #E7EAF0);
    border-radius: 999px;
    padding: .5rem .85rem;
    font-size: .88rem;
  }

  .plv-tab i { font-size: 1rem; }

  .plv-tab[aria-selected="true"] {
    background: linear-gradient(135deg, #E08A2E, #D46E2A);
    border-color: var(--brand, #D46E2A);
    color: #fff;
    box-shadow: 0 6px 14px rgba(212, 110, 42, .30);
  }

  .plv-tab[aria-selected="true"] i { transform: none; }

  .plv-chead { display: none; }

  .plv-panel { padding: .35rem 1rem .55rem; }

  .plv-crow {
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    padding: .95rem 0;
    align-items: stretch;
  }

  .plv-crow:hover { background: transparent; }

  .plv-crow .plv-item {
    grid-column: 1 / -1;
    font-size: .97rem;
    padding-block: 0 .1rem;
  }

  .plv-crow > * { padding-block: 0; }

  .plv-pill {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .35rem;
    border-radius: 14px;
    padding: .65rem .75rem;
    font-size: .85rem;
    align-self: stretch;
    border: 1px solid transparent;
  }

  .plv-pill::before {
    content: attr(data-col);
    font-size: .72rem;
    font-weight: 800;
    opacity: .75;
  }

  .plv-pill-free::before,
  .plv-pill-no::before   { color: var(--pt-text-2, #6B7280); }

  .plv-pill-paid::before { color: var(--brand, #D46E2A); opacity: 1; }

  .plv-pill-free,
  .plv-pill-no   { background: var(--plv-free-bg); }

  .plv-pill-paid {
    background: linear-gradient(160deg, rgba(212, 110, 42, .16), rgba(212, 110, 42, .05));
    border-color: rgba(212, 110, 42, .28);
    box-shadow: 0 4px 12px rgba(212, 110, 42, .10);
  }

  /* الشريط المتصل خاص بسطح المكتب فقط */
  .plv-crow .plv-cell-paid,
  .plv-crow:last-child .plv-cell-paid {
    border-inline: 1px solid rgba(212, 110, 42, .28);
    padding-inline: .75rem;
    margin-bottom: 0;
    border-radius: 14px;
    border-block: 1px solid rgba(212, 110, 42, .28);
  }

  .plv-pill svg { inline-size: 15px; block-size: 15px; }
}

/* =============================================================================
   4) الإضافات
   ========================================================================== */
.plv-addons {
  max-width: 1040px;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 767.98px) { .plv-addons { grid-template-columns: 1fr; } }

.plv-addon {
  background: var(--pt-card, #fff);
  border: 1px solid var(--pt-border, #E7EAF0);
  border-radius: var(--pt-radius, 16px);
  box-shadow: var(--pt-shadow-sm, 0 2px 8px rgba(16,24,40,.04));
  padding: 1.3rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.plv-addon-top { display: flex; align-items: center; gap: .85rem; }

.plv-addon-ic {
  inline-size: 3rem;
  block-size: 3rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--plv-brand-bg);
  color: var(--brand, #D46E2A);
  font-size: 1.45rem;
  flex: none;
}

.plv-addon-title {
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--pt-text, #1F2937);
  margin: 0;
}

.plv-addon-free {
  display: inline-block;
  margin-inline-start: .4rem;
  padding: .12rem .55rem;
  border-radius: 999px;
  background: var(--plv-save-bg);
  color: var(--plv-save);
  font-size: .76rem;
  font-weight: 800;
  vertical-align: middle;
}

.plv-addon-sub {
  margin: 0;
  color: var(--pt-text-2, #6B7280);
  font-size: .94rem;
  line-height: 1.6;
}

.plv-addon-price {
  color: var(--brand, #D46E2A);
  font-weight: 800;
  white-space: nowrap;
}

.plv-addon .btn { align-self: flex-start; margin-top: auto; }

/* =============================================================================
   5) الأسئلة الشائعة
   ========================================================================== */
.plv-faq {
  max-width: 760px;
  margin: 2rem auto 0;
  display: grid;
  gap: .75rem;
}

.faq-item {
  background: var(--pt-card, #fff);
  border: 1px solid var(--pt-border, #E7EAF0);
  border-radius: var(--pt-radius, 16px);
  box-shadow: var(--pt-shadow-sm, 0 2px 8px rgba(16,24,40,.04));
  overflow: hidden;
  transition: border-color .15s ease;
}

.faq-item[open] { border-color: rgba(212, 110, 42, .45); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  font-weight: 700;
  color: var(--pt-text, #1F2937);
  font-size: 1rem;
}

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

.faq-item summary::after {
  content: "\ea5f"; /* ti-chevron-down */
  font-family: 'tabler-icons';
  color: var(--brand, #D46E2A);
  transition: transform .2s ease;
  flex: none;
}

.faq-item[open] summary::after { transform: rotate(180deg); }

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
  color: var(--pt-text-2, #6B7280);
  line-height: 1.75;
  font-size: .97rem;
}

/* =============================================================================
   6) الخاتمة
   ========================================================================== */
.plv-cta {
  max-width: 1040px;
  margin-inline: auto;
background: linear-gradient(180deg, rgba(255, 255, 255, .035) 0%, rgba(255, 255, 255, 0) 24%), linear-gradient(115deg, rgba(201, 121, 36, .075) 0%, rgba(201, 121, 36, .025) 24%, transparent 48%), linear-gradient(245deg, rgba(78, 109, 106, .13) 0%, rgba(78, 109, 106, .045) 36%, transparent 64%), linear-gradient(180deg, #34504b 0%, #101918 46%, #0b1211 100%);
  border-radius: var(--plv-radius);
  padding: 2.4rem 2rem;
  text-align: center;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    inset 0 72px 120px rgba(255,255,255,.018),
    0 -14px 42px rgba(16, 24, 40, .055);
  position: relative;
  overflow: hidden;
}

/* تأثير حركة الخلفية */
.plv-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 110, 42, 0.15) 0%, transparent 70%);
  animation: plv-cta-shine 8s linear infinite;
}

@keyframes plv-cta-shine {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* إضافة لمعة برتقالية إضافية */
.plv-cta::after {
  content: '';
  position: absolute;
  top: -160px;
  left: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 110, 42, 0.22), transparent 68%);
  pointer-events: none;
  animation: plv-cta-glow 6s ease-in-out infinite alternate;
}

@keyframes plv-cta-glow {
  0% { opacity: 0.3; transform: scale(1); }
  100% { opacity: 0.6; transform: scale(1.1); }
}

.plv-cta h2 {
  font-family: 'Tajawal', sans-serif;
  font-weight: 900;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: #fff;
  margin: 0 0 .45rem;
  position: relative;
  z-index: 1;
}

.plv-cta p { color: rgba(255, 255, 255, .70); margin: 0 0 1.4rem; font-size: 1rem; position: relative; z-index: 1; }

.plv-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .7rem;
  position: relative;
  z-index: 1;
}

.plv-cta .btn-light {
  background: linear-gradient(135deg, #D46E2A 0%, #B85B21 100%);
  color: #fff;
  font-weight: 800;
  border: 0;
  box-shadow: 0 4px 15px rgba(212, 110, 42, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.plv-cta .btn-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.plv-cta .btn-light:hover::before {
  left: 100%;
}

.plv-cta .btn-light:hover { 
  background: linear-gradient(135deg, #E08A2E 0%, #D46E2A 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(212, 110, 42, 0.4);
}

.plv-cta .btn-outline-light { 
  border-color: rgba(212, 110, 42, 0.6); 
  color: #fff; 
  font-weight: 700;
  backdrop-filter: blur(10px);
  background: rgba(212, 110, 42, 0.1);
  transition: all 0.3s ease;
}

.plv-cta .btn-outline-light:hover { 
  background: rgba(212, 110, 42, 0.25) !important; 
  border-color: rgba(212, 110, 42, 0.9) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212, 110, 42, 0.25);
}

/* ---------- حركة أقل عند الطلب ---------- */
@media (prefers-reduced-motion: reduce) {
  .calc-step, .plv-stamp, .faq-item summary::after { transition: none; animation: none !important; }
  .calc-step:hover { transform: none; }
}

/* =============================================================================
   ملحق: قواعد كانت مضمّنة داخل <style> في index.html المصدر (pr-4)
   جُمعت هنا ليكون كل «الجديد» في ملف واحد.
   ========================================================================== */

/* رمز الريال السعودي المضمّن — يرث لون النص المحيط */
.plv-sar { fill: currentColor; flex: none; }

/* معاينة الصورة عند المرور — سطح المكتب فقط */
@media (min-width: 992px) {
  .plv-stat { position: relative; }

  .plv-stat-hover-wrapper {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
  }

  .plv-stat:hover .plv-stat-hover-wrapper { display: block; }

  .plv-stat-hover-img {
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    background: white;
    padding: 10px;
  }

  .plv-stat-download-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    color: #333;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 10001;
    font-size: 24px;
  }

  .plv-stat-download-btn:hover {
    background: #f0f0f0;
    transform: scale(1.1);
  }

  .plv-compare-foot { position: relative; }

  .plv-compare-foot-hover-wrapper {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
  }

  .plv-compare-foot:hover .plv-compare-foot-hover-wrapper { display: block; }
}

@media (max-width: 991.98px) {
  .plv-stat-hover-wrapper,
  .plv-compare-foot-hover-wrapper { display: none !important; }
}

/* =============================================================================
   صقل الأزرار — لغة موحّدة لكل أزرار الصفحة
   -----------------------------------------------------------------------------
   حبّة (pill) + لمعة عابرة + رفعة خفيفة + ضغطة ملموسة.
   هوية اللون (التدرج والظل) لزرّ primary تأتي من premium-theme.css §6
   بـ!important وبمتغيرات الثيم — لا نكررها هنا كي تبقى الأزرار متجاوبة
   مع الثيمات الأربعة؛ كل تلوين إضافي هنا عبر var(--brand*) حصراً.
   ========================================================================== */

/* ---------- 1) زرا الإيصال الحي ---------- */
.plv-receipt-actions .btn {
  border-radius: 999px;
  padding-block: .7rem;
  font-family: 'Tajawal', sans-serif;
  letter-spacing: .01em;
}

/* «اشترك الآن» — لمعة عابرة فوق هوية premium-theme */
.plv-receipt-actions .btn-primary {
  position: relative;
  overflow: hidden;
}

.plv-receipt-actions .btn-primary::before {
  content: '';
  position: absolute;
  inset-block: 0;
  left: -100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
  transition: left .5s ease;
}

.plv-receipt-actions .btn-primary:hover::before { left: 100%; }

.plv-receipt-actions .btn-primary:active {
  transform: translateY(0) scale(.985);
}

/* «أسعار المقررات» — التوأم الهادئ: شفاف بإطار يصحو نحاسياً */
.plv-receipt-actions .btn-label-secondary {
  background: transparent;
  border: 1.5px solid var(--pt-border, #E7EAF0);
  color: var(--pt-text-2, #6B7280);
  font-weight: 700;
  transition: transform .16s ease, box-shadow .22s ease,
              background-color .22s ease, border-color .22s ease, color .22s ease;
}

.plv-receipt-actions .btn-label-secondary:hover {
  background: rgba(var(--brand-rgb, 212, 110, 42), .08);
  border-color: var(--brand, #D46E2A);
  color: var(--brand, #D46E2A);
  transform: translateY(-2px);
}

.plv-receipt-actions .btn-label-secondary:active { transform: translateY(0) scale(.985); }

/* ---------- 2) أزرار الحاسبة ---------- */
.calc-step {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 2px rgba(16, 24, 40, .05);
  transition: border-color var(--pt-dur, .2s) var(--pt-ease, ease),
              background var(--pt-dur, .2s) var(--pt-ease, ease),
              box-shadow .2s ease,
              transform .12s ease;
}

.calc-step:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6),
              0 6px 14px rgba(var(--brand-rgb, 212, 110, 42), .18);
}

.calc-step:active { transform: translateY(0) scale(.94); }

.calc-step[aria-pressed="true"] {
  background: linear-gradient(135deg,
              color-mix(in srgb, var(--brand, #D46E2A) 78%, #fff) 0%,
              var(--brand, #D46E2A) 55%,
              var(--brand-hover, #B85B21) 100%);
  box-shadow: 0 6px 16px rgba(var(--brand-rgb, 212, 110, 42), .35),
              inset 0 1px 0 rgba(255, 255, 255, .28);
}

/* ---------- 3) تبويبات المقارنة ---------- */
.plv-tab {
  border-radius: 10px 10px 0 0;
  transition: color .15s ease, border-color .15s ease, background-color .18s ease;
}

.plv-tab:hover { background: rgba(var(--brand-rgb, 212, 110, 42), .07); }

.plv-tab:active i { transform: scale(.9); }

/* ---------- 4) زرا الإضافات ---------- */
.plv-addon .btn {
  border-radius: 999px;
  padding-inline: 1.35rem;
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  transition: transform .16s ease, box-shadow .22s ease,
              background-color .22s ease, border-color .22s ease, color .22s ease;
}

.plv-addon .btn i { transition: transform .2s var(--pt-ease, ease); }

.plv-addon .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(var(--brand-rgb, 212, 110, 42), .22);
}

.plv-addon .btn:hover i { transform: scale(1.15) rotate(-8deg); }

.plv-addon .btn:active { transform: translateY(0) scale(.98); box-shadow: none; }

/* ---------- 5) زرا الخاتمة — مواءمة مع هوية الثيم بدل النحاسي المثبّت ---------- */
.plv-cta .btn-light,
.plv-cta .btn-outline-light {
  border-radius: 999px;
  font-family: 'Tajawal', sans-serif;
}

/* التدرج الأصلي في كتلة .plv-cta أعلاه مثبّت بالهيكس؛ نعيده لمتغيرات الثيم */
.plv-cta .btn-light {
  background: linear-gradient(135deg, var(--brand, #D46E2A) 0%, var(--brand-hover, #B85B21) 100%);
  box-shadow: 0 4px 15px rgba(var(--brand-rgb, 212, 110, 42), .30);
}

.plv-cta .btn-light:hover {
  background: linear-gradient(135deg,
              color-mix(in srgb, var(--brand, #D46E2A) 80%, #fff) 0%,
              var(--brand, #D46E2A) 100%);
  box-shadow: 0 8px 25px rgba(var(--brand-rgb, 212, 110, 42), .40);
}

.plv-cta .btn-light:active {
  transform: translateY(-1px) scale(.99);
  box-shadow: 0 4px 12px rgba(var(--brand-rgb, 212, 110, 42), .35);
}

.plv-cta .btn-outline-light {
  border-color: rgba(var(--brand-rgb, 212, 110, 42), .60);
  background: rgba(var(--brand-rgb, 212, 110, 42), .10);
}

.plv-cta .btn-outline-light:hover {
  background: rgba(var(--brand-rgb, 212, 110, 42), .25) !important;
  border-color: rgba(var(--brand-rgb, 212, 110, 42), .90) !important;
}

.plv-cta .btn-outline-light:active { transform: translateY(0); }

/* ---------- 6) حلقة تركيز موحّدة ---------- */
.plv-receipt-actions .btn:focus-visible,
.plv-addon .btn:focus-visible,
.plv-cta .btn:focus-visible,
.plv-stat-download-btn:focus-visible {
  outline: 2px solid var(--brand, #D46E2A);
  outline-offset: 2px;
}

/* ---------- 7) الوضع الداكن — إطار أوضح وبريق أخف ---------- */
html.dark-style .plv-receipt-actions .btn-label-secondary {
  border-color: rgba(255, 255, 255, .16);
  color: var(--pt-text-2, #9AA0AB);
}

html.dark-style .plv-receipt-actions .btn-label-secondary:hover {
  border-color: var(--brand-light, #E8A05F);
  color: var(--brand-light, #E8A05F);
  background: rgba(var(--brand-rgb, 212, 110, 42), .12);
}

html.dark-style .calc-step {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 1px 2px rgba(0, 0, 0, .25);
}

html.dark-style .calc-step:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06),
              0 6px 14px rgba(var(--brand-rgb, 212, 110, 42), .22);
}

/* ---------- 8) حركة أقل عند الطلب ---------- */
@media (prefers-reduced-motion: reduce) {
  .plv-receipt-actions .btn,
  .plv-receipt-actions .btn-primary::before,
  .plv-receipt-actions .btn-label-secondary,
  .plv-addon .btn,
  .plv-addon .btn i,
  .plv-tab,
  .plv-cta .btn-light,
  .plv-cta .btn-outline-light { transition: none; }

  .plv-receipt-actions .btn-label-secondary:hover,
  .plv-addon .btn:hover,
  .plv-cta .btn-light:hover { transform: none; }
}

/* =============================================================================
   وضع الشاشات — تدقيقات المقاسات الضيقة
   (في نهاية الملف عمداً: قواعد .plv-steps/.calc-step الأساسية تأتي في وسطه،
    ووضع هذه قبلها يجعلها تُدهس بالترتيب رغم تساوي الخصوصية)
   ========================================================================== */

/* أزرار الحاسبة: شبكة منتظمة بدل التفاف يترك «٩» يتيماً في سطر */
@media (max-width: 991.98px) {
  .plv-steps { display: grid; grid-template-columns: repeat(9, 1fr); }
  .calc-step { min-inline-size: 0; padding-inline: 0; }
}

@media (max-width: 575.98px) {
  .plv-steps { grid-template-columns: repeat(5, 1fr); }
}

/* =============================================================================
   بانر الحالة (plv-status) — كسوة التصميم الجديد لبانر «اشتراكك مفعّل» وأخواته
   يتصدر الصفحة؛ بطاقة هادئة بشريط لوني جانبي وقرص أيقونة، تتلون بحسب الحالة
   عبر --plv-st ولا تزاحم واجهة الحاسبة.
   ========================================================================== */

.plv-status {
  --plv-st: var(--brand, #D46E2A);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--pt-card, #fff);
  border: 1px solid var(--pt-border, #E7EAF0);
  border-radius: var(--plv-radius, 20px);
  padding: 1.15rem 1.35rem;
  box-shadow: var(--pt-shadow-sm, 0 2px 8px rgba(16, 24, 40, .04));
}

/* الشريط اللوني الجانبي + توهج ركني خفيف بلون الحالة */
.plv-status::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inline-size: 4px;
  background: var(--plv-st);
}

.plv-status::after {
  content: '';
  position: absolute;
  inset-inline-start: -60px;
  top: -60px;
  inline-size: 180px;
  block-size: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--plv-st) 10%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

/* ألوان الحالات */
.plv-status--subscribed { --plv-st: #2E9E5B; }
.plv-status--renew      { --plv-st: #E0942E; }
.plv-status--upcoming   { --plv-st: #4E9FD1; }
.plv-status--ended      { --plv-st: #8A94A3; }
.plv-status--active     { --plv-st: var(--brand, #D46E2A); }

.plv-status-ic {
  inline-size: 3.4rem;
  block-size: 3.4rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 1.65rem;
  color: var(--plv-st);
  background: color-mix(in srgb, var(--plv-st) 12%, transparent);
  position: relative;
  z-index: 1;
}

.plv-status-body { min-inline-size: 0; position: relative; z-index: 1; }

.plv-status-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .18rem .7rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--plv-st);
  background: color-mix(in srgb, var(--plv-st) 10%, transparent);
}

.plv-status-badge i { font-size: .7rem; }

.plv-status-title {
  font-family: 'Tajawal', 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--pt-text, #1F2937);
  margin: .3rem 0 .15rem;
}

.plv-status-text {
  margin: 0;
  color: var(--pt-text-2, #6B7280);
  font-size: .95rem;
}

.plv-status-text strong { color: var(--plv-st); }

.plv-status-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: none;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.plv-status-actions .btn {
  border-radius: 999px;
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  white-space: nowrap;
}

/* الوضع الداكن: درجات أفتح للتباين على الأسطح الداكنة */
html.dark-style .plv-status--subscribed { --plv-st: #5BD98A; }
html.dark-style .plv-status--renew      { --plv-st: #F0B45C; }
html.dark-style .plv-status--upcoming   { --plv-st: #7CC0EC; }
html.dark-style .plv-status--ended      { --plv-st: #A9B1BC; }
html.dark-style .plv-status--active     { --plv-st: var(--brand-light, #E8A05F); }

/* شاشات ضيقة: تكديس عمودي والأزرار بعرض كامل */
@media (max-width: 767.98px) {
  .plv-status { flex-direction: column; align-items: flex-start; gap: .85rem; padding: 1.15rem 1.2rem; }
  .plv-status-actions { margin-inline-start: 0; inline-size: 100%; }
  .plv-status-actions .btn { flex: 1 1 auto; text-align: center; }
}

/* حين يتصدر بانر الحالة الصفحة: قسم الحاسبة يلتصق به بدل حشوته العلوية الكاملة */
.plv-section.plv-tight-top,
.plv-section.plv-tight-top:first-of-type { padding-top: 1.25rem; }
