/* =========================================================
   theme-saudi.css
   Frontend-only visual layer. Loaded only by
   application/views/frontend/default-new/includes_top.php
   — never by the admin / backend shell.
   ========================================================= */

body.theme-saudi {
    --sa-primary: #754FFE;
    --sa-primary-700: #5432C9;
    --sa-primary-100: #EDE7FF;
    --sa-primary-50: #F6F3FF;
    --sa-ink: #0D0C23;
    --sa-body: #4B4B63;
    --sa-muted: #6E798A;
    --sa-line: #ECEAF4;
    --sa-bg: #F8F7FC;
    --sa-radius: 18px;
    --sa-radius-sm: 14px;
    --sa-shadow: 0 14px 36px rgba(70, 51, 156, .08);
    --sa-shadow-sm: 0 6px 18px rgba(13, 12, 35, .05);
    --sa-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Page canvas (skip dark mode) ---------- */
body.theme-saudi:not(.dark-theme) {
    background-color: var(--sa-bg);
    background-image:
        radial-gradient(900px 520px at 88% -12%, rgba(117, 79, 254, .12), transparent 62%),
        radial-gradient(720px 440px at 6% -4%, rgba(0, 128, 255, .06), transparent 58%),
        linear-gradient(180deg, #F3F0FB 0px, #F8F7FC 520px, #FAFAFD 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--sa-body);
    position: relative;
}

/* Stacking: header above page content so wishlist/notify dropdowns aren't buried */
body.theme-saudi:not(.dark-theme) > header,
body.theme-saudi:not(.dark-theme) .menubar {
    position: relative;
    z-index: 1100;
}

body.theme-saudi:not(.dark-theme) > section,
body.theme-saudi:not(.dark-theme) > footer,
body.theme-saudi:not(.dark-theme) > .wish-list-body,
body.theme-saudi:not(.dark-theme) > .sa-profile-page,
body.theme-saudi:not(.dark-theme) .bread-crumb {
    position: relative;
    z-index: 1;
}

body.theme-saudi:not(.dark-theme) .wisth_tgl_2div,
body.theme-saudi:not(.dark-theme) .menu_pro_tgl_div,
body.theme-saudi:not(.dark-theme) .js-header-notification {
    position: relative;
    z-index: 1110;
}

/* Site-wide ambient (hidden on home — it has its own) */
body.theme-saudi:not(.dark-theme) .sa-page-ambient {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

body.theme-saudi:has(#saudiHome) .sa-page-ambient {
    display: none;
}

/* Soft sky sparkles — barely-there accents on the homepage */
@keyframes saSkySoft {
    0%, 100% { opacity: .18; }
    50% { opacity: .42; }
}

body.theme-saudi:not(.dark-theme) .sa-sky {
    display: none !important;
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

body.theme-saudi:has(#saudiHome):not(.dark-theme) .sa-sky {
    display: block !important;
}

body.theme-saudi:not(.dark-theme) .sa-sky__star {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: rgba(117, 79, 254, .55);
    box-shadow: 0 0 6px 1px rgba(117, 79, 254, .22);
    animation: saSkySoft 5.5s ease-in-out infinite;
}

body.theme-saudi:not(.dark-theme) .sa-sky__star::before,
body.theme-saudi:not(.dark-theme) .sa-sky__star::after {
    content: none;
}

body.theme-saudi:not(.dark-theme) .sa-sky__dot {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: rgba(117, 79, 254, .35);
    box-shadow: 0 0 5px 1px rgba(117, 79, 254, .14);
    animation: saSkySoft 6.5s ease-in-out infinite;
}

/* Keep only a few, near the edges */
body.theme-saudi:not(.dark-theme) .sa-sky__star.s1  { top: 14%; inset-inline-end: 4%; }
body.theme-saudi:not(.dark-theme) .sa-sky__star.s2  { top: 22%; inset-inline-start: 3%; animation-delay: 1.2s; }
body.theme-saudi:not(.dark-theme) .sa-sky__star.s3,
body.theme-saudi:not(.dark-theme) .sa-sky__star.s4,
body.theme-saudi:not(.dark-theme) .sa-sky__star.s7,
body.theme-saudi:not(.dark-theme) .sa-sky__star.s8,
body.theme-saudi:not(.dark-theme) .sa-sky__star.s10 { display: none; }
body.theme-saudi:not(.dark-theme) .sa-sky__star.s5  { top: 62%; inset-inline-end: 3%; animation-delay: 2.4s; }
body.theme-saudi:not(.dark-theme) .sa-sky__star.s6  { top: 78%; inset-inline-start: 5%; animation-delay: 3.6s; }
body.theme-saudi:not(.dark-theme) .sa-sky__star.s9  { top: 88%; inset-inline-end: 6%; animation-delay: .8s; }

body.theme-saudi:not(.dark-theme) .sa-sky__dot.d1 { top: 18%; inset-inline-start: 8%; animation-delay: .6s; }
body.theme-saudi:not(.dark-theme) .sa-sky__dot.d2 { top: 36%; inset-inline-end: 5%; animation-delay: 2s; }
body.theme-saudi:not(.dark-theme) .sa-sky__dot.d3,
body.theme-saudi:not(.dark-theme) .sa-sky__dot.d5,
body.theme-saudi:not(.dark-theme) .sa-sky__dot.d8 { display: none; }
body.theme-saudi:not(.dark-theme) .sa-sky__dot.d4 { top: 54%; inset-inline-end: 8%; animation-delay: 3.2s; }
body.theme-saudi:not(.dark-theme) .sa-sky__dot.d6 { top: 70%; inset-inline-start: 4%; animation-delay: 1.5s; }
body.theme-saudi:not(.dark-theme) .sa-sky__dot.d7 { top: 90%; inset-inline-start: 7%; animation-delay: 4s; }

@media (prefers-reduced-motion: reduce) {
    body.theme-saudi:not(.dark-theme) .sa-sky__star,
    body.theme-saudi:not(.dark-theme) .sa-sky__dot {
        animation: none !important;
        opacity: .28;
    }
}

@media (max-width: 767.98px) {
    body.theme-saudi:not(.dark-theme) .sa-sky__star.s6,
    body.theme-saudi:not(.dark-theme) .sa-sky__star.s9,
    body.theme-saudi:not(.dark-theme) .sa-sky__dot.d4,
    body.theme-saudi:not(.dark-theme) .sa-sky__dot.d7 {
        display: none;
    }
}

body.theme-saudi:not(.dark-theme) .sa-page-ambient .glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
}

body.theme-saudi:not(.dark-theme) .sa-page-ambient .a1 {
    width: 400px;
    height: 400px;
    inset-inline-end: -170px;
    top: 18%;
    background: rgba(117, 79, 254, .09);
}

body.theme-saudi:not(.dark-theme) .sa-page-ambient .a2 {
    width: 340px;
    height: 340px;
    inset-inline-start: -180px;
    top: 58%;
    background: rgba(0, 128, 255, .06);
}

body.theme-saudi:not(.dark-theme) .sa-page-ambient .a3 {
    width: 300px;
    height: 300px;
    inset-inline-end: -130px;
    top: 82%;
    background: rgba(255, 176, 32, .04);
}

body.theme-saudi:not(.dark-theme) .sa-page-ambient .ring {
    position: absolute;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(117, 79, 254, .12);
    box-sizing: border-box;
    box-shadow:
        0 12px 32px rgba(70, 51, 156, .06),
        0 2px 8px rgba(70, 51, 156, .03);
}

body.theme-saudi:not(.dark-theme) .sa-page-ambient .ring.soft {
    border-color: rgba(117, 79, 254, .08);
}

body.theme-saudi:not(.dark-theme) .sa-page-ambient .ring.sky {
    border-color: rgba(0, 128, 255, .11);
    box-shadow:
        0 12px 32px rgba(0, 100, 200, .05),
        0 2px 8px rgba(0, 100, 200, .025);
}

body.theme-saudi:not(.dark-theme) .sa-page-ambient .ring.dashed {
    border-style: dashed;
    border-width: 1.15px;
}

body.theme-saudi:not(.dark-theme) .sa-page-ambient .line {
    position: absolute;
    height: 1px;
    transform-origin: center left;
    background: linear-gradient(90deg, rgba(117, 79, 254, .14), rgba(117, 79, 254, .015));
    border-radius: 999px;
    filter: drop-shadow(0 5px 8px rgba(70, 51, 156, .10));
}

body.theme-saudi:not(.dark-theme) .sa-page-ambient .line.sky {
    background: linear-gradient(90deg, rgba(0, 128, 255, .12), rgba(0, 128, 255, .015));
    filter: drop-shadow(0 5px 8px rgba(0, 100, 200, .08));
}

body.theme-saudi:not(.dark-theme) .menubar {
    background-color: transparent;
}

/* ---------- Typography ---------- */
body.theme-saudi,
body.theme-saudi *:not(i):not([class*="fa"]):not(.material-icons):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands),
body.theme-saudi h1,
body.theme-saudi h2,
body.theme-saudi h3,
body.theme-saudi h4,
body.theme-saudi h5,
body.theme-saudi h6,
body.theme-saudi p,
body.theme-saudi a:not([class*="fa"]),
body.theme-saudi span:not([class*="fa"]),
body.theme-saudi div,
body.theme-saudi li,
body.theme-saudi button,
body.theme-saudi input,
body.theme-saudi textarea,
body.theme-saudi select,
body.theme-saudi label,
body.theme-saudi .btn,
body.theme-saudi .form-control,
body.theme-saudi .nav-link,
body.theme-saudi .dropdown-item,
body.theme-saudi .accordion-button {
    font-family: 'Tajawal', 'Cairo', sans-serif !important;
}

/* Keep icon fonts intact (mirror custom.css restores) */
body.theme-saudi .fa,
body.theme-saudi .fas,
body.theme-saudi .far,
body.theme-saudi .fal,
body.theme-saudi .fad,
body.theme-saudi .fa-solid,
body.theme-saudi .fa-regular,
body.theme-saudi .fa-light,
body.theme-saudi .fa-duotone,
body.theme-saudi i[class*="fa-"],
body.theme-saudi [class^="fa-"],
body.theme-saudi [class*=" fa-"],
body.theme-saudi .material-icons {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
}

body.theme-saudi .fab,
body.theme-saudi .fa-brands {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", "FontAwesome" !important;
}

body.theme-saudi .slick-prev:before,
body.theme-saudi .slick-next:before {
    font-family: "slick" !important;
}

body.theme-saudi h1,
body.theme-saudi h2,
body.theme-saudi h3,
body.theme-saudi h4,
body.theme-saudi h5,
body.theme-saudi h6 {
    color: var(--sa-ink);
    letter-spacing: -.01em;
}

/* ---------- Cards ---------- */
body.theme-saudi:not(.dark-theme) .common-card,
body.theme-saudi:not(.dark-theme) .courses-card-body,
body.theme-saudi:not(.dark-theme) .blogCard,
body.theme-saudi:not(.dark-theme) .course-item-one,
body.theme-saudi:not(.dark-theme) .course-item-5 {
    border: 1px solid var(--sa-line) !important;
    border-radius: var(--sa-radius) !important;
    box-shadow: var(--sa-shadow-sm) !important;
    background-color: #fff !important;
    transition: transform .35s var(--sa-ease), box-shadow .35s var(--sa-ease), border-color .35s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .common-card:hover,
body.theme-saudi:not(.dark-theme) .courses-card-body:hover,
body.theme-saudi:not(.dark-theme) .blogCard:hover {
    border-color: rgba(117, 79, 254, .32) !important;
    box-shadow: var(--sa-shadow) !important;
}

body.theme-saudi:not(.dark-theme) .courses-card-image,
body.theme-saudi:not(.dark-theme) .courses-card-image img,
body.theme-saudi:not(.dark-theme) .blogCard .courses-card-image,
body.theme-saudi:not(.dark-theme) .blogCard .courses-card-image img {
    border-radius: var(--sa-radius-sm);
}

body.theme-saudi:not(.dark-theme) .courses-card-price-badge {
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--sa-primary), var(--sa-primary-700)) !important;
}

/* ---------- Buttons ---------- */
body.theme-saudi:not(.dark-theme) .btn-primary,
body.theme-saudi:not(.dark-theme) .eBtn,
body.theme-saudi:not(.dark-theme) a.eBtn,
body.theme-saudi:not(.dark-theme) .signUp-btn,
body.theme-saudi:not(.dark-theme) .theme-btn {
    background: linear-gradient(135deg, var(--sa-primary), var(--sa-primary-700)) !important;
    border-color: transparent !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 24px rgba(117, 79, 254, .26);
    transition: transform .3s var(--sa-ease), box-shadow .3s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .btn-primary:hover,
body.theme-saudi:not(.dark-theme) .eBtn:hover,
body.theme-saudi:not(.dark-theme) a.eBtn:hover {
    box-shadow: 0 16px 32px rgba(117, 79, 254, .34);
    transform: translateY(-1px);
}

body.theme-saudi:not(.dark-theme) .btn-outline-primary {
    border-radius: 999px !important;
    border-color: rgba(117, 79, 254, .35) !important;
    color: var(--sa-primary-700) !important;
}

body.theme-saudi:not(.dark-theme) .btn-outline-primary:hover {
    background: var(--sa-primary-50) !important;
    border-color: var(--sa-primary) !important;
    color: var(--sa-primary-700) !important;
}

/* ---------- Forms ---------- */
body.theme-saudi:not(.dark-theme) .form-control,
body.theme-saudi:not(.dark-theme) .form-select,
body.theme-saudi:not(.dark-theme) .nice-select,
body.theme-saudi:not(.dark-theme) .search-input {
    border-radius: 14px !important;
    border-color: var(--sa-line) !important;
}

body.theme-saudi:not(.dark-theme) .form-control:focus,
body.theme-saudi:not(.dark-theme) .form-select:focus,
body.theme-saudi:not(.dark-theme) .search-input:focus,
body.theme-saudi:not(.dark-theme) .search-input.focused {
    border-color: rgba(117, 79, 254, .45) !important;
    box-shadow: 0 0 0 4px rgba(117, 79, 254, .12) !important;
    background-color: #fff !important;
}

/* ---------- Accordion / FAQ ---------- */
body.theme-saudi:not(.dark-theme) .accordion-item {
    border: 1px solid var(--sa-line) !important;
    border-radius: 16px !important;
    overflow: hidden;
    margin-bottom: 12px;
    background: #fff;
}

body.theme-saudi:not(.dark-theme) .accordion-button {
    font-weight: 700;
    color: var(--sa-ink);
    box-shadow: none !important;
}

body.theme-saudi:not(.dark-theme) .accordion-button:not(.collapsed) {
    color: var(--sa-primary);
    background: var(--sa-primary-50);
}

/* ---------- Pagination ---------- */
body.theme-saudi:not(.dark-theme) .page-link {
    border-radius: 12px !important;
    border-color: var(--sa-line) !important;
    color: var(--sa-ink);
    margin: 0 3px;
}

body.theme-saudi:not(.dark-theme) .page-item.active .page-link {
    background: var(--sa-primary) !important;
    border-color: var(--sa-primary) !important;
}

/* ---------- Header / footer soft polish ---------- */
body.theme-saudi:not(.dark-theme) .menubar .btn,
body.theme-saudi:not(.dark-theme) .logIn-btn,
body.theme-saudi:not(.dark-theme) .signUp-btn {
    border-radius: 999px !important;
}

/* Footer — readable titles on dark bg + polish */
body.theme-saudi .lms2-footer-section {
    background:
        radial-gradient(520px 280px at 88% 0%, rgba(117, 79, 254, .18), transparent 60%),
        radial-gradient(420px 240px at 8% 100%, rgba(62, 112, 252, .12), transparent 55%),
        #0F1529 !important;
    border-top: 0 !important;
}

body.theme-saudi .lms2-footer-section .ft2-title,
body.theme-saudi .lms2-footer-section h4.ft2-title,
body.theme-saudi .lms2-footer-section h4 {
    color: #FFFFFF !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    letter-spacing: .02em;
    margin-bottom: 18px !important;
    text-transform: none;
}

body.theme-saudi .lms2-footer-section .ft2-logo-area > p,
body.theme-saudi .lms2-footer-section .ft2-short-des {
    color: rgba(218, 225, 245, .72) !important;
    line-height: 1.75;
    font-size: 14px;
}

body.theme-saudi .lms2-footer-section .ft2-nav-link {
    color: #A8B0C8 !important;
    font-size: 14.5px;
    transition: color .25s var(--sa-ease), padding-inline-start .25s var(--sa-ease);
}

body.theme-saudi .lms2-footer-section .ft2-nav-link:hover {
    color: #FFFFFF !important;
    padding-inline-start: 4px;
}

body.theme-saudi .lms2-footer-section .ft2-nav-group > li:not(:last-child) {
    margin-bottom: 10px;
}

body.theme-saudi .lms2-footer-section .ft2-padding {
    padding-top: 56px;
    padding-bottom: 48px;
}

body.theme-saudi .lms2-footer-section .ft2-subscribe-wrap {
    border-radius: 18px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    padding: 24px 22px 26px;
    backdrop-filter: blur(8px);
}

body.theme-saudi .lms2-footer-section .ft2-newsLetter-input {
    border-radius: 12px !important;
    border: 1px solid rgba(117, 79, 254, .55) !important;
    background: rgba(15, 21, 41, .85) !important;
    color: #DAE1F5 !important;
}

body.theme-saudi .lms2-footer-section .ft2-newsLetter-input::placeholder {
    color: rgba(218, 225, 245, .55) !important;
}

body.theme-saudi .lms2-footer-section .ft2-newsLetter-row .ft2-newsLetter-btn {
    border-radius: 12px !important;
    background: linear-gradient(135deg, var(--sa-primary), var(--sa-primary-700)) !important;
    width: 50px;
    transition: transform .25s var(--sa-ease), box-shadow .25s var(--sa-ease);
    box-shadow: 0 8px 18px rgba(117, 79, 254, .35);
}

body.theme-saudi .lms2-footer-section .ft2-newsLetter-row .ft2-newsLetter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(117, 79, 254, .45);
}

body.theme-saudi .lms2-footer-section .ft2-copyright-info,
body.theme-saudi .lms2-footer-section .ft2-copyright-nav-link {
    color: #99A0B7 !important;
}

body.theme-saudi .lms2-footer-section .ft2-copyright-nav-link:hover {
    color: #fff !important;
}

body.theme-saudi .lms2-footer-section .ft2-bottom-content {
    padding: 22px 0;
}

body.theme-saudi .lms2-footer-section .ft2-company-bar {
    margin: 10px 0 4px;
    padding: 14px 0 6px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    overflow: visible;
}

body.theme-saudi .lms2-footer-section .ft2-company-bar img {
    width: auto;
    max-width: min(100%, 920px);
    height: auto;
    max-height: none;
    object-fit: contain;
}

body.theme-saudi .lms2-footer-section .lms2-footer-logo {
    margin-bottom: 18px;
}

body.theme-saudi .lms2-footer-section .ft2-socila-link:hover path {
    fill: var(--sa-primary);
}

/* ---------- Auth surfaces ---------- */
body.theme-saudi:not(.dark-theme) .sa-auth {
    padding-block: 40px 64px !important;
    margin-top: 8px !important;
    position: relative;
}

body.theme-saudi:not(.dark-theme) .sa-auth::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(560px 340px at 8% 12%, rgba(117, 79, 254, .09), transparent 70%),
        radial-gradient(440px 300px at 92% 78%, rgba(0, 128, 255, .07), transparent 68%);
    pointer-events: none;
    z-index: 0;
}

body.theme-saudi:not(.dark-theme) .sa-auth > .container {
    position: relative;
    z-index: 1;
    max-width: 1080px;
}

body.theme-saudi:not(.dark-theme) .sa-auth-shell {
    background: #fff;
    border: 1px solid rgba(117, 79, 254, .10);
    border-radius: 32px;
    box-shadow:
        0 4px 16px rgba(70, 51, 156, .04),
        0 28px 64px rgba(70, 51, 156, .10);
    overflow: hidden;
    animation: saAuthShellIn .55s var(--sa-ease) both;
}

@keyframes saAuthShellIn {
    from { opacity: 0; transform: translateY(16px) scale(.985); }
    to { opacity: 1; transform: none; }
}

body.theme-saudi:not(.dark-theme) .sa-auth-visual {
    position: relative;
    padding: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 48px);
    background:
        radial-gradient(380px 260px at 78% 16%, rgba(117, 79, 254, .22), transparent 68%),
        radial-gradient(320px 220px at 14% 84%, rgba(0, 128, 255, .14), transparent 65%),
        linear-gradient(165deg, #F4F0FF 0%, #EEF4FF 48%, #F7FAFF 100%);
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body.theme-saudi:not(.dark-theme) .sa-auth-visual-art {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

body.theme-saudi:not(.dark-theme) .sa-auth-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(117, 79, 254, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(117, 79, 254, .05) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 72%);
    opacity: .7;
}

body.theme-saudi:not(.dark-theme) .sa-auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    animation: saAuthFloat 8s ease-in-out infinite;
}

body.theme-saudi:not(.dark-theme) .sa-auth-orb--1 {
    width: 160px;
    height: 160px;
    top: 6%;
    inset-inline-end: 4%;
    background: radial-gradient(circle, rgba(117, 79, 254, .38), transparent 70%);
}

body.theme-saudi:not(.dark-theme) .sa-auth-orb--2 {
    width: 110px;
    height: 110px;
    bottom: 10%;
    inset-inline-start: 6%;
    background: radial-gradient(circle, rgba(0, 128, 255, .30), transparent 70%);
    animation-delay: -3s;
}

body.theme-saudi:not(.dark-theme) .sa-auth-orb--3 {
    width: 64px;
    height: 64px;
    top: 42%;
    inset-inline-start: 12%;
    background: radial-gradient(circle, rgba(117, 79, 254, .22), transparent 70%);
    animation-delay: -5s;
}

body.theme-saudi:not(.dark-theme) .sa-auth-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(117, 79, 254, .16);
    animation: saAuthPulse 6s ease-in-out infinite;
}

body.theme-saudi:not(.dark-theme) .sa-auth-ring--1 {
    width: 240px;
    height: 240px;
    top: 50%;
    inset-inline-start: 50%;
    transform: translate(-50%, -50%);
}

body.theme-saudi:not(.dark-theme) .sa-auth-ring--2 {
    width: 340px;
    height: 340px;
    top: 50%;
    inset-inline-start: 50%;
    transform: translate(-50%, -50%);
    border-color: rgba(0, 128, 255, .10);
    animation-delay: -2s;
}

@keyframes saAuthFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes saAuthPulse {
    0%, 100% { opacity: .4; }
    50% { opacity: .85; }
}

body.theme-saudi:not(.dark-theme) .sa-auth-visual-content {
    position: relative;
    z-index: 1;
    max-width: 400px;
}

body.theme-saudi:not(.dark-theme) .sa-auth-brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--sa-ink);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.01em;
}

body.theme-saudi:not(.dark-theme) .sa-auth-brand-mark__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sa-primary), #0080FF);
    box-shadow: 0 0 0 4px rgba(117, 79, 254, .16);
}

body.theme-saudi:not(.dark-theme) .sa-auth-brand-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(117, 79, 254, .18);
    color: var(--sa-primary-700);
    font-size: 12.5px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(70, 51, 156, .07);
}

body.theme-saudi:not(.dark-theme) .sa-auth-visual img {
    max-width: 340px;
    width: 68% !important;
    height: auto;
    filter: drop-shadow(0 18px 30px rgba(70, 51, 156, .12));
    position: relative;
    z-index: 1;
}

body.theme-saudi:not(.dark-theme) .sa-auth-visual-note {
    margin: 18px auto 0;
    max-width: 300px;
    color: var(--sa-muted);
    font-size: 13.5px;
    line-height: 1.7;
}

body.theme-saudi:not(.dark-theme) .sa-auth-panel {
    padding: clamp(32px, 4.5vw, 52px) clamp(26px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

body.theme-saudi:not(.dark-theme) .sa-auth-panel-head {
    margin-bottom: 28px;
}

body.theme-saudi:not(.dark-theme) .sa-auth-panel-head h3,
body.theme-saudi:not(.dark-theme) .sa-auth-panel h3 {
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    color: var(--sa-ink);
    margin-bottom: 8px;
    letter-spacing: -.02em;
    line-height: 1.2;
}

body.theme-saudi:not(.dark-theme) .sa-auth-panel-head p,
body.theme-saudi:not(.dark-theme) .sa-auth-panel > p {
    color: var(--sa-muted);
    line-height: 1.75;
    margin-bottom: 0 !important;
    font-size: 14.5px;
    max-width: 38ch;
}

/* ---- Modern input fields + icons ---- */
body.theme-saudi:not(.dark-theme) .sa-auth-form {
    margin-bottom: 8px;
}

body.theme-saudi:not(.dark-theme) .sa-auth-field {
    margin-bottom: 18px;
}

body.theme-saudi:not(.dark-theme) .sa-auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

body.theme-saudi:not(.dark-theme) .sa-auth-label,
body.theme-saudi:not(.dark-theme) .sa-auth-panel h5,
body.theme-saudi:not(.dark-theme) .sa-auth-panel .sa-auth-label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--sa-ink);
    margin-bottom: 8px;
}

body.theme-saudi:not(.dark-theme) .sa-auth-label-row .sa-auth-label {
    margin-bottom: 0;
}

body.theme-saudi:not(.dark-theme) .sa-auth-forgot {
    color: var(--sa-primary) !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
}

body.theme-saudi:not(.dark-theme) .sa-auth-forgot:hover {
    text-decoration: underline !important;
}

body.theme-saudi:not(.dark-theme) .sa-auth-input {
    position: relative;
    display: block;
}

body.theme-saudi:not(.dark-theme) .sa-auth-input__icon {
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 3;
    color: #8B93A7;
}

body.theme-saudi:not(.dark-theme) .sa-auth-input__icon i,
body.theme-saudi:not(.dark-theme) .sa-auth-panel .sa-auth-input__icon i,
body.theme-saudi:not(.dark-theme) .sing-up-right .sa-auth-input__icon i {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 !important;
    font-size: 15px;
    line-height: 1;
    color: inherit !important;
}

body.theme-saudi:not(.dark-theme) .sa-auth-input__toggle {
    position: absolute;
    inset-inline-end: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #8B93A7;
    cursor: pointer;
    z-index: 3;
    border-radius: 10px;
    transition: color .2s var(--sa-ease), background .2s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .sa-auth-input__toggle:hover {
    color: var(--sa-primary);
    background: rgba(117, 79, 254, .08);
}

body.theme-saudi:not(.dark-theme) .sa-auth-input__toggle i,
body.theme-saudi:not(.dark-theme) .sa-auth-panel .sa-auth-input__toggle i,
body.theme-saudi:not(.dark-theme) .sing-up-right .sa-auth-input__toggle i {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 !important;
    font-size: 15px;
    line-height: 1;
}

body.theme-saudi:not(.dark-theme) .sa-auth-panel .sa-auth-input .form-control,
body.theme-saudi:not(.dark-theme) .sa-auth-panel .form-control {
    width: 100%;
    padding-block: 14px !important;
    padding-inline-start: 48px !important;
    padding-inline-end: 16px !important;
    border-radius: 14px !important;
    border: 1.5px solid rgba(110, 121, 138, .18) !important;
    background: #F7F6FB !important;
    color: var(--sa-ink) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    min-height: 54px;
    line-height: 1.4;
    text-align: start !important;
    box-shadow: none !important;
    transition: border-color .25s var(--sa-ease), box-shadow .25s var(--sa-ease), background .25s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .sa-auth-panel .sa-auth-input--password .form-control {
    padding-inline-end: 48px !important;
}

body.theme-saudi:not(.dark-theme) .sa-auth-panel .sa-auth-input .form-control::placeholder {
    color: #9AA3B5 !important;
    font-weight: 400;
}

body.theme-saudi:not(.dark-theme) .sa-auth-panel .sa-auth-input .form-control:hover {
    border-color: rgba(117, 79, 254, .28) !important;
}

body.theme-saudi:not(.dark-theme) .sa-auth-panel .sa-auth-input .form-control:focus {
    background: #fff !important;
    border-color: rgba(117, 79, 254, .55) !important;
    box-shadow: 0 0 0 4px rgba(117, 79, 254, .12) !important;
}

body.theme-saudi:not(.dark-theme) .sa-auth-input:focus-within .sa-auth-input__icon {
    color: var(--sa-primary);
}

/* Override legacy .sing-up-right i absolute left/top rules */
body.theme-saudi:not(.dark-theme) .sing-up-right.sa-auth-panel .sa-auth-input i,
body.theme-saudi:not(.dark-theme) .sing-up-right.sa-auth-panel .sa-auth-role-chip i {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
}

body.theme-saudi:not(.dark-theme) .sa-auth-panel .position-relative > i {
    position: absolute !important;
    inset-inline-start: 16px !important;
    inset-inline-end: auto !important;
    left: auto !important;
    right: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #8B93A7 !important;
    z-index: 2;
    font-size: 15px;
    line-height: 1;
    margin: 0 !important;
    pointer-events: none;
}

body.theme-saudi:not(.dark-theme) .sa-auth-panel .auth-password-field .form-control {
    padding-inline-start: 48px !important;
    padding-inline-end: 48px !important;
}

body.theme-saudi:not(.dark-theme) .sa-auth-panel .auth-password-toggle {
    position: absolute;
    inset-inline-end: 6px !important;
    inset-inline-start: auto !important;
    left: auto !important;
    right: auto !important;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8B93A7;
    cursor: pointer;
    z-index: 3;
    border-radius: 10px;
}

body.theme-saudi:not(.dark-theme) .sa-auth-panel .auth-password-toggle i {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
}

body.theme-saudi:not(.dark-theme) .sa-auth-panel .log-in .btn,
body.theme-saudi:not(.dark-theme) .sa-auth-panel .log-in .btn-primary,
body.theme-saudi:not(.dark-theme) .sa-auth-submit .btn {
    width: 100%;
    margin-top: 8px;
    margin-bottom: 4px;
    padding: 15px 28px !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    font-size: 15.5px !important;
    background: linear-gradient(135deg, var(--sa-primary), var(--sa-primary-700)) !important;
    border: 0 !important;
    box-shadow: 0 12px 28px rgba(117, 79, 254, .28);
    color: #fff !important;
    transition: transform .25s var(--sa-ease), box-shadow .25s var(--sa-ease), filter .25s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .sa-auth-panel .log-in .btn:hover,
body.theme-saudi:not(.dark-theme) .sa-auth-panel .log-in .btn-primary:hover,
body.theme-saudi:not(.dark-theme) .sa-auth-submit .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(117, 79, 254, .34);
    filter: brightness(1.03);
}

body.theme-saudi:not(.dark-theme) .sa-auth-panel .log-in .btn.sa-auth-back {
    background: #fff !important;
    color: var(--sa-primary-700) !important;
    border: 1px solid rgba(117, 79, 254, .28) !important;
    box-shadow: none;
}

body.theme-saudi:not(.dark-theme) .sa-auth-roles {
    margin-top: 18px !important;
    margin-bottom: 4px;
}

body.theme-saudi:not(.dark-theme) .sa-auth-role-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: 12px;
    border: 1px solid rgba(117, 79, 254, .18);
    background: #F7F5FF;
    color: var(--sa-primary-700) !important;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .25s var(--sa-ease), border-color .25s var(--sa-ease), transform .2s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .sa-auth-role-chip i {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    font-size: 12px;
    color: inherit !important;
}

body.theme-saudi:not(.dark-theme) .sa-auth-role-chip:hover {
    background: rgba(117, 79, 254, .12);
    border-color: rgba(117, 79, 254, .35);
    transform: translateY(-1px);
}

body.theme-saudi:not(.dark-theme) .sa-auth-role-chip--muted {
    background: #fff;
    border-color: var(--sa-line);
    color: var(--sa-muted) !important;
}

body.theme-saudi:not(.dark-theme) .sa-auth-role-chip--muted:hover {
    color: var(--sa-ink) !important;
    border-color: rgba(117, 79, 254, .28);
    background: #F8F7FC;
}

body.theme-saudi:not(.dark-theme) .sa-auth-switch {
    margin-top: 16px;
}

body.theme-saudi:not(.dark-theme) .sa-auth-panel .another a {
    color: var(--sa-primary);
    font-weight: 700;
    text-decoration: none;
}

body.theme-saudi:not(.dark-theme) .sa-auth-panel .another p {
    color: var(--sa-muted);
    margin-bottom: 0 !important;
    font-size: 14px;
}

body.theme-saudi:not(.dark-theme) .sa-auth-divider {
    margin-top: 18px;
}

body.theme-saudi:not(.dark-theme) .sa-auth-panel .another h5,
body.theme-saudi:not(.dark-theme) .sa-auth-divider h5 {
    color: var(--sa-muted);
    font-weight: 600;
    font-size: 13px;
    margin: 0;
}

body.theme-saudi:not(.dark-theme) .sa-auth-panel .another h5::before,
body.theme-saudi:not(.dark-theme) .sa-auth-panel .another h5::after {
    background-color: rgba(117, 79, 254, .14) !important;
    width: 38% !important;
}

body.theme-saudi:not(.dark-theme) .sa-auth-panel .google-custom-btn,
body.theme-saudi:not(.dark-theme) .sa-auth-panel .google-login-fallback {
    border-radius: 14px !important;
    border: 1.5px solid rgba(110, 121, 138, .18) !important;
    background: #fff !important;
    color: var(--sa-ink) !important;
    font-weight: 700;
    min-height: 50px;
    box-shadow: none;
}

body.theme-saudi:not(.dark-theme) .sa-auth-panel .google-custom-btn:hover {
    border-color: rgba(117, 79, 254, .35) !important;
    background: var(--sa-primary-50) !important;
}

body.theme-saudi:not(.dark-theme) .sa-auth-panel .custom-file-upload-btn {
    border-radius: 999px;
    background: var(--sa-primary-100);
    color: var(--sa-primary-700);
    border: 0;
    padding: 10px 18px;
    font-weight: 700;
}

/* ---- Signup: premium split showcase ---- */
body.theme-saudi:not(.dark-theme) .sa-auth--signup {
    padding-block: 32px 72px !important;
}

body.theme-saudi:not(.dark-theme) .sa-auth--signup > .container {
    max-width: 1120px;
}

body.theme-saudi:not(.dark-theme) .sa-auth--signup::before {
    background:
        radial-gradient(640px 400px at 10% 20%, rgba(117, 79, 254, .14), transparent 70%),
        radial-gradient(520px 360px at 90% 80%, rgba(0, 128, 255, .10), transparent 68%),
        radial-gradient(380px 260px at 50% 100%, rgba(117, 79, 254, .06), transparent 70%);
}

body.theme-saudi:not(.dark-theme) .sa-auth-shell--signup {
    border: 0;
    border-radius: 36px;
    box-shadow:
        0 8px 24px rgba(70, 51, 156, .06),
        0 40px 80px rgba(70, 51, 156, .14);
    background: #fff;
    overflow: hidden;
}

body.theme-saudi:not(.dark-theme) .sa-signup-showcase {
    position: relative;
    min-height: 100%;
    padding: clamp(36px, 4vw, 52px) clamp(28px, 3.5vw, 44px);
    display: flex;
    align-items: center;
    background:
        radial-gradient(420px 320px at 85% 12%, rgba(255, 255, 255, .22), transparent 60%),
        radial-gradient(380px 300px at 10% 88%, rgba(0, 180, 255, .18), transparent 62%),
        linear-gradient(155deg, #5B35E8 0%, #754FFE 42%, #3D2BB5 100%);
    color: #fff;
    overflow: hidden;
}

body.theme-saudi:not(.dark-theme) .sa-signup-showcase__art {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

body.theme-saudi:not(.dark-theme) .sa-signup-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    animation: saSignupFloat 9s ease-in-out infinite;
}

body.theme-saudi:not(.dark-theme) .sa-signup-blob--1 {
    width: 220px;
    height: 220px;
    top: -60px;
    inset-inline-end: -50px;
    background: radial-gradient(circle, rgba(255, 255, 255, .28), transparent 70%);
}

body.theme-saudi:not(.dark-theme) .sa-signup-blob--2 {
    width: 160px;
    height: 160px;
    bottom: 8%;
    inset-inline-start: -40px;
    background: radial-gradient(circle, rgba(0, 200, 255, .35), transparent 70%);
    animation-delay: -3s;
}

body.theme-saudi:not(.dark-theme) .sa-signup-blob--3 {
    width: 90px;
    height: 90px;
    top: 42%;
    inset-inline-end: 12%;
    background: radial-gradient(circle, rgba(255, 200, 80, .28), transparent 70%);
    animation-delay: -5.5s;
}

body.theme-saudi:not(.dark-theme) .sa-signup-shine {
    position: absolute;
    inset: -20% -30%;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .12) 50%, transparent 60%);
    animation: saSignupShine 7s ease-in-out infinite;
}

body.theme-saudi:not(.dark-theme) .sa-signup-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .18);
}

body.theme-saudi:not(.dark-theme) .sa-signup-ring--1 {
    width: 260px;
    height: 260px;
    top: 55%;
    inset-inline-start: 55%;
    transform: translate(-50%, -50%);
    animation: saAuthPulse 6s ease-in-out infinite;
}

body.theme-saudi:not(.dark-theme) .sa-signup-ring--2 {
    width: 380px;
    height: 380px;
    top: 55%;
    inset-inline-start: 55%;
    transform: translate(-50%, -50%);
    border-color: rgba(255, 255, 255, .10);
    animation: saAuthPulse 6s ease-in-out infinite -2s;
}

@keyframes saSignupFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-16px) scale(1.04); }
}

@keyframes saSignupShine {
    0%, 100% { transform: translateX(-12%) rotate(8deg); opacity: .35; }
    50% { transform: translateX(12%) rotate(8deg); opacity: .7; }
}

body.theme-saudi:not(.dark-theme) .sa-signup-showcase__body {
    position: relative;
    z-index: 1;
    width: 100%;
}

body.theme-saudi:not(.dark-theme) .sa-signup-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.01em;
}

body.theme-saudi:not(.dark-theme) .sa-signup-logo__mark {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff, #B8F0FF);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .18);
}

body.theme-saudi:not(.dark-theme) .sa-signup-headline {
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.025em;
    margin-bottom: 12px;
    color: #fff;
    animation: saAuthShellIn .6s var(--sa-ease) both;
}

body.theme-saudi:not(.dark-theme) .sa-signup-lead {
    font-size: 14.5px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .78);
    margin-bottom: 28px;
    max-width: 34ch;
}

body.theme-saudi:not(.dark-theme) .sa-signup-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: grid;
    gap: 14px;
}

body.theme-saudi:not(.dark-theme) .sa-signup-perks li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(10px);
    animation: saAuthShellIn .55s var(--sa-ease) both;
}

body.theme-saudi:not(.dark-theme) .sa-signup-perks li:nth-child(1) { animation-delay: .08s; }
body.theme-saudi:not(.dark-theme) .sa-signup-perks li:nth-child(2) { animation-delay: .16s; }
body.theme-saudi:not(.dark-theme) .sa-signup-perks li:nth-child(3) { animation-delay: .24s; }

body.theme-saudi:not(.dark-theme) .sa-signup-perks__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 14px;
}

body.theme-saudi:not(.dark-theme) .sa-signup-perks strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    color: #fff;
}

body.theme-saudi:not(.dark-theme) .sa-signup-perks span {
    display: block;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .72);
    line-height: 1.45;
}

body.theme-saudi:not(.dark-theme) .sa-signup-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
}

body.theme-saudi:not(.dark-theme) .sa-signup-stat__avatars {
    display: flex;
    align-items: center;
}

body.theme-saudi:not(.dark-theme) .sa-signup-stat__avatars span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .55);
    margin-inline-end: -8px;
    background:
        radial-gradient(circle at 30% 30%, #fff, transparent 45%),
        linear-gradient(135deg, #A78BFA, #60A5FA);
}

body.theme-saudi:not(.dark-theme) .sa-signup-stat__avatars span:nth-child(2) {
    background:
        radial-gradient(circle at 30% 30%, #fff, transparent 45%),
        linear-gradient(135deg, #F472B6, #A78BFA);
}

body.theme-saudi:not(.dark-theme) .sa-signup-stat__avatars span:nth-child(3) {
    background:
        radial-gradient(circle at 30% 30%, #fff, transparent 45%),
        linear-gradient(135deg, #34D399, #60A5FA);
}

body.theme-saudi:not(.dark-theme) .sa-signup-stat p {
    margin: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
    line-height: 1.4;
}

body.theme-saudi:not(.dark-theme) .sa-signup-panel {
    padding: clamp(30px, 4vw, 48px) clamp(24px, 4vw, 52px) !important;
}

body.theme-saudi:not(.dark-theme) .sa-signup-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(117, 79, 254, .10), rgba(0, 128, 255, .08));
    border: 1px solid rgba(117, 79, 254, .16);
    color: var(--sa-primary-700);
    font-size: 12.5px;
    font-weight: 700;
}

body.theme-saudi:not(.dark-theme) .sa-signup-step__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sa-primary);
    box-shadow: 0 0 0 4px rgba(117, 79, 254, .16);
    animation: saAuthPulse 2.4s ease-in-out infinite;
}

body.theme-saudi:not(.dark-theme) .sa-signup-panel .sa-auth-panel-head h3 {
    font-size: clamp(28px, 3.2vw, 38px);
    background: linear-gradient(120deg, var(--sa-ink) 30%, var(--sa-primary-700));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.theme-saudi:not(.dark-theme) .sa-signup-panel .sa-auth-submit .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 16px !important;
    min-height: 56px;
    font-size: 16px !important;
    letter-spacing: -.01em;
    background: linear-gradient(135deg, #8B6BFF 0%, var(--sa-primary) 45%, var(--sa-primary-700) 100%) !important;
    box-shadow:
        0 14px 32px rgba(117, 79, 254, .32),
        inset 0 1px 0 rgba(255, 255, 255, .22);
}

body.theme-saudi:not(.dark-theme) .sa-signup-panel .sa-auth-submit .btn i {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    font-size: 14px;
    transition: transform .25s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .sa-signup-panel .sa-auth-submit .btn:hover i {
    transform: translateX(-3px) !important;
}

[dir="ltr"] body.theme-saudi:not(.dark-theme) .sa-signup-panel .sa-auth-submit .btn:hover i {
    transform: translateX(3px) !important;
}

body.theme-saudi:not(.dark-theme) .sa-signup-panel .sa-auth-input .form-control {
    border-radius: 16px !important;
    min-height: 56px;
    background: linear-gradient(180deg, #F9F8FD, #F5F3FB) !important;
}

body.theme-saudi:not(.dark-theme) .sa-signup-panel .sa-auth-input:focus-within {
    transform: translateY(-1px);
    transition: transform .2s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .sa-signup-panel .sa-auth-social .google-custom-btn,
body.theme-saudi:not(.dark-theme) .sa-signup-panel .sa-auth-social .google-login-fallback {
    border-radius: 16px !important;
    min-height: 52px;
    transition: transform .2s var(--sa-ease), box-shadow .2s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .sa-signup-panel .sa-auth-social .google-custom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(70, 51, 156, .10);
}

body.theme-saudi:not(.dark-theme) .sa-signup-mobile-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 800;
    color: var(--sa-ink);
}

body.theme-saudi:not(.dark-theme) .sa-signup-mobile-banner .sa-signup-logo__mark {
    background: linear-gradient(135deg, var(--sa-primary), #0080FF);
    box-shadow: 0 0 0 4px rgba(117, 79, 254, .16);
}

body.theme-saudi:not(.dark-theme) .sa-auth-input--select .form-control,
body.theme-saudi:not(.dark-theme) .sa-auth-panel .sa-auth-input--select select.form-control {
    appearance: none !important;
    -webkit-appearance: none !important;
    padding-inline-end: 44px !important;
    cursor: pointer;
}

body.theme-saudi:not(.dark-theme) .sa-auth-input__chevron {
    position: absolute;
    inset-inline-end: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    color: #8B93A7;
    font-size: 12px;
}

body.theme-saudi:not(.dark-theme) .sa-auth-input__chevron i {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
}

body.theme-saudi:not(.dark-theme) .sa-auth-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #F7F6FB;
    border: 1px solid rgba(110, 121, 138, .14);
}

body.theme-saudi:not(.dark-theme) .sa-auth-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--sa-primary);
    flex-shrink: 0;
    cursor: pointer;
}

body.theme-saudi:not(.dark-theme) .sa-auth-check label {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--sa-ink);
    cursor: pointer;
    line-height: 1.5;
}

body.theme-saudi:not(.dark-theme) .sa-auth-textarea,
body.theme-saudi:not(.dark-theme) .sa-auth-panel textarea.form-control {
    padding: 14px 16px !important;
    border-radius: 14px !important;
    border: 1.5px solid rgba(110, 121, 138, .18) !important;
    background: #F7F6FB !important;
    color: var(--sa-ink) !important;
    min-height: 110px;
    resize: vertical;
}

body.theme-saudi:not(.dark-theme) .sa-auth-textarea:focus,
body.theme-saudi:not(.dark-theme) .sa-auth-panel textarea.form-control:focus {
    background: #fff !important;
    border-color: rgba(117, 79, 254, .55) !important;
    box-shadow: 0 0 0 4px rgba(117, 79, 254, .12) !important;
}

body.theme-saudi:not(.dark-theme) .sa-auth-hint {
    display: block;
    margin-top: 8px;
    color: var(--sa-muted);
    font-size: 12.5px;
}

body.theme-saudi:not(.dark-theme) .sa-auth-panel .custom-file-upload {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1.5px dashed rgba(117, 79, 254, .28);
    background: #F7F5FF;
}

body.theme-saudi:not(.dark-theme) .sa-auth-panel .custom-file-name {
    color: var(--sa-muted);
    font-size: 13px;
}

body.theme-saudi:not(.dark-theme) .sa-auth-label small {
    font-weight: 500;
    color: var(--sa-muted);
}

@media (max-width: 767.98px) {
    body.theme-saudi:not(.dark-theme) .sa-auth-shell {
        border-radius: 24px;
    }

    body.theme-saudi:not(.dark-theme) .sa-auth-visual {
        padding: 28px 20px 14px;
        min-height: 0;
    }

    body.theme-saudi:not(.dark-theme) .sa-auth-visual img {
        width: 48% !important;
        max-width: 200px;
    }

    body.theme-saudi:not(.dark-theme) .sa-auth-visual-note {
        display: none;
    }

    body.theme-saudi:not(.dark-theme) .sa-auth:not(.sa-auth--signup) .sa-auth-brand-mark {
        display: none;
    }

    body.theme-saudi:not(.dark-theme) .sa-auth-panel {
        padding: 22px 18px 28px;
    }

    body.theme-saudi:not(.dark-theme) .sa-auth-ring--2,
    body.theme-saudi:not(.dark-theme) .sa-auth-orb--3 {
        display: none;
    }
}

/* ---------- Courses listing page ---------- */
body.theme-saudi:not(.dark-theme) .grid-view.courses-list-view,
body.theme-saudi:not(.dark-theme) .courses-list-view,
body.theme-saudi:not(.dark-theme) .grid-view {
    padding-block: 4px 72px;
    background: transparent !important;
    background-color: transparent !important;
}

body.theme-saudi:not(.dark-theme) .grid-view-body,
body.theme-saudi:not(.dark-theme) .grid-view-body.courses,
body.theme-saudi:not(.dark-theme) .courses-main-column,
body.theme-saudi:not(.dark-theme) .courses-card {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.theme-saudi:not(.dark-theme) .grid-view.courses-list-view > .container,
body.theme-saudi:not(.dark-theme) .courses-list-view > .container {
    padding-inline: 24px;
}

body.theme-saudi:not(.dark-theme) .grid-view.courses-list-view .row,
body.theme-saudi:not(.dark-theme) .courses-list-view .row,
body.theme-saudi:not(.dark-theme) .courses-card > .row {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
}

body.theme-saudi:not(.dark-theme) .grid-view.courses-list-view > .container > .row {
    align-items: flex-start;
}

body.theme-saudi:not(.dark-theme) .courses-card {
    padding: 0;
}

/* Filter sidebar */
body.theme-saudi:not(.dark-theme) .courses-filter-sidebar {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    position: sticky;
    top: 88px;
}

body.theme-saudi:not(.dark-theme) .courses-filter-panel,
body.theme-saudi:not(.dark-theme) .courses-filter-sidebar .courses-filter-panel {
    background: linear-gradient(180deg, #EDE7FF 0%, #F3EFFC 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(117, 79, 254, .22);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(117, 79, 254, .10);
    /* Match courses-toolbar padding so search aligns with results count */
    padding: 12px 18px 22px !important;
}

body.theme-saudi:not(.dark-theme) .course-all-category {
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
}

body.theme-saudi:not(.dark-theme) .course-all-category .form-group {
    margin-bottom: 18px !important;
    padding: 0;
}

body.theme-saudi:not(.dark-theme) .course-all-category .form-group .form-control {
    min-height: 42px;
    height: 42px;
    padding-block: 8px !important;
    padding-inline: 16px 44px !important;
    border-radius: 12px !important;
    border-color: rgba(117, 79, 254, .18) !important;
    background: #fff !important;
    transition: border-color .25s var(--sa-ease), box-shadow .25s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .course-all-category .form-group .form-control:focus {
    border-color: rgba(117, 79, 254, .45) !important;
    box-shadow: 0 0 0 4px rgba(117, 79, 254, .12) !important;
}

body.theme-saudi:not(.dark-theme) .course-all-category .form-group button,
body.theme-saudi:not(.dark-theme) .course-category .form-group button {
    top: 50%;
    transform: translateY(-50%);
}

body.theme-saudi:not(.dark-theme) .courses-filter-panel .accordion-item,
body.theme-saudi:not(.dark-theme) .course-all-category .accordion-item {
    border: 0 !important;
    border-radius: 14px !important;
    margin-bottom: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, .78);
}

body.theme-saudi:not(.dark-theme) .courses-filter-panel .accordion-button,
body.theme-saudi:not(.dark-theme) .course-all-category .accordion-button {
    background: transparent;
    font-weight: 700;
    color: var(--sa-ink);
    box-shadow: none !important;
    padding: 14px 16px !important;
}

body.theme-saudi:not(.dark-theme) .courses-filter-panel .accordion-body,
body.theme-saudi:not(.dark-theme) .course-all-category .accordion-body {
    padding: 4px 14px 14px !important;
}

body.theme-saudi:not(.dark-theme) .course-all-category .form-check,
body.theme-saudi:not(.dark-theme) .course-category .form-check,
body.theme-saudi:not(.dark-theme) .course-price .form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px !important;
    margin-bottom: 0;
    min-height: 0;
    border-radius: 10px;
    transition: background .2s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .course-all-category .form-check:hover,
body.theme-saudi:not(.dark-theme) .course-category .form-check:hover {
    background: rgba(117, 79, 254, .06);
}

body.theme-saudi:not(.dark-theme) .course-all-category .form-check-input,
body.theme-saudi:not(.dark-theme) .course-category .form-check-input,
body.theme-saudi:not(.dark-theme) .course-price .form-check-input {
    float: none !important;
    margin: 0 !important;
    position: static !important;
    flex-shrink: 0;
    width: 1.1em;
    height: 1.1em;
}

body.theme-saudi:not(.dark-theme) .course-all-category .form-check-label,
body.theme-saudi:not(.dark-theme) .course-category .form-check-label {
    flex: 1 1 auto;
    margin: 0 !important;
    padding: 0 !important;
}

body.theme-saudi:not(.dark-theme) .course-all-category .category-heading a {
    padding-block: 2px;
    display: inline-block;
}

/* Ratings filter rows */
body.theme-saudi:not(.dark-theme) .sa-rating-filter.course-icon {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

body.theme-saudi:not(.dark-theme) .sa-rating-filter .form-check.sa-rating-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
    border: 1px solid transparent;
    background: #fff;
}

body.theme-saudi:not(.dark-theme) .sa-rating-filter .form-check.sa-rating-row:hover,
body.theme-saudi:not(.dark-theme) .sa-rating-filter .form-check.sa-rating-row.is-active {
    background: rgba(117, 79, 254, .06);
    border-color: rgba(117, 79, 254, .14);
}

body.theme-saudi:not(.dark-theme) .sa-rating-filter .form-check-label {
    flex: 1 1 auto;
    min-width: 0;
}

body.theme-saudi:not(.dark-theme) .sa-rating-row__link {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    text-decoration: none !important;
}

body.theme-saudi:not(.dark-theme) .sa-rating-stars.form-check-icon {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex: 1 1 auto;
    min-width: 0;
}

body.theme-saudi:not(.dark-theme) .sa-rating-stars.form-check-icon ul {
    display: none;
}

body.theme-saudi:not(.dark-theme) .sa-rating-stars i {
    font-size: 14px;
    line-height: 1;
    color: #D1D5DB !important;
}

body.theme-saudi:not(.dark-theme) .sa-rating-stars i.icon-color {
    color: #F5B301 !important;
}

body.theme-saudi:not(.dark-theme) .sa-rating-row__count {
    flex-shrink: 0;
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    color: var(--sa-muted);
    min-width: 22px;
    text-align: center;
}

body.theme-saudi:not(.dark-theme) .sa-filter-clear {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(117, 79, 254, .10);
}

body.theme-saudi:not(.dark-theme) .sa-filter-clear__btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(117, 79, 254, .18) !important;
    background: #fff !important;
    color: var(--sa-primary) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: background .2s var(--sa-ease), border-color .2s var(--sa-ease), color .2s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .sa-filter-clear__btn:hover {
    background: var(--sa-primary-50) !important;
    border-color: rgba(117, 79, 254, .35) !important;
    color: var(--sa-primary-700) !important;
}

body.theme-saudi:not(.dark-theme) .sa-filter-clear__btn i {
    font-size: 12px;
}

/* Sorting toolbar */
body.theme-saudi:not(.dark-theme) .list-card-control,
body.theme-saudi:not(.dark-theme) .courses-toolbar,
body.theme-saudi:not(.dark-theme) .fCardsection {
    margin-bottom: 20px !important;
    margin-top: 0 !important;
}

body.theme-saudi:not(.dark-theme) .courses-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 18px;
    padding: 12px 18px !important;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--sa-line);
    border-radius: 16px;
    box-shadow: var(--sa-shadow-sm);
}

body.theme-saudi:not(.dark-theme) .courses-toolbar-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

body.theme-saudi:not(.dark-theme) .courses-results-count {
    padding: 6px 8px;
    color: var(--sa-muted);
    font-weight: 600;
    font-size: 13.5px;
}

body.theme-saudi:not(.dark-theme) .courses-sorting-bar,
body.theme-saudi:not(.dark-theme) .etopCourseHead {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px !important;
    margin: 0 !important;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.theme-saudi:not(.dark-theme) .courses-sorting-bar .form-select,
body.theme-saudi:not(.dark-theme) .courses-sorting-bar .nice-select,
body.theme-saudi:not(.dark-theme) .courses-sort-select .form-select {
    min-height: 42px !important;
    width: auto !important;
    min-width: 220px;
    padding: 9px 2.75rem !important;
    border-radius: 12px !important;
    border-color: var(--sa-line) !important;
    text-align: start !important;
}

body.theme-saudi:not(.dark-theme)[dir="rtl"] .courses-sorting-bar .nice-select,
html[dir="rtl"] body.theme-saudi:not(.dark-theme) .courses-sorting-bar .nice-select {
    text-align: right !important;
}

body.theme-saudi:not(.dark-theme) .courses-sorting-bar .nice-select .current {
    overflow: visible;
    text-overflow: clip;
    max-width: none;
    padding-inline: 0;
}

body.theme-saudi:not(.dark-theme) .courses-sorting-bar .nice-select::after {
    right: 14px !important;
    left: auto !important;
    inset-inline-end: 14px !important;
    inset-inline-start: auto !important;
}

body.theme-saudi:not(.dark-theme)[dir="rtl"] .courses-sorting-bar .nice-select::after,
html[dir="rtl"] body.theme-saudi:not(.dark-theme) .courses-sorting-bar .nice-select::after {
    right: auto !important;
    left: 14px !important;
}

body.theme-saudi:not(.dark-theme) .courses-sorting-bar .list-btn,
body.theme-saudi:not(.dark-theme) .etopCourseHead .list-btn,
body.theme-saudi:not(.dark-theme) .courses-sorting-bar .btn.list-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px;
    display: inline-grid !important;
    place-items: center;
    border-radius: 12px !important;
    border: 1px solid var(--sa-line) !important;
    background: #fff !important;
    padding: 0 !important;
    transition: background .25s var(--sa-ease), border-color .25s var(--sa-ease), transform .25s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .courses-sorting-bar .list-btn:hover,
body.theme-saudi:not(.dark-theme) .etopCourseHead .list-btn:hover {
    border-color: rgba(117, 79, 254, .35) !important;
    transform: translateY(-1px);
}

body.theme-saudi:not(.dark-theme) .etopCourseHead .list-btn.active {
    background: var(--sa-primary) !important;
    border-color: var(--sa-primary) !important;
    color: #fff !important;
}

body.theme-saudi:not(.dark-theme) .courses-filter-toggle {
    border-radius: 12px !important;
    padding: 10px 16px !important;
}

/* Course cards — compact height, no empty stretch */
body.theme-saudi:not(.dark-theme) .eGridCourse.courses-card-body,
body.theme-saudi:not(.dark-theme) .courses-card .courses-card-body.eGridCourse,
body.theme-saudi:not(.dark-theme) .grid-view-body .courses-card .eGridCourse {
    overflow: hidden;
    border-radius: 18px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    margin-bottom: 0 !important;
    background: #F3F0FA !important;
    border: 1px solid rgba(117, 79, 254, .14) !important;
    box-shadow: 0 8px 24px rgba(70, 51, 156, .06) !important;
    transition: transform .35s var(--sa-ease), box-shadow .35s var(--sa-ease), border-color .35s var(--sa-ease);
    text-decoration: none !important;
    color: inherit;
}

body.theme-saudi:not(.dark-theme) .eGridCourse.courses-card-body:hover,
body.theme-saudi:not(.dark-theme) .grid-view-body .courses-card .eGridCourse:hover {
    transform: translateY(-6px);
    border-color: rgba(117, 79, 254, .28) !important;
    box-shadow: 0 18px 40px rgba(70, 51, 156, .14) !important;
}

/* Course grid only — do not apply to blog listing (sidebar + cards),
   or col-lg-8 shrink-wraps to one card and leaves a large empty gap. */
body.theme-saudi:not(.dark-theme) .grid-view-body .courses-card > .row > [class*="col-"],
body.theme-saudi:not(.dark-theme) .courses-list-view .courses-card > .row > [class*="col-"] {
    margin-bottom: 0;
    padding-block: 0;
    display: flex;
    align-items: flex-start !important;
    align-self: flex-start;
}

body.theme-saudi:not(.dark-theme) .grid-view-body .courses-card > .row,
body.theme-saudi:not(.dark-theme) .courses-list-view .courses-card > .row {
    align-items: flex-start !important;
}

body.theme-saudi:not(.dark-theme) .courses-card > .row > [class*="col-"] > .eGridCourse {
    width: 100%;
    align-self: flex-start;
}

/* Image: kill empty gap under thumbnail */
body.theme-saudi:not(.dark-theme) .eGridCourse .courses-card-image,
body.theme-saudi:not(.dark-theme) .courses-card .eGridCourse .courses-card-image {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    position: relative;
    line-height: 0;
    font-size: 0;
    aspect-ratio: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
}

body.theme-saudi:not(.dark-theme) .eGridCourse .courses-card-image img,
body.theme-saudi:not(.dark-theme) .courses-card .eGridCourse .courses-card-image img,
body.theme-saudi:not(.dark-theme) .eGridCourse .courses-card-image > img {
    border-radius: 0 !important;
    width: 100% !important;
    height: 168px !important;
    max-height: 168px !important;
    min-height: 168px !important;
    aspect-ratio: unset !important;
    object-fit: cover !important;
    display: block !important;
    vertical-align: top;
    transition: transform .5s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .eGridCourse:hover .courses-card-image img {
    transform: scale(1.06);
}

/* Text block: tight to image, no grow */
body.theme-saudi:not(.dark-theme) .eGridCourse .courses-text,
body.theme-saudi:not(.dark-theme) .courses-card .eGridCourse .courses-text,
body.theme-saudi:not(.dark-theme) .grid-view-body .eGridCourse .courses-text {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 14px 14px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 0 0 auto !important;
    flex-grow: 0 !important;
    gap: 5px;
    box-sizing: border-box;
    min-height: 0 !important;
    height: auto !important;
    justify-content: flex-start !important;
}

body.theme-saudi:not(.dark-theme) .eGridCourse .course-level-badge,
body.theme-saudi:not(.dark-theme) .course-level-badge {
    align-self: flex-start;
    padding: 3px 9px !important;
    border-radius: 999px !important;
    margin: 0 !important;
    font-size: 10.5px;
    line-height: 1.3;
    letter-spacing: .02em;
}

body.theme-saudi:not(.dark-theme) .eGridCourse .course-grid-title,
body.theme-saudi:not(.dark-theme) .course-grid-title,
body.theme-saudi:not(.dark-theme) .grid-view-body .eGridCourse .courses-text h5.mb-2,
body.theme-saudi:not(.dark-theme) .grid-view-body .eGridCourse .courses-text h5 {
    font-size: 14.5px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: 2.8em;
    color: var(--sa-ink) !important;
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

body.theme-saudi:not(.dark-theme) .eGridCourse .review-icon,
body.theme-saudi:not(.dark-theme) .grid-view-body .eGridCourse .review-icon {
    margin: 0 !important;
    padding: 0 !important;
}

body.theme-saudi:not(.dark-theme) .eGridCourse .review-icon p,
body.theme-saudi:not(.dark-theme) .eGridCourse .review-icon-star p {
    margin: 0 !important;
    font-size: 12px;
    color: var(--sa-muted);
}

body.theme-saudi:not(.dark-theme) .eGridCourse .review-icon i.filled {
    color: #f5b301 !important;
}

body.theme-saudi:not(.dark-theme) .eGridCourse .courses-price-border {
    margin-top: 6px !important;
    padding-top: 10px !important;
    border-top: 1px solid var(--sa-line);
}

body.theme-saudi:not(.dark-theme) .eGridCourse .courses-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

body.theme-saudi:not(.dark-theme) .eGridCourse .courses-price-left h5 {
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 800;
    color: var(--sa-ink);
}

body.theme-saudi:not(.dark-theme) .eGridCourse .enrollBtn,
body.theme-saudi:not(.dark-theme) .enrollBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--sa-primary), var(--sa-primary-700)) !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(117, 79, 254, .28);
    transition: transform .25s var(--sa-ease), box-shadow .25s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .eGridCourse:hover .enrollBtn {
    transform: scale(1.03);
    box-shadow: 0 8px 18px rgba(117, 79, 254, .38);
}

/* Wishlist heart */
body.theme-saudi:not(.dark-theme) .eGridCourse .courses-icon,
body.theme-saudi:not(.dark-theme) .eGridCourse .courses-card-image .courses-icon,
body.theme-saudi:not(.dark-theme) .eListCourse .courses-icon,
body.theme-saudi:not(.dark-theme) .courses-list-view-card-body .courses-card-image .courses-icon {
    position: absolute !important;
    top: 10px !important;
    inset-inline-start: 10px !important;
    inset-inline-end: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: 5;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    border-radius: 50%;
    display: grid !important;
    place-items: center;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: 0 6px 16px rgba(13, 12, 35, .14);
    transition: transform .25s var(--sa-ease), box-shadow .25s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .eGridCourse .courses-icon:hover,
body.theme-saudi:not(.dark-theme) .eListCourse .courses-icon:hover,
body.theme-saudi:not(.dark-theme) .courses-list-view-card-body .courses-card-image .courses-icon:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(13, 12, 35, .18);
}

body.theme-saudi:not(.dark-theme) .eGridCourse .courses-card-image .courses-icon i,
body.theme-saudi:not(.dark-theme) .eListCourse .courses-card-image .courses-icon i,
body.theme-saudi:not(.dark-theme) .courses-list-view-card-body .courses-card-image .courses-icon i {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #8b92a1 !important;
    font-size: 18px !important;
    line-height: 1;
}

body.theme-saudi:not(.dark-theme) .eGridCourse .courses-card-image .courses-icon.red-heart i,
body.theme-saudi:not(.dark-theme) .eListCourse .courses-card-image .courses-icon.red-heart i,
body.theme-saudi:not(.dark-theme) .courses-list-view-card-body .courses-card-image .courses-icon.red-heart i {
    color: #e11d48 !important;
}

/* Pagination — no white bar */
body.theme-saudi:not(.dark-theme) .pagenation-items {
    margin-top: 28px !important;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
}

body.theme-saudi:not(.dark-theme) .pagenation-items .page-link {
    border-radius: 10px !important;
    border: 1px solid var(--sa-line);
    margin-inline: 4px;
    color: var(--sa-ink);
    transition: background .2s var(--sa-ease), color .2s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .pagenation-items .page-item.active .page-link,
body.theme-saudi:not(.dark-theme) .pagenation-items .page-link:hover {
    background: var(--sa-primary) !important;
    border-color: var(--sa-primary) !important;
    color: #fff !important;
}

/* Breadcrumb spacing */
body.theme-saudi:not(.dark-theme) .bread-crumb {
    background:
        radial-gradient(520px 200px at 12% 0%, rgba(117, 79, 254, .12), transparent 62%),
        linear-gradient(180deg, #F0EBFF, #F8F7FC) !important;
    border-bottom: 1px solid rgba(117, 79, 254, .08);
    margin-bottom: 22px !important;
    padding-block: 18px 20px !important;
}

body.theme-saudi:not(.dark-theme) .bread-crumb .container {
    padding-inline: 24px;
}

body.theme-saudi:not(.dark-theme) .bread-crumb .breadcrumb {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body.theme-saudi:not(.dark-theme) .bread-crumb .breadcrumb > li {
    display: inline-flex !important;
    align-items: center !important;
    float: none !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

body.theme-saudi:not(.dark-theme) .bread-crumb .breadcrumb-item {
    padding: 0 !important;
}

body.theme-saudi:not(.dark-theme) .bread-crumb .breadcrumb-item + .breadcrumb-item::before {
    display: none !important;
    content: none !important;
    padding: 0 !important;
}

body.theme-saudi:not(.dark-theme) .bread-crumb .breadcrumb a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;
    white-space: nowrap;
}

body.theme-saudi:not(.dark-theme) .bread-crumb .breadcrumb span {
    margin: 0 !important;
    white-space: nowrap;
    font-size: 14px !important;
    line-height: 1.2 !important;
}

body.theme-saudi:not(.dark-theme) .bread-crumb .breadcrumb i {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    font-size: 12px;
}

body.theme-saudi:not(.dark-theme) .bread-crumb .breadcrumb .brd-home {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

/*
 * rtl.css rotates .fa-chevron-right by 180deg, so it points left in Arabic.
 * Keep that behavior and don't override it with scaleX.
 */
[dir="rtl"] body.theme-saudi:not(.dark-theme) .bread-crumb .breadcrumb-chevron {
    transform: rotate(180deg) !important;
}

[dir="ltr"] body.theme-saudi:not(.dark-theme) .bread-crumb .breadcrumb-chevron {
    transform: none !important;
}

body.theme-saudi:not(.dark-theme) .bread-crumb h1 {
    font-weight: 800;
    font-size: clamp(22px, 2.4vw, 28px) !important;
    color: var(--sa-ink);
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    line-height: 1.25;
}

body.theme-saudi:not(.dark-theme) .bread-crumb .book-img img {
    width: 120px !important;
    max-height: 90px;
    object-fit: contain;
    float: none !important;
}

body.theme-saudi:not(.dark-theme) .bread-crumb .row {
    align-items: center;
}

body.theme-saudi:not(.dark-theme) .bread-crumb .breadcrumb-item a,
body.theme-saudi:not(.dark-theme) .bread-crumb .breadcrumb-item span {
    color: var(--sa-muted);
}

body.theme-saudi:not(.dark-theme) .bread-crumb .breadcrumb-item.active span {
    color: var(--sa-primary);
    font-weight: 700;
}

body.theme-saudi:not(.dark-theme) .bannar-card,
body.theme-saudi:not(.dark-theme) .Ebaner-card,
body.theme-saudi:not(.dark-theme) .breadcrumb-banner,
body.theme-saudi:not(.dark-theme) .page-banner,
body.theme-saudi:not(.dark-theme) .bread-crumb {
    border-radius: 0 0 28px 28px;
    overflow: hidden;
}

body.theme-saudi:not(.dark-theme) .banner-card-1,
body.theme-saudi:not(.dark-theme) .bannar-card .banner-card-1 {
    border-radius: 22px;
}

body.theme-saudi:not(.dark-theme) .courses-card-body .btn,
body.theme-saudi:not(.dark-theme) .courses-card-body .eBtn,
body.theme-saudi:not(.dark-theme) .courses-card .btn {
    border-radius: 999px !important;
}

/* Blog cards spacing */
body.theme-saudi:not(.dark-theme) .blogCard .courses-text,
body.theme-saudi:not(.dark-theme) .blog .blogCard .courses-text {
    padding: 22px 24px 24px !important;
}

body.theme-saudi:not(.dark-theme) .blog-sidebar,
body.theme-saudi:not(.dark-theme) .blog .left-side,
body.theme-saudi:not(.dark-theme) .blog-left-side,
body.theme-saudi:not(.dark-theme) .blog-list-panel,
body.theme-saudi:not(.dark-theme) .blog-sidebar-panel {
    background: #fff;
    border: 1px solid var(--sa-line);
    border-radius: 20px;
    box-shadow: var(--sa-shadow-sm);
    padding: 22px 20px !important;
}

body.theme-saudi:not(.dark-theme) .blog-list-panel {
    padding: 22px 20px 10px !important;
    min-height: 100%;
}

body.theme-saudi:not(.dark-theme) .blog-sidebar-panel {
    position: sticky;
    top: 88px;
}

body.theme-saudi:not(.dark-theme) .blog-list-panel .blogCard {
    background: #fff;
    border: 1px solid rgba(117, 79, 254, .12);
    border-radius: 16px;
    overflow: hidden;
}

body.theme-saudi:not(.dark-theme) .blog-list-panel__count {
    color: var(--sa-muted, #6e798a);
    font-weight: 600;
    font-size: 14px;
}

/* ---------- Contact / about / FAQ shells ---------- */
body.theme-saudi:not(.dark-theme) .contact-form,
body.theme-saudi:not(.dark-theme) .about-content,
body.theme-saudi:not(.dark-theme) .faq-body,
body.theme-saudi:not(.dark-theme) .privacy-policy,
body.theme-saudi:not(.dark-theme) .terms-and-condition {
    background: #fff;
    border: 1px solid var(--sa-line);
    border-radius: 22px;
    box-shadow: var(--sa-shadow-sm);
}

/* ---------- Course / blog listing page shell ---------- */
body.theme-saudi:not(.dark-theme) .course-all-category,
body.theme-saudi:not(.dark-theme) .blog-body,
body.theme-saudi:not(.dark-theme) .courses-list-view-body,
body.theme-saudi:not(.dark-theme) .grid-view.courses-list-view {
    background: transparent;
}

/* ---------- Soft section panels ---------- */
body.theme-saudi:not(.dark-theme) .card {
    border-radius: var(--sa-radius-sm);
    border-color: var(--sa-line);
    box-shadow: var(--sa-shadow-sm);
}

/* ---------- Course details page — premium polish ---------- */
body.theme-saudi:not(.dark-theme) .course-hero-section {
    position: relative;
    overflow: hidden;
}

body.theme-saudi:not(.dark-theme) .course-hero-top-art {
    position: absolute;
    inset: 0 0 auto 0;
    height: 220px;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

body.theme-saudi:not(.dark-theme) .course-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
}

body.theme-saudi:not(.dark-theme) .course-hero-orb--1 {
    width: 280px;
    height: 280px;
    top: -120px;
    inset-inline-end: 12%;
    background: rgba(117, 79, 254, .22);
}

body.theme-saudi:not(.dark-theme) .course-hero-orb--2 {
    width: 200px;
    height: 200px;
    top: -40px;
    inset-inline-start: 8%;
    background: rgba(0, 128, 255, .12);
}

body.theme-saudi:not(.dark-theme) .course-hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(117, 79, 254, .18);
    box-shadow: 0 10px 28px rgba(70, 51, 156, .06);
}

body.theme-saudi:not(.dark-theme) .course-hero-ring--1 {
    width: 160px;
    height: 160px;
    top: 18px;
    inset-inline-end: 28%;
}

body.theme-saudi:not(.dark-theme) .course-hero-ring--2 {
    width: 90px;
    height: 90px;
    top: 48px;
    inset-inline-end: calc(28% + 110px);
    border-color: rgba(0, 128, 255, .16);
}

body.theme-saudi:not(.dark-theme) .course-hero-line {
    position: absolute;
    top: 96px;
    inset-inline: 8%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(117, 79, 254, .22) 20%,
        rgba(117, 79, 254, .08) 50%,
        rgba(0, 128, 255, .18) 80%,
        transparent
    );
}

body.theme-saudi:not(.dark-theme) .bread-crumb.courses-details {
    position: relative;
    z-index: 1;
    margin-bottom: 0 !important;
    padding-block: 88px 48px !important;
    border-bottom: 0 !important;
    background:
        radial-gradient(780px 340px at 100% 0%, rgba(117, 79, 254, .18), transparent 55%),
        radial-gradient(520px 280px at 0% 80%, rgba(0, 128, 255, .08), transparent 50%),
        linear-gradient(165deg, #EDE7FF 0%, #F5F2FF 42%, #F8F7FC 100%) !important;
}

body.theme-saudi:not(.dark-theme) .bread-crumb.courses-details .nBread {
    padding-top: 0 !important;
    margin-bottom: 14px !important;
    gap: 6px;
}

body.theme-saudi:not(.dark-theme) .bread-crumb.courses-details .breadcrumb-item a {
    color: var(--sa-muted);
    font-size: 13px;
    font-weight: 500;
    transition: color .2s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .bread-crumb.courses-details .breadcrumb-item a:hover {
    color: var(--sa-primary);
}

body.theme-saudi:not(.dark-theme) .bread-crumb.courses-details .breadcrumb-item.active {
    color: var(--sa-primary) !important;
    font-weight: 700;
    font-size: 13px;
}

body.theme-saudi:not(.dark-theme) .course-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

body.theme-saudi:not(.dark-theme) .course-hero-level,
body.theme-saudi:not(.dark-theme) .course-hero-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

body.theme-saudi:not(.dark-theme) .course-hero-level {
    background: linear-gradient(135deg, var(--sa-primary), var(--sa-primary-700));
    color: #fff;
    box-shadow: 0 6px 16px rgba(117, 79, 254, .28);
}

body.theme-saudi:not(.dark-theme) .course-hero-lang {
    background: rgba(255, 255, 255, .88);
    color: var(--sa-body);
    border: 1px solid rgba(117, 79, 254, .14);
}

body.theme-saudi:not(.dark-theme) .course-hero-lang i {
    color: var(--sa-primary);
    font-size: 11px;
}

body.theme-saudi:not(.dark-theme) .bread-crumb.courses-details .courses-details-1st-text {
    max-width: 780px;
}

body.theme-saudi:not(.dark-theme) .bread-crumb.courses-details .courses-details-1st-text h1 {
    font-size: clamp(26px, 3.4vw, 36px) !important;
    font-weight: 800 !important;
    color: var(--sa-ink) !important;
    line-height: 1.3;
    margin: 0 0 14px !important;
    letter-spacing: -.02em;
}

body.theme-saudi:not(.dark-theme) .course-hero-lead,
body.theme-saudi:not(.dark-theme) .bread-crumb.courses-details .courses-details-1st-text > p {
    color: #5a6178 !important;
    font-size: 15.5px !important;
    line-height: 1.75 !important;
    max-width: 640px;
    margin: 0 0 20px !important;
}

/* Hero visual panel — fills empty side */
body.theme-saudi:not(.dark-theme) .course-hero-visual {
    position: relative;
    padding: 8px 8px 28px;
    animation: saCourseRise .6s var(--sa-ease) .1s both;
}

body.theme-saudi:not(.dark-theme) .course-hero-frame {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(117, 79, 254, .14);
    box-shadow:
        0 24px 50px rgba(70, 51, 156, .16),
        0 2px 0 rgba(255, 255, 255, .7) inset;
    aspect-ratio: 4 / 3;
}

body.theme-saudi:not(.dark-theme) .course-hero-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .course-hero-visual:hover .course-hero-frame img {
    transform: scale(1.05);
}

body.theme-saudi:not(.dark-theme) .course-hero-glow {
    position: absolute;
    inset: auto -18% -28% auto;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(117, 79, 254, .35), transparent 68%);
    filter: blur(28px);
    pointer-events: none;
    z-index: 0;
}

body.theme-saudi:not(.dark-theme) .course-hero-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 72px;
    height: 72px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--sa-primary), var(--sa-primary-700));
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 14px 32px rgba(117, 79, 254, .45);
    cursor: pointer;
    transition: transform .3s var(--sa-ease), box-shadow .3s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .course-hero-play i {
    font-size: 22px;
    margin-inline-start: 3px;
}

body.theme-saudi:not(.dark-theme) .course-hero-play:hover {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 18px 40px rgba(117, 79, 254, .55);
}

body.theme-saudi:not(.dark-theme) .course-hero-wish {
    position: absolute !important;
    top: 16px !important;
    inset-inline-start: 16px !important;
    inset-inline-end: auto !important;
    z-index: 3;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    border-radius: 50%;
    display: grid !important;
    place-items: center;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: 0 8px 20px rgba(13, 12, 35, .14);
    cursor: pointer;
}

body.theme-saudi:not(.dark-theme) .course-hero-wish i {
    position: static !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    color: #8b92a1 !important;
    font-size: 16px !important;
}

body.theme-saudi:not(.dark-theme) .course-hero-wish.red-heart i {
    color: #e11d48 !important;
}

body.theme-saudi:not(.dark-theme) .course-hero-float {
    position: absolute;
    inset-inline-end: 18px;
    bottom: 0;
    display: flex;
    gap: 8px;
    z-index: 4;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(117, 79, 254, .12);
    box-shadow: 0 14px 32px rgba(70, 51, 156, .14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.theme-saudi:not(.dark-theme) .course-hero-stat {
    min-width: 68px;
    text-align: center;
    padding: 4px 8px;
}

body.theme-saudi:not(.dark-theme) .course-hero-stat strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: var(--sa-ink);
    line-height: 1.2;
}

body.theme-saudi:not(.dark-theme) .course-hero-stat span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
    color: var(--sa-muted);
}

body.theme-saudi:not(.dark-theme) .course-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

body.theme-saudi:not(.dark-theme) .course-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 999px;
    background: #EDE9F6;
    border: 1px solid rgba(117, 79, 254, .14);
    box-shadow: 0 4px 14px rgba(70, 51, 156, .06);
    color: var(--sa-body);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    transition: transform .25s var(--sa-ease), box-shadow .25s var(--sa-ease), border-color .25s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .course-meta-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(117, 79, 254, .22);
    box-shadow: 0 8px 18px rgba(70, 51, 156, .1);
}

body.theme-saudi:not(.dark-theme) .course-meta-instructor {
    padding-inline-start: 8px;
}

body.theme-saudi:not(.dark-theme) .course-meta-chip img {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(13, 12, 35, .1);
}

body.theme-saudi:not(.dark-theme) .course-meta-label {
    color: var(--sa-muted);
    font-weight: 500;
}

body.theme-saudi:not(.dark-theme) .course-meta-chip i {
    color: var(--sa-primary);
    font-size: 12.5px;
    margin: 0 !important;
    width: 1.1em;
    text-align: center;
}

body.theme-saudi:not(.dark-theme) .course-meta-chip a,
body.theme-saudi:not(.dark-theme) .course-meta-chip strong {
    color: var(--sa-ink) !important;
    font-weight: 700;
    text-decoration: none;
}

body.theme-saudi:not(.dark-theme) .course-meta-chip a:hover {
    color: var(--sa-primary) !important;
}

body.theme-saudi:not(.dark-theme) .course-meta-stars {
    display: inline-flex;
    gap: 2px;
}

body.theme-saudi:not(.dark-theme) .course-meta-stars .fa-star {
    font-size: 11px;
    color: #d8dbe3;
}

body.theme-saudi:not(.dark-theme) .course-meta-stars .fa-star.filled {
    color: #f5b301;
}

/* Content + sidebar */
body.theme-saudi:not(.dark-theme) .course-decription,
body.theme-saudi:not(.dark-theme) .course-details-card {
    background: transparent !important;
    background-color: transparent !important;
}

body.theme-saudi:not(.dark-theme) .course-decription {
    padding: 28px 0 64px;
}

body.theme-saudi:not(.dark-theme) .course-decription > .container {
    padding-inline: 24px;
}

body.theme-saudi:not(.dark-theme) .course-decription > .container > .row {
    --bs-gutter-x: 1.75rem;
    --bs-gutter-y: 1.5rem;
    align-items: flex-start;
}

body.theme-saudi:not(.dark-theme) .course-left-side {
    background: #fff !important;
    border: 1px solid var(--sa-line) !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 30px rgba(70, 51, 156, .06) !important;
    padding: 8px 22px 26px !important;
    margin-top: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    animation: saCourseRise .55s var(--sa-ease) both;
}

@keyframes saCourseRise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

body.theme-saudi:not(.dark-theme) .course-decription #myTab {
    justify-content: flex-start !important;
    gap: 6px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--sa-line) !important;
    margin: 4px 0 20px !important;
    padding: 6px 0 0 !important;
}

body.theme-saudi:not(.dark-theme) .course-decription #myTab .nav-item {
    margin: 0;
}

body.theme-saudi:not(.dark-theme) .course-decription li .nav-link {
    color: var(--sa-muted) !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    padding: 10px 14px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    transition: color .2s var(--sa-ease), background .2s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .course-decription li .nav-link:after {
    display: none !important;
}

body.theme-saudi:not(.dark-theme) .course-decription li .nav-link:hover {
    color: var(--sa-primary) !important;
    background: var(--sa-primary-50) !important;
}

body.theme-saudi:not(.dark-theme) .course-left-side .nav-tabs .nav-link.active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--sa-primary), var(--sa-primary-700)) !important;
    box-shadow: 0 8px 18px rgba(117, 79, 254, .28);
}

body.theme-saudi:not(.dark-theme) .course-left-side .nav-link.active svg *,
body.theme-saudi:not(.dark-theme) .course-left-side .nav-link:hover svg * {
    fill: currentColor !important;
}

body.theme-saudi:not(.dark-theme) .course-left-side .nav-link.active svg * {
    fill: #fff !important;
}

body.theme-saudi:not(.dark-theme) .course-left-side .tab-content {
    color: var(--sa-body);
    line-height: 1.75;
    min-height: 0 !important;
    padding: 2px 2px 4px;
}

body.theme-saudi:not(.dark-theme) .course-left-side .course-description {
    margin-bottom: 26px;
}

body.theme-saudi:not(.dark-theme) .course-left-side .description-head {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: var(--sa-ink) !important;
    margin: 0 0 14px !important;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--sa-line);
    position: relative;
}

body.theme-saudi:not(.dark-theme) .course-left-side .description-head::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: -1px;
    width: 42px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--sa-primary), transparent);
}

body.theme-saudi:not(.dark-theme) .course-left-side .course-description p,
body.theme-saudi:not(.dark-theme) .course-left-side .course-description li {
    color: var(--sa-body);
    font-size: 14.5px;
    line-height: 1.85;
}

body.theme-saudi:not(.dark-theme) .course-left-side .course-info-list-plain {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

body.theme-saudi:not(.dark-theme) .course-left-side .course-info-list-plain li {
    position: relative;
    padding: 12px 14px;
    padding-inline-start: 38px;
    margin: 0;
    border-radius: 12px;
    background: var(--sa-primary-50);
    border: 1px solid rgba(117, 79, 254, .08);
}

body.theme-saudi:not(.dark-theme) .course-left-side .course-info-list-plain li::before {
    content: "✓";
    position: absolute;
    inset-inline-start: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--sa-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: grid;
    place-items: center;
    line-height: 1;
}

body.theme-saudi:not(.dark-theme) .course-left-side .accordion-item {
    border: 0 !important;
    border-radius: 14px !important;
    margin-bottom: 10px;
    overflow: hidden;
    background: var(--sa-primary-50) !important;
}

body.theme-saudi:not(.dark-theme) .course-left-side .accordion-button {
    background: transparent !important;
    color: var(--sa-ink) !important;
    font-weight: 700;
    box-shadow: none !important;
}

body.theme-saudi:not(.dark-theme) .course-left-side .accordion-button:not(.collapsed) {
    color: var(--sa-primary) !important;
}

/* Purchase sidebar */
body.theme-saudi:not(.dark-theme) .course-right-section {
    position: sticky;
    top: 92px;
    animation: saCourseRise .55s var(--sa-ease) .08s both;
}

body.theme-saudi:not(.dark-theme) .course-right-section .course-card,
body.theme-saudi:not(.dark-theme) .course-card.course-details-sidebar {
    background: #fff !important;
    border: 1px solid var(--sa-line) !important;
    border-radius: 24px !important;
    box-shadow: 0 16px 40px rgba(70, 51, 156, .12) !important;
    margin-top: 0 !important;
    overflow: hidden;
    transition: box-shadow .35s var(--sa-ease), transform .35s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .course-right-section .course-card:hover {
    box-shadow: 0 22px 48px rgba(70, 51, 156, .16) !important;
}

body.theme-saudi:not(.dark-theme) .course-details-sidebar {
    padding: 18px 18px 20px !important;
}

body.theme-saudi:not(.dark-theme) .course-details-sidebar--compact .ammount {
    padding-top: 2px;
    margin-bottom: 6px;
}

body.theme-saudi:not(.dark-theme) .course-right-section .course-card .card-img,
body.theme-saudi:not(.dark-theme) .course-details-sidebar .courses-card-image {
    position: relative !important;
    margin: 0 0 14px !important;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 10 !important;
    width: 100% !important;
    flex: none !important;
    height: auto !important;
    background: #EEEDF5;
}

body.theme-saudi:not(.dark-theme) .course-right-section .course-card .card-img img,
body.theme-saudi:not(.dark-theme) .course-details-sidebar .courses-card-image img {
    border-radius: 16px !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform .5s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .course-right-section .course-card:hover .card-img img {
    transform: scale(1.04);
}

body.theme-saudi:not(.dark-theme) .course-details-sidebar .courses-icon,
body.theme-saudi:not(.dark-theme) .course-right-section .courses-card-image .courses-icon {
    position: absolute !important;
    top: 12px !important;
    inset-inline-start: 12px !important;
    inset-inline-end: auto !important;
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    border-radius: 50%;
    display: grid !important;
    place-items: center;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: 0 6px 16px rgba(13, 12, 35, .14);
    z-index: 2;
    transition: transform .25s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .course-details-sidebar .courses-icon:hover {
    transform: scale(1.08);
}

body.theme-saudi:not(.dark-theme) .course-details-sidebar .courses-icon i {
    position: static !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    color: #8b92a1 !important;
    font-size: 14px !important;
}

body.theme-saudi:not(.dark-theme) .course-details-sidebar .courses-icon.red-heart i {
    color: #e11d48 !important;
}

body.theme-saudi:not(.dark-theme) .course-right-section .course-card .card-img .card-video-icon {
    background: rgba(117, 79, 254, .94) !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    box-shadow: 0 10px 24px rgba(117, 79, 254, .4);
    transition: transform .25s var(--sa-ease), background .25s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .course-right-section .course-card .card-img .card-video-icon:hover {
    background: var(--sa-primary-700) !important;
    transform: translate(-50%, -50%) scale(1.08);
}

body.theme-saudi:not(.dark-theme) .course-right-section .course-card .ammount {
    padding: 4px 6px 10px;
    align-items: baseline;
    gap: 8px;
}

body.theme-saudi:not(.dark-theme) .course-right-section .course-card .ammount h1 {
    color: var(--sa-ink) !important;
    font-weight: 800 !important;
    font-size: 28px !important;
    margin: 0 !important;
    letter-spacing: -.02em;
}

body.theme-saudi:not(.dark-theme) .course-right-section .course-card .ammount h3 {
    color: var(--sa-muted) !important;
    font-size: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    text-decoration: line-through;
}

body.theme-saudi:not(.dark-theme) .course-right-section .course-card .enrol {
    border-bottom-color: var(--sa-line) !important;
    padding: 11px 6px !important;
}

body.theme-saudi:not(.dark-theme) .course-right-section .course-card .enrol .icon {
    gap: 10px !important;
}

body.theme-saudi:not(.dark-theme) .course-right-section .course-card .enrol .icon h4,
body.theme-saudi:not(.dark-theme) .course-right-section .course-card .enrol > h5 {
    color: var(--sa-ink) !important;
    font-weight: 600;
    margin: 0 !important;
    font-size: 14px !important;
}

body.theme-saudi:not(.dark-theme) .course-right-section .course-card .enrol > h5 {
    color: var(--sa-muted) !important;
    font-weight: 700;
}

body.theme-saudi:not(.dark-theme) .course-page-checkout {
    border-bottom-color: var(--sa-line) !important;
    margin-top: 4px;
}

body.theme-saudi:not(.dark-theme) .course-right-section .button {
    display: grid;
    gap: 8px;
    margin-top: 6px;
}

body.theme-saudi:not(.dark-theme) .course-right-section .button a {
    border-radius: 999px !important;
    border: 0 !important;
    background: linear-gradient(135deg, var(--sa-primary), var(--sa-primary-700)) !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 13px 16px !important;
    margin-top: 0 !important;
    box-shadow: 0 10px 24px rgba(117, 79, 254, .34);
    transition: transform .25s var(--sa-ease), box-shadow .25s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .course-right-section .button a:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(117, 79, 254, .42);
}

body.theme-saudi:not(.dark-theme) .course-right-section .button a:not(:first-child) {
    background: #fff !important;
    color: var(--sa-primary) !important;
    border: 1.5px solid rgba(117, 79, 254, .3) !important;
    box-shadow: none;
}

body.theme-saudi:not(.dark-theme) .course-right-section .button a:not(:first-child):hover {
    background: var(--sa-primary-50) !important;
    border-color: var(--sa-primary) !important;
}

body.theme-saudi:not(.dark-theme) .eSocialShare {
    background: #fff !important;
    border: 1px solid var(--sa-line) !important;
    border-radius: 18px !important;
    box-shadow: var(--sa-shadow-sm) !important;
    padding: 16px 18px !important;
    margin-top: 14px !important;
}

body.theme-saudi:not(.dark-theme) .eSocialShare p {
    color: var(--sa-ink) !important;
    font-weight: 700;
    margin-bottom: 10px !important;
}

body.theme-saudi:not(.dark-theme) .eSocialShare a {
    border-color: var(--sa-line) !important;
    transition: background .2s var(--sa-ease), border-color .2s var(--sa-ease), color .2s var(--sa-ease), transform .2s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .eSocialShare a:hover {
    background: var(--sa-primary) !important;
    border-color: var(--sa-primary) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

body.theme-saudi:not(.dark-theme) .course-details-card {
    padding-block: 8px 48px;
}

body.theme-saudi:not(.dark-theme) .course-details-card > .container {
    padding-inline: 24px;
}

body.theme-saudi:not(.dark-theme) .course-details-card .courses-card,
body.theme-saudi:not(.dark-theme) .related-courses-grid {
    margin-top: 16px !important;
}

body.theme-saudi:not(.dark-theme) .related-courses-section {
    margin-top: 8px !important;
    padding-top: 0 !important;
}

body.theme-saudi:not(.dark-theme) .related-courses-panel {
    background: linear-gradient(180deg, #EDE7FF 0%, #F3EFFC 100%);
    border: 1px solid rgba(117, 79, 254, .18);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(117, 79, 254, .08);
    padding: 22px 20px 24px;
}

body.theme-saudi:not(.dark-theme) .related-courses-title {
    margin: 0 0 4px !important;
    font-size: clamp(22px, 2.6vw, 28px) !important;
    font-weight: 800 !important;
    color: var(--sa-ink) !important;
    line-height: 1.3;
}

/* Cards stay lighter than the panel so they read clearly */
body.theme-saudi:not(.dark-theme) .related-courses-section .eGridCourse.courses-card-body,
body.theme-saudi:not(.dark-theme) .related-courses-section .courses-card .eGridCourse {
    background: #fff !important;
    border-color: rgba(117, 79, 254, .12) !important;
}

body.theme-saudi:not(.dark-theme) .related-courses-section .eGridCourse .courses-text {
    padding: 10px 14px 12px !important;
    gap: 4px;
}

body.theme-saudi:not(.dark-theme) .related-courses-section .eGridCourse .courses-card-image,
body.theme-saudi:not(.dark-theme) .related-courses-section .eGridCourse .courses-card-image img {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
}

body.theme-saudi:not(.dark-theme) .related-courses-section .eGridCourse .courses-card-image img {
    height: 150px !important;
    max-height: 150px !important;
    min-height: 150px !important;
}

@media (max-width: 767.98px) {
    body.theme-saudi:not(.dark-theme) .related-courses-panel {
        padding: 16px 14px 18px;
        border-radius: 18px;
    }
}

@media (max-width: 991.98px) {
    body.theme-saudi:not(.dark-theme) .bread-crumb.courses-details {
        padding-block: 64px 32px !important;
    }

    body.theme-saudi:not(.dark-theme) .course-hero-top-art {
        height: 160px;
    }

    body.theme-saudi:not(.dark-theme) .course-hero-ring--1 {
        width: 110px;
        height: 110px;
        top: 24px;
    }

    body.theme-saudi:not(.dark-theme) .course-hero-ring--2 {
        width: 64px;
        height: 64px;
        top: 42px;
        inset-inline-end: calc(28% + 70px);
    }

    body.theme-saudi:not(.dark-theme) .course-hero-visual {
        max-width: 460px;
        margin-inline: auto;
        padding-bottom: 32px;
    }

    body.theme-saudi:not(.dark-theme) .course-hero-frame {
        aspect-ratio: 16 / 10;
        border-radius: 22px;
    }

    body.theme-saudi:not(.dark-theme) .course-hero-play {
        width: 62px;
        height: 62px;
    }

    body.theme-saudi:not(.dark-theme) .course-right-section {
        position: static;
        max-width: 440px;
        margin-inline: auto;
    }

    body.theme-saudi:not(.dark-theme) .course-right-section .course-card,
    body.theme-saudi:not(.dark-theme) .course-card.course-details-sidebar,
    body.theme-saudi:not(.dark-theme) .course-left-side {
        margin-top: 0 !important;
    }

    body.theme-saudi:not(.dark-theme) .course-decription {
        padding-top: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.theme-saudi:not(.dark-theme) .course-left-side,
    body.theme-saudi:not(.dark-theme) .course-right-section {
        animation: none;
    }
}


/* ---------- My courses + shared profile shell ---------- */
body.theme-saudi:not(.dark-theme) .sa-my-courses,
body.theme-saudi:not(.dark-theme) .sa-profile-page {
    padding-block: 12px 72px;
    background: transparent !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 1;
}

body.theme-saudi:not(.dark-theme) .sa-profile-page .container,
body.theme-saudi:not(.dark-theme) .sa-profile-page .sa-profile-panel,
body.theme-saudi:not(.dark-theme) .sa-profile-page .sa-profile-nav,
body.theme-saudi:not(.dark-theme) .sa-profile-page .profile-ful-body {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

@media (min-width: 992px) {
    body.theme-saudi:not(.dark-theme) .menubar .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

body.theme-saudi:not(.dark-theme) .wish-list-body .wish-list-search,
body.theme-saudi:not(.dark-theme) .sa-profile-nav {
    background: #fff !important;
    border: 1px solid rgba(117, 79, 254, .10) !important;
    border-radius: 24px !important;
    box-shadow: 0 12px 36px rgba(70, 51, 156, .08) !important;
    padding: 22px 18px 18px !important;
    overflow: hidden;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

body.theme-saudi:not(.dark-theme) .wish-list-body > .container > .row {
    align-items: flex-start;
}

body.theme-saudi:not(.dark-theme) .wish-list-body .student-profile-info {
    margin: 8px 0 22px;
}

body.theme-saudi:not(.dark-theme) .wish-list-body .student-profile-info .profile-image {
    width: 88px;
    height: 88px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 4px rgba(117, 79, 254, .18), 0 12px 24px rgba(70, 51, 156, .12);
}

body.theme-saudi:not(.dark-theme) .wish-list-body .student-profile-info h4 {
    color: var(--sa-ink);
    font-weight: 800;
    font-size: 17px;
    margin-top: 14px;
}

body.theme-saudi:not(.dark-theme) .wish-list-body .student-profile-info span {
    color: var(--sa-muted);
    font-size: 12.5px;
    word-break: break-all;
}

body.theme-saudi:not(.dark-theme) .wish-list-body .btn-profile-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px !important;
    padding: 11px 14px !important;
    margin: 3px 0 !important;
    color: var(--sa-ink) !important;
    font-weight: 650;
    border: 1px solid transparent;
    transition: background .2s var(--sa-ease), color .2s var(--sa-ease), border-color .2s var(--sa-ease), transform .2s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .wish-list-body .btn-profile-menu:hover {
    background: var(--sa-primary-50) !important;
    color: var(--sa-primary-700) !important;
    border-color: rgba(117, 79, 254, .12);
    transform: translateX(-2px);
}

[dir="ltr"] body.theme-saudi:not(.dark-theme) .wish-list-body .btn-profile-menu:hover {
    transform: translateX(2px);
}

body.theme-saudi:not(.dark-theme) .wish-list-body .btn-profile-menu.active {
    background: linear-gradient(135deg, var(--sa-primary), var(--sa-primary-700)) !important;
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(117, 79, 254, .28);
}

body.theme-saudi:not(.dark-theme) .wish-list-body .btn-profile-menu.active svg path {
    fill: #fff !important;
}

body.theme-saudi:not(.dark-theme) .wish-list-body .btn-profile-menu .badge {
    margin-inline-start: auto;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

body.theme-saudi:not(.dark-theme) .sa-myc-panel {
 background: #fff !important;
 border: 1px solid rgba(117, 79, 254, .10) !important;
 border-radius: 28px !important;
 box-shadow: 0 16px 44px rgba(70, 51, 156, .09) !important;
 padding: clamp(22px, 3vw, 32px) clamp(16px, 2.5vw, 28px) !important;
 margin-top: 0 !important;
 margin-bottom: 40px !important;
}

body.theme-saudi:not(.dark-theme) .sa-myc-head {
 display: flex;
 align-items: flex-start;
 justify-content: space-between;
 gap: 16px;
 flex-wrap: wrap;
 margin-bottom: 22px;
 padding-bottom: 18px;
 border-bottom: 1px solid var(--sa-line);
}

body.theme-saudi:not(.dark-theme) .sa-myc-panel h1,
body.theme-saudi:not(.dark-theme) .sa-myc-head h1 {
 font-size: clamp(22px, 2.4vw, 28px) !important;
 font-weight: 800 !important;
 color: var(--sa-ink) !important;
 margin: 0 0 6px !important;
 letter-spacing: -.02em;
}

body.theme-saudi:not(.dark-theme) .sa-myc-sub {
 margin: 0;
 color: var(--sa-muted);
 font-size: 14px;
}

body.theme-saudi:not(.dark-theme) .sa-myc-stats {
 display: flex;
 flex-wrap: wrap;
 gap: 8px;
}

body.theme-saudi:not(.dark-theme) .sa-myc-stat {
 display: inline-flex;
 align-items: center;
 gap: 7px;
 padding: 8px 14px;
 border-radius: 999px;
 background: var(--sa-primary-50);
 border: 1px solid rgba(117, 79, 254, .16);
 color: var(--sa-primary-700);
 font-size: 13px;
 font-weight: 700;
}

body.theme-saudi:not(.dark-theme) .sa-myc-stat--teach {
 background: #EEF7FF;
 border-color: rgba(0, 128, 255, .16);
 color: #0066CC;
}

body.theme-saudi:not(.dark-theme) .sa-myc-section-label {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 margin-bottom: 14px;
 padding: 7px 14px;
 border-radius: 999px;
 background: #F5F3FF;
 color: var(--sa-primary-700);
 font-size: 13px;
 font-weight: 700;
}

body.theme-saudi:not(.dark-theme) .sa-myc-section-label--spaced {
 margin-top: 18px;
}

body.theme-saudi:not(.dark-theme) .sa-myc-card {
 display: flex !important;
 gap: 18px;
 align-items: stretch;
 padding: 16px !important;
 margin-bottom: 14px !important;
 border: 1px solid rgba(110, 121, 138, .14) !important;
 border-radius: 20px !important;
 border-bottom: 1px solid rgba(110, 121, 138, .14) !important;
 background: linear-gradient(180deg, #fff, #FBFBFE);
 box-shadow: 0 4px 14px rgba(13, 12, 35, .03);
 cursor: pointer;
 transition: transform .25s var(--sa-ease), box-shadow .25s var(--sa-ease), border-color .25s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .sa-myc-card:hover {
 transform: translateY(-3px);
 box-shadow: 0 16px 36px rgba(70, 51, 156, .12);
 border-color: rgba(117, 79, 254, .28) !important;
}

body.theme-saudi:not(.dark-theme) .sa-myc-card--done {
 background: linear-gradient(180deg, #fff, #F4FFF8);
}

body.theme-saudi:not(.dark-theme) .sa-myc-card--expired {
 background: linear-gradient(180deg, #fff, #FFF7F7);
}

body.theme-saudi:not(.dark-theme) .sa-myc-card__media {
 position: relative;
 flex: 0 0 220px;
 max-width: 220px;
}

body.theme-saudi:not(.dark-theme) .sa-myc-card__media img,
body.theme-saudi:not(.dark-theme) .sa-myc-panel .my-course-1-img img {
 width: 100% !important;
 height: 148px !important;
 object-fit: cover !important;
 border-radius: 14px !important;
 display: block;
}

body.theme-saudi:not(.dark-theme) .sa-myc-progress-badge {
 position: absolute;
 inset-inline-start: 10px;
 bottom: 10px;
 padding: 4px 10px;
 border-radius: 999px;
 background: rgba(13, 12, 35, .72);
 color: #fff;
 font-size: 12px;
 font-weight: 700;
 backdrop-filter: blur(6px);
}

body.theme-saudi:not(.dark-theme) .sa-myc-progress-badge.is-complete {
 background: rgba(16, 185, 129, .92);
}

body.theme-saudi:not(.dark-theme) .sa-myc-card__body {
 margin-inline-start: 0 !important;
 margin-left: 0 !important;
 margin-right: 0 !important;
 width: 100%;
 min-width: 0;
 display: flex;
 flex-direction: column;
 gap: 10px;
}

body.theme-saudi:not(.dark-theme) .sa-myc-card .my-course-1-text-heading h3 {
 font-size: 16.5px !important;
 font-weight: 800 !important;
 color: var(--sa-ink) !important;
 line-height: 1.4;
 margin: 0;
}

body.theme-saudi:not(.dark-theme) .sa-myc-more {
 width: 34px;
 height: 34px;
 border-radius: 10px !important;
 background: #F4F3F9 !important;
 border: 0 !important;
 color: var(--sa-muted) !important;
 display: inline-flex !important;
 align-items: center;
 justify-content: center;
 box-shadow: none !important;
}

body.theme-saudi:not(.dark-theme) .sa-myc-more::after {
 display: none !important;
}

body.theme-saudi:not(.dark-theme) .sa-myc-more:hover {
 background: var(--sa-primary-50) !important;
 color: var(--sa-primary) !important;
}

body.theme-saudi:not(.dark-theme) .sa-myc-dropdown {
 border: 1px solid var(--sa-line) !important;
 border-radius: 14px !important;
 box-shadow: 0 16px 36px rgba(13, 12, 35, .12) !important;
 background: #fff !important;
 padding: 6px !important;
 overflow: hidden;
}

body.theme-saudi:not(.dark-theme) .sa-myc-dropdown .dropdown-item {
 border-radius: 10px;
 color: var(--sa-ink) !important;
 font-size: 13.5px;
 font-weight: 600;
 display: flex;
 align-items: center;
 gap: 8px;
}

body.theme-saudi:not(.dark-theme) .sa-myc-dropdown .dropdown-item:hover {
 background: var(--sa-primary-50) !important;
 color: var(--sa-primary-700) !important;
}

body.theme-saudi:not(.dark-theme) .sa-myc-dropdown .dropdown-item i {
 color: var(--sa-muted);
 width: 16px;
}

body.theme-saudi:not(.dark-theme) .sa-myc-meta {
 display: flex !important;
 flex-wrap: wrap;
 gap: 8px !important;
 margin: 0 !important;
}

body.theme-saudi:not(.dark-theme) .sa-myc-chip {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 padding: 5px 10px;
 border-radius: 999px;
 background: #F5F4FA;
 color: var(--sa-muted);
 font-size: 12.5px;
 font-weight: 600;
}

body.theme-saudi:not(.dark-theme) .sa-myc-chip i {
 color: var(--sa-primary);
 font-size: 13px;
}

body.theme-saudi:not(.dark-theme) .sa-myc-skill {
 margin: 2px 0 0 !important;
}

body.theme-saudi:not(.dark-theme) .sa-myc-skill .skill-bar-container {
 height: 8px !important;
 border-radius: 999px !important;
 background: #ECEAF4 !important;
}

body.theme-saudi:not(.dark-theme) .sa-myc-skill .skill-bar {
 height: 8px !important;
 border-radius: 999px !important;
 background: linear-gradient(90deg, #8B6BFF, var(--sa-primary), var(--sa-primary-700)) !important;
}

body.theme-saudi:not(.dark-theme) .sa-myc-skill .skill-bar.is-complete {
 background: linear-gradient(90deg, #34D399, #10B981) !important;
}

body.theme-saudi:not(.dark-theme) .sa-myc-skill p {
 font-size: 12.5px;
 font-weight: 800;
 color: var(--sa-primary-700);
}

body.theme-saudi:not(.dark-theme) .sa-myc-foot {
 margin-top: auto !important;
 padding-top: 8px;
 display: flex !important;
 align-items: flex-end;
 justify-content: space-between;
 gap: 12px;
 flex-wrap: wrap;
}

body.theme-saudi:not(.dark-theme) .sa-myc-instructor img {
 width: 28px !important;
 height: 28px !important;
 border-radius: 50% !important;
 object-fit: cover;
 border: 2px solid #fff;
 box-shadow: 0 0 0 1px rgba(117, 79, 254, .2);
}

body.theme-saudi:not(.dark-theme) .sa-myc-instructor__row {
 gap: 8px;
}

body.theme-saudi:not(.dark-theme) .sa-myc-instructor__row > span,
body.theme-saudi:not(.dark-theme) .sa-myc-instructor__link span {
 font-size: 13px;
 font-weight: 650;
 color: var(--sa-ink);
}

body.theme-saudi:not(.dark-theme) .sa-myc-instructor__link {
 gap: 8px;
 color: inherit;
}

body.theme-saudi:not(.dark-theme) .sa-myc-instructor__link:hover span {
 color: var(--sa-primary);
}

body.theme-saudi:not(.dark-theme) .sa-myc-instructor .star i {
 font-size: 11px;
 color: #D1D5DB;
}

body.theme-saudi:not(.dark-theme) .sa-myc-instructor .star i.gold {
 color: #F5B301 !important;
}

body.theme-saudi:not(.dark-theme) .sa-myc-expiry {
 display: block;
 margin-top: 6px;
 font-size: 12px;
 color: var(--sa-muted);
 font-weight: 600;
}

body.theme-saudi:not(.dark-theme) .sa-myc-expiry--ok {
 color: #059669;
}

body.theme-saudi:not(.dark-theme) .sa-myc-expiry--danger {
 color: #DC2626;
}

body.theme-saudi:not(.dark-theme) .sa-myc-cta,
body.theme-saudi:not(.dark-theme) .sa-myc-panel .sa-myc-cta.btn-primary {
 display: inline-flex !important;
 align-items: center;
 gap: 8px;
 padding: 10px 18px !important;
 border-radius: 12px !important;
 font-weight: 700 !important;
 font-size: 13.5px !important;
 background: linear-gradient(135deg, var(--sa-primary), var(--sa-primary-700)) !important;
 border: 0 !important;
 color: #fff !important;
 box-shadow: 0 10px 22px rgba(117, 79, 254, .26);
 transition: transform .2s var(--sa-ease), box-shadow .2s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .sa-myc-cta:hover {
 transform: translateY(-2px);
 box-shadow: 0 14px 28px rgba(117, 79, 254, .32);
 color: #fff !important;
}

body.theme-saudi:not(.dark-theme) .sa-myc-cta--renew {
 background: linear-gradient(135deg, #F87171, #DC2626) !important;
 box-shadow: 0 10px 22px rgba(220, 38, 38, .24);
}

body.theme-saudi:not(.dark-theme) .sa-myc-card--teach {
 cursor: pointer;
}

body.theme-saudi:not(.dark-theme) .sa-myc-teach-hint {
 display: inline-flex;
 align-items: center;
 gap: 7px;
 margin-top: 4px;
 color: var(--sa-primary);
 font-size: 13px;
 font-weight: 700;
}

body.theme-saudi:not(.dark-theme) .sa-myc-empty {
 padding: 48px 20px !important;
}

body.theme-saudi:not(.dark-theme) .sa-myc-empty__icon {
 width: 72px;
 height: 72px;
 border-radius: 20px;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 background: linear-gradient(135deg, var(--sa-primary-50), #EEF5FF);
 color: var(--sa-primary);
 font-size: 28px;
 box-shadow: 0 10px 24px rgba(117, 79, 254, .12);
}

body.theme-saudi:not(.dark-theme) .sa-myc-empty h5 {
 color: var(--sa-ink);
 font-weight: 750;
 max-width: 28ch;
}

@media (max-width: 991.98px) {
 body.theme-saudi:not(.dark-theme) .sa-myc-card {
 flex-direction: column;
 gap: 14px;
 }

 body.theme-saudi:not(.dark-theme) .sa-myc-card__media {
 flex: 0 0 auto;
 max-width: 100%;
 width: 100%;
 }

 body.theme-saudi:not(.dark-theme) .sa-myc-card__media img,
 body.theme-saudi:not(.dark-theme) .sa-myc-panel .my-course-1-img img {
 height: 180px !important;
 }
}

@media (max-width: 575.98px) {
 body.theme-saudi:not(.dark-theme) .sa-myc-panel {
 border-radius: 22px !important;
 padding: 16px 12px !important;
 }

 body.theme-saudi:not(.dark-theme) .sa-myc-foot {
 flex-direction: column;
 align-items: stretch;
 }

    body.theme-saudi:not(.dark-theme) .sa-myc-cta {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Shared profile pages polish ---------- */
body.theme-saudi:not(.dark-theme) .sa-profile-panel,
body.theme-saudi:not(.dark-theme) .wish-list-body .my-course-1-full-body,
body.theme-saudi:not(.dark-theme) .wish-list-body .common-card,
body.theme-saudi:not(.dark-theme) .wish-list-body .purchase-body,
body.theme-saudi:not(.dark-theme) .wish-list-body .profile-ful-body,
body.theme-saudi:not(.dark-theme) .wish-list-body .mp-shell {
    background: #fff !important;
    border: 1px solid rgba(117, 79, 254, .10) !important;
    border-radius: 28px !important;
    box-shadow: 0 16px 44px rgba(70, 51, 156, .09) !important;
    padding: clamp(22px, 3vw, 32px) clamp(16px, 2.5vw, 28px) !important;
    margin-top: 0 !important;
    margin-bottom: 40px !important;
    overflow: hidden;
}

body.theme-saudi:not(.dark-theme) .sa-profile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--sa-line);
}

body.theme-saudi:not(.dark-theme) .sa-profile-head h1,
body.theme-saudi:not(.dark-theme) .sa-profile-panel > h1,
body.theme-saudi:not(.dark-theme) .wish-list-body .my-course-1-full-body > h1,
body.theme-saudi:not(.dark-theme) .notifications-page-header h4 {
    font-size: clamp(22px, 2.4vw, 28px) !important;
    font-weight: 800 !important;
    color: var(--sa-ink) !important;
    margin: 0 !important;
    letter-spacing: -.02em;
}

body.theme-saudi:not(.dark-theme) .sa-profile-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

body.theme-saudi:not(.dark-theme) .sa-profile-empty h5,
body.theme-saudi:not(.dark-theme) .sa-profile-empty p {
    color: var(--sa-muted);
}

/* Notifications */
body.theme-saudi:not(.dark-theme) .notifications-page-header {
    border-bottom: 1px solid var(--sa-line);
    padding-bottom: 16px;
    margin-bottom: 12px;
}

body.theme-saudi:not(.dark-theme) .notifications-page-count {
    background: var(--sa-primary) !important;
    color: #fff !important;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 700;
    margin-inline-start: 8px;
}

body.theme-saudi:not(.dark-theme) .notification-row {
    border-radius: 16px !important;
    border: 1px solid rgba(110, 121, 138, .12) !important;
    margin-bottom: 10px;
    padding: 14px 16px !important;
    transition: border-color .2s var(--sa-ease), box-shadow .2s var(--sa-ease), transform .2s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .notification-row:hover {
    border-color: rgba(117, 79, 254, .28) !important;
    box-shadow: 0 10px 24px rgba(70, 51, 156, .08);
    transform: translateY(-1px);
}

body.theme-saudi:not(.dark-theme) .notification-row.is-unread {
    background: linear-gradient(180deg, #F8F5FF, #fff) !important;
    border-color: rgba(117, 79, 254, .2) !important;
}

body.theme-saudi:not(.dark-theme) .notification-row-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--sa-primary-50);
    color: var(--sa-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.theme-saudi:not(.dark-theme) .notifications-page-actions .btn-outline-primary {
    border-radius: 10px;
    border-color: rgba(117, 79, 254, .35);
    color: var(--sa-primary-700);
    font-weight: 700;
}

body.theme-saudi:not(.dark-theme) .notifications-page-actions .btn-outline-danger {
    border-radius: 10px;
    font-weight: 700;
}

/* Purchase history */
body.theme-saudi:not(.dark-theme) .purchase-history-table thead {
    background: #F7F5FF;
}

body.theme-saudi:not(.dark-theme) .purchase-history-table th,
body.theme-saudi:not(.dark-theme) .purchase-history-table td {
    vertical-align: middle;
    border-color: var(--sa-line) !important;
}

body.theme-saudi:not(.dark-theme) .purchase-history-table h6 {
    color: var(--sa-muted);
    font-size: 12.5px;
    font-weight: 700;
    margin: 0;
    text-transform: none;
}

body.theme-saudi:not(.dark-theme) .purchase-btn,
body.theme-saudi:not(.dark-theme) .purchase-history-card-btn {
    border-radius: 10px !important;
    background: linear-gradient(135deg, var(--sa-primary), var(--sa-primary-700)) !important;
    border: 0 !important;
    box-shadow: 0 8px 18px rgba(117, 79, 254, .22);
}

body.theme-saudi:not(.dark-theme) .purchase-btn a,
body.theme-saudi:not(.dark-theme) .purchase-history-card-btn {
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
}

body.theme-saudi:not(.dark-theme) .purchase-history-card {
    border: 1px solid rgba(110, 121, 138, .14);
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 12px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(13, 12, 35, .04);
}

/* Badges */
body.theme-saudi:not(.dark-theme) .sa-badge-card {
    height: 100%;
    padding: 28px 18px;
    border-radius: 20px !important;
    border: 1px solid rgba(117, 79, 254, .12);
    background: linear-gradient(180deg, #fff, #F8F6FF);
    box-shadow: 0 10px 28px rgba(70, 51, 156, .08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform .25s var(--sa-ease), box-shadow .25s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .sa-badge-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(70, 51, 156, .14);
}

body.theme-saudi:not(.dark-theme) .sa-badge-card img {
    width: 108px;
    height: 108px;
    object-fit: cover;
    margin-bottom: 14px;
    box-shadow: 0 8px 20px rgba(70, 51, 156, .12);
}

body.theme-saudi:not(.dark-theme) .sa-badge-card__title {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--sa-ink);
    margin-bottom: 6px;
}

body.theme-saudi:not(.dark-theme) .sa-badge-card__desc {
    display: block;
    font-size: 13px;
    color: var(--sa-muted);
    line-height: 1.5;
}

/* Profile / account forms */
body.theme-saudi:not(.dark-theme) .sa-profile-page .profile-bg {
    display: none !important;
}

body.theme-saudi:not(.dark-theme) .wish-list-body .profile-parrent {
    margin-top: 0 !important;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #F7F5FF, #F3F8FF);
    border: 1px solid rgba(117, 79, 254, .10);
    margin-bottom: 22px;
}

body.theme-saudi:not(.dark-theme) .wish-list-body .profile-child img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(117, 79, 254, .18);
}

body.theme-saudi:not(.dark-theme) .wish-list-body .profile-input-section label,
body.theme-saudi:not(.dark-theme) .wish-list-body .profile-input-section .text-dark {
    color: var(--sa-ink) !important;
    font-weight: 700 !important;
    font-size: 13.5px;
    margin-bottom: 8px;
}

body.theme-saudi:not(.dark-theme) .wish-list-body .profile-input-section .form-control,
body.theme-saudi:not(.dark-theme) .wish-list-body .profile-input-section .input-group-text {
    border-radius: 12px !important;
    border-color: rgba(110, 121, 138, .18) !important;
    background: #F7F6FB !important;
    min-height: 48px;
}

body.theme-saudi:not(.dark-theme) .wish-list-body .profile-input-section .input-group .input-group-text {
    border-end-end-radius: 0 !important;
    border-start-end-radius: 0 !important;
}

body.theme-saudi:not(.dark-theme) .wish-list-body .profile-input-section .input-group .form-control {
    border-start-start-radius: 0 !important;
    border-end-start-radius: 0 !important;
}

body.theme-saudi:not(.dark-theme) .wish-list-body .profile-input-section .form-control:focus {
    background: #fff !important;
    border-color: rgba(117, 79, 254, .45) !important;
    box-shadow: 0 0 0 4px rgba(117, 79, 254, .12) !important;
}

body.theme-saudi:not(.dark-theme) .wish-list-body .profile-input-section .btn-primary,
body.theme-saudi:not(.dark-theme) .wish-list-body .profile-child-btn .purchase-btn,
body.theme-saudi:not(.dark-theme) .wish-list-body .profile-child-btn .btn-light {
    border-radius: 12px !important;
    font-weight: 700 !important;
}

body.theme-saudi:not(.dark-theme) .wish-list-body .profile-input-section .btn-primary {
    background: linear-gradient(135deg, var(--sa-primary), var(--sa-primary-700)) !important;
    border: 0 !important;
    box-shadow: 0 10px 22px rgba(117, 79, 254, .26);
    padding: 12px 28px !important;
}

/* Messages shell */
body.theme-saudi:not(.dark-theme) .mp-page .mp-shell,
body.theme-saudi:not(.dark-theme) .sa-msg-shell {
    padding: 0 !important;
    overflow: hidden !important;
}

body.theme-saudi:not(.dark-theme) .sa-msg-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 22px 22px 18px;
    border-bottom: 1px solid rgba(117, 79, 254, .10);
    background:
        radial-gradient(320px 140px at 100% 0%, rgba(117, 79, 254, .08), transparent 70%),
        #fff;
}

body.theme-saudi:not(.dark-theme) .sa-msg-title {
    margin: 0;
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 800;
    color: #0D0C23;
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    gap: 12px;
}

body.theme-saudi:not(.dark-theme) .sa-msg-title__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(117, 79, 254, .14), rgba(0, 128, 255, .08));
    color: #754FFE;
    font-size: 17px;
    flex-shrink: 0;
}

body.theme-saudi:not(.dark-theme) .sa-msg-sub {
    margin-top: 6px;
    color: #6E798A;
    font-size: 13.5px;
    font-weight: 600;
}

body.theme-saudi:not(.dark-theme) .sa-msg-head__actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

body.theme-saudi:not(.dark-theme) .sa-msg-badge {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
    font-size: 12px;
    font-weight: 800;
}

body.theme-saudi:not(.dark-theme) .mp-page .mp-new-btn,
body.theme-saudi:not(.dark-theme) .mp-page .btn-primary,
body.theme-saudi:not(.dark-theme) .sa-msg-new-btn {
    border-radius: 12px !important;
    background: linear-gradient(135deg, #8B6BFF, #754FFE 45%, #5432C9) !important;
    border: 0 !important;
    font-weight: 700 !important;
    box-shadow: 0 10px 22px rgba(117, 79, 254, .24);
}

body.theme-saudi:not(.dark-theme) .sa-msg-grid.mp-grid {
    min-height: 580px;
    grid-template-columns: 300px 1fr;
}

body.theme-saudi:not(.dark-theme) .sa-msg-aside.mp-aside {
    background:
        radial-gradient(220px 160px at 10% 0%, rgba(117, 79, 254, .08), transparent 70%),
        linear-gradient(180deg, #F7F4FF, #F8FAFF) !important;
    border-inline-end: 1px solid rgba(117, 79, 254, .10) !important;
}

body.theme-saudi:not(.dark-theme) .sa-msg-search.mp-search {
    padding: 14px 14px 10px;
}

body.theme-saudi:not(.dark-theme) .sa-msg-search .form-control {
    background: #fff !important;
    border: 1.5px solid rgba(110, 121, 138, .14) !important;
    border-radius: 14px !important;
    min-height: 44px !important;
    font-weight: 600;
    transition: border-color .2s ease, box-shadow .2s ease;
}

body.theme-saudi:not(.dark-theme) .sa-msg-search .form-control:focus {
    border-color: rgba(117, 79, 254, .45) !important;
    box-shadow: 0 0 0 4px rgba(117, 79, 254, .10) !important;
}

body.theme-saudi:not(.dark-theme) .sa-msg-thread-list {
    padding: 6px 10px 14px !important;
}

body.theme-saudi:not(.dark-theme) .sa-msg-thread.mp-thread {
    border: 1px solid transparent;
    border-radius: 16px !important;
    padding: 12px !important;
    margin-bottom: 8px !important;
    background: rgba(255, 255, 255, .72);
    transition: .22s ease;
}

body.theme-saudi:not(.dark-theme) .sa-msg-thread.mp-thread:hover {
    background: #fff !important;
    border-color: rgba(117, 79, 254, .18);
    box-shadow: 0 8px 18px rgba(70, 51, 156, .07);
    transform: translateY(-1px);
}

body.theme-saudi:not(.dark-theme) .mp-page .mp-thread.is-active,
body.theme-saudi:not(.dark-theme) .sa-msg-thread.is-active {
    background: linear-gradient(135deg, #F6F3FF, #fff) !important;
    border-color: rgba(117, 79, 254, .28) !important;
    box-shadow: 0 10px 22px rgba(117, 79, 254, .10);
}

body.theme-saudi:not(.dark-theme) .sa-msg-thread.has-unread .mp-thread-row strong {
    color: #5432C9;
}

body.theme-saudi:not(.dark-theme) .sa-msg-thread .mp-thread-avatar img,
body.theme-saudi:not(.dark-theme) .sa-msg-thread .mp-admin-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px !important;
}

body.theme-saudi:not(.dark-theme) .sa-msg-thread .mp-unread {
    background: #754FFE !important;
    box-shadow: 0 0 0 2px #fff;
}

body.theme-saudi:not(.dark-theme) .sa-msg-empty-aside {
    padding: 48px 16px !important;
}

body.theme-saudi:not(.dark-theme) .sa-msg-empty-aside__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F6F3FF;
    color: #754FFE;
    font-size: 22px;
}

body.theme-saudi:not(.dark-theme) .sa-msg-empty-aside p {
    margin: 0;
    font-weight: 600;
    color: #8B93A7;
}

body.theme-saudi:not(.dark-theme) .sa-msg-view-head {
    background: linear-gradient(180deg, #FBFBFE, #fff) !important;
    border-bottom: 1px solid rgba(117, 79, 254, .10) !important;
    padding: 16px 20px !important;
}

body.theme-saudi:not(.dark-theme) .sa-msg-view-head .mp-view-user strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #0D0C23;
}

body.theme-saudi:not(.dark-theme) .sa-msg-online {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 600;
    color: #8B93A7;
}

body.theme-saudi:not(.dark-theme) .sa-msg-chat.mp-chat {
    background:
        radial-gradient(420px 220px at 90% 0%, rgba(117, 79, 254, .05), transparent 70%),
        #F7F8FC !important;
    padding: 22px !important;
    gap: 14px !important;
}

body.theme-saudi:not(.dark-theme) .sa-msg-chat-hint {
    margin: auto;
    text-align: center;
    color: #94A3B8;
    padding: 24px;
}

body.theme-saudi:not(.dark-theme) .sa-msg-chat-hint i {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
    color: #C4B5FD;
}

body.theme-saudi:not(.dark-theme) .sa-msg-chat-hint p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}

body.theme-saudi:not(.dark-theme) .sa-msg-page .mp-msg-bubble {
    border-radius: 18px !important;
    box-shadow: 0 6px 16px rgba(13, 12, 35, .05);
}

body.theme-saudi:not(.dark-theme) .sa-msg-page .mp-msg.is-mine .mp-msg-bubble {
    background: linear-gradient(135deg, #8B6BFF, #754FFE 50%, #5432C9) !important;
    border: 0 !important;
    box-shadow: 0 10px 22px rgba(117, 79, 254, .22);
}

body.theme-saudi:not(.dark-theme) .sa-msg-page .mp-msg.is-theirs .mp-msg-bubble {
    background: #fff !important;
    border: 1px solid rgba(110, 121, 138, .12) !important;
}

body.theme-saudi:not(.dark-theme) .sa-msg-reply.mp-reply {
    background: #fff !important;
    border-top: 1px solid rgba(117, 79, 254, .10) !important;
    padding: 14px 18px !important;
    gap: 12px !important;
}

body.theme-saudi:not(.dark-theme) .sa-msg-reply textarea {
    border: 1.5px solid rgba(110, 121, 138, .16) !important;
    border-radius: 16px !important;
    min-height: 52px !important;
    font-weight: 600;
    transition: border-color .2s ease, box-shadow .2s ease;
}

body.theme-saudi:not(.dark-theme) .sa-msg-reply textarea:focus {
    border-color: rgba(117, 79, 254, .45) !important;
    box-shadow: 0 0 0 4px rgba(117, 79, 254, .10) !important;
}

body.theme-saudi:not(.dark-theme) .sa-msg-reply .btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    border-radius: 14px !important;
    padding: 0 20px !important;
}

body.theme-saudi:not(.dark-theme) .sa-msg-compose .mp-compose-inner {
    max-width: 480px;
    padding: 36px 28px;
}

body.theme-saudi:not(.dark-theme) .sa-msg-compose .mp-compose-head h3 {
    font-weight: 800;
    color: #0D0C23;
}

body.theme-saudi:not(.dark-theme) .sa-msg-compose .form-control,
body.theme-saudi:not(.dark-theme) .sa-msg-compose .form-select {
    border: 1.5px solid rgba(110, 121, 138, .16) !important;
    border-radius: 14px !important;
    font-weight: 600;
}

body.theme-saudi:not(.dark-theme) .sa-msg-compose .form-select {
    min-height: 48px;
    padding-block: 10px !important;
    padding-inline-start: 2.6rem !important;
    padding-inline-end: 14px !important;
    background-position: right .9rem center !important;
    background-size: 12px 12px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

[dir="rtl"] body.theme-saudi:not(.dark-theme) .sa-msg-compose .form-select {
    /* Arrow sits on the right in RTL; keep text clear of it */
    padding-inline-start: 2.6rem !important;
    padding-inline-end: 14px !important;
    background-position: right .9rem center !important;
}

[dir="ltr"] body.theme-saudi:not(.dark-theme) .sa-msg-compose .form-select {
    padding-inline-start: 14px !important;
    padding-inline-end: 2.6rem !important;
    background-position: right .9rem center !important;
}

body.theme-saudi:not(.dark-theme) .sa-msg-compose .form-control:focus,
body.theme-saudi:not(.dark-theme) .sa-msg-compose .form-select:focus {
    border-color: rgba(117, 79, 254, .45) !important;
    box-shadow: 0 0 0 4px rgba(117, 79, 254, .10) !important;
}

body.theme-saudi:not(.dark-theme) .sa-msg-empty-view {
    background:
        radial-gradient(360px 200px at 50% 30%, rgba(117, 79, 254, .06), transparent 70%),
        #fff;
}

body.theme-saudi:not(.dark-theme) .sa-msg-empty-view__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F5F3FF, #EEF5FF);
    color: #754FFE;
    font-size: 28px;
}

body.theme-saudi:not(.dark-theme) .sa-msg-empty-view h3 {
    font-weight: 800 !important;
    color: #0D0C23 !important;
}

body.theme-saudi:not(.dark-theme) .sa-msg-empty-cta {
    margin-top: 18px;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    border-radius: 14px !important;
    padding: 12px 20px !important;
}

body.theme-saudi:not(.dark-theme) .sa-msg-compose-avatar {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 0 0 4px rgba(117, 79, 254, .16), 0 10px 22px rgba(70, 51, 156, .12);
    margin-bottom: 8px;
}

body.theme-saudi:not(.dark-theme) .sa-msg-compose-to {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--sa-primary-50);
    border: 1px solid rgba(117, 79, 254, .12);
    color: var(--sa-muted);
    font-size: 13px;
    font-weight: 650;
}

body.theme-saudi:not(.dark-theme) .sa-msg-compose-to strong {
    color: var(--sa-ink);
    font-weight: 800;
}

body.theme-saudi:not(.dark-theme) .sa-msg-alert {
    border-radius: 14px !important;
    border: 1px solid rgba(245, 158, 11, .25) !important;
    background: #FFFBEB !important;
    color: #92400E !important;
    font-weight: 650;
}

body.theme-saudi:not(.dark-theme) .wish-list-body.sa-msg-page .mp-shell.sa-msg-shell {
    padding: 0 !important;
    margin-bottom: 24px !important;
    border-radius: 24px !important;
    overflow: hidden !important;
}

body.theme-saudi:not(.dark-theme) .sa-msg-page .mp-view-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(117, 79, 254, .18);
}

body.theme-saudi:not(.dark-theme) .sa-msg-page .mp-admin-icon {
    background: linear-gradient(135deg, rgba(117, 79, 254, .16), rgba(0, 128, 255, .08)) !important;
    color: #754FFE !important;
}

body.theme-saudi:not(.dark-theme) .sa-msg-page .mp-msg {
    margin-bottom: 10px;
}

body.theme-saudi:not(.dark-theme) .sa-msg-page .mp-msg-bubble p {
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
}

body.theme-saudi:not(.dark-theme) .sa-msg-page .mp-msg-bubble time {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    opacity: .75;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    body.theme-saudi:not(.dark-theme) .sa-msg-grid.mp-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    body.theme-saudi:not(.dark-theme) .sa-msg-aside.mp-aside {
        border-inline-end: 0 !important;
        border-bottom: 1px solid rgba(117, 79, 254, .10);
        max-height: 320px;
    }

    body.theme-saudi:not(.dark-theme) .sa-msg-head {
        padding: 16px;
    }

    body.theme-saudi:not(.dark-theme) .sa-msg-reply.mp-reply {
        flex-wrap: wrap;
    }

    body.theme-saudi:not(.dark-theme) .sa-msg-reply .btn {
        width: 100%;
    }
}

/* Wallet */
body.theme-saudi:not(.dark-theme) .wallet-page-body .sa-wallet-panel {
    padding-bottom: 28px !important;
}

body.theme-saudi:not(.dark-theme) .sa-wallet-sub {
    margin-top: 6px;
    color: var(--sa-muted);
    font-size: 14px;
}

body.theme-saudi:not(.dark-theme) .wallet-page-body .wallet-hero,
body.theme-saudi:not(.dark-theme) .sa-wallet-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px !important;
    padding: clamp(24px, 3.5vw, 36px) !important;
    margin-bottom: 26px !important;
    background:
        radial-gradient(420px 260px at 88% 12%, rgba(255, 255, 255, .18), transparent 60%),
        radial-gradient(340px 240px at 8% 88%, rgba(0, 180, 255, .18), transparent 62%),
        linear-gradient(145deg, #5B35E8 0%, #754FFE 48%, #3D2BB5 100%) !important;
    color: #fff;
    border: 0 !important;
    box-shadow: 0 18px 40px rgba(117, 79, 254, .28);
}

body.theme-saudi:not(.dark-theme) .sa-wallet-hero__art {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

body.theme-saudi:not(.dark-theme) .sa-wallet-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
}

body.theme-saudi:not(.dark-theme) .sa-wallet-orb--1 {
    width: 180px;
    height: 180px;
    top: -50px;
    inset-inline-end: -30px;
    background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 70%);
}

body.theme-saudi:not(.dark-theme) .sa-wallet-orb--2 {
    width: 120px;
    height: 120px;
    bottom: -30px;
    inset-inline-start: 8%;
    background: radial-gradient(circle, rgba(0, 200, 255, .28), transparent 70%);
}

body.theme-saudi:not(.dark-theme) .sa-wallet-ring {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .16);
    top: 50%;
    inset-inline-end: 18%;
    transform: translateY(-50%);
}

body.theme-saudi:not(.dark-theme) .sa-wallet-hero__layout,
body.theme-saudi:not(.dark-theme) .wallet-page-body .wallet-hero-layout {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 36px;
    direction: inherit !important;
}

body.theme-saudi:not(.dark-theme) .wallet-page-body .wallet-balance-block,
body.theme-saudi:not(.dark-theme) .wallet-page-body .wallet-rate-block {
    text-align: start !important;
}

body.theme-saudi:not(.dark-theme) .wallet-page-body .wallet-balance-label-row {
    gap: 10px;
    justify-content: flex-start !important;
    margin-bottom: 8px;
}

body.theme-saudi:not(.dark-theme) .sa-wallet-coin-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .18);
    color: #FFE08A;
    font-size: 16px;
}

body.theme-saudi:not(.dark-theme) .wallet-page-body .wallet-balance-label {
    font-size: 15px !important;
    font-weight: 700 !important;
    opacity: .92 !important;
    margin: 0 !important;
}

body.theme-saudi:not(.dark-theme) .wallet-page-body .coin-balance {
    font-size: clamp(40px, 5vw, 54px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    margin: 0;
}

body.theme-saudi:not(.dark-theme) .wallet-page-body .wallet-sar-equiv {
    margin-top: 10px;
    margin-bottom: 0;
    opacity: .78;
    font-size: 14px;
}

body.theme-saudi:not(.dark-theme) .sa-wallet-rate {
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(8px);
}

body.theme-saudi:not(.dark-theme) .wallet-page-body .wallet-rate-label {
    font-size: 12px;
    opacity: .8;
    margin-bottom: 4px !important;
}

body.theme-saudi:not(.dark-theme) .wallet-page-body .wallet-rate-value {
    font-size: 15px;
    font-weight: 700;
    margin: 0 !important;
}

body.theme-saudi:not(.dark-theme) .wallet-page-body .wallet-rate-value i {
    color: #FFE08A;
    font-size: 13px;
}

body.theme-saudi:not(.dark-theme) .sa-wallet-section-head {
    margin: 8px 0 16px;
}

body.theme-saudi:not(.dark-theme) .wallet-page-body .section-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--sa-ink);
    font-weight: 800;
    font-size: 18px;
}

body.theme-saudi:not(.dark-theme) .wallet-page-body .section-title i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sa-primary-50);
    color: var(--sa-primary);
    font-size: 14px;
}

body.theme-saudi:not(.dark-theme) .wallet-packages-row > [class*="col-"] {
    display: flex;
}

body.theme-saudi:not(.dark-theme) .wallet-packages-row form {
    display: flex;
    width: 100%;
}

body.theme-saudi:not(.dark-theme) .sa-wallet-package,
body.theme-saudi:not(.dark-theme) .wallet-page-body .package-card {
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid rgba(110, 121, 138, .16) !important;
    border-radius: 18px !important;
    padding: 28px 18px 22px !important;
    text-align: center;
    background: linear-gradient(180deg, #fff, #F9F8FD) !important;
    width: 100%;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(13, 12, 35, .04);
    transition: transform .25s var(--sa-ease), box-shadow .25s var(--sa-ease), border-color .25s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .sa-wallet-package:hover,
body.theme-saudi:not(.dark-theme) .wallet-page-body .package-card:hover {
    transform: translateY(-4px);
    border-color: rgba(117, 79, 254, .4) !important;
    box-shadow: 0 16px 34px rgba(117, 79, 254, .14);
}

body.theme-saudi:not(.dark-theme) .sa-wallet-package.popular {
    border-color: rgba(117, 79, 254, .45) !important;
    background: linear-gradient(180deg, #F8F5FF, #fff) !important;
}

body.theme-saudi:not(.dark-theme) .sa-wallet-package__badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sa-primary), var(--sa-primary-700));
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(117, 79, 254, .28);
}

body.theme-saudi:not(.dark-theme) .wallet-page-body .package-coins {
    font-size: 34px;
    font-weight: 800;
    color: var(--sa-ink);
    line-height: 1.15;
}

body.theme-saudi:not(.dark-theme) .sa-wallet-package__label {
    margin: 4px 0 0;
    color: var(--sa-muted);
    font-size: 13px;
    font-weight: 600;
}

body.theme-saudi:not(.dark-theme) .wallet-page-body .package-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--sa-primary);
    margin-top: 10px;
}

body.theme-saudi:not(.dark-theme) .wallet-page-body .package-unit {
    font-size: 12.5px;
    color: var(--sa-muted);
    margin-top: 4px;
}

body.theme-saudi:not(.dark-theme) .wallet-page-body .package-save-slot {
    margin-top: auto;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 12px;
}

body.theme-saudi:not(.dark-theme) .sa-wallet-custom,
body.theme-saudi:not(.dark-theme) .wallet-page-body .custom-amount-card {
    border: 1.5px dashed rgba(117, 79, 254, .28) !important;
    border-radius: 18px !important;
    padding: 22px !important;
    background: linear-gradient(180deg, #F8F6FF, #F7FAFF) !important;
}

body.theme-saudi:not(.dark-theme) .sa-wallet-custom .form-label {
    color: var(--sa-ink);
    font-size: 13.5px;
    margin-bottom: 8px;
    display: block;
    text-align: start;
}

body.theme-saudi:not(.dark-theme) .sa-wallet-input-group {
    flex-wrap: nowrap;
    width: 100%;
    border: 1.5px solid rgba(110, 121, 138, .18);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    transition: border-color .2s var(--sa-ease), box-shadow .2s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .sa-wallet-input-group:focus-within {
    border-color: rgba(117, 79, 254, .5);
    box-shadow: 0 0 0 4px rgba(117, 79, 254, .12);
}

body.theme-saudi:not(.dark-theme) .sa-wallet-input-group .form-control,
body.theme-saudi:not(.dark-theme) .sa-wallet-input-group .form-control-lg,
body.theme-saudi:not(.dark-theme) .sa-wallet-input-group .input-group-text {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    min-height: 52px;
    margin: 0 !important;
}

body.theme-saudi:not(.dark-theme) .sa-wallet-input-group .input-group-text {
    color: var(--sa-primary);
    font-weight: 700;
    padding-inline: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F7F5FF !important;
}

body.theme-saudi:not(.dark-theme) .sa-wallet-input-group .form-control {
    padding-inline: 14px !important;
    font-size: 15px !important;
    color: var(--sa-ink) !important;
}

body.theme-saudi:not(.dark-theme) .sa-wallet-input-group .form-control:focus {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

body.theme-saudi:not(.dark-theme) .sa-wallet-custom .row.align-items-end {
    --bs-gutter-y: 1rem;
}

body.theme-saudi:not(.dark-theme) .sa-wallet-buy,
body.theme-saudi:not(.dark-theme) .wallet-page-body .btn-buy-coins {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    height: 52px;
    border-radius: 14px !important;
    border: 0 !important;
    background: linear-gradient(135deg, var(--sa-primary), var(--sa-primary-700)) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    box-shadow: 0 12px 26px rgba(117, 79, 254, .28);
    transition: transform .2s var(--sa-ease), box-shadow .2s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .sa-wallet-buy:hover,
body.theme-saudi:not(.dark-theme) .wallet-page-body .btn-buy-coins:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(117, 79, 254, .34);
    color: #fff !important;
}

body.theme-saudi:not(.dark-theme) .sa-wallet-table-wrap {
    border: 1px solid var(--sa-line);
    border-radius: 16px;
    overflow: hidden;
}

body.theme-saudi:not(.dark-theme) .wallet-page-body .transaction-table thead th {
    background: #F7F5FF !important;
    color: var(--sa-muted) !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    border: 0 !important;
    padding: 14px 16px !important;
}

body.theme-saudi:not(.dark-theme) .wallet-page-body .transaction-table tbody td {
    padding: 14px 16px !important;
    border-color: var(--sa-line) !important;
    vertical-align: middle;
}

body.theme-saudi:not(.dark-theme) .wallet-page-body .badge-purchase {
    background: #DCFCE7;
    color: #166534;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

body.theme-saudi:not(.dark-theme) .wallet-page-body .badge-spend {
    background: #FEE2E2;
    color: #991B1B;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

body.theme-saudi:not(.dark-theme) .wallet-page-body .badge-grant {
    background: var(--sa-primary-100);
    color: var(--sa-primary-700);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

body.theme-saudi:not(.dark-theme) .wallet-page-body .coins-positive {
    color: #16A34A;
    font-weight: 800;
}

body.theme-saudi:not(.dark-theme) .wallet-page-body .coins-negative {
    color: #DC2626;
    font-weight: 800;
}

body.theme-saudi:not(.dark-theme) .wallet-txn-card {
    border: 1px solid rgba(110, 121, 138, .14);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 10px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(13, 12, 35, .04);
}

body.theme-saudi:not(.dark-theme) .wallet-txn-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

body.theme-saudi:not(.dark-theme) .sa-wallet-alert {
    border-radius: 14px;
    border: 0;
}

@media (max-width: 767.98px) {
    body.theme-saudi:not(.dark-theme) .sa-wallet-hero {
        padding: 22px 18px !important;
    }

    body.theme-saudi:not(.dark-theme) .wallet-page-body .coin-balance {
        font-size: 40px;
    }

    body.theme-saudi:not(.dark-theme) .sa-wallet-package,
    body.theme-saudi:not(.dark-theme) .wallet-page-body .package-card {
        min-height: 0;
    }
}

/* Wishlist cards inside profile */
body.theme-saudi:not(.dark-theme) .sa-profile-page .courses-card-body {
    border-radius: 18px !important;
    border: 1px solid rgba(110, 121, 138, .12);
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(13, 12, 35, .05);
    transition: transform .25s var(--sa-ease), box-shadow .25s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .sa-profile-page .courses-card-body:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(70, 51, 156, .12);
}

/* =========================================================
   Shopping cart polish
   ========================================================= */
body.theme-saudi:not(.dark-theme) .sa-cart-page.cart-page {
    padding: 36px 0 90px !important;
    background:
        radial-gradient(720px 380px at 95% -10%, rgba(117, 79, 254, .10), transparent 60%),
        radial-gradient(520px 320px at 0% 100%, rgba(0, 128, 255, .06), transparent 55%),
        linear-gradient(180deg, #F6F4FC 0%, #FAFAFD 55%, #fff 100%) !important;
}

body.theme-saudi:not(.dark-theme) .sa-cart {
    animation: saCartIn .45s cubic-bezier(.22, .61, .36, 1);
}

@keyframes saCartIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

body.theme-saudi:not(.dark-theme) .sa-cart-layout {
    align-items: flex-start !important;
}

body.theme-saudi:not(.dark-theme) .sa-cart-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(117, 79, 254, .10);
}

body.theme-saudi:not(.dark-theme) .sa-cart-title {
    margin: 0;
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 800;
    color: #0D0C23;
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    gap: 12px;
}

body.theme-saudi:not(.dark-theme) .sa-cart-title__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(117, 79, 254, .14), rgba(0, 128, 255, .08));
    color: #754FFE;
    font-size: 17px;
    flex-shrink: 0;
}

body.theme-saudi:not(.dark-theme) .sa-cart-sub {
    margin-top: 8px;
    color: #6E798A;
    font-size: 14px;
    font-weight: 600;
}

body.theme-saudi:not(.dark-theme) .sa-cart-badge {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #F6F3FF;
    border: 1px solid rgba(117, 79, 254, .16);
    color: #5432C9;
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
}

body.theme-saudi:not(.dark-theme) .sa-cart-empty {
    text-align: center;
    background: #fff;
    border: 1px solid rgba(117, 79, 254, .10);
    border-radius: 28px;
    padding: 56px 24px;
    box-shadow: 0 16px 40px rgba(70, 51, 156, .08);
}

body.theme-saudi:not(.dark-theme) .sa-cart-empty__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F5F3FF, #EEF5FF);
    color: #754FFE;
    font-size: 28px;
}

body.theme-saudi:not(.dark-theme) .sa-cart-empty h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    color: #0D0C23;
}

body.theme-saudi:not(.dark-theme) .sa-cart-empty p {
    margin: 0 0 20px;
    color: #6E798A;
    font-size: 14px;
    font-weight: 600;
}

body.theme-saudi:not(.dark-theme) .sa-cart-empty__btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    border-radius: 14px !important;
    padding: 12px 22px !important;
    font-weight: 700 !important;
    box-shadow: 0 12px 26px rgba(117, 79, 254, .24);
}

body.theme-saudi:not(.dark-theme) .sa-cart-panel {
    background: #fff !important;
    border: 1px solid rgba(117, 79, 254, .10) !important;
    border-radius: 24px !important;
    padding: 26px 24px 22px !important;
    box-shadow: 0 12px 32px rgba(70, 51, 156, .07);
    overflow: hidden;
    min-height: 420px;
}

body.theme-saudi:not(.dark-theme) .sa-cart-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 220px;
}

body.theme-saudi:not(.dark-theme) .sa-cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(110, 121, 138, .12);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #FBFBFE);
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
    min-height: 118px;
}

body.theme-saudi:not(.dark-theme) .sa-cart-item:hover {
    border-color: rgba(117, 79, 254, .24);
    box-shadow: 0 12px 26px rgba(70, 51, 156, .08);
    transform: translateY(-1px);
}

body.theme-saudi:not(.dark-theme) .sa-cart-item__media {
    width: 140px;
    height: 92px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(110, 121, 138, .10);
    background: #F1F5F9;
}

body.theme-saudi:not(.dark-theme) .sa-cart-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.theme-saudi:not(.dark-theme) .sa-cart-item__body {
    flex: 1;
    min-width: 0;
}

body.theme-saudi:not(.dark-theme) .sa-cart-item__title {
    display: block;
    color: #0D0C23 !important;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    text-decoration: none !important;
    margin-bottom: 4px;
}

body.theme-saudi:not(.dark-theme) .sa-cart-item__title:hover {
    color: #5432C9 !important;
}

body.theme-saudi:not(.dark-theme) .sa-cart-item__meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8B93A7;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

body.theme-saudi:not(.dark-theme) .sa-cart-item__meta i {
    color: #754FFE;
    font-size: 11px;
}

body.theme-saudi:not(.dark-theme) .sa-cart-item__desc {
    margin: 0;
    color: #94A3B8;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.theme-saudi:not(.dark-theme) .sa-cart-item__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
    min-width: 96px;
}

body.theme-saudi:not(.dark-theme) .sa-cart-item__price {
    text-align: end;
}

body.theme-saudi:not(.dark-theme) .sa-cart-item__price strong {
    display: block;
    color: #5432C9;
    font-size: 16px;
    font-weight: 800;
}

body.theme-saudi:not(.dark-theme) .sa-cart-item__price del {
    display: block;
    color: #CBD5E1;
    font-size: 12px;
    font-weight: 500;
    margin-top: 2px;
}

body.theme-saudi:not(.dark-theme) .sa-cart-item__remove {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626 !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: .2s ease;
}

body.theme-saudi:not(.dark-theme) .sa-cart-item__remove:hover {
    background: #FEE2E2;
    color: #B91C1C !important;
}

body.theme-saudi:not(.dark-theme) .sa-cart-continue {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed rgba(117, 79, 254, .14);
}

body.theme-saudi:not(.dark-theme) .sa-cart-continue a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5432C9 !important;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
}

body.theme-saudi:not(.dark-theme) .sa-cart-continue a:hover {
    color: #754FFE !important;
}

body.theme-saudi:not(.dark-theme) .sa-cart-summary.cart-total {
    background: #fff !important;
    border: 1px solid rgba(117, 79, 254, .12) !important;
    border-radius: 24px !important;
    padding: 26px 22px !important;
    margin-top: 0 !important;
    box-shadow:
        0 12px 32px rgba(70, 51, 156, .08),
        0 28px 56px rgba(70, 51, 156, .08);
    position: sticky;
    top: 90px;
    min-height: 420px;
}

body.theme-saudi:not(.dark-theme) .sa-cart-summary__head {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(117, 79, 254, .10);
}

body.theme-saudi:not(.dark-theme) .sa-cart-summary__head h4 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 800;
    color: #0D0C23;
}

body.theme-saudi:not(.dark-theme) .sa-cart-summary__head span {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    font-weight: 600;
    color: #8B93A7;
}

body.theme-saudi:not(.dark-theme) .sa-cart-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 12px;
}

body.theme-saudi:not(.dark-theme) .sa-cart-alert--success {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #047857;
}

body.theme-saudi:not(.dark-theme) .sa-cart-alert--danger {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
}

body.theme-saudi:not(.dark-theme) .sa-cart-alert i {
    margin-top: 2px;
    flex-shrink: 0;
}

body.theme-saudi:not(.dark-theme) .sa-cart-lines {
    background: #F8F7FC;
    border: 1px solid rgba(110, 121, 138, .10);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

body.theme-saudi:not(.dark-theme) .sa-cart-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    color: #6E798A;
    font-size: 14px;
    font-weight: 600;
}

body.theme-saudi:not(.dark-theme) .sa-cart-line strong {
    color: #0D0C23;
    font-weight: 800;
}

body.theme-saudi:not(.dark-theme) .sa-cart-line small {
    color: #94A3B8;
    font-weight: 600;
}

body.theme-saudi:not(.dark-theme) .sa-cart-line--total {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px dashed rgba(117, 79, 254, .18);
    color: #0D0C23;
    font-size: 15px;
    font-weight: 700;
}

body.theme-saudi:not(.dark-theme) .sa-cart-line--total strong {
    color: #5432C9;
    font-size: 20px;
}

body.theme-saudi:not(.dark-theme) .sa-cart-coupon {
    margin-bottom: 18px;
}

body.theme-saudi:not(.dark-theme) .sa-cart-coupon__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: #6E798A;
    margin-bottom: 8px;
}

body.theme-saudi:not(.dark-theme) .sa-cart-coupon__label i {
    color: #754FFE;
}

body.theme-saudi:not(.dark-theme) .sa-cart-coupon__group {
    border: 1.5px solid rgba(110, 121, 138, .16);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

body.theme-saudi:not(.dark-theme) .sa-cart-coupon__group:focus-within {
    border-color: rgba(117, 79, 254, .45);
    box-shadow: 0 0 0 4px rgba(117, 79, 254, .10);
}

body.theme-saudi:not(.dark-theme) .sa-cart-coupon__group .form-control {
    border: 0 !important;
    box-shadow: none !important;
    font-size: 13.5px;
    font-weight: 600;
    padding: 11px 12px;
    background: transparent;
}

body.theme-saudi:not(.dark-theme) .sa-cart-coupon__group .btn {
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #8B6BFF, #754FFE) !important;
}

body.theme-saudi:not(.dark-theme) .sa-cart-gift {
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 14px;
    background: #FBFBFE;
    border: 1px solid rgba(110, 121, 138, .10);
}

body.theme-saudi:not(.dark-theme) .sa-cart-gift__check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    color: #0D0C23;
}

body.theme-saudi:not(.dark-theme) .sa-cart-gift__check input {
    width: 17px;
    height: 17px;
    accent-color: #754FFE;
    flex-shrink: 0;
}

body.theme-saudi:not(.dark-theme) .sa-cart-gift__check span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

body.theme-saudi:not(.dark-theme) .sa-cart-gift__check i {
    color: #EC4899;
}

body.theme-saudi:not(.dark-theme) .sa-cart-gift #gift_email_section {
    margin-top: 10px;
}

body.theme-saudi:not(.dark-theme) .sa-cart-gift .form-control {
    border: 1.5px solid rgba(110, 121, 138, .16);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13.5px;
    font-weight: 600;
}

body.theme-saudi:not(.dark-theme) .sa-cart-gift .form-control:focus {
    border-color: rgba(117, 79, 254, .45);
    box-shadow: 0 0 0 4px rgba(117, 79, 254, .10);
}

body.theme-saudi:not(.dark-theme) .sa-cart-gift__msg {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
}

body.theme-saudi:not(.dark-theme) .sa-cart-pay-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0 !important;
    border-radius: 14px !important;
    padding: 15px 18px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #8B6BFF, #754FFE 45%, #5432C9) !important;
    box-shadow: 0 12px 26px rgba(117, 79, 254, .28) !important;
    transition: transform .22s ease, box-shadow .22s ease !important;
}

body.theme-saudi:not(.dark-theme) .sa-cart-page .cart-total-btn {
    margin-top: 0 !important;
}

body.theme-saudi:not(.dark-theme) .sa-cart-pay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(117, 79, 254, .34) !important;
}

body.theme-saudi:not(.dark-theme) .sa-cart-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-top: 14px;
    color: #8B93A7;
    font-size: 12px;
    font-weight: 600;
}

body.theme-saudi:not(.dark-theme) .sa-cart-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body.theme-saudi:not(.dark-theme) .sa-cart-trust i {
    color: #10B981;
}

@media (max-width: 767.98px) {
    body.theme-saudi:not(.dark-theme) .sa-cart-page.cart-page {
        padding: 18px 0 48px !important;
    }

    body.theme-saudi:not(.dark-theme) .sa-cart-panel,
    body.theme-saudi:not(.dark-theme) .sa-cart-summary.cart-total {
        min-height: 0;
        padding: 18px 16px !important;
    }

    body.theme-saudi:not(.dark-theme) .sa-cart-item {
        flex-wrap: wrap;
        min-height: 0;
        align-items: flex-start;
    }

    body.theme-saudi:not(.dark-theme) .sa-cart-item__media {
        width: 104px;
        height: 74px;
    }

    body.theme-saudi:not(.dark-theme) .sa-cart-item__side {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-width: 0;
        padding-top: 4px;
    }

    body.theme-saudi:not(.dark-theme) .sa-cart-item__price {
        text-align: start;
    }

    body.theme-saudi:not(.dark-theme) .sa-cart-summary.cart-total {
        position: static;
        margin-top: 0 !important;
    }
}

/* =========================================================
   Header wishlist dropdown polish
   ========================================================= */
body.theme-saudi:not(.dark-theme) .wisth_tgl_2div.wish {
    position: relative;
}

body.theme-saudi:not(.dark-theme) .menu_pro_wish {
    width: 320px !important;
    min-width: 320px;
    max-width: min(320px, calc(100vw - 24px));
    top: 48px !important;
    padding: 10px 0 0 !important;
    border-radius: 18px !important;
    border: 1px solid rgba(117, 79, 254, .12) !important;
    background: #fff !important;
    box-shadow: 0 14px 32px rgba(70, 51, 156, .12) !important;
    overflow: visible;
    z-index: 1200 !important;
    /* Default LTR: open toward the left from the icon */
    right: 0 !important;
    left: auto !important;
}

/* RTL icons sit on the left — open the panel toward the page center */
[dir="rtl"] body.theme-saudi:not(.dark-theme) .menu_pro_wish {
    left: 0 !important;
    right: auto !important;
}

body.theme-saudi:not(.dark-theme) .menu_pro_wish::after {
    background: #fff !important;
    box-shadow: none !important;
    top: -9px !important;
    height: 12px !important;
    width: 12px !important;
    clip-path: polygon(50% 0, 0 100%, 100% 100%);
    right: 12px !important;
    left: auto !important;
}

[dir="rtl"] body.theme-saudi:not(.dark-theme) .menu_pro_wish::after {
    left: 12px !important;
    right: auto !important;
}

body.theme-saudi:not(.dark-theme) .menu_pro_wish .path_pos_wish {
 width: 100% !important;
}

body.theme-saudi:not(.dark-theme) .menu_pro_wish .overflow-control {
 max-height: 280px !important;
 padding: 4px 10px 0;
 overflow-x: hidden;
}

body.theme-saudi:not(.dark-theme) .menu_pro_wish-f-b {
 padding: 0 !important;
 margin-bottom: 8px;
 border: 1px solid rgba(110, 121, 138, .10) !important;
 border-radius: 14px !important;
 background: #fff;
 transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

body.theme-saudi:not(.dark-theme) .menu_pro_wish-f-b:hover {
 background: #FBFBFE !important;
 border-color: rgba(117, 79, 254, .22) !important;
 box-shadow: 0 8px 18px rgba(70, 51, 156, .07);
}

body.theme-saudi:not(.dark-theme) .menu_pro_wish-f-b:last-child {
 border-bottom: 1px solid rgba(110, 121, 138, .10) !important;
}

body.theme-saudi:not(.dark-theme) .sa-wish-item__link {
 display: block;
 padding: 10px;
 text-decoration: none !important;
}

body.theme-saudi:not(.dark-theme) .menu_pro_wish .menu_pro_wish-flex {
 align-items: flex-start;
 gap: 10px;
}

body.theme-saudi:not(.dark-theme) .menu_pro_wish .menu_pro_wish-flex img,
body.theme-saudi:not(.dark-theme) .sa-wish-item__media img {
 width: 72px !important;
 height: 54px !important;
 margin: 0 !important;
 border-radius: 10px !important;
 object-fit: cover;
 background: #F1F5F9;
 border: 1px solid rgba(110, 121, 138, .10);
 flex-shrink: 0;
}

body.theme-saudi:not(.dark-theme) .sa-wish-item__body {
 min-width: 0;
}

body.theme-saudi:not(.dark-theme) .menu_pro_wish .menu_pro_wish-flex .text h4 {
 margin: 0 0 3px !important;
 font-size: 13px !important;
 font-weight: 800 !important;
 color: #0D0C23 !important;
 line-height: 1.35;
 display: -webkit-box;
 -webkit-line-clamp: 2;
 -webkit-box-orient: vertical;
 overflow: hidden;
}

body.theme-saudi:not(.dark-theme) .menu_pro_wish .menu_pro_wish-flex .text p {
 margin: 0 0 8px !important;
 font-size: 11.5px !important;
 font-weight: 600 !important;
 color: #8B93A7 !important;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
}

body.theme-saudi:not(.dark-theme) .sa-wish-item__meta.spandiv {
 display: flex !important;
 align-items: center !important;
 justify-content: space-between !important;
 gap: 8px !important;
 padding: 0 !important;
 flex-wrap: nowrap !important;
}

body.theme-saudi:not(.dark-theme) .sa-wish-item__price {
 color: #5432C9 !important;
 font-size: 13px !important;
 font-weight: 800 !important;
 white-space: nowrap;
 flex-shrink: 0;
}

body.theme-saudi:not(.dark-theme) .menu_pro_wish-flex .spandiv .wishlist-buy-now,
body.theme-saudi:not(.dark-theme) .sa-wish-item__cta {
 display: inline-flex !important;
 align-items: center;
 gap: 5px;
 margin: 0 !important;
 padding: 5px 10px !important;
 border-radius: 999px !important;
 background: #F6F3FF !important;
 border: 1px solid rgba(117, 79, 254, .16) !important;
 color: #5432C9 !important;
 font-size: 11.5px !important;
 font-weight: 700 !important;
 white-space: nowrap;
 line-height: 1.2;
 flex-shrink: 0;
 transition: .2s ease;
}

body.theme-saudi:not(.dark-theme) .menu_pro_wish-flex .spandiv .wishlist-buy-now i,
body.theme-saudi:not(.dark-theme) .sa-wish-item__cta i {
 color: #754FFE !important;
 font-size: 11px !important;
}

body.theme-saudi:not(.dark-theme) .menu_pro_wish-flex .spandiv .wishlist-buy-now:hover,
body.theme-saudi:not(.dark-theme) .sa-wish-item__cta:hover {
 background: #754FFE !important;
 border-color: #754FFE !important;
 color: #fff !important;
}

body.theme-saudi:not(.dark-theme) .menu_pro_wish-flex .spandiv .wishlist-buy-now:hover i,
body.theme-saudi:not(.dark-theme) .sa-wish-item__cta:hover i {
 color: #fff !important;
}

body.theme-saudi:not(.dark-theme) .menu_pro_wish .menu_pro_btn {
 margin: 0 !important;
 padding: 10px 12px 12px !important;
 border-top: 1px solid rgba(117, 79, 254, .08);
 background: #FBFBFE;
}

body.theme-saudi:not(.dark-theme) .menu_pro_wish .menu_pro_btn .btn {
 border-radius: 12px !important;
 padding: 11px 14px !important;
 font-size: 13px !important;
 font-weight: 700 !important;
 background: linear-gradient(135deg, #8B6BFF, #754FFE 50%, #5432C9) !important;
 border: 0 !important;
 box-shadow: 0 10px 20px rgba(117, 79, 254, .22);
}

body.theme-saudi:not(.dark-theme) .sa-wish-empty__inner {
 display: flex !important;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 gap: 8px;
 padding: 28px 16px !important;
 text-align: center;
 border: 0 !important;
 background: transparent !important;
}

body.theme-saudi:not(.dark-theme) .sa-wish-empty__inner i {
 font-size: 22px;
 color: #C4B5FD;
}

body.theme-saudi:not(.dark-theme) .sa-wish-empty__inner p {
 margin: 0;
 font-size: 12.5px;
 font-weight: 600;
 color: #8B93A7;
}

/* =========================================================
   Header notifications dropdown polish
   ========================================================= */
body.theme-saudi:not(.dark-theme) .js-header-notification {
    position: relative;
}

body.theme-saudi:not(.dark-theme) .menu_pro_wish.notifications-dropdown,
body.theme-saudi:not(.dark-theme) .sa-notify-dd {
    width: 340px !important;
    min-width: 340px;
    max-width: min(340px, calc(100vw - 24px));
    top: 48px !important;
    padding: 0 !important;
    border-radius: 18px !important;
    border: 1px solid rgba(117, 79, 254, .12) !important;
    background: #fff !important;
    box-shadow: 0 14px 32px rgba(70, 51, 156, .12) !important;
    overflow: visible;
    z-index: 1200 !important;
    right: 0 !important;
    left: auto !important;
}

[dir="rtl"] body.theme-saudi:not(.dark-theme) .menu_pro_wish.notifications-dropdown,
[dir="rtl"] body.theme-saudi:not(.dark-theme) .sa-notify-dd {
    left: 0 !important;
    right: auto !important;
}

body.theme-saudi:not(.dark-theme) .menu_pro_wish.notifications-dropdown::after,
body.theme-saudi:not(.dark-theme) .sa-notify-dd::after {
    background: #fff !important;
    box-shadow: none !important;
    top: -9px !important;
    height: 12px !important;
    width: 12px !important;
    clip-path: polygon(50% 0, 0 100%, 100% 100%);
    right: 12px !important;
    left: auto !important;
}

[dir="rtl"] body.theme-saudi:not(.dark-theme) .menu_pro_wish.notifications-dropdown::after,
[dir="rtl"] body.theme-saudi:not(.dark-theme) .sa-notify-dd::after {
    left: 12px !important;
    right: auto !important;
}

body.theme-saudi:not(.dark-theme) .sa-notify-dd__head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 14px 12px !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(117, 79, 254, .08);
    background:
        radial-gradient(220px 100px at 100% 0%, rgba(117, 79, 254, .06), transparent 70%),
        #fff;
}

body.theme-saudi:not(.dark-theme) .sa-notify-dd__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    color: #0D0C23;
}

body.theme-saudi:not(.dark-theme) .sa-notify-dd__title i {
    color: #754FFE;
}

body.theme-saudi:not(.dark-theme) .sa-notify-dd__title em {
    font-style: normal;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FEF2F2;
    color: #DC2626;
    font-size: 11px;
    font-weight: 800;
}

body.theme-saudi:not(.dark-theme) .sa-notify-dd__clear {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #8B93A7 !important;
    text-decoration: none !important;
    margin: 0 !important;
}

body.theme-saudi:not(.dark-theme) .sa-notify-dd__clear:hover {
    color: #DC2626 !important;
}

body.theme-saudi:not(.dark-theme) .sa-notify-dd__list.overflow-control {
    max-height: 300px !important;
    padding: 8px 10px !important;
    width: 100% !important;
}

body.theme-saudi:not(.dark-theme) .sa-notify-item.notify-item {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    width: 100% !important;
    padding: 10px !important;
    margin-bottom: 6px;
    border-radius: 14px;
    border: 1px solid rgba(110, 121, 138, .10);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

body.theme-saudi:not(.dark-theme) .sa-notify-item.notify-item:hover {
    background: #FBFBFE;
    border-color: rgba(117, 79, 254, .2);
    box-shadow: 0 8px 18px rgba(70, 51, 156, .06);
}

body.theme-saudi:not(.dark-theme) .sa-notify-item.notify-item.unread {
    background: linear-gradient(135deg, #F8F5FF, #fff);
    border-color: rgba(117, 79, 254, .18);
}

body.theme-saudi:not(.dark-theme) .sa-notify-item__icon.notify-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(117, 79, 254, .14), rgba(0, 128, 255, .08)) !important;
    color: #754FFE !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1 !important;
    margin: 0 !important;
    flex-shrink: 0;
}

body.theme-saudi:not(.dark-theme) .sa-notify-item__icon i {
    font-size: 14px !important;
    color: #754FFE !important;
}

body.theme-saudi:not(.dark-theme) .sa-notify-item__title {
    margin: 0 0 4px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #0D0C23 !important;
    line-height: 1.35;
}

body.theme-saudi:not(.dark-theme) .sa-notify-item__desc {
    margin: 0 0 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #6E798A !important;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.theme-saudi:not(.dark-theme) .sa-notify-item__time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #94A3B8 !important;
}

body.theme-saudi:not(.dark-theme) .sa-notify-item__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #754FFE;
    box-shadow: 0 0 0 3px rgba(117, 79, 254, .16);
    flex-shrink: 0;
    margin-top: 6px;
}

body.theme-saudi:not(.dark-theme) .sa-notify-empty {
    text-align: center;
    padding: 28px 16px;
}

body.theme-saudi:not(.dark-theme) .sa-notify-empty__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 10px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F6F3FF;
    color: #A78BFF;
    font-size: 20px;
}

body.theme-saudi:not(.dark-theme) .sa-notify-empty h5 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 800;
    color: #0D0C23;
}

body.theme-saudi:not(.dark-theme) .sa-notify-empty p {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #8B93A7;
    line-height: 1.5;
}

body.theme-saudi:not(.dark-theme) .sa-notify-dd__foot.menu_pro_btn {
    margin: 0 !important;
    padding: 10px 12px 12px !important;
    border-top: 1px solid rgba(117, 79, 254, .08);
    background: #FBFBFE;
}

body.theme-saudi:not(.dark-theme) .sa-notify-dd__foot .btn {
    border-radius: 12px !important;
    padding: 11px 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #8B6BFF, #754FFE 50%, #5432C9) !important;
    border: 0 !important;
    box-shadow: 0 10px 20px rgba(117, 79, 254, .22);
}

body.theme-saudi:not(.dark-theme) .sa-notify-dd__mark {
    display: block;
    margin-top: 8px !important;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #6E798A !important;
    text-decoration: none !important;
}

body.theme-saudi:not(.dark-theme) .sa-notify-dd__mark:hover {
    color: #754FFE !important;
}

/* ---------- Instructor / author profile page ---------- */
body.theme-saudi:not(.dark-theme) .sa-instructor-page {
    padding-block: 8px 72px;
    background: transparent !important;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-panel {
    background: #fff !important;
    border: 1px solid rgba(117, 79, 254, .10) !important;
    border-radius: 24px !important;
    box-shadow: 0 12px 36px rgba(70, 51, 156, .08) !important;
    padding: 28px 26px 30px !important;
    margin-bottom: 0 !important;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-head {
    border-bottom: 1px solid var(--sa-line) !important;
    padding-bottom: 22px;
    margin-bottom: 8px;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-identity {
    align-items: center;
    gap: 16px;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-identity .pro-img img {
    width: 96px !important;
    height: 96px !important;
    border-radius: 22px !important;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 0 0 4px rgba(117, 79, 254, .16), 0 12px 24px rgba(70, 51, 156, .12);
}

body.theme-saudi:not(.dark-theme) .sa-instructor-identity .name {
    margin: 0 !important;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-identity .name h4 {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: var(--sa-ink) !important;
    margin: 0 0 4px;
    line-height: 1.35;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-identity .name p {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--sa-muted) !important;
    margin: 0;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-rating {
    float: none !important;
    margin: 0 !important;
    text-align: end;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-rating h4 {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--sa-muted) !important;
    margin-bottom: 6px !important;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-rating .rating-point {
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-rating .rating-point p {
    margin: 0;
    font-size: 14px;
    font-weight: 650;
    color: var(--sa-ink);
}

body.theme-saudi:not(.dark-theme) .sa-instructor-rating .rating-point i {
    color: #F5B301 !important;
    margin: 0 !important;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-badges {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 !important;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-badges img {
    width: 40px !important;
    height: 40px !important;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(13, 12, 35, .08);
}

body.theme-saudi:not(.dark-theme) .sa-instructor-section {
    margin-top: 26px !important;
    border-bottom: none !important;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-section h3 {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: var(--sa-ink) !important;
    margin-bottom: 12px !important;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-bio {
    color: var(--sa-body);
    font-size: 14.5px;
    line-height: 1.75;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-bio p {
    margin-bottom: 10px;
    color: var(--sa-body) !important;
    font-size: 14.5px !important;
    line-height: 1.75 !important;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-skills {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-skills li {
    margin: 0 !important;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-skills span,
body.theme-saudi:not(.dark-theme) .sa-instructor-skills a {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--sa-primary-50) !important;
    color: var(--sa-primary-700) !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    text-decoration: none !important;
    border: 1px solid rgba(117, 79, 254, .12);
}

body.theme-saudi:not(.dark-theme) .sa-instructor-stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    background: var(--sa-primary-50);
    border: 1px solid rgba(117, 79, 254, .10);
    border-radius: 18px;
    padding: 18px 12px !important;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-stats .skill-point-1 {
    text-align: center;
    position: relative;
    padding: 4px 8px !important;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-stats .skill-point-1::after {
    display: none !important;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-stats .skill-point-1 h1 {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: var(--sa-primary) !important;
    margin: 0 0 4px !important;
    line-height: 1.1;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-stats .skill-point-1 h4 {
    font-size: 13px !important;
    font-weight: 650 !important;
    color: var(--sa-muted) !important;
    margin: 0 !important;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-courses-head {
    margin-top: 30px !important;
    margin-bottom: 14px !important;
    padding-bottom: 0 !important;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-courses {
    background: transparent !important;
    padding: 0 !important;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-courses .courses-card {
    margin-bottom: 0 !important;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-empty {
    text-align: center;
    padding: 36px 16px;
    border-radius: 16px;
    background: var(--sa-primary-50);
    color: var(--sa-muted);
    font-weight: 650;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-aside {
    position: sticky;
    top: 100px;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-contact {
    background: #fff !important;
    border: 1px solid rgba(117, 79, 254, .10) !important;
    border-radius: 24px !important;
    box-shadow: 0 12px 36px rgba(70, 51, 156, .08) !important;
    padding: 8px 0 18px !important;
    margin-bottom: 14px;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-contact .instructon-icon {
    align-items: flex-start;
    gap: 14px;
    margin: 0 18px !important;
    padding: 16px 0;
    border-bottom: 1px solid var(--sa-line) !important;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-contact .instructon-icon:last-of-type {
    border-bottom: none !important;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-contact .instructon-icon i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sa-primary-50);
    color: var(--sa-primary) !important;
    font-size: 16px !important;
    margin: 0 !important;
    flex-shrink: 0;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-contact .instructon-number h4 {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: var(--sa-muted) !important;
    margin: 0 0 4px !important;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-contact .instructon-number p {
    font-size: 14px !important;
    font-weight: 650 !important;
    color: var(--sa-ink) !important;
    margin: 0 !important;
    word-break: break-word;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-social {
    padding: 4px 14px 0;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-social .social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 12px;
    background: var(--sa-primary-50);
    border: 1px solid rgba(117, 79, 254, .12);
    color: var(--sa-ink) !important;
    text-decoration: none !important;
    font-size: 12.5px;
    font-weight: 650;
    transition: background .2s var(--sa-ease), color .2s var(--sa-ease);
}

body.theme-saudi:not(.dark-theme) .sa-instructor-social .social-btn:hover {
    background: var(--sa-primary);
    color: #fff !important;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-social .social-btn i {
    font-size: 14px;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-actions .btn,
body.theme-saudi:not(.dark-theme) .sa-instructor-aside .einsBtn .btn {
    border-radius: 14px !important;
    padding: 12px 16px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-actions .btn-primary {
    background: linear-gradient(135deg, var(--sa-primary), var(--sa-primary-700)) !important;
    border: 0 !important;
    box-shadow: 0 10px 22px rgba(117, 79, 254, .22);
}

body.theme-saudi:not(.dark-theme) .sa-instructor-aside .btn-fill {
    border-radius: 14px !important;
    border: 1.5px solid var(--sa-primary) !important;
    color: var(--sa-primary) !important;
    background: #fff !important;
}

body.theme-saudi:not(.dark-theme) .sa-instructor-aside .btn-fill:hover {
    background: var(--sa-primary) !important;
    color: #fff !important;
}

@media (max-width: 991.98px) {
    body.theme-saudi:not(.dark-theme) .sa-instructor-aside {
        position: static;
    }

    body.theme-saudi:not(.dark-theme) .sa-instructor-rating {
        text-align: start;
        margin-top: 16px !important;
    }

    body.theme-saudi:not(.dark-theme) .sa-instructor-rating .rating-point,
    body.theme-saudi:not(.dark-theme) .sa-instructor-badges {
        justify-content: flex-start !important;
    }
}

@media (max-width: 575.98px) {
    body.theme-saudi:not(.dark-theme) .sa-instructor-panel {
        padding: 20px 16px 22px !important;
        border-radius: 18px !important;
    }

    body.theme-saudi:not(.dark-theme) .sa-instructor-identity .pro-img img {
        width: 72px !important;
        height: 72px !important;
        border-radius: 16px !important;
    }

    body.theme-saudi:not(.dark-theme) .sa-instructor-identity .name h4 {
        font-size: 18px !important;
    }

    body.theme-saudi:not(.dark-theme) .sa-instructor-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    body.theme-saudi:not(.dark-theme) .sa-instructor-stats .skill-point-1 {
        padding: 10px !important;
        background: #fff;
        border-radius: 12px;
    }
}
