:root {
  --bg: #080b14;
  --bg-soft: #0f172a;
  --surface: #151e31;
  --surface-glass: rgba(30, 41, 59, 0.72);
  --surface-light: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f8fafc;
  --muted: #aab4c4;
  --red: #ef4444;
  --orange: #f97316;
  --yellow: #facc15;
  --pink: #ec4899;
  --danger: #dc2626;
  --gradient: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--pink));
  --gradient-soft: linear-gradient(135deg, rgba(239, 68, 68, 0.20), rgba(249, 115, 22, 0.13), rgba(236, 72, 153, 0.16));
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --sidebar-width: 270px;
  --progress-height: 70px;
  --transition: 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background: radial-gradient(circle at 15% 10%, rgba(239, 68, 68, 0.08), transparent 32%), radial-gradient(circle at 85% 15%, rgba(236, 72, 153, 0.07), transparent 30%), var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 999;
  padding: 12px 18px;
  color: #111827;
  background: #ffffff;
  border-radius: 12px;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 12px;
}

.global-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  min-height: var(--progress-height);
  background: rgba(8, 11, 20, 0.78);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(22px) saturate(140%);
}

.global-progress::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--gradient);
}

.global-progress__inner {
  display: grid;
  grid-template-columns: 230px minmax(250px, 1fr) 120px;
  gap: 26px;
  align-items: center;
  max-width: 1600px;
  height: calc(var(--progress-height) - 3px);
  padding: 0 24px;
  margin: 0 auto;
}

.brand-mini,
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mini {
  font-weight: 700;
}

.brand-mini__mark,
.brand__mark {
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--gradient);
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.22);
}

.brand-mini__mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 14px;
}

.brand-mini__text {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.progress-summary {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) 54px;
  gap: 15px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
}

.progress-summary:hover {
  background: rgba(255, 255, 255, 0.04);
}

.progress-summary__label {
  color: var(--muted);
  font-size: 13px;
}

.progress-summary strong {
  text-align: right;
  font-size: 16px;
}

.progress-track,
.mini-progress,
.project-progress,
.skill-bar__track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.progress-track span,
.mini-progress span,
.project-progress span,
.skill-bar__track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient);
  transition: width 700ms cubic-bezier(0.19, 1, 0.22, 1);
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.icon-button,
.avatar-button,
.sidebar-toggle,
.modal__close {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
}

.icon-button,
.avatar-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.icon-button:hover,
.avatar-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.10);
}

.avatar-button {
  background: linear-gradient(135deg, var(--red), var(--pink));
  border: 0;
  font-size: 12px;
  font-weight: 800;
}

.progress-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 900px;
  padding: 14px 18px;
  margin: 0 auto 14px;
  background: rgba(21, 30, 49, 0.96);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.progress-details > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  border-right: 1px solid var(--border);
}

.progress-details > div:last-child {
  border-right: 0;
}

.progress-details strong {
  font-size: 16px;
}

.progress-details span {
  color: var(--muted);
  font-size: 11px;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
  padding-top: var(--progress-height);
}

.sidebar {
  position: fixed;
  top: var(--progress-height);
  bottom: 0;
  left: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  padding: 26px 16px 20px;
  background: rgba(8, 11, 20, 0.72);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(20px);
  transition: width var(--transition);
}

.sidebar.collapsed {
  width: 88px;
}

.sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px 23px;
}

.brand {
  min-width: 0;
}

.brand__mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 14px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.sidebar-toggle {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.nav-list {
  display: grid;
  gap: 5px;
  overflow-y: auto;
  scrollbar-width: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  padding: 0 14px;
  color: var(--muted);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

.nav-item > span:first-child {
  flex: 0 0 auto;
  width: 22px;
  font-size: 18px;
  text-align: center;
}

.nav-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(2px);
}

.nav-item.active {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.20), rgba(249, 115, 22, 0.08));
  box-shadow: inset 3px 0 var(--red);
}

.nav-lock {
  padding: 3px 7px;
  margin-left: auto;
  color: var(--yellow);
  font-size: 10px;
  background: rgba(250, 204, 21, 0.12);
  border-radius: 999px;
}

.sidebar__bottom {
  display: grid;
  gap: 14px;
  margin-top: auto;
}

.level-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.level-card__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #171205;
  background: var(--yellow);
  border-radius: 50%;
}

.level-card small,
.level-card strong {
  display: block;
}

.level-card small {
  color: var(--muted);
  font-size: 10px;
}

.level-card strong {
  font-size: 12px;
}

.sidebar.collapsed .brand > span:last-child,
.sidebar.collapsed .nav-item > span:not(:first-child),
.sidebar.collapsed .level-card > div,
.sidebar.collapsed .sidebar-toggle {
  display: none;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 0;
}

.sidebar.collapsed .level-card {
  justify-content: center;
  padding: 10px;
}

.sidebar.collapsed + .main-content {
  margin-left: 88px;
}

.main-content {
  grid-column: 2;
  width: calc(100vw - var(--sidebar-width));
  max-width: 1600px;
  min-height: 100vh;
  padding: 44px clamp(24px, 5vw, 80px) 100px;
  transition: margin-left var(--transition), width var(--transition);
}

.page {
  display: none;
  max-width: 1220px;
  margin: 0 auto;
}

.page.active {
  display: block;
  animation: page-in 560ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
}

.hero {
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
  padding: clamp(48px, 8vw, 100px) clamp(24px, 6vw, 74px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)), var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: 42px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero h1,
.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(48px, 7.2vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.page-hero {
  padding: clamp(60px, 8vw, 100px) 0 clamp(44px, 6vw, 75px);
}

.page-hero h1 {
  font-size: clamp(45px, 6.3vw, 88px);
}

.hero__copy,
.page-hero > p:last-child {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.gradient-text {
  color: transparent;
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero__actions,
.form-actions,
.timer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 21px;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #ffffff;
  background: linear-gradient(100deg, var(--red), var(--orange), var(--pink));
  box-shadow: 0 14px 34px rgba(239, 68, 68, 0.22);
}

.button--primary:hover {
  box-shadow: 0 18px 44px rgba(239, 68, 68, 0.34);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--border-strong);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.10);
}

.button--danger {
  color: #fecaca;
}

.hero-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.72;
}

.hero-orb--one {
  top: -60px;
  right: -60px;
  width: 310px;
  height: 310px;
  background: radial-gradient(circle at 30% 30%, rgba(250, 204, 21, 0.80), rgba(249, 115, 22, 0.25), transparent 70%);
}

.hero-orb--two {
  right: 80px;
  bottom: -130px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.62), transparent 68%);
}

.section {
  padding: clamp(65px, 9vw, 120px) 0 0;
}

.section-heading,
.card-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.card-heading h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(32px, 4vw, 52px);
}

.card-heading h2 {
  font-size: 22px;
}

.section-heading p,
.card-heading p {
  margin: 5px 0 0;
  color: var(--muted);
}

.date-chip,
.status-pill {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.20);
}

.card--spotlight {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(249, 115, 22, 0.08), rgba(236, 72, 153, 0.11));
}

.next-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(24px, 4vw, 42px);
}

.next-action__content {
  display: flex;
  align-items: center;
  gap: 24px;
}

.task-symbol {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  background: var(--gradient);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(239, 68, 68, 0.18);
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.task-meta span {
  padding: 4px 9px;
  color: var(--muted);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
}

.next-action h3 {
  margin: 12px 0 7px;
  font-size: clamp(23px, 3vw, 35px);
  letter-spacing: -0.035em;
}

.next-action p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.metric-grid,
.project-grid,
.month-grid,
.week-grid,
.stats-grid,
.achievement-grid,
.course-grid {
  display: grid;
  gap: 18px;
}

.metric-grid,
.project-grid {
  grid-template-columns: repeat(3, 1fr);
}

.metric-card {
  padding: 28px;
}

.metric-card small {
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin: 12px 0 18px;
  font-size: clamp(45px, 6vw, 74px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.metric-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.mini-progress--orange span {
  background: linear-gradient(90deg, var(--orange), var(--yellow));
}

.mini-progress--yellow span {
  background: linear-gradient(90deg, var(--yellow), var(--pink));
}

.mini-progress--pink span {
  background: linear-gradient(90deg, var(--pink), var(--red));
}

.text-button {
  color: var(--orange);
  font-weight: 700;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.project-grid--large,
.month-grid,
.week-grid,
.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 28px;
  overflow: hidden;
  isolation: isolate;
}

.project-card::after {
  content: "";
  position: absolute;
  right: -15%;
  bottom: -45%;
  left: 30%;
  z-index: -1;
  height: 70%;
  background: radial-gradient(circle, var(--project-color, rgba(239, 68, 68, 0.26)), transparent 68%);
  border-radius: 50%;
}

.project-card__top,
.project-card__bottom,
.week-card__head,
.week-card__footer,
.skill-domain__header,
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.project-card__number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 15px;
}

.project-card h3 {
  margin: 45px 0 8px;
  font-size: 26px;
  letter-spacing: -0.035em;
}

.project-card p {
  margin: 0;
  color: var(--muted);
}

.project-card__bottom {
  padding-top: 24px;
  margin-top: auto;
}

.project-card__bottom > div {
  flex: 1;
}

.project-card__bottom small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.today-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 20px;
  align-items: start;
}

.task-panel,
.focus-panel,
.settings-form,
.skill-domain,
.chart-card {
  padding: clamp(22px, 4vw, 36px);
}

.task-list,
.modal-task-list,
.skill-bars {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.task-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
}

.task-row:hover {
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-1px);
}

.task-row.completed {
  opacity: 0.56;
}

.task-row.completed .task-row__title {
  text-decoration: line-through;
}

.task-check {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  cursor: pointer;
}

.task-row.completed .task-check {
  background: var(--gradient);
  border-color: transparent;
}

.task-row__title {
  display: block;
  font-weight: 700;
}

.task-row__meta {
  color: var(--muted);
  font-size: 12px;
}

.task-row__xp {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
}

.focus-panel {
  position: sticky;
  top: calc(var(--progress-height) + 24px);
  text-align: center;
}

.timer {
  margin: 22px 0 6px;
  font-size: clamp(54px, 7vw, 78px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.06em;
}

.focus-panel > p:not(.eyebrow) {
  color: var(--muted);
}

.timer-actions {
  justify-content: center;
  margin-top: 24px;
}

.time-input {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

select,
input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
}

.roadmap {
  position: relative;
  display: grid;
  gap: 70px;
  padding: 20px 0 60px;
}

.roadmap::before {
  content: "";
  position: absolute;
  top: 46px;
  bottom: 70px;
  left: 30px;
  width: 2px;
  background: linear-gradient(var(--red), var(--orange), var(--yellow), var(--pink));
  opacity: 0.4;
}

.roadmap-month {
  position: relative;
  padding-left: 88px;
}

.roadmap-month__marker {
  position: absolute;
  top: 0;
  left: 8px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #150d0d;
  font-weight: 900;
  background: var(--month-color);
  border-radius: 50%;
  box-shadow: 0 0 0 9px var(--bg), 0 0 40px rgba(239, 68, 68, 0.25);
}

.roadmap-month h2 {
  margin: 0 0 8px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.roadmap-month > p {
  margin: 0 0 24px;
  color: var(--muted);
}

.roadmap-weeks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.roadmap-week,
.filter-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  cursor: pointer;
}

.roadmap-week {
  padding: 18px;
  text-align: left;
  border-radius: 17px;
  transition: transform var(--transition), border-color var(--transition);
}

.roadmap-week:hover,
.week-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.roadmap-week.completed {
  background: rgba(250, 204, 21, 0.08);
}

.roadmap-week small {
  color: var(--muted);
}

.roadmap-week strong {
  display: block;
  margin-top: 8px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
}

.filter-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
}

.filter-button.active {
  background: var(--red);
  border-color: var(--red);
}

.week-card {
  padding: 26px;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
}

.week-card__number {
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.week-card h3 {
  margin: 22px 0 7px;
  font-size: 25px;
}

.week-card p {
  margin: 0;
  color: var(--muted);
}

.week-card__footer {
  margin-top: 24px;
}

.week-card__footer .mini-progress {
  flex: 1;
}

.month-card {
  position: relative;
  min-height: 400px;
  padding: clamp(26px, 4vw, 44px);
  overflow: hidden;
}

.month-card__ring,
.donut-chart {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.month-card__ring {
  width: 128px;
  height: 128px;
  margin: 28px 0;
  background: conic-gradient(var(--month-color) calc(var(--value) * 1%), rgba(255, 255, 255, 0.08) 0);
}

.month-card__ring::before,
.donut-chart::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--surface);
}

.month-card__ring::before {
  inset: 11px;
}

.month-card__ring strong {
  position: relative;
  font-size: 28px;
}

.month-card h2 {
  margin: 0;
  font-size: 33px;
}

.month-card p,
.month-card ul {
  color: var(--muted);
}

.month-card ul {
  padding-left: 18px;
}

.skill-tree {
  display: grid;
  gap: 24px;
}

.skill-domain__header h2 {
  margin: 0;
  font-size: 29px;
}

.skill-domain__header p {
  margin: 4px 0 0;
  color: var(--muted);
}

.skill-domain__score {
  font-size: 30px;
  font-weight: 800;
}

.skill-nodes {
  display: flex;
  gap: 14px;
  padding-bottom: 5px;
  margin-top: 26px;
  overflow-x: auto;
}

.skill-node {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 145px;
  min-height: 118px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.skill-node.mastered {
  background: rgba(239, 68, 68, 0.08);
  border-color: var(--skill-color);
}

.skill-node.locked {
  opacity: 0.42;
}

.skill-node small {
  color: var(--muted);
}

.skill-node strong {
  margin-top: 10px;
}

.chart-card {
  min-height: 390px;
}

.chart-card--wide {
  grid-column: 1 / -1;
  min-height: 360px;
}

#statsHoursTotal {
  font-size: 28px;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: clamp(8px, 2vw, 24px);
  height: 230px;
  margin-top: 35px;
  border-bottom: 1px solid var(--border);
}

.bar-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
  min-width: 24px;
  height: 100%;
}

.bar-column span {
  width: min(55px, 80%);
  min-height: 5px;
  background: var(--gradient);
  border-radius: 12px 12px 3px 3px;
  transition: height 700ms cubic-bezier(0.19, 1, 0.22, 1);
}

.bar-column small {
  color: var(--muted);
  font-size: 10px;
}

.donut-chart {
  width: 190px;
  height: 190px;
  margin: 35px auto 20px;
  background: conic-gradient(var(--orange) calc(var(--done) * 1%), rgba(255, 255, 255, 0.08) 0);
}

.donut-chart::before {
  inset: 18px;
}

.donut-chart div {
  position: relative;
  text-align: center;
}

.donut-chart strong,
.donut-chart span {
  display: block;
}

.donut-chart strong {
  font-size: 32px;
}

.donut-chart span {
  color: var(--muted);
  font-size: 12px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
  color: var(--muted);
  font-size: 11px;
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
}

.skill-bars {
  gap: 17px;
  margin-top: 30px;
}

.skill-bar__top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 12px;
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 7px;
  margin-top: 36px;
}

.heat-cell {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
}

.heat-cell[data-level="1"] { background: rgba(249, 115, 22, 0.28); }
.heat-cell[data-level="2"] { background: rgba(249, 115, 22, 0.48); }
.heat-cell[data-level="3"] { background: rgba(239, 68, 68, 0.70); }
.heat-cell[data-level="4"] { background: var(--pink); }

.achievement-grid,
.course-grid {
  grid-template-columns: repeat(3, 1fr);
}

.achievement-card {
  padding: 26px;
  text-align: center;
}

.achievement-card.locked,
.course-card.locked {
  opacity: 0.43;
  filter: grayscale(0.8);
}

.achievement-card__icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  font-size: 30px;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: 24px;
}

.achievement-card h3 {
  margin: 0 0 6px;
}

.achievement-card p,
.course-card p {
  color: var(--muted);
  font-size: 13px;
}

.course-lock {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: center;
  padding: 30px;
  margin-bottom: 34px;
}

.lock-symbol {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  color: var(--pink);
  font-size: 30px;
  background: rgba(236, 72, 153, 0.14);
  border-radius: 50%;
}

.course-lock h2 {
  margin: 0 0 6px;
}

.course-lock p {
  color: var(--muted);
}

.course-lock .mini-progress {
  max-width: 520px;
  margin-top: 18px;
}

.course-card {
  min-height: 230px;
  padding: 24px;
}

.course-card__number {
  color: var(--pink);
  font-size: 12px;
  font-weight: 800;
}

.course-card h3 {
  margin: 35px 0 8px;
  font-size: 22px;
}

.settings-form {
  max-width: 900px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.setting-switches {
  margin-top: 30px;
  border-top: 1px solid var(--border);
}

.switch-row {
  min-height: 80px;
  border-bottom: 1px solid var(--border);
}

.switch-row strong,
.switch-row small {
  display: block;
}

.switch-row small {
  margin-top: 3px;
  color: var(--muted);
}

.switch-row input {
  width: 48px;
  height: 26px;
  accent-color: var(--red);
}

.form-actions {
  margin-top: 28px;
}

.mobile-nav {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.70);
  backdrop-filter: blur(8px);
}

.modal__panel {
  position: relative;
  width: min(680px, 100%);
  max-height: 88vh;
  padding: clamp(26px, 5vw, 46px);
  overflow-y: auto;
  background: #111827;
  border: 1px solid var(--border-strong);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.modal__panel h2 {
  margin: 0 0 8px;
  font-size: 36px;
}

.modal__panel > p:not(.eyebrow) {
  color: var(--muted);
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  font-size: 22px;
  border-radius: 50%;
}

.toast-region {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 400;
  display: grid;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  padding: 15px 18px;
  background: rgba(21, 30, 49, 0.96);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: var(--shadow);
  animation: toast-in 360ms ease both;
}

.toast strong {
  color: var(--yellow);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  :root { --sidebar-width: 88px; }

  .sidebar { width: 88px; }

  .brand > span:last-child,
  .nav-item > span:not(:first-child),
  .level-card > div,
  .sidebar-toggle { display: none; }

  .nav-item { justify-content: center; padding: 0; }
  .level-card { justify-content: center; padding: 10px; }
  .roadmap-weeks { grid-template-columns: repeat(2, 1fr); }
  .achievement-grid,
  .course-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  :root { --progress-height: 61px; }

  .global-progress__inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
    height: 58px;
    padding: 0 14px;
  }

  .brand-mini,
  .progress-summary__label { display: none; }

  .progress-summary { grid-template-columns: minmax(130px, 1fr) 48px; }
  .progress-details { grid-template-columns: repeat(2, 1fr); margin: 0 10px 10px; }
  .progress-details > div:nth-child(2) { border-right: 0; }
  .sidebar { display: none; }
  .app-shell { display: block; }
  .main-content { width: 100%; padding: 24px 18px 100px; }

  .mobile-nav {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 8px;
    background: rgba(15, 23, 42, 0.90);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
  }

  .mobile-nav button {
    display: grid;
    place-items: center;
    gap: 1px;
    min-height: 52px;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 14px;
  }

  .mobile-nav button.active { color: #ffffff; background: rgba(239, 68, 68, 0.16); }
  .mobile-nav small { font-size: 9px; }
  .hero { min-height: 520px; border-radius: 28px; }
  .hero h1,
  .page-hero h1 { font-size: clamp(43px, 13vw, 68px); }

  .metric-grid,
  .project-grid,
  .project-grid--large,
  .month-grid,
  .week-grid,
  .stats-grid { grid-template-columns: 1fr; }

  .chart-card--wide { grid-column: auto; }
  .today-layout { grid-template-columns: 1fr; }
  .focus-panel { position: static; }
  .achievement-grid,
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .next-action { flex-direction: column; align-items: stretch; }
  .next-action__content { align-items: flex-start; }
  .roadmap-month { padding-left: 72px; }
  .roadmap-weeks { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero { min-height: 500px; padding: 42px 22px; }
  .hero__actions,
  .hero__actions .button { width: 100%; }
  .next-action__content { flex-direction: column; }
  .task-symbol { width: 62px; height: 62px; border-radius: 19px; }
  .section-heading { flex-direction: column; align-items: flex-start; }
  .achievement-grid,
  .course-grid { grid-template-columns: 1fr; }
  .course-lock { grid-template-columns: 1fr; }
  .task-row { grid-template-columns: 38px 1fr; }
  .task-row__xp { grid-column: 2; }
  .heatmap { grid-template-columns: repeat(8, 1fr); }
  .top-actions .icon-button { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  scroll-behavior: auto !important;
  animation-duration: 0.01ms !important;
  transition-duration: 0.01ms !important;
}
