:root{
  --m-bg:#f4f6fb;--m-card:rgba(255,255,255,.94);--m-ink:#18213a;--m-muted:#7b849b;--m-line:#e8ebf3;
  --m-navy:#111936;--m-navy2:#1d2850;--m-primary:#665cff;--m-primary2:#5148e8;
  --m-green:#20c997;--m-orange:#f3a63a;--m-red:#ef6262;--m-shadow:0 14px 38px rgba(25,34,68,.08);--m-radius:18px
}
.modern-page{margin:0;background:radial-gradient(circle at 10% 0,#fff 0,transparent 28%),radial-gradient(circle at 100% 15%,#eeefff 0,transparent 30%),var(--m-bg);color:var(--m-ink);font-family:'Vazirmatn',Tahoma,sans-serif;min-height:100vh}
.modern-page:before{display:none}
.modern-shell{min-height:100vh;display:flex;flex-direction:row-reverse;gap:18px;padding:18px}
.modern-sidebar{width:296px;min-width:296px;height:calc(100vh - 36px);position:sticky;top:18px;display:flex;flex-direction:column;padding:17px 14px;background:linear-gradient(180deg,#18213f,#101730);border-radius:20px;color:#fff;box-shadow:0 18px 48px rgba(17,25,54,.2);overflow:auto}
.modern-sidebar::-webkit-scrollbar{width:5px}.modern-sidebar::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:99px}
.m-brand{display:flex;align-items:center;gap:11px;padding:3px 8px 17px;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:12px}.m-brand-logo{width:45px;height:45px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#746cff,#4e45e2);box-shadow:0 9px 25px rgba(99,91,255,.3);font-size:23px}.m-brand strong{display:block;font-size:13px}.m-brand small{display:block;color:#8f98b8;font-size:9px;margin-top:4px}
.m-menu{display:grid;gap:7px}.m-group{border-radius:13px;overflow:hidden}.m-parent{width:100%;border:0;color:#fff;background:transparent;padding:12px 11px;display:flex;align-items:center;gap:9px;text-align:right;cursor:pointer;border-radius:12px;transition:.25s;font:inherit}.m-parent:hover{background:rgba(255,255,255,.07)}.m-parent.active{background:linear-gradient(135deg,#6f67ff,#5148e8);box-shadow:0 8px 22px rgba(99,91,255,.22)}.m-parent .mi{width:27px;text-align:center;font-size:16px}.m-parent .ml{flex:1;font-size:13.5px;font-weight:700}.m-parent .ma{font-size:12px;transition:.25s}.m-group.open .ma{transform:rotate(180deg)}
.m-sub{max-height:0;overflow:hidden;position:relative;transition:max-height .35s ease}.m-group.open .m-sub{max-height:520px}.m-sub:before{content:"";position:absolute;right:25px;top:7px;bottom:9px;width:1px;background:rgba(255,255,255,.12)}.m-sub a{position:relative;display:flex;align-items:center;padding:9px 19px 9px 10px;margin-right:10px;color:#aeb6d1;font-size:10.5px;border-radius:9px;transition:.25s}.m-sub a:before{content:"";position:absolute;right:6px;width:7px;height:7px;border-radius:50%;background:#667092;border:2px solid #18213f}.m-sub a:after{content:"";position:absolute;right:10px;width:15px;height:1px;background:rgba(255,255,255,.12)}.m-sub a:hover,.m-sub a.active{color:#fff;background:rgba(255,255,255,.055);padding-right:25px}.m-sub a.active:before{background:#8e88ff;box-shadow:0 0 0 4px rgba(99,91,255,.12)}
.m-disabled{opacity:.48;cursor:not-allowed!important}.m-disabled:hover{padding-right:19px!important;background:transparent!important}.m-disabled:before{background:#555d75!important}
.m-logout{margin-top:auto;padding-top:14px}.m-logout a{display:flex;justify-content:center;gap:8px;color:#ff7373;border:1px solid rgba(255,100,100,.3);border-radius:12px;padding:10px;font-size:10.5px;transition:.25s}.m-logout a:hover{background:rgba(255,80,80,.08);border-color:#ff6d6d}
.modern-main{flex:1;min-width:0}.m-topbar{height:70px;background:rgba(255,255,255,.88);backdrop-filter:blur(15px);border:1px solid rgba(232,235,243,.8);border-radius:18px;padding:0 21px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 8px 28px rgba(25,34,68,.05);margin-bottom:18px}.m-user{display:flex;align-items:center;gap:10px}.m-avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#eceaff,#dcd9ff);font-size:19px}.m-user strong{display:block;font-size:11.5px}.m-user small{display:block;color:var(--m-muted);font-size:9px;margin-top:3px}.m-actions{display:flex;gap:8px}.m-iconbtn{width:39px;height:39px;border:1px solid var(--m-line);background:#fff;border-radius:11px;display:grid;place-items:center;font-size:16px;cursor:pointer;transition:.25s}.m-iconbtn:hover{background:#f2f1ff;border-color:#d8d5ff;transform:translateY(-2px)}
.m-welcome{position:relative;overflow:hidden;min-height:145px;padding:27px 31px;border-radius:20px;background:radial-gradient(circle at 9% 50%,rgba(99,91,255,.12),transparent 24%),radial-gradient(circle at 92% 80%,rgba(32,201,151,.1),transparent 25%),#fff;box-shadow:var(--m-shadow);border:1px solid var(--m-line);display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.m-welcome:after{content:"";position:absolute;width:170px;height:170px;border-radius:50%;left:-80px;top:-105px;background:rgba(99,91,255,.06)}.m-welcome h1{font-size:23px;margin:0 0 8px}.m-welcome p{margin:0;color:var(--m-muted);font-size:11.5px}.m-welcome-art{font-size:62px;opacity:.78;position:relative;z-index:1}
.m-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:17px}.m-stat{background:var(--m-card);border:1px solid var(--m-line);border-radius:17px;padding:17px;box-shadow:var(--m-shadow);transition:.3s;position:relative;overflow:hidden}.m-stat:hover{transform:translateY(-4px);box-shadow:0 18px 42px rgba(25,34,68,.11)}.m-stat-top{display:flex;align-items:center;justify-content:space-between}.m-stat-icon{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;font-size:20px}.m-purple{background:#eeedff}.m-green{background:#e4faf3}.m-orange{background:#fff3df}.m-red{background:#ffe8e8}.m-stat label{font-size:10px;color:#7d869b}.m-stat strong{display:block;font-size:24px;margin:15px 0 4px}.m-stat small{font-size:9px;color:var(--m-muted)}.m-change{margin-top:10px;font-size:9px}.m-up{color:#13a97b}.m-down{color:#e65c5c}
.m-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.m-card{background:var(--m-card);border:1px solid var(--m-line);border-radius:18px;box-shadow:var(--m-shadow);overflow:hidden}.m-card-head{padding:16px 18px;border-bottom:1px solid var(--m-line);display:flex;align-items:center;justify-content:space-between}.m-card-head h2{font-size:12.5px;margin:0}.m-view{font-size:9px;color:var(--m-primary);background:#efeeff;padding:7px 10px;border-radius:8px}.m-list{padding:4px 18px}.m-list-item{min-height:58px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #f0f2f7}.m-list-item:last-child{border-bottom:0}.m-file{width:37px;height:37px;border-radius:10px;display:grid;place-items:center;font-size:9px;font-weight:900}.m-pdf{background:#ffe6e6;color:#dc5151}.m-doc{background:#e8efff;color:#4778e8}.m-zip{background:#eee9ff;color:#735de4}.m-jpg{background:#e4faef;color:#26aa76}.m-list-text{flex:1}.m-list-text strong{display:block;font-size:10px;margin-bottom:4px}.m-list-text small{font-size:8.5px;color:var(--m-muted)}.m-arrow{font-size:18px;color:#aab1c3}.m-quick{margin-top:17px;padding:18px}.m-quick h2{text-align:center;font-size:12.5px;margin:0 0 16px}.m-actions-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.m-action{min-height:94px;border:1px solid var(--m-line);border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--m-ink);transition:.3s;background:#fff}.m-action:hover{transform:translateY(-4px);box-shadow:0 12px 25px rgba(99,91,255,.1);border-color:#d9d6ff}.m-action i{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#efeeff;font-style:normal;font-size:18px}.m-action span{font-size:9px}
.m-page-hero{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:23px 25px;background:linear-gradient(135deg,#151d3b,#26345a 60%,#5d54e8);color:#fff;border-radius:19px;box-shadow:0 17px 40px rgba(20,28,62,.17);margin-bottom:16px;position:relative;overflow:hidden}.m-page-hero:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;left:-75px;top:-100px;background:rgba(255,255,255,.07)}.m-page-hero h1{margin:0 0 5px;font-size:21px}.m-page-hero p{margin:0;color:#dce3f3;font-size:10.5px}.m-percent{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;border:7px solid rgba(255,255,255,.16);border-top-color:#fff;background:rgba(255,255,255,.08);font-weight:900;font-size:17px;position:relative;z-index:1}.m-progress{height:7px;background:#e9ebf2;border-radius:99px;overflow:hidden;margin:-4px 5px 16px}.m-progress span{display:block;height:100%;background:linear-gradient(90deg,var(--m-primary),#9b95ff);border-radius:99px;box-shadow:0 0 12px rgba(99,91,255,.3)}
.m-status{display:inline-flex;align-items:center;padding:7px 10px;border-radius:99px;font-size:9.5px;font-weight:800}.m-ok{background:#e6fbf3;color:#087d5b}.m-pending{background:#fff4dc;color:#a76d08}.m-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.m-card-body{padding:18px}.m-card-body h2{font-size:13px;margin:0 0 14px}.m-detail-list{display:grid;gap:10px}.m-detail{display:flex;justify-content:space-between;gap:15px;padding:9px 0;border-bottom:1px dashed #e7eaf1;font-size:10px}.m-detail span{color:var(--m-muted)}.m-detail strong{text-align:left}
.m-form-card{padding:19px}.m-section-title{display:flex;align-items:center;gap:9px;margin:20px 0 11px;font-size:13px}.m-section-title:first-child{margin-top:2px}.m-section-title:before{content:"";width:7px;height:22px;border-radius:99px;background:linear-gradient(#746cff,#5148e8)}.m-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.m-fields label{display:flex;flex-direction:column;gap:6px;font-size:9.5px;font-weight:800;color:#4a556d}.m-fields .full{grid-column:1/-1}.modern-page input,.modern-page select,.modern-page textarea{width:100%;border:1px solid #dfe4ee;background:#fbfcfe;border-radius:10px;padding:9px 10px;color:var(--m-ink);outline:none;transition:.2s}.modern-page textarea{min-height:82px;resize:vertical}.modern-page input:focus,.modern-page select:focus,.modern-page textarea:focus{border-color:#8b86ff;box-shadow:0 0 0 4px rgba(99,91,255,.08);background:#fff}.m-form-actions{display:flex;justify-content:space-between;gap:10px;margin-top:18px;padding-top:16px;border-top:1px solid var(--m-line)}.m-btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:10px;padding:9px 14px;font-weight:800;font-size:10px;cursor:pointer;transition:.25s}.m-btn:hover{transform:translateY(-2px)}.m-btn-primary{color:#fff;background:linear-gradient(135deg,#6d65ff,#5148e8);box-shadow:0 8px 18px rgba(99,91,255,.2)}.m-btn-green{color:#fff;background:linear-gradient(135deg,#13b982,#22c997);box-shadow:0 8px 18px rgba(32,201,151,.18)}.m-btn-light{background:#fff;border:1px solid var(--m-line);color:#59637a}.m-alert{padding:10px;border-radius:10px;font-size:10px;margin:10px 0}.m-danger{background:#fff0f2;color:#b51327;border:1px solid #ffd0d6}.m-success{background:#eafff7;color:#087c58}
.m-table-wrap{overflow:auto;border:1px solid var(--m-line);border-radius:12px}.modern-page table{width:100%;border-collapse:collapse;min-width:680px;background:#fff}.modern-page th,.modern-page td{padding:10px 9px;text-align:right;border-bottom:1px solid #edf0f5;font-size:9.5px}.modern-page th{background:#f7f8fc;color:#536079;font-weight:900}.modern-page tbody tr:hover{background:#fbfaff}.m-filter{padding:17px}.m-filter-grid{display:grid;grid-template-columns:2fr 1fr 1fr auto auto;gap:8px;align-items:end}.m-filter-grid label{display:flex;flex-direction:column;gap:6px;font-size:9.5px;font-weight:800}.m-report-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-bottom:17px}.m-report-box{padding:16px;background:#fff;border:1px solid var(--m-line);border-radius:16px;box-shadow:var(--m-shadow)}.m-report-box h3{margin:0 0 11px;font-size:11.5px}.m-mini{display:grid;gap:7px}.m-mini-row{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px dashed #e5e8ef;font-size:9.5px}.m-mini-row:last-child{border-bottom:0}.m-bar{height:7px;background:#edf0f5;border-radius:99px;overflow:hidden}.m-bar span{display:block;height:100%;background:linear-gradient(90deg,#665cff,#a19cff);border-radius:99px}
.m-stepper{display:grid;grid-template-columns:repeat(5,1fr);gap:0;margin:0 0 22px}.m-step{position:relative;text-align:center}.m-step:after{content:"";position:absolute;top:17px;right:50%;width:100%;height:2px;background:#e7e9f1;z-index:0}.m-step:first-child:after{display:none}.m-step-dot{position:relative;z-index:1;width:34px;height:34px;border-radius:50%;margin:auto;background:#fff;border:1px solid #dfe3ee;display:grid;place-items:center;font-size:10px;font-weight:900;color:#8a93aa}.m-step.active .m-step-dot{background:linear-gradient(135deg,#6d65ff,#5148e8);border-color:#6d65ff;color:#fff;box-shadow:0 7px 17px rgba(99,91,255,.22)}.m-step.done .m-step-dot{background:#e7fbf4;border-color:#b7efdf;color:#0aa579}.m-step span{display:block;font-size:8.5px;color:#737d95;margin-top:7px}.m-step.active span{color:#5148e8;font-weight:800}
.m-auth-page{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 20% 10%,#fff 0,transparent 32%),radial-gradient(circle at 90% 80%,#ecebff 0,transparent 30%),#f4f6fb}.m-auth{width:min(410px,94vw);background:rgba(255,255,255,.96);border:1px solid var(--m-line);border-radius:22px;padding:25px;box-shadow:0 22px 60px rgba(25,34,68,.13)}.m-auth-logo{width:52px;height:52px;border-radius:16px;background:linear-gradient(135deg,#6e66ff,#5148e8);color:#fff;display:grid;place-items:center;font-size:24px;box-shadow:0 10px 25px rgba(99,91,255,.25);margin-bottom:14px}.m-auth h1{margin:0 0 6px;font-size:20px}.m-auth p{margin:0;color:var(--m-muted);font-size:10px;line-height:2}.m-auth form{display:grid;gap:9px;margin-top:16px}.m-auth label{font-size:9.5px;font-weight:800}.m-auth .m-btn{width:100%;margin-top:3px}.m-back{display:block;text-align:center;color:var(--m-muted);font-size:9.5px;font-weight:700;margin-top:13px}
@media(max-width:1150px){.modern-sidebar{width:260px;min-width:260px}.m-actions-grid{grid-template-columns:repeat(3,1fr)}.m-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:850px){.modern-shell{flex-direction:column;padding:10px}.modern-sidebar{width:100%;min-width:0;height:auto;position:relative;top:0}.modern-main{width:100%}.m-grid2,.m-info-grid,.m-report-grid{grid-template-columns:1fr}.m-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.m-filter-grid{grid-template-columns:1fr 1fr}.m-filter-grid .m-search{grid-column:1/-1}.m-topbar{height:auto;padding:12px 15px}.m-welcome{padding:22px}.m-welcome-art{display:none}}
@media(max-width:560px){.m-stats{grid-template-columns:1fr}.m-fields{grid-template-columns:1fr}.m-fields .full{grid-column:auto}.m-actions-grid{grid-template-columns:repeat(2,1fr)}.m-filter-grid{grid-template-columns:1fr}.m-filter-grid .m-search{grid-column:auto}.m-form-actions{flex-direction:column}.m-btn{width:100%}.m-stepper{overflow:auto;min-width:520px}.m-stepper-wrap{overflow:auto}.m-topbar{gap:10px}.m-user small{display:none}.m-welcome h1{font-size:19px}.m-page-hero h1{font-size:18px}.m-percent{width:60px;height:60px;font-size:14px;border-width:6px}}

/* اطلاعات اولیه ثبت‌نام: سه فیلد کلیدی در ابتدای فرم */
.m-initial-fields {
    padding: 14px;
    border: 1px solid rgba(99,91,255,.12);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(99,91,255,.045), rgba(36,200,154,.035));
    margin-bottom: 24px;
}

.m-initial-fields label {
    font-weight: 700;
}
/* فرم ثبت‌نام: منوی درختی روشن و سمت راست در RTL */
.modern-shell{flex-direction:row}
.modern-sidebar{background:linear-gradient(180deg,#ffffff 0%,#f7f8fc 100%);color:#2d3550;border:1px solid #e7eaf2;box-shadow:0 18px 48px rgba(41,52,88,.10)}
.modern-sidebar::-webkit-scrollbar-thumb{background:#d7dce8}
.m-brand{border-bottom-color:#e9ecf3}
.m-brand>div:last-child strong{color:#26304a}
.m-brand>div:last-child small{color:#8a93aa}
.m-parent{color:#4b566f}
.m-parent:hover{background:#f0f1f7}
.m-parent.active{color:#fff;background:linear-gradient(135deg,#746cff,#5b53e8);box-shadow:0 8px 22px rgba(99,91,255,.18)}
.m-sub:before{background:#dfe3ec}
.m-sub a{color:#68738a;font-size:12.5px;font-weight:700}
.m-sub a:before{background:#aeb6c8;border-color:#f8f9fc}
.m-sub a:after{background:#dfe3ec}
.m-sub a:hover,.m-sub a.active{color:#3f49a5;background:#efefff}
.m-sub a.active:before{background:#746cff;box-shadow:0 0 0 4px rgba(99,91,255,.10)}
.m-disabled{opacity:.5}
.m-disabled:before{background:#b8becb!important}
.m-logout a{color:#657089;background:#fff;border-color:#e3e7ef}
.m-logout a:hover{background:#f0f1f7;border-color:#d5dae6}

/* فرم ثبت‌نام: خوانایی بیشتر و خطای کنار هر فیلد */
.m-form-card .m-fields label{font-size:13.5px;font-weight:800;}
.m-form-card .m-fields input,.m-form-card .m-fields select,.m-form-card .m-fields textarea{font-size:13.5px;font-weight:700;}
.m-form-card .field-error{display:none;color:#c6283d;font-size:11.5px;font-weight:800;margin-top:2px;line-height:1.5;}
.m-form-card .field-error.show{display:block;}
.m-form-card .field-invalid{border-color:#d92d4a!important;background:#fff7f8!important;box-shadow:0 0 0 2px rgba(217,45,74,.08)!important;}

/* Registration form layout refinements */
.m-grid-1{grid-template-columns:1fr}
.m-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.m-subsection-title{font-size:18px;font-weight:800;margin:24px 0 14px}
.field-error{display:block;min-height:18px;margin-top:6px;color:#d92d20;font-size:12px;font-weight:700}
@media (max-width:900px){.m-grid-3{grid-template-columns:1fr}}
.field-error{display:block;margin-top:4px;color:#b4233d;font-size:10px;font-weight:700;line-height:1.5}.field-invalid{border-color:#e38b9b!important;box-shadow:0 0 0 2px rgba(180,35,61,.06)!important}.form-server-error{margin-bottom:10px}

/* Lightweight site-wide ambient edge decoration */
html{background:#f3f6fb}
body{position:relative;min-height:100vh;overflow-x:hidden}
body::before,body::after{content:"";position:fixed;pointer-events:none;z-index:0;border-radius:999px;filter:blur(1px);opacity:.34;will-change:transform}
body::before{width:300px;height:300px;top:-115px;right:-95px;background:radial-gradient(circle,rgba(99,102,241,.34) 0,rgba(99,102,241,.12) 45%,transparent 72%);animation:ambientFloat 16s ease-in-out infinite alternate}
body::after{width:270px;height:270px;bottom:-110px;left:-85px;background:radial-gradient(circle,rgba(6,182,212,.28) 0,rgba(14,165,233,.10) 46%,transparent 72%);animation:ambientFloatReverse 19s ease-in-out infinite alternate}
body > *{position:relative;z-index:1}
@keyframes ambientFloat{0%{transform:translate3d(0,0,0) scale(1)}100%{transform:translate3d(-18px,22px,0) scale(1.06)}}
@keyframes ambientFloatReverse{0%{transform:translate3d(0,0,0) scale(1)}100%{transform:translate3d(20px,-16px,0) scale(1.05)}}
@media (prefers-reduced-motion:reduce){body::before,body::after{animation:none}}

/* Collaboration form */
.collab-page{max-width:1100px;margin:40px auto;padding:0 18px;font-family:inherit;color:#172033}
.collab-hero{background:linear-gradient(135deg,#13233f,#1e5aa8);color:#fff;border-radius:28px;padding:42px 38px;margin-bottom:22px;box-shadow:0 18px 50px rgba(18,43,78,.18)}
.collab-badge{display:inline-block;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.22);padding:7px 14px;border-radius:999px;font-size:13px}
.collab-hero h1{font-size:34px;margin:16px 0 12px}.collab-notice{line-height:2;background:#fff8df;color:#5f4b16;border:1px solid #ead28a;border-radius:16px;padding:14px 17px;margin:16px 0 0}
.collab-hero .collab-notice{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.22);color:#fff}
.collab-form{background:#fff;border:1px solid #e5eaf2;border-radius:26px;padding:26px;box-shadow:0 15px 45px rgba(22,34,55,.07)}
.collab-section{padding:6px 0 25px;margin-bottom:22px;border-bottom:1px solid #edf0f5}.collab-section:last-of-type{border-bottom:0}
.collab-section h2{font-size:19px;margin:0 0 18px;color:#15345f}.collab-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.collab-grid label{display:flex;flex-direction:column;gap:7px;font-weight:700;font-size:14px}.collab-wide{grid-column:1/-1}
.collab-grid input,.collab-grid select,.collab-grid textarea{width:100%;box-sizing:border-box;border:1px solid #dbe1ea;background:#fbfcfe;border-radius:13px;padding:12px 13px;font:inherit;outline:none;transition:.2s}
.collab-grid input:focus,.collab-grid select:focus,.collab-grid textarea:focus{border-color:#3c79c6;background:#fff;box-shadow:0 0 0 3px rgba(60,121,198,.10)}
.collab-grid span[data-valmsg-for]{color:#b42318;font-size:12px}.collab-errors{color:#b42318;background:#fff1f0;border:1px solid #f0c2be;border-radius:12px;padding:10px 14px;margin-bottom:18px}
.collab-submit{display:inline-flex;align-items:center;justify-content:center;gap:12px;border:0;border-radius:14px;padding:14px 25px;background:#1d65b1;color:#fff;text-decoration:none;font-weight:800;font-size:15px;cursor:pointer;box-shadow:0 8px 20px rgba(29,101,177,.2)}
.collab-submit:hover{transform:translateY(-1px)}.collab-success{max-width:700px;margin:80px auto;background:#fff;border:1px solid #e5eaf2;border-radius:28px;padding:45px;text-align:center;box-shadow:0 20px 55px rgba(22,34,55,.08)}
.success-icon{width:74px;height:74px;border-radius:50%;display:grid;place-items:center;margin:0 auto 20px;background:#e9f8ef;color:#17834a;font-size:38px;font-weight:900}
.collab-success h1{margin:0 0 12px}.collab-success p{line-height:2;color:#536174}.collab-success .collab-submit{margin-top:16px}
@media(max-width:700px){.collab-grid{grid-template-columns:1fr}.collab-wide{grid-column:auto}.collab-hero{padding:28px 22px}.collab-hero h1{font-size:27px}.collab-form{padding:18px}}

/* Modern permission-driven dashboard */
.dashboard-shell{align-items:stretch}
.dashboard-main{min-width:0}
.dashboard-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:18px 4px 26px;border-bottom:1px solid #e9edf5;margin-bottom:22px}
.dashboard-hero-copy{min-width:0}
.dashboard-kicker{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:900;color:#635bff;letter-spacing:.2px;margin-bottom:7px}
.dashboard-kicker:before{content:"";width:7px;height:7px;border-radius:50%;background:#635bff;box-shadow:0 0 0 5px rgba(99,91,255,.10)}
.dashboard-hero h1{margin:0;color:#17213d;font-size:31px;line-height:1.2;letter-spacing:-.7px}
.dashboard-hero p{margin:8px 0 12px;color:#7b8498;font-size:13px;line-height:1.9}
.dashboard-user-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dashboard-user-name{font-size:12px;font-weight:900;color:#26314f}
.dashboard-role-pill,.dashboard-preview-pill{display:inline-flex;align-items:center;min-height:26px;padding:0 10px;border-radius:999px;font-size:10px;font-weight:800}
.dashboard-role-pill{background:#f1f3ff;color:#5047d8}
.dashboard-preview-pill{background:#fff7ed;color:#b45309}
.dashboard-hero-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.dashboard-preview-notice{display:flex;align-items:center;gap:12px;padding:12px 14px;margin-bottom:24px;border:1px solid #fed7aa;background:#fffaf3;border-radius:15px;color:#9a3412}
.dashboard-preview-notice>span{font-size:20px}.dashboard-preview-notice>div{flex:1;display:flex;flex-direction:column;gap:2px}.dashboard-preview-notice strong{font-size:12px}.dashboard-preview-notice small{font-size:10px;color:#b45309}.dashboard-preview-notice a{font-size:10px;font-weight:900;color:#9a3412;text-decoration:underline;white-space:nowrap}
.dashboard-section{padding:2px 0 28px}
.dashboard-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:12px}
.dashboard-section-eyebrow{display:block;color:#8b94a7;font-size:10px;font-weight:900;margin-bottom:4px}
.dashboard-section-head h2{margin:0;color:#202a45;font-size:19px;letter-spacing:-.3px}
.dashboard-section-note{font-size:10px;color:#9aa2b3;white-space:nowrap}
.dashboard-menu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:18px;row-gap:0}
.dashboard-menu-item{position:relative;display:flex;align-items:center;gap:14px;min-height:104px;padding:15px 6px;border-bottom:1px solid #e8ecf3;text-decoration:none;color:#26314f;transition:transform .18s ease,border-color .18s ease,background .18s ease}
.dashboard-menu-item:after{content:"";position:absolute;right:0;bottom:-1px;width:0;height:2px;background:#635bff;transition:width .2s ease}
.dashboard-menu-item:hover{transform:translateX(-3px);background:linear-gradient(90deg,rgba(99,91,255,.035),transparent);border-color:#dfe3ef}
.dashboard-menu-item:hover:after{width:52px}
.dashboard-menu-icon{width:58px;height:58px;min-width:58px;border-radius:18px;display:grid;place-items:center;background:#f4f5ff;color:#5b52e8;transition:.2s;box-shadow:inset 0 0 0 1px rgba(99,91,255,.05)}
.dashboard-menu-item:hover .dashboard-menu-icon{transform:translateY(-2px) scale(1.04);background:#ebeaff;box-shadow:0 10px 24px rgba(99,91,255,.13)}
.dashboard-menu-icon svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.dashboard-menu-text{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:3px;flex:1}
.dashboard-menu-text strong{font-size:13px;font-weight:900;color:#222d49;line-height:1.5}
.dashboard-menu-text small{font-size:10px;color:#7e8799;line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.dashboard-menu-text em{font-style:normal;font-size:8px;color:#a0a8b7;direction:ltr;opacity:.9}
.dashboard-menu-arrow{font-size:16px;color:#a5adbd;opacity:0;transform:translateX(5px);transition:.2s}
.dashboard-menu-item:hover .dashboard-menu-arrow{opacity:1;transform:translateX(0);color:#635bff}
.dashboard-empty{padding:56px 20px;text-align:center;color:#7c8699;border-top:1px dashed #dfe4ee}
.dashboard-empty-icon{width:66px;height:66px;margin:0 auto 12px;border-radius:22px;display:grid;place-items:center;background:#f4f5ff;color:#635bff;font-size:28px}
.dashboard-empty h3{margin:0 0 7px;color:#2c3651;font-size:16px}.dashboard-empty p{margin:0;font-size:11px}
@media(max-width:1200px){.dashboard-menu{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.dashboard-hero{align-items:flex-start;flex-direction:column}.dashboard-hero-actions{justify-content:flex-start}.dashboard-menu{grid-template-columns:1fr}.dashboard-section-head{align-items:flex-start;flex-direction:column;gap:5px}.dashboard-section-note{white-space:normal}}
@media(max-width:600px){.dashboard-hero h1{font-size:25px}.dashboard-menu-item{min-height:92px}.dashboard-menu-icon{width:50px;height:50px;min-width:50px;border-radius:15px}.dashboard-menu-icon svg{width:26px;height:26px}.dashboard-menu-text small{white-space:normal}.dashboard-preview-notice{align-items:flex-start;flex-wrap:wrap}.dashboard-preview-notice a{margin-right:auto}}


/* Unified admin panel visual system */
.admin-preview-bar{position:fixed;inset:0 0 auto 0;z-index:10000;height:34px;display:flex;align-items:center;justify-content:center;gap:9px;background:#fff7ed;color:#9a3412;border-bottom:1px solid #fed7aa;font-size:10px;font-weight:800;box-shadow:0 4px 18px rgba(120,53,15,.08)}
.admin-preview-bar a{color:#9a3412;text-decoration:underline;font-weight:900;margin-right:8px}.admin-preview-dot{width:7px;height:7px;border-radius:50%;background:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.12)}
.modern-sidebar{width:252px;min-width:252px;height:calc(100vh - 36px);padding:13px 10px;background:rgba(255,255,255,.94);border:1px solid #e6eaf2;border-radius:18px;box-shadow:0 12px 38px rgba(41,52,88,.08);color:#29324a;gap:0}
.modern-sidebar.has-preview{height:calc(100vh - 70px);top:52px}
.admin-brand{display:flex;align-items:center;gap:10px;padding:7px 7px 12px;border-bottom:1px solid #edf0f5}.admin-brand-mark{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#5f57ea,#7c73ff);color:#fff;font-weight:900;font-size:18px;box-shadow:0 8px 18px rgba(99,91,255,.18)}.admin-brand-copy{display:flex;flex-direction:column;min-width:0}.admin-brand-copy strong{font-size:12px;color:#202a45}.admin-brand-copy small{font-size:8px;color:#8d96a8;margin-top:2px}
.admin-identity{display:flex;align-items:center;gap:9px;margin:10px 2px 8px;padding:9px;background:#f7f8fc;border:1px solid #edf0f5;border-radius:13px}.admin-avatar{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:#ebeaff;font-size:14px}.admin-identity-copy{min-width:0;display:flex;flex-direction:column;flex:1}.admin-identity-copy strong{font-size:10px;color:#2a334c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-identity-copy span{font-size:8.5px;color:#665ce1;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-preview-mini{font-size:11px;color:#b45309}
.admin-nav-caption{padding:5px 9px 6px;color:#9aa2b3;font-size:8px;font-weight:900;letter-spacing:.2px}.m-menu{display:flex;flex-direction:column;gap:2px;overflow:auto;padding:0 1px}.m-menu::-webkit-scrollbar{width:4px}.m-menu::-webkit-scrollbar-thumb{background:#e0e4ed;border-radius:99px}.m-parent{position:relative;display:flex;align-items:center;gap:10px;min-height:38px;padding:0 9px;border-radius:10px;color:#697389;text-decoration:none;font-size:10px;font-weight:800;transition:.16s}.m-parent .mi{width:25px;height:25px;min-width:25px;display:grid;place-items:center;border-radius:8px;background:#f4f5f9;color:#7b84a0;font-size:14px;font-weight:800;transition:.16s}.m-parent .ml{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.m-parent:hover{background:#f6f6ff;color:#4c45c8;transform:translateX(-2px)}.m-parent:hover .mi{background:#eceaff;color:#5b52e8}.m-parent.active{background:#efefff;color:#5148d7;font-weight:900}.m-parent.active:before{content:"";position:absolute;right:-1px;top:8px;bottom:8px;width:3px;border-radius:3px;background:#635bff}.m-parent.active .mi{background:#e6e4ff;color:#5a50e8}.admin-sidebar-footer{margin-top:auto;padding-top:9px;border-top:1px solid #edf0f5;display:grid;gap:3px}.admin-site-link,.m-logout-link{display:flex;align-items:center;gap:8px;min-height:34px;padding:0 9px;border-radius:9px;text-decoration:none;font-size:9px;font-weight:800}.admin-site-link{color:#5c6579;background:#fafbfc}.admin-site-link:hover{background:#f1f3f8;color:#4e56a9}.m-logout-link{color:#9b5360}.m-logout-link:hover{background:#fff3f5;color:#b4233d}
.modern-main{padding:2px 0}.m-topbar,.users-hero,.dashboard-hero{border-radius:16px}.m-topbar{min-height:58px;height:auto;padding:10px 16px;background:rgba(255,255,255,.9);border:1px solid #e7eaf1;box-shadow:0 8px 24px rgba(25,34,68,.04)}.m-topbar h1{font-size:18px!important;letter-spacing:-.3px}.m-topbar small{font-size:9px!important}.m-card{border-radius:14px!important;box-shadow:0 7px 24px rgba(30,40,75,.045)!important;border-color:#e9ecf2!important}.m-card-head{font-size:12px}.m-btn{border-radius:9px!important;font-size:10px!important}.m-input,.m-filter input,.m-filter select{border-radius:9px!important}
.dashboard-section-head h2{font-size:17px}.dashboard-section-eyebrow{color:#5e57d9}.dashboard-user-line{margin-top:2px}
@media(max-width:850px){.modern-shell{padding:9px}.modern-sidebar,.modern-sidebar.has-preview{width:100%;min-width:0;height:auto;position:relative;top:0}.m-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:none}.m-parent{min-height:40px}.admin-sidebar-footer{margin-top:8px}.admin-preview-bar{font-size:9px;padding:0 8px}.modern-main{padding:0}.m-topbar{margin-bottom:10px}}
@media(max-width:520px){.m-menu{grid-template-columns:1fr}.admin-brand-copy small{display:none}.admin-identity{margin-bottom:5px}}

/* Login refresh: stronger framed pattern, aligned with the modern student/admin visual system. */
.m-auth-page{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 18% 12%,rgba(81,72,232,.18),transparent 28%),
    radial-gradient(circle at 86% 82%,rgba(20,184,166,.14),transparent 26%),
    linear-gradient(135deg,#eef1fa 0%,#f8f9fd 52%,#e8ecf8 100%);
}
.m-auth-page:before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.72;
  background-image:
    linear-gradient(rgba(62,72,112,.075) 1px,transparent 1px),
    linear-gradient(90deg,rgba(62,72,112,.075) 1px,transparent 1px),
    radial-gradient(circle at center,rgba(81,72,232,.12) 0 1px,transparent 1.5px);
  background-size:34px 34px,34px 34px,34px 34px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.95),rgba(0,0,0,.55));
  pointer-events:none;
}
.m-auth-page:after{
  content:"";
  position:absolute;
  width:520px;
  height:520px;
  border:1px solid rgba(81,72,232,.18);
  border-radius:50%;
  right:-210px;
  top:-250px;
  box-shadow:0 0 0 22px rgba(81,72,232,.045),0 0 0 44px rgba(81,72,232,.035);
  pointer-events:none;
}
.m-auth{
  position:relative;
  z-index:1;
  border:1px solid rgba(81,72,232,.20);
  box-shadow:0 28px 80px rgba(25,34,68,.18),0 0 0 6px rgba(81,72,232,.045);
  backdrop-filter:blur(16px);
}
.m-auth-logo{box-shadow:0 12px 30px rgba(81,72,232,.32)}
.m-auth .m-btn-primary{min-height:42px}
@media(max-width:560px){.m-auth{padding:21px;border-radius:19px}.m-auth-page:before{background-size:28px 28px,28px 28px,28px 28px}}

/* Readable, server-validated CAPTCHA */
.captcha-box{margin-top:8px;padding:14px;border:1px solid #dfe6f2;border-radius:16px;background:linear-gradient(180deg,#fff,#f8faff);box-shadow:0 8px 24px rgba(35,50,82,.06)}
.captcha-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;font-size:11px;font-weight:900;color:#34415e}
.captcha-refresh{border:0;background:#eef2ff;color:#5148e8;border-radius:10px;padding:7px 10px;font:inherit;font-size:10px;font-weight:900;cursor:pointer;transition:.2s ease}.captcha-refresh:hover{transform:translateY(-1px);background:#e4e9ff}
.captcha-row{display:grid;grid-template-columns:minmax(180px,240px) 1fr;gap:12px;align-items:center}.captcha-image{display:block;width:100%;height:78px;object-fit:contain;border-radius:14px;background:#f7f9fd;user-select:none;-webkit-user-drag:none}.captcha-input{height:50px!important;text-align:center!important;letter-spacing:5px!important;font-size:19px!important;font-weight:900!important;text-transform:uppercase;border:1px solid #ccd6e7!important;border-radius:12px!important;background:#fff!important;color:#24324f!important}
.captcha-box .field-validation-error{display:block;margin-top:8px;color:#c62828;font-size:10px;font-weight:800}
@media(max-width:600px){.captcha-row{grid-template-columns:1fr}.captcha-image{max-width:100%;margin:auto}.captcha-input{width:100%}.captcha-head{align-items:flex-start}}

/* Dark navy + warm gold glass theme inspired by the supplied visual reference. */
.reference-auth-theme{background:#050b16;color:#f8fafc;min-height:100vh}
.reference-auth-theme:before,.reference-auth-theme:after,.reference-collab-theme:before,.reference-collab-theme:after{display:none!important}
.reference-auth-theme .m-auth-page{min-height:100vh;padding:46px 18px;background:radial-gradient(circle at 50% 34%,rgba(31,82,136,.38),transparent 31%),radial-gradient(circle at 50% 72%,rgba(228,166,80,.14),transparent 24%),linear-gradient(180deg,#030914 0%,#071426 52%,#030914 100%)}
.reference-auth-theme .m-auth-page:before{display:block!important;content:"";position:absolute;width:min(760px,88vw);aspect-ratio:1;border-radius:50%;border:1px solid rgba(226,171,93,.42);inset:50% auto auto 50%;transform:translate(-50%,-50%);box-shadow:0 0 0 34px rgba(53,108,166,.05),0 0 80px rgba(32,93,157,.2);background:transparent;opacity:1;mask-image:none}
.reference-auth-theme .m-auth-page:after{display:block!important;content:"";position:absolute;inset:0;background-image:radial-gradient(circle,rgba(255,255,255,.55) 0 1px,transparent 1.4px);background-size:83px 97px;opacity:.13;pointer-events:none;width:auto;height:auto;border:0;border-radius:0;box-shadow:none}
.reference-auth-theme .m-auth{width:min(470px,94vw);padding:32px 30px 27px;border-radius:28px;color:#f7f8fb;background:linear-gradient(145deg,rgba(29,35,50,.9),rgba(10,21,37,.88));border:1px solid rgba(232,184,111,.42);box-shadow:0 30px 90px rgba(0,0,0,.48),0 0 32px rgba(227,166,79,.1);backdrop-filter:blur(22px)}
.reference-auth-theme .m-auth:before{content:"";position:absolute;top:-1px;left:14%;right:14%;height:1px;background:linear-gradient(90deg,transparent,#f2bd6a,transparent);box-shadow:0 0 14px #d99a43}
.reference-auth-theme .m-auth-logo{width:70px;height:38px;margin:0 auto 12px;border-radius:12px;background:rgba(232,177,94,.1);border:1px solid rgba(232,177,94,.32);color:#efbd70;font-size:11px;box-shadow:none}
.auth-kicker{display:block;width:max-content;max-width:100%;margin:0 auto 13px;padding:7px 13px;border:1px solid rgba(232,177,94,.18);border-radius:999px;background:rgba(255,255,255,.035);color:#e9b766;font-size:10px;font-weight:900;text-align:center}
.reference-auth-theme .m-auth h1{text-align:center;color:#fff;font-size:27px;margin:0 0 8px}.reference-auth-theme .m-auth>p{text-align:center;color:#aab3c2;font-size:11px;line-height:2}
.reference-auth-theme .m-auth form{gap:13px;margin-top:23px}.reference-auth-theme .m-auth label{color:#d7dce5;font-size:11px}.reference-auth-theme .m-auth input{box-sizing:border-box;width:100%;height:48px;margin-top:7px;padding:0 14px;border:1px solid rgba(255,255,255,.14);border-radius:13px;background:rgba(2,9,20,.45);color:#fff;outline:none;transition:.2s}.reference-auth-theme .m-auth input:focus{border-color:#e6ae5c;box-shadow:0 0 0 3px rgba(230,174,92,.09)}
.reference-auth-theme .m-auth .m-btn-primary{min-height:48px;border:0;background:linear-gradient(135deg,#f3c779,#d89a45);color:#17110a;font-weight:950;box-shadow:0 12px 30px rgba(215,151,61,.2)}.reference-auth-theme .m-auth .m-btn-primary:hover{filter:brightness(1.05);transform:translateY(-1px)}.reference-auth-theme .m-back{color:#9da8b8}.reference-auth-theme .m-back:hover{color:#edbd73}
.reference-auth-theme .captcha-box,.reference-collab-theme .captcha-box{padding:14px;border:1px solid rgba(232,177,94,.22);background:rgba(3,12,25,.5);box-shadow:inset 0 1px 0 rgba(255,255,255,.035)}
.reference-auth-theme .captcha-head,.reference-collab-theme .captcha-head{color:#e7ebf2;font-size:11px}.reference-auth-theme .captcha-refresh,.reference-collab-theme .captcha-refresh{background:rgba(232,177,94,.11);border:1px solid rgba(232,177,94,.22);color:#efbd70;padding:8px 11px}.reference-auth-theme .captcha-refresh:hover,.reference-collab-theme .captcha-refresh:hover{background:rgba(232,177,94,.18)}
.reference-auth-theme .captcha-image,.reference-collab-theme .captcha-image{background:#f8fafc;border:1px solid rgba(255,255,255,.12);height:72px}.reference-auth-theme .captcha-input,.reference-collab-theme .captcha-input{height:52px!important;letter-spacing:0!important;font-size:11px!important;font-weight:800!important;text-align:right!important;background:rgba(3,11,23,.7)!important;color:#fff!important;border-color:rgba(255,255,255,.15)!important;padding:0 13px!important}.reference-auth-theme .captcha-input::placeholder,.reference-collab-theme .captcha-input::placeholder{color:#7f8a9c}

.reference-collab-theme{min-height:100vh;background:radial-gradient(circle at 50% 12%,rgba(31,82,136,.34),transparent 28%),radial-gradient(circle at 50% 82%,rgba(228,166,80,.11),transparent 24%),linear-gradient(180deg,#030914,#071426 46%,#030914);color:#eef2f7}
.reference-collab-theme .collab-page{position:relative;max-width:1080px;padding-top:24px;color:#eef2f7}.reference-collab-theme .collab-page:before{content:"";position:absolute;width:780px;height:780px;max-width:92vw;max-height:92vw;border:1px solid rgba(232,177,94,.26);border-radius:50%;top:80px;left:50%;transform:translateX(-50%);pointer-events:none;box-shadow:0 0 0 30px rgba(44,94,150,.035)}
.reference-collab-theme .collab-hero{position:relative;text-align:center;background:transparent;box-shadow:none;padding:28px 24px 25px;margin-bottom:5px}.reference-collab-theme .collab-badge{color:#edbd73;border-color:rgba(232,177,94,.25);background:rgba(232,177,94,.08)}.collab-gold-mark{width:max-content;margin:14px auto 4px;padding:7px 14px;border-radius:12px;border:1px solid rgba(232,177,94,.24);color:#edbd73;background:rgba(232,177,94,.08);font-size:11px;font-weight:950}.reference-collab-theme .collab-hero h1{font-size:32px;color:#fff}.reference-collab-theme .collab-hero .collab-notice{max-width:820px;margin:16px auto 0;color:#c4cbd6;background:rgba(255,255,255,.035);border-color:rgba(255,255,255,.1)}
.reference-collab-theme .collab-form{position:relative;background:linear-gradient(145deg,rgba(29,35,50,.91),rgba(9,20,36,.9));border:1px solid rgba(232,184,111,.34);box-shadow:0 32px 90px rgba(0,0,0,.4);backdrop-filter:blur(20px)}.reference-collab-theme .collab-form:before{content:"";position:absolute;top:-1px;left:18%;right:18%;height:1px;background:linear-gradient(90deg,transparent,#f2bd6a,transparent);box-shadow:0 0 14px #d99a43}.reference-collab-theme .collab-section{border-color:rgba(255,255,255,.08)}.reference-collab-theme .collab-section h2{color:#efbd70}.reference-collab-theme .collab-grid label{color:#dce1e9}.reference-collab-theme .collab-grid input,.reference-collab-theme .collab-grid textarea,.reference-collab-theme .collab-grid select{background:rgba(2,9,20,.48);border-color:rgba(255,255,255,.13);color:#f5f7fa}.reference-collab-theme .collab-grid input:focus,.reference-collab-theme .collab-grid textarea:focus,.reference-collab-theme .collab-grid select:focus{border-color:#e6ae5c;box-shadow:0 0 0 3px rgba(230,174,92,.08)}.reference-collab-theme .collab-submit{background:linear-gradient(135deg,#f3c779,#d89a45);color:#17110a;border:0;box-shadow:0 13px 30px rgba(215,151,61,.18)}
@media(max-width:620px){.reference-auth-theme .m-auth{padding:25px 18px}.reference-auth-theme .m-auth h1{font-size:23px}.reference-collab-theme .collab-hero h1{font-size:25px}.reference-collab-theme .collab-form{padding:18px}.reference-auth-theme .captcha-head,.reference-collab-theme .captcha-head{gap:8px}.reference-auth-theme .captcha-refresh,.reference-collab-theme .captcha-refresh{font-size:9px}}

/* === Lightweight premium auth motion + branding === */
.auth-brandline{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;gap:5px;margin:0 auto 15px;text-align:center}.auth-brandline strong{font-size:14px;color:#fff;font-weight:950}.auth-brandline small{font-size:10px;color:#e6ad56;letter-spacing:.1px}.collab-brandline{margin-top:14px}.student-kanoon-callout{position:relative;display:grid;grid-template-columns:96px 1fr;align-items:center;gap:16px;margin:0 0 18px;padding:14px 16px;border-radius:20px;background:linear-gradient(135deg,rgba(255,255,255,.06),rgba(232,177,94,.055));border:1px solid rgba(232,177,94,.28);overflow:hidden}.student-kanoon-callout:after{content:"";position:absolute;inset:auto 15% 0;height:1px;background:linear-gradient(90deg,transparent,#efbd70,transparent);box-shadow:0 0 18px rgba(239,189,112,.65)}.student-kanoon-callout img{width:78px;height:auto;justify-self:center;filter:drop-shadow(0 8px 16px rgba(0,0,0,.25))}.student-kanoon-callout div{display:flex;flex-direction:column;gap:6px;line-height:1.9}.student-kanoon-callout strong{color:#f3c779;font-size:13px}.student-kanoon-callout span{color:#fff;font-size:12px;font-weight:800}
.reference-auth-theme .m-auth,.reference-collab-theme .collab-form{animation:authCardIn .65s cubic-bezier(.2,.75,.25,1) both}.reference-auth-theme .m-auth-page:before{animation:orbitPulse 8s ease-in-out infinite alternate}.reference-collab-theme .collab-page:before{animation:collabOrbitPulse 8s ease-in-out infinite alternate}.reference-auth-theme .m-auth-page{overflow:hidden}.reference-auth-theme .m-auth-page:after{animation:starsDrift 24s linear infinite}.reference-collab-theme{background-attachment:fixed}.reference-auth-theme .m-btn-primary,.reference-collab-theme .collab-submit{position:relative;overflow:hidden}.reference-auth-theme .m-btn-primary:after,.reference-collab-theme .collab-submit:after{content:"";position:absolute;top:-70%;left:-35%;width:24%;height:240%;transform:rotate(24deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.38),transparent);animation:buttonSheen 5.5s ease-in-out infinite}
@keyframes collabOrbitPulse{from{opacity:.5;transform:translateX(-50%) scale(.98)}to{opacity:.9;transform:translateX(-50%) scale(1.02)}}@keyframes authCardIn{from{opacity:0;transform:translateY(20px) scale(.985)}to{opacity:1;transform:none}}@keyframes orbitPulse{from{opacity:.55;transform:translate(-50%,-50%) scale(.97)}to{opacity:.95;transform:translate(-50%,-50%) scale(1.025)}}@keyframes starsDrift{from{transform:translate3d(0,0,0)}to{transform:translate3d(24px,-16px,0)}}@keyframes buttonSheen{0%,70%{left:-35%}90%,100%{left:120%}}
.site-datetime,.hero-datetime{direction:ltr;display:flex;align-items:center;gap:10px;border:1px solid rgba(232,177,94,.28);background:rgba(5,13,28,.76);color:#fff;box-shadow:0 8px 24px rgba(0,0,0,.18);backdrop-filter:blur(8px);font-variant-numeric:tabular-nums}.site-datetime{position:relative;z-index:1;width:max-content;max-width:calc(100% - 28px);margin:10px 14px 0 auto;padding:8px 11px;border-radius:14px}.site-datetime span,.hero-datetime span{font-size:13px;font-weight:950;color:#f2bd6a}.site-datetime small,.hero-datetime small{font-size:9px;color:#d7deea;white-space:nowrap;direction:rtl}.hero-datetime{position:absolute;z-index:15;top:16px;left:16px;padding:9px 12px;border-radius:15px}.hero-datetime span{font-size:14px}
@media(max-width:620px){.student-kanoon-callout{grid-template-columns:70px 1fr;padding:11px}.student-kanoon-callout img{width:60px}.student-kanoon-callout strong{font-size:11px}.student-kanoon-callout span{font-size:10px}.site-datetime{margin:7px 7px 0 auto;padding:6px 8px}.site-datetime small{display:none}.hero-datetime{top:10px;left:10px;padding:7px 9px}.hero-datetime small{display:none}}
@media(prefers-reduced-motion:reduce){.reference-auth-theme .m-auth,.reference-collab-theme .collab-form,.reference-auth-theme .m-auth-page:before,.reference-collab-theme .collab-page:before,.reference-auth-theme .m-auth-page:after,.reference-auth-theme .m-btn-primary:after,.reference-collab-theme .collab-submit:after{animation:none!important}.reference-auth-theme .m-btn-primary,.reference-collab-theme .collab-submit{transition:none!important}}

/* Compact cooperation form — 3-column desktop layout */
.reference-collab-theme .collab-page{max-width:1040px;margin:22px auto;padding:0 14px 24px}
.reference-collab-theme .collab-hero{padding:18px 18px 15px;margin-bottom:2px}
.reference-collab-theme .collab-hero h1{font-size:25px;margin:10px 0 8px}
.reference-collab-theme .collab-notice{font-size:10.5px;line-height:1.75;padding:9px 12px;margin-top:10px;border-radius:12px}
.reference-collab-theme .collab-form{padding:17px 18px;border-radius:20px}
.reference-collab-theme .collab-section{padding:3px 0 14px;margin-bottom:13px}
.reference-collab-theme .collab-section h2{font-size:14px;margin:0 0 10px}
.reference-collab-theme .collab-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 10px}
.reference-collab-theme .collab-grid label{gap:4px;font-size:10.5px}
.reference-collab-theme .collab-grid input,
.reference-collab-theme .collab-grid select{height:36px;padding:6px 9px;border-radius:9px;font-size:10.5px}
.reference-collab-theme .collab-grid textarea{min-height:54px;padding:7px 9px;border-radius:9px;font-size:10.5px;line-height:1.65;resize:vertical}
.reference-collab-theme .collab-span-2{grid-column:span 2}
.reference-collab-theme .collab-span-3{grid-column:1/-1}
.reference-collab-theme .collab-wide{grid-column:1/-1}
.reference-collab-theme .captcha-section{padding-bottom:10px;margin-bottom:10px}
.reference-collab-theme .captcha-box{padding:9px 10px;border-radius:12px;margin-top:4px}
.reference-collab-theme .captcha-head{margin-bottom:6px;font-size:9.5px}
.reference-collab-theme .captcha-refresh{padding:5px 8px;font-size:9px;border-radius:8px}
.reference-collab-theme .captcha-row{grid-template-columns:190px 1fr;gap:9px}
.reference-collab-theme .captcha-image{height:58px;border-radius:9px}
.reference-collab-theme .captcha-input{height:38px!important;font-size:10px!important;border-radius:9px!important}
.reference-collab-theme .collab-submit{min-height:38px;padding:8px 18px;border-radius:10px;font-size:11px}
@media(max-width:820px){
 .reference-collab-theme .collab-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .reference-collab-theme .collab-span-2,.reference-collab-theme .collab-span-3{grid-column:1/-1}
}
@media(max-width:560px){
 .reference-collab-theme .collab-page{margin:12px auto;padding:0 9px 18px}
 .reference-collab-theme .collab-grid{grid-template-columns:1fr}
 .reference-collab-theme .collab-span-2,.reference-collab-theme .collab-span-3,.reference-collab-theme .collab-wide{grid-column:auto}
 .reference-collab-theme .captcha-row{grid-template-columns:1fr}
 .reference-collab-theme .captcha-image{width:190px;max-width:100%;justify-self:center}
}

/* CMS popup manager */
.popup-editor-form{margin-top:12px}
.popup-cms-list{display:grid;gap:12px;margin-top:12px}
.popup-cms-card{display:grid;gap:14px}
.popup-cms-preview{
 display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:start;
 padding:13px;border-radius:15px;background:linear-gradient(145deg,#17191e,#24231f);
 border:1px solid rgba(218,181,91,.20);color:#fff
}
.popup-cms-preview>img{grid-column:1/-1;width:100%;height:150px;object-fit:cover;border-radius:11px}
.popup-cms-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:rgba(227,188,92,.10);color:#e3bc5c}
.popup-cms-preview h3{margin:2px 0 4px;color:#f2d483;font-size:14px}
.popup-cms-preview p{margin:0;color:rgba(255,255,255,.66);font-size:10px;line-height:1.8}
.popup-cms-preview small{color:#c5a34d;font-size:8px}
.popup-cms-preview b{display:block;margin-top:6px;color:#e7c66f;font-size:9px}
.popup-editor-form.compact{padding-top:10px;border-top:1px solid #edf0f6}
@media(max-width:700px){.popup-cms-preview{grid-template-columns:1fr}.popup-cms-icon{margin-bottom:2px}}

/* Bug reporter */
.bug-reporter-btn{position:fixed;left:20px;bottom:20px;z-index:999999;width:52px;height:52px;border-radius:50%;border:0;cursor:pointer;font-size:24px;box-shadow:0 4px 18px #0004}
.bug-reporter-panel{position:fixed;left:20px;bottom:85px;z-index:999999;width:340px;background:#fff;padding:16px;border-radius:14px;box-shadow:0 8px 30px #0004;direction:rtl}
.bug-reporter-panel textarea{width:100%;min-height:90px;margin:10px 0}

/* Home feature cards - Version 6 */
.service-feature-card img,.about-strip img{max-width:72px;max-height:72px;object-fit:cover;border-radius:14px;display:block;margin:auto}
.line-clamp-3{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:4.5em}
.feature-more{display:inline-flex;margin-top:12px;text-decoration:none;font-size:.9rem}
.services-feature-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:900px){.services-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.services-feature-grid{grid-template-columns:1fr}}


/* Version 7 compact home cards */
.compact-home-cards .compact-card{min-height:60%;padding:18px}
.home-quick-access .feature-more{display:inline-block;margin-top:8px}
.home-services .service-feature-card img{max-height:120px;object-fit:cover}
