/* shared compact table action buttons (all panels) */
td [class*="action-buttons"],td .acts,td .action-btn,td .btn-group.actions{display:inline-flex!important;align-items:center;justify-content:center;gap:8px!important;flex-wrap:nowrap!important;width:auto!important}
td [class*="action-buttons"]>.btn,td [class*="action-buttons"]>button,td .acts>.ia,td .acts>.btn,td .action-btn>.btn,td>.btn.btn-sm,td>button.ia{width:30px!important;height:30px!important;min-width:30px!important;max-width:30px!important;padding:0!important;flex:0 0 30px!important;font-size:13px!important;line-height:1!important;display:inline-flex!important;align-items:center;justify-content:center;border-radius:8px!important;margin:0!important}
td [class*="action-buttons"] .btn i,td .acts .ia i{font-size:13px;margin:0}
td [class*="action-buttons"] .btn:not([title="تعديل"]):not([title="حذف"]):not([title="عرض"]):not([title="معاينة"]){width:auto!important;max-width:none!important;flex:0 0 auto!important;min-width:30px!important;padding:0 10px!important}
/* hero banner: original square card, any image fits without distortion */
.hero-section .hero-image,.hero-image{aspect-ratio:1/1!important;object-fit:contain!important;background:#fff!important;width:100%!important;height:auto!important}
.hx-card{display:block;background:#fff;border-radius:14px;box-shadow:0 4px 15px #0000001a;overflow:hidden;height:100%;color:inherit;text-decoration:none;transition:transform .2s}
.hx-card:hover{transform:translateY(-3px)}.hx-img{aspect-ratio:16/10;background:#f1f5f9;overflow:hidden}.hx-img img{width:100%;height:100%;object-fit:cover}
.hx-body{padding:14px 16px;text-align:right}.hx-body h4{font-size:1rem;font-weight:700;margin:0 0 6px}.hx-body p{color:#64748b;font-size:.88rem;margin:0 0 6px}.hx-price{font-weight:700;color:#1e1b4b}
.hx-quote .hx-body{padding:22px}.hx-quote p{font-size:.95rem;color:#334155}
.hx-menu{position:absolute;top:100%;inset-inline-end:0;z-index:50;background:#fff;border-radius:10px;box-shadow:0 6px 20px #0002;padding:6px;min-width:120px}.hx-menu button{display:block;width:100%;border:0;background:none;padding:7px 12px;text-align:right;border-radius:7px;font-size:.9rem}.hx-menu button.on,.hx-menu button:hover{background:#fff1f2}
html[dir=ltr] body{direction:ltr;text-align:left}html[dir=ltr] .hx-body,html[dir=ltr] .hx-menu button{text-align:left}

.acts-wrap{display:flex;flex-wrap:nowrap;gap:6px;align-items:center;justify-content:center;min-width:150px;max-width:none;margin:0 auto;white-space:nowrap}
td:has(>.acts-wrap){white-space:nowrap;min-width:max-content}
.acts-wrap>.btn,td .acts-wrap>.btn.btn-sm{margin:0!important;flex:0 0 auto!important;white-space:nowrap}
td .acts-wrap>.btn.btn-sm.btn-txt{width:auto!important;max-width:none!important;min-width:0!important;height:32px!important;padding:0 10px!important;gap:6px;font-size:12.5px!important}
td .acts-wrap>.btn.btn-sm:not(.btn-txt){width:32px!important;height:32px!important;min-width:32px!important;max-width:32px!important;padding:0!important}
td>.btn.btn-sm.btn-txt{width:auto!important;max-width:none!important;padding:0 10px!important;flex:0 0 auto!important}
.sidebar-nav>*,.nav-section-items,.nav-section-title{flex-shrink:0!important}
.nav-section-items{height:auto!important;min-height:max-content}
.msel.dd-panel{overflow-x:hidden!important;direction:rtl}
.msel.dd-panel>.form-check,.msel.dd-panel>label{display:flex!important;flex-direction:row;align-items:center;gap:10px;padding:8px 10px!important;margin:0!important;min-height:0;width:100%!important;text-align:right}
.msel.dd-panel .form-check-input,.msel.dd-panel input[type=checkbox]{float:none!important;margin:0!important;flex:0 0 auto;width:18px;height:18px;position:static!important}
.msel.dd-panel .form-check-label,.msel.dd-panel label span{margin:0;flex:1 1 auto;min-width:0;white-space:normal;word-break:break-word}
.msel-tools{flex-wrap:nowrap}.msel-tools input{min-width:0}
.f-bad{border-color:#dc2626!important;box-shadow:0 0 0 3px rgba(220,38,38,.18)!important}
.mask{z-index:100000!important}
.toast{z-index:100001!important}
.modal.show.d-block,.modal.fade.show{z-index:100000!important}
.modal-backdrop{z-index:99999!important}

/* student fallback pages (orders, courses, live, exams, library): self-contained styling */
.stu-fb{--g1:linear-gradient(135deg,#f43f5e,#1e1b4b);direction:rtl;font-family:Cairo,Tahoma,sans-serif;padding:8px 0 40px}
.stu-fb .container{max-width:1100px}
.stu-fb .stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin:0 0 22px}
.stu-fb .stat{background:#fff;border:1px solid #e5eaf1;border-radius:16px;padding:18px;box-shadow:0 1px 10px rgba(0,0,0,.05);display:flex;align-items:center;gap:14px}
.stu-fb .stat .si{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;font-size:24px;flex:none}
.stu-fb .stat b{font-size:26px;display:block;line-height:1.1;color:#0f172a}.stu-fb .stat small{color:#64748b;font-size:14px}
.stu-fb .c1{background:#ffe4e6}.stu-fb .c2{background:#fce7f3}.stu-fb .c3{background:#dcfce7}.stu-fb .c4{background:#ffe4e6}.stu-fb .c5{background:#fef3c7}
.stu-fb .panel{background:#fff;border:1px solid #e5eaf1;border-radius:16px;box-shadow:0 1px 10px rgba(0,0,0,.05);padding:18px;margin-bottom:20px;overflow-x:auto}
.stu-fb table.t{width:100%;border-collapse:collapse;font-size:14px;min-width:560px}
.stu-fb table.t th{background:#f1f5f9;color:#334155;text-align:right;padding:12px;font-weight:700;white-space:nowrap}
.stu-fb table.t td{padding:12px;border-bottom:1px solid #eef2f7;text-align:right;color:#0f172a}
.stu-fb table.t tr:last-child td{border-bottom:0}
.stu-fb .st{display:inline-block;padding:3px 12px;border-radius:20px;font-size:12px;font-weight:700}
.stu-fb .st.green{background:#dcfce7;color:#166534}.stu-fb .st.red{background:#fee2e2;color:#991b1b}.stu-fb .st.yellow{background:#fef3c7;color:#92400e}.stu-fb .st.blue{background:#ffe4e6;color:#be123c}.stu-fb .st.gray{background:#f1f5f9;color:#475569}
.stu-fb .grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px}
.stu-fb .card{background:#fff;border:1px solid #e5eaf1;border-radius:18px;box-shadow:0 2px 14px rgba(0,0,0,.06);overflow:hidden}
.stu-fb .card .img{height:120px;background:var(--g1);display:grid;place-items:center;color:#fff;font-size:40px}
.stu-fb .card .b{padding:16px}.stu-fb .card h3{margin:0 0 8px;font-size:18px;color:#0f172a}.stu-fb .card .m{color:#64748b;font-size:14px;margin-bottom:10px}
.stu-fb .price{font-weight:700;color:#1e1b4b;font-size:18px;margin-bottom:8px}
.stu-fb .empty{text-align:center;color:#64748b;padding:50px 20px;background:#fff;border-radius:18px;border:2px dashed #e2e8f0}.stu-fb .empty .e{font-size:44px}
.stu-fb .btn{display:inline-flex;align-items:center;gap:6px;border:2px solid transparent;border-radius:12px;padding:9px 20px;font-weight:700;font-size:15px;cursor:pointer;text-decoration:none;font-family:inherit}
.stu-fb .btn.pri{background:var(--g1);color:#fff}.stu-fb .btn.out{border-color:#f43f5e;color:#1e1b4b;background:#fff}.stu-fb .btn.sm{padding:6px 14px;font-size:13px;border-radius:9px}
.stu-fb .tbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
@media(max-width:600px){.stu-fb .stats{grid-template-columns:1fr 1fr}.stu-fb .stat{padding:12px;gap:8px}.stu-fb .stat b{font-size:20px}.stu-fb .grid{grid-template-columns:1fr}}

.tchf .modal-body .row.g-3 .form-control,.tchf .modal-body .row.g-3 .form-select{margin-bottom:0}
.tchf .expiry-wrap .btn{padding:3.2px 8px;font-size:.78rem;white-space:nowrap}.tchf .expiry-wrap .btn-secondary{background:#8b95a1;border-color:#8b95a1;color:#fff}
body>.modal.show.d-block{position:fixed;inset:0;z-index:1060;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);overflow-y:auto;display:block}
body>.modal.show.d-block .modal-dialog{max-width:800px;width:calc(100% - 1rem);margin:1.75rem auto;min-height:calc(100% - 3.5rem);display:flex;align-items:center}
body>.modal.show.d-block .modal-content{width:100%;background:#fff;border-radius:16px;border:0;overflow:hidden;box-shadow:0 20px 60px #0004}
body>.modal.show.d-block .modal-footer{display:flex;justify-content:flex-start;gap:.5rem;padding:1rem 1.5rem;border-top:1px solid #e9ecef;background:#f8f9fa}
body>.modal.show.d-block .modal-body{padding:2rem 2rem 1.5rem}
body>.modal.show.d-block .modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 2rem;background:linear-gradient(135deg,#3b0a2a,#e11d48);color:#fff}
body>.modal.show.d-block .modal-title{color:#fff;margin:0;font-size:1.25rem}

/* in-app (MasarApp user agent): no prices or purchase prompts */
.in-app .cta-price,.in-app [class*="store-price"],.in-app .store-pd-price-block,.in-app .store-pd-cta-primary,.in-app .fa-shopping-cart{display:none!important}
.in-app .app-links,.in-app .acc-del+.app-links{display:none!important}
.msel.dd-panel{flex-direction:column!important;flex-wrap:nowrap!important;overflow-y:auto!important;overflow-x:hidden!important;gap:0!important}
.msel.dd-panel>*{flex:0 0 auto!important;max-width:100%}

.hx-slider{position:relative;direction:rtl;padding:0 26px}
.hx-track{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:6px 4px 16px;direction:rtl}
.hx-track::-webkit-scrollbar{display:none}
.hx-track>div{flex:0 0 calc(33.333% - 14px)!important;max-width:calc(33.333% - 14px)!important;width:auto!important;padding:0!important;scroll-snap-align:start}
.hx-arr{position:absolute;top:42%;z-index:3;width:44px;height:44px;border-radius:50%;border:0;background:#fff;color:#1e1b4b;box-shadow:0 4px 14px rgba(0,0,0,.2);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:16px}
.hx-arr:hover{background:#f43f5e;color:#fff}.hx-arr:disabled{opacity:.35;cursor:default;background:#fff;color:#1e1b4b}
.hx-ar{right:-8px}.hx-al{left:-8px}
@media(max-width:991px){.hx-track>div{flex-basis:calc(50% - 10px)!important;max-width:calc(50% - 10px)!important}}
@media(max-width:575px){.hx-slider{padding:0}.hx-track>div{flex-basis:78%!important;max-width:78%!important}.hx-arr{display:none}}

.hx-cc .course-item{width:100%;margin:0}

.hx-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:24px;width:100%}

/* no blue tap flash / focus box on logo, links, buttons (mouse and touch); keyboard focus keeps its ring */
a,button,img,svg,label,[role="button"],.logo,.navbar-brand,.notification-button,.lang-btn,.cur-btn,.nav-item,.sidebar-link,.tool-card{-webkit-tap-highlight-color:transparent!important}
a:focus:not(:focus-visible),button:focus:not(:focus-visible),[role="button"]:focus:not(:focus-visible),img:focus,.logo:focus{outline:none!important}
a img,.logo img,.navbar-brand img,header img,.navbar img,.sidebar img{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}
a img::selection,header img::selection,.navbar img::selection,.logo::selection{background:transparent}
header a,.navbar a,.sidebar a,.logo,.navbar-brand,button{-webkit-user-select:none;user-select:none}
/* mobile drawer: open state + readable labels (app WebView) */
.mobile-menu{background:#fff!important;right:-110%!important;visibility:hidden}
.mobile-menu.open,.mobile-menu.active{right:0!important;visibility:visible}
.mobile-menu.open:before{background:#00000080;content:"";inset:0;position:fixed;z-index:-1}
.mobile-menu .mobile-nav-link,.mobile-menu a{color:#1e1b4b!important;opacity:1!important;font-size:1.1rem!important;font-weight:700!important;display:block;background:#f8fafc;margin:2px 0;-webkit-text-fill-color:#1e1b4b}
.mobile-menu a.router-link-active,.mobile-menu a.active{background:#f43f5e!important;color:#fff!important;-webkit-text-fill-color:#fff}
.mobile-menu .mobile-nav-link i,.mobile-menu a i,.mobile-menu a svg{color:inherit}
.mobile-menu-toggle .menu-icon,.mobile-menu-toggle span{--burger-line:#f43f5e!important;--burger-accent:#1e1b4b!important;--burger-highlight:#fbbf24!important}
.mobile-menu-toggle span{background:#1e1b4b}
.mobile-menu-toggle span.menu-icon{background:transparent}
.sidebar a,.sidebar-link,.sidebar .nav-item,aside a{opacity:1!important}
.login-logo{height:auto!important;width:auto!important;max-width:100%}
.welcome-logo,.login-logo img,.login-page .welcome-logo{height:150px!important;width:auto!important;max-width:80%!important;padding:.5rem!important;object-fit:contain}
.login-logo{display:flex!important;justify-content:center}
.logo-img.login-big{height:90px!important;width:90px!important}
#shr-btn{border:2px solid #f43f5e;background:#fff;color:#f43f5e;width:42px;height:42px;border-radius:12px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;margin-inline-start:8px;padding:0;-webkit-tap-highlight-color:transparent}
#shr-btn svg{width:20px;height:20px;fill:currentColor}
@media(max-width:991px){.sidebar{z-index:1000;background:#fff}.sidebar.active{transform:translate(0)!important}.sidebar.active{box-shadow:0 0 0 100vmax #00000059!important}}
.sidebar .sidebar-link,.sidebar .sidebar-link span,.sidebar a span,.sidebar .group-title,.sidebar .nav-group-title,.sidebar button{color:#1e1b4b!important;opacity:1!important;font-weight:600}
.sidebar .sidebar-link.active,.sidebar .sidebar-link.active span,.sidebar a.active,.sidebar a.active span,.sidebar a.router-link-active,.sidebar a.router-link-active span{color:#fff!important}
.ol-wrap{background:radial-gradient(circle at 20% 10%,#4c0519 0,#1a0b14 55%,#0a0509 100%)!important}
.ol-card{background:#1c1017!important}
.ol-card input:not([type=checkbox]){background:#2a1a22!important}
/* login: compact photo so the form fits one phone screen */
.login-page .login-logo{margin:0 0 .25rem!important;padding:0!important;height:auto!important}
.login-page .login-logo img,.login-page .login-logo{max-height:130px!important}
.login-page .login-logo img{height:130px!important;width:auto!important;max-width:60%!important;padding:0!important;margin:0 auto!important;display:block}
.login-page .login-header,.login-page .login-form-header{margin-bottom:.5rem!important}
@media(max-width:991px){
.login-page .form-side{padding-top:6px!important;padding-bottom:6px!important}
.login-page .login-card{padding:10px 20px!important}
.login-page .mobile-logo{margin-bottom:2px!important;height:auto!important;max-height:none!important}
.login-page .login-logo{height:auto!important}
.login-page .login-logo img,.login-page .mobile-logo img{height:120px!important;max-height:120px!important;max-width:50%!important}
.login-page .login-header{margin-bottom:0!important}
.login-page .login-header *{margin-bottom:4px!important}
.login-page .login-form>.mb-3{margin-bottom:8px!important}
.login-page .login-form>.mb-4{margin-bottom:10px!important}
.login-page .login-form>.d-flex{margin-bottom:12px!important}
}
/* featured courses slider */
.fc-track{gap:18px!important;padding:8px 4px 18px!important;align-items:stretch}
.fc-track>.fc-item{flex:0 0 calc(25% - 14px)!important;max-width:calc(25% - 14px)!important;width:auto!important;scroll-snap-align:start;display:flex!important;padding:0!important;min-width:0}
.fc-item .course-slide-card{width:100%;transform:none!important;filter:none!important}
.fc-item img{width:100%!important;height:auto!important;aspect-ratio:16/10;object-fit:cover!important;max-height:190px}
.fc-item .course-title{font-size:1rem!important}
@media(max-width:1199px){.fc-track>.fc-item{flex-basis:calc(33.333% - 12px)!important;max-width:calc(33.333% - 12px)!important}}
@media(max-width:767px){.fc-slider{padding:0 6px!important}.fc-track>.fc-item{flex-basis:78%!important;max-width:78%!important}.fc-slider .hx-arr{display:none}}
.fc-slider.fc-fit .hx-arr{display:none}
/* bootstrap blue -> coral/navy everywhere */
:root{--bs-primary:#f43f5e;--bs-primary-rgb:244,63,94;--bs-link-color:#f43f5e;--bs-link-color-rgb:244,63,94;--bs-link-hover-color:#be123c;--bs-info:#fbbf24;--bs-info-rgb:251,191,36}
.bg-primary,.badge.bg-primary,.btn-primary,.btn-primary:hover,.btn-primary:focus{background-color:#f43f5e!important;border-color:#f43f5e!important;color:#fff!important}
.text-primary,.link-primary{color:#f43f5e!important}
.border-primary{border-color:#f43f5e!important}
.btn-outline-primary{color:#f43f5e!important;border-color:#f43f5e!important}
.btn-outline-primary:hover{background:#f43f5e!important;color:#fff!important}
.form-control:focus,.form-select:focus{border-color:#f43f5e!important;box-shadow:0 0 0 .2rem #f43f5e33!important}
a{-webkit-tap-highlight-color:transparent}
/* fullscreen player */
.pvid:fullscreen,.pvid:-webkit-full-screen,.pvid.pfs{display:flex!important;flex-direction:column;width:100vw!important;height:100vh!important;max-width:none!important;background:#000;border-radius:0!important}
.pvid.pfs{position:fixed;inset:0;z-index:99999}
.pvid:fullscreen video,.pvid:-webkit-full-screen video,.pvid.pfs video{flex:1 1 auto;min-height:0;max-height:none!important;height:100%!important;object-fit:contain}
.pvid:fullscreen .pvid-bar,.pvid.pfs .pvid-bar{height:44px!important;flex:0 0 44px}
.pvid:fullscreen .pvid-fs,.pvid.pfs .pvid-fs{font-size:22px;width:56px;height:40px;color:#fff!important}
.pl-pdf.pfs{position:fixed;inset:0;z-index:99999;background:#fff;margin:0!important;padding:8px}
.pl-pdf:fullscreen{background:#fff;padding:8px}
/* pdf lightbox */
.pdfv-pct,[data-zoom]{display:none!important}
.pdfv-page{cursor:zoom-in}
.pdflb{position:fixed;inset:0;z-index:100000;background:#050505;display:flex;align-items:center;justify-content:center;touch-action:pan-y}
.pdflb-stage{width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:56px 64px 40px}
.pdflb-page{position:relative;max-width:100%;max-height:100%;display:flex;background:#fff;box-shadow:0 8px 40px rgba(0,0,0,.6)}
.pdflb-page canvas{display:block;max-width:100%;max-height:calc(100vh - 100px);width:auto;height:auto;object-fit:contain}
.pdflb-page .wm,.pdflb-page>div{position:absolute;inset:0;pointer-events:none}
.pdflb-x{position:absolute;top:12px;right:14px;z-index:2;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.18);color:#fff;font-size:22px;cursor:pointer}
.pdflb-n{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:48px;height:64px;border:0;border-radius:10px;background:rgba(255,255,255,.18);color:#fff;font-size:40px;line-height:1;cursor:pointer}
.pdflb-next{right:10px}.pdflb-prev{left:10px}
.pdflb-cnt{position:absolute;bottom:10px;left:0;right:0;text-align:center;color:#fff;font-size:14px}
@media(max-width:600px){.pdflb-stage{padding:56px 6px 40px}.pdflb-n{width:38px;height:52px;font-size:32px}}
.pvid:not(:fullscreen):not(.pfs) video{max-height:min(56vh,420px)}
/* clearer video fullscreen icon */
.pvid-bar .pvid-fs{color:#fff!important;font-size:24px!important;width:44px;height:32px;opacity:1!important;font-weight:700;text-shadow:0 0 3px #000;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.14);border-radius:8px}
.pvid-bar .pvid-fs:hover{background:rgba(255,255,255,.28)}
.pvid-bar{height:36px!important}
/* login photo centered */
.ol-logo{display:flex!important;justify-content:center!important;align-items:center;text-align:center;width:100%}
.ol-logo img{margin:0 auto!important;display:block}
.mobile-logo{display:flex!important;justify-content:center!important;width:100%}
.mobile-logo img{margin-left:auto!important;margin-right:auto!important}
/* Permanent coral/navy palette also covers product and order detail headers. */
.pdm .pdm-h{background:linear-gradient(135deg,#1e1b4b,#f43f5e)!important}

.ord-panel{overflow-x:auto!important;-webkit-overflow-scrolling:touch}.ord-panel table.t{min-width:620px}.ord-panel table.t td{white-space:nowrap}
/* Readable list controls on small screens, with RTL previous / next order. */
.pagination,.pg{flex-wrap:wrap!important;gap:4px!important;max-width:100%;padding-inline:0!important}
.pagination .page-link{white-space:nowrap;padding:7px 10px!important}
.pagination button:disabled{pointer-events:none;opacity:.45}
html[lang=en] .ui-en [dir=rtl]:not([data-noi18n]){direction:ltr}
html[lang=en] .ui-en .sidebar,html[lang=en] .ui-en .section-card{text-align:start}
html[lang=en] .ui-en input[type=tel],html[lang=en] .ui-en input[type=email]{direction:ltr}
html[lang=en] #sth,html[lang=en] #sx{direction:ltr}

/* b22: footer store cards - one size for all four (App Store / Google Play / macOS / Windows) */
.footer-app-badges .app-store-badges-row{gap:.625rem !important;justify-content:center !important}
.footer-app-badges .desktop-download-link{width:134px !important;height:44px !important;border-radius:8px !important;gap:.5rem !important;padding:0 .6rem !important;justify-content:flex-start !important}
.footer-app-badges .desktop-download-link i{flex:0 0 1.45rem !important;font-size:1.35rem !important;line-height:1 !important}
.footer-app-badges .desktop-download-copy small{font-size:.5rem !important;line-height:1.15 !important;display:block !important}
.footer-app-badges .desktop-download-copy strong{font-size:.88rem !important;line-height:1.2 !important;display:block !important}
.footer-app-badges .desktop-download-link.is-soon{opacity:.86}
.footer-app-badges .desktop-download-link.is-soon:hover{opacity:1}
/* Owner content editors: keep actions reachable on small screens. */
@media(max-width:760px){
[data-tour="section-features"],[data-tour="section-testimonials"]{min-width:0!important;max-width:100%!important;overflow:hidden}
[data-tour="section-features"] .section-info-banner,[data-tour="section-testimonials"] .section-info-banner{flex-wrap:wrap;gap:12px}
[data-tour="f-feat-table"],[data-tour="f-test-table"]{max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
[data-tour="f-feat-table"] table{min-width:680px}[data-tour="f-test-table"] table{min-width:560px}
}
@media(max-width:760px){
[data-tour="section-features"] .section-info-banner,[data-tour="section-testimonials"] .section-info-banner{display:block!important;padding:16px!important}
[data-tour="section-features"] .section-info-banner>i,[data-tour="section-testimonials"] .section-info-banner>i{display:none!important}
[data-tour="f-feat-add"],[data-tour="f-test-add"]{display:inline-block!important;position:static!important;margin:12px 0 0!important;max-width:100%;transform:none!important}
.editor-main{min-width:0!important;max-width:100%!important}.editor-main>.section-card{max-width:100%!important;box-sizing:border-box}
}

html{background:#fff;scrollbar-gutter:stable}
/* modal dropdowns match platform fields (font, border, radius, focus ring) instead of browser-default blue */
.mask select,.modal select,.modal-content select{font-family:inherit;font-size:15px;width:100%;padding:10px 14px;border:2px solid #e5e7eb;border-radius:12px;background:#fff;color:#1f2937;outline:0;max-width:100%}
.mask select:focus,.modal select:focus,.modal-content select:focus{border-color:#f43f5e}
.mask select option,.modal select option,.modal-content select option{font-family:inherit;color:#1f2937;background:#fff}

/* navbar stability: reserve scrollbar gutter so the bar never shifts horizontally */
html{scrollbar-gutter:stable;overflow-y:scroll}

/* top bar stays fully inside the screen on narrow phones (share button + currency label) */
.navbar-content{min-width:0}
.navbar-brand{min-width:0;flex:0 1 auto;overflow:hidden}
.navbar-brand .brand-wrapper{min-width:0;overflow:hidden}
.navbar-mobile-tools,.navbar-actions{min-width:0;flex:0 1 auto}
@media(max-width:575px){
  .navbar-content{padding:0 .6rem!important;gap:.5rem!important}
  .navbar-mobile-tools{gap:4px!important}
  #shr-btn{width:42px!important;height:42px!important;margin-inline-start:2px!important;border-radius:12px!important}
  #shr-btn svg{width:20px!important;height:20px!important}
  .navbar-mobile-tools .cur-btn,.navbar-mobile-tools .lang-btn,.navbar-actions .cur-btn,.navbar-actions .lang-btn{padding:0 5px!important;min-width:0!important;font-size:.78rem!important}
}
html{overflow-y:scroll!important;scrollbar-gutter:stable!important}

/* ===== unified top bar (public / student / owner / teacher): same height, columns, link size and position ===== */
html,body{overflow-x:clip!important}
body{overflow-y:visible!important}
.modern-navbar,.teacher-navbar{height:68px;padding:0!important;display:flex!important;align-items:center;position:sticky!important;top:0;z-index:1000}
.modern-navbar>.navbar-container,.teacher-navbar>.navbar-container{width:100%;max-width:100%!important;margin:0!important;padding:0 1.5rem!important}
.modern-navbar .navbar-content,.teacher-navbar>.navbar-container{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px}
.modern-navbar .navbar-content{padding:0!important;max-width:100%}
.modern-navbar .navbar-brand,.teacher-navbar .navbar-brand{justify-self:start}
.modern-navbar .nav-links-desktop,.teacher-navbar .tch-toplinks{justify-self:center;display:flex;align-items:center;gap:6px!important;white-space:nowrap;margin:0!important}
.modern-navbar .nav-actions,.modern-navbar .user-dropdown-wrapper,.teacher-navbar .navbar-actions{justify-self:end}
.modern-navbar .nav-links-desktop .nav-link,.teacher-navbar .tch-toplink{font-size:15px!important;font-weight:700!important;padding:8px 14px!important;border-radius:10px;display:inline-flex!important;align-items:center;gap:0;line-height:1.5;color:#1e1b4b;text-decoration:none;margin:0!important;border:0!important}
.modern-navbar .nav-links-desktop .nav-link i{display:none!important}
.modern-navbar .nav-links-desktop .nav-link.router-link-active,.teacher-navbar .tch-toplink.active{background:#f43f5e14;color:#be123c}
.modern-navbar .own-right{display:flex;align-items:center;gap:6px;justify-self:start;min-width:0}
.modern-navbar .own-userbox{display:flex;align-items:center;gap:8px}
@media (max-width:991px){.modern-navbar .navbar-content{display:flex!important}.modern-navbar .own-userbox{display:none}.modern-navbar .own-right{margin-inline-end:auto}}
.dashboard-layout>.header{position:sticky;top:0;z-index:1000}
.modern-navbar .nav-actions{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
.modern-navbar .nav-actions .btn-login,.modern-navbar .nav-actions .btn-register{white-space:nowrap;padding:8px 14px!important;font-size:14px!important;line-height:1.4;margin:0!important;display:inline-flex;align-items:center;gap:6px}
@media (min-width:992px) and (max-width:1199px){.modern-navbar .nav-actions .btn-login,.modern-navbar .nav-actions .btn-register{font-size:0!important;padding:9px 12px!important;gap:0}.modern-navbar .nav-actions .btn-login i,.modern-navbar .nav-actions .btn-register i,.modern-navbar .nav-actions .btn-login svg,.modern-navbar .nav-actions .btn-register svg{font-size:16px}}

/* teacher cards (home / teachers section) */
.tc3-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:26px;direction:rtl}
.tc3{position:relative;border-radius:30px;background:#fff;overflow:hidden;cursor:pointer;box-shadow:0 2px 4px #1e1b4b0d,0 22px 48px -14px #1e1b4b3d;transition:transform .45s cubic-bezier(.2,.8,.2,1),box-shadow .45s;border:1px solid #f3e8ec;outline:0;text-align:right}
.tc3:hover,.tc3:focus-visible{transform:translateY(-8px);box-shadow:0 34px 60px -16px #f43f5e50}
.tc3-top{position:relative;height:290px;background:linear-gradient(135deg,#1e1b4b 0%,#4c1d95 45%,#f43f5e 100%);clip-path:polygon(0 0,100% 0,100% 82%,0 100%)}
.tc3-top:before{content:"";position:absolute;width:250px;height:250px;border-radius:50%;background:radial-gradient(circle,#fbbf24 0,#fbbf2400 70%);top:18px;left:50%;transform:translateX(-50%);opacity:.55}
.tc3-ring{position:absolute;width:220px;height:220px;border-radius:50%;border:2px dashed #ffffff55;top:30px;left:50%;transform:translateX(-50%);transition:transform .8s}
.tc3:hover .tc3-ring{transform:translateX(-50%) rotate(40deg)}
.tc3-top img{position:absolute;bottom:0;left:50%;transform:translateX(-50%);height:280px;width:auto;max-width:92%;object-fit:contain;object-position:bottom;filter:drop-shadow(0 14px 22px #0006);transition:transform .6s}
.tc3:hover .tc3-top img{transform:translateX(-50%) scale(1.04)}
.tc3-ph{position:absolute;left:50%;bottom:34px;transform:translateX(-50%);width:150px;height:150px;border-radius:50%;background:#ffffff26;border:2px solid #ffffff66;display:grid;place-items:center;color:#ffffffcc}
.tc3-ph svg{width:88px;height:88px}
.tc3-body{padding:0 22px 22px;margin-top:-22px;position:relative}
.tc3-name{margin:0;font-size:26px;font-weight:900;color:#1e1b4b;line-height:1.4;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-align:right}
.tc3-ul{width:56px;height:5px;border-radius:5px;background:linear-gradient(90deg,#f43f5e,#fbbf24);margin:9px 0 12px}
.tc3-tags{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.tc3-tags>span{font-weight:800;font-size:15px;border-radius:12px;padding:6px 13px;line-height:1.5}
.tc3-tags .a{background:#ffe4e9;color:#be123c}.tc3-tags .b{background:#fef3c7;color:#92400e}
.tc3-en{unicode-bidi:isolate;display:inline-block}.tc3-en[dir=ltr]{direction:ltr}
.tc3 p{margin:0 0 16px;color:#64748b;font-size:15px;line-height:1.8;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tc3-btn{display:flex;align-items:center;justify-content:center;border:2px solid #1e1b4b;color:#1e1b4b;padding:10px;border-radius:16px;font-weight:900;font-size:16px;transition:.3s}
.tc3:hover .tc3-btn,.tc3:focus-visible .tc3-btn{background:#1e1b4b;color:#fff}
@media (max-width:575px){.tc3-grid{grid-template-columns:1fr;gap:20px}.tc3-top{height:260px}.tc3-top img{height:250px}}
@media (max-width:991px){.modern-navbar .nav-links-desktop{display:none!important}.modern-navbar .nav-actions{display:none}}
/* --- missing image: clean placeholder instead of a broken icon --- */
.img-missing{background:linear-gradient(135deg,#f7f8fa,#eceff4)!important;position:relative}
.img-missing::after{content:"\f15c";font-family:"Font Awesome 6 Free","Font Awesome 5 Free";font-weight:900;position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#c6ccd8;font-size:30px;pointer-events:none}
/* --- teacher mobile header: keep the logo/user block clear of the bell (no overlap) --- */
@media (max-width:767px){
  .teacher-navbar>.navbar-container{display:flex!important;align-items:center;justify-content:space-between;gap:8px;padding:0 .75rem!important}
  .teacher-navbar .navbar-brand{flex:0 0 auto;margin:0!important;min-width:0}
  .teacher-navbar .navbar-actions{flex:0 0 auto;margin:0!important}
}
/* more than four public links (live sessions / store switched on): tighter spacing so the bar never overlaps */
@media (min-width:992px) and (max-width:1500px){.modern-navbar .nav-links-desktop:has(.nav-link:nth-child(5)) .nav-link{font-size:13.5px!important;padding:8px 8px!important}.modern-navbar .nav-links-desktop:has(.nav-link:nth-child(5)){gap:0!important}}

/* stable header: reserve the scrollbar gutter on public pages so short and long pages lay out identically */
html:has(.modern-navbar){scrollbar-gutter:stable}

/* student mobile: top tab strip scrolls instead of squeezing/clipping labels; floating chat button clears the bottom nav */
@media(max-width:900px){
.mobile-nav-tabs{overflow-x:auto!important;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none;justify-content:flex-start!important}
.mobile-nav-tabs::-webkit-scrollbar{display:none}
.mobile-nav-tabs .mobile-nav-tab{flex:1 1 0!important;min-width:0;padding-inline:.15rem!important;white-space:normal}
.mobile-nav-tabs .mobile-nav-tab span{display:block!important;-webkit-line-clamp:unset!important;overflow:visible!important;word-break:normal!important;overflow-wrap:normal!important;white-space:normal;text-align:center}
body:has(#sbn) .mobile-nav-tabs a[href="/user/live-sessions"],body:has(#sbn) .mobile-nav-tabs a[href="/user/store/library"],body:has(#sbn) .mobile-nav-tabs a[href="/user/tools"]{display:none!important}
body:has(#sbn) .floating-contacts{bottom:calc(76px + env(safe-area-inset-bottom))!important}
}

/* mid-width desktop header: side columns size to their content so nav links never overlap the action buttons */
@media(min-width:1200px) and (max-width:1339px){
.modern-navbar .navbar-content{grid-template-columns:auto minmax(0,1fr) auto!important}
}

/* menu button: filled brand gradient square with three white bars (same size as the globe/bell/share buttons) */
.mobile-menu-toggle{width:42px!important;height:42px!important;min-width:42px;padding:0!important;border:0!important;border-radius:12px!important;background:linear-gradient(135deg,#f43f5e,#1e1b4b)!important;display:inline-flex!important;align-items:center;justify-content:center;position:relative;box-shadow:none}
.mobile-menu-toggle>*{display:none!important}
.mobile-menu-toggle::before{content:"";display:block;width:20px;height:16px;background:linear-gradient(#fff,#fff) top/100% 2.6px no-repeat,linear-gradient(#fff,#fff) center/100% 2.6px no-repeat,linear-gradient(#fff,#fff) bottom/100% 2.6px no-repeat;border-radius:2px}
/* currency button hidden for now (payment is by WhatsApp only). To restore the currency switcher, delete the next rule. */
.cur-switcher,.cur-btn{display:none!important}
