/* DASHBOARD LAYOUT - VERSION COMPACTE */

.sp-dashboard-body {
  background: #f8fbff;
  color: var(--sp-text);
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sp-dashboard-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* SIDEBAR */

.sp-dashboard-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid var(--sp-border);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
}

.sp-dashboard-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sp-text);
  text-decoration: none;
  padding: 4px 6px;
}

.sp-dashboard-logo .sp-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 14px;
}

.sp-dashboard-logo strong {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.sp-dashboard-logo small {
  display: block;
  color: var(--sp-muted);
  font-size: 10.5px;
  margin-top: 4px;
}

.sp-dashboard-menu {
  display: grid;
  gap: 5px;
}

.sp-dashboard-menu a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 11px;
  color: #344054;
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
  transition: 0.25s ease;
}

.sp-dashboard-menu a em {
  font-style: normal;
}

.sp-dashboard-menu a svg,
.sp-dashboard-notification svg {
  width: 20px;
  height: 20px;
  color: #667085;
  transition: 0.25s ease;
}

.sp-dashboard-notification svg {
  color: var(--sp-text);
}

.sp-dashboard-menu a:hover svg {
  color: var(--sp-blue);
}

.sp-dashboard-menu a.active svg {
  color: #ffffff;
}

.sp-dashboard-menu a:hover {
  background: var(--sp-soft-blue);
  color: var(--sp-blue);
}

.sp-dashboard-menu a.active {
  background: linear-gradient(135deg, var(--sp-blue), var(--sp-blue-dark));
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(21, 94, 239, 0.2);
}

.sp-dashboard-upgrade {
  margin-top: auto;
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  border: 1px solid #d6e4ff;
  border-radius: 18px;
  padding: 18px 14px;
  text-align: center;
}

.sp-upgrade-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--sp-soft-blue);
  color: var(--sp-blue);
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  font-size: 20px;
  font-weight: 900;
}

.sp-dashboard-upgrade h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--sp-text);
}

.sp-dashboard-upgrade p {
  margin: 0 0 14px;
  color: var(--sp-muted);
  line-height: 1.5;
  font-size: 12.5px;
}

.sp-dashboard-upgrade a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
  background: var(--sp-blue);
  color: #ffffff;
  text-decoration: none;
  font-weight: 750;
  font-size: 13px;
}

/* TOPBAR */

.sp-dashboard-main {
  min-width: 0;
}

.sp-dashboard-topbar {
  height: 76px;
  background: #ffffff;
  border-bottom: 1px solid var(--sp-border);
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sp-dashboard-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sp-dashboard-topbar h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.6px;
  color: var(--sp-text);
}

.sp-dashboard-topbar p {
  margin: 3px 0 0;
  color: var(--sp-muted);
  font-size: 13px;
}

.sp-dashboard-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--sp-border);
  border-radius: 10px;
  background: #ffffff;
  padding: 0;
  cursor: pointer;
}

.sp-dashboard-mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--sp-text);
  margin: 2px 0;
  border-radius: 1px;
  transition: 0.25s ease;
}

.sp-dashboard-user-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sp-dashboard-notification {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--sp-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.sp-dashboard-notification svg {
  width: 20px;
  height: 20px;
  color: var(--sp-text);
  transition: 0.25s ease;
}

.sp-dashboard-notification .sp-notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 19px;
  height: 19px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.sp-dashboard-user {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.sp-dashboard-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sp-blue), var(--sp-primary));
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
}

.sp-dashboard-user strong {
  display: block;
  color: var(--sp-text);
  font-size: 14px;
}

.sp-dashboard-user small {
  display: block;
  color: var(--sp-blue);
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.sp-dashboard-user-arrow {
  color: var(--sp-muted);
  font-size: 17px;
}

/* DASHBOARD NAFLOO DYNAMIC */

.sp-dashboard-upgrade strong {
  display: block;
  margin-top: 6px;
  color: var(--sp-blue);
  font-size: 13px;
}

.sp-dashboard-logout {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background: #fff1f3;
  color: #d92d20;
  border: 1px solid #ffd6dc;
  text-decoration: none;
  font-weight: 750;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sp-dashboard-logout:hover {
  color: #b42318;
  background: #ffe4e8;
}

@media (max-width: 760px) {
  .sp-dashboard-logout {
    display: none;
  }
}

/* SIDEBAR — ACCÈS DYNAMIQUES */

.nf-sidebar-access-card {
  text-align: left;
}

.nf-sidebar-access-card .sp-upgrade-icon,
.nf-sidebar-access-card>h3 {
  text-align: center;
}

.nf-sidebar-access-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 16px;
}

.nf-sidebar-access-item {
  position: relative;
  padding: 11px 10px;
  background: #ffffff;
  border: 1px solid #d6e4ff;
  border-radius: 11px;
}

.nf-sidebar-access-item strong {
  display: block;
  margin: 0 0 5px;
  color: var(--sp-text);
  font-size: 12.5px;
  line-height: 1.35;
}

.nf-sidebar-access-item small {
  display: block;
  padding-right: 48px;
  color: var(--sp-muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.nf-sidebar-access-status {
  position: absolute;
  right: 8px;
  bottom: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.nf-sidebar-access-status.active {
  background: #dcfae6;
  color: #027a48;
}

.nf-sidebar-no-access {
  margin: 12px 0 16px !important;
  text-align: center;
}

/* DASHBOARD — ACCÈS DYNAMIQUES */

.nf-dashboard-primary-plan {
  display: block;
  margin-top: 8px;
  color: var(--sp-muted);
  font-size: 12px;
}

.nf-dashboard-primary-plan strong {
  color: var(--sp-blue);
}

.nf-dashboard-view-all {
  display: inline-flex;
  margin-top: 12px;
  color: var(--sp-blue);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.nf-dashboard-access-panel,
.nf-dashboard-services-panel {
  margin-top: 20px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--sp-border);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.045);
}

.nf-dashboard-access-list,
.nf-dashboard-services-list {
  display: grid;
  gap: 11px;
}

.nf-dashboard-access-item,
.nf-dashboard-service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  background: #f8faff;
  border: 1px solid #e4eaf7;
  border-radius: 13px;
}

.nf-dashboard-access-item strong,
.nf-dashboard-service-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--sp-text);
  font-size: 13px;
}

.nf-dashboard-access-item small,
.nf-dashboard-service-item small {
  color: var(--sp-muted);
  font-size: 11.5px;
}

.nf-dashboard-access-item>span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #dcfae6;
  color: #027a48;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 760px) {

  .nf-dashboard-access-item,
  .nf-dashboard-service-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .nf-dashboard-service-item .sp-mini-btn {
    width: 100%;
  }
}

/* DASHBOARD — SCORE DYNAMIQUE */

.nf-mastery-card {
  padding: 20px;
}

.nf-meter {
  width: 148px;
  height: 148px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle,
      #ffffff 56%,
      transparent 57%),
    conic-gradient(var(--sp-blue) calc(var(--nf-score) * 1%),
      #e4e7ec 0);
  display: grid;
  place-items: center;
}

.nf-meter-score {
  text-align: center;
}

.nf-meter-score>span {
  display: block;
  max-width: 90px;
  margin: 0 auto 5px;
  color: var(--sp-muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
}

.nf-meter-score>strong {
  display: block;
  color: var(--sp-text);
  font-size: 31px;
  line-height: 1;
}

.nf-meter-score>strong small {
  color: var(--sp-muted);
  font-size: 12px;
}

.nf-meter-score>em {
  display: block;
  margin-top: 6px;
  color: var(--sp-blue);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.nf-score-components {
  display: grid;
  gap: 11px;
}

.nf-score-component>div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.nf-score-component span {
  color: var(--sp-muted);
  font-size: 10.5px;
}

.nf-score-component strong {
  color: var(--sp-text);
  font-size: 10.5px;
}

.nf-score-progress {
  height: 6px;
  overflow: hidden;
  background: #e4e7ec;
  border-radius: 999px;
}

.nf-score-progress span {
  display: block;
  height: 100%;
  background: var(--sp-blue);
  border-radius: inherit;
}

.nf-dashboard-recommendations {
  margin-top: 20px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--sp-border);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.045);
}

.nf-recommendation-list {
  display: grid;
  gap: 10px;
}

.nf-recommendation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 14px;
  background: #f8faff;
  border: 1px solid #e4eaf7;
  border-radius: 13px;
  color: inherit;
  text-decoration: none;
  transition: 0.2s ease;
}

.nf-recommendation-item:hover {
  border-color: var(--sp-blue);
  transform: translateY(-1px);
}

.nf-recommendation-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--sp-text);
  font-size: 13px;
}

.nf-recommendation-item p {
  margin: 0;
  color: var(--sp-muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.nf-recommendation-item>span {
  color: var(--sp-blue);
  font-size: 20px;
  font-weight: 800;
}