:root {
  --bg: #070908;
  --surface: #0e110f;
  --surface-2: #151917;
  --surface-3: #1c211e;
  --text: #f7f3e8;
  --muted: #a9ada7;
  --line: rgba(255,255,255,.09);
  --gold: #f5b942;
  --gold-soft: #ffd980;
  --green: #4df08c;
  --blue: #1ca3ff;
  --purple: #9b52db;
  --sidebar: 252px;
  --shadow: 0 24px 70px rgba(0,0,0,.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: var(--sidebar); padding: 30px 20px 24px; display: flex; flex-direction: column; background: #0b0e0c; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 38px; }
.brand__mark { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; color: #151006; background: linear-gradient(145deg, #ffe19a, var(--gold)); font: 800 14px/1 Manrope, sans-serif; box-shadow: 0 8px 24px rgba(245,185,66,.18); }
.brand__copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand__copy strong { font: 800 15px Manrope, sans-serif; }
.brand__copy small { margin-top: 4px; color: var(--gold); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; }
.nav-list { display: grid; gap: 6px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 13px; min-height: 47px; padding: 0 14px; border-radius: 10px; color: #9ca19d; font-weight: 600; font-size: 14px; transition: .2s ease; }
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-item.active { color: #171207; background: var(--gold); }
.nav-icon { width: 20px; text-align: center; font-size: 18px; }
.sidebar__practice { margin: auto 0 18px; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid rgba(245,185,66,.18); border-radius: 12px; background: linear-gradient(135deg, rgba(245,185,66,.11), rgba(245,185,66,.02)); }
.practice-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--gold); background: rgba(245,185,66,.12); }
.sidebar__practice p { margin: 0; font-size: 12px; line-height: 1.5; }
.sidebar__practice span { color: var(--muted); }
.profile-link { width: 100%; display: flex; align-items: center; gap: 10px; padding: 15px 5px 0; border: 0; border-top: 1px solid var(--line); color: inherit; background: none; text-align: left; cursor: pointer; }
.profile-link img, .top-profile img { width: 34px; height: 34px; object-fit: cover; object-position: center 24%; border-radius: 50%; background: #222; }
.profile-link > span { display: flex; flex: 1; flex-direction: column; font-size: 12px; }
.profile-link small { margin-top: 3px; color: var(--muted); }
.profile-link b { color: var(--muted); }

.main-content { margin-left: var(--sidebar); min-width: 0; overflow: hidden; }
.topbar { height: 76px; padding: 0 4.2vw; display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); background: rgba(7,9,8,.9); backdrop-filter: blur(16px); }
.menu-button { display: none; border: 0; background: none; font-size: 20px; }
.search-box { width: min(430px, 42vw); height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 15px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--surface); }
.search-box:focus-within { border-color: rgba(245,185,66,.5); box-shadow: 0 0 0 3px rgba(245,185,66,.08); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 13px; }
.search-box input::placeholder { color: #777c78; }
.notification { position: relative; margin-left: auto; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); }
.notification i { position: absolute; right: 7px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--surface); }
.top-profile { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; color: inherit; background: none; font-size: 13px; font-weight: 600; cursor: pointer; }
.top-profile b { margin-left: 5px; color: var(--muted); }

.hero { min-height: 500px; position: relative; display: flex; align-items: center; padding: 72px 5.5vw; isolation: isolate; background: radial-gradient(circle at 80% 30%, rgba(245,185,66,.12), transparent 30%), linear-gradient(110deg, #0c100e 0%, #0a0d0b 60%, #151006 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .19; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(90deg, #000, transparent 70%); }
.hero__content { position: relative; z-index: 2; width: min(650px, 61%); }
.eyebrow, .section-kicker { color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.eyebrow i { display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px var(--gold); }
h1, h2, h3 { font-family: Manrope, sans-serif; }
.hero h1 { margin: 15px 0 15px; font-size: clamp(37px, 4vw, 61px); line-height: 1.05; letter-spacing: -.045em; }
.hero__content > p { max-width: 530px; margin: 0 0 26px; color: #b9bdb8; font-size: 16px; line-height: 1.7; }
.hero__content > p strong { color: var(--text); }
.hero__actions { display: flex; gap: 12px; }
.primary-button, .ghost-button { min-height: 45px; padding: 0 19px; border-radius: 9px; font-size: 12px; font-weight: 800; cursor: pointer; transition: transform .2s, filter .2s, border-color .2s; }
.primary-button { border: 1px solid var(--gold); color: #191205; background: var(--gold); }
.primary-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.primary-button span { margin-right: 8px; }
.ghost-button { border: 1px solid rgba(255,255,255,.19); background: rgba(255,255,255,.045); }
.ghost-button:hover { border-color: rgba(255,255,255,.4); }
.hero__progress { width: min(480px, 100%); margin-top: 31px; }
.progress-copy { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 11px; color: var(--muted); }
.progress-copy strong { color: var(--gold); }
.progress-track, .mini-progress { height: 4px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.1); }
.progress-track i, .mini-progress i { display: block; height: 100%; border-radius: inherit; background: var(--gold); }
.hero__progress small { display: block; margin-top: 9px; color: #777d78; font-size: 10px; }
.hero__visual { position: absolute; right: 1.8vw; bottom: -55px; width: min(36vw, 445px); aspect-ratio: 1; z-index: 1; transform: rotate(5deg); filter: drop-shadow(-25px 25px 45px rgba(0,0,0,.7)); }
.hero__visual::before { content: ""; position: absolute; inset: 7%; z-index: -1; border-radius: 50%; background: rgba(245,185,66,.17); filter: blur(45px); }
.hero__visual img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }

.content-section { padding: 58px 5.5vw 8px; scroll-margin-top: 20px; }
.section-heading { margin-bottom: 26px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin: 5px 0 0; font-size: 25px; letter-spacing: -.03em; }
.section-heading > a { color: var(--muted); font-size: 12px; font-weight: 700; }
.section-heading > a span { margin-left: 7px; color: var(--gold); }
.journey-row { display: flex; align-items: center; padding: 23px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow-x: auto; }
.journey-step { min-width: 185px; flex: 1; display: flex; align-items: center; gap: 12px; opacity: .78; }
.journey-step.current { opacity: 1; }
.journey-step.locked { opacity: .45; }
.step-number { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 11px; font-weight: 800; }
.current .step-number { border-color: var(--gold); color: #161006; background: var(--gold); box-shadow: 0 0 0 6px rgba(245,185,66,.07); }
.journey-step div { display: flex; flex-direction: column; }
.journey-step small { color: var(--gold); font-size: 8px; letter-spacing: .15em; }
.journey-step strong { margin: 3px 0; font-size: 12px; white-space: nowrap; }
.journey-step div span { color: var(--muted); font-size: 9px; }
.journey-step > i { margin-left: auto; color: var(--gold); font-size: 10px; font-style: normal; }
.journey-line { width: 36px; height: 1px; flex: 0 0 auto; margin: 0 13px; background: var(--line); }

.filter-tabs { padding: 3px; display: flex; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.filter-tabs button { min-height: 30px; padding: 0 12px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.filter-tabs button.active { color: #171207; background: var(--gold); }
.course-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.course-card { min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; }
.course-card:hover { transform: translateY(-4px); border-color: rgba(245,185,66,.28); box-shadow: 0 18px 44px rgba(0,0,0,.22); }
.course-card[hidden] { display: none; }
.course-card__image { width: 100%; height: 155px; position: relative; display: block; padding: 0; overflow: hidden; border: 0; background: #191d1a; cursor: pointer; }
.course-card__image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 47%, rgba(0,0,0,.7)); }
.course-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.course-card:hover .course-card__image img { transform: scale(1.035); }
.course-card[data-access="locked"] .course-card__image img { filter: saturate(.65) brightness(.72); }
.access-tag { position: absolute; left: 11px; bottom: 10px; z-index: 2; padding: 5px 7px; border-radius: 4px; color: #171207; background: var(--gold); font-size: 7px; font-weight: 800; letter-spacing: .08em; }
.access-tag.available { color: #07150c; background: var(--green); }
.access-tag.challenge { color: #fff; background: var(--purple); }
.access-tag.mentor { color: #fff; background: #b27424; }
.access-tag.harmony { color: #fff; background: #2866a8; }
.play-button, .lock-button { position: absolute; inset: 50% auto auto 50%; z-index: 3; width: 42px; height: 42px; display: grid; place-items: center; padding-left: 3px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(7,9,8,.72); backdrop-filter: blur(8px); transform: translate(-50%,-50%); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.lock-button { padding: 0; color: var(--gold); }
.course-card__body { min-height: 181px; padding: 17px 17px 18px; display: flex; flex-direction: column; }
.course-card__body > small { color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.course-card__body h3 { margin: 7px 0 7px; font-size: 14px; line-height: 1.32; }
.course-card__body p { margin: 0 0 15px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.mini-progress { margin-top: auto; height: 3px; }
.progress-label { margin-top: 7px; color: var(--muted); font-size: 9px; }
.unlock-link { margin-top: auto; align-self: start; padding: 0; border: 0; color: #ddd9cf; background: none; font-size: 10px; font-weight: 700; cursor: pointer; }
.unlock-link span { margin-left: 5px; color: var(--gold); }
.empty-state { padding: 30px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }

.teacher-banner { min-height: 250px; margin: 60px 5.5vw 20px; padding: 0 38px 0 0; display: flex; align-items: center; gap: 34px; border: 1px solid rgba(245,185,66,.18); border-radius: 16px; background: radial-gradient(circle at 25% 50%, rgba(245,185,66,.15), transparent 38%), linear-gradient(105deg, #19140a, #10130f 62%); overflow: hidden; }
.teacher-banner__photo { width: 270px; align-self: stretch; overflow: hidden; }
.teacher-banner__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: saturate(.84) contrast(1.05); mask-image: linear-gradient(90deg, #000 75%, transparent); }
.teacher-banner__copy { flex: 1; }
.teacher-banner h2 { margin: 7px 0 8px; font-size: 27px; }
.teacher-banner p { margin: 0 0 8px; color: #bbb8ad; font-size: 13px; font-style: italic; }
.teacher-banner strong { color: var(--gold-soft); font-size: 11px; }
.ghost-button.light { flex: 0 0 auto; }
.footer { padding: 35px 5.5vw 90px; display: flex; justify-content: space-between; color: #666b67; font-size: 10px; }
.mobile-nav { display: none; }

.course-modal { width: min(430px, calc(100vw - 34px)); padding: 38px; border: 1px solid rgba(245,185,66,.25); border-radius: 18px; color: var(--text); background: #101410; box-shadow: var(--shadow); text-align: center; }
.course-modal::backdrop { background: rgba(0,0,0,.76); backdrop-filter: blur(5px); }
.modal-close { position: absolute; right: 12px; top: 10px; border: 0; color: var(--muted); background: none; font-size: 26px; cursor: pointer; }
.modal-icon { width: 54px; height: 54px; margin: 0 auto 17px; display: grid; place-items: center; border: 1px solid rgba(245,185,66,.25); border-radius: 50%; color: var(--gold); background: rgba(245,185,66,.08); }
.course-modal small { color: var(--gold); letter-spacing: .16em; font-weight: 800; }
.course-modal h2 { margin: 8px 0 10px; font-size: 23px; }
.course-modal p { margin: 0 auto 22px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.course-modal .primary-button { width: 100%; }
.text-button { margin-top: 14px; border: 0; color: var(--muted); background: none; font-size: 11px; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; padding: 12px 18px; border: 1px solid rgba(77,240,140,.22); border-radius: 9px; color: #d9ffe6; background: #122018; font-size: 12px; transform: translate(-50%, 100px); opacity: 0; transition: .28s ease; box-shadow: var(--shadow); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 1180px) {
  :root { --sidebar: 220px; }
  .course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .journey-step { min-width: 165px; }
  .journey-line { width: 18px; margin: 0 7px; }
}

@media (max-width: 860px) {
  :root { --sidebar: 0px; }
  html, body { width: 100%; overflow-x: hidden; }
  .sidebar { display: none; }
  .main-content { margin: 0; }
  .topbar { height: 66px; padding: 0 18px; position: sticky; top: 0; z-index: 15; }
  .menu-button { display: block; padding: 0; }
  .search-box { flex: 1; width: auto; }
  .notification, .top-profile span { display: none; }
  .top-profile img { width: 35px; height: 35px; }
  .hero { min-height: 650px; padding: 52px 24px 255px; align-items: start; }
  .hero__content { width: 100%; }
  .hero h1 { font-size: clamp(35px, 8vw, 50px); }
  .hero__visual { width: 220px; right: 50%; bottom: -38px; opacity: .88; transform: translateX(50%) rotate(2deg); }
  .hero__visual::after { content: ""; position: absolute; inset: auto -100vw -1px; height: 75px; background: linear-gradient(transparent, var(--bg)); }
  .content-section { padding: 46px 20px 0; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .teacher-banner { margin: 48px 20px 16px; padding: 0 22px 0 0; gap: 10px; }
  .teacher-banner__photo { width: 190px; }
  .teacher-banner .ghost-button { display: none; }
  .footer { padding: 30px 20px 105px; }
  .mobile-nav { height: 70px; position: fixed; inset: auto 0 0; z-index: 30; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); background: rgba(10,13,11,.96); backdrop-filter: blur(18px); }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #858a86; font-size: 9px; }
  .mobile-nav a span { font-size: 17px; }
  .mobile-nav a.active { color: var(--gold); }
}

@media (max-width: 560px) {
  .topbar { gap: 10px; padding-inline: 15px; }
  .search-box { height: 39px; }
  .search-box input { font-size: 11px; }
  .hero { min-height: 640px; padding: 42px 20px 245px; }
  .hero__content { min-width: 0; }
  .hero h1 { max-width: 100%; font-size: clamp(31px, 8.4vw, 37px); line-height: 1.08; white-space: normal; overflow-wrap: normal; }
  .hero h1 br { display: initial; }
  .hero__content > p { max-width: 100%; font-size: 14px; overflow-wrap: break-word; }
  .hero__actions { display: flex; flex-direction: column; gap: 9px; }
  .hero__actions .primary-button, .hero__actions .ghost-button { width: 100%; padding-inline: 12px; }
  .hero__progress { margin-top: 26px; }
  .hero__visual { width: 198px; right: 50%; bottom: -26px; }
  .content-section { padding-inline: 16px; }
  .section-heading { align-items: start; flex-direction: column; gap: 15px; }
  .section-heading h2 { font-size: 21px; }
  .section-heading > a { display: none; }
  .filter-tabs { width: 100%; max-width: none; overflow: auto; }
  .filter-tabs button { flex: 1; padding: 0 10px; white-space: nowrap; }
  .journey-row { width: 100%; padding: 15px; display: grid; grid-template-columns: 1fr; gap: 0; overflow: hidden; }
  .journey-step { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
  .journey-step div { min-width: 0; }
  .journey-step strong { white-space: normal; }
  .journey-line { width: 1px; height: 18px; min-width: 1px; margin: 0 0 0 31px; background: var(--line); }
  .course-grid { grid-template-columns: 1fr; gap: 14px; }
  .course-card { display: grid; grid-template-columns: 41% 59%; min-height: 152px; }
  .course-card__image { height: 100%; min-height: 152px; }
  .course-card__body { min-width: 0; min-height: 152px; padding: 14px 13px; }
  .course-card__body h3 { margin-block: 6px; font-size: 13px; }
  .course-card__body p { margin-bottom: 10px; font-size: 9px; line-height: 1.45; }
  .play-button, .lock-button { width: 38px; height: 38px; }
  .access-tag { left: 8px; bottom: 8px; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .teacher-banner { min-height: 220px; margin-inline: 16px; padding: 24px 20px; }
  .teacher-banner__photo { display: none; }
  .teacher-banner h2 { font-size: 23px; }
  .footer { padding-inline: 16px; flex-direction: column; gap: 7px; }
  .course-modal { padding: 34px 22px 26px; }
}

@media (max-width: 370px) {
  .top-profile { display: flex; }
  .hero { padding-inline: 16px; }
  .hero h1 { font-size: 31px; }
  .hero__actions { grid-template-columns: 1fr; }
  .hero__actions button { width: 100%; }
  .course-card { grid-template-columns: 39% 61%; }
  .mobile-nav a { font-size: 8px; }
}
