/* الإصدار 7: الحسابات والصلاحيات */
body.auth-locked .topbar,
body.auth-locked .mobile-bottom-nav,
body.auth-locked .footer{display:none!important}
body.auth-locked{background:linear-gradient(135deg,#071727,#0b2942 56%,#0f5966);min-height:100vh}
body.auth-locked .app-shell{max-width:none;padding:0;min-height:100vh}
.auth-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 12% 15%,rgba(213,168,60,.18),transparent 26%),radial-gradient(circle at 85% 82%,rgba(37,190,190,.18),transparent 30%)}
.auth-card{width:min(520px,100%);background:rgba(255,255,255,.98);border:1px solid rgba(255,255,255,.25);border-radius:26px;padding:28px;box-shadow:0 30px 80px rgba(0,0,0,.28)}
.auth-setup-card{width:min(650px,100%)}
.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:22px}.auth-brand .brand-logo{width:48px;height:48px;font-size:24px}.auth-brand>div:last-child{display:flex;flex-direction:column}.auth-brand strong{color:#0b1f33;font-size:17px}.auth-brand span{font-size:11px;color:#6b7884;margin-top:3px}
.auth-card h1{margin:0 0 8px;color:#0b1f33}.auth-main-btn{width:100%;margin-top:12px;min-height:48px}.auth-link{display:block;border:0;background:none;color:var(--primary);font-weight:800;margin:16px auto 0;cursor:pointer}.auth-divider{display:flex;align-items:center;gap:10px;color:#91a0aa;font-size:11px;margin:18px 0}.auth-divider:before,.auth-divider:after{content:"";height:1px;background:#dce4e8;flex:1}.auth-success{text-align:center}.success-mark{width:72px;height:72px;display:grid;place-items:center;border-radius:50%;margin:0 auto 16px;background:#e8f8ef;color:#128553;font-size:34px;font-weight:900}
.account-chip{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:999px;background:var(--surface);padding:5px 10px;color:var(--navy);cursor:pointer}.account-chip>span:first-child{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:var(--primary);color:#fff}.account-chip>span:last-child{display:flex;flex-direction:column;text-align:right}.account-chip strong{font-size:10px}.account-chip small{font-size:8px;color:var(--muted)}
.account-profile-card{text-align:center}.account-avatar{width:82px;height:82px;display:grid;place-items:center;margin:0 auto 12px;border-radius:24px;background:linear-gradient(135deg,var(--navy),var(--primary));color:white;font-size:34px}.account-profile-card .resource{text-align:right}
.lesson-sections-hub{margin:18px 0 26px}.lesson-section-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}.lesson-section-cards button{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;text-align:right;padding:15px;border:1px solid var(--line);border-radius:15px;background:var(--surface);color:var(--navy);box-shadow:0 7px 22px rgba(11,31,51,.05);cursor:pointer;transition:.2s}.lesson-section-cards button:hover{transform:translateY(-2px);border-color:var(--primary)}.lesson-section-cards span:nth-child(2){display:flex;flex-direction:column;gap:4px}.lesson-section-cards small{color:var(--muted);font-size:10px;line-height:1.6}.lesson-section-number{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--navy);color:#fff;font-weight:900}.unit-journey{scroll-margin-top:100px}
.account-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}.account-kpis>div{display:flex;flex-direction:column;padding:16px;border-radius:14px;background:linear-gradient(145deg,#0b1f33,#123b58);color:white}.account-kpis strong{font-size:26px}.account-kpis span{font-size:10px;opacity:.75}.accounts-admin>.card{margin-bottom:14px}.session-live{color:#16865e;font-weight:800}.security-note{margin-top:12px}.teacher-create-account{border:1px solid rgba(213,168,60,.35)}
.video-source-box{padding:14px;border:1px solid var(--line);border-radius:14px;background:#f8fafb}.video-source-tabs{font-size:11px;color:var(--muted);margin-bottom:8px}.upload-drop{margin-top:10px;border:2px dashed #bfd0d9;border-radius:14px;padding:16px;display:grid;gap:7px;place-items:start;background:#fff}.upload-drop span{font-size:10px;color:var(--muted)}.upload-drop input{width:100%}.video-loading{min-height:220px;display:grid;place-items:center;background:#081925;color:#fff;border-radius:14px}.protected-media{user-select:none;-webkit-user-select:none}.protected-resource-viewer{position:relative;height:min(78vh,820px);border-radius:14px;overflow:hidden;background:#17232d}.protected-resource-viewer iframe{width:100%;height:100%;border:0;background:#fff}.protected-badge{position:absolute;z-index:2;top:10px;right:10px;padding:6px 10px;border-radius:999px;background:rgba(11,31,51,.88);color:#fff;font-size:10px;pointer-events:none}
.student-role [data-nav="admin"]{display:none!important}.student-role img,.student-role video{-webkit-user-drag:none}
@media(max-width:900px){.account-chip{display:none}.account-kpis{grid-template-columns:1fr 1fr}.lesson-section-cards{grid-template-columns:1fr}.auth-card{padding:20px;border-radius:20px}}
@media(max-width:560px){.account-kpis{grid-template-columns:1fr}.auth-screen{padding:12px}.auth-card{padding:18px}.lesson-section-cards button{padding:13px}}

/* الإصدار 8: دخول المعلم المباشر */
.teacher-direct-entry{
  padding:16px;
  border:1px solid rgba(201,160,63,.35);
  border-radius:16px;
  background:linear-gradient(135deg,rgba(15,39,64,.06),rgba(201,160,63,.10));
  margin:10px 0 16px;
  text-align:center;
}
.teacher-direct-entry h1{margin:6px 0 4px}
.teacher-direct-icon{
  width:48px;height:48px;margin:auto;display:grid;place-items:center;
  border-radius:50%;background:#0f2740;color:#d9b35f;font-size:22px;
}
.teacher-direct-entry .auth-main-btn{margin-top:10px}
.account-student-name{display:flex;align-items:center;gap:7px}
.account-student-name .account-delete-student{padding:3px 7px;line-height:1.2;font-size:15px}
