@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  --bg: #f4f7ff;
  --bg-top: #fbfcff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-dark: #0f203e;
  --text: #122444;
  --muted: #65728c;
  --line: rgba(18, 36, 68, 0.1);
  --primary: #2458e6;
  --primary-soft: rgba(36, 88, 230, 0.14);
  --amber: #f4b62f;
  --amber-soft: rgba(244, 182, 47, 0.18);
  --emerald: #119a72;
  --rose: #d4557f;
  --header-bg: rgba(255, 255, 255, 0.84);
  --header-line: rgba(18, 36, 68, 0.08);
  --brand-shell: linear-gradient(180deg, #ffffff, #f6f9ff);
  --ghost-bg: rgba(255, 255, 255, 0.84);
  --ghost-line: rgba(18, 36, 68, 0.12);
  --shadow-lg: 0 28px 72px rgba(15, 32, 62, 0.16);
  --shadow-md: 0 16px 34px rgba(15, 32, 62, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1180px, calc(100% - 16px));
}

html[data-theme="dark"] {
  --bg: #08111f;
  --bg-top: #0b1424;
  --surface: rgba(15, 26, 44, 0.92);
  --surface-strong: #111d31;
  --surface-dark: #07111f;
  --text: #eef4ff;
  --muted: #aab8cc;
  --line: rgba(188, 210, 243, 0.14);
  --primary: #79a8ff;
  --primary-soft: rgba(121, 168, 255, 0.18);
  --amber: #f1be68;
  --amber-soft: rgba(241, 190, 104, 0.18);
  --emerald: #52c9a2;
  --rose: #f08fae;
  --header-bg: rgba(8, 17, 31, 0.84);
  --header-line: rgba(188, 210, 243, 0.12);
  --brand-shell: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  --ghost-bg: rgba(255, 255, 255, 0.04);
  --ghost-line: rgba(188, 210, 243, 0.14);
  --shadow-lg: 0 28px 72px rgba(0, 0, 0, 0.38);
  --shadow-md: 0 16px 34px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(36, 88, 230, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(244, 182, 47, 0.18), transparent 24%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(36, 88, 230, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 88, 230, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 92%);
}

a {
  color: inherit;
  text-decoration: none;
}

section[id],
article[id],
div[id] {
  scroll-margin-top: 110px;
}

button {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.dashboard-header .container {
  width: min(84%, 1320px);
}

.dashboard-shell {
  min-height: 100vh;
  position: relative;
}

.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--header-line);
  box-shadow: 0 16px 34px rgba(15, 32, 62, 0.08);
}

.header-inner,
.dashboard-nav,
.header-actions,
.hero-actions,
.hero-pills,
.profile-top,
.panel-head,
.progress-meta,
.session-points {
  display: flex;
  align-items: center;
}

.header-inner {
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  overflow: hidden;
  background: var(--brand-shell);
  box-shadow: 0 14px 30px rgba(15, 32, 62, 0.14);
}

.brand-mark img {
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: contain;
}

.brand-copy strong,
.brand-copy span {
  display: block;
}

.brand-copy strong {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.brand-copy span {
  margin-top: 3px;
  font-size: 0.9rem;
  color: var(--muted);
}

.dashboard-nav {
  gap: 24px;
  font-weight: 700;
  flex-wrap: wrap;
}

.dashboard-nav a {
  position: relative;
  white-space: nowrap;
}

.dashboard-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--amber));
  transform: scaleX(0);
  transition: transform 0.22s ease;
}

.dashboard-nav a:hover::after {
  transform: scaleX(1);
}

.dashboard-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  gap: 12px;
}

.solid-btn,
.ghost-btn,
.text-link {
  border: 0;
  cursor: pointer;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    color 0.22s ease;
}

.solid-btn:focus-visible,
.ghost-btn:focus-visible,
.text-link:focus-visible,
.dashboard-nav a:focus-visible,
.page-link-card:focus-visible {
  outline: 3px solid rgba(36, 88, 230, 0.28);
  outline-offset: 3px;
}

.solid-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
}

.solid-btn {
  background: linear-gradient(135deg, var(--primary), #5b86ff);
  color: #fff;
  box-shadow: 0 16px 28px rgba(36, 88, 230, 0.24);
}

.ghost-btn {
  background: var(--ghost-bg);
  color: var(--text);
  border: 1px solid var(--ghost-line);
}

.text-link {
  padding: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
}

.solid-btn:hover,
.ghost-btn:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.page-link-card,
.stat-card,
.panel,
.course-progress-card,
.module-card,
.resource-card,
.session-card,
.milestone-list article,
.curriculum-item,
.schedule-day,
.info-grid div,
.activity-list li {
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease;
}

.page-link-card:hover,
.stat-card:hover,
.panel:hover,
.course-progress-card:hover,
.module-card:hover,
.resource-card:hover,
.session-card:hover,
.milestone-list article:hover,
.curriculum-item:hover,
.schedule-day:hover,
.info-grid div:hover,
.activity-list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(15, 32, 62, 0.12);
}

.dashboard-main {
  padding: 36px 0 64px;
}

.hero-panel,
.stats-grid,
.content-grid,
.bottom-grid {
  position: relative;
  z-index: 1;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: 24px;
  padding: 34px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(244, 182, 47, 0.28), transparent 28%),
    linear-gradient(145deg, rgba(15, 32, 62, 0.98), rgba(25, 52, 101, 0.96));
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -60px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 134, 255, 0.34), transparent 72%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: rgba(255, 255, 255, 0.42);
}

.eyebrow-dark {
  color: var(--muted);
}

.eyebrow-dark::before {
  background: rgba(18, 36, 68, 0.18);
}

.hero-copy h1,
.panel-head h2 {
  margin: 14px 0 10px;
  line-height: 1.05;
}

.hero-brand-strip,
.hero-brand-icon {
  display: inline-flex;
  align-items: center;
}

.hero-brand-strip {
  gap: 14px;
  margin-bottom: 18px;
  width: fit-content;
  padding: 12px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-brand-icon {
  width: 52px;
  height: 52px;
  justify-content: center;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 24px rgba(15, 32, 62, 0.18);
}

.hero-brand-icon img {
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: contain;
}

.hero-brand-copy strong,
.hero-brand-copy span {
  display: block;
}

.hero-brand-copy strong {
  font-size: 0.94rem;
  font-weight: 700;
}

.hero-brand-copy span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(1.95rem, 3vw, 3.1rem);
  font-weight: 700;
}

.hero-copy p {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.hero-actions {
  gap: 14px;
  margin-top: 24px;
}

.hero-pills {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 700;
}

.hero-profile-card,
.panel,
.stat-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.hero-profile-card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.profile-top {
  gap: 16px;
  margin-bottom: 22px;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
  box-shadow: 0 16px 28px rgba(244, 182, 47, 0.18);
}

.avatar img {
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: contain;
}

.profile-top strong,
.profile-top span {
  display: block;
}

.profile-top span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.76);
}

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

.profile-grid span {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}

.profile-grid strong {
  display: block;
  margin-top: 6px;
  line-height: 1.35;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.dashboard-page-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.page-link-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid rgba(18, 36, 68, 0.08);
  box-shadow: var(--shadow-md);
}

.page-link-card strong,
.page-link-card span {
  display: block;
}

.page-link-card strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.page-link-card span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.page-link-card.is-active {
  border-color: rgba(36, 88, 230, 0.18);
  background: linear-gradient(180deg, rgba(36, 88, 230, 0.08), rgba(255, 255, 255, 0.98));
}

.stat-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.stat-card span,
.stat-card p {
  color: var(--muted);
}

.stat-card strong {
  display: block;
  margin: 14px 0 10px;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
}

.stat-card p {
  margin: 0;
  line-height: 1.6;
}

.accent-blue {
  border-top: 4px solid var(--primary);
}

.accent-amber {
  border-top: 4px solid var(--amber);
}

.accent-emerald {
  border-top: 4px solid var(--emerald);
}

.accent-rose {
  border-top: 4px solid var(--rose);
}

.content-grid,
.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
  gap: 24px;
  margin-top: 24px;
}

.panel {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.panel-head {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.panel-head.compact {
  align-items: flex-start;
}

.panel-head h2 {
  font-size: 1.28rem;
  font-weight: 700;
}

.panel-head h2,
.course-copy h3,
.module-card h3,
.resource-card h3,
.session-card strong {
  margin: 10px 0 0;
}

.course-track,
.module-grid,
.resource-grid,
.milestone-list,
.sidebar-stack,
.info-grid,
.curriculum-list,
.schedule-board {
  display: grid;
  gap: 16px;
}

.course-progress-card,
.module-card,
.resource-card,
.session-card,
.activity-list li,
.milestone-list article,
.page-link-card,
.curriculum-item,
.schedule-day,
.info-grid div {
  border-radius: var(--radius-md);
  border: 1px solid rgba(18, 36, 68, 0.08);
}

.course-progress-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(36, 88, 230, 0.04), rgba(255, 255, 255, 0.92));
}

.course-type {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.course-type.recorded {
  background: var(--primary-soft);
  color: var(--primary);
}

.course-type.live {
  background: var(--amber-soft);
  color: #a56e00;
}

.course-copy p,
.module-card p,
.resource-card p,
.session-card p,
.milestone-list span {
  color: var(--muted);
  line-height: 1.65;
}

.progress-wrap {
  display: grid;
  gap: 10px;
}

.progress-meta {
  justify-content: space-between;
}

.progress-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(18, 36, 68, 0.08);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #7da2ff);
  transition: width 0.8s ease;
}

.module-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-card,
.resource-card {
  padding: 18px;
  background: var(--surface-strong);
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-grid div {
  padding: 18px;
  background: linear-gradient(180deg, rgba(36, 88, 230, 0.04), rgba(255, 255, 255, 0.98));
}

.info-grid span,
.curriculum-item span,
.schedule-day span,
.schedule-day p {
  color: var(--muted);
}

.info-grid span,
.schedule-day span {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.info-grid strong,
.curriculum-item strong,
.schedule-day strong {
  display: block;
  margin-top: 8px;
}

.curriculum-item,
.schedule-day {
  padding: 18px;
  background: var(--surface-strong);
}

.curriculum-item span,
.schedule-day p {
  display: block;
  margin-top: 8px;
  line-height: 1.6;
}

.schedule-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-step {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
}

.session-card {
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(244, 182, 47, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(36, 88, 230, 0.05), rgba(255, 255, 255, 0.96));
}

.launch-card {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 36, 68, 0.08);
}

.launch-kicker {
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
}

.launch-timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.timer-chip {
  display: grid;
  gap: 4px;
  padding: 12px 10px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.timer-chip strong {
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1;
}

.timer-chip span {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.session-points {
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 18px;
}

.session-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
}

.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.activity-list li {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: var(--surface-strong);
}

.activity-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

.resource-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.milestone-list article {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 255, 0.96));
}

.milestone-list strong {
  display: block;
  margin-bottom: 8px;
}

html[data-theme="dark"] .hero-panel,
html[data-theme="dark"] .hero-profile-card,
html[data-theme="dark"] .page-link-card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .course-progress-card,
html[data-theme="dark"] .module-card,
html[data-theme="dark"] .resource-card,
html[data-theme="dark"] .session-card,
html[data-theme="dark"] .milestone-list article,
html[data-theme="dark"] .curriculum-item,
html[data-theme="dark"] .schedule-day,
html[data-theme="dark"] .info-grid div,
html[data-theme="dark"] .activity-list li,
html[data-theme="dark"] .launch-card {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-md);
}

html[data-theme="dark"] .hero-brand-strip,
html[data-theme="dark"] .profile-top,
html[data-theme="dark"] .page-link-card.is-active,
html[data-theme="dark"] .course-type,
html[data-theme="dark"] .module-step,
html[data-theme="dark"] .launch-kicker {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

html[data-theme="dark"] .progress-bar,
html[data-theme="dark"] .timer-track {
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  min-width: 260px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(15, 32, 62, 0.95);
  color: #fff;
  box-shadow: 0 18px 32px rgba(15, 32, 62, 0.28);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.dashboard-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .stats-grid,
  .module-grid,
  .resource-grid,
  .content-grid,
  .bottom-grid,
  .hero-panel,
  .dashboard-page-links,
  .schedule-board,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    padding: 14px 0;
  }

  .dashboard-nav {
    display: flex;
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }

  .dashboard-nav a {
    flex: 0 0 auto;
  }

  .header-actions {
    margin-left: auto;
  }

  .dashboard-header .container {
    width: var(--container);
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 14px 0;
  }

  .dashboard-nav {
    order: 2;
    width: 100%;
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .hero-panel,
  .panel,
  .stat-card {
    padding: 20px;
  }

  .profile-grid,
  .resource-grid,
  .launch-timer {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .hero-pills {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-brand-strip {
    width: 100%;
  }

  .solid-btn,
  .ghost-btn {
    width: 100%;
  }
}
