/* Unified Dashboard Hero, Animated Charts, Achievements, Notifications & Profile */

.header-actions-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.notif-wrap {
  position: relative;
}

.notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--color-border-strong, #c9bedf);
  background: #fff;
  color: var(--color-text, #201936);
  cursor: pointer;
  padding: 0;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.notif-bell:hover {
  background: var(--color-primary-soft, #eee8ff);
  border-color: var(--color-primary, #5833b3);
  color: var(--color-primary, #5833b3);
  box-shadow: none;
}

.notif-bell svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.35);
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(370px, 92vw);
  max-height: 420px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border, #e1dbee);
  border-radius: 20px;
  box-shadow: var(--shadow-md, 0 16px 42px rgb(54 35 104 / 0.14));
  z-index: 80;
}

.notif-dropdown-head {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border, #e1dbee);
}

.notif-dropdown-head strong {
  font-family: var(--font-display, inherit);
  font-size: 15px;
  color: var(--color-text, #201936);
}

.notif-mark-all {
  background: transparent;
  border: none;
  color: var(--color-primary, #5833b3);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
  box-shadow: none;
}

.notif-mark-all:hover {
  box-shadow: none;
  text-decoration: underline;
}

.notif-list {
  min-height: 0;
  overflow-y: auto;
  max-height: 340px;
  display: flex;
  flex-direction: column;
}

.notif-item {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  height: auto;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.5;
  gap: 6px;
  padding: 13px 18px;
  border: 0;
  border-bottom: 1px solid #f2eefb;
  border-left: 3px solid transparent;
  border-radius: 0;
  cursor: pointer;
  text-align: left;
  background: #fff;
  box-shadow: none;
  transition: background 0.15s ease;
}

.notif-item:hover {
  background: #faf8ff;
  box-shadow: none;
}

.notif-item.unread {
  background: #f5f0ff;
  border-left-color: var(--color-primary, #5833b3);
}

.notif-item strong {
  display: block;
  line-height: 1.45;
  font-size: 13.5px;
  color: var(--color-text, #201936);
}

.notif-item p {
  margin: 0;
  font-size: 12.5px;
  color: var(--color-text-muted, #5f5871);
  line-height: 1.45;
}

.notif-item small {
  display: block;
  line-height: 1.5;
  font-size: 11px;
  color: #847ca3;
}

.notif-empty {
  padding: 28px 18px;
  text-align: center;
  color: var(--color-text-muted, #5f5871);
  font-size: 13.5px;
}

/* Ready Courses / Background Alert Banner */
.ready-courses-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  margin-bottom: 20px;
  border-radius: 20px;
  background: linear-gradient(125deg, #ecfdf5 0%, #f0f9ff 100%);
  border: 1px solid #86efac;
  color: #065f46;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.1);
  animation: dash-fade-up 0.4s ease both;
}

.ready-courses-banner.has-failed {
  background: linear-gradient(125deg, #fef2f2 0%, #fff7ed 100%);
  border-color: #fca5a5;
  color: #991b1b;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.1);
}

.ready-courses-banner strong {
  display: block;
  font-family: var(--font-display, inherit);
  font-size: 16px;
}

.ready-courses-banner p {
  margin: 2px 0 0;
  font-size: 13.5px;
}

/* ==========================================================================
   ROW 1: Unified Hero (Continue Learning) + Single Points & Achievements Card
   ========================================================================== */
.dash-hero-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(300px, 1fr);
  gap: 20px;
  margin-bottom: 20px;
  align-items: stretch;
}

.continue-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(170px, 0.7fr);
  gap: 18px;
  align-items: center;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 28px;
  border: 1px solid #5031a5;
  background: radial-gradient(circle at 84% 18%, rgba(255, 217, 120, 0.28), transparent 36%),
    radial-gradient(circle at 10% 90%, rgba(168, 118, 236, 0.3), transparent 42%),
    linear-gradient(125deg, #2b1361 0%, #532fb0 58%, #7d53d8 100%);
  color: #fff;
  box-shadow: 0 24px 54px rgb(53 29 117 / 0.22);
  animation: dash-fade-up 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.continue-hero-glow {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 224, 140, 0.24), transparent 70%);
  pointer-events: none;
  animation: hero-glow-breathe 6s ease-in-out infinite;
}

.continue-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.continue-hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.continue-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff6d9;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.12em;
  backdrop-filter: blur(8px);
}

.continue-live-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd978;
  box-shadow: 0 0 0 0 rgba(255, 217, 120, 0.75);
  animation: live-dot-pulse 2s infinite;
}

.continue-subject-chip {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.continue-hero h2 {
  margin: 0;
  font-family: var(--font-display, inherit);
  font-size: clamp(24px, 2.7vw, 34px);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  letter-spacing: -0.04em;
}

.continue-hero-lead {
  margin: 0;
  color: rgba(244, 238, 255, 0.9);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 460px;
}

.continue-glass-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.continue-glass-box span {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #ffe7a8;
}

.continue-glass-box strong {
  display: block;
  margin-top: 2px;
  font-size: 14.5px;
  color: #fff;
}

.continue-percent-badge {
  flex: 0 0 auto;
  padding: 7px 13px;
  border-radius: 12px;
  background: rgba(255, 217, 120, 0.2);
  border: 1px solid rgba(255, 217, 120, 0.45);
  color: #ffe8a3;
  font-family: var(--font-display, inherit);
  font-size: 17px;
  font-weight: 800;
}

.continue-progress-track {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  margin-top: 10px;
}

.continue-progress-track i {
  position: relative;
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd978 0%, #fbbf24 55%, #34d399 100%);
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.continue-progress-track i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(-100%);
  animation: progress-shimmer 2.4s ease-in-out infinite;
}

.continue-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.continue-gold-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 14px;
  border: 1px solid #ffe4a1;
  background: #ffd978;
  color: #462a00;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(24, 9, 60, 0.25);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.continue-gold-cta:hover {
  background: #ffe5a2;
  color: #462a00;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(24, 9, 60, 0.32);
}

.continue-ghost-cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.continue-ghost-cta:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.48);
  color: #fff;
  box-shadow: none;
}

.continue-hero-mascot {
  position: relative;
  align-self: end;
  min-height: 225px;
  z-index: 1;
}

.continue-hero-mascot img {
  position: absolute;
  right: -6%;
  bottom: -44px;
  width: min(255px, 112%);
  height: 270px;
  object-fit: contain;
  filter: drop-shadow(0 16px 20px rgba(20, 8, 52, 0.34));
  animation: hero-mascot-float 4.8s ease-in-out infinite;
}

.continue-hero-mascot span {
  position: absolute;
  top: 4%;
  right: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  color: #45258e;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(26, 12, 68, 0.22);
  transform: rotate(4deg);
  animation: bubble-float 4.8s 0.4s ease-in-out infinite;
}

/* Single Unified Rewards & Achievements Card */
.rewards-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid #f0d6a6;
  background: radial-gradient(circle at 92% 8%, #ffe7b8, transparent 42%), linear-gradient(155deg, #fffaf0 0%, #ffffff 78%);
  padding: 24px 26px;
  box-shadow: 0 16px 40px rgb(54 35 104 / 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  animation: dash-fade-up 0.5s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rewards-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.rewards-card-head .eyebrow {
  margin: 0;
  color: #a15b00;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.rewards-title {
  margin: 4px 0 0;
  font-family: var(--font-display, inherit);
  font-size: 24px;
  font-weight: 800;
  color: var(--color-text, #201936);
}

.chart-chip-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #e4d8f8;
  background: #fff;
  color: var(--color-primary, #5833b3);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.chart-chip-btn:hover {
  background: var(--color-primary-soft, #eee8ff);
  border-color: var(--color-primary, #5833b3);
  box-shadow: none;
}

.rewards-gauge-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rewards-gauge-meta strong {
  display: block;
  font-family: var(--font-display, inherit);
  font-size: 17px;
  color: var(--color-text, #201936);
}

.rewards-gauge-meta p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--color-text-muted, #5f5871);
  line-height: 1.45;
}

.rewards-badges-wrap {
  padding-top: 12px;
  border-top: 1px solid rgba(240, 214, 166, 0.55);
}

.rewards-sub-label {
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #9a5b08;
  margin-bottom: 8px;
}

/* ==========================================================================
   ROW 2: Unified Analytics Chart Card + Recent Activities Timeline
   ========================================================================== */
.dash-analytics-row {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 22px;
}

.analytics-main-card,
.activities-card {
  border-radius: 26px;
  border: 1px solid var(--color-border, #e1dbee);
  background: linear-gradient(155deg, #ffffff 0%, #fbf9ff 100%);
  padding: 24px 26px;
  box-shadow: 0 14px 36px rgb(54 35 104 / 0.06);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: dash-fade-up 0.55s 0.14s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.chart-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.chart-card-head .eyebrow {
  margin: 0;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.chart-card-head h3 {
  margin: 4px 0 0;
  font-family: var(--font-display, inherit);
  font-size: 21px;
  font-weight: 800;
  color: var(--color-text, #201936);
}

.analytics-split {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.analytics-donut-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-right: 20px;
  border-right: 1px solid #ede7f8;
}

.analytics-donut-caption {
  text-align: center;
}

.analytics-donut-caption strong {
  display: block;
  font-family: var(--font-display, inherit);
  font-size: 14px;
  color: var(--color-text, #201936);
}

.analytics-donut-caption small {
  font-size: 11.5px;
  color: var(--color-text-muted, #5f5871);
}

/* Donut Ring Chart */
.donut-wrap {
  position: relative;
  width: 118px;
  height: 118px;
  flex: 0 0 118px;
}

.donut-wrap-sm {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
}

.donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-track {
  fill: none;
  stroke: #ece6fa;
  stroke-width: 10;
}

.donut-track-warm {
  stroke: #f6e6c8;
}

.donut-fill {
  fill: none;
  stroke: url(#dashDonutGrad);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.donut-fill-gold {
  stroke: url(#dashGoldGrad);
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.donut-center strong {
  font-family: var(--font-display, inherit);
  font-size: 24px;
  font-weight: 800;
  color: var(--color-text, #201936);
  line-height: 1;
}

.donut-wrap-sm .donut-center strong {
  font-size: 21px;
}

.donut-center small {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text-muted, #5f5871);
  margin-top: 3px;
}

/* Distribution Column */
.analytics-dist-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dist-hero {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.dist-hero strong {
  font-family: var(--font-display, inherit);
  font-size: 34px;
  font-weight: 800;
  color: var(--color-text, #201936);
  line-height: 1;
  letter-spacing: -0.04em;
}

.dist-hero span {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted, #5f5871);
}

.dist-stacked-bar {
  display: flex;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #eee9f8;
  gap: 2px;
}

.dist-seg {
  height: 100%;
  transition: width 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  min-width: 0;
}

.dist-seg.completed { background: linear-gradient(90deg, #10b981, #34d399); }
.dist-seg.in-progress { background: linear-gradient(90deg, #5833b3, #8b5cf6); }
.dist-seg.not-started { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.dist-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dist-legend-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 11px 13px;
  border: 1px solid #ebe4f6;
  border-radius: 15px;
  background: #faf8ff;
  color: var(--color-text, #201936);
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.dist-legend-btn:hover {
  border-color: var(--color-primary, #5833b3);
  background: #f3edff;
  transform: translateY(-2px);
  box-shadow: none;
}

.dist-legend-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-muted, #5f5871);
}

.dist-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
}

.dist-dot.completed { background: #10b981; }
.dist-dot.in-progress { background: #5833b3; }
.dist-dot.not-started { background: #f59e0b; }

.dist-legend-btn strong {
  font-family: var(--font-display, inherit);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.15;
}

/* Badges & Activities */
.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.achievement-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #ead8b5;
  font-size: 12px;
  font-weight: 700;
  color: #3a2408;
  box-shadow: 0 3px 10px rgb(161 91 0 / 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.achievement-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgb(161 91 0 / 0.14);
}

.achievement-pill.locked {
  background: rgba(255, 255, 255, 0.72);
  border-style: dashed;
  border-color: #dec9a2;
  color: #8b7655;
  box-shadow: none;
}

.achievement-pill b {
  font-size: 15px;
  line-height: 1;
}

.activity-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-timeline li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 15px;
  background: #faf8ff;
  border: 1px solid #eee8fa;
  font-size: 13px;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.activity-timeline li:hover {
  transform: translateX(3px);
  border-color: #d6c5f5;
}

.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 10px;
  background: var(--color-primary, #5833b3);
}

.activity-dot.course-completed { background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15); }
.activity-dot.achievement { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16); }
.activity-dot.course-ready { background: #0d7398; box-shadow: 0 0 0 4px rgba(13, 115, 152, 0.15); }
.activity-dot.course-progress { background: #7c3aed; box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15); }

.activity-copy {
  flex: 1;
  min-width: 0;
}

.activity-copy strong {
  display: block;
  color: var(--color-text, #201936);
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-copy small {
  color: var(--color-text-muted, #5f5871);
  font-size: 12px;
}

.activity-date {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 600;
  color: #837a9e;
}

/* Library status filter tabs & card progress */
.library-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.status-tab-btn {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-border-strong, #c9bedf);
  background: #fff;
  color: var(--color-text-muted, #5f5871);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.status-tab-btn:hover {
  border-color: var(--color-primary, #5833b3);
  color: var(--color-primary, #5833b3);
  box-shadow: none;
}

.status-tab-btn.active {
  background: var(--color-primary, #5833b3);
  color: #fff;
  border-color: var(--color-primary, #5833b3);
}

.course-card-progress {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  margin-top: 8px;
}

.course-card-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #4f4675;
}

.course-card-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(88, 51, 179, 0.13);
  border-radius: 999px;
  overflow: hidden;
}

.course-card-progress-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #5833b3, #8b5cf6);
  border-radius: 999px;
}

.course-status-chip {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.course-status-chip.completed { background: #dcfce7; color: #166534; }
.course-status-chip.in-progress { background: #eee8ff; color: #4b26a1; }
.course-status-chip.not-started { background: #fef3c7; color: #92400e; }

/* Auth helper links */
.auth-panel .auth-inline-link {
  display: inline-block;
  margin-top: 8px;
  background: transparent;
  border: none;
  color: var(--color-primary, #5833b3);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  box-shadow: none;
}

.auth-panel .auth-inline-link:hover {
  color: #40218b;
  background: #f2ebff;
  box-shadow: none;
  transform: none;
}

.dev-code-hint {
  margin: 8px 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fef9c3;
  border: 1px solid #fde047;
  color: #854d0e;
  font-size: 13px;
  font-weight: 600;
}

/* Profile View */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.profile-card {
  background: #fff;
  border: 1px solid var(--color-border, #e1dbee);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 30px rgb(54 35 104 / 0.06);
}

.profile-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--color-text, #201936);
}

.profile-card > p {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--color-text-muted, #5f5871);
}

.profile-points-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-radius: 18px;
  background: radial-gradient(circle at 90% 10%, #ffe6b7, transparent 42%), linear-gradient(145deg, #fff8e8, #f5f0ff);
  border: 1px solid #e6d7f5;
  margin-bottom: 18px;
}

.profile-points-hero strong {
  font-family: var(--font-display, inherit);
  font-size: 32px;
  color: var(--color-primary, #5833b3);
}

.twofa-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 14px;
}

.twofa-status-pill.enabled { background: #dcfce7; color: #166534; }
.twofa-status-pill.disabled { background: #f3f0fb; color: #5f5871; }

.email-step-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border, #e1dbee);
}

/* Keyframe Animations */
@keyframes dash-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-mascot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes bubble-float {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-5px); }
}

@keyframes hero-glow-breathe {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes live-dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 217, 120, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(255, 217, 120, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 217, 120, 0); }
}

@keyframes progress-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(220%); }
}

@media (max-width: 1080px) {
  .dash-hero-bento,
  .dash-analytics-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .continue-hero {
    grid-template-columns: 1fr;
  }
  .continue-hero-mascot {
    display: none;
  }
  .analytics-split {
    grid-template-columns: 1fr;
  }
  .analytics-donut-col {
    padding-right: 0;
    padding-bottom: 16px;
    border-right: 0;
    border-bottom: 1px solid #ede7f8;
  }
  .dist-legend {
    grid-template-columns: 1fr;
  }
}

/* Onboarding Hero Steps & Quick Topic Chips */
.onboarding-steps-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.onboarding-steps-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 700;
  color: #f7f3ff;
}

.onboarding-steps-strip b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 217, 120, 0.24);
  color: #ffe8a3;
  font-size: 10px;
  font-weight: 900;
}

.quick-topic-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
}

.quick-topic-chips small {
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(244, 238, 255, 0.78);
}

.quick-topic-chips button {
  padding: 5px 11px;
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.16s ease, transform 0.16s ease;
}

.quick-topic-chips button:hover {
  background: rgba(255, 217, 120, 0.24);
  border-color: rgba(255, 217, 120, 0.55);
  color: #fff6d9;
  transform: translateY(-1px);
  box-shadow: none;
}

/* Analytics Bottom Breakdown (Fills Analytics Card Balanced & Informative) */
.analytics-breakdown {
  padding-top: 16px;
  border-top: 1px solid #ede7f8;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.breakdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.breakdown-head span {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--color-primary, #5833b3);
}

.breakdown-head small {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted, #5f5871);
}

.breakdown-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.breakdown-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid #ece5f7;
  background: #faf8ff;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.breakdown-row:hover {
  border-color: var(--color-primary, #5833b3);
  background: #f3edff;
  transform: translateY(-2px);
  box-shadow: none;
}

.breakdown-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.breakdown-row-top strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text, #201936);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breakdown-row-top span {
  flex: 0 0 auto;
  font-size: 11.5px;
  color: var(--color-text-muted, #5f5871);
}

.breakdown-row-top b {
  color: var(--color-primary, #5833b3);
}

.breakdown-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #e9e1f6;
  overflow: hidden;
}

.breakdown-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #5833b3, #8b5cf6);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.breakdown-track i.completed {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.breakdown-track i.not-started {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.breakdown-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f6f1ff 0%, #fff8eb 100%);
  border: 1px dashed #d3c2f0;
}

.breakdown-empty img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: 0 0 64px;
  filter: drop-shadow(0 6px 10px rgba(65, 39, 122, 0.16));
  animation: hero-mascot-float 4.5s ease-in-out infinite;
}

.breakdown-empty strong {
  display: block;
  font-size: 14px;
  color: var(--color-text, #201936);
}

.breakdown-empty p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--color-text-muted, #5f5871);
  line-height: 1.45;
}

@media (max-width: 720px) {
  .breakdown-bars {
    grid-template-columns: 1fr;
  }
  .breakdown-empty {
    flex-direction: column;
    text-align: center;
  }
}
