/* =====================================================================
   منصة الهدير - الواجهة (الهيدر والفوتر والرئيسية والمراحل والكورسات)
   بألوان اللوجو: البني + الكحلي. بيتحمل بعد style.css
   ===================================================================== */
:root {
    --lms-brand: #57423d;
    --lms-brand-dark: #3d2e2a;
    --lms-brand-soft: #f4eeea;
    --lms-navy: #1b4677;
    --lms-navy-soft: #e8eff8;
    --lms-accent: #c99a3c;
    --lms-accent-soft: #fbf3e2;
    --lms-red: #bc2933;
    --lms-green: #1f9d63;
    --lms-green-soft: #e4f6ed;
    --lms-bg: #faf8f6;
    --lms-surface: #ffffff;
    --lms-border: #ece5e0;
    --lms-text: #2b2321;
    --lms-muted: #7d716c;
    --lms-radius: 16px;
    --lms-radius-sm: 10px;
    --lms-shadow: 0 1px 2px rgba(43, 35, 33, .04), 0 6px 20px rgba(43, 35, 33, .06);
    --lms-shadow-hover: 0 4px 10px rgba(43, 35, 33, .06), 0 16px 36px rgba(43, 35, 33, .10);
    --lms-container: 1200px;
}

body.lms {
    background: var(--lms-bg);
    color: var(--lms-text);
    font-family: 'Beiruti', sans-serif;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

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

.lms img {
    max-width: 100%;
}

.lms-container {
    width: 100%;
    max-width: var(--lms-container);
    margin-inline: auto;
    padding-inline: 20px;
}

.lms-section {
    padding-block: 72px;
}

.lms-section--tight {
    padding-block: 48px;
}

.lms-section--white {
    background: var(--lms-surface);
}

.lms-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.lms-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--lms-accent);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
}

.lms-title {
    margin: 0;
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
    line-height: 1.25;
    color: var(--lms-brand-dark);
    font-weight: 800;
}

.lms-subtitle {
    margin: 8px 0 0;
    color: var(--lms-muted);
    font-size: 17px;
    max-width: 620px;
    line-height: 1.7;
}

/* ===== الأزرار ===== */
.lms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
    white-space: nowrap;
}

.lms-btn:hover {
    transform: translateY(-1px);
}

.lms-btn--primary {
    background: var(--lms-brand);
    color: #fff;
    box-shadow: 0 6px 16px rgba(87, 66, 61, .25);
}

.lms-btn--primary:hover {
    background: var(--lms-brand-dark);
    color: #fff;
}

.lms-btn--navy {
    background: var(--lms-navy);
    color: #fff;
}

.lms-btn--navy:hover {
    background: #143862;
    color: #fff;
}

.lms-btn--light {
    background: #fff;
    color: var(--lms-brand-dark);
}

.lms-btn--light:hover {
    color: var(--lms-brand-dark);
    box-shadow: var(--lms-shadow-hover);
}

.lms-btn--ghost {
    background: transparent;
    color: var(--lms-brand);
    border-color: var(--lms-border);
}

.lms-btn--ghost:hover {
    border-color: var(--lms-brand);
    color: var(--lms-brand);
}

.lms-btn--outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .45);
}

.lms-btn--outline-light:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.lms-btn--whatsapp {
    background: #25d366;
    color: #fff;
}

.lms-btn--whatsapp:hover {
    background: #1ebe5b;
    color: #fff;
}

.lms-btn--block {
    width: 100%;
}

.lms-btn--sm {
    min-height: 38px;
    padding: 0 16px;
    font-size: 14px;
}

/* ===== شارات ===== */
.lms-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: var(--lms-brand-soft);
    color: var(--lms-brand);
    line-height: 1.6;
}

.lms-chip--navy {
    background: var(--lms-navy-soft);
    color: var(--lms-navy);
}

.lms-chip--gold {
    background: var(--lms-accent-soft);
    color: #9a7322;
}

.lms-chip--green {
    background: var(--lms-green-soft);
    color: var(--lms-green);
}

.lms-chip--red {
    background: #fdecec;
    color: var(--lms-red);
}

/* =====================================================================
   الهيدر
   ===================================================================== */
.lms-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--lms-border);
}

.lms-header__bar {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 74px;
}

.lms-header__logo img {
    height: 52px;
    width: auto;
    display: block;
}

.lms-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1;
}

.lms-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--lms-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background-color .2s, color .2s;
    background: none;
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

.lms-nav__link:hover,
.lms-nav__link.is-active {
    background: var(--lms-brand-soft);
    color: var(--lms-brand);
}

.lms-nav__item {
    position: relative;
}

.lms-nav__menu {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-start: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: 14px;
    box-shadow: var(--lms-shadow-hover);
    padding: 8px;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s, transform .18s, visibility .18s;
}

.lms-nav__item:hover .lms-nav__menu,
.lms-nav__item:focus-within .lms-nav__menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.lms-nav__menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--lms-text);
    text-decoration: none;
    font-weight: 600;
}

.lms-nav__menu a:hover {
    background: var(--lms-bg);
    color: var(--lms-brand);
}

.lms-nav__menu i {
    width: 22px;
    color: var(--lms-accent);
    text-align: center;
}

.lms-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lms-icon-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--lms-border);
    background: #fff;
    color: var(--lms-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.lms-icon-btn:hover {
    color: var(--lms-brand);
    border-color: var(--lms-brand);
}

.lms-icon-btn__dot {
    position: absolute;
    top: 8px;
    inset-inline-end: 9px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--lms-red);
    border: 2px solid #fff;
}

.lms-lang {
    font-size: 14px;
    width: auto;
    padding: 0 12px;
}

.lms-account {
    position: relative;
}

.lms-account__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px 4px 12px;
    border-radius: 999px;
    border: 1px solid var(--lms-border);
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    color: var(--lms-text);
}

[dir=rtl] .lms-account__trigger {
    padding: 4px 12px 4px 6px;
}

.lms-account__trigger img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.lms-account__menu {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: 14px;
    box-shadow: var(--lms-shadow-hover);
    padding: 8px;
    display: none;
}

.lms-account.is-open .lms-account__menu {
    display: block;
}

.lms-account__menu a,
.lms-account__menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--lms-text);
    text-decoration: none;
    font-weight: 600;
    background: none;
    border: 0;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    text-align: start;
}

.lms-account__menu a:hover,
.lms-account__menu button:hover {
    background: var(--lms-bg);
    color: var(--lms-brand);
}

.lms-account__menu .is-danger {
    color: var(--lms-red);
}

.lms-account__menu hr {
    border: 0;
    border-top: 1px solid var(--lms-border);
    margin: 6px 0;
}

.lms-burger {
    display: none;
}

/* درج الموبايل */
.lms-drawer {
    position: fixed;
    inset: 0;
    z-index: 1100;
    visibility: hidden;
}

.lms-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 22, 20, .45);
    opacity: 0;
    transition: opacity .25s;
}

.lms-drawer__panel {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    width: min(320px, 86vw);
    background: #fff;
    padding: 20px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .25s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

[dir=ltr] .lms-drawer__panel {
    transform: translateX(-100%);
}

.lms-drawer.is-open {
    visibility: visible;
}

.lms-drawer.is-open .lms-drawer__backdrop {
    opacity: 1;
}

.lms-drawer.is-open .lms-drawer__panel {
    transform: none;
}

.lms-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.lms-drawer__head img {
    height: 44px;
}

.lms-drawer a.lms-drawer__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    color: var(--lms-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.lms-drawer a.lms-drawer__link:hover,
.lms-drawer a.lms-drawer__link.is-active {
    background: var(--lms-brand-soft);
    color: var(--lms-brand);
}

.lms-drawer__link i {
    width: 22px;
    text-align: center;
    color: var(--lms-accent);
}

.lms-drawer__label {
    color: var(--lms-muted);
    font-size: 13px;
    font-weight: 700;
    margin: 12px 12px 2px;
}

.lms-drawer__foot {
    margin-top: auto;
    padding-top: 16px;
    display: grid;
    gap: 10px;
}

/* =====================================================================
   الهيرو
   ===================================================================== */
.lms-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(800px 400px at 85% -10%, rgba(201, 154, 60, .22), transparent 60%),
        radial-gradient(700px 500px at 0% 110%, rgba(27, 70, 119, .35), transparent 60%),
        linear-gradient(135deg, #5d4741 0%, #3d2e2a 100%);
    color: #fff;
    padding-block: 72px 88px;
}

.lms-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}

.lms-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 48px;
}

.lms-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
}

.lms-hero__badge i {
    color: #f3c766;
}

.lms-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem);
    line-height: 1.2;
    font-weight: 800;
}

.lms-hero h1 span {
    color: #f3c766;
}

.lms-hero p {
    margin: 0 0 28px;
    font-size: clamp(1rem, .95rem + .3vw, 1.2rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, .82);
    max-width: 560px;
}

.lms-hero__ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.lms-hero__stats {
    display: flex;
    gap: 14px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.lms-stat {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    padding: 12px 18px;
    min-width: 120px;
}

.lms-stat strong {
    display: block;
    font-size: 26px;
    line-height: 1.2;
}

.lms-stat span {
    font-size: 14px;
    color: rgba(255, 255, 255, .75);
}

.lms-hero__visual {
    position: relative;
}

.lms-hero__image {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 4 / 4.2;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
}

.lms-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lms-hero__float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--lms-text);
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: var(--lms-shadow-hover);
    font-weight: 700;
    font-size: 14px;
}

.lms-hero__float i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lms-hero__float--a {
    bottom: 28px;
    inset-inline-start: -24px;
}

.lms-hero__float--a i {
    background: var(--lms-green-soft);
    color: var(--lms-green);
}

.lms-hero__float--b {
    top: 28px;
    inset-inline-end: -18px;
}

.lms-hero__float--b i {
    background: var(--lms-accent-soft);
    color: var(--lms-accent);
}

/* =====================================================================
   كروت المراحل / الأقسام
   ===================================================================== */
.lms-stages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}

.lms-stage {
    --tint: #f4eeea;
    --ink: #57423d;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    border-radius: var(--lms-radius);
    background: #fff;
    border: 1px solid var(--lms-border);
    text-decoration: none;
    color: var(--lms-text);
    box-shadow: var(--lms-shadow);
    transition: transform .2s, box-shadow .2s, border-color .2s;
    overflow: hidden;
}

.lms-stage::before {
    content: '';
    position: absolute;
    inset-inline-end: -40px;
    top: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--tint);
    transition: transform .3s;
}

.lms-stage:hover {
    transform: translateY(-4px);
    box-shadow: var(--lms-shadow-hover);
    border-color: transparent;
    color: var(--lms-text);
}

.lms-stage:hover::before {
    transform: scale(1.25);
}

.lms-stage__icon {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--tint);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    overflow: hidden;
}

.lms-stage__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lms-stage__name {
    position: relative;
    font-size: 19px;
    font-weight: 800;
    margin: 0;
    color: var(--lms-brand-dark);
}

.lms-stage__meta {
    position: relative;
    color: var(--lms-muted);
    font-size: 14px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.lms-stage__go {
    position: relative;
    margin-top: auto;
    color: var(--ink);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lms-stage--1 { --tint: #f4eeea; --ink: #57423d; }
.lms-stage--2 { --tint: #e8eff8; --ink: #1b4677; }
.lms-stage--3 { --tint: #fbf3e2; --ink: #9a7322; }
.lms-stage--4 { --tint: #e4f6ed; --ink: #1f7a4f; }
.lms-stage--5 { --tint: #f3e9f7; --ink: #7a3e94; }
.lms-stage--6 { --tint: #fdecec; --ink: #a1262e; }

/* =====================================================================
   كارت الكورس
   ===================================================================== */
.lms-courses {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 22px;
}

.lms-course {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: var(--lms-radius);
    overflow: hidden;
    box-shadow: var(--lms-shadow);
    transition: transform .2s, box-shadow .2s;
    color: var(--lms-text);
    text-decoration: none;
}

.lms-course:hover {
    transform: translateY(-4px);
    box-shadow: var(--lms-shadow-hover);
    color: var(--lms-text);
}

.lms-course__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--lms-brand-soft), var(--lms-navy-soft));
    overflow: hidden;
}

.lms-course__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.lms-course:hover .lms-course__media img {
    transform: scale(1.04);
}

.lms-course__media .lms-chip {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.lms-course__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.lms-course__path {
    color: var(--lms-muted);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lms-course__title {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--lms-brand-dark);
}

.lms-course__desc {
    margin: 0;
    color: var(--lms-muted);
    font-size: 15px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lms-course__foot {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--lms-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.lms-course__meta {
    display: flex;
    gap: 12px;
    color: var(--lms-muted);
    font-size: 14px;
}

.lms-price {
    font-weight: 800;
    font-size: 20px;
    color: var(--lms-brand);
    white-space: nowrap;
}

.lms-price small {
    font-size: 13px;
    font-weight: 600;
    color: var(--lms-muted);
}

.lms-price--free {
    color: var(--lms-green);
}

/* =====================================================================
   خطوات الاشتراك + المميزات
   ===================================================================== */
.lms-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    counter-reset: step;
}

.lms-step {
    position: relative;
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: var(--lms-radius);
    padding: 26px 22px;
    box-shadow: var(--lms-shadow);
}

.lms-step__num {
    position: absolute;
    top: 18px;
    inset-inline-end: 20px;
    font-size: 44px;
    font-weight: 800;
    color: var(--lms-brand-soft);
    line-height: 1;
}

.lms-step__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--lms-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.lms-step h3 {
    margin: 0 0 6px;
    font-size: 19px;
    color: var(--lms-brand-dark);
}

.lms-step p {
    margin: 0;
    color: var(--lms-muted);
    line-height: 1.7;
}

.lms-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.lms-features__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.lms-feature {
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: var(--lms-radius);
    padding: 20px;
}

.lms-feature i {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lms-accent-soft);
    color: var(--lms-accent);
    font-size: 19px;
    margin-bottom: 12px;
}

.lms-feature h4 {
    margin: 0 0 6px;
    font-size: 17px;
    color: var(--lms-brand-dark);
}

.lms-feature p {
    margin: 0;
    color: var(--lms-muted);
    font-size: 15px;
    line-height: 1.7;
}

.lms-features__image {
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 5 / 4;
    box-shadow: var(--lms-shadow-hover);
}

.lms-features__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== آراء الطلاب ===== */
.lms-reviews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.lms-review {
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: var(--lms-radius);
    padding: 22px;
    position: relative;
}

.lms-review::before {
    content: '\201D';
    position: absolute;
    top: 6px;
    inset-inline-end: 18px;
    font-size: 64px;
    line-height: 1;
    color: var(--lms-brand-soft);
    font-family: Georgia, serif;
}

.lms-review__stars {
    color: #f2b01e;
    font-size: 14px;
    margin-bottom: 10px;
}

.lms-review p {
    margin: 0;
    line-height: 1.8;
    color: var(--lms-text);
}

/* ===== شريط CTA ===== */
.lms-cta {
    border-radius: 24px;
    background: linear-gradient(135deg, var(--lms-navy) 0%, #12345a 100%);
    color: #fff;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.lms-cta h2 {
    margin: 0 0 6px;
    font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
}

.lms-cta p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
}

.lms-cta form {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 460px;
    min-width: 260px;
}

.lms-cta input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 48px;
    border-radius: 999px;
    border: 0;
    padding: 0 18px;
    font-family: inherit;
    font-size: 15px;
}

.lms-cta__msg {
    flex-basis: 100%;
    font-size: 14px;
}

/* =====================================================================
   رأس الصفحات الداخلية + breadcrumb
   ===================================================================== */
.lms-page-head {
    background: linear-gradient(135deg, #5d4741 0%, #3d2e2a 100%);
    color: #fff;
    padding-block: 36px 40px;
    position: relative;
    overflow: hidden;
}

.lms-page-head::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}

.lms-page-head .lms-container {
    position: relative;
    z-index: 1;
}

.lms-page-head h1 {
    margin: 10px 0 6px;
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
    font-weight: 800;
}

.lms-page-head p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    max-width: 720px;
    line-height: 1.7;
}

.lms-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, .7);
}

.lms-crumbs a {
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
}

.lms-crumbs a:hover {
    color: #fff;
}

.lms-crumbs i {
    font-size: 10px;
    opacity: .6;
}

[dir=rtl] .lms-crumbs i.fa-chevron-right {
    transform: scaleX(-1);
}

.lms-page-head__chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.lms-page-head .lms-chip {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

/* ===== تابات الترمات + فلاتر ===== */
.lms-tabs {
    display: inline-flex;
    gap: 6px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.lms-tab {
    border: 0;
    background: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: var(--lms-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.lms-tab span {
    background: var(--lms-bg);
    border-radius: 999px;
    padding: 0 8px;
    font-size: 13px;
}

.lms-tab.is-active {
    background: var(--lms-brand);
    color: #fff;
}

.lms-tab.is-active span {
    background: rgba(255, 255, 255, .18);
}

.lms-tab-panel {
    display: none;
}

.lms-tab-panel.is-active {
    display: block;
}

.lms-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: var(--lms-radius);
    padding: 14px;
    margin-bottom: 26px;
}

.lms-filters__chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.lms-filter-chip {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--lms-border);
    color: var(--lms-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    background: #fff;
}

.lms-filter-chip:hover {
    border-color: var(--lms-brand);
    color: var(--lms-brand);
}

.lms-filter-chip.is-active {
    background: var(--lms-brand);
    border-color: var(--lms-brand);
    color: #fff;
}

.lms-search {
    position: relative;
    min-width: 220px;
}

.lms-search input {
    width: 100%;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--lms-border);
    padding-inline: 40px 16px;
    font-family: inherit;
    font-size: 15px;
    background: var(--lms-bg);
}

.lms-search i {
    position: absolute;
    inset-inline-start: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lms-muted);
}

.lms-select {
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--lms-border);
    padding: 0 14px;
    font-family: inherit;
    font-size: 15px;
    background: #fff;
    color: var(--lms-text);
}

.lms-empty {
    text-align: center;
    padding: 56px 20px;
    background: #fff;
    border: 1px dashed var(--lms-border);
    border-radius: var(--lms-radius);
    color: var(--lms-muted);
}

.lms-empty i {
    font-size: 40px;
    color: var(--lms-brand-soft);
    margin-bottom: 12px;
    display: block;
}

.lms-empty h3 {
    color: var(--lms-text);
    margin: 0 0 6px;
}

.lms-pagination {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.lms-pagination nav > div:first-child {
    display: none;
}

/* =====================================================================
   صفحة الكورس
   ===================================================================== */
.lms-course-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.lms-card {
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: var(--lms-radius);
    box-shadow: var(--lms-shadow);
}

.lms-card__head {
    padding: 18px 22px;
    border-bottom: 1px solid var(--lms-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lms-card__head h2,
.lms-card__head h3 {
    margin: 0;
    font-size: 19px;
    color: var(--lms-brand-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.lms-card__head h2 i,
.lms-card__head h3 i {
    color: var(--lms-accent);
}

.lms-card__body {
    padding: 22px;
}

.lms-prose {
    line-height: 1.9;
    color: var(--lms-text);
    font-size: 16px;
    white-space: pre-line;
}

.lms-video {
    position: relative;
    border-radius: var(--lms-radius);
    overflow: hidden;
    background: #111;
    aspect-ratio: 16 / 9;
    box-shadow: var(--lms-shadow-hover);
}

.lms-video video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.lms-video__empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, .75);
    background: linear-gradient(135deg, #3d2e2a, #1b4677);
}

.lms-video__empty i {
    font-size: 40px;
    opacity: .8;
}

/* قايمة الجلسات */
.lms-lessons {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lms-lesson {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--lms-border);
    color: var(--lms-text);
    text-decoration: none;
    transition: background-color .15s;
}

.lms-lessons li:last-child .lms-lesson {
    border-bottom: 0;
}

a.lms-lesson:hover {
    background: var(--lms-bg);
    color: var(--lms-text);
}

.lms-lesson.is-current {
    background: var(--lms-brand-soft);
}

.lms-lesson__num {
    flex: 0 0 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--lms-bg);
    color: var(--lms-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.lms-lesson.is-current .lms-lesson__num {
    background: var(--lms-brand);
    color: #fff;
}

.lms-lesson__title {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    font-size: 16px;
}

.lms-lesson__state {
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.lms-lesson__state--free {
    color: var(--lms-green);
}

.lms-lesson__state--locked {
    color: var(--lms-muted);
}

.lms-lesson--locked .lms-lesson__title {
    color: var(--lms-muted);
}

/* صندوق السعر */
.lms-buy {
    position: sticky;
    top: 96px;
    overflow: hidden;
}

.lms-buy__media {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--lms-brand-soft), var(--lms-navy-soft));
}

.lms-buy__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lms-buy__body {
    padding: 22px;
    display: grid;
    gap: 16px;
}

.lms-buy__price {
    font-size: 32px;
    font-weight: 800;
    color: var(--lms-brand);
    line-height: 1;
}

.lms-buy__price small {
    font-size: 15px;
    color: var(--lms-muted);
    font-weight: 600;
}

.lms-buy__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.lms-buy__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--lms-text);
    font-size: 15px;
}

.lms-buy__list i {
    width: 20px;
    text-align: center;
    color: var(--lms-accent);
}

.lms-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.7;
    background: var(--lms-accent-soft);
    color: #7a5a17;
}

.lms-notice i {
    margin-top: 4px;
}

.lms-notice--green {
    background: var(--lms-green-soft);
    color: #17643f;
}

.lms-notice--navy {
    background: var(--lms-navy-soft);
    color: var(--lms-navy);
}

/* زرار الاشتراك الثابت على الموبايل */
.lms-mobile-buy {
    display: none;
}

/* =====================================================================
   صفحة الطلب (المشغّل + الجلسات + الدفع)
   ===================================================================== */
.lms-player {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.lms-player__aside {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
}

.lms-player__title {
    margin: 18px 0 6px;
    font-size: 22px;
    color: var(--lms-brand-dark);
}

.lms-pay-steps {
    counter-reset: pay;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.lms-pay-steps li {
    counter-increment: pay;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    line-height: 1.7;
}

.lms-pay-steps li::before {
    content: counter(pay);
    flex: 0 0 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--lms-brand);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.lms-bank {
    background: var(--lms-bg);
    border: 1px dashed var(--lms-border);
    border-radius: 12px;
    padding: 14px 16px;
    white-space: pre-line;
    font-weight: 600;
    line-height: 1.9;
    font-size: 15px;
}

.lms-amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--lms-brand-soft);
    font-weight: 700;
}

.lms-amount strong {
    font-size: 22px;
    color: var(--lms-brand);
}

.lms-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

[dir=ltr] .lms-rating {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.lms-rating input {
    display: none;
}

.lms-rating label {
    font-size: 26px;
    color: #e3dbd6;
    cursor: pointer;
    transition: color .15s;
}

.lms-rating input:checked ~ label,
.lms-rating label:hover,
.lms-rating label:hover ~ label {
    color: #f2b01e;
}

.lms-textarea {
    width: 100%;
    border: 1px solid var(--lms-border);
    border-radius: 12px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
    min-height: 90px;
    background: var(--lms-bg);
}

/* ===== كروت طلباتي ===== */
.lms-orders {
    display: grid;
    gap: 16px;
}

.lms-order {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: var(--lms-radius);
    padding: 14px;
    box-shadow: var(--lms-shadow);
    color: var(--lms-text);
    text-decoration: none;
    transition: box-shadow .2s, transform .2s;
}

.lms-order:hover {
    box-shadow: var(--lms-shadow-hover);
    transform: translateY(-2px);
    color: var(--lms-text);
}

.lms-order__media {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--lms-brand-soft), var(--lms-navy-soft));
}

.lms-order__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lms-order__info h3 {
    margin: 6px 0 4px;
    font-size: 18px;
    color: var(--lms-brand-dark);
}

.lms-order__info p {
    margin: 0;
    color: var(--lms-muted);
    font-size: 14px;
}

.lms-order__side {
    display: grid;
    gap: 8px;
    justify-items: end;
}

/* =====================================================================
   الفوتر
   ===================================================================== */
.lms-footer {
    background: var(--lms-brand-dark);
    color: rgba(255, 255, 255, .78);
    padding-top: 56px;
    margin-top: 0;
}

.lms-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 32px;
}

.lms-footer__logo {
    display: inline-block;
    background: #fff;
    border-radius: 14px;
    padding: 8px 12px;
    margin-bottom: 16px;
}

.lms-footer__logo img {
    height: 48px;
    display: block;
}

.lms-footer p {
    line-height: 1.8;
    margin: 0 0 16px;
    font-size: 15px;
}

.lms-footer h4 {
    color: #fff;
    font-size: 17px;
    margin: 0 0 14px;
}

.lms-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.lms-footer a {
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
}

.lms-footer a:hover {
    color: #f3c766;
}

.lms-footer__contact li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.lms-footer__contact i {
    color: #f3c766;
    margin-top: 5px;
    width: 16px;
    text-align: center;
}

.lms-social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lms-social a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.lms-social a:hover {
    background: #f3c766;
    color: var(--lms-brand-dark);
}

.lms-footer__bottom {
    margin-top: 40px;
    padding-block: 18px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 14px;
    text-align: center;
}

/* =====================================================================
   الريسبونسف
   ===================================================================== */
@media (max-width: 1100px) {
    .lms-nav__link {
        padding: 10px 10px;
        font-size: 15px;
    }

    .lms-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .lms-nav,
    .lms-header__actions .lms-hide-mobile {
        display: none;
    }

    .lms-burger {
        display: inline-flex;
    }

    .lms-header__bar {
        justify-content: space-between;
        min-height: 66px;
    }

    .lms-header__logo img {
        height: 44px;
    }

    .lms-hero {
        padding-block: 48px 56px;
    }

    .lms-hero__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .lms-hero__visual {
        max-width: 460px;
        width: 100%;
        margin-inline: auto;
    }

    .lms-hero__image {
        aspect-ratio: 16 / 12;
    }

    .lms-hero__float--a {
        inset-inline-start: 10px;
    }

    .lms-hero__float--b {
        inset-inline-end: 10px;
    }

    .lms-features {
        grid-template-columns: 1fr;
    }

    .lms-course-page,
    .lms-player {
        grid-template-columns: 1fr;
    }

    .lms-buy,
    .lms-player__aside {
        position: static;
    }

    .lms-course-page__aside {
        order: -1;
    }

    .lms-section {
        padding-block: 52px;
    }
}

@media (max-width: 768px) {
    .lms-steps {
        grid-template-columns: 1fr;
    }

    .lms-features__list {
        grid-template-columns: 1fr;
    }

    .lms-stages {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .lms-stage {
        padding: 16px;
    }

    .lms-stage__name {
        font-size: 17px;
    }

    .lms-stage::before {
        width: 90px;
        height: 90px;
    }

    .lms-cta {
        padding: 28px 22px;
    }

    .lms-cta form {
        flex-direction: column;
        max-width: none;
    }

    .lms-order {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .lms-order__side {
        grid-column: 1 / -1;
        grid-template-columns: 1fr auto;
        justify-items: stretch;
        align-items: center;
    }

    .lms-footer__grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .lms-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .lms-filters__chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .lms-filters__chips::-webkit-scrollbar {
        display: none;
    }

    .lms-filter-chip {
        white-space: nowrap;
    }

    .lms-tabs {
        display: flex;
        width: 100%;
    }

    .lms-tab {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
    }

    /* زرار الاشتراك ثابت تحت على الموبايل */
    .lms-mobile-buy {
        display: flex;
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 900;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        background: #fff;
        border-top: 1px solid var(--lms-border);
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        box-shadow: 0 -6px 18px rgba(43, 35, 33, .08);
    }

    .lms-has-mobile-buy .floating-whatsapp {
        bottom: 86px !important;
    }

    .lms-has-mobile-buy {
        padding-bottom: 72px;
    }
}

@media (max-width: 420px) {
    .lms-container {
        padding-inline: 16px;
    }

    .lms-hero__ctas .lms-btn {
        flex: 1;
    }

    .lms-stat {
        min-width: 0;
        flex: 1;
        padding: 10px 12px;
    }

    .lms-stat strong {
        font-size: 22px;
    }

    .lms-courses {
        grid-template-columns: 1fr;
    }
}

/* ===== ترقيم الصفحات (pagination::bootstrap-4) ===== */
.lms-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lms-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--lms-border);
    background: #fff;
    color: var(--lms-text);
    text-decoration: none;
    font-weight: 700;
}

.lms-pagination .page-item.active .page-link {
    background: var(--lms-brand);
    border-color: var(--lms-brand);
    color: #fff;
}

.lms-pagination .page-item.disabled .page-link {
    opacity: .45;
}

/* ===== الصفحات الثابتة (من نحن، الشروط...) ===== */
.lms-page-body.has-image {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.lms-rich {
    line-height: 1.9;
    font-size: 17px;
}

.lms-rich h1,
.lms-rich h2,
.lms-rich h3 {
    color: var(--lms-brand-dark);
}

.lms-rich p:first-child {
    margin-top: 0;
}

/* ===== الإشعارات ===== */
.lms-notifications {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lms-notification {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--lms-border);
    color: var(--lms-text);
    text-decoration: none;
}

.lms-notifications li:last-child .lms-notification {
    border-bottom: 0;
}

a.lms-notification[href]:hover {
    background: var(--lms-bg);
    color: var(--lms-text);
}

.lms-notification.is-new {
    background: var(--lms-accent-soft);
}

.lms-notification__icon {
    flex: 0 0 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--lms-brand-soft);
    color: var(--lms-brand);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lms-notification__text {
    flex: 1;
    min-width: 0;
    line-height: 1.7;
}

.lms-notification__time {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    color: var(--lms-muted);
    font-size: 13px;
}

.lms-notification__icon--order {
    background: var(--lms-navy-soft);
    color: var(--lms-navy);
}

.lms-notification__icon--notification {
    background: var(--lms-accent-soft);
    color: #9a7322;
}

.lms-notification__go {
    align-self: center;
    color: #d8cfca;
    font-size: 13px;
}

a.lms-notification[href]:hover .lms-notification__go {
    color: var(--lms-brand);
}

/* الصفحات القديمة جوه الإطار الجديد: من غير المسافة اللي كانت للهيدر الثابت */
.lms .contact,
.lms .personal-page {
    padding-top: 40px;
}

@media (max-width: 768px) {
    .lms-page-body.has-image {
        grid-template-columns: 1fr;
    }

    .lms-notification {
        flex-wrap: wrap;
        padding: 14px 16px;
    }

    .lms-notification {
        flex-wrap: nowrap;
    }
}

/* ===== تظبيطات الموبايل والتابلت ===== */
@media (max-width: 992px) {
    /* صفحة الطلب قبل الدفع: "إزاي تدفع" قبل الفيديو */
    .lms-player--pay-first .lms-player__aside {
        order: -1;
    }

    /* صفحة الكورس: الصورة موجودة كغلاف للفيديو فمش محتاجينها تاني في صندوق السعر */
    .lms-buy__media {
        display: none;
    }
}

/* تواصل معنا: العنوان والوصف موجودين في رأس الصفحة */
.lms .contact__info-title,
.lms .contact__info-subtitle {
    display: none;
}

/* ===== صفحة حسابي ===== */
.lms-profile {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.lms-profile__card {
    padding: 28px 22px 22px;
    text-align: center;
    display: grid;
    gap: 14px;
    justify-items: center;
    position: sticky;
    top: 96px;
}

.lms-profile__card h2 {
    margin: 0;
    font-size: 22px;
    color: var(--lms-brand-dark);
}

.lms-profile__since {
    margin: -8px 0 0;
    color: var(--lms-muted);
    font-size: 14px;
}

.lms-avatar {
    position: relative;
    width: 116px;
    height: 116px;
    border-radius: 50%;
    cursor: pointer;
    display: block;
}

.lms-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px var(--lms-border), var(--lms-shadow);
    background: var(--lms-brand-soft);
}

.lms-avatar__edit {
    position: absolute;
    bottom: 4px;
    inset-inline-end: 4px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--lms-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    font-size: 13px;
}

.lms-profile__info {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: grid;
    gap: 8px;
}

.lms-profile__info li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--lms-muted);
    font-size: 15px;
    word-break: break-all;
}

.lms-profile__info i {
    color: var(--lms-accent);
}

.lms-profile__stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.lms-profile__stats div {
    background: var(--lms-bg);
    border-radius: 12px;
    padding: 10px 6px;
    display: grid;
}

.lms-profile__stats strong {
    font-size: 22px;
    color: var(--lms-brand);
    line-height: 1.2;
}

.lms-profile__stats span {
    font-size: 12px;
    color: var(--lms-muted);
}

/* ===== حقول الفورم ===== */
.lms-form {
    display: grid;
    gap: 16px;
}

.lms-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.lms-field {
    display: grid;
    gap: 6px;
}

.lms-field label {
    font-weight: 700;
    font-size: 15px;
    color: var(--lms-text);
}

.lms-field input {
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--lms-border);
    background: var(--lms-bg);
    padding: 0 14px;
    font-family: inherit;
    font-size: 16px;
    color: var(--lms-text);
    width: 100%;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}

.lms-field input:focus {
    outline: 0;
    border-color: var(--lms-brand);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(87, 66, 61, .1);
}

.lms-field input:disabled {
    color: var(--lms-muted);
    cursor: not-allowed;
}

.lms-field__error {
    color: var(--lms-red);
    font-size: 13px;
}

.lms-field__hint {
    color: var(--lms-muted);
    font-size: 13px;
    display: flex;
    gap: 6px;
    align-items: center;
}

@media (max-width: 992px) {
    .lms-profile {
        grid-template-columns: 1fr;
    }

    .lms-profile__card {
        position: static;
    }
}

@media (max-width: 600px) {
    .lms-form__row {
        grid-template-columns: 1fr;
    }
}

/* ===== آراء الطلاب ===== */
.lms-review__by {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--lms-border);
    display: grid;
    gap: 2px;
}

.lms-review__by strong {
    color: var(--lms-brand-dark);
}

.lms-review__by span {
    color: var(--lms-muted);
    font-size: 13px;
}

.lms-course-review {
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--lms-bg);
}

.lms-course-review__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.lms-course-review__head .lms-review__stars {
    margin: 0;
}

.lms-course-review p {
    margin: 8px 0 0;
    line-height: 1.8;
}

/* =====================================================================
   صفحات الدخول والتسجيل (auth/layout.blade.php)
   ===================================================================== */
.lms-auth-body {
    min-height: 100vh;
}

.lms-auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    min-height: 100vh;
}

.lms-auth__brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 56px clamp(32px, 5vw, 72px);
    color: #fff;
    background:
        radial-gradient(800px 400px at 85% -10%, rgba(201, 154, 60, .22), transparent 60%),
        radial-gradient(700px 500px at 0% 110%, rgba(27, 70, 119, .35), transparent 60%),
        linear-gradient(135deg, #5d4741 0%, #3d2e2a 100%);
}

.lms-auth__brand::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}

.lms-auth__brand > * {
    position: relative;
    z-index: 1;
}

.lms-auth__logo {
    align-self: flex-start;
    background: #fff;
    border-radius: 18px;
    padding: 10px 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .2);
}

.lms-auth__logo img {
    height: 84px;
    display: block;
}

.lms-auth__brand h2 {
    margin: 0 0 6px;
    font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem);
    font-weight: 800;
}

.lms-auth__brand p {
    margin: 0;
    color: rgba(255, 255, 255, .8);
    font-size: 18px;
}

.lms-auth__points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.lms-auth__points li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, .88);
    line-height: 1.6;
}

.lms-auth__points i {
    flex: 0 0 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .1);
    color: #f3c766;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lms-auth__home {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
}

.lms-auth__home:hover {
    color: #fff;
}

.lms-auth__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    gap: 18px;
}

.lms-auth__top {
    width: 100%;
    max-width: 460px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.lms-auth__mobile-logo {
    display: none;
}

.lms-auth__card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: 20px;
    box-shadow: var(--lms-shadow);
    padding: 32px 28px;
}

.lms-auth__card h1 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
    color: var(--lms-brand-dark);
}

.lms-auth__sub {
    margin: 0 0 24px;
    color: var(--lms-muted);
    line-height: 1.7;
}

.lms-auth__switch {
    margin: 0;
    color: var(--lms-muted);
}

.lms-auth__switch a,
.lms-auth__card a {
    color: var(--lms-brand);
    font-weight: 700;
}

/* حقل بأيقونة + زرار إظهار الباسورد */
.lms-input-icon {
    position: relative;
}

.lms-input-icon > i {
    position: absolute;
    top: 50%;
    inset-inline-start: 15px;
    transform: translateY(-50%);
    color: var(--lms-muted);
    pointer-events: none;
}

.lms-input-icon input {
    height: 50px;
    border-radius: 12px;
    border: 1px solid var(--lms-border);
    background: var(--lms-bg);
    padding-inline: 44px 14px;
    font-family: inherit;
    font-size: 16px;
    color: var(--lms-text);
    width: 100%;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}

/* الحقول الإنجليزي (إيميل، موبايل) جوه صفحة عربي: الحقل نفسه ltr فالمسافة لازم تبقى يمين (جنب الأيقونة) */
[dir=rtl] .lms-input-icon input[dir=ltr] {
    text-align: right;
    padding-left: 14px;
    padding-right: 44px;
}

.lms-input-icon input:focus {
    outline: 0;
    border-color: var(--lms-brand);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(87, 66, 61, .1);
}

.lms-input-icon__toggle {
    position: absolute;
    top: 50%;
    inset-inline-end: 6px;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    background: none;
    color: var(--lms-muted);
    cursor: pointer;
    border-radius: 10px;
}

.lms-input-icon:has(.lms-input-icon__toggle) input {
    padding-inline-end: 48px;
}

.lms-field__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.lms-field__label-row a {
    font-size: 14px;
    font-weight: 600;
}

.lms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: var(--lms-text);
    line-height: 1.6;
}

.lms-check input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--lms-brand);
    flex: 0 0 auto;
}

@media (max-width: 900px) {
    .lms-auth {
        grid-template-columns: 1fr;
    }

    .lms-auth__brand {
        display: none;
    }

    .lms-auth-body {
        background:
            radial-gradient(600px 300px at 100% 0%, rgba(201, 154, 60, .12), transparent 60%),
            var(--lms-bg);
    }

    .lms-auth__main {
        justify-content: flex-start;
        padding: 18px 16px 32px;
    }

    .lms-auth__top {
        justify-content: space-between;
    }

    .lms-auth__mobile-logo {
        display: block;
        background: #fff;
        border-radius: 14px;
        padding: 6px 10px;
        border: 1px solid var(--lms-border);
    }

    .lms-auth__mobile-logo img {
        height: 48px;
        display: block;
    }

    .lms-auth__card {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .lms-auth__card h1 {
        font-size: 22px;
    }
}
