:root {
  --app-bg: #05060c;
  --app-surface: rgba(23, 25, 40, 0.9);
  --app-border: rgba(255, 255, 255, 0.08);
  --app-highlight: linear-gradient(135deg, #8b5cf6, #06b6d4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Sora', 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-text, #f4f4ff);
  background: radial-gradient(circle at top left, rgba(5, 212, 221, 0.15), transparent),
    radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.2), transparent),
    var(--app-bg);
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 100vh;
  height: 100vh;
  position: relative;
  isolation: isolate;
  background-color: #05060c;
  background-image: radial-gradient(circle at 25% 0%, rgba(139, 92, 246, 0.08), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.07), transparent 50%);
}

.app-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 14px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent);
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

.app-sidebar {
  background: transparent;
  border-right: none;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  align-self: start;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
}

.brand-mark__ring {
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  border: 1px solid rgba(6, 182, 212, 0.5);
  opacity: 0.8;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: rgba(255, 255, 255, 0.85);
}

.brand-copy__label {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-copy__meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 4px;
}

.nav-button {
  width: 100%;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  padding: 12px 14px 12px 6px;
  border-radius: 12px;
  text-align: left;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-button::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 0;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, #8b5cf6, #06b6d4);
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.04);
  padding-left: 10px;
}

.nav-button.is-active {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.12), rgba(6, 182, 212, 0.08));
  color: #fff;
  padding-left: 10px;
  box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.15);
}

.nav-button.is-active::before {
  height: 75%;
}

.nav-button--spaced {
  margin-top: 18px;
}

.nav-button--free {
  border: 1px solid rgba(6, 182, 212, 0.5);
  background: rgba(6, 182, 212, 0.1);
  box-shadow: 0 12px 22px rgba(6, 182, 212, 0.25);
}

.nav-button--free .nav-button__meta {
  color: rgba(6, 182, 212, 0.85);
}

.nav-button--free.is-active,
.nav-button--free:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.32), rgba(8, 10, 18, 0.95));
  box-shadow: 0 16px 32px rgba(6, 182, 212, 0.35);
}

.nav-button__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  position: relative;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.nav-button:hover .nav-button__icon {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.05);
}

.nav-button.is-active .nav-button__icon {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.15));
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.nav-button__icon::after,
.nav-button__icon::before {
  content: '';
  position: absolute;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.65);
  transition: all 0.25s ease;
}

.nav-button.is-active .nav-button__icon::after,
.nav-button.is-active .nav-button__icon::before {
  background: rgba(255, 255, 255, 0.95);
}

.nav-button__icon--home::after {
  width: 18px;
  height: 12px;
  border-radius: 3px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  background: transparent;
}

.nav-button__icon--home::before {
  width: 12px;
  height: 1.5px;
  top: 10px;
  background: rgba(255, 255, 255, 0.7);
  transform: rotate(45deg);
}

.nav-button__icon--diagram::after {
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 5px;
}

.nav-button__icon--diagram::before {
  width: 1.5px;
  height: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.nav-button__icon--lightbulb::after {
  width: 12px;
  height: 14px;
  border-radius: 6px 6px 4px 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  background: transparent;
}

.nav-button__icon--lightbulb::before {
  width: 10px;
  height: 2px;
  bottom: 8px;
}

.nav-button__icon--monitor::after {
  width: 18px;
  height: 12px;
  border-radius: 3px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  background: transparent;
}

.nav-button__icon--monitor::before {
  width: 12px;
  height: 2px;
  bottom: 8px;
}

.nav-button__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-button__label {
  font-weight: 600;
}

.nav-button__meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.sidebar__footer {
  margin-top: auto;
}

.sidebar-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 32px rgba(3, 4, 10, 0.55);
}

.sidebar-user__identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sidebar-user__name {
  margin: 0;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(135deg, #ffffff, #e0e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
  letter-spacing: 0.02em;
}

.sidebar-user__membership {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.03em;
  font-weight: 400;
}

.sidebar-user__logout {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  display: grid;
  place-items: center;
  transition: border 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.sidebar-user__logout::before {
  content: '';
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}

.sidebar-user__logout::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(255, 255, 255, 0.85);
  border-right: 2px solid rgba(255, 255, 255, 0.85);
  top: 50%;
  left: 50%;
  transform: translate(4px, -50%) rotate(45deg);
}

.sidebar-user__logout:hover {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.15);
  transform: translateY(-1px);
}

.button--full {
  width: 100%;
}

.app-main {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: transparent;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 0;
  margin-bottom: 0;
}

.app-header__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
  margin: 0;
  font-weight: 500;
}

.app-header h1 {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, #d6e0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.app-header__user {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--app-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  color: #fff;
}

.user-name,
.user-plan {
  margin: 0;
}

.user-plan {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.app-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.overview-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(14, 18, 36, 0.95), rgba(8, 10, 18, 0.85));
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 25px 60px rgba(5, 6, 12, 0.4);
  margin-bottom: 0;
}

.overview-hero__primary {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.overview-hero__primary h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 38px);
  padding-top: 0;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.overview-hero__side {
  flex: 1 1 220px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.hero-side-card {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 5, 12, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 40px rgba(2, 4, 10, 0.45);
  display: grid;
  gap: 8px;
}

.hero-side-card__label {
  margin: 0;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
}

.hero-side-card__value {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
}

.hero-side-card__meta {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.68);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.overview-card {
  position: relative;
  padding: 30px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 12, 22, 0.9);
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 26px 60px rgba(4, 6, 18, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.overview-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 0%, rgba(139, 92, 246, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.overview-grid > article:nth-of-type(-n + 2) {
  background: linear-gradient(135deg, rgba(14, 18, 36, 0.95), rgba(8, 10, 18, 0.85));
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 30px 70px rgba(3, 7, 20, 0.65);
}

.overview-grid > article:nth-of-type(n + 3) {
  background: rgba(8, 10, 18, 0.85);
  box-shadow: 0 18px 44px rgba(4, 6, 14, 0.35);
  border-color: rgba(255, 255, 255, 0.05);
}

.overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 35px 80px rgba(6, 10, 24, 0.7);
  border-color: rgba(6, 182, 212, 0.35);
}

.overview-card:hover::after {
  opacity: 1;
}

.overview-card__header h3 {
  margin: 0;
  font-size: 20px;
}

.metrics-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.progress--compact .progress__value {
  font-size: 24px;
}

.overview-card--timeline {
  gap: 24px;
}

.mini-schedule {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mini-schedule__header h3 {
  margin: 0;
  font-size: 18px;
}

.panel {
  background: rgba(12, 12, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 200px;
  box-shadow: 0 24px 60px rgba(5, 8, 18, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 70px rgba(5, 8, 18, 0.6);
}

.panel--highlight {
  background: linear-gradient(135deg, rgba(12, 12, 24, 0.85), rgba(9, 11, 28, 0.95));
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 32px 70px rgba(6, 182, 212, 0.25);
}

.panel__eyebrow {
  margin: 0 0 8px 0;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #a7b2c3;
  padding-top: 0;
}

.panel h2 {
  margin: 0;
  font-size: 22px;
}

.panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.panel--overview {
  gap: 18px;
}

.panel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.panel--compact {
  gap: 12px;
}

.free-track {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
  min-height: auto !important;
  padding: 0 !important;
}

.free-track__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.free-track__header--sticky {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 6, 12, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
  padding: 0 32px 12px;
  margin: 0 -32px 16px -32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.free-track__intro {
  padding: 0;
  margin: 0;
}

.free-track__header--sticky h1 {
  margin: 0;
  padding: 0;
  font-size: clamp(20px, 2.5vw, 26px);
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}

.free-track__header--sticky p {
  margin: 4px 0 0 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.5;
}

.free-course-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.free-track__header h2 {
  margin: 0;
  font-size: 26px;
  color: rgba(255, 255, 255, 0.85);
}

.free-track__progress-bar {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.free-track__progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  width: calc(var(--progress, 0) * 100%);
  transition: width 0.4s ease;
}

.free-track__lessons {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.free-track-lesson {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 22px 26px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.25s ease;
}

.free-track-lesson__meta {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.free-track-lesson__content {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.free-track-lesson__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.free-track-lesson__lock-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
}

.free-track-lesson__lock-label--available {
  color: #bae6fd;
}

.free-track-lesson__content h3 {
  position: relative;
  margin: 0 0 6px;
  font-size: 20px;
  transition: color 0.25s ease;
}

.free-track-lesson__content h3::before {
  content: '▶';
  position: absolute;
  left: -26px;
  top: 2px;
  opacity: 0;
  color: rgba(255, 255, 255, 0.45);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.free-track-lesson.has-progress h3::after {
  content: '✅';
  margin-left: 8px;
  font-size: 16px;
  vertical-align: middle;
}

.free-track-lesson p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.free-track-lesson__progress {
  display: none;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.free-track-lesson__progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  width: calc(var(--progress, 0) * 100%);
}

.free-track-lesson.has-progress .free-track-lesson__progress {
  display: block;
}

.free-track-lesson:hover {
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.05);
}

.free-track-lesson:hover h3::before {
  opacity: 0.8;
  transform: translateX(2px);
}

.free-track-lesson.is-active {
  border-color: rgba(6, 182, 212, 0.45);
}

.free-track-lesson.is-next {
  border-style: solid;
}

.free-track-lesson.is-locked {
  opacity: 0.55;
}

.pill-button {
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

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

.pill-button--ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pill-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.free-track-video-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 120;
}

.free-track-video-modal.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.free-track-video-modal__content {
  position: relative;
  width: min(900px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  border: 1px solid rgba(139, 92, 246, 0.45);
  background: radial-gradient(circle at top, rgba(14, 165, 233, 0.12), rgba(15, 23, 42, 0.92));
  box-shadow: 0 40px 120px rgba(3, 7, 18, 0.85);
  overflow: hidden;
  transform: scale(0.95);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.free-track-video-modal.is-visible .free-track-video-modal__content {
  opacity: 1;
  transform: scale(1);
}

.free-track-video-modal__body {
  width: 100%;
  height: 100%;
}

.free-track-video-modal__body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.close-modal {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 6, 23, 0.75);
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.close-modal:hover {
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .free-track-video-modal {
    padding: 16px;
  }

  .free-track-video-modal__content {
    border-radius: 20px;
  }
}

.free-track__cta {
  padding: 22px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.free-track__cta h4 {
  margin: 0 0 6px;
  font-size: 18px;
}

.free-track__cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.metric-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(3, 7, 18, 0.4);
}

.metric-card__label {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #a7b2c3;
}

.metric-card__value {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

.metric-card__trend {
  font-size: 13px;
  color: rgba(0, 229, 255, 0.8);
}

.progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.progress__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.progress__value {
  font-size: 32px;
  font-weight: 700;
}

.progress__meta {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.progress__bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  width: 0;
  transition: width 0.4s ease;
}

.track-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.track-list li {
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.track-list li:first-child {
  border-color: rgba(6, 182, 212, 0.55);
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.25);
}

.track-list__header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.track-list__title {
  margin: 0;
  font-weight: 600;
}

.track-list__meta {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.track-list__progress {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.track-list__progress span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.track-progress-bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.track-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: rgba(0, 229, 255, 0.8);
}

.panel--split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.panel__section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-list,
.session-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-list li,
.session-list li {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 18px 16px 28px;
  background: rgba(12, 14, 24, 0.65);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline-list li::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.timeline-list li:nth-of-type(1)::before {
  background: linear-gradient(180deg, #8b5cf6, transparent);
}

.timeline-list li:nth-of-type(2)::before {
  background: linear-gradient(180deg, #06b6d4, transparent);
}

.timeline-list li:nth-of-type(3)::before {
  background: linear-gradient(180deg, #94a3b8, transparent);
}

.timeline-list li:hover,
.session-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(5, 8, 18, 0.55);
}

.timeline__title,
.session__title {
  margin: 0;
  font-weight: 600;
}

.timeline__meta,
.session__meta {
  margin: 4px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.timeline__tag,
.session__tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.15);
  align-self: flex-start;
}

.session__tag {
  border-color: rgba(139, 92, 246, 0.3);
  color: rgba(139, 92, 246, 0.85);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.resource-card {
  position: relative;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 12, 22, 0.7);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.resource-card::after {
  content: 'Novo';
  position: absolute;
  top: 16px;
  right: 18px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0ff7ff;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.3);
}

.resource-card:nth-of-type(2)::after {
  content: 'Atualizado';
  color: #c084fc;
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.3);
}

.resource-card:nth-of-type(3)::after {
  content: 'Beta';
  color: #facc15;
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.3);
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.25);
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(5, 7, 16, 0.55);
}

.resource-card h3 {
  margin: 0;
  font-size: 18px;
}

.resource-card p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.resource-card__status {
  font-size: 13px;
  color: rgba(0, 229, 255, 0.9);
  letter-spacing: 0.04em;
}

.overview-card,
.panel,
.hero-side-card,
.timeline-list li,
.session-list li,
.resource-card {
  animation: panelFade 0.25s ease both;
}

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

@media (max-width: 960px) {
  body {
    height: auto;
    overflow: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .app-sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    gap: 18px;
    height: auto;
    padding: 16px;
  }

  .sidebar__nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 6px;
    overflow-y: visible;
  }

  .nav-button {
    min-width: 160px;
    padding: 10px 12px 10px 6px;
  }

  .nav-button__meta {
    display: none;
  }

  .app-main {
    height: auto;
    overflow: visible;
  }
}

@media (max-width: 600px) {
  .app-main {
    padding: 22px;
    -webkit-overflow-scrolling: touch;
  }

  .app-header__user {
    width: 100%;
    justify-content: space-between;
  }

  .overview-hero {
    padding: 20px;
    gap: 20px;
  }

  .overview-card {
    padding: 20px;
    gap: 16px;
  }

  .panel {
    padding: 20px;
    gap: 14px;
  }

  .timeline-list li,
  .session-list li {
    padding: 14px 16px 14px 24px;
  }

  .free-track-lesson__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .free-track-lesson__actions {
    align-items: stretch;
    width: 100%;
  }

  .free-track-lesson__actions .pill-button,
  .free-track-lesson__actions .button,
  .button.button--primary {
    width: 100%;
  }
}

/* Ajustes Visão Geral: reforço de profundidade, microtextura, animações sutis e tags luminosas
   para alinhar a UI interna ao tema futurista/dark premium do produto. */
/* Remoção da faixa vertical: .app-shell, .app-sidebar e .app-main agora usam o mesmo fundo contínuo em toda a área logada. */

/* Free Course Cards - Horizontal Layout (Alura + Apple Style) - Trilha Gratuita Only */
.free-course-card {
  display: flex;
  border-radius: 12px;
  background: rgba(23, 25, 40, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  max-width: 100%;
  backdrop-filter: blur(10px);
}

.free-course-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  border-color: rgba(139, 92, 246, 0.25);
  background: rgba(23, 25, 40, 0.6);
}

.free-course-card__image {
  width: 180px;
  min-width: 180px;
  height: 140px;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  margin: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.free-course-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.free-course-card:hover .free-course-card__image img {
  transform: scale(1.05);
}

.free-course-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.08));
  color: #8b5cf6;
  font-size: 2.2rem;
  border-radius: 6px;
}

.free-course-card__content {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  gap: 10px;
  flex: 1;
}

.free-course-card__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.98);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  letter-spacing: -0.01em;
}

.free-course-card__level {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.free-course-card__description {
  margin: 0;
  color: rgba(203, 213, 225, 0.7);
  line-height: 1.6;
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  flex: 1;
}

.free-course-card__actions {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.button--primary {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  padding: 10px 20px;
  color: #e0e7ff;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.button--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(6, 182, 212, 0.08));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.button--primary:hover::before {
  opacity: 1;
}

.button--primary:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(6, 182, 212, 0.2));
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.18);
  color: #ffffff;
}

.button--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(139, 92, 246, 0.15);
}

.button--primary span {
  font-size: 0.8rem;
}

/* Responsive - Trilha Gratuita Only */
@media (max-width: 768px) {
  .free-course-card {
    flex-direction: column;
  }
  
  .free-course-card__image {
    width: 100%;
    min-width: 100%;
    height: 180px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .free-course-card__content {
    padding: 20px;
  }
  
  .free-course-card__title {
    font-size: 1.3rem;
  }
  
  .button--primary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .free-course-card__content {
    padding: 16px;
  }
  
  .free-course-card__title {
    font-size: 1.2rem;
  }
  
  .free-course-card__description {
    font-size: 0.9rem;
  }
}

/* Course and Lesson Modals */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
}

.modal.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal__content {
  position: relative;
  width: min(800px, 100%);
  max-height: 90vh;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.45);
  background: linear-gradient(145deg, #111827 0%, #1f2937 100%);
  box-shadow: 0 40px 120px rgba(3, 7, 18, 0.85);
  overflow: hidden;
  transform: scale(0.95);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.modal.is-visible .modal__content {
  opacity: 1;
  transform: scale(1);
}

.modal__content--large {
  width: min(1100px, 100%);
  max-height: 90vh;
  overflow-y: auto;
}

.modal__body {
  padding: 32px;
}

.lesson-content {
  margin-bottom: 24px;
  padding: 24px 24px 24px 60px;
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.05) 0%, 
    rgba(6, 182, 212, 0.03) 100%
  );
  border-left: 3px solid rgba(139, 92, 246, 0.5);
  border-radius: 12px;
  line-height: 1.8;
  color: rgba(248, 250, 252, 0.9);
  font-size: 1.05rem;
  white-space: pre-wrap;
  position: relative;
}

.lesson-content::before {
  content: '📖';
  position: absolute;
  left: 20px;
  top: 24px;
  font-size: 1.8rem;
  opacity: 0.7;
}

.lesson-materials {
  margin-top: 40px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.lesson-materials h3 {
  margin: 0 0 24px 0;
  font-size: 1.3rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lesson-materials h3::before {
  content: '📚';
  font-size: 1.5rem;
}

.materials-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.material-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.08) 0%, 
    rgba(6, 182, 212, 0.05) 100%
  );
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.material-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(180deg, #8b5cf6, #06b6d4);
  transition: width 0.3s ease;
}

.material-item:hover {
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.15) 0%, 
    rgba(6, 182, 212, 0.1) 100%
  );
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

.material-item:hover::before {
  width: 4px;
}

.material-item__icon {
  font-size: 2rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.3));
}

.material-item__info {
  flex: 1;
  min-width: 0;
}

.material-item__info h4 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.material-item__info p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(155, 163, 175, 0.85);
  line-height: 1.5;
}

.material-item__size {
  font-size: 0.85rem;
  color: rgba(139, 92, 246, 1);
  font-weight: 600;
  padding: 8px 16px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  flex-shrink: 0;
  margin-right: 12px;
}

.modal__header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.7);
}

.modal__header h2 {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.3;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 6, 23, 0.75);
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.modal__close:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-1px);
}

.modal__body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal__loading {
  text-align: center;
  padding: 40px 20px;
  color: #9BA3AF;
  font-size: 1rem;
}

.modal__modules {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.module-section {
  background: rgba(31, 41, 55, 0.6);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.module-section h3 {
  margin: 0 0 12px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.module-section > p {
  margin: 0 0 16px 0;
  color: #9BA3AF;
  line-height: 1.5;
}

.lesson-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lesson-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.lesson-item:hover {
  background: rgba(6, 182, 212, 0.05);
  border-color: rgba(6, 182, 212, 0.2);
  transform: translateY(-2px);
}

.lesson-item__title {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.lesson-content {
  margin: 20px 0;
  color: #e2e8f0;
  line-height: 1.6;
}

.lesson-content p {
  margin: 0 0 16px 0;
}

.lesson-content h3,
.lesson-content h4,
.lesson-content h5 {
  color: rgba(255, 255, 255, 0.95);
  margin: 24px 0 12px 0;
}

.lesson-content ul,
.lesson-content ol {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.lesson-content li {
  margin: 8px 0;
  line-height: 1.5;
}

.lesson-materials {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lesson-materials h3 {
  margin: 0 0 20px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.materials-loading {
  text-align: center;
  padding: 20px;
  color: #9BA3AF;
  font-size: 1rem;
}

.materials-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.material-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.material-item:hover {
  background: rgba(139, 92, 246, 0.05);
  border-color: rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}

.material-item__icon {
  font-size: 1.5rem;
  color: #06b6d4;
}

.material-item__info {
  flex: 1;
}

.material-item__info h4 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.material-item__info p {
  margin: 0;
  font-size: 0.875rem;
  color: #9BA3AF;
  line-height: 1.4;
}

.material-item__size {
  font-size: 0.75rem;
  color: #9BA3AF;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 6px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  margin: 20px 0;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.1));
  pointer-events: none;
}

/* Button Styles */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.button--primary {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  padding: 10px 20px;
  color: #e0e7ff;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.button--primary:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(6, 182, 212, 0.2));
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.18);
  color: #ffffff;
}

.button--ghost {
  background: transparent;
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: #06b6d4;
}

.button--ghost:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: #06b6d4;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.button--small {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .modal {
    padding: 16px;
  }
  
  .modal__content {
    border-radius: 16px;
  }
  
  .modal__header,
  .modal__body {
    padding: 20px;
  }
  
  .modal__content--large {
    width: 100%;
  }
  
  .lesson-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .material-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .material-item__info {
    width: 100%;
  }
  
  .button {
    padding: 12px 20px;
    font-size: 1rem;
  }
  
  .button--small {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

/* Error and No Courses Messages */
.no-courses-message,
.error-message {
  text-align: center;
  padding: 40px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 20px 0;
}

.no-courses-message h3,
.error-message h3 {
  margin: 0 0 10px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.no-courses-message p,
.error-message p {
  margin: 0 0 20px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

.no-courses-message .button,
.error-message .button {
  margin: 0 auto;
}

/* Enrollment Status Badge */
.free-course-card__enrollment-status {
  margin-top: 8px;
  min-height: 24px;
}

.enrollment-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: rgba(16, 185, 129, 0.12);
  color: rgba(16, 185, 129, 1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Override para main section dentro do portal */
.app-main main section {
  min-height: auto !important;
  padding: 0 !important;
}

.app-main .free-track {
  min-height: auto !important;
  padding: 0 !important;
}
