﻿/* Extracted from layouts/landing_public.php — shared landing base */
:root {
  --lp-primary: #005B6F;
  --lp-primary-dark: #004555;
  --lp-primary-light: #0a7a94;
  --lp-gold: #C5B358;
  --lp-gold-soft: #e8ddb0;
  --lp-bg: #eef3f6;
  --lp-card: #ffffff;
  --lp-text: #1a2832;
  --lp-muted: #5c6f7d;
  --lp-border: #d4dee6;
  --lp-danger: #b91c1c;
  --lp-success: #0d6b4a;
  --lp-radius: 16px;
  --lp-shadow: 0 12px 40px rgba(0, 45, 55, 0.1);
  --lp-font: 'Alexandria', Tahoma, Arial, sans-serif;
}
* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}
/* داخل قشرة الموقع العام: لا نضيّق html بطريقة تكسر الميجا منيو */
html:has(body.pw-body) {
  overflow-x: clip;
  max-width: none;
}
/* لا تُطبَّق على بوابة الطالب (.student-app) حتى لا تُكسر الهيدر/الشريط السفلي */
body:not(.pw-body):not(.student-app),
body:not(.pw-body):not(.student-app) button,
body:not(.pw-body):not(.student-app) input,
body:not(.pw-body):not(.student-app) select,
body:not(.pw-body):not(.student-app) textarea {
  font-family: var(--lp-font);
}
body:not(.pw-body):not(.student-app) {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(0, 91, 111, 0.07), transparent 55%),
    radial-gradient(ellipse 70% 40% at 100% 100%, rgba(197, 179, 88, 0.06), transparent 50%),
    linear-gradient(180deg, #eef4f7 0%, #f6f9fb 48%, #eef2f5 100%);
  color: var(--lp-text);
  line-height: 1.6;
}
body:not(.pw-body):not(.student-app) img,
body:not(.pw-body):not(.student-app) video,
body:not(.pw-body):not(.student-app) svg,
body:not(.pw-body):not(.student-app) iframe {
  max-width: 100%;
  height: auto;
}
.student-app .sp-pay-page,
.student-app .sp-pay-page button,
.student-app .sp-pay-page input,
.student-app .sp-pay-page select,
.student-app .sp-pay-page textarea {
  font-family: var(--lp-font);
}
.student-app .sp-pay-page img,
.student-app .sp-pay-page video,
.student-app .sp-pay-page iframe {
  max-width: 100%;
  height: auto;
}
.lp-page a,
.lp-wrap a { color: var(--lp-primary); text-decoration: none; }
.lp-page a:hover,
.lp-wrap a:hover { text-decoration: underline; }

.lp-page {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
.lp-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 91, 111, 0.08);
  box-shadow: 0 4px 20px rgba(0, 45, 55, 0.05);
}
.lp-site-header__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  text-align: start;
}
.lp-site-header__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  max-width: min(560px, 100%);
  min-width: 0;
}
.lp-site-header__logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  flex-shrink: 0;
}
.lp-site-header__logo-fallback {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: linear-gradient(135deg, var(--lp-gold-soft), #fff);
  border: 1px solid rgba(197, 179, 88, 0.45);
  box-shadow: 0 4px 14px rgba(0, 91, 111, 0.08);
  flex-shrink: 0;
}
.lp-site-header__name {
  margin: 0;
  font-size: clamp(0.82rem, 2.2vw, 0.98rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--lp-primary-dark);
  letter-spacing: 0.01em;
  min-width: 0;
}
.lp-site-header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-inline-start: auto;
}
.lp-site-header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
  flex: 0 0 auto;
  max-width: 100%;
}
.lp-site-header__btn--ghost {
  border: 1px solid var(--lp-border);
  background: #fff;
  color: var(--lp-primary) !important;
  box-shadow: 0 2px 8px rgba(0, 91, 111, 0.05);
}
.lp-site-header__btn--ghost:hover {
  border-color: rgba(0, 91, 111, 0.25);
  background: #f8fcfd;
  transform: translateY(-1px);
}
.lp-site-header__btn--primary {
  border: none;
  background: linear-gradient(135deg, var(--lp-primary), var(--lp-primary-light));
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(0, 91, 111, 0.28);
}
.lp-site-header__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 91, 111, 0.34);
}
.lp-site-header--empty .lp-site-header__inner--empty {
  min-height: 72px;
  padding: 12px 20px;
  box-sizing: border-box;
}

.lp-site-footer {
  margin-top: auto;
  padding: 0 16px max(28px, env(safe-area-inset-bottom, 0px));
  background: transparent;
}
.lp-site-footer__inner {
  max-width: 720px;
  margin: 0 auto;
}
.lp-site-footer__contact {
  padding: 22px 20px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
  border: 1px solid rgba(0, 91, 111, 0.1);
  box-shadow: 0 10px 36px rgba(0, 45, 55, 0.07);
}
.lp-site-footer__title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--lp-primary-dark);
  text-align: center;
}
.lp-site-footer__lead {
  margin: 0 0 16px;
  font-size: 0.86rem;
  color: var(--lp-muted);
  text-align: center;
  line-height: 1.55;
}
.lp-site-footer__grid {
  display: grid;
  gap: 10px;
}
@media (min-width: 560px) {
  .lp-site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.lp-site-footer__card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--lp-border);
  min-width: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lp-site-footer__card:hover {
  border-color: rgba(0, 91, 111, 0.22);
  box-shadow: 0 4px 14px rgba(0, 91, 111, 0.06);
}
.lp-site-footer__card-ico {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #e8f4f7, #f4fafb);
  color: var(--lp-primary);
}
.lp-site-footer__card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lp-site-footer__card-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--lp-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lp-site-footer__card-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--lp-text);
  text-decoration: none;
  word-break: break-word;
  line-height: 1.35;
}
a.lp-site-footer__card-value:hover {
  color: var(--lp-primary);
  text-decoration: underline;
}
.lp-site-footer__copy-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  background: #eef6f8;
  color: var(--lp-primary);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lp-site-footer__copy-btn:hover {
  background: var(--lp-primary);
  color: #fff;
}
.lp-site-footer__copy-btn--done {
  background: #ecfdf5;
  color: var(--lp-success);
}
.lp-site-footer__bottom {
  margin-top: 18px;
  text-align: center;
  padding: 0 8px;
}
.lp-site-footer__copyright {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lp-muted);
}
.lp-site-footer__privacy {
  margin: 0;
  font-size: 0.74rem;
  color: var(--lp-muted);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .lp-site-header__inner {
    padding: 10px 12px;
    gap: 10px;
  }
  .lp-site-header--empty .lp-site-header__inner--empty {
    min-height: 60px;
    padding: 10px 12px;
  }
  .lp-site-header__logo {
    height: 40px;
    max-width: 110px;
  }
  .lp-site-header__name {
    font-size: 0.78rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .lp-site-header__nav {
    width: 100%;
    margin-inline-start: 0;
    justify-content: stretch;
  }
  .lp-site-header__btn {
    flex: 1 1 calc(50% - 4px);
    white-space: normal;
    line-height: 1.3;
    font-size: 0.72rem;
    min-height: 38px;
    padding: 7px 10px;
  }
  .lp-site-footer__contact {
    padding: 18px 14px 16px;
  }
  .lp-site-footer__grid {
    grid-template-columns: 1fr;
  }
  .lp-site-footer__card {
    flex-wrap: wrap;
  }
  .lp-site-footer__copy-btn {
    width: 100%;
    margin-top: 4px;
  }
}

.lp-main {
  flex: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 28px 16px 32px;
}
.lp-wrap {
  width: 100%;
  max-width: 720px;
  min-width: 0;
  margin: 0 auto;
}
.lp-wrap--wide { max-width: 960px; }
.lp-browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.lp-browse-card {
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  overflow: hidden;
  box-shadow: var(--lp-shadow);
  display: flex;
  flex-direction: column;
}
.lp-browse-card__img {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e8f4f7;
}
.lp-browse-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lp-browse-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.lp-browse-card__title {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.4;
}
.lp-browse-card__title a { color: var(--lp-primary-dark); text-decoration: none; font-weight: 700; }
.lp-browse-card__title a:hover { text-decoration: underline; }
.lp-browse-card__sub { margin: 0 0 8px; font-size: 0.85rem; color: var(--lp-muted); }
.lp-browse-card__price { margin: 0 0 12px; font-weight: 700; color: var(--lp-primary); font-size: 0.95rem; }
.lp-browse-card__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}
.lp-browse-card__date-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e8f4f7;
  color: #0f5f6e;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}
.lp-browse-card__date-chip--more {
  background: #f1f5f9;
  color: #475569;
}
.lp-browse-card__dates-note {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--lp-muted);
}
.lp-browse-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  width: 100%;
}
.lp-browse-card__actions .lp-btn {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 6px;
  font-size: 0.8rem;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
  box-shadow: none;
}
.lp-browse-card__actions .lp-btn:only-child {
  grid-column: 1 / -1;
}
.lp-btn--details {
  background: #2563eb;
  color: #fff !important;
  border: none;
  text-align: center;
  padding: 10px 8px;
  font-size: 0.85rem;
}
.lp-btn--details:hover { background: #1d4ed8; }
.lp-btn--register {
  background: #16a34a;
  color: #fff !important;
  border: none;
  text-align: center;
  padding: 10px 8px;
  font-size: 0.85rem;
}
.lp-btn--register:hover { background: #15803d; }
.lp-browse-card--quorum .lp-browse-card__img--placeholder {
  background: linear-gradient(145deg, #fff7ed, #fef3c7);
}
.lp-browse-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 18px;
  padding: 14px 16px;
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  box-shadow: var(--lp-shadow);
}
.lp-browse-filter__label {
  font-weight: 700;
  color: var(--lp-primary-dark);
  font-size: 0.9rem;
  margin: 0;
}
.lp-browse-filter__control {
  position: relative;
  flex: 1 1 220px;
  max-width: 360px;
}
.lp-browse-filter__select {
  width: 100%;
  appearance: none;
  border: 1px solid var(--lp-border);
  border-radius: 10px;
  padding: 10px 38px 10px 14px;
  font: inherit;
  font-size: 0.92rem;
  background: #fff;
  color: var(--lp-text);
}
[dir="rtl"] .lp-browse-filter__select {
  padding: 10px 14px 10px 38px;
}
.lp-browse-filter__ico {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 12px;
  color: var(--lp-primary);
  pointer-events: none;
}
[dir="rtl"] .lp-browse-filter__ico {
  right: auto;
  left: 12px;
}
.lp-promo-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1px solid #86efac;
  border-radius: 12px;
  color: var(--lp-text);
}
.lp-promo-banner__label {
  font-weight: 700;
  color: var(--lp-success);
  font-size: 0.88rem;
}
.lp-promo-banner__code {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--lp-primary-dark);
  background: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px dashed #86efac;
}
.lp-promo-banner__hint {
  font-size: 0.85rem;
  color: var(--lp-muted);
}
.lp-detail-breadcrumb {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--lp-muted);
}
.lp-detail-breadcrumb a { color: var(--lp-primary); text-decoration: none; }
.lp-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(240px, 320px);
  gap: 20px;
  margin-bottom: 28px;
  align-items: start;
}
.lp-detail-hero__img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--lp-shadow);
}
.lp-detail-hero__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(145deg, #e8f4f7, #f7f3e3);
}
.lp-detail-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 91, 111, 0.1);
  color: var(--lp-primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
}
.lp-detail-badge--quorum { background: rgba(234, 88, 12, 0.12); color: #c2410c; }
.lp-detail-hero h1 { margin: 0 0 10px; font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.25; }
.lp-detail-hero__sub { margin: 0 0 12px; color: var(--lp-muted); }
.lp-detail-quorum { margin-top: 14px; }
.lp-detail-quorum__bar {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-bottom: 6px;
}
.lp-detail-quorum__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #22c55e);
}
.lp-detail-sidebar__card {
  position: sticky;
  top: 16px;
  padding: 18px;
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  background: var(--lp-card);
  box-shadow: var(--lp-shadow);
}
.lp-detail-sidebar__price {
  margin: 0 0 14px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--lp-primary-dark);
}
.lp-detail-sidebar__cta,
.lp-detail-sidebar__back { display: block; width: 100%; text-align: center; margin-top: 8px; }
.lp-btn--ghost {
  background: transparent;
  color: var(--lp-muted) !important;
  border: 1px solid var(--lp-border);
}
.lp-detail-content {
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--lp-shadow);
}
.lp-detail-content .tc-preview { max-width: none; }
.lp-detail-foot-cta {
  margin-top: 24px;
  text-align: center;
}
.lp-detail-foot-cta .lp-btn--register {
  display: inline-block;
  min-width: 240px;
  padding: 14px 24px;
  font-size: 1rem;
}
@media (max-width: 960px) {
  .lp-detail-hero { grid-template-columns: 1fr; }
  .lp-detail-sidebar__card { position: static; }
}
@media (max-width: 520px) {
  .lp-browse-card__actions {
    grid-template-columns: 1fr;
  }
  .lp-browse-card__actions .lp-btn:only-child {
    grid-column: auto;
  }
}
.lp-browse-card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(145deg, #e8f4f7, #f7f3e3);
  color: var(--lp-primary);
  text-decoration: none;
}
.lp-browse-card__img--bundle {
  background: linear-gradient(145deg, rgba(0, 91, 111, 0.12), rgba(197, 179, 88, 0.2));
}

.lp-browse-tabs {
  display: flex;
  gap: 8px;
  margin: 0 auto 20px;
  max-width: 420px;
  padding: 4px;
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  box-shadow: var(--lp-shadow);
}
.lp-browse-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--lp-muted);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lp-browse-tab:hover {
  color: var(--lp-primary-dark);
  background: rgba(0, 91, 111, 0.06);
}
.lp-browse-tab.is-active {
  background: var(--lp-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 91, 111, 0.25);
}
.lp-browse-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.25);
}
.lp-browse-tab:not(.is-active) .lp-browse-tab__count {
  background: #e8f4f7;
  color: var(--lp-primary);
}
.lp-browse-panel[hidden] { display: none !important; }
.lp-browse-hero-desc[hidden] { display: none; }

.lp-hero {
  text-align: center;
  margin-bottom: 20px;
  padding: 0 8px;
}
.lp-program-kicker-wrap {
  text-align: center;
  margin-bottom: 10px;
  padding: 0 8px;
}
.lp-course-header-block {
  margin-bottom: 16px;
}
.lp-program-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--lp-primary-dark);
  background: linear-gradient(135deg, #fff 0%, #f0fdfa 100%);
  border: 1px solid #99f6e4;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 91, 111, 0.08);
}
.lp-pricing-strip {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #10b981;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.1);
}
.lp-pricing-strip__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.lp-pricing-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  border: 1px solid transparent;
}
.lp-pricing-chip__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.72rem;
  flex-shrink: 0;
}
.lp-pricing-chip--free {
  color: #047857;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-color: #6ee7b7;
}
.lp-pricing-chip--free .lp-pricing-chip__ico {
  background: #10b981;
  color: #fff;
}
.lp-pricing-chip--cert {
  color: #4338ca;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  border-color: #a5b4fc;
}
.lp-pricing-chip--cert .lp-pricing-chip__ico {
  background: #6366f1;
  color: #fff;
  font-size: 0.65rem;
}
.lp-pricing-chip--paid {
  color: #0c4a6e;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  border-color: #7dd3fc;
}
.lp-pricing-chip--paid .lp-pricing-chip__ico {
  background: #0ea5e9;
  color: #fff;
}
.lp-hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lp-primary);
  background: #fff;
  border: 1px solid var(--lp-gold-soft);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.lp-hero-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin: 0 auto 8px;
  max-width: 100%;
}
.lp-hero-title-row--sub {
  margin-bottom: 0;
}
.lp-hero-title-row h1 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  color: var(--lp-primary-dark);
  line-height: 1.35;
}
.lp-hero-course-name {
  margin: 0;
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 700;
  color: var(--lp-primary-dark);
  line-height: 1.35;
}
.lp-hero p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 0.95rem;
  max-width: 520px;
  margin-inline: auto;
}
.lp-course-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.lp-course-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.3;
  border: 1px solid transparent;
  white-space: nowrap;
}
.lp-course-badge__ico {
  font-size: 0.75em;
  line-height: 1;
  opacity: 0.9;
}
.lp-course-badge__lbl {
  opacity: 0.85;
  font-weight: 700;
}
.lp-course-badge__val {
  font-weight: 700;
}
.lp-course-badge--start {
  color: var(--lp-primary-dark);
  background: #e8f4f7;
  border-color: #b8dce6;
}
.lp-course-badge--duration {
  color: #5c4a12;
  background: #f7f3e3;
  border-color: var(--lp-gold-soft);
}
.lp-browse-card__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px 8px;
  margin-bottom: 4px;
}
.lp-browse-card__title-row .lp-course-badges {
  justify-content: flex-start;
}
.lp-browse-card__title-row h2 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.lp-browse-traits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.lp-browse-trait {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  border: 1px solid transparent;
  white-space: nowrap;
}
.lp-browse-trait--in_person {
  color: #1a4d6e;
  background: #e8f4f7;
  border-color: #b8dce6;
}
.lp-browse-trait--online {
  color: #0d5c3a;
  background: #e6f5ee;
  border-color: #a8dcc4;
}
.lp-browse-trait--hybrid {
  color: #4a3d8c;
  background: #eeeaf8;
  border-color: #c9bfe8;
}
.lp-browse-trait--cert {
  color: #7a4f0a;
  background: #fdf3e3;
  border-color: #e8c99a;
}

.lp-browse-card__sub--tiers {
  font-size: 0.78rem;
  line-height: 1.4;
  margin-bottom: 6px;
}
.lp-bundle-courses {
  margin: 0 0 10px;
}
.lp-bundle-courses__lead {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--lp-primary);
  line-height: 1.35;
}
.lp-bundle-courses__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: flex-start;
}
.lp-bundle-course-badge {
  display: inline-block;
  max-width: 100%;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1.25;
  color: #3d5160;
  background: #f0f6f8;
  border: 1px solid #c5dde4;
  word-break: break-word;
}
.lp-bundle-courses--compact {
  margin-bottom: 6px;
}
.lp-bundle-courses--compact .lp-bundle-courses__lead {
  font-size: 0.74rem;
  margin-bottom: 4px;
}
.lp-bundle-courses--compact .lp-bundle-course-badge {
  font-size: 0.54rem;
  padding: 1px 5px;
}
.lp-bundle-price-block--tier {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--lp-border);
}
.lp-bundle-price-block--tier:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.lp-bundle-price--nested {
  margin: 0;
  padding: 8px 10px;
}
.lp-bundle-price {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4fafb;
  border: 1px solid #d4dee6;
}
.lp-bundle-price--tier {
  margin-top: 8px;
  background: #fff;
}
.lp-bundle-price__tier-name {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--lp-primary-dark);
}
.lp-bundle-price__free {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0a7a5c;
  line-height: 1.4;
}
.lp-bundle-price__paid,
.lp-bundle-price__certs {
  margin: 0 0 4px;
  font-size: 0.8rem;
  color: #3d5160;
  line-height: 1.45;
}
.lp-bundle-price__certs-after {
  color: var(--lp-primary);
  font-weight: 800;
}
.lp-bundle-price__certs-was {
  margin-inline-start: 6px;
  font-size: 0.72rem;
  color: #7a8f9c;
  text-decoration: line-through;
  font-weight: 600;
}
.lp-bundle-price__certs-save {
  margin: 0 0 4px;
  font-size: 0.72rem;
  color: #0a7a5c;
  font-weight: 600;
  line-height: 1.4;
}
.lp-bundle-price__certs-note {
  margin: 0;
  font-size: 0.68rem;
  color: #7a8f9c;
  line-height: 1.35;
}
.lp-bundle-aside .lp-bundle-courses {
  margin-bottom: 8px;
}
.lp-bundle-aside .lp-bundle-courses__lead {
  font-size: 0.72rem;
}
.lp-bundle-aside .lp-bundle-course-badge {
  font-size: 0.56rem;
  padding: 2px 5px;
}
.lp-card {
  background: var(--lp-card);
  border-radius: var(--lp-radius);
  border: 1px solid rgba(0, 91, 111, 0.08);
  box-shadow: 0 16px 48px rgba(0, 45, 55, 0.08);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.lp-card-body { padding: 22px 20px; }
@media (min-width: 600px) {
  .lp-card-body { padding: 28px 32px; }
}

.lp-cover {
  position: relative;
  width: 100%;
  height: clamp(180px, 34vw, 280px);
  margin: 0;
  overflow: hidden;
  background: linear-gradient(145deg, var(--lp-primary), var(--lp-primary-light));
  direction: ltr;
}
.lp-cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-cover__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 3rem;
  opacity: 0.35;
}
.lp-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border: 0;
}
.lp-cover__details-btn {
  position: absolute;
  bottom: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--lp-primary-dark) !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 4px 18px rgba(0, 45, 55, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}
.lp-cover__details-btn:hover {
  background: var(--lp-primary);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 91, 111, 0.32);
}
.lp-cover__details-btn::before {
  content: 'ℹ';
  font-size: 0.85em;
  opacity: 0.85;
}

.lp-alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.lp-alert.ok {
  background: #ecfdf5;
  color: var(--lp-success);
  border: 1px solid #a7f3d0;
}
.lp-alert.err {
  background: #fef2f2;
  color: var(--lp-danger);
  border: 1px solid #fecaca;
}

.lp-account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 16px;
  padding: 5px;
  border-radius: 12px;
  background: linear-gradient(180deg, #eef2f6 0%, #e8edf2 100%);
  border: 1px solid var(--lp-border);
}
.lp-account-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--lp-muted);
  border-radius: 9px;
  padding: 11px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  line-height: 1.3;
  min-width: 0;
  min-height: 44px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-account-tab__label--short {
  display: none;
}
.lp-account-tab:hover {
  color: var(--lp-primary);
  background: rgba(255, 255, 255, 0.55);
}
.lp-account-tab.is-active {
  background: #fff;
  border-color: rgba(0, 91, 111, 0.14);
  color: var(--lp-primary);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}
.lp-account-tab:focus-visible {
  outline: 2px solid var(--lp-primary-light);
  outline-offset: 2px;
}
.lp-account-panel {
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed var(--lp-border);
  background: #f8fbfd;
  margin-bottom: 16px;
}
.lp-account-panel__lead {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--lp-muted);
  line-height: 1.55;
}
.lp-btn--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #fff;
  color: var(--lp-primary);
  border: 1px solid var(--lp-primary);
  box-shadow: none;
}
.lp-btn--secondary:hover {
  background: var(--lp-primary);
  color: #fff;
  text-decoration: none;
}
.lp-logged-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ecfdf5, #f0fdf9);
  border: 1px solid #a7f3d0;
  margin-bottom: 14px;
}
.lp-logged-banner__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lp-success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
}
.lp-logged-banner__body strong {
  display: block;
  font-size: 0.95rem;
  color: var(--lp-text);
  margin-bottom: 2px;
}
.lp-logged-banner__email {
  display: block;
  font-size: 0.82rem;
  color: var(--lp-muted);
  margin-bottom: 6px;
}
.lp-logged-banner__body p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--lp-muted);
  line-height: 1.5;
}
.lp-email-notice {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.45;
}
.lp-email-notice--warn {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}
.lp-email-notice--err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--lp-danger);
}
.lp-email-notice a {
  font-weight: 600;
}

.lp-form-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 560px) {
  .lp-form-grid--2 { grid-template-columns: 1fr 1fr; }
}

.lp-field { margin-bottom: 0; }
.lp-field label,
label.lp-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--lp-muted);
}
.lp-req { color: var(--lp-danger); }
.lp-field input[type="text"],
.lp-field input[type="email"],
.lp-field input[type="tel"],
.lp-field select,
.lp-input {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 11px;
  min-height: 0;
  line-height: 1.35;
  border: 1px solid var(--lp-border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lp-field input[type="file"] {
  width: 100%;
  padding: 6px 8px;
  font-size: 0.85rem;
  border: 1px solid var(--lp-border);
  border-radius: 8px;
  background: #fff;
}
.lp-field textarea,
textarea.lp-input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--lp-border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lp-field input:focus,
.lp-field select:focus,
.lp-field textarea:focus {
  outline: none;
  border-color: var(--lp-primary);
  box-shadow: 0 0 0 3px rgba(0, 91, 111, 0.12);
}
.lp-field textarea { min-height: 96px; resize: vertical; }

.lp-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--lp-primary);
  margin: 22px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--lp-gold-soft);
}
.lp-section-title:first-child { margin-top: 0; }
.lp-cert-opt-box .lp-section-title--inline {
  margin-top: 14px;
  margin-bottom: 10px;
}
.lp-pay-opt-box .lp-pay-later-callout {
  margin-top: 10px;
  margin-bottom: 4px;
}
.lp-pay-opt-box #lp_payment_hint {
  margin-top: 8px;
}

.lp-actions { margin-top: 22px; }
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--lp-primary), var(--lp-primary-light));
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 91, 111, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  width: 100%;
}
@media (min-width: 480px) {
  .lp-btn { width: auto; min-width: 200px; }
  .lp-browse-card__actions .lp-btn {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}
.lp-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 91, 111, 0.4);
}
.lp-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.lp-btn--gold {
  background: linear-gradient(135deg, #a89440, var(--lp-gold));
  box-shadow: 0 4px 14px rgba(197, 179, 88, 0.45);
  color: #1a2832 !important;
}
.lp-btn--outline {
  background: #fff;
  color: var(--lp-primary) !important;
  border: 2px solid var(--lp-primary);
  box-shadow: none;
}
.lp-btn--outline:hover {
  background: #f0f9fb;
}

/* لا تستخدم left:-9999px — Chrome يوسّع عرض الصفحة ويظهر فراغاً يسار المحتوى في RTL */
.lp-hp {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.lp-hint {
  margin-top: 5px;
  font-size: 0.78rem;
  color: var(--lp-muted);
  line-height: 1.4;
}
.lp-foot {
  margin-top: 28px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--lp-muted);
  padding: 0 12px;
}

.lp-pricing-box {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fbfc, #eef6f8);
  border: 1px solid var(--lp-border);
  border-inline-start: 4px solid var(--lp-gold);
}
.lp-pricing-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.4em 0.5em;
  font-size: 1rem;
  font-weight: 700;
  color: var(--lp-primary-dark);
}
.lp-pricing-label { flex: 0 0 auto; }
/* RTL: الرقم يميناً (يُقرأ أولاً) ثم ر.س — بدون dir=ltr على الحاوية */
.lp-price-amount {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  white-space: nowrap;
  unicode-bidi: isolate;
  font-weight: 800;
}
html[dir="rtl"] .lp-price-amount {
  flex-direction: row;
}
html[dir="ltr"] .lp-price-amount {
  flex-direction: row;
  direction: ltr;
}
.lp-price-num {
  font-weight: 800;
  unicode-bidi: embed;
}
.lp-price-cur {
  font-weight: 700;
  font-size: 0.92em;
}
.lp-pricing-main--free { color: var(--lp-success); }
.lp-pricing-sub { margin-top: 6px; font-size: 0.88rem; color: var(--lp-muted); }

.lp-cert-opt-box {
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(145deg, #faf8f0, #fff);
  border: 1px solid var(--lp-gold-soft);
}
.lp-promo-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: stretch;
  max-width: 100%;
}
.lp-promo-block__hint {
  margin-top: 6px;
}
.lp-promo-input-wrap {
  flex: 1 1 auto;
  min-width: 0;
}
.lp-promo-input-wrap .lp-input {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-align: center;
}
.lp-promo-input-wrap .lp-input.lp-promo--ok {
  border-color: var(--lp-success);
  background: #f0fdf8;
}
.lp-promo-input-wrap .lp-input.lp-promo--err {
  border-color: var(--lp-danger);
  background: #fef8f8;
}
.lp-promo-btn {
  flex: 0 0 auto;
  align-self: stretch;
  min-height: 44px;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--lp-gold), #a89440);
  color: #1a2832;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(197, 179, 88, 0.4);
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
}
.lp-promo-btn:hover:not(:disabled) { transform: translateY(-1px); }
.lp-promo-btn:disabled { opacity: 0.65; cursor: wait; }
.lp-promo-msg { margin-top: 8px; font-size: 0.88rem; min-height: 1.3em; line-height: 1.45; }
.lp-promo-msg.ok { color: var(--lp-success); font-weight: 600; }
.lp-promo-msg.err { color: var(--lp-danger); font-weight: 600; }
.lp-promo-summary {
  margin-top: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--lp-primary);
}
.lp-check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--lp-text);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}
.lp-check-row input { margin-top: 4px; accent-color: var(--lp-primary); }

.lp-pay-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}
.lp-pay-method-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.lp-pay-method-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 72px;
  padding: 10px 8px;
  border: 2px solid var(--lp-border);
  border-radius: 12px;
  background: #fff;
  color: var(--lp-text);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s, transform 0.12s;
  font-family: inherit;
  box-sizing: border-box;
}
.lp-pay-method-tile:hover:not(.is-disabled) {
  border-color: var(--lp-primary-light);
  box-shadow: 0 4px 14px rgba(0, 91, 111, 0.08);
  transform: translateY(-1px);
}
.lp-pay-method-tile:has(.lp-pay-method-radio:checked),
.lp-pay-method-tile.is-selected {
  border-color: var(--lp-primary) !important;
  background: linear-gradient(145deg, #f8fdff 0%, #f2fafc 100%) !important;
  box-shadow: 0 0 0 3px rgba(0, 91, 111, 0.14) !important;
  transform: none;
}
.lp-pay-method-tile.is-disabled,
.lp-pay-method-tile:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}
.lp-pay-method-tile__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 24px;
  max-height: 28px;
}
.lp-pay-method-tile__logo--multi {
  gap: 6px;
  flex-wrap: wrap;
  max-height: none;
  min-height: 28px;
}
.lp-pay-method-tile__logo--multi .lp-pay-method-tile__logo-img {
  max-width: 52px;
  max-height: 20px;
}
.lp-pay-method-tile__logo-img {
  display: block;
  max-width: 110px;
  max-height: 22px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lp-pay-method-tile__title {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--lp-primary-dark);
}

.lp-pay-choice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 14px 18px;
  align-items: start;
  margin-bottom: 10px;
}
.lp-pay-choice-check { margin: 0; }
.lp-pay-later-callout {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d4c88a;
  background: linear-gradient(135deg, #fdfbf3 0%, #f7f3e4 48%, #f0f7f9 100%);
  box-shadow: 0 2px 10px rgba(0, 91, 111, 0.06);
}
.lp-pay-later-callout__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--lp-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  margin-top: 1px;
}
.lp-pay-later-callout__text {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--lp-text);
}
.lp-pay-later-callout__text p {
  margin: 0;
}
.lp-pay-later-callout__text p + p {
  margin-top: 6px;
}
.lp-pay-later-callout__note {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--lp-muted, #5a6a72);
  line-height: 1.45;
}
@media (max-width: 640px) {
  .lp-pay-choice-row {
    grid-template-columns: 1fr;
  }
  .lp-pay-later-callout { order: -1; }
}

.lp-bank-block {
  margin-top: 12px;
}
.lp-bank-panel {
  padding: 14px;
  border: 1px solid #c5e3eb;
  border-radius: 12px;
  background: #f8fcfd;
}
.lp-bank-panel__title {
  margin: 0 0 12px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--lp-primary-dark);
}
.lp-bank-dl {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp-bank-dl__row {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #dceef3;
}
.lp-bank-dl__row--highlight {
  border-color: #9ec5d0;
  background: #fff;
  box-shadow: inset 3px 0 0 var(--lp-primary);
}
.lp-bank-dl__label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--lp-muted);
}
.lp-bank-dl__value-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-width: 0;
}
.lp-bank-dl__value {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--lp-text);
  line-height: 1.35;
  word-break: break-word;
}
.lp-bank-dl__row--highlight .lp-bank-dl__value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}
.lp-bank-copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #c5e3eb;
  border-radius: 8px;
  background: #f0f9fb;
  color: var(--lp-primary);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.lp-bank-copy-btn:hover {
  background: var(--lp-primary);
  border-color: var(--lp-primary);
  color: #fff;
}
.lp-bank-copy-btn:focus-visible {
  outline: 2px solid var(--lp-primary);
  outline-offset: 2px;
}
.lp-bank-copy-btn.lp-bank-copy-btn--done {
  background: #ecfdf5;
  border-color: var(--lp-success);
  color: var(--lp-success);
}
.lp-bank-copy-btn__icon {
  width: 16px;
  height: 16px;
  display: block;
}
.lp-bank-panel__notes {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--lp-muted);
  line-height: 1.45;
}
.lp-bank-proof {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #dceef3;
}
.lp-bank-proof__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--lp-primary-dark);
}
.lp-bank-proof__req {
  color: #dc2626;
}
.lp-bank-proof__box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px dashed #9ec5d0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}
.lp-bank-proof__box:hover {
  border-color: var(--lp-primary);
  background: #f8fdff;
}
.lp-bank-proof__box:has(.lp-bank-proof__input:focus-visible) {
  border-color: var(--lp-primary);
  box-shadow: 0 0 0 3px rgba(0, 91, 111, 0.12);
}
.lp-bank-proof__box-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #e8f4f7;
  color: var(--lp-primary);
}
.lp-bank-proof__box-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
.lp-bank-proof__box-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lp-bank-proof__box-action {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--lp-primary-dark);
}
.lp-bank-proof__box-hint {
  font-size: 0.72rem;
  color: var(--lp-muted);
}
.lp-bank-proof__box-file {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lp-primary);
  word-break: break-all;
}
.lp-bank-proof__box.has-file {
  border-style: solid;
  border-color: var(--lp-success);
  background: #f0fdf4;
}
.lp-bank-proof__box.has-file .lp-bank-proof__box-icon {
  background: #dcfce7;
  color: #059669;
}
.lp-bank-proof__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}
.lp-copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  z-index: 9999;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--lp-primary-dark);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s, opacity 0.25s;
}
.lp-copy-toast.lp-copy-toast--show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Success state */
.lp-success-panel {
  text-align: center;
  padding: 28px 20px 32px;
}
.lp-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ecfdf5, #d1fae5);
  border: 3px solid var(--lp-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--lp-success);
}
.lp-success-title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--lp-primary-dark);
}
.lp-success-msg {
  margin: 0 0 20px;
  color: var(--lp-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 480px;
  margin-inline: auto;
}
.lp-email-box {
  text-align: start;
  background: #f0f9fb;
  border: 1px solid #b8dce6;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 22px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--lp-text);
}
.lp-email-box--compact {
  margin-top: 14px;
  margin-bottom: 18px;
}
.lp-email-box strong { color: var(--lp-primary); }
.lp-wa-help-text {
  margin: 10px 0 12px;
  color: var(--lp-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}
.lp-btn--whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  background: #128c7e;
  color: #fff !important;
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s ease;
}
.lp-btn--whatsapp:hover {
  background: #0e7468;
  color: #fff !important;
}
.lp-success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  max-width: 320px;
  margin: 0 auto;
}
@media (min-width: 480px) {
  .lp-success-actions { flex-direction: row; justify-content: center; max-width: none; }
  .lp-success-actions .lp-btn { width: auto; flex: 0 1 auto; }
}

.lp-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--lp-primary), var(--lp-primary-light));
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 91, 111, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  width: 100%;
}
.lp-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 91, 111, 0.4);
}
.lp-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.lp-alert.warn {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fcd34d;
}

/* مودال OTP (public-register.css) — لا يوسّع الصفحة عند الإخفاء */
.pr-modal[hidden] {
  display: none !important;
}

/*
 * صفحة هبوط الدورة + باقة: Chrome يخطئ في Grid+RTL على الجوال
 * ويضع المحتوى في عمود ~32vw — نُبقي التخطيط عمودياً حتى 899px
 */
@media (max-width: 899px) {
  .lp-wrap--with-aside {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .lp-landing-layout {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: none !important;
    grid-template-areas: none !important;
  }

  .lp-landing-layout__main,
  .lp-bundle-promo-slot--inline {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .lp-landing-layout__aside {
    display: none !important;
  }
}

/* ——— صفحات الهبوط — موبايل ——— */
@media (max-width: 640px) {
  .lp-main {
    padding:
      max(16px, env(safe-area-inset-top, 0px))
      max(12px, env(safe-area-inset-right, 0px))
      max(28px, env(safe-area-inset-bottom, 0px))
      max(12px, env(safe-area-inset-left, 0px));
  }

  .lp-wrap,
  .lp-wrap--wide,
  .lp-wrap--with-aside,
  .lp-landing-layout,
  .lp-landing-layout__main,
  .lp-card-body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .lp-landing-layout {
    overflow-x: hidden;
  }

  .lp-hero {
    margin-bottom: 16px;
    padding: 0 4px;
  }

  .lp-hero-title-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .lp-hero-title-row h1,
  .lp-hero h1 {
    font-size: clamp(1.2rem, 5.5vw, 1.45rem);
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .lp-hero-course-name {
    font-size: clamp(0.95rem, 4.2vw, 1.1rem);
  }

  .lp-course-badges {
    width: 100%;
    justify-content: flex-start;
  }

  .lp-course-badge {
    white-space: normal;
    text-align: start;
    max-width: 100%;
  }

  .lp-card-body {
    padding: 18px 14px;
  }

  .lp-cover {
    height: clamp(160px, 42vw, 220px);
  }

  .lp-pricing-box {
    padding: 12px 14px;
  }

  .lp-pricing-main {
    font-size: 0.95rem;
    gap: 0.35em 0.45em;
  }

  .lp-account-tabs {
    gap: 5px;
    padding: 4px;
  }

  .lp-account-tab {
    padding: 9px 6px;
    font-size: 0.76rem;
    min-height: 42px;
  }

  .lp-account-tab__label--full {
    display: none;
  }

  .lp-account-tab__label--short {
    display: inline;
  }

  .lp-price-amount {
    white-space: normal;
    flex-wrap: wrap;
  }

  .lp-promo-btn {
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }

  .lp-form-grid {
    gap: 12px;
    min-width: 0;
    max-width: 100%;
  }

  .lp-cert-opt-box {
    padding: 12px 14px;
  }

  .lp-check-row {
    align-items: flex-start;
    gap: 8px;
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .lp-check-row span {
    flex: 1;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .lp-promo-row {
    gap: 6px;
  }

  .lp-promo-btn {
    padding: 10px 12px;
    font-size: 0.78rem;
  }

  .lp-pay-methods {
    grid-template-columns: 1fr;
  }

  .lp-logged-banner {
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
  }

  .lp-bank-block {
    margin-top: 10px;
  }

  .lp-bank-dl__value-row {
    align-items: flex-start;
  }

  .lp-bank-proof__box {
    align-items: flex-start;
  }

  .lp-actions {
    margin-top: 18px;
  }

  .lp-btn,
  .lp-submit {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
  }

  .lp-foot {
    margin-top: 20px;
    padding: 0 8px;
    line-height: 1.5;
  }

  .lp-success-panel {
    padding: 22px 14px 26px;
  }

  .lp-success-title {
    font-size: 1.2rem;
  }

  .lp-browse-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lp-browse-tabs {
    max-width: 100%;
  }

  .lp-browse-tab {
    padding: 8px 10px;
    font-size: 0.82rem;
  }
}

@media (max-width: 400px) {
  .lp-card-body {
    padding: 16px 12px;
  }

  .lp-section-title {
    font-size: 0.9rem;
    margin: 18px 0 10px;
  }

  .lp-field input[type="text"],
  .lp-field input[type="email"],
  .lp-field input[type="tel"],
  .lp-field select,
  .lp-input {
    font-size: 16px;
  }

  .lp-hero-badge {
    font-size: 0.68rem;
    padding: 4px 10px;
  }
}
