.nav-xp {
  background: linear-gradient(135deg, #5b5ef4, #7209b7);
  color: white; font-weight: 800; font-size: 0.8rem;
  padding: 0.3rem 0.8rem; border-radius: 50px;
}
.nav-streak {
  font-weight: 800; font-size: 0.88rem; color: #f97316;
}
.nav-profile-btn {
  background: #f0f2ff; border: 2px solid #e8eaff;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer; transition: all 0.2s;
  position: relative;
}
.nav-profile-btn:hover { border-color: #5b5ef4; }
.profile-menu {
  display: none; position: absolute; top: 50px; right: 0;
  background: white; border-radius: 16px; padding: 1rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15); min-width: 180px;
  z-index: 200; border: 2px solid #eeeeff;
}
.profile-menu.open { display: block; animation: popIn 0.2s ease; }
@keyframes popIn {
  from { transform: scale(0.9) translateY(-5px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.pm-name { font-weight: 900; font-size: 1rem; margin-bottom: 0.1rem; }
.pm-plan {
  font-size: 0.75rem; font-weight: 800; color: #5b5ef4;
  background: rgba(91,94,244,0.1); padding: 0.2rem 0.6rem;
  border-radius: 50px; display: inline-block; margin-bottom: 0.75rem;
}
.pm-link {
  display: block; padding: 0.5rem 0.6rem; border-radius: 10px;
  font-weight: 700; font-size: 0.88rem; color: #1a1a2e;
  text-decoration: none; transition: all 0.15s;
  background: none; border: none; cursor: pointer; width: 100%;
  text-align: left; font-family: 'Nunito', sans-serif;
}
.pm-link:hover { background: #f0f2ff; }
.pm-logout { color: #dc2626; }
.pm-logout:hover { background: #fef2f2; }

.dash-hero {
  padding: 3rem 4rem;
  background: linear-gradient(145deg, #eef0ff 0%, #fce7ff 50%, #fff0e8 100%);
}
.dash-hero-inner { max-width: 1100px; margin: 0 auto; }
.dash-welcome h1 { font-size: 2rem; font-weight: 900; margin-bottom: 0.5rem; }
.dash-welcome p { color: #64748b; font-size: 1rem; margin-bottom: 1.5rem; }
.dash-quick-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.dqa-btn {
  padding: 0.7rem 1.4rem; border-radius: 14px;
  font-weight: 800; font-size: 0.9rem;
  background: white; color: #1a1a2e;
  border: 2px solid #e8eaff; text-decoration: none;
  transition: all 0.2s; display: flex; align-items: center; gap: 0.4rem;
}
.dqa-btn:hover { border-color: #5b5ef4; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(91,94,244,0.15); }
.dqa-btn.primary {
  background: linear-gradient(135deg, #5b5ef4, #7209b7);
  color: white; border-color: transparent;
  box-shadow: 0 6px 24px rgba(91,94,244,0.35);
}
.dqa-btn.primary:hover { box-shadow: 0 10px 32px rgba(91,94,244,0.45); }

.dash-stats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem; padding: 2rem 4rem; max-width: 1100px; margin: 0 auto;
}
.stat-card {
  background: white; border-radius: 20px; padding: 1.5rem;
  text-align: center; box-shadow: 0 4px 20px rgba(91,94,244,0.08);
  border: 2px solid transparent; transition: all 0.3s;
}
.stat-card:hover { transform: translateY(-4px); border-color: rgba(91,94,244,0.15); box-shadow: 0 8px 30px rgba(91,94,244,0.12); }
.sc-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.sc-value {
  font-size: 2rem; font-weight: 900;
  background: linear-gradient(135deg, #5b5ef4, #f72585);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.sc-label { font-size: 0.78rem; font-weight: 800; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }
.sc-level {
  font-size: 0.72rem; font-weight: 900; margin-top: 0.3rem;
  background: linear-gradient(90deg, #5b5ef4, #7209b7);
  color: white; padding: 0.2rem 0.6rem; border-radius: 50px; display: inline-block;
}

.dash-body {
  display: grid; grid-template-columns: 2fr 1fr; gap: 2rem;
  padding: 2rem 4rem; max-width: 1100px; margin: 0 auto;
}
.dash-section {
  background: white; border-radius: 20px; padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(91,94,244,0.06); margin-bottom: 1.5rem;
  border: 2px solid #f0f2ff;
}
.dash-section h3 { font-size: 1.1rem; font-weight: 900; margin-bottom: 0.3rem; }
.ds-sub { font-size: 0.85rem; color: #64748b; margin-bottom: 1rem; }
.ds-link {
  display: block; text-align: center; margin-top: 1rem;
  color: #5b5ef4; font-weight: 800; font-size: 0.88rem; text-decoration: none;
}
.ds-link:hover { text-decoration: underline; }
.no-data { text-align: center; padding: 1.5rem; color: #a0a8c8; font-size: 0.9rem; }

.skill-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.skill-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.8rem; border-radius: 10px; background: #f8f9ff;
}
.skill-name { flex: 1; font-weight: 700; font-size: 0.88rem; text-transform: capitalize; }
.skill-bar { flex: 2; height: 8px; background: #eeeeff; border-radius: 50px; overflow: hidden; }
.skill-bar-fill { height: 100%; border-radius: 50px; transition: width 0.6s ease; }
.skill-pct { font-weight: 900; font-size: 0.82rem; min-width: 40px; text-align: right; }

.weakness-list { display: flex; flex-direction: column; gap: 0.6rem; }
.weak-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border-radius: 12px;
  background: #fef7f0; border: 1.5px solid #fed7aa;
}
.weak-item .wi-icon { font-size: 1.2rem; }
.weak-item .wi-name { flex: 1; font-weight: 700; font-size: 0.9rem; text-transform: capitalize; }
.weak-item .wi-pct { font-weight: 900; color: #c2410c; font-size: 0.88rem; }

.session-list { display: flex; flex-direction: column; gap: 0.5rem; }
.session-item {
  padding: 0.6rem 0.75rem; border-radius: 10px;
  background: #f8f9ff; font-size: 0.85rem;
  display: flex; justify-content: space-between; align-items: center;
}
.si-date { font-weight: 700; }
.si-xp { font-weight: 800; color: #5b5ef4; font-size: 0.8rem; }

.hw-list { display: flex; flex-direction: column; gap: 0.5rem; }
.hw-item {
  padding: 0.6rem 0.75rem; border-radius: 10px;
  background: #f8f9ff; font-size: 0.85rem;
  display: flex; justify-content: space-between; align-items: center;
}
.hw-status {
  font-size: 0.72rem; font-weight: 800; padding: 0.2rem 0.6rem;
  border-radius: 50px;
}
.hw-status.graded { background: #ecfdf5; color: #059669; }
.hw-status.pending { background: #fef3c7; color: #92400e; }

.revision-box { min-height: 80px; }
.revision-content {
  font-size: 0.9rem; line-height: 1.7;
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  .dash-hero, .dash-stats, .dash-body { padding-left: 1.5rem; padding-right: 1.5rem; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
}
