:root {
  --bg: #f4f8ff;
  --surface: #ffffff;
  --surface-blue: #edf6ff;
  --ink: #0d1b34;
  --muted: #64748b;
  --line: #dce8f7;
  --navy: #071831;
  --deep: #0c255c;
  --blue: #2563eb;
  --royal: #3558ff;
  --cyan: #23c7e8;
  --purple: #7557e8;
  --yellow: #f7c948;
  --yellow-soft: #fff5cf;
  --shadow: 0 24px 70px rgba(15, 45, 100, 0.14);
  --soft-shadow: 0 12px 36px rgba(15, 45, 100, 0.09);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 24% -8%, rgba(35, 199, 232, 0.18), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(117, 87, 232, 0.12), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  color: #ffffff;
  background:
    radial-gradient(circle at 30% 0%, rgba(35, 199, 232, 0.28), transparent 28%),
    linear-gradient(180deg, #071831 0%, #0b214c 62%, #071831 100%);
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 10;
  box-shadow: 18px 0 50px rgba(7, 24, 49, 0.16);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--royal), var(--cyan));
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(35, 199, 232, 0.28);
}

.brand strong,
.profile-card strong {
  display: block;
}

.brand small,
.profile-card small,
.side-card small {
  color: rgba(255, 255, 255, 0.68);
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 0 13px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  font-weight: 750;
}

.nav-item:hover,
.nav-item.active {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nav-icon {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--yellow);
  background: rgba(255, 255, 255, 0.07);
  font-weight: 900;
}

.side-card,
.profile-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.side-card {
  margin-top: auto;
  padding: 16px;
}

.mini-label {
  display: block;
  color: #afefff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.side-card strong {
  display: block;
  margin: 6px 0 12px;
  font-size: 1.8rem;
}

.side-progress,
.progress {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.side-progress i,
.progress i {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow), var(--cyan));
}

.profile-card {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #082044;
  background: linear-gradient(135deg, var(--yellow), #fff2a8);
  font-weight: 950;
}

.avatar.large {
  width: 92px;
  height: 92px;
  font-size: 1.35rem;
}

.main {
  min-width: 0;
  padding: 18px 28px 42px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0 18px;
  background: rgba(244, 248, 255, 0.82);
  backdrop-filter: blur(18px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.78);
}

.search-wrap {
  height: 48px;
  border: 1px solid rgba(220, 232, 247, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.search-wrap span {
  color: var(--blue);
  font-weight: 900;
}

.search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.primary-button,
.secondary-button,
.ghost-button,
.text-button,
.request-list button {
  min-height: 44px;
  border-radius: 999px;
  border: 0;
  padding: 0 18px;
  font-weight: 850;
  white-space: nowrap;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--royal), var(--cyan));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.secondary-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.13);
}

.secondary-button.light {
  color: var(--blue);
  border-color: var(--line);
  background: #ffffff;
}

.ghost-button {
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
}

.text-button {
  color: var(--blue);
  background: transparent;
  padding: 0 6px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero-panel {
  min-height: 390px;
  border-radius: 30px;
  padding: clamp(24px, 4vw, 42px);
  color: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.72fr);
  gap: 28px;
  align-items: center;
  background:
    radial-gradient(circle at 75% 12%, rgba(35, 199, 232, 0.42), transparent 32%),
    radial-gradient(circle at 12% 100%, rgba(247, 201, 72, 0.22), transparent 32%),
    linear-gradient(135deg, #071831 0%, #123b86 58%, #1dbbd9 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-panel .eyebrow,
.profile-hero .eyebrow {
  color: #b9f0ff;
}

.hero-copy h1,
.page-title h1,
.profile-hero h1 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 820px;
  font-size: clamp(2.25rem, 4.2vw, 4.35rem);
}

.hero-copy p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.04rem;
  line-height: 1.7;
}

.hero-actions,
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.dashboard-preview {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.preview-header,
.section-heading,
.page-title,
.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.preview-header strong {
  color: #082044;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--yellow);
}

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

.preview-grid article {
  min-height: 112px;
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.preview-grid .wide {
  grid-column: 1 / -1;
}

.preview-grid span {
  color: rgba(255, 255, 255, 0.72);
}

.preview-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.yellow-card {
  color: #082044;
  background: linear-gradient(135deg, var(--yellow), #fff2a5) !important;
}

.yellow-card span {
  color: rgba(8, 32, 68, 0.7);
}

.role-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 22px 0 30px;
}

.role-option,
.panel,
.metric,
.course-card,
.builder-steps,
.course-builder {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.role-option {
  padding: 18px;
  text-align: left;
}

.role-option strong,
.role-option span {
  display: block;
}

.role-option span {
  margin-top: 7px;
  color: var(--muted);
}

.role-option.active {
  border-color: rgba(37, 99, 235, 0.26);
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.08), var(--soft-shadow);
}

.section-heading,
.page-title {
  margin: 20px 0 16px;
}

.section-heading h2,
.page-title h1,
.panel h2,
.course-builder h2 {
  margin: 0;
}

.page-title h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--blue);
  background: #eef6ff;
  font-size: 0.86rem;
  font-weight: 850;
}

.tag.yellow {
  color: #775800;
  border-color: rgba(247, 201, 72, 0.46);
  background: var(--yellow-soft);
}

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

.course-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.course-cover {
  min-height: 138px;
  padding: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: #ffffff;
  background: var(--cover);
}

.course-cover span {
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(7, 24, 49, 0.24);
  font-size: 0.8rem;
  font-weight: 850;
}

.course-badge {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #082044;
  background: rgba(255, 255, 255, 0.92);
  font-weight: 950;
}

.course-body {
  padding: 17px;
  display: grid;
  gap: 11px;
  flex: 1;
}

.course-body h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.08rem;
}

.course-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.course-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border-radius: 999px;
  padding: 5px 9px;
  color: #31506f;
  background: #edf6ff;
  font-size: 0.78rem;
  font-weight: 800;
}

.chip.yellow {
  color: #735300;
  background: var(--yellow-soft);
}

.course-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.course-footer strong {
  color: #775800;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--yellow-soft);
}

.course-footer button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--navy);
  padding: 9px 13px;
  font-weight: 850;
}

.dashboard-grid,
.studio-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.panel,
.metric {
  padding: 18px;
}

.compact-heading {
  margin-top: 0;
}

.ranking-list,
.creator-list,
.learning-list,
.request-list,
.reviews,
.certificate-list {
  display: grid;
  gap: 11px;
}

.ranking-item,
.creator-item,
.learning-item,
.request-list article,
.reviews article {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: var(--surface-blue);
}

.ranking-item > strong {
  color: var(--blue);
}

.ranking-item span,
.creator-item span,
.learning-item span,
.request-list span,
.reviews span {
  color: var(--muted);
  font-size: 0.9rem;
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  color: var(--ink);
  padding: 11px 12px;
  margin-top: 7px;
  outline: 0;
}

textarea {
  min-height: 116px;
  resize: vertical;
}

.checkbox-filter {
  min-height: 67px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.checkbox-filter input,
.content-types input,
.switch-row input {
  width: auto;
  margin: 0;
}

.builder-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 16px;
}

.builder-steps {
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.builder-step {
  border: 0;
  border-radius: 15px;
  background: transparent;
  padding: 12px;
  text-align: left;
  color: var(--muted);
  font-weight: 850;
}

.builder-step.active {
  color: var(--blue);
  background: #eef6ff;
}

.course-builder {
  padding: 22px;
}

.builder-pane {
  display: none;
}

.builder-pane.active {
  display: grid;
  gap: 16px;
}

.form-grid,
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.content-types,
.switch-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.content-types label,
.switch-row label {
  background: var(--surface-blue);
  border-radius: 16px;
  padding: 13px;
  color: var(--ink);
  display: flex;
  gap: 8px;
  align-items: center;
}

.score-preview,
.publish-summary {
  border-radius: 20px;
  background: linear-gradient(135deg, #eef6ff, #fff9df);
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  gap: 16px;
  align-items: center;
}

.score-preview strong,
.publish-summary strong {
  display: block;
  font-size: 1.5rem;
}

.score-preview span,
.publish-summary span {
  color: var(--muted);
}

.metrics-grid {
  margin: 18px 0;
}

.metric {
  display: grid;
  gap: 8px;
}

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

.metric strong {
  color: var(--navy);
  font-size: 1.7rem;
}

.learning-item {
  justify-content: space-between;
}

.learning-item .progress {
  width: min(260px, 34vw);
  background: #dbe8f7;
}

.request-list article {
  justify-content: space-between;
}

.request-list button {
  border: 1px solid var(--line);
  color: var(--blue);
  background: #ffffff;
}

.bar-list {
  display: grid;
  gap: 18px;
}

.bar-list div {
  display: grid;
  gap: 8px;
}

.bar-list i {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue) var(--bar), #dbe8f7 var(--bar));
}

.profile-hero {
  border-radius: 30px;
  color: #ffffff;
  padding: 26px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  background:
    radial-gradient(circle at 92% 0%, rgba(247, 201, 72, 0.28), transparent 32%),
    linear-gradient(135deg, var(--navy), var(--blue));
  box-shadow: var(--shadow);
}

.profile-main {
  display: flex;
  gap: 18px;
  align-items: center;
  max-width: 860px;
}

.profile-main p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.6;
}

.skill-tags,
.certificate-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span,
.certificate-list span {
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 850;
}

.skill-tags span {
  background: rgba(255, 255, 255, 0.13);
}

.certificate-list span {
  color: var(--blue);
  background: #eef6ff;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: 360px;
  border-radius: 18px;
  padding: 13px 15px;
  color: #ffffff;
  background: var(--navy);
  box-shadow: var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 20;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1120px) {
  .course-grid,
  .form-grid,
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(318px, 86vw);
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main {
    padding: 12px 14px 32px;
  }

  .topbar {
    grid-template-columns: auto 1fr;
  }

  .menu-button {
    display: block;
  }

  .topbar .ghost-button,
  .topbar .primary-button {
    display: none;
  }

  .role-panel,
  .dashboard-grid,
  .studio-board,
  .filters,
  .builder-layout,
  .content-types,
  .switch-row,
  .score-preview {
    grid-template-columns: 1fr;
  }

  .profile-hero,
  .profile-main,
  .section-heading,
  .page-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero-panel {
    min-height: auto;
    padding: 22px;
  }

  .hero-copy h1 {
    font-size: 2.15rem;
  }

  .course-grid,
  .metrics-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .learning-item,
  .request-list article {
    align-items: flex-start;
    flex-direction: column;
  }

  .learning-item .progress {
    width: 100%;
  }
}
