@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');
:root{--navy:#101b3d;--blue:#3568e8;--ink:#16213d;--muted:#77829a;--line:#e9edf5;--bg:#f5f7fb;--green:#17a673;--red:#e05252;--orange:#d9822b}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Cairo,Tahoma,Arial,sans-serif;font-size:14px}.app-shell{min-height:100vh;display:flex}.sidebar{width:258px;background:linear-gradient(180deg,#111d43 0%,#162655 100%);color:#fff;display:flex;flex-direction:column;padding:25px 17px;position:fixed;inset:0 auto 0 0;z-index:4}.brand{display:flex;align-items:center;gap:12px;padding:5px 10px 34px}.brand-mark{width:40px;height:40px;border-radius:12px;display:inline-grid;place-items:center;background:linear-gradient(135deg,#6f9cff,#3258d9);font-size:12px;font-weight:800;color:#fff;box-shadow:0 8px 18px #0003}.brand strong{display:block;font-size:15px;letter-spacing:.2px}.brand small{display:block;color:#aebbe2;font-size:11px;margin-top:2px}.side-nav{display:grid;gap:8px}.side-nav a,.side-footer a{color:#b8c5e5;text-decoration:none;padding:13px 14px;border-radius:11px;display:flex;align-items:center;gap:12px;transition:.2s}.side-nav a:hover,.side-nav a.active{background:#ffffff16;color:#fff}.side-nav a.active{box-shadow:inset -3px 0 #79a0ff}.side-footer{margin-top:auto;border-top:1px solid #ffffff15;padding-top:15px}.main-area{margin-left:258px;min-width:0;flex:1}.mobile-top{display:none}.container{max-width:1320px;margin:0 auto;padding:45px 40px}.narrow{max-width:820px}.head,.section-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.eyebrow{color:var(--blue);font-weight:700;font-size:12px;margin-bottom:5px}.head h1{font-size:30px;line-height:1.2;margin:0 0 7px;font-weight:800;letter-spacing:-.5px}.head h2,.section-title h2,.table-toolbar h2{margin:0;font-size:18px}.card,.stat{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 10px 30px #27385b08;padding:25px}.stats{display:grid;grid-template-columns:repeat(5,1fr);gap:18px;margin:22px 0}.stat{position:relative;overflow:hidden}.stat:after{content:'';position:absolute;width:65px;height:65px;border-radius:50%;background:#3568e810;left:-15px;bottom:-20px}.stat span{display:block;color:var(--muted);font-size:13px}.stat b{display:block;font-size:32px;margin-top:10px;color:var(--blue)}.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:10px;padding:12px 18px;text-decoration:none;cursor:pointer;font-weight:700;font-family:inherit;transition:.2s}.btn:hover{transform:translateY(-1px);filter:brightness(.98)}.primary{background:linear-gradient(135deg,#4075f0,#2859d7);color:#fff;box-shadow:0 8px 16px #3568e82e}.table-card{padding:0;overflow:hidden}.table-toolbar{display:flex;align-items:center;justify-content:space-between;padding:24px 26px;border-bottom:1px solid var(--line)}.table-toolbar h2{margin-bottom:3px}.legend{display:flex;gap:18px;color:var(--muted);font-size:12px}.legend span{display:flex;align-items:center;gap:6px}.dot{width:7px;height:7px;border-radius:50%;display:inline-block}.dot.green{background:#20b77b}.dot.red{background:#e05252}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:900px}th,td{text-align:right;padding:16px 24px;border-bottom:1px solid #f0f2f7;white-space:nowrap}th{color:#8993a8;font-size:11px;font-weight:700;background:#fbfcfe}tr:last-child td{border-bottom:0}tr:hover td{background:#fbfcff}.client-cell{display:flex;align-items:center;gap:11px}.client-cell strong{display:block;font-size:13px}.client-cell small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.avatar{width:36px;height:36px;border-radius:11px;background:#e9efff;color:#3568e8;display:grid;place-items:center;font-size:13px;font-weight:800}.date-range{display:flex;align-items:center;gap:7px;color:#69758b;font-size:11px}.date-range b{color:#bcc4d2}.badge{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:20px;font-size:11px;font-weight:700}.status-dot{width:6px;height:6px;border-radius:50%;background:currentColor}.badge.active{background:#e4f8ef;color:#12835b}.badge.suspended{background:#ffebeb;color:#c53b3b}.badge.expired{background:#fff1df;color:#b86b18}.badge.installing{background:#e7edff;color:#3e60c1}.badge.failed{background:#ffebeb;color:#b92d2d}.actions{display:flex;align-items:center;gap:7px}.action-btn{font-family:inherit;font-size:11px;font-weight:700;border:1px solid transparent;border-radius:8px;padding:7px 10px;text-decoration:none;cursor:pointer;background:#fff}.action-btn.renew{background:#eef3ff;color:#315fcf}.action-btn.suspend{background:#fff0f0;color:#c34141}.action-btn.activate{background:#e6f8ef;color:#168159}.inline{display:inline}.muted{color:var(--muted)}code{color:#69758b;background:#f4f6fa;padding:3px 7px;border-radius:6px;font-family:monospace;font-size:11px}.alert{padding:13px 16px;border-radius:11px;margin-bottom:20px}.success{background:#e4f8ef;color:#137b57}.danger{background:#ffebeb;color:#ae3636}.empty{text-align:center!important;padding:55px;color:var(--muted)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}label{display:block;font-size:13px;font-weight:700}input{display:block;width:100%;margin-top:7px;padding:12px 13px;border:1px solid #dce2ed;border-radius:9px;font-size:14px;font-family:inherit;background:#fff;outline:none;transition:.2s}input:focus{border-color:#6b91f0;box-shadow:0 0 0 3px #3568e815}.full{grid-column:1/-1}.link-btn{color:#2458c9;background:none;border:0;cursor:pointer;text-decoration:none;font-family:inherit}.auth{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#eef3ff,#f7f9fc)}.auth-card{width:min(420px,calc(100% - 30px))}.auth-card h1{margin-top:0}@media(max-width:900px){.sidebar{width:220px}.main-area{margin-left:220px}.container{padding:32px 22px}.stats{grid-template-columns:1fr 1fr}}@media(max-width:650px){.sidebar{display:none}.main-area{margin-left:0}.mobile-top{height:64px;background:var(--navy);color:#fff;display:flex;align-items:center;gap:10px;padding:0 18px}.mobile-top .brand-mark{width:32px;height:32px;border-radius:9px}.mobile-top a{margin-left:auto;color:#cbd7f6;text-decoration:none;font-size:12px}.container{padding:25px 15px}.head{align-items:flex-start;flex-direction:column;margin-bottom:22px}.head h1{font-size:25px}.stats{grid-template-columns:1fr 1fr;gap:10px}.stat{padding:17px}.stat b{font-size:26px}.table-toolbar{padding:18px}.legend{display:none}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}}

.presence{display:flex;align-items:center;gap:6px;font-weight:700;font-size:11px}.presence i{width:7px;height:7px;border-radius:50%;display:inline-block}.presence.online{color:#12835b}.presence.online i{background:#19b879;box-shadow:0 0 0 4px #19b87920}.presence.offline{color:#9099aa}.presence.offline i{background:#b8bfca}.last-seen{display:block;color:#9aa3b4;font-size:10px;margin-top:4px}

.landing{min-height:100vh;background:radial-gradient(circle at 85% 10%,#e6edff 0,#f6f8fd 36%,#f7f9fc 100%);display:flex;flex-direction:column}.landing-nav{height:78px;display:flex;align-items:center;justify-content:space-between;padding:0 7%;border-bottom:1px solid #e4eaf5;background:#ffffffb8;backdrop-filter:blur(12px)}.landing-brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink)}.landing-brand strong{display:block;font-size:15px}.landing-brand small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.admin-login{display:inline-flex;align-items:center;gap:10px;border:1px solid #dce4f3;border-radius:10px;padding:9px 14px;color:#315fcf;text-decoration:none;background:#fff;font-size:12px;font-weight:700}.admin-login span{font-size:17px}.landing-main{width:min(1050px,calc(100% - 34px));margin:0 auto;flex:1;padding:34px 0 50px}.hero{text-align:center;margin-bottom:38px}.hero-kicker{color:var(--blue);font-size:12px;font-weight:800;background:#e7edff;border-radius:20px;padding:7px 13px}.hero h1{font-size:37px;margin:22px 0 10px;letter-spacing:-.7px}.hero p{margin:0;color:var(--muted);font-size:15px}.teacher-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.teacher-card{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid #e5eaf4;border-radius:17px;padding:19px 20px;text-decoration:none;color:var(--ink);box-shadow:0 12px 30px #263b5d0a;transition:.22s}.teacher-card:hover{transform:translateY(-3px);border-color:#aac0fb;box-shadow:0 15px 35px #3568e81c}.teacher-avatar{width:47px;height:47px;border-radius:14px;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,#e8eeff,#d8e2ff);color:#3568e8;font-weight:800;font-size:18px}.teacher-avatar img{width:100%;height:100%;display:block;object-fit:cover}.teacher-avatar-fallback{display:grid;place-items:center;width:100%;height:100%}.teacher-avatar-fallback[hidden]{display:none}.teacher-avatar-fallback svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.teacher-info{flex:1}.teacher-info strong{display:block;font-size:16px}.teacher-info small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.login-arrow{color:#3568e8;font-size:12px;font-weight:800}.login-arrow b{font-size:18px;margin-right:5px}.empty-landing{grid-column:1/-1;text-align:center;background:#fff;border:1px dashed #ccd6e8;border-radius:18px;padding:50px;color:var(--muted)}.empty-icon{font-size:35px;color:#9aace0}.empty-landing h2{color:var(--ink);font-size:19px}.landing-footer{text-align:center;padding:20px;color:#9aa5b9;font-size:11px;border-top:1px solid #e8edf5}@media(max-width:650px){.landing-nav{padding:0 18px;height:70px}.admin-login{padding:8px 10px}.admin-login span{display:none}.landing-main{padding-top:50px}.hero h1{font-size:29px}.hero p{font-size:13px;line-height:1.8}.teacher-grid{grid-template-columns:1fr}.teacher-card{padding:16px}.landing-brand .brand-mark{width:34px;height:34px}}

select{display:block;width:100%;margin-top:7px;padding:12px 13px;border:1px solid #dce2ed;border-radius:9px;font-size:14px;font-family:inherit;background:#fff}.city-add{display:flex;align-items:center;gap:10px}.city-add input{width:220px;margin:0}.city-count{display:inline-grid;place-items:center;min-width:30px;height:30px;border-radius:9px;background:#eaf0ff;color:#315fcf;font-weight:800}@media(max-width:650px){.city-add{width:100%}.city-add input{flex:1}}

.billing-preview{display:flex;align-items:center;justify-content:space-between;background:#f4f7ff;color:#315fcf;border:1px dashed #b8c8f5}.billing-preview strong{font-size:22px}.payment-total{padding:13px 18px;min-width:190px}.payment-total span,.payment-total strong{display:block}.payment-total strong{color:#315fcf;font-size:20px;margin-top:4px}.amount-positive{color:#12835b}
select{display:block;width:100%;min-height:45px;margin-top:7px;padding:12px 38px 12px 13px;border:1px solid #dce2ed;border-radius:9px;font-size:14px;line-height:1.4;font-family:inherit;color:var(--ink);background-color:#fff;background-image:linear-gradient(45deg,transparent 50%,#7d8aa4 50%),linear-gradient(135deg,#7d8aa4 50%,transparent 50%);background-position:calc(100% - 18px) 54%,calc(100% - 12px) 54%;background-size:6px 6px,6px 6px;background-repeat:no-repeat;direction:rtl;cursor:pointer;appearance:none;-webkit-appearance:none;outline:none;transition:.2s}select:hover{border-color:#aebbd2}select:focus{border-color:#6b91f0;box-shadow:0 0 0 3px #3568e815;outline:none}select:disabled{background-color:#f1f3f7;color:#98a1b2;cursor:not-allowed}select option{font-family:Cairo,Tahoma,Arial,sans-serif;background:#fff;color:var(--ink);padding:10px}select option:checked{background:#e7edff;color:#2458c9}
.action-btn.delete{background:#ffe8e8;color:#b52f3b;border-color:#ffd0d0}.action-btn.delete:hover{background:#ffdede}

/* RTL layout and responsive sidebar */
html,body{direction:rtl}body{text-align:right}.sidebar{right:0;left:auto}.main-area{margin-left:0;margin-right:258px}.mobile-top{direction:rtl}.sidebar-toggle{display:none;border:1px solid #ffffff30;background:#ffffff14;color:#fff;border-radius:9px;width:38px;height:38px;font-size:22px;line-height:1;cursor:pointer;font-family:inherit}.sidebar-toggle:focus{outline:2px solid #9bb7ff;outline-offset:2px}
@media(max-width:900px){.main-area{margin-left:0;margin-right:220px}}
@media(max-width:650px){.main-area{margin:0}.mobile-top{display:flex;position:relative;z-index:3}.sidebar-toggle{display:inline-grid;place-items:center;flex:0 0 auto}.sidebar{display:flex;right:0;left:auto;transform:translateX(105%);transition:transform .25s ease;box-shadow:-12px 0 30px #111d4330;z-index:10}.app-shell.sidebar-open .sidebar{transform:translateX(0)}.app-shell.sidebar-open:after{content:'';position:fixed;inset:0;background:#101b3d66;z-index:5}.mobile-top strong{white-space:nowrap}.mobile-top .brand-mark{margin-right:0}.mobile-top a{margin-right:auto;margin-left:0}}
.checkbox-label{display:block;margin-top:8px;color:var(--muted);font-size:12px;font-weight:600}.checkbox-label input{display:inline-block;width:auto;margin:0 0 0 6px;vertical-align:middle}

.landing-search{max-width:620px;margin:0 auto 22px}.landing-search input{margin:0;border:1px solid #dce4f3;box-shadow:0 8px 22px #263b5d0a}.teacher-card[hidden]{display:none}.open-system{background:#e7f8f0;color:#14805a}

.filter-bar{display:grid;grid-template-columns:minmax(220px,2fr) repeat(2,minmax(150px,1fr)) auto;align-items:end;gap:14px;padding:18px 24px;border-bottom:1px solid var(--line)}.filter-bar label{font-size:12px}.filter-bar input,.filter-bar select{margin-top:6px}.filter-actions{display:flex;align-items:center;gap:8px;white-space:nowrap;padding-bottom:1px}@media(max-width:900px){.filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.filter-bar{grid-template-columns:1fr;padding:16px}.filter-actions{flex-wrap:wrap}}

.head-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.head-actions form{display:inline-flex;margin:0}.head-actions .compact-update-btn{padding:7px 10px;min-height:34px;gap:5px;border-radius:8px;font-size:12px}.head-actions .compact-update-btn .ui-icon{width:13px;height:13px}.btn.update-template{background:#fff4df;color:#805813;border:1px solid #f0ddb2;box-shadow:none}.btn.update-template:hover{background:#ffedc8}.alert.warning{background:#fff7e3;color:#805813;border:1px solid #f1dfb6}.details-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.detail-item{min-width:0;padding:14px 15px;border:1px solid #edf0f6;border-radius:12px;background:#fbfcfe}.detail-item>span{display:block;color:var(--muted);font-size:11px;margin-bottom:7px}.detail-item>strong{display:block;overflow-wrap:anywhere;font-size:13px}.detail-card{margin-top:20px}.detail-alert{margin:18px 0 0}.card>.section-title{margin-bottom:17px}@media(max-width:900px){.details-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.head-actions{width:100%}.head-actions form,.head-actions>a{flex:1}.head-actions .btn,.head-actions .action-btn{width:100%;justify-content:center}.details-grid{grid-template-columns:1fr}}

/* Global loading state: blocks repeated clicks while a request is in progress. */
.page-loading-overlay{display:none;position:fixed;inset:0;z-index:9999;align-items:center;justify-content:center;background:rgba(15,27,61,.42);backdrop-filter:blur(2px);cursor:wait}.page-loading-overlay.visible{display:flex}.page-loading-box{display:flex;min-width:180px;flex-direction:column;align-items:center;gap:8px;padding:24px 30px;border:1px solid #ffffff80;border-radius:16px;background:#fff;color:var(--ink);box-shadow:0 18px 55px #101b3d40;text-align:center}.page-loading-box strong{font-size:16px}.page-loading-box small{color:var(--muted);font-size:12px}.page-loading-spinner{width:32px;height:32px;border:4px solid #dce5ff;border-top-color:#3568e0;border-radius:50%;animation:page-loading-spin .75s linear infinite}@keyframes page-loading-spin{to{transform:rotate(360deg)}}.page-is-loading{cursor:wait}.page-is-loading button:not(.sidebar-toggle),.page-is-loading input[type=submit],.page-is-loading input[type=button]{cursor:wait!important}

/* Client subject inside the avatar square */
.client-cell .subject-avatar{width:58px;height:42px;padding:4px 5px;border-radius:11px;display:grid;place-items:center;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;line-height:1.2;font-weight:800;color:#315fcf;background:linear-gradient(135deg,#e8eeff,#d8e2ff);border:1px solid #d1ddff}

/* Moalem Plus landing header and unified search */
.landing-logo{width:44px;height:44px;display:block;filter:drop-shadow(0 5px 10px #315fcf22)}
.landing-nav{justify-content:flex-start}
.teacher-search-bar{width:100%;display:grid;grid-template-columns:1.05fr 1.45fr auto;align-items:end;background:#fff;border:1px solid #dfe6f3;border-radius:16px;padding:10px;box-shadow:0 12px 28px #263b5d0c;margin:0 0 30px}
.teacher-search-bar label{min-width:0;padding:0 13px;border-left:1px solid #e7ebf3}
.teacher-search-bar label span{display:block;color:#7b879c;font-size:11px;font-weight:700;margin-bottom:4px}
.teacher-search-bar input,.teacher-search-bar select{margin:0;border:0;box-shadow:none;border-radius:8px;padding:8px 0;height:36px;background-color:#fff}
.teacher-search-bar input:focus,.teacher-search-bar select:focus{box-shadow:none;border:0}
.search-submit{height:48px;min-width:112px;border:0;border-radius:11px;background:linear-gradient(135deg,#4075f0,#2859d7);color:#fff;font-family:inherit;font-weight:800;font-size:13px;cursor:pointer;box-shadow:0 7px 15px #3568e82e}
.search-submit b{font-size:18px;margin-right:5px}
@media(max-width:650px){.landing-brand strong{font-size:13px}.landing-logo{width:38px;height:38px}.teacher-search-bar{grid-template-columns:1fr;gap:8px;padding:12px;border-radius:14px}.teacher-search-bar label{border-left:0;border-bottom:1px solid #e7ebf3;padding:5px 7px 10px}.teacher-search-bar label:nth-child(2){border-bottom:0}.search-submit{width:100%;height:44px}.landing-main{width:min(1050px,calc(100% - 24px))}}

/* Centered Moalem Plus logo in the landing header */
.landing-nav.centered-logo{justify-content:center;min-height:88px;height:88px;padding-top:8px;padding-bottom:8px}
.landing-brand.centered-logo{width:100%;height:100%;justify-content:center}
.moalem-plus-logo{display:block;width:min(280px,52vw);height:auto;max-height:70px;object-fit:contain}
@media(max-width:650px){.landing-nav.centered-logo{height:70px;min-height:70px;padding-top:6px;padding-bottom:6px}.moalem-plus-logo{width:min(210px,70vw);max-height:54px}}

/* Keep the city selector arrow on the left side */
.teacher-search-bar .search-city select{padding-left:38px;padding-right:13px;background-position:18px 54%,12px 54%}
/* Teacher cards: large photo above details with responsive 6/3/2 columns */
.teacher-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}
.teacher-card{flex-direction:column;justify-content:flex-start;text-align:center;gap:10px;padding:18px 12px;min-height:235px}
.teacher-avatar{width:118px;height:118px;border-radius:24px;font-size:28px}
.teacher-avatar-fallback svg{width:48px;height:48px}
.teacher-info{width:100%;flex:none}
.teacher-info strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.teacher-info small{line-height:1.7;min-height:0}
.login-arrow{margin-top:0;padding-top:0}
@media(max-width:1100px){.teacher-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.teacher-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.teacher-card{padding:12px 8px;min-height:205px;border-radius:14px}.teacher-avatar{width:82px;height:82px;border-radius:18px}.teacher-avatar-fallback svg{width:36px;height:36px}.teacher-info strong{font-size:13px}.teacher-info small{font-size:10px;min-height:0}.login-arrow{font-size:11px}.login-arrow b{font-size:16px}}

/* Public subscription page */
.subscribe-link{display:inline-flex;margin-top:18px;padding:10px 17px;border-radius:10px;background:#e7f8f0;color:#14805a;text-decoration:none;font-size:12px;font-weight:800;border:1px solid #c9efdf}.subscribe-main{max-width:820px}.subscribe-card{max-width:820px;margin:0 auto}.subscribe-card .form-grid{gap:16px}.field-status{display:block;margin-top:6px;color:var(--muted);font-size:11px;font-weight:500}.field-status.checking{color:#8a6816}.field-status.available{color:#12835b}.field-status.unavailable{color:#c53b3b}.username-suggestions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.username-suggestions button{border:1px solid #d7e1f4;background:#f5f8ff;color:#315fcf;border-radius:7px;padding:5px 8px;font:600 11px Cairo,Tahoma,Arial,sans-serif;cursor:pointer}.username-suggestions button:hover{background:#e7edff}.trial-note{padding:13px 15px;border:1px dashed #b8c8f5;border-radius:11px;background:#f4f7ff;color:#315fcf;font-size:12px}.subscribe-success{text-align:center;max-width:620px;margin:0 auto}.success-icon{width:55px;height:55px;margin:0 auto 15px;border-radius:50%;display:grid;place-items:center;background:#e4f8ef;color:#12835b;font-size:30px;font-weight:800}.subscribe-success h2{margin:0 0 10px}.subscribe-success p{color:var(--muted);line-height:1.9}.subscribe-details{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0;text-align:right}.subscribe-details div{padding:12px;border-radius:10px;background:#f7f9fc;border:1px solid #e9edf5}.subscribe-details span{display:block;color:var(--muted);font-size:11px;margin-bottom:5px}.subscribe-details strong{display:block;font-size:13px;overflow-wrap:anywhere}.back-link{display:block;margin-top:15px;color:#315fcf;font-size:12px;text-decoration:none}@media(max-width:650px){.subscribe-details{grid-template-columns:1fr}.subscribe-card{padding:18px}.subscribe-link{font-size:11px}}

/* Final administration refresh: full-width workspace and unified login styling */
.main-area{min-width:0;width:calc(100% - 258px);background:linear-gradient(180deg,#f8faff 0%,var(--bg) 280px)}
.container{width:100%;max-width:none;margin:0;padding:clamp(24px,3.5vw,52px) clamp(18px,3.5vw,56px)}
.narrow{width:100%;max-width:1080px;margin-right:auto;margin-left:auto}
.head{margin-bottom:28px;padding-bottom:4px}.head h1{font-size:clamp(25px,2.2vw,34px)}
.card,.stat{border-radius:16px;box-shadow:0 10px 32px rgba(29,55,105,.07)}
.table-card{width:100%}.table-toolbar{background:linear-gradient(180deg,#fff,#fbfcff)}
.form-grid{gap:20px}.form-grid label,.card>form>label{color:#34415e}.form-grid input,.form-grid select,.form-grid textarea,.card>form input,.card>form select,.card>form textarea{min-height:46px;border-radius:10px;border-color:#d8e0ed;background:#fcfdff}.form-grid textarea,.card>form textarea{min-height:150px;padding:13px;resize:vertical}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.card>form input:focus,.card>form select:focus,.card>form textarea:focus{border-color:#6b91f0;box-shadow:0 0 0 4px rgba(53,104,232,.11);background:#fff}
.btn{min-height:44px;border-radius:10px}.action-btn{min-height:34px;display:inline-flex;align-items:center;justify-content:center;transition:.18s}.action-btn:hover{transform:translateY(-1px);filter:brightness(.98)}
.auth{position:relative;overflow:hidden;padding:24px;background:radial-gradient(circle at 15% 10%,#dce7ff 0,#f4f7ff 35%,#eef2f9 100%)}.auth:before,.auth:after{content:'';position:absolute;border-radius:50%;pointer-events:none}.auth:before{width:420px;height:420px;top:-170px;right:-100px;background:rgba(75,119,240,.12)}.auth:after{width:300px;height:300px;bottom:-130px;left:-90px;background:rgba(16,27,61,.07)}.auth-card{position:relative;z-index:1;width:min(470px,100%);padding:38px 40px;border:1px solid rgba(255,255,255,.8);border-radius:24px;box-shadow:0 24px 70px rgba(16,27,61,.14);text-align:right}.auth-card:before{content:'CC';display:grid;place-items:center;width:58px;height:58px;margin-bottom:22px;border-radius:17px;background:linear-gradient(135deg,#6f9cff,#3258d9);color:#fff;font-size:16px;font-weight:800;box-shadow:0 12px 22px rgba(53,104,232,.28)}.auth-card h1{font-size:25px;color:var(--navy);margin-bottom:7px}.auth-card .muted{margin-bottom:22px}.auth-card input{min-height:48px;background:#fbfcff}.auth-card .btn{width:100%;margin-top:8px}@media(max-width:900px){.main-area{width:calc(100% - 220px)}}@media(max-width:650px){.main-area{width:100%}.container{padding:24px 15px}.narrow{max-width:none}.card{padding:20px}.auth{padding:15px}.auth-card{padding:30px 22px;border-radius:20px}.auth-card:before{margin-right:auto;margin-left:auto}.auth-card{text-align:right}}

.landing-main{width:min(1440px,calc(100% - 48px))}.teacher-grid{gap:20px}@media(max-width:650px){.landing-main{width:calc(100% - 24px)}}

/* Product landing page */
.product-home{--product-blue:#0a48c8;--product-deep:#071c4e;--product-cyan:#11bde9;background:#f7faff;color:#122144;font-family:Cairo,Tahoma,Arial,sans-serif;overflow-x:hidden}.product-home *{box-sizing:border-box}.product-nav{height:78px;display:flex;align-items:center;gap:30px;padding:0 clamp(18px,5vw,82px);background:#fff;border-bottom:1px solid #e6edf8;position:sticky;top:0;z-index:20;direction:rtl}.product-brand{display:flex;align-items:center;gap:10px;color:var(--product-deep);text-decoration:none;margin-left:auto}.product-brand img{width:48px;height:48px;object-fit:contain}.product-brand span{display:grid;gap:0}.product-brand b{font-size:16px;font-weight:800}.product-brand small{font-size:10px;color:#74809a}.product-nav nav{display:flex;align-items:center;gap:28px}.product-nav nav a{color:#5d6b86;text-decoration:none;font-size:12px;font-weight:700;transition:.2s}.product-nav nav a:hover{color:var(--product-blue)}.nav-login{display:inline-flex;align-items:center;gap:9px;padding:10px 16px;border-radius:10px;color:#fff;background:var(--product-deep);text-decoration:none;font-size:12px;font-weight:800}.product-hero{width:min(1380px,calc(100% - 40px));min-height:620px;margin:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(400px,.95fr);align-items:center;gap:45px;padding:70px 3% 62px;direction:ltr}.hero-content{direction:rtl;max-width:650px}.product-kicker,.section-kicker{display:inline-flex;align-items:center;gap:8px;color:var(--product-blue);font-size:12px;font-weight:800;background:#e9f1ff;border-radius:30px;padding:8px 14px}.product-hero h1{font-size:clamp(34px,4vw,61px);line-height:1.25;letter-spacing:-1.7px;margin:22px 0 15px;color:var(--product-deep);font-weight:800}.product-hero h1 strong{display:block;color:var(--product-blue)}.product-hero p{max-width:575px;color:#687793;font-size:16px;line-height:2;margin:0}.hero-actions{display:flex;align-items:center;gap:12px;margin-top:28px}.hero-primary,.hero-secondary{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 21px;border-radius:11px;text-decoration:none;font-size:13px;font-weight:800;transition:.2s}.hero-primary{background:linear-gradient(135deg,#0d61de,#083ca7);color:#fff;box-shadow:0 12px 22px #0b50c52e}.hero-primary:hover{color:#fff;transform:translateY(-2px);box-shadow:0 15px 27px #0b50c540}.hero-secondary{color:var(--product-blue);border:1px solid #d5e1f5;background:#fff}.hero-secondary:hover{background:#eef4ff}.hero-proof{display:flex;gap:25px;margin-top:32px;color:#7e8aa1;font-size:11px}.hero-proof span{display:flex;align-items:center;gap:7px}.hero-proof b{color:var(--product-blue);font-size:14px}.hero-art{direction:rtl;position:relative;min-height:455px;display:grid;place-items:center}.hero-art>img{position:relative;width:min(100%,610px);border-radius:24px;box-shadow:0 27px 65px #07215b35;transform:rotate(2deg);z-index:2}.hero-glow{position:absolute;width:85%;height:80%;background:radial-gradient(circle,#3583ff66,transparent 68%);filter:blur(8px)}.floating-stat{position:absolute;z-index:3;display:flex;align-items:center;gap:10px;padding:12px 15px;border-radius:13px;background:#fff;box-shadow:0 12px 28px #132b5a1c;border:1px solid #e5ebf5}.floating-stat i{width:35px;height:35px;display:grid;place-items:center;border-radius:10px;background:#e8f1ff;color:#1761d8;font-size:18px}.floating-stat span{display:grid;gap:2px}.floating-stat b{font-size:11px;color:#24365d}.floating-stat small{font-size:9px;color:#8793a8}.floating-stat.top{top:40px;right:-10px}.floating-stat.bottom{bottom:25px;left:-15px}.trust-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;width:min(1240px,calc(100% - 40px));margin:0 auto;padding:20px 25px;border:1px solid #e4ebf6;border-radius:16px;background:#fff;box-shadow:0 12px 35px #1f3a6b0a}.trust-strip>div{display:flex;align-items:center;gap:11px;border-left:1px solid #edf1f7;padding:4px 17px}.trust-strip>div:last-child{border-left:0}.trust-strip i{font-size:22px;color:var(--product-blue)}.trust-strip span{display:grid;gap:2px}.trust-strip b{font-size:12px}.trust-strip small{font-size:10px;color:#8793a8}.section-block,.preview-section,.systems-section{width:min(1240px,calc(100% - 40px));margin:0 auto;padding:105px 0}.section-heading{text-align:center;max-width:610px;margin:0 auto 42px}.section-heading h2,.preview-copy h2,.systems-heading h2{font-size:clamp(27px,3vw,39px);color:var(--product-deep);margin:16px 0 8px;letter-spacing:-1px}.section-heading h2 strong,.preview-copy h2 strong{color:var(--product-blue)}.section-heading p,.preview-copy>p,.systems-heading p{color:#75829a;font-size:13px;line-height:1.9;margin:0}.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.feature-card{padding:24px 22px;border:1px solid #e6edf7;border-radius:16px;background:#fff;min-height:215px;box-shadow:0 10px 28px #17336b08;transition:.22s}.feature-card:hover{transform:translateY(-5px);border-color:#bed1f5;box-shadow:0 16px 35px #17336b15}.feature-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#e8f1ff,#d8e8ff);color:#165cca;font-size:20px}.feature-card h3{margin:17px 0 7px;font-size:15px;color:#1d3159}.feature-card p{font-size:11px;line-height:1.9;color:#7c89a0;margin:0}.feature-card a{display:inline-flex;align-items:center;gap:5px;color:#1761d8;text-decoration:none;font-size:11px;font-weight:800;margin-top:14px}.preview-section{display:grid;grid-template-columns:.8fr 1.2fr;gap:70px;align-items:center;background:#edf4ff;border-radius:25px;padding:65px clamp(25px,5vw,70px);width:min(1320px,calc(100% - 40px));direction:ltr}.preview-copy{direction:rtl}.preview-copy ul{list-style:none;padding:0;margin:22px 0 27px;display:grid;gap:12px}.preview-copy li{display:flex;align-items:center;gap:8px;font-size:12px;color:#526480}.preview-copy li i{color:#16a274;font-size:17px}.hero-primary.small{min-height:42px;font-size:12px}.screen-gallery{position:relative;min-height:370px;direction:rtl}.screen-main{margin:0;width:74%;border:7px solid #14284e;border-radius:14px;background:#14284e;box-shadow:0 21px 45px #1836672b;overflow:hidden;transform:rotate(-2deg)}.screen-main img{display:block;width:100%;height:225px;object-fit:cover}.screen-main figcaption{display:flex;align-items:center;gap:8px;color:#fff;background:#14284e;padding:11px 14px;font-size:11px}.screen-main figcaption i{color:#63c6ff}.screen-mini{position:absolute;right:0;bottom:4px;width:40%;padding:17px;background:#fff;border:1px solid #e0e9f7;border-radius:13px;box-shadow:0 15px 30px #17376b1c}.screen-mini.accent{right:auto;left:4px;bottom:57px;width:34%;background:#0b327c;color:#fff;transform:rotate(3deg)}.mini-top{display:flex;align-items:center;gap:6px;font-size:10px;font-weight:800}.mini-top i{color:#317ae4}.screen-mini.accent .mini-top i{color:#63d8ff}.mini-top b{margin-right:auto;color:#317ae4;font-size:9px}.mini-bars{height:82px;display:flex;align-items:end;justify-content:space-around;gap:6px;border-bottom:1px solid #e9eff8;margin:12px 0 8px}.mini-bars i{display:block;width:13%;border-radius:4px 4px 0 0;background:linear-gradient(#4b9af0,#c1dcff)}.screen-mini small{font-size:9px;color:#8290a8}.mini-task{display:flex;align-items:center;gap:5px;margin-top:12px}.mini-task b{width:8px;height:8px;border-radius:50%;background:#55d2ed}.mini-task span{height:6px;border-radius:5px;background:#6d89ba;flex:1}.mini-task em{width:23px;height:6px;border-radius:5px;background:#2bb58c}.systems-section{padding-top:90px}.systems-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:27px}.systems-heading h2{margin-top:13px}.systems-count{display:grid;justify-items:center;min-width:90px;padding:12px 20px;background:#e8f5ff;border-radius:13px;color:#0b56bf}.systems-count b{font-size:26px}.systems-count small{font-size:10px}.product-search{max-width:none;display:grid;grid-template-columns:1fr 1.6fr auto;margin-bottom:20px;border:1px solid #e0e8f5;box-shadow:none}.product-search .search-submit{border-radius:10px;margin:6px;padding:0 25px;height:45px}.product-search input,.product-search select{height:55px}.teacher-grid{grid-template-columns:repeat(3,1fr);gap:15px}.teacher-card{min-height:88px}.final-cta{width:min(1240px,calc(100% - 40px));margin:10px auto 80px;padding:45px 55px;display:flex;align-items:center;justify-content:space-between;gap:25px;background:linear-gradient(110deg,#071c4e,#0d4cc1);border-radius:22px;color:#fff;overflow:hidden;position:relative}.final-cta:after{content:'';position:absolute;width:400px;height:400px;border:50px solid #36baf61b;border-radius:50%;left:-120px;top:-210px}.final-cta>div{position:relative;z-index:1}.final-cta .section-kicker{background:#ffffff16;color:#a9dfff}.final-cta h2{margin:13px 0 5px;font-size:27px}.final-cta p{margin:0;color:#bfd0ee;font-size:12px}.final-cta .hero-primary{position:relative;z-index:1;background:#fff;color:#0b4bbd;box-shadow:none}.product-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px clamp(18px,5vw,80px);background:#06183e;color:#96acd4;font-size:10px}.product-footer .product-brand{color:#fff;margin:0}.product-footer .product-brand img{width:38px;height:38px}.product-footer>a:last-child{color:#bcd2fa;text-decoration:none}@media(max-width:1000px){.product-hero{grid-template-columns:1fr;padding-top:45px}.hero-content{max-width:760px;margin:auto;text-align:center}.hero-content p{margin:auto}.hero-actions,.hero-proof{justify-content:center}.hero-art{max-width:680px;width:100%;margin:auto}.feature-grid{grid-template-columns:repeat(2,1fr)}.trust-strip{grid-template-columns:repeat(2,1fr)}.trust-strip>div:nth-child(2){border-left:0}.preview-section{grid-template-columns:1fr;gap:35px}.preview-copy{text-align:center}.preview-copy ul{display:inline-grid;text-align:right}.screen-gallery{max-width:700px;width:100%;margin:auto}}@media(max-width:650px){.product-nav{height:65px;padding:0 14px;gap:10px}.product-brand img{width:38px;height:38px}.product-brand b{font-size:13px}.product-brand small{font-size:8px}.product-nav nav{display:none}.nav-login{font-size:10px;padding:8px 10px}.product-hero,.section-block,.preview-section,.systems-section{width:calc(100% - 24px)}.product-hero{padding:43px 5px 35px;min-height:0}.product-hero h1{font-size:31px;letter-spacing:-.7px}.product-hero p{font-size:13px;line-height:1.9}.hero-actions{flex-direction:column;align-items:stretch}.hero-primary,.hero-secondary{width:100%}.hero-proof{gap:10px;flex-wrap:wrap;font-size:9px}.hero-art{min-height:270px;margin-top:18px}.hero-art>img{border-radius:15px}.floating-stat{padding:8px 9px;gap:6px}.floating-stat i{width:27px;height:27px;font-size:13px}.floating-stat b{font-size:8px}.floating-stat small{font-size:7px}.floating-stat.top{top:5px;right:-4px}.floating-stat.bottom{bottom:4px;left:-4px}.trust-strip{width:calc(100% - 24px);grid-template-columns:1fr 1fr;padding:12px 8px;gap:5px}.trust-strip>div{padding:7px 8px;gap:6px}.trust-strip i{font-size:17px}.trust-strip b{font-size:9px}.trust-strip small{font-size:7px}.section-block,.systems-section{padding:65px 0}.section-heading h2,.preview-copy h2,.systems-heading h2{font-size:27px}.section-heading p,.preview-copy>p,.systems-heading p{font-size:11px}.feature-grid{grid-template-columns:1fr 1fr;gap:9px}.feature-card{min-height:190px;padding:16px 13px;border-radius:12px}.feature-icon{width:34px;height:34px;font-size:16px}.feature-card h3{font-size:12px;margin:12px 0 5px}.feature-card p{font-size:9px;line-height:1.8}.feature-card a{font-size:9px;margin-top:9px}.preview-section{padding:35px 16px;border-radius:17px}.screen-gallery{min-height:245px}.screen-main{width:77%;border-width:4px}.screen-main img{height:145px}.screen-main figcaption{padding:7px 8px;font-size:8px}.screen-mini{padding:10px;width:42%;right:-2px}.screen-mini.accent{left:-2px;bottom:31px;width:36%}.mini-top{font-size:7px}.mini-bars{height:50px;margin:6px 0}.screen-mini small{font-size:6px}.mini-task{margin-top:7px}.product-search{grid-template-columns:1fr;gap:0;padding:8px}.product-search input,.product-search select{height:45px}.product-search .search-submit{width:100%;margin:4px 0 0;height:42px}.teacher-grid{grid-template-columns:1fr}.systems-heading{align-items:start}.systems-count{min-width:65px;padding:8px}.systems-count b{font-size:20px}.systems-count small{font-size:8px}.final-cta{width:calc(100% - 24px);padding:30px 22px;display:block;text-align:center;border-radius:16px;margin-bottom:45px}.final-cta h2{font-size:21px}.final-cta p{font-size:10px;margin-bottom:20px}.product-footer{flex-direction:column;text-align:center;padding:20px 15px}.product-footer .product-brand{margin:auto}}

/* Logo-only product header */
.product-logo-only{margin-left:auto}.product-logo-only img{width:clamp(105px,12vw,175px);height:auto;max-height:70px;object-fit:contain}.product-logo-only span{display:none}.teachers-page .landing-nav{height:112px;min-height:112px;background:#fff}.teachers-page .teachers-logo{width:min(290px,70vw);max-height:88px;object-fit:contain}.teachers-page .landing-main{padding-top:58px}.teachers-home-link{color:#315fcf;text-decoration:none;font-weight:800;margin-left:auto}.teachers-page .landing-footer{display:flex;justify-content:space-between;align-items:center;padding:20px clamp(18px,7%,80px)}
/* Public pricing section */
.pricing-section{width:min(1240px,calc(100% - 40px));margin:0 auto;padding:95px 0 105px}.pricing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;align-items:stretch}.pricing-card{position:relative;display:flex;flex-direction:column;padding:28px 25px 24px;background:#fff;border:1px solid #e1e9f5;border-radius:18px;box-shadow:0 12px 30px #18376d0b;overflow:hidden;transition:.22s}.pricing-card:hover{transform:translateY(-5px);box-shadow:0 18px 38px #18376d18;border-color:#b8cef4}.pricing-card.featured{border:2px solid #2167d4;box-shadow:0 18px 40px #1557c526}.pricing-badge{position:absolute;top:0;left:0;padding:7px 14px;border-radius:0 0 12px 0;background:#2167d4;color:#fff;font-size:10px;font-weight:800}.pricing-card-head{display:grid;gap:5px}.pricing-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;background:linear-gradient(135deg,#e6f1ff,#d7e8ff);color:#1260d4;font-size:21px}.pricing-card h3{margin:14px 0 0;color:#142957;font-size:18px}.pricing-card-head p{margin:0;color:#8793a8;font-size:10px}.pricing-price{display:flex;align-items:baseline;gap:6px;margin:23px 0 4px;color:#0b4fc0}.pricing-price strong{font-size:42px;line-height:1;font-weight:800;letter-spacing:-1px}.pricing-price span{font-size:13px;font-weight:700}.pricing-duration{display:flex;align-items:center;gap:6px;color:#61718e;font-size:11px;padding-bottom:18px;border-bottom:1px solid #edf1f7}.pricing-duration i{color:#2871d7;font-size:15px}.pricing-card ul{list-style:none;padding:17px 0 9px;margin:0;display:grid;gap:11px}.pricing-card li{display:flex;align-items:center;gap:8px;color:#52627e;font-size:11px}.pricing-card li i{color:#13a87b;font-size:14px}.pricing-action{display:flex;align-items:center;justify-content:center;gap:8px;min-height:42px;margin-top:auto;border-radius:10px;background:#edf4ff;color:#1459c8;text-decoration:none;font-size:11px;font-weight:800;transition:.2s}.pricing-action:hover{background:#1459c8;color:#fff}.pricing-card.featured .pricing-action{background:#0d55c9;color:#fff}.pricing-card.featured .pricing-action:hover{background:#083c97}
@media(max-width:1000px){.pricing-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.product-logo-only img{width:110px;max-height:52px}.teachers-page .landing-nav{height:84px;min-height:84px}.teachers-page .teachers-logo{width:min(220px,75vw);max-height:68px}.teachers-page .landing-main{padding-top:35px}.teachers-page .landing-footer{flex-direction:column;gap:12px}.teachers-home-link{margin:0}.pricing-section{width:calc(100% - 24px);padding:65px 0 75px}.pricing-grid{grid-template-columns:1fr;gap:12px}.pricing-card{padding:22px 19px}.pricing-card h3{font-size:16px}.pricing-price strong{font-size:36px}}


/* Responsive navigation, horizontal pricing rail, app placeholders, and contact actions */
.product-home .nav-toggle{display:none;place-items:center;width:42px;height:42px;border:1px solid #dce6f5;border-radius:11px;background:#fff;color:#164fae;font-size:24px;cursor:pointer}
.product-home .pricing-grid{display:flex;flex-wrap:nowrap;gap:18px;overflow-x:auto;overflow-y:hidden;padding:5px 3px 18px;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:#a9c3ed #edf3fb}
.product-home .pricing-grid>.pricing-card{flex:0 0 clamp(285px,31vw,360px);scroll-snap-align:start}
.download-section{width:min(1240px,calc(100% - 40px));margin:0 auto;padding:24px 0}
.download-card{display:flex;align-items:center;gap:20px;padding:28px 30px;border:1px solid #e1eaf7;border-radius:20px;background:#fff;box-shadow:0 12px 30px #17376b0b}
.download-icon{display:grid;place-items:center;flex:0 0 58px;height:58px;border-radius:17px;background:#e9f2ff;color:#1459c8;font-size:27px}
.download-card h2{margin:8px 0;color:#071c4e;font-size:22px}.download-card p{margin:0;color:#71809b;font-size:12px;line-height:1.8}
.download-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;margin-right:auto;padding:12px 18px;border-radius:11px;background:#0d55c9;color:#fff;text-decoration:none;font-size:12px;font-weight:800;white-space:nowrap}
.support-section{padding-top:8px;padding-bottom:70px}
.contact-section{width:min(1240px,calc(100% - 40px));margin:10px auto 70px;padding:38px clamp(22px,5vw,55px);display:flex;align-items:center;justify-content:space-between;gap:25px;border-radius:22px;background:linear-gradient(110deg,#071c4e,#0d4cc1);color:#fff}
.contact-section h2{margin:14px 0 8px;font-size:clamp(20px,2.4vw,30px)}.contact-section h2 strong{color:#a8dfff}.contact-section p{margin:0;color:#d0def5;font-size:13px;line-height:1.8}
.contact-actions{display:flex;gap:10px;flex-wrap:wrap}.contact-action{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:0 18px;border-radius:11px;text-decoration:none;font-size:12px;font-weight:800;white-space:nowrap}.contact-action.call{background:#fff;color:#0a4ab8}.contact-action.whatsapp{background:#20b85a;color:#fff}
.product-footer{flex-wrap:wrap}.footer-contact{display:flex;align-items:center;gap:18px}.footer-contact a{color:#c3d6f8;text-decoration:none}
.apps-page .apps-main{padding-top:56px;padding-bottom:70px}.apps-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:36px}.app-download-card{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-height:250px;padding:26px;border:1px solid #e2eaf6;border-radius:18px;background:#fff;box-shadow:0 12px 28px #18376d0b}.app-download-card h2{margin:0;color:#071c4e;font-size:20px}.app-download-card p{margin:0;color:#71809b;font-size:12px;line-height:1.9}.temporary-badge{display:inline-flex;padding:6px 10px;border-radius:20px;background:#fff4d8;color:#90620b;font-size:10px;font-weight:800}.apps-page .app-notice{margin-top:26px}
@media(max-width:760px){.product-home .product-nav{position:relative;z-index:20;height:auto;min-height:70px;padding:9px 14px}.product-home .nav-toggle{display:grid;margin-inline-start:auto}.product-home .product-menu{display:none!important;position:absolute;top:calc(100% - 2px);right:12px;left:12px;flex-direction:column;align-items:stretch;gap:0;padding:8px;border:1px solid #e1e9f5;border-radius:14px;background:#fff;box-shadow:0 18px 40px #10265324}.product-home .product-menu.is-open{display:flex!important}.product-home .product-menu a{padding:12px 14px;border-bottom:1px solid #edf1f7}.product-home .product-menu a:last-child{border-bottom:0}.product-home .pricing-grid>.pricing-card{flex-basis:min(84vw,360px)}.download-card{align-items:flex-start;flex-wrap:wrap;padding:22px}.download-card>div{flex:1 1 calc(100% - 80px)}.download-action{margin-right:0}.contact-section{align-items:flex-start;flex-direction:column;padding:28px 22px}.footer-contact{flex-wrap:wrap;justify-content:center}.apps-list{grid-template-columns:1fr}.apps-page .apps-main{padding-top:35px}}
@media(max-width:480px){.download-section,.contact-section{width:calc(100% - 24px)}.download-card h2{font-size:18px}.contact-actions{width:100%}.contact-action{flex:1}.product-footer{gap:13px}.footer-contact{gap:12px;font-size:10px}}


/* Teacher directory: scoped overrides prevent product-home grid rules from leaking onto this page */
body.teachers-page #teacher-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}
@media(max-width:1100px){body.teachers-page #teacher-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){body.teachers-page #teacher-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}


/* Downloadable applications and admin uploader */
.apps-admin-card{margin-bottom:24px}.apps-admin-card textarea{display:block;width:100%;margin-top:7px;padding:12px 13px;border:1px solid #dce2ed;border-radius:9px;font:inherit;resize:vertical}.apps-security-note{margin:16px 0 0;font-size:11px;line-height:1.8}
.applications-section{width:min(1240px,calc(100% - 40px));margin:0 auto;padding:35px 0}.applications-section .section-heading{margin-bottom:28px}.app-download-card h3{margin:0;color:#071c4e;font-size:19px}.app-download-card .application-download-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;margin-top:auto;min-height:42px;padding:0 16px;border-radius:10px;background:#0d55c9;color:#fff;text-decoration:none;font-size:12px;font-weight:800}.app-download-card .application-download-button:hover{background:#083c97}.app-download-card.empty-app{border-style:dashed;background:#fbfdff}.apps-page .apps-main>p:last-child{margin-top:16px}
@media(max-width:650px){.applications-section{width:calc(100% - 24px);padding:20px 0}.apps-admin-card .form-grid{grid-template-columns:1fr}.apps-admin-card .full{grid-column:auto}}

.contact-section .contact-phone{color:#fff}.footer-contact a{color:#fff}.product-footer a.contact-number{color:#fff}


/* Polished application cards and icon uploader */
.applications-section .apps-list{align-items:stretch}
.app-download-card{position:relative;overflow:hidden;min-height:290px;gap:14px;padding:25px;border-color:#dce7f5;box-shadow:0 15px 34px #102d5b10;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.app-download-card:not(.empty-app):hover{transform:translateY(-4px);border-color:#aac6ef;box-shadow:0 20px 40px #102d5b18}
.application-card-head{display:flex;align-items:center;gap:15px;width:100%;min-height:82px}
.application-icon{display:grid;place-items:center;flex:0 0 78px;width:78px;height:78px;overflow:hidden;border:1px solid #e2ebf7;border-radius:20px;background:linear-gradient(145deg,#f1f6ff,#e4efff);color:#1559c5;font-size:31px;box-shadow:0 7px 18px #173b6e12}
.application-icon img{display:block;width:100%;height:100%;object-fit:cover}
.application-title{display:grid;justify-items:start;gap:8px;min-width:0}.application-title .temporary-badge{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.application-title h3{line-height:1.4;overflow-wrap:anywhere}
.app-download-card>p{min-height:44px}.app-download-card>small{color:#71809b}.admin-app-cell{display:flex;align-items:center;gap:12px;min-width:220px}.admin-app-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;overflow:hidden;border-radius:12px;background:#edf4ff;color:#1559c5;font-size:20px}.admin-app-icon img{width:100%;height:100%;object-fit:cover}.app-actions{white-space:nowrap}.app-actions form{margin-inline-start:4px}.delete-app{background:#fff1f0!important;border:1px solid #ffd1cd!important;color:#b42318!important}
.icon-preview-wrap{display:grid;justify-items:start;align-content:start;gap:7px}.icon-preview-label{font-size:12px;font-weight:700;color:#3b4b68}.icon-preview{display:grid;place-items:center;width:68px;height:68px;overflow:hidden;border:1px dashed #b7c9e2;border-radius:17px;background:#f3f7fd;color:#6580a8;font-size:25px}.icon-preview img{width:100%;height:100%;object-fit:cover}.apps-admin-card input[type=file]{max-width:100%;font-size:12px}.apps-admin-card .form-grid{align-items:start}
@media(max-width:650px){.app-download-card{min-height:250px;padding:19px}.application-icon{flex-basis:66px;width:66px;height:66px;border-radius:17px}.application-card-head{min-height:70px}.admin-app-cell{min-width:180px}.app-actions{white-space:normal}.app-actions .inline{margin-top:5px}}


/* Professional grouped admin sidebar with an independent scroll area */
.sidebar{height:100vh;height:100dvh;overflow:hidden;padding:18px 13px 13px}
.sidebar .brand{flex:0 0 auto;padding:5px 9px 21px}
.side-nav{display:flex;flex:1 1 auto;min-height:0;flex-direction:column;align-items:stretch;gap:7px;overflow-y:auto;overflow-x:hidden;padding:3px 3px 13px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ffffff42 transparent}
.side-nav::-webkit-scrollbar{width:6px}.side-nav::-webkit-scrollbar-track{background:transparent}.side-nav::-webkit-scrollbar-thumb{border:1px solid #172653;border-radius:8px;background:#ffffff3d}.side-nav::-webkit-scrollbar-thumb:hover{background:#ffffff70}
.side-nav .nav-primary,.side-nav .nav-group-toggle{display:flex;width:100%;min-height:47px;align-items:center;gap:11px;padding:0 12px;border:1px solid transparent;border-radius:12px;background:transparent;color:#c5d0eb;text-align:right;text-decoration:none;font:700 12px Cairo,Tahoma,Arial,sans-serif;cursor:pointer;transition:background .18s ease,color .18s ease,border-color .18s ease}
.side-nav .nav-primary:hover,.side-nav .nav-group-toggle:hover{border-color:#ffffff15;background:#ffffff12;color:#fff}
.side-nav .nav-primary.active{border-color:#ffffff20;background:linear-gradient(100deg,#5485f42b,#ffffff13);color:#fff;box-shadow:inset -3px 0 #8cb1ff}
.side-nav .nav-icon{display:grid;flex:0 0 28px;width:28px;height:28px;place-items:center;border-radius:9px;background:#ffffff0d;color:#9bbaff;font-size:15px}
.side-nav .nav-primary.active .nav-icon,.nav-group.is-open>.nav-group-toggle .nav-icon{background:#719cff2b;color:#c5d8ff}
.side-nav .nav-label{flex:1;min-width:0}.side-nav .nav-group{display:block;flex:0 0 auto}
.side-nav .nav-group.is-open>.nav-group-toggle{border-color:#ffffff12;background:#ffffff0d;color:#fff}
.side-nav .nav-chevron{margin-inline-start:auto;color:#8fa1cc;font-size:15px;transition:transform .2s ease}.nav-group.is-open>.nav-group-toggle .nav-chevron{transform:rotate(180deg);color:#c5d8ff}
.side-nav .nav-submenu{display:grid;gap:4px;margin:4px 12px 4px 3px;padding:5px 10px 6px 0;border-right:1px solid #ffffff25}
.side-nav .nav-group:not(.is-open) .nav-submenu{display:none}
.side-nav .nav-sub-link{display:flex;min-height:38px;align-items:center;gap:9px;padding:8px 10px!important;border:1px solid transparent;border-radius:9px;color:#aebcdb;font-size:11px;text-decoration:none;transition:.18s}
.side-nav .nav-sub-link:hover{background:#ffffff0e;color:#fff}.side-nav .nav-sub-link.active{border-color:#ffffff16;background:#ffffff14;color:#fff;box-shadow:inset -2px 0 #79a0ff}
.side-nav .nav-sub-icon{display:grid;flex:0 0 19px;width:19px;place-items:center;color:#8299c9;font-size:12px}
.side-nav .nav-sub-link.active .nav-sub-icon{color:#aac3ff}
.side-footer{flex:0 0 auto;margin-top:0;padding-top:11px}.side-footer a{min-height:40px;padding:10px 12px;border-radius:10px;font-size:11px}.side-footer a:hover{background:#ffffff12;color:#fff}
@media(max-width:650px){.sidebar{width:min(290px,86vw);padding:16px 13px 12px}.sidebar .brand{padding-bottom:16px}.side-nav{padding-bottom:14px}}


/* Prevent iOS Safari from zooming in when a form control receives focus. */
@media (max-width: 767px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
  textarea,
  select {
    font-size: 16px !important;
  }
}

.badge.feature-disabled{background:#f0f2f6;color:#727d91}


/* Professional admin dashboard */
.dashboard-container{max-width:1500px}.dashboard-hero{display:flex;justify-content:space-between;align-items:center;gap:22px;margin-bottom:26px}.dashboard-hero h1{margin:0 0 8px;font-size:32px;font-weight:800;letter-spacing:-.5px}.dashboard-hero p{margin:0}.dashboard-date{display:inline-block;margin-right:8px;padding:4px 9px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#596782;font-size:11px;direction:ltr}.dashboard-head-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.dashboard-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:16px}.dashboard-kpi{min-width:0;display:flex;align-items:center;gap:15px;padding:21px 20px;border:1px solid var(--line);border-radius:17px;background:#fff;color:var(--ink);text-decoration:none;box-shadow:0 8px 25px #27385b08;transition:transform .2s,box-shadow .2s}.dashboard-kpi:hover{transform:translateY(-2px);box-shadow:0 13px 30px #27385b12}.kpi-icon{width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center;border-radius:15px;background:#edf2ff;color:#3568e8;font-size:22px;font-weight:800}.kpi-blue .kpi-icon{background:#edf2ff;color:#3568e8}.kpi-orange .kpi-icon{background:#fff3e4;color:#c57a22}.kpi-green .kpi-icon{background:#e5f8ef;color:#16815a}.kpi-purple .kpi-icon{background:#f2edff;color:#7652c7;font-size:13px}.kpi-copy{min-width:0;display:flex;flex-direction:column;gap:3px}.kpi-copy small{color:var(--muted);font-size:12px;font-weight:700}.kpi-copy strong{font-size:27px;line-height:1.25;color:var(--ink);font-variant-numeric:tabular-nums}.kpi-copy em{font-style:normal;color:#9aa3b4;font-size:10px}.dashboard-status-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1px;margin-bottom:24px;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--line)}.dashboard-status-strip a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 17px;background:#fff;color:var(--muted);font-size:11px;text-decoration:none}.dashboard-status-strip a:hover{background:#fbfcff;color:var(--ink)}.dashboard-status-strip strong{color:var(--ink);font-size:17px;font-variant-numeric:tabular-nums}.dashboard-status-strip .text-red{color:#c53b3b}.dashboard-columns{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:18px;margin-bottom:18px}.dashboard-panel{padding:0;overflow:hidden}.dashboard-panel-head{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:20px 23px;border-bottom:1px solid var(--line)}.dashboard-panel-head .eyebrow{margin-bottom:3px}.dashboard-panel-head h2{margin:0;font-size:17px}.dashboard-panel-head p{margin:4px 0 0;font-size:11px}.dashboard-table table{min-width:610px}.dashboard-table th,.dashboard-table td{padding:13px 16px}.dashboard-client-link{display:block;color:var(--ink);text-decoration:none}.dashboard-client-link:hover strong{color:var(--blue)}.dashboard-client-link strong{display:block;font-size:12px}.dashboard-client-link small{display:block;margin-top:3px;color:var(--muted);font-size:10px}.days-left{display:inline-block;padding:5px 8px;border-radius:7px;background:#e8f7ef;color:#16815a;font-size:10px;font-weight:800}.days-left.urgent{background:#fff0e2;color:#b86b18}.recent-systems{margin-bottom:18px}.dashboard-row-actions{white-space:nowrap}.dashboard-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 25px}.dashboard-shortcuts a{display:grid;grid-template-columns:36px 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:center;padding:15px 16px;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--ink);text-decoration:none;transition:.2s}.dashboard-shortcuts a:hover{border-color:#c4d2f7;box-shadow:0 7px 20px #27385b0a;transform:translateY(-1px)}.dashboard-shortcuts a>span{grid-row:1/3;width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#edf2ff;color:#3568e8;font-size:10px;font-weight:800}.dashboard-shortcuts strong{font-size:12px}.dashboard-shortcuts small{color:var(--muted);font-size:10px;margin-top:2px}@media(max-width:1100px){.dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-columns{grid-template-columns:1fr}.dashboard-status-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){.dashboard-hero{align-items:flex-start;flex-direction:column}.dashboard-head-actions{width:100%}.dashboard-head-actions>*{flex:1;text-align:center}.dashboard-hero h1{font-size:26px}.dashboard-kpis{gap:9px}.dashboard-kpi{padding:14px 12px;gap:10px}.kpi-icon{width:39px;height:39px;flex-basis:39px;border-radius:12px}.kpi-copy strong{font-size:22px}.kpi-copy small{font-size:10px}.dashboard-status-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-status-strip a{padding:11px}.dashboard-panel-head{align-items:flex-start;padding:17px}.dashboard-panel-head>.action-btn{flex:0 0 auto}.dashboard-table table{min-width:590px}.dashboard-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.dashboard-shortcuts a{padding:12px 10px;column-gap:8px}}

.action-btn:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.25)}


/* Shared inline SVG icon system */
.ui-icon{display:inline-block;width:1em;height:1em;flex:0 0 auto;vertical-align:-.16em;overflow:visible;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.btn .ui-icon,.action-btn .ui-icon,.contact-action .ui-icon,.download-action .ui-icon{width:15px;height:15px}
.alert .ui-icon{width:16px;height:16px;margin-inline-end:6px;vertical-align:-.2em}
.nav-icon .ui-icon{width:16px;height:16px}.nav-sub-icon .ui-icon{width:14px;height:14px}.side-footer .ui-icon{width:15px;height:15px;margin-inline-end:7px;vertical-align:-.2em}
.nav-chevron{display:grid;place-items:center;transition:transform .2s ease}.nav-chevron .ui-icon{width:14px;height:14px}.nav-group.is-open>.nav-group-toggle .nav-chevron{transform:rotate(180deg)}
.mobile-top .sidebar-toggle .ui-icon{width:20px;height:20px}.kpi-icon .ui-icon{width:23px;height:23px}.empty-icon .ui-icon{width:30px;height:30px}.search-submit .ui-icon,.login-arrow .ui-icon{width:16px;height:16px}
/* YouTube tutorial library */
.tutorials-main{padding-top:48px;padding-bottom:68px}.tutorial-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;width:min(1240px,100%);margin:8px auto 0}.tutorial-card{min-width:0;overflow:hidden;border:1px solid #e1e9f5;border-radius:20px;background:#fff;box-shadow:0 15px 36px #102d5b0c;transition:transform .2s ease,box-shadow .2s ease}.tutorial-card:hover{transform:translateY(-3px);box-shadow:0 20px 42px #102d5b17}.tutorial-video{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;background:#081a3d}.tutorial-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.tutorial-card-content{padding:20px 22px 23px}.tutorial-card-label{display:inline-flex;align-items:center;gap:6px;margin-bottom:8px;color:#245eca;font-size:10px;font-weight:800}.tutorial-card-content h2{margin:0;color:#10234d;font-size:17px;line-height:1.6}.tutorial-card-content p{margin:7px 0 0;color:#73819a;font-size:12px;line-height:1.9}.tutorial-empty{width:min(740px,calc(100% - 32px));margin:0 auto;padding:42px 24px;text-align:center;border:1px dashed #cbd8ea;border-radius:20px;background:#fff}.tutorial-empty-icon{display:grid;place-items:center;width:62px;height:62px;margin:0 auto 15px;border-radius:18px;background:#eaf2ff;color:#1c5dcc;font-size:27px}.tutorial-empty h2{margin:0 0 8px;color:#10234d;font-size:20px}.tutorial-empty p{margin:0;color:#73819a;font-size:12px;line-height:1.8}.tutorials-notice{width:min(800px,calc(100% - 32px));margin:0 auto 25px}.tutorials-back{text-align:center;margin:30px 0 0}.tutorial-admin-form{margin-bottom:24px}.tutorial-admin-form .table-toolbar{padding:0 0 18px;margin-bottom:19px}.tutorial-admin-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#eaf2ff;color:#1c5dcc;font-size:19px}.tutorial-admin-note{margin:14px 0 0;font-size:11px;line-height:1.8}.tutorial-admin-video{display:flex;align-items:center;gap:12px;min-width:225px}.tutorial-admin-video img{width:92px;height:54px;flex:0 0 auto;object-fit:cover;border-radius:8px;background:#e9eef6}.tutorial-admin-video strong{display:block;max-width:240px;white-space:normal}.tutorial-admin-video small{display:block;max-width:250px;margin-top:4px;white-space:normal;line-height:1.7}
@media(max-width:760px){.tutorial-grid{grid-template-columns:1fr;gap:15px}.tutorials-main{padding-top:34px}.tutorial-card-content{padding:16px 18px 19px}}


