/* Dersal v21.25 — shared premium page header
   Scope: authenticated dashboard pages, excluding dedicated student/admin shells. */

.panel-auth:not(.student-v109-page):not(.admin-pro-page) .dashboard-header{
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:118px;
  margin:0 0 24px;
  padding:22px 26px;
  overflow:hidden;
  border:1px solid #e3e7ef;
  border-radius:20px;
  background:linear-gradient(135deg,#ffffff 0%,#fbfcff 64%,#f6f8ff 100%);
  box-shadow:0 10px 34px rgba(15,23,42,.055);
}

.panel-auth:not(.student-v109-page):not(.admin-pro-page) .dashboard-header::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  background:linear-gradient(180deg,#695cff 0%,#9b8cff 100%);
  opacity:.9;
}

.panel-auth:not(.student-v109-page):not(.admin-pro-page) .dashboard-header::after{
  content:"";
  position:absolute;
  z-index:-1;
  width:220px;
  height:220px;
  right:-72px;
  top:-112px;
  border:0;
  border-radius:50%;
  background:radial-gradient(circle,rgba(99,91,255,.095) 0%,rgba(99,91,255,.035) 42%,transparent 70%);
  pointer-events:none;
}

.panel-auth:not(.student-v109-page):not(.admin-pro-page) .dashboard-header > div:first-child{
  position:relative;
  z-index:1;
  min-width:0;
  max-width:min(860px,72%);
}

.panel-auth:not(.student-v109-page):not(.admin-pro-page) .dashboard-header .eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:max-content;
  margin:0 0 9px;
  padding:6px 10px;
  border:1px solid rgba(99,91,255,.10);
  border-radius:999px;
  background:#f3f1ff;
  color:#6257e8;
  font-size:11.5px;
  font-weight:800;
  line-height:1;
  letter-spacing:.075em;
  text-transform:uppercase;
}

.panel-auth:not(.student-v109-page):not(.admin-pro-page) .dashboard-header .eyebrow::before{
  width:6px;
  height:6px;
  flex:0 0 6px;
  border-radius:50%;
  background:#6b5cff;
  box-shadow:0 0 0 4px rgba(107,92,255,.09);
}

.panel-auth:not(.student-v109-page):not(.admin-pro-page) .dashboard-header h1{
  max-width:820px;
  margin:0;
  color:#141b2d;
  font-family:"Manrope",sans-serif;
  font-size:clamp(28px,1.9vw,36px);
  font-weight:780;
  line-height:1.08;
  letter-spacing:-.038em;
  text-wrap:balance;
}

.panel-auth:not(.student-v109-page):not(.admin-pro-page) .dashboard-header p{
  max-width:780px;
  margin:9px 0 0;
  color:#748094;
  font-size:14.5px;
  line-height:1.55;
  letter-spacing:-.01em;
}

.panel-auth:not(.student-v109-page):not(.admin-pro-page) .dashboard-header > .action-row,
.panel-auth:not(.student-v109-page):not(.admin-pro-page) .dashboard-header > .btn{
  position:relative;
  z-index:2;
  flex:0 0 auto;
}

.panel-auth:not(.student-v109-page):not(.admin-pro-page) .dashboard-header > .action-row{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.panel-auth:not(.student-v109-page):not(.admin-pro-page) .dashboard-header .btn{
  min-height:46px;
  padding:0 18px;
  border-radius:13px;
  font-size:13.5px;
  font-weight:750;
  box-shadow:none;
}

.panel-auth:not(.student-v109-page):not(.admin-pro-page) .dashboard-header .btn-outline{
  border-color:#dce1ea;
  background:rgba(255,255,255,.88);
  color:#262d3c;
}

.panel-auth:not(.student-v109-page):not(.admin-pro-page) .dashboard-header .btn-outline:hover{
  border-color:#c9cfe0;
  background:#fff;
  transform:translateY(-1px);
}

.panel-auth:not(.student-v109-page):not(.admin-pro-page) .dashboard-header .btn-primary{
  border-color:#6257f5;
  background:#6257f5;
  color:#fff;
  box-shadow:0 9px 20px rgba(98,87,245,.16);
}

.panel-auth:not(.student-v109-page):not(.admin-pro-page) .dashboard-header .btn-primary:hover{
  background:#564be6;
  border-color:#564be6;
  box-shadow:0 11px 24px rgba(98,87,245,.20);
  transform:translateY(-1px);
}

/* Neutralize legacy role-specific hero decoration without affecting sidebar palettes. */
:is(.user-role-instructor,.user-role-institution_teacher,.user-role-institution):not(.student-v109-page):not(.admin-pro-page) .dashboard-header{
  border-color:#e3e7ef;
  background:linear-gradient(135deg,#ffffff 0%,#fbfcff 64%,#f6f8ff 100%);
  box-shadow:0 10px 34px rgba(15,23,42,.055);
}

:is(.user-role-instructor,.user-role-institution_teacher,.user-role-institution):not(.student-v109-page):not(.admin-pro-page) .dashboard-header h1{
  color:#141b2d;
  font-size:clamp(28px,1.9vw,36px);
}

:is(.user-role-instructor,.user-role-institution_teacher,.user-role-institution):not(.student-v109-page):not(.admin-pro-page) .dashboard-header p{
  color:#748094;
  font-size:14.5px;
}

:is(.user-role-instructor,.user-role-institution_teacher,.user-role-institution):not(.student-v109-page):not(.admin-pro-page) .dashboard-header .btn-primary{
  border-color:#6257f5;
  background:#6257f5;
  box-shadow:0 9px 20px rgba(98,87,245,.16);
}

@media (max-width:900px){
  .panel-auth:not(.student-v109-page):not(.admin-pro-page) .dashboard-header{
    min-height:0;
    padding:19px 18px;
    gap:17px;
    border-radius:18px;
  }
  .panel-auth:not(.student-v109-page):not(.admin-pro-page) .dashboard-header > div:first-child{
    max-width:100%;
  }
  .panel-auth:not(.student-v109-page):not(.admin-pro-page) .dashboard-header h1{
    font-size:clamp(26px,6.9vw,31px);
    line-height:1.12;
  }
  .panel-auth:not(.student-v109-page):not(.admin-pro-page) .dashboard-header p{
    margin-top:7px;
    font-size:13.5px;
  }
  .panel-auth:not(.student-v109-page):not(.admin-pro-page) .dashboard-header .eyebrow{
    margin-bottom:8px;
    padding:5px 9px;
    font-size:10.5px;
  }
  .panel-auth:not(.student-v109-page):not(.admin-pro-page) .dashboard-header .btn{
    min-height:44px;
    border-radius:12px;
  }
}

@media (max-width:560px){
  .panel-auth:not(.student-v109-page):not(.admin-pro-page) .dashboard-header{
    padding:17px 15px;
    margin-bottom:18px;
    border-radius:16px;
  }
  .panel-auth:not(.student-v109-page):not(.admin-pro-page) .dashboard-header h1{
    font-size:27px;
    letter-spacing:-.035em;
  }
  .panel-auth:not(.student-v109-page):not(.admin-pro-page) .dashboard-header::after{
    width:160px;
    height:160px;
    right:-70px;
    top:-78px;
  }
}
