/* ==========================================================
   مُوكِّل — pricing.css
   صفحة الباقات بنفس هوية النظام: توكنز theme.css (كحلي + ذهبي) وشريط الصفحة الرئيسية (landing.css)
   ========================================================== */

body.pricing-page { background: var(--bg) !important; color: var(--text); font-family: var(--font); margin: 0; }
.pricing-page .mi { width: 1.1em; height: 1.1em; vertical-align: -0.18em; flex-shrink: 0; }
.pricing-page .landing-nav a[aria-current="page"] { color: var(--gold-300); }

/* -------- Hero: نفس خلفية الصفحة الرئيسية -------- */
.pricing-main { padding: 0; max-width: none; margin: 0; }
.pricing-hero {
  position: relative; text-align: center; color: #fff;
  padding: calc(68px + 56px) 20px 120px; margin-top: -68px;
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(212, 175, 55, .16), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
}
.pricing-hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--r-full);
  background: rgba(212, 175, 55, .12); border: 1px solid rgba(212, 175, 55, .32);
  color: var(--gold-300); font-size: 13.5px; font-weight: 600; margin-bottom: 18px;
}
.pricing-page .pricing-hero-title {
  color: #fff !important; font-size: clamp(28px, 5vw, 46px) !important; line-height: 1.3 !important;
  margin: 0 auto 14px !important; max-width: 820px; font-weight: 700 !important;
}
.pricing-hero-sub { color: rgba(255, 255, 255, .72); font-size: clamp(15px, 2vw, 17px); line-height: 1.9; max-width: 640px; margin: 0 auto; }

/* -------- شهري / مرة واحدة -------- */
.billing-toggle {
  display: inline-flex; gap: 4px; padding: 4px; margin: -28px auto 28px; position: relative; z-index: 2;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-full); box-shadow: var(--sh-md);
}
.billing-toggle button {
  border: 0; background: transparent; padding: 10px 22px; border-radius: var(--r-full); cursor: pointer;
  font: 600 14.5px var(--font); color: var(--text-3); transition: background .2s, color .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.billing-toggle button:hover:not(.active) { color: var(--navy-900); }
.billing-toggle button.active { background: var(--navy-gradient); color: #fff; box-shadow: var(--sh-xs); }
.billing-toggle button.active .mi { color: var(--gold-400); }

/* -------- كروت الباقات -------- */
.pricing-grid {
  max-width: 1120px; margin: 0 auto; padding: 0 20px 72px;
  display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); align-items: stretch;
}
.pricing-loading { grid-column: 1 / -1; text-align: center; color: var(--text-3); padding: 40px; }
.plan-card-lg {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 28px 24px 24px; box-shadow: var(--sh-xs); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.plan-card-lg:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.plan-card-lg.popular { border: 2px solid var(--gold-400); box-shadow: 0 18px 40px -18px rgba(168, 132, 31, .45); }
.plan-badge-lg {
  position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(50%);
  padding: 4px 14px; border-radius: var(--r-full); white-space: nowrap;
  background: var(--gold-gradient); color: var(--navy-950); font-size: 12.5px; font-weight: 700; box-shadow: var(--sh-sm);
}
[dir="ltr"] .plan-badge-lg { transform: translateX(-50%); }
.lifetime-badge {
  align-self: flex-start; padding: 3px 12px; border-radius: var(--r-full); margin-bottom: 10px;
  background: var(--gold-50); border: 1px solid rgba(212, 175, 55, .45); color: var(--gold-600); font-size: 12px; font-weight: 700;
}
.plan-name-lg { font-size: 20px; font-weight: 700; color: var(--navy-900); }
.plan-desc-lg { font-size: 13.5px; color: var(--text-3); margin-top: 2px; }
.plan-price-lg { display: flex; align-items: flex-end; gap: 8px; margin: 18px 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.plan-price-num-lg { font-size: 44px; font-weight: 700; color: var(--navy-900); line-height: 1; font-variant-numeric: tabular-nums; }
.plan-card-lg.popular .plan-price-num-lg {
  background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.plan-price-cur-lg { font-size: 12.5px; color: var(--text-3); line-height: 1.4; padding-bottom: 4px; }
.plan-features-lg { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; flex: 1; }
.plan-features-lg li { position: relative; padding-inline-start: 26px; font-size: 14px; color: var(--text-2); line-height: 1.6; }
.plan-features-lg li::before {
  content: '✓'; position: absolute; inset-inline-start: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
  background: var(--c-success-bg); color: var(--c-success);
}
.plan-features-lg li:last-child { padding-inline-start: 0; padding-top: 10px; border-top: 1px dashed var(--border); color: var(--text-3); font-size: 12.5px; opacity: 1 !important; }
.plan-features-lg li:last-child::before { content: none; }
.plan-cta-lg {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: var(--r-md);
  font: 700 15px var(--font); text-decoration: none; transition: filter .2s, background .2s, border-color .2s;
}
.plan-cta-lg.primary { background: var(--navy-gradient); color: #fff !important; box-shadow: 0 10px 22px -10px rgba(11, 18, 34, .6); }
.plan-cta-lg.primary:hover { filter: brightness(1.15); }
.plan-cta-lg.secondary { background: var(--surface); color: var(--navy-900) !important; border: 1px solid var(--border-strong); }
.plan-cta-lg.secondary:hover { border-color: var(--gold-400); background: var(--gold-50); }

/* -------- الأقسام (مقارنة + أسئلة) -------- */
.pricing-section { max-width: 1120px; margin: 0 auto; padding: 8px 20px 64px; }
.pricing-page .pricing-section-title {
  text-align: center; color: var(--navy-900) !important; font-size: clamp(24px, 3.5vw, 30px) !important;
  margin: 0 0 28px !important; font-weight: 700 !important;
}
.pricing-page .pricing-section-title::after {
  content: ''; display: block; width: 56px; height: 3px; margin: 12px auto 0; border-radius: 3px; background: var(--gold-gradient);
}
.comparison-table-wrapper { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--sh-xs); }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.comparison-table th, .comparison-table td { padding: 12px 16px; text-align: center; border-bottom: 1px solid var(--border); }
.comparison-table th:first-child, .comparison-table td:first-child { text-align: right; color: var(--text-2); font-weight: 600; }
[dir="ltr"] .comparison-table th:first-child, [dir="ltr"] .comparison-table td:first-child { text-align: left; }
.comparison-table thead th { background: var(--navy-gradient); color: #fff; font-weight: 700; position: sticky; top: 0; }
.comparison-table thead th:first-child { color: var(--gold-300); }
.comparison-table tbody tr:nth-child(even) td { background: var(--surface-2); }
.comparison-table tbody tr:last-child td { border-bottom: 0; }
.comparison-table .check { color: var(--c-success); font-weight: 700; font-size: 16px; }
.comparison-table .cross { color: var(--text-4); }
.comparison-table .value { font-weight: 700; color: var(--navy-900); font-variant-numeric: tabular-nums; }

.faq-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-inline-start: 3px solid var(--gold-400);
  border-radius: var(--r-lg); padding: 18px 20px;
}
.pricing-page .faq-q { font-size: 16px !important; color: var(--navy-900) !important; margin: 0 0 6px !important; font-weight: 700 !important; }
.faq-a { margin: 0; color: var(--text-3); font-size: 14.5px; line-height: 1.8; }

/* -------- CTA + الفوتر: نفس الصفحة الرئيسية -------- */
.pricing-cta {
  text-align: center; color: #fff; padding: 80px 20px; margin-top: 16px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(212, 175, 55, .18), transparent 70%),
    linear-gradient(160deg, var(--navy-950), var(--navy-800));
}
.pricing-page .pricing-cta h2 { color: #fff !important; font-size: clamp(24px, 4vw, 34px) !important; margin: 0 0 10px !important; }
.pricing-cta p { color: rgba(255, 255, 255, .72); font-size: 16.5px; margin: 0 0 28px; }
.pricing-cta-wa { color: var(--gold-300) !important; font-size: 14px; font-weight: 600; text-decoration: none; }
.pricing-cta-wa:hover { text-decoration: underline; }
.pricing-footer {
  text-align: center; padding: 28px 20px; background: var(--navy-950); color: rgba(255, 255, 255, .55);
  font-size: 14px; border-top: 1px solid rgba(255, 255, 255, .06); margin: 0 !important;
}
.pricing-footer::before { content: none !important; display: none !important; }
.pricing-footer-links { margin-top: 10px; display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.pricing-footer-links a { color: rgba(255, 255, 255, .72); text-decoration: none; font-weight: 500; }
.pricing-footer-links a:hover { color: var(--gold-300); }

@media (max-width: 520px) {
  .pricing-hero { padding-bottom: 100px; }
  .billing-toggle button { padding: 9px 14px; font-size: 13.5px; }
  .plan-price-num-lg { font-size: 38px; }
}

/* السعودية: الأسعار شاملة ضريبة القيمة المضافة */
.plan-vat-note { margin-top: -6px; margin-bottom: 10px; font-size: 12px; color: var(--text-muted, #8a94a6); text-align: center; }
