/* L2 Header */
.l2-site-header{position:relative;width:100%;max-width:100%;margin:0;z-index:100000;visibility:visible;font-family:"Vazirmatn",sans-serif;color:#172033;}
.l2-site-header.l2-ready{visibility:visible}.l2-header-inner{position:relative;z-index:100000;display:flex;align-items:center;gap:22px;min-height:72px;padding:10px 18px;background:#fff;border:1px solid #e1e7ef;border-radius:18px;box-shadow:0 8px 28px rgba(23,32,51,.08);box-sizing:border-box;overflow:visible;direction:ltr;}
.l2-header-logo{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;font-family:"Vazirmatn",sans-serif;font-size:36px;font-weight:900;line-height:1;letter-spacing:-1.8px;text-decoration:none;direction:ltr;z-index:1;}
.l2-logo-blue{color:#2457A6}.l2-logo-red{color:#D92D3A}
.l2-header-desktop-nav{display:flex;align-items:center;justify-content:flex-start;flex:1;min-width:0;direction:rtl;text-align:right;}
.l2-header-menu{display:flex;align-items:center;justify-content:flex-start;gap:4px;margin:0;padding:0;list-style:none;}
.l2-header-menu-item{position:relative;margin:0;padding:0;list-style:none;}
.l2-header-menu-item>a{display:inline-flex;align-items:center;justify-content:flex-start;text-align:right;min-height:44px;padding:0 15px;color:#26364D;border-radius:11px;text-decoration:none;font-size:15px;font-weight:800;white-space:nowrap;transition:background .18s ease,color .18s ease;}
.l2-header-menu-item>a:hover{background:#eef4fc;color:#2457A6}.l2-header-menu-item.is-active>a{background:transparent;color:#2457A6;box-shadow:none}.l2-header-submenu{position:absolute;top:calc(100% + 8px);right:0;display:none;min-width:180px;padding:8px;background:#fff;border:1px solid #dfe6ef;border-radius:14px;box-shadow:0 12px 28px rgba(23,32,51,.11);z-index:20;}
.l2-header-menu-item:hover>.l2-header-submenu,.l2-header-menu-item:focus-within>.l2-header-submenu{display:block}.l2-header-submenu .l2-header-menu{display:flex;flex-direction:column;align-items:stretch;gap:4px}.l2-header-submenu .l2-header-menu-item>a{display:flex;justify-content:flex-start;width:100%;box-sizing:border-box;font-size:14px;}
.l2-header-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto;position:relative;z-index:30;}

.l2-header-account-trigger{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 16px;background:#D92D3A;color:#fff;border:0;border-radius:13px;text-decoration:none;font-family:inherit;font-size:15px;font-weight:900;line-height:1;cursor:pointer;box-shadow:0 7px 18px rgba(217,45,58,.18);transition:background .18s ease,box-shadow .18s ease,transform .18s ease;}
.l2-header-account-trigger:hover,.l2-header-account-trigger[aria-expanded="true"]{background:#BE2633;color:#fff;box-shadow:0 9px 22px rgba(217,45,58,.23);transform:translateY(-1px)}
.l2-header-account-trigger svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto;}
.l2-account-chevron{font-size:15px;line-height:1;transform:translateY(-1px);transition:transform .18s ease}.l2-header-account-trigger[aria-expanded="true"] .l2-account-chevron{transform:rotate(180deg) translateY(1px)}
.l2-account-menu{position:absolute;top:calc(100% + 10px);right:0;width:240px;padding:10px;background:#fff;border:1px solid #dfe6ef;border-radius:16px;box-shadow:0 14px 34px rgba(23,32,51,.13);z-index:100001;direction:rtl;}
.l2-account-menu-title{padding:7px 10px 9px;color:#667085;font-size:12px;font-weight:700;border-bottom:1px solid #edf1f5;margin-bottom:6px}.l2-account-menu nav{display:flex;flex-direction:column;gap:4px}.l2-account-menu nav a,.l2-account-logout{display:flex;align-items:center;min-height:42px;padding:0 11px;border-radius:10px;color:#26364d;text-decoration:none;font-size:13px;font-weight:800}.l2-account-menu nav a:hover{background:#eef4ff;color:#2457a6}.l2-account-logout{margin-top:6px;background:#fff5f6!important;color:#d92d3a!important}.l2-account-logout:hover{background:#ffe9eb!important;color:#be2633!important}.l2-mobile-account-box{display:flex;flex-direction:column;gap:12px}.l2-mobile-account-title{display:flex;align-items:center;gap:9px;padding:12px 13px;background:#fff;border:1px solid #dce3ec;border-radius:14px;color:#172033;font-size:14px;font-weight:900}.l2-mobile-account-title svg{width:20px;height:20px;fill:none;stroke:#2457a6;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.l2-mobile-account-links{display:flex;flex-direction:column;gap:8px}.l2-mobile-account-links a{display:flex;align-items:center;min-height:48px;padding:0 14px;background:#e8eef6;border:1px solid #d3deea;border-radius:12px;color:#263f63;text-decoration:none;font-size:13px;font-weight:850}.l2-mobile-account-links a:hover{background:#eef4ff;color:#2457a6;border-color:#cbdcf5}.l2-mobile-account-links .l2-account-logout{justify-content:center;background:#fff5f6;color:#d92d3a;border-color:#f0d1d5}
.l2-header-login{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 18px;background:#D92D3A;color:#fff;border:0;border-radius:13px;text-decoration:none;font-size:15px;font-weight:900;line-height:1;box-shadow:0 7px 18px rgba(217,45,58,.18);transition:background .18s ease,box-shadow .18s ease,transform .18s ease;}
.l2-header-login:hover{background:#BE2633;color:#fff;box-shadow:0 9px 22px rgba(217,45,58,.23);transform:translateY(-1px)}
.l2-header-login svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto;}
.l2-header-notification-trigger{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;min-width:46px;padding:0;background:#fff;color:#2457A6;border:1px solid #dce5ef;border-radius:13px;cursor:pointer;box-shadow:0 7px 18px rgba(23,32,51,.07);transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;box-sizing:border-box;}.l2-header-notification-trigger:hover,.l2-header-notification-trigger[aria-expanded="true"]{background:#eef4ff;border-color:#cbdcf5;color:#2457A6;box-shadow:0 9px 22px rgba(23,63,122,.11);transform:translateY(-1px)}.l2-header-notification-trigger svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.l2-header-toggle{display:none;align-items:center;justify-content:center;flex-direction:column;gap:4px;width:46px;height:46px;padding:0;background:#eef4fc;color:#2457A6;border:1px solid #d8e5f7;border-radius:12px;cursor:pointer;}
.l2-header-toggle span{display:block;width:20px;height:2px;border-radius:2px;background:currentColor;}
.l2-mobile-backdrop,.l2-mobile-panel{display:none}
@media (max-width:1024px){
 .l2-site-header{width:100%;max-width:100%;}
 .l2-header-inner{min-height:68px;padding:9px 14px;border-radius:15px}.l2-header-desktop-nav{display:none}.l2-header-actions{margin-left:auto;margin-right:0}.l2-header-toggle{display:flex}.l2-header-logo{font-size:34px}.l2-mobile-backdrop{display:block;position:fixed;inset:0;background:rgba(15,23,42,.22);opacity:0;visibility:hidden;pointer-events:none;z-index:9997;}
 .l2-mobile-panel{display:flex;flex-direction:column;position:fixed;top:68px;right:0;bottom:0;width:320px;max-width:85vw;padding:18px;background:#f7f9fc;border:1px solid #e1e7ef;border-right:0;border-bottom:0;border-radius:20px 0 0 0;box-shadow:-12px 0 35px rgba(15,23,42,.14);visibility:hidden;opacity:0;z-index:9998;overflow-y:auto;box-sizing:border-box;}
 .l2-mobile-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:15px;margin-bottom:12px;border-bottom:1px solid #e1e7ef}.l2-mobile-panel-head .l2-header-logo{font-size:30px}.l2-mobile-close{width:40px;height:40px;border:1px solid #dce3ec;border-radius:11px;background:#fff;color:#172033;font-size:26px;line-height:1;cursor:pointer}.l2-mobile-nav{display:block}.l2-mobile-menu{display:flex;flex-direction:column;gap:9px;margin:0;padding:0;list-style:none}.l2-mobile-menu .l2-header-menu-item{width:100%}.l2-mobile-menu .l2-header-menu-item>a{display:flex;width:100%;min-height:54px;padding:0 17px;box-sizing:border-box;background:#fff;border:1px solid #dce3ec;border-radius:14px;color:#172033;font-size:15px;font-weight:800;justify-content:flex-start;}.l2-mobile-menu .l2-header-menu-item>a:hover{background:#eef4ff;color:#2457A6;border-color:#cbdcf5}.l2-mobile-menu .l2-header-menu-item.is-active>a{background:#fff;color:#2457A6;border-color:#d8e5f7}.l2-mobile-menu .l2-header-submenu{position:static;display:block;min-width:0;margin:7px 0 0;padding:0 9px 0 0;border:0;background:transparent;border-radius:0;box-shadow:none}.l2-mobile-menu .l2-header-submenu .l2-header-menu-item>a{min-height:46px;background:#f0f3f7;border-color:#dce3ec;font-size:14px}.l2-mobile-login-wrap{margin-top:auto;padding-top:16px}.l2-header-login-mobile{width:100%;box-sizing:border-box;}
 .l2-site-header.is-open .l2-mobile-panel{visibility:visible;opacity:1}.l2-site-header.is-open .l2-mobile-backdrop{opacity:1;visibility:visible;pointer-events:auto}.l2-site-header.is-open .l2-header-toggle{background:#2457A6;color:#fff;border-color:#2457A6}
 body.l2-menu-open{overflow:hidden}
}
@media (max-width:767px){.l2-site-header{width:100%;max-width:100%;} .l2-header-inner{min-height:64px;padding:8px 11px;border-radius:14px;direction:ltr}.l2-header-logo{font-size:30px}.l2-header-actions{margin-left:auto;margin-right:0}.l2-header-notification-trigger{width:44px;height:44px;min-width:44px}.l2-header-login{display:none}.l2-mobile-panel{top:64px}.l2-header-toggle{width:44px;height:44px}.l2-mobile-panel{padding:15px}.l2-mobile-panel-head{padding-bottom:12px;margin-bottom:10px}}


/* Account dashboard + wallet card */
.l2-account-dashboard-link{display:flex;align-items:center;gap:9px;min-height:44px;padding:0 12px;border-radius:11px;background:#eef4fc;color:#173f7a!important;text-decoration:none;font-size:14px!important;font-weight:900!important}
.l2-account-dashboard-link:hover{background:#e3edf9!important;color:#173f7a!important}
.l2-account-dashboard-icon{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;background:#fff;color:#2457a6;font-size:17px;line-height:1}
.l2-wallet-card{position:relative;overflow:hidden;margin-top:8px;padding:14px 14px 13px;border-radius:14px;background:linear-gradient(135deg,#173f7a 0%,#2457a6 62%,#d92d3a 170%);color:#fff;box-shadow:0 10px 24px rgba(23,63,122,.20)}
.l2-wallet-card-top{position:relative;z-index:1;display:flex;align-items:center;gap:8px}
.l2-wallet-icon{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:9px;background:rgba(255,255,255,.14);font-size:16px}
.l2-wallet-label{font-size:11px;font-weight:800;opacity:.88}
.l2-wallet-balance{position:relative;z-index:1;display:flex;align-items:baseline;gap:6px;margin-top:10px;direction:rtl}
.l2-wallet-balance strong{font-size:22px;font-weight:950;letter-spacing:.1px}
.l2-wallet-balance span{font-size:11px;font-weight:800;opacity:.9}
.l2-wallet-glow{position:absolute;left:-16px;bottom:-24px;width:100px;height:100px;border-radius:50%;background:rgba(255,255,255,.12);filter:blur(2px)}
.l2-mobile-account-links .l2-wallet-card{margin-top:0}

/* v1.2.0 account cleanup */
.l2-account-dashboard-icon,.l2-wallet-icon{display:none!important}


/* Mobile Instagram-style navigation */
.l2-mobile-bottom-nav{display:none}
.l2-mobile-profile-backdrop,.l2-mobile-profile-drawer{display:none}
@media (max-width:767px){
  .l2-site-header[data-l2-auth="logged-out"] .l2-mobile-bottom-nav{display:none!important}
  body.l2-mobile-bottom-nav-active{scroll-padding-bottom:calc(74px + env(safe-area-inset-bottom))}
  body.l2-mobile-bottom-nav-active::after{content:"";display:block;width:100%;height:calc(74px + env(safe-area-inset-bottom));pointer-events:none}
  .l2-site-header{padding-bottom:0!important}
  .l2-header-toggle{display:none!important}
  .l2-mobile-panel,.l2-mobile-backdrop{display:none!important}
  .l2-header-inner{min-height:58px;padding:7px 11px;border-radius:13px}
  .l2-header-actions{margin-right:auto}
  .l2-header-account-trigger{display:none!important}
  .l2-header-account-trigger span,.l2-account-chevron{display:none}
  .l2-header-account-trigger svg{width:21px;height:21px}
  .l2-mobile-bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:100000;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;height:62px;padding:6px 8px calc(6px + env(safe-area-inset-bottom));background:rgba(255,255,255,.98);border-top:1px solid #e1e7ef;box-shadow:0 -7px 22px rgba(23,32,51,.08);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);direction:ltr;box-sizing:border-box}
  .l2-mobile-bottom-item{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:50px;padding:0;border:0;background:transparent;color:#667085;text-decoration:none;cursor:pointer;box-sizing:border-box;appearance:none;-webkit-appearance:none;font:inherit;outline:none}
  .l2-mobile-bottom-item svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
  .l2-mobile-bottom-item img{width:29px;height:29px;border-radius:50%;object-fit:cover;border:1.5px solid #dce3ec;box-sizing:border-box}
  .l2-mobile-bottom-item-center svg{width:26px;height:26px}
  .l2-mobile-bottom-item:active{transform:scale(.95)}
  .l2-mobile-bottom-item.is-active{color:#172033}
  .l2-mobile-bottom-item.is-active::after{content:"";position:absolute;bottom:2px;left:50%;width:5px;height:5px;border-radius:50%;background:#2457a6;transform:translateX(-50%)}
  .l2-mobile-profile-backdrop{position:fixed;inset:0;z-index:100001;display:block;background:rgba(15,23,42,.25);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,visibility .2s ease}
  .l2-mobile-profile-drawer{position:fixed;top:0;right:0;bottom:0;width:min(335px,88vw);z-index:100002;display:flex;flex-direction:column;background:#f7f9fc;border-left:1px solid #e1e7ef;box-shadow:-16px 0 42px rgba(15,23,42,.16);visibility:hidden;opacity:0;transform:translateX(100%);transition:transform .24s ease,opacity .2s ease,visibility .2s ease;box-sizing:border-box;overflow:hidden;direction:rtl}
  .l2-site-header.l2-profile-open .l2-mobile-profile-backdrop{opacity:1;visibility:visible;pointer-events:auto}
  .l2-site-header.l2-profile-open .l2-mobile-profile-drawer{opacity:1;visibility:visible;transform:translateX(0)}
  .l2-site-header.l2-profile-open{z-index:100003}
  .l2-mobile-profile-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 16px 16px;background:#fff;border-bottom:1px solid #e1e7ef}
  .l2-mobile-profile-user{display:flex;align-items:center;gap:12px;min-width:0}
  .l2-mobile-profile-avatar-wrap{position:relative;flex:0 0 64px;width:64px;height:64px;overflow:visible}
  .l2-mobile-profile-user img.l2-mobile-profile-avatar,.l2-mobile-profile-fallback{width:64px;height:64px;min-width:64px;border-radius:50%;object-fit:cover;border:1px solid #dfe6ef;background:#eef4fc;color:#2457a6;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
  .l2-mobile-profile-fallback svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .l2-mobile-profile-avatar-edit{position:absolute;left:-3px;bottom:-3px;width:27px;height:27px;min-width:27px;padding:0;border:2px solid #fff;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#2457a6;color:#fff;font:700 14px/1 inherit;cursor:pointer;box-shadow:0 3px 10px rgba(23,63,122,.22);box-sizing:border-box;z-index:3}
  .l2-mobile-profile-avatar-edit:active{transform:scale(.95)}
  .l2-mobile-profile-avatar-edit.is-uploading{opacity:.65;cursor:wait}
  .l2-mobile-profile-avatar-input{display:none!important}
  .l2-mobile-profile-user strong,.l2-mobile-profile-user span{display:block}
  .l2-mobile-profile-user strong{color:#172033;font-size:15px;font-weight:900;line-height:1.5;word-break:break-word}
  .l2-mobile-profile-user span{margin-top:2px;color:#667085;font-size:11px;font-weight:700}
  .l2-mobile-profile-close{width:40px;height:40px;min-width:40px;border:1px solid #dce3ec;border-radius:11px;background:#fff;color:#172033;font-size:26px;line-height:1;cursor:pointer}
  .l2-mobile-profile-body{flex:1;overflow-y:auto;padding:16px}
  .l2-mobile-profile-dashboard{display:flex;align-items:center;gap:10px;min-height:52px;padding:0 14px;background:#eef4fc;border:1px solid #d7e3f3;border-radius:14px;color:#173f7a;text-decoration:none;font-size:14px;font-weight:900;box-sizing:border-box}
  .l2-mobile-profile-icon{display:inline-flex;align-items:center;justify-content:center;width:31px;height:31px;border-radius:9px;background:#fff;color:#2457a6}
  .l2-mobile-profile-icon svg{width:18px;height:18px;fill:currentColor}
  .l2-mobile-profile-pages{margin-top:18px}
  .l2-mobile-profile-pages-title{display:block;margin:0 4px 8px;color:#98a2b3;font-size:11px;font-weight:800}
  .l2-mobile-profile-pages a,
  .l2-mobile-profile-pages .l2-mobile-dashboard-tab{display:flex;align-items:center;width:100%;min-height:48px;margin-top:7px;padding:0 13px;background:#e8eef6;border:1px solid #d3deea;border-radius:12px;color:#263f63;text-decoration:none;font:inherit;font-size:13px;font-weight:850;box-sizing:border-box;text-align:right;cursor:pointer}
  .l2-mobile-profile-pages a:active,
  .l2-mobile-profile-pages .l2-mobile-dashboard-tab:active{background:#eef4ff}
  .l2-mobile-profile-dashboard.l2-mobile-completion-item{background:#fff4f6;border-color:#efb3bd;color:#c51f38}
  .l2-mobile-profile-dashboard.l2-mobile-completion-item .l2-mobile-profile-icon{background:#fff0f2;color:#c51f38}
  .l2-mobile-profile-dashboard.l2-mobile-completion-item .l2-mobile-completion-warning{display:inline}
  .l2-mobile-profile-dashboard.l2-mobile-completion-item .l2-mobile-completion-default{display:none}
  .l2-mobile-profile-footer{padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e1e7ef}
  .l2-mobile-profile-home{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;margin-bottom:8px;background:#eef4fc;border:1px solid #d7e3f3;border-radius:12px;color:#173f7a;text-decoration:none;font-size:13px;font-weight:900}
  .l2-mobile-profile-home svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
  .l2-mobile-profile-home:active{background:#e3edf9}
  .l2-mobile-profile-logout{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;background:#fff5f6;border:1px solid #f0d1d5;border-radius:12px;color:#d92d3a;text-decoration:none;font-size:13px;font-weight:900}
  .l2-mobile-profile-logout svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
  .l2-mobile-profile-login{position:relative;z-index:20;pointer-events:auto!important;display:flex;align-items:center;justify-content:center;min-height:48px;background:#2457a6;border-radius:12px;color:#fff;text-decoration:none;font-size:13px;font-weight:900;cursor:pointer;touch-action:manipulation}
  body.l2-profile-menu-open{overflow:hidden}
}
@media (max-width:380px){
  .l2-mobile-bottom-nav{height:60px;padding-inline:4px}
  .l2-mobile-bottom-item svg{width:22px;height:22px}
  .l2-mobile-profile-drawer{width:92vw}
}

/* Mobile dashboard header is represented inside the profile drawer instead of a second topbar. */
@media (max-width:767px){
  .l2-teacher-dashboard .l2-td-topbar,
  .l2-student-dashboard .l2-student-header-root{display:none!important}
  .l2-mobile-profile-user{min-width:0;align-items:flex-start}
  .l2-mobile-profile-user-copy{min-width:0;display:block}
  .l2-mobile-dashboard-user-info{display:flex;flex-direction:column;gap:2px;margin-top:5px}
  .l2-mobile-dashboard-panel-label{margin:0!important;color:#2457a6!important;font-size:10px!important;font-weight:900!important;line-height:1.45}
  .l2-mobile-dashboard-greeting{margin:0!important;color:#667085!important;font-size:10px!important;font-weight:700!important;line-height:1.45}
  .l2-mobile-dashboard-status{display:inline-flex;align-items:center;justify-content:center;gap:5px;align-self:flex-start;margin-top:3px;padding:5px 9px;border:1px solid #d7e3f3;border-radius:999px;background:#eef4fc;color:#667085;font-size:9px;font-weight:850;line-height:1.25;white-space:nowrap}
  .l2-mobile-dashboard-status.is-active{color:#18794e;background:#ecfdf3;border-color:#b7e4c7}
  .l2-mobile-dashboard-status.is-inactive{color:#b54708;background:#fff7ed;border-color:#f5d3ad}
  .l2-mobile-dashboard-status-dot{width:6px;height:6px;border-radius:50%;background:currentColor;flex:0 0 6px}
  .l2-mobile-dashboard-status.is-inactive{cursor:pointer}
  .l2-mobile-dashboard-status-warning{margin-top:6px;padding:9px 11px;border:1px solid #f5d3ad;border-radius:12px;background:#fffaf5;color:#7a3d05;font-size:9px;line-height:1.7;box-sizing:border-box}
  .l2-mobile-dashboard-status-warning[hidden]{display:none!important}
  .l2-mobile-dashboard-status-warning strong{display:block;margin-bottom:2px;font-size:10px;font-weight:900;color:#8a4508}
  .l2-mobile-dashboard-status-warning span{display:block;color:#7a3d05;font-weight:700}
  .l2-mobile-dashboard-status-warning ul{margin:4px 0 0;padding:0 14px 0 0}
  .l2-mobile-dashboard-status-warning li{margin:1px 0;padding:0}
}

/* Final mobile dashboard-header suppression: higher specificity wins over dashboard theme !important rules. */
@media (max-width:767px){
  .l2-td.l2-v7.l2-teacher-dashboard .l2-td-topbar,
  .l2-student-dashboard.l2-td.l2-v7 .l2-student-header-root{display:none!important}
}

/* Mobile dashboard navigation: the dashboard options live in a collapsible submenu. */
@media (max-width:767px){
  .l2-mobile-profile-dashboard{position:relative;justify-content:flex-start;cursor:pointer;width:100%;font:inherit;text-align:right}
  .l2-mobile-profile-dashboard .l2-mobile-profile-chevron{margin-inline-start:auto;font-size:18px;line-height:1;transition:transform .18s ease}
  .l2-mobile-profile-dashboard[aria-expanded="true"] .l2-mobile-profile-chevron{transform:rotate(180deg)}
  .l2-mobile-profile-pages[hidden]{display:none!important}
  .l2-mobile-profile-pages{margin-top:9px;padding:0 2px}
  .l2-mobile-profile-pages a,
  .l2-mobile-profile-pages .l2-mobile-dashboard-tab{display:flex;align-items:center;min-height:48px;margin-top:7px;padding:0 13px;background:#e8eef6;border:1px solid #d3deea;border-radius:12px;color:#263f63;text-decoration:none;font-size:13px;font-weight:850;box-sizing:border-box;text-align:right;cursor:pointer;font-family:inherit}
}

/* Hide the dashboard's original desktop side navigation on phones; the global profile drawer replaces it. */
@media (max-width:767px){
  .l2-student-dashboard.l2-td.l2-v7 .l2-td-sidebar,
  .l2-student-dashboard .l2-teacher-dashboard-sidebar,
  .l2-connected-student-dashboard .l2-teacher-dashboard-sidebar{display:none!important;visibility:hidden!important;width:0!important;max-width:0!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important}
}

/* Mobile profile drawer: public/site pages are top-level links, separate from the Dashboard submenu. */
@media (max-width:767px){
  .l2-mobile-profile-site-pages{
    display:flex;
    flex-direction:column;
    gap:7px;
    margin-top:14px;
    padding:0 2px;
  }
  .l2-mobile-profile-site-link{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    width:100%;
    min-height:48px;
    margin:0;
    padding:0 13px;
    box-sizing:border-box;
    background:#fff;
    border:1px solid #dce3ec;
    border-radius:12px;
    color:#26364d;
    text-decoration:none;
    font-size:13px;
    font-weight:800;
  }
  .l2-mobile-profile-site-link:hover,
  .l2-mobile-profile-site-link:focus-visible,
  .l2-mobile-profile-site-link:active{
    background:#eef4ff;
    color:#2457a6;
    border-color:#cbdcf5;
    outline:none;
  }
}

/* Mobile teacher class-management submenu: classes, pricing and availability live under "مدیریت کلاس". */
@media (max-width:767px){
  .l2-mobile-profile-submenu-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;margin-top:7px;padding:0 13px;background:#fff;border:1px solid #dce3ec;border-radius:12px;color:#26364d;font:inherit;font-size:13px;font-weight:800;cursor:pointer;box-sizing:border-box;text-align:right;}
  .l2-mobile-profile-submenu-toggle:active{background:#eef4ff}
  .l2-mobile-profile-submenu-chevron{margin-inline-start:auto;font-size:17px;line-height:1;transition:transform .18s ease}
  .l2-mobile-profile-subpages .l2-mobile-completion-item,
  .l2-mobile-profile-submenu-toggle.l2-mobile-completion-item{background:#fff4f6;border-color:#efb3bd;color:#c51f38}
  .l2-mobile-profile-subpages .l2-mobile-completion-item .l2-mobile-completion-warning,
  .l2-mobile-profile-submenu-toggle.l2-mobile-completion-item .l2-mobile-completion-warning{display:inline}
  .l2-mobile-profile-subpages .l2-mobile-completion-item .l2-mobile-completion-default,
  .l2-mobile-profile-submenu-toggle.l2-mobile-completion-item .l2-mobile-completion-default{display:none}
  .l2-mobile-completion-label{min-width:0;display:inline-flex;align-items:center;font:inherit}
  .l2-mobile-completion-warning{display:none;font:inherit;font-weight:900}
  .l2-mobile-completion-dot{width:7px;height:7px;min-width:7px;border-radius:50%;background:#d62845;box-shadow:0 0 0 3px rgba(214,40,69,.10);margin-inline-start:7px;flex:0 0 auto}
  .l2-mobile-profile-submenu-toggle[aria-expanded="true"] .l2-mobile-profile-submenu-chevron{transform:rotate(180deg)}
  .l2-mobile-profile-subpages{margin:7px 0 0;padding:0 9px 0 0;}
  .l2-mobile-profile-subpages[hidden]{display:none!important}
  .l2-mobile-profile-subpages a,
  .l2-mobile-profile-subpages .l2-mobile-dashboard-tab{display:flex;align-items:center;width:100%;min-height:44px;margin-top:6px;padding:0 12px;background:#e8eef6;border:1px solid #d3deea;border-radius:11px;color:#263f63;text-decoration:none;font:inherit;font-size:12px;font-weight:850;box-sizing:border-box;text-align:right;cursor:pointer;}
  .l2-mobile-profile-subpages .l2-mobile-dashboard-tab:active{background:#eef4ff;}
  .l2-mobile-profile-subpages a:active{background:#eef4ff}
  .l2-teacher-dashboard .l2-td-management-tabs{display:none!important;}
}

/* Mobile: hide only the teacher management tab buttons from the dashboard UI.
   Navigation remains available through the mobile profile drawer submenu. */
@media (max-width:767px){
  .l2-td.l2-v7.l2-teacher-dashboard .l2-td-teaching-page > .l2-td-management-tabs,
  .l2-teacher-dashboard .l2-td-teaching-page > .l2-td-management-tabs{
    display:none!important;
    visibility:hidden!important;
    height:0!important;
    max-height:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    overflow:hidden!important;
  }
  .l2-td.l2-v7.l2-teacher-dashboard .l2-td-teaching-page > .l2-td-management-tabs > .l2-td-section-tab{
    display:none!important;
  }
}

/* Final top-header alignment: logo left, notifications right. */
@media (max-width:767px){
  .l2-header-inner{direction:ltr!important;}
  .l2-header-actions{margin-left:auto!important;margin-right:0!important;}
  .l2-header-notification-trigger{display:inline-flex!important;}
}

/* Viewport-safe global header: never widen the page beyond its containing block. */
.l2-site-header{
  width:100%!important;
  max-width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
  background:#fff;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.l2-header-inner{
  width:calc(100% - 32px)!important;
  max-width:1200px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  min-height:72px;
  padding:8px 0!important;
  background:#fff;
  border:0!important;
  border-bottom:1px solid #e7ebf0!important;
  border-radius:0!important;
  box-shadow:none!important;
}

@media (max-width:1024px){
  .l2-header-inner{min-height:64px;padding:7px 14px;}
}

@media (max-width:767px){
  .l2-header-inner{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;padding:7px 11px!important;}
}

/* Header notification request count */
.l2-header-notification-trigger{position:relative;}
.l2-header-notification-badge{position:absolute;top:-5px;right:-5px;min-width:19px;height:19px;padding:0 5px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border-radius:999px;background:#D92D3A;color:#fff;border:2px solid #fff;font-family:inherit;font-size:10px;font-weight:900;line-height:1;direction:ltr;box-shadow:0 3px 9px rgba(217,45,58,.22);}
@media (max-width:767px){.l2-header-notification-badge{top:-3px;right:-3px;min-width:18px;height:18px;font-size:9px;}}
@media (min-width:768px){.l2-header-notification-trigger{display:inline-flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}}

/* Mobile guest login: center in the top header without affecting the existing desktop layout. */
@media (max-width: 1024px){
  /* Guest login is centered against the whole header, not the right-side actions box. */
  .l2-header-inner{position:relative;}
  .l2-header-actions:has(.l2-header-guest-login){position:static!important;margin-left:0!important;margin-right:0!important;}
  .l2-header-guest-login{
    position:absolute!important;
    left:50%!important;
    right:auto!important;
    top:50%!important;
    margin:0!important;
    transform:translate(-50%,-50%)!important;
    z-index:40;
    background:#2457A6!important;
    color:#fff!important;
    border-color:#2457A6!important;
    box-shadow:0 7px 18px rgba(36,87,166,.18)!important;
  }
  .l2-header-guest-login:hover{
    background:#1d4b91!important;
    color:#fff!important;
    box-shadow:0 9px 22px rgba(36,87,166,.23)!important;
    transform:translate(-50%,-50%)!important;
  }
}
@media (max-width:767px){
  .l2-header-guest-login{
    display:inline-flex!important;
    min-height:42px!important;
    padding:0 18px!important;
    font-size:14px!important;
    border-radius:12px!important;
  }
}

/* Mobile final: swap guest-login and logo positions without affecting tablet/desktop. */
@media (max-width:767px){
  .l2-header-inner{position:relative!important;direction:ltr!important;}
  .l2-header-inner > .l2-header-logo{
    position:absolute!important;
    left:50%!important;
    right:auto!important;
    top:50%!important;
    margin:0!important;
    transform:translate(-50%,-50%)!important;
    z-index:35!important;
  }
  .l2-header-actions{
    position:static!important;
    width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
    justify-content:flex-end!important;
  }
  .l2-header-guest-login{
    left:11px!important;
    right:auto!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    z-index:40!important;
  }
  .l2-header-guest-login:hover{
    transform:translateY(-50%)!important;
  }
}

/* Final header content density: narrower container and larger side gutters. */
@media (min-width:1025px){
  .l2-header-inner{
    width:calc(100% - 64px)!important;
    max-width:1120px!important;
    padding-left:12px!important;
    padding-right:12px!important;
  }
}
/* Desktop only: place account/login action at the left and L2 logo at the right. */
@media (min-width:1025px){
  .l2-header-inner{
    flex-direction:row-reverse!important;
  }
}
@media (min-width:768px) and (max-width:1024px){
  .l2-header-inner{
    width:calc(100% - 48px)!important;
    max-width:1120px!important;
    padding-left:12px!important;
    padding-right:12px!important;
  }
}

/* Final mobile + tablet header placement:
 * logged-out  -> Login left, L2 logo right
 * logged-in   -> L2 logo centered, notification right
 */
@media (max-width:1024px){
  .l2-header-inner{
    position:relative!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    direction:ltr!important;
  }
  .l2-header-desktop-nav,
  .l2-header-toggle{
    display:none!important;
  }
  .l2-header-actions{
    position:static!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    display:block!important;
  }

  /* Guest / logged-out */
  .l2-site-header[data-l2-auth="logged-out"] .l2-header-inner > .l2-header-logo{
    position:absolute!important;
    right:14px!important;
    left:auto!important;
    top:50%!important;
    margin:0!important;
    transform:translateY(-50%)!important;
    z-index:40!important;
  }
  .l2-site-header[data-l2-auth="logged-out"] .l2-header-guest-login{
    display:inline-flex!important;
    position:absolute!important;
    left:14px!important;
    right:auto!important;
    top:50%!important;
    margin:0!important;
    transform:translateY(-50%)!important;
    z-index:41!important;
    background:#2457A6!important;
    color:#fff!important;
    border-color:#2457A6!important;
  }
  .l2-site-header[data-l2-auth="logged-out"] .l2-header-guest-login:hover{
    transform:translateY(-50%)!important;
    background:#1d4b91!important;
    color:#fff!important;
  }

  /* Logged-in: centered brand + notification on the right. */
  .l2-site-header[data-l2-auth="logged-in"] .l2-header-inner > .l2-header-logo{
    position:absolute!important;
    left:50%!important;
    right:auto!important;
    top:50%!important;
    margin:0!important;
    transform:translate(-50%,-50%)!important;
    z-index:40!important;
  }
  .l2-site-header[data-l2-auth="logged-in"] .l2-header-account-trigger{
    display:none!important;
  }
  .l2-site-header[data-l2-auth="logged-in"] .l2-header-notification-trigger{
    position:absolute!important;
    right:14px!important;
    left:auto!important;
    top:50%!important;
    margin:0!important;
    transform:translateY(-50%)!important;
    z-index:41!important;
    display:inline-flex!important;
  }
}

@media (max-width:767px){
  .l2-site-header[data-l2-auth="logged-out"] .l2-header-inner > .l2-header-logo{right:11px!important;}
  .l2-site-header[data-l2-auth="logged-out"] .l2-header-guest-login{left:11px!important;}
  .l2-site-header[data-l2-auth="logged-in"] .l2-header-notification-trigger{right:11px!important;}
}

/* Final logged-in mobile/tablet header layout:
 * notification right, L2 centered, dashboard/login action left.
 * Desktop remains unchanged.
 */
@media (max-width:1024px){
  .l2-site-header[data-l2-auth="logged-in"] .l2-header-account-trigger{
    display:inline-flex!important;
    position:absolute!important;
    left:14px!important;
    right:auto!important;
    top:50%!important;
    margin:0!important;
    transform:translateY(-50%)!important;
    z-index:41!important;
    min-height:42px!important;
    padding:0 16px!important;
    background:#2457A6!important;
    color:#fff!important;
    border-color:#2457A6!important;
    box-shadow:0 7px 18px rgba(36,87,166,.18)!important;
  }
  .l2-site-header[data-l2-auth="logged-in"] .l2-header-account-trigger:hover{
    transform:translateY(-50%)!important;
    background:#1d4b91!important;
    color:#fff!important;
  }
  .l2-site-header[data-l2-auth="logged-in"] .l2-header-account-trigger span{
    display:block!important;
    max-width:150px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .l2-site-header[data-l2-auth="logged-in"] .l2-header-account-trigger::after{
    content:none!important;
    display:none!important;
  }
}
@media (max-width:767px){
  .l2-site-header[data-l2-auth="logged-in"] .l2-header-account-trigger{
    left:11px!important;
    min-height:42px!important;
    padding:0 15px!important;
    border-radius:12px!important;
  }
}

/* Final mobile/tablet logged-in swap:
 * account name left, L2 logo center, notification right ->
 * L2 logo left, account name center, notification right.
 * Logged-out layout remains unchanged.
 */
@media (max-width:1024px){
  .l2-site-header[data-l2-auth="logged-in"] .l2-header-inner > .l2-header-logo{
    left:14px!important;
    right:auto!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    z-index:40!important;
  }
  .l2-site-header[data-l2-auth="logged-in"] .l2-header-account-trigger{
    left:50%!important;
    right:auto!important;
    top:50%!important;
    transform:translate(-50%,-50%)!important;
    z-index:41!important;
  }
  .l2-site-header[data-l2-auth="logged-in"] .l2-header-account-trigger:hover{
    transform:translate(-50%,-50%)!important;
  }
}
@media (max-width:767px){
  .l2-site-header[data-l2-auth="logged-in"] .l2-header-inner > .l2-header-logo{left:11px!important;}
  .l2-site-header[data-l2-auth="logged-in"] .l2-header-account-trigger{
    left:50%!important;
    transform:translate(-50%,-50%)!important;
  }
  .l2-site-header[data-l2-auth="logged-in"] .l2-header-account-trigger:hover{
    transform:translate(-50%,-50%)!important;
  }
}

/* Final logged-in mobile/tablet notification visibility and placement. */
@media (max-width:1024px){
  .l2-site-header[data-l2-auth="logged-in"] .l2-header-notification-trigger[data-l2-header-notification]{
    display:inline-flex!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    position:absolute!important;
    right:14px!important;
    left:auto!important;
    top:50%!important;
    margin:0!important;
    transform:translateY(-50%)!important;
    z-index:100!important;
  }
}
@media (max-width:767px){
  .l2-site-header[data-l2-auth="logged-in"] .l2-header-notification-trigger[data-l2-header-notification]{
    right:11px!important;
  }
}

/* Final mobile/tablet side gutters: keep header controls comfortably inset from viewport edges. */
@media (min-width:768px) and (max-width:1024px){
  .l2-header-inner{padding-left:20px!important;padding-right:20px!important;}
  .l2-site-header[data-l2-auth="logged-out"] .l2-header-inner > .l2-header-logo{right:20px!important;}
  .l2-site-header[data-l2-auth="logged-out"] .l2-header-guest-login{left:20px!important;}
  .l2-site-header[data-l2-auth="logged-in"] .l2-header-inner > .l2-header-logo{left:20px!important;}
  .l2-site-header[data-l2-auth="logged-in"] .l2-header-account-trigger{left:50%!important;}
  .l2-site-header[data-l2-auth="logged-in"] .l2-header-notification-trigger[data-l2-header-notification]{right:20px!important;}
}
@media (max-width:767px){
  .l2-header-inner{padding-left:17px!important;padding-right:17px!important;}
  .l2-site-header[data-l2-auth="logged-out"] .l2-header-inner > .l2-header-logo{right:17px!important;}
  .l2-site-header[data-l2-auth="logged-out"] .l2-header-guest-login{left:17px!important;}
  .l2-site-header[data-l2-auth="logged-in"] .l2-header-inner > .l2-header-logo{left:17px!important;}
  .l2-site-header[data-l2-auth="logged-in"] .l2-header-account-trigger{left:50%!important;}
  .l2-site-header[data-l2-auth="logged-in"] .l2-header-notification-trigger[data-l2-header-notification]{right:17px!important;}
}

/* Final mobile profile cleanup: remove legacy role/greeting labels from the drawer header. */
@media (max-width:767px){
  .l2-mobile-profile-user-copy > span{display:none!important}
  .l2-mobile-dashboard-greeting{display:none!important}
}

/* Final mobile sidebar drawer header */
@media(max-width:767px){
  .l2-site-header .l2-mobile-profile-drawer .l2-mobile-profile-head{
    position:sticky!important;
    top:0!important;
    z-index:5!important;
    width:100%!important;
    min-height:82px!important;
    height:auto!important;
    box-sizing:border-box!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    padding:12px 14px!important;
    margin:0!important;
    background:#fff!important;
    border-bottom:1px solid #e3e8ef!important;
    box-shadow:0 4px 14px rgba(23,32,51,.05)!important;
  }
  .l2-site-header .l2-mobile-profile-drawer .l2-mobile-profile-user{
    flex:1 1 auto!important;
    min-width:0!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:10px!important;
  }
  .l2-site-header .l2-mobile-profile-drawer .l2-mobile-profile-avatar-wrap{
    flex:0 0 50px!important;
    width:50px!important;
    height:50px!important;
  }
  .l2-site-header .l2-mobile-profile-drawer .l2-mobile-profile-user img.l2-mobile-profile-avatar,
  .l2-site-header .l2-mobile-profile-drawer .l2-mobile-profile-fallback{
    width:50px!important;
    height:50px!important;
    min-width:50px!important;
    border-radius:15px!important;
    border:1px solid #d8e2ee!important;
    background:#edf4fc!important;
  }
  .l2-site-header .l2-mobile-profile-drawer .l2-mobile-profile-fallback svg{width:25px!important;height:25px!important}
  .l2-site-header .l2-mobile-profile-drawer .l2-mobile-profile-user-copy,
  .l2-site-header .l2-mobile-profile-drawer .l2-mobile-profile-user-copy strong,
  .l2-site-header .l2-mobile-profile-drawer .l2-mobile-profile-user-copy span{
    min-width:0!important;
    max-width:100%!important;
  }
  .l2-site-header .l2-mobile-profile-drawer .l2-mobile-profile-user-copy strong{
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    color:#172033!important;
    font-size:14px!important;
    font-weight:950!important;
  }
  .l2-site-header .l2-mobile-profile-drawer .l2-mobile-profile-user-copy span{
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    color:#667085!important;
    font-size:10px!important;
  }
  .l2-site-header .l2-mobile-profile-drawer .l2-mobile-profile-close{
    flex:0 0 40px!important;
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    padding:0!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    border:1px solid #dce3ec!important;
    border-radius:12px!important;
    background:#f8fafc!important;
    color:#344054!important;
    font-size:23px!important;
    font-weight:700!important;
    line-height:1!important;
  }
  .l2-site-header .l2-mobile-profile-drawer .l2-mobile-profile-close:active{transform:scale(.96)!important}
}

/* Mobile teacher profile status in drawer header */
@media(max-width:767px){
  .l2-site-header .l2-mobile-profile-drawer .l2-mobile-profile-status{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:5px!important;
    width:max-content!important;
    max-width:100%!important;
    min-height:22px!important;
    margin-top:5px!important;
    padding:2px 8px!important;
    border:1px solid #d7e3f3!important;
    border-radius:999px!important;
    background:#eef4fc!important;
    color:#667085!important;
    font-size:9px!important;
    font-weight:850!important;
    line-height:1.3!important;
    white-space:nowrap!important;
    box-sizing:border-box!important;
  }
  .l2-site-header .l2-mobile-profile-drawer .l2-mobile-profile-status.is-active{
    color:#18794e!important;
    background:#ecfdf3!important;
    border-color:#b7e4c7!important;
  }
  .l2-site-header .l2-mobile-profile-drawer .l2-mobile-profile-status.is-inactive{
    color:#b42318!important;
    background:#fff1f2!important;
    border-color:#f3b5bd!important;
    cursor:pointer!important;
  }
  .l2-site-header .l2-mobile-profile-drawer .l2-mobile-profile-status-dot{
    display:inline-block!important;
    flex:0 0 6px!important;
    width:6px!important;
    height:6px!important;
    border-radius:50%!important;
    background:currentColor!important;
  }
  .l2-site-header .l2-mobile-profile-drawer .l2-mobile-profile-status b{
    display:inline!important;
    margin:0!important;
    color:inherit!important;
    font:inherit!important;
    font-weight:900!important;
  }
}

/* Mobile teacher drawer header size + circular avatar */
@media(max-width:767px){
  .l2-site-header .l2-mobile-profile-drawer .l2-mobile-profile-head{
    min-height:94px!important;
    padding:15px 16px!important;
  }
  .l2-site-header .l2-mobile-profile-drawer .l2-mobile-profile-avatar-wrap{
    flex:0 0 58px!important;
    width:58px!important;
    height:58px!important;
  }
  .l2-site-header .l2-mobile-profile-drawer .l2-mobile-profile-user img.l2-mobile-profile-avatar,
  .l2-site-header .l2-mobile-profile-drawer .l2-mobile-profile-fallback{
    width:58px!important;
    height:58px!important;
    min-width:58px!important;
    border-radius:50%!important;
  }
  .l2-site-header .l2-mobile-profile-drawer .l2-mobile-profile-fallback svg{width:28px!important;height:28px!important}
  .l2-site-header .l2-mobile-profile-drawer .l2-mobile-profile-user{
    gap:12px!important;
  }
  .l2-site-header .l2-mobile-profile-drawer .l2-mobile-profile-user-copy strong{
    font-size:15px!important;
  }
  .l2-site-header .l2-mobile-profile-drawer .l2-mobile-profile-status{
    min-height:24px!important;
    margin-top:6px!important;
    padding:3px 9px!important;
    font-size:9.5px!important;
  }
}

/* Mobile teacher drawer header: increased vertical space */
@media(max-width:767px){
  .l2-site-header .l2-mobile-profile-drawer .l2-mobile-profile-head{
    min-height:116px!important;
    padding:20px 16px!important;
  }
}

/* Mobile sidebar completion dots */
@media(max-width:767px){
  .l2-site-header .l2-mobile-profile-pages [data-completion-nav-mobile],
  .l2-site-header .l2-mobile-profile-pages [data-completion-nav-mobile] .l2-mobile-completion-label,
  .l2-site-header .l2-mobile-profile-pages [data-completion-nav-mobile] .l2-mobile-completion-label > span{
    min-width:0!important;
  }
  .l2-site-header .l2-mobile-profile-pages [data-completion-nav-mobile]{
    position:relative!important;
  }
  .l2-site-header .l2-mobile-profile-pages [data-completion-nav-mobile] > .l2-completion-dot{
    display:inline-block!important;
    width:8px!important;
    height:8px!important;
    min-width:8px!important;
    margin-inline-start:9px!important;
    border-radius:50%!important;
    background:#d62845!important;
    box-shadow:0 0 0 3px rgba(214,40,69,.10)!important;
    flex:0 0 8px!important;
  }
  .l2-site-header .l2-mobile-profile-pages [data-completion-nav-mobile].l2-needs-completion{
    background:#fff4f6!important;
    border-color:#efb3bd!important;
  }
  .l2-site-header .l2-mobile-profile-pages [data-completion-nav-mobile].l2-needs-completion > .l2-completion-dot{
    background:#ff2948!important;
    box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(214,40,69,.16)!important;
  }
}

/* Completion indicator anchored directly to sidebar rows */
.l2-td.l2-v7 .l2-td-nav-item.l2-needs-completion,
.l2-site-header .l2-mobile-profile-pages [data-completion-nav-mobile].l2-needs-completion,
.l2-site-header .l2-mobile-profile-submenu-toggle.l2-needs-completion{
  position:relative!important;
}
.l2-td.l2-v7 .l2-td-nav-item.l2-needs-completion::after,
.l2-site-header .l2-mobile-profile-pages [data-completion-nav-mobile].l2-needs-completion::after,
.l2-site-header .l2-mobile-profile-submenu-toggle.l2-needs-completion::after{
  content:"";
  position:absolute;
  top:50%;
  right:10px;
  width:8px;
  height:8px;
  min-width:8px;
  border-radius:50%;
  background:#d62845!important;
  box-shadow:0 0 0 3px rgba(214,40,69,.10)!important;
  transform:translateY(-50%);
  pointer-events:none;
  z-index:2;
}
.l2-td.l2-v7 .l2-td-nav-item.l2-needs-completion{
  padding-inline-start:30px!important;
}
@media(max-width:767px){
  .l2-site-header .l2-mobile-profile-pages [data-completion-nav-mobile].l2-needs-completion,
  .l2-site-header .l2-mobile-profile-submenu-toggle.l2-needs-completion{
    padding-right:29px!important;
  }
  .l2-site-header .l2-mobile-profile-pages [data-completion-nav-mobile] > .l2-completion-dot,
  .l2-site-header .l2-mobile-profile-submenu-toggle > .l2-completion-dot{
    display:none!important;
  }
}

/* Dashboard row completion dot in mobile profile menu */
@media(max-width:767px){
  .l2-site-header .l2-mobile-profile-dashboard[data-completion-nav-mobile]{
    position:relative!important;
    padding-right:38px!important;
    box-sizing:border-box!important;
  }
  .l2-site-header .l2-mobile-profile-dashboard[data-completion-nav-mobile].l2-needs-completion::after{
    content:"";
    position:absolute!important;
    top:50%!important;
    right:14px!important;
    width:9px!important;
    height:9px!important;
    min-width:9px!important;
    min-height:9px!important;
    border-radius:50%!important;
    background:#d62845!important;
    box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(214,40,69,.14)!important;
    transform:translateY(-50%)!important;
    display:block!important;
    pointer-events:none!important;
    z-index:5!important;
  }
}

/* Mobile profile drawer: logged-in footer is a real POST logout form */
@media(max-width:767px){
  .l2-mobile-profile-logout-form{
    width:100%!important;
    margin:0!important;
    padding:0!important;
  }
  .l2-mobile-profile-logout-form .l2-mobile-profile-logout{
    width:100%!important;
    min-height:48px!important;
    margin:0!important;
    padding:0 14px!important;
    box-sizing:border-box!important;
    appearance:none!important;
    -webkit-appearance:none!important;
    font:inherit!important;
    font-size:13px!important;
    font-weight:900!important;
    cursor:pointer!important;
    touch-action:manipulation!important;
  }
}

/* L2 header login/account actions: blue everywhere */
.l2-header-account-trigger,
.l2-header-login{
  background:#2457A6!important;
  color:#fff!important;
  border-color:#2457A6!important;
  box-shadow:0 7px 18px rgba(36,87,166,.18)!important;
}
.l2-header-account-trigger:hover,
.l2-header-account-trigger[aria-expanded="true"],
.l2-header-login:hover{
  background:#1D4B91!important;
  color:#fff!important;
  border-color:#1D4B91!important;
  box-shadow:0 9px 22px rgba(36,87,166,.23)!important;
}

/* Final mobile notification placement */
@media (max-width:1024px){
  .l2-site-header[data-l2-auth="logged-in"] .l2-header-inner{
    position:relative!important;
  }
  .l2-site-header[data-l2-auth="logged-in"] .l2-header-notification-trigger{
    display:inline-flex!important;
    visibility:visible!important;
    opacity:1!important;
    position:absolute!important;
    top:50%!important;
    right:17px!important;
    left:auto!important;
    margin:0!important;
    transform:translateY(-50%)!important;
    z-index:100!important;
  }
  .l2-header-notification-badge{
    position:absolute!important;
    top:-5px!important;
    right:-5px!important;
    min-width:19px!important;
    height:19px!important;
    padding:0 5px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:999px!important;
    background:#D92D3A!important;
    color:#fff!important;
    border:2px solid #fff!important;
    font-family:Vazirmatn,sans-serif!important;
    font-size:10px!important;
    font-weight:900!important;
    line-height:1!important;
    direction:ltr!important;
  }
}
/* Desktop: keep notifications out of the header; mobile only */
@media (min-width:1025px){
  .l2-site-header .l2-header-notification-trigger{
    display:none!important;
    visibility:hidden!important;
  }
}

@media (max-width:767px){
  .l2-site-header[data-l2-auth="logged-in"] .l2-header-notification-trigger{
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    right:17px!important;
  }
  .l2-site-header[data-l2-auth="logged-in"] .l2-header-notification-trigger svg{
    width:21px!important;
    height:21px!important;
  }
  .l2-header-notification-badge{
    top:-3px!important;
    right:-3px!important;
    min-width:18px!important;
    height:18px!important;
    font-size:9px!important;
  }
}
