:root {
  --navy: #07172f;
  --navy-2: #0b2c5b;
  --navy-3: #123d72;
  --gold: #e5ad13;
  --gold-bright: #ffd857;
  --gold-dark: #b77d00;
  --text: #26384d;
  --muted: #6f7f91;
  --line: #dce4ec;
  --panel: #ffffff;
  --page: #f2f5f8;
  --success: #258a5a;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.members-body {
  background:
    radial-gradient(circle at 8% 0%, rgba(255,216,87,.11), transparent 26rem),
    var(--page);
  color: var(--text);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.members-header {
  background:
    linear-gradient(135deg, rgba(255,255,255,.035) 25%, transparent 25%) 0 0 / 8px 8px,
    linear-gradient(315deg, rgba(255,255,255,.025) 25%, transparent 25%) 0 0 / 8px 8px,
    linear-gradient(180deg, #111a28 0%, #060d18 100%);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 4px 18px rgba(0,0,0,.22);
}
.members-header-inner {
  width: min(100% - 36px, 1380px);
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.members-logo {
  width: min(330px, 44vw);
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
}
.members-home-wordmark {
  display: inline-flex;
  align-items: baseline;
  width: 100%;
  white-space: nowrap;
  line-height: 1;
  font-size: 39px;
  font-weight: 900;
  letter-spacing: -.055em;
}
.members-home-wordmark .test-brand-duplicate,
.members-home-wordmark .test-brand-com {
  color: #fff;
  -webkit-text-stroke: 1.35px #071d4f;
  paint-order: stroke fill;
  text-shadow: 0 2px 0 #071d4f, 0 4px 0 #071d4f, 0 8px 14px rgba(0,0,0,.28);
}
.members-home-wordmark .test-brand-mike {
  color: #ffd533;
  -webkit-text-stroke: 1.35px #071d4f;
  paint-order: stroke fill;
  text-shadow: 0 2px 0 #071d4f, 0 4px 0 #071d4f, 0 8px 14px rgba(0,0,0,.28);
}
.members-home-wordmark .test-brand-com { font-size: .74em; letter-spacing: -.045em; }
.members-account { display: flex; align-items: center; gap: 12px; color: #fff; }
.members-avatar {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid rgba(255,216,87,.48); border-radius: 50%;
  background: rgba(255,216,87,.1);
}
.members-avatar svg { width: 27px; height: 27px; fill: #f5d66c; }
.members-account-copy { display: flex; flex-direction: column; gap: 2px; }
.members-account-copy strong { font-size: 13px; }
.members-account-copy span { color: #aebccd; font-size: 10px; font-weight: 600; }
.members-exit {
  margin-left: 8px; min-height: 38px; padding: 0 14px; display: inline-flex; align-items: center;
  border: 1px solid rgba(255,255,255,.22); border-radius: 7px;
  color: #fff; text-decoration: none; font-size: 11px; font-weight: 800;
}
.members-exit:hover { border-color: rgba(255,216,87,.7); background: rgba(255,216,87,.1); }

.members-main {
  width: min(100% - 36px, 1380px);
  margin: 30px auto 42px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.members-sidebar { display: grid; gap: 18px; position: sticky; top: 18px; }
.sidebar-panel {
  overflow: hidden; background: var(--panel); border: 1px solid #d8e0e8; border-radius: 14px;
  box-shadow: 0 8px 24px rgba(24,46,69,.08);
}
.sidebar-heading {
  min-height: 58px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(135deg, #0c2346 0%, #061327 100%); color: #fff;
}
.sidebar-heading h2 { margin: 0; font-size: 15px; font-weight: 800; }
.sidebar-heading span { color: #aab8c7; font-size: 10px; font-weight: 700; }
.sidebar-heading.compact { min-height: 51px; }
.course-list { display: grid; padding: 7px; gap: 4px; }
.course-select {
  width: 100%; min-height: 76px; padding: 11px 10px; display: grid;
  grid-template-columns: 38px minmax(0,1fr) 24px; align-items: center; gap: 11px;
  border: 1px solid transparent; border-radius: 10px; background: #fff;
  color: #33465a; text-align: left; cursor: pointer;
}
.course-select:hover { background: #f8fafc; border-color: #e2e8ee; }
.course-select.is-active {
  background: linear-gradient(100deg, #fffaf0 0%, #fffdf8 100%);
  border-color: rgba(229,173,19,.5); box-shadow: inset 4px 0 0 var(--gold);
}
.course-select-icon {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  background: #edf2f6; color: #596d82; font-size: 14px; font-weight: 900;
}
.course-select.is-active .course-select-icon { background: var(--navy); color: var(--gold-bright); }
.course-select-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.course-select-copy { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.course-select-copy strong { overflow: hidden; color: #2f4256; font-size: 14px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.course-select.is-active .course-select-copy strong { color: var(--navy-2); }
.course-select-copy small { display: flex; align-items: center; gap: 7px; color: #8896a4; font-size: 9px; font-weight: 700; }
.course-status {
  padding: 3px 6px; border-radius: 999px; background: #eef1f4; color: #6d7b89;
  font-size: 8px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase;
}
.course-status.is-available { background: #e5f6ed; color: #20764d; }
.course-arrow { color: #8d99a5; font-size: 25px; line-height: 1; }
.course-select.is-active .course-arrow { color: var(--gold-dark); }
.sidebar-support { padding-bottom: 7px; }
.sidebar-support .support-link {
  width: calc(100% - 14px); min-height: 42px; margin: 4px 7px 0; padding: 0 12px;
  border: 0; border-radius: 8px; background: transparent; color: #4f6478;
  text-align: left; font-size: 11px; font-weight: 700; cursor: pointer;
}
.sidebar-support .support-link:hover,
.sidebar-support .support-link.is-active { background: #f2f6f9; color: var(--navy-2); }

.members-content { min-width: 0; }
.members-welcome {
  position: relative; overflow: hidden; min-height: 252px; padding: 34px 36px;
  display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 30px; align-items: center;
  border-radius: 18px; color: #fff;
  background:
    radial-gradient(circle at 86% 18%, rgba(255,216,87,.28), transparent 16rem),
    linear-gradient(135deg, #102d5a 0%, #07172f 68%, #050f21 100%);
  box-shadow: 0 18px 38px rgba(7,23,47,.2);
}
.members-welcome::after {
  content: ''; position: absolute; width: 260px; height: 260px; right: -90px; bottom: -150px;
  border: 38px solid rgba(255,216,87,.08); border-radius: 50%;
}
.members-welcome-copy { position: relative; z-index: 1; }
.welcome-kicker { margin: 0 0 8px; color: var(--gold-bright); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.members-welcome h1 { max-width: 700px; margin: 0; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -.035em; }
.members-welcome h1 span { color: var(--gold-bright); }
.members-welcome-copy > p:not(.welcome-kicker) { max-width: 700px; margin: 15px 0 22px; color: #c3cfdb; font-size: 13px; line-height: 1.65; }
.continue-button {
  min-height: 50px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 9px; background: linear-gradient(180deg, #ffdd5e 0%, #e4a90e 100%);
  box-shadow: 0 8px 20px rgba(0,0,0,.22); color: #10294d; font-size: 12px; font-weight: 900; cursor: pointer;
}
.continue-button:hover { transform: translateY(-1px); filter: brightness(1.04); }
.continue-play { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: 9px; padding-left: 2px; }
.welcome-stats {
  position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: rgba(255,255,255,.07); backdrop-filter: blur(4px);
}
.welcome-stats div { min-height: 112px; padding: 18px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-right: 1px solid rgba(255,255,255,.11); text-align: center; }
.welcome-stats div:last-child { border-right: 0; }
.welcome-stats strong { color: var(--gold-bright); font-size: 27px; font-weight: 900; }
.welcome-stats span { color: #cad5df; font-size: 9px; font-weight: 700; line-height: 1.35; }

.member-tabs {
  margin-top: 20px; padding: 6px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 5px;
  border: 1px solid #d9e1e9; border-radius: 12px; background: #fff; box-shadow: 0 6px 20px rgba(24,46,69,.06);
}
.member-tab {
  min-height: 50px; padding: 0 14px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 8px; background: transparent; color: #65768a; cursor: pointer;
}
.member-tab:hover { background: #f4f7f9; color: var(--navy-2); }
.member-tab.is-active { background: var(--navy); color: #fff; box-shadow: 0 4px 10px rgba(7,23,47,.14); }
.member-tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.member-tab span { font-size: 11px; font-weight: 800; }

.course-summary {
  margin-top: 18px; padding: 23px 25px; display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 28px; align-items: center;
  border: 1px solid #d9e1e9; border-radius: 14px; background: #fff; box-shadow: 0 7px 24px rgba(24,46,69,.06);
}
.course-summary-topline { display: flex; align-items: center; gap: 10px; }
.course-kicker { margin: 0; color: #7d8a98; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.course-access-badge { padding: 4px 7px; border-radius: 999px; background: #eef1f4; color: #6e7d8c; font-size: 8px; font-weight: 900; letter-spacing: .05em; }
.course-access-badge.is-available { background: #e5f6ed; color: #20764d; }
.course-summary h1 { margin: 7px 0 0; color: var(--navy); font-size: clamp(25px, 2.8vw, 37px); font-weight: 900; letter-spacing: -.03em; }
.course-summary p:not(.course-kicker) { margin: 8px 0 0; max-width: 680px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.progress-copy { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: #6e7d8d; font-size: 10px; font-weight: 800; }
.progress-copy strong { color: var(--gold-dark); }
.progress-track { height: 9px; overflow: hidden; border-radius: 999px; background: #e7ebef; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffd857, #d79800); }

.member-view { margin-top: 18px; }
.lesson-list { display: grid; gap: 13px; }
.lesson-card {
  min-height: 154px; padding: 14px; display: grid; grid-template-columns: 178px minmax(0,1fr) auto; gap: 20px; align-items: center;
  border: 1px solid #d9e1e9; border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(24,46,69,.05);
}
.lesson-card:first-child { border-color: rgba(229,173,19,.58); box-shadow: 0 9px 26px rgba(181,124,0,.1); }
.lesson-thumbnail {
  position: relative; overflow: hidden; min-height: 124px; display: grid; place-items: center; border-radius: 11px;
  background:
    linear-gradient(135deg, rgba(255,216,87,.16), transparent 50%),
    linear-gradient(145deg, #123f77 0%, #07172f 72%);
}
.lesson-thumbnail::after { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; }
.lesson-index { position: absolute; left: 13px; top: 11px; color: rgba(255,255,255,.32); font-size: 25px; font-weight: 900; }
.lesson-play { position: relative; z-index: 1; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-bright); color: var(--navy); box-shadow: 0 7px 18px rgba(0,0,0,.25); font-size: 14px; padding-left: 3px; }
.lesson-card-content { min-width: 0; }
.lesson-number { display: block; margin-bottom: 6px; color: var(--gold-dark); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.lesson-card h2 { margin: 0; color: #2b3e53; font-size: clamp(16px, 1.6vw, 21px); font-weight: 800; line-height: 1.3; }
.lesson-card-content p { margin: 8px 0 0; max-width: 700px; color: #748395; font-size: 11px; line-height: 1.55; }
.lesson-side { min-width: 122px; display: flex; flex-direction: column; align-items: flex-end; gap: 13px; }
.lesson-duration { padding: 5px 8px; border-radius: 999px; background: #edf3f7; color: #65798d; font-size: 9px; font-weight: 900; }
.lesson-action {
  min-height: 40px; padding: 0 15px; border: 0; border-radius: 8px; background: linear-gradient(180deg, #ffd95a 0%, #dda309 100%);
  color: #10294d; font-size: 10px; font-weight: 900; cursor: pointer; white-space: nowrap;
}
.lesson-action:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.04); }
.lesson-action:disabled { background: #e7ebef; color: #8996a4; cursor: default; }
.lesson-note { color: #8290a0; font-size: 8px; font-weight: 700; }

.empty-panel, .support-panel {
  overflow: hidden; border: 1px solid #d9e1e9; border-radius: 14px; background: #fff; box-shadow: 0 7px 24px rgba(24,46,69,.06);
}
.empty-panel { min-height: 320px; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 18px; background: #f0f4f7; font-size: 30px; }
.empty-panel h2 { margin: 15px 0 8px; color: #31485d; font-size: 24px; font-weight: 800; }
.empty-panel p { max-width: 560px; margin: 0; color: #718090; font-size: 12px; line-height: 1.65; }
.support-panel-head { padding: 24px; border-bottom: 1px solid #e1e7ed; background: linear-gradient(180deg,#fff,#f7f9fb); }
.support-kicker { display: block; margin-bottom: 6px; color: var(--gold-dark); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.support-panel-head h2 { margin: 0; color: #31485d; font-size: clamp(23px,2.5vw,32px); font-weight: 800; }
.support-panel-body { padding: 24px; color: #5e7082; font-size: 12px; line-height: 1.75; }
.support-panel-body p { margin: 0 0 16px; }
.support-callout { margin: 0 0 18px; padding: 16px 18px; border: 1px solid #dce5ec; border-radius: 10px; background: #f3f7fa; }
.support-callout strong { display: block; margin-bottom: 6px; color: #35516c; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.support-callout a { color: #0c69a4; font-size: 18px; font-weight: 800; text-decoration: none; word-break: break-word; }
.support-list { margin: 0 0 16px 18px; padding: 0; }
.support-list li { margin: 0 0 8px; }
.support-note { color: #7a8794; font-size: 11px; }

.members-footer { padding: 28px 18px 30px; border-top: 1px solid #dce3e8; background: #fff; text-align: center; }
.members-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 24px; }
.members-footer a { color: #4b6074; text-decoration: none; font-size: 10px; font-weight: 800; }
.members-footer p { margin: 12px 0 0; color: #8592a0; font-size: 9px; }

@media (max-width: 1080px) {
  .members-main { grid-template-columns: 270px minmax(0,1fr); }
  .members-welcome { grid-template-columns: 1fr; }
  .welcome-stats { max-width: 500px; }
  .lesson-card { grid-template-columns: 150px minmax(0,1fr) auto; }
}
@media (max-width: 900px) {
  .members-main { grid-template-columns: 1fr; }
  .members-sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .course-summary { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .members-header-inner { width: min(100% - 20px,1380px); min-height: 74px; }
  .members-logo { width: min(245px,62vw); }
  .members-home-wordmark { font-size: 28px; letter-spacing: -.06em; }
  .members-home-wordmark .test-brand-duplicate,
  .members-home-wordmark .test-brand-mike,
  .members-home-wordmark .test-brand-com { -webkit-text-stroke-width: 1px; text-shadow: 0 2px 0 #071d4f,0 4px 9px rgba(0,0,0,.28); }
  .members-account-copy, .members-exit { display: none; }
  .members-main { width: min(100% - 18px,1380px); margin-top: 18px; gap: 18px; }
  .members-sidebar { grid-template-columns: 1fr; }
  .members-welcome { min-height: 0; padding: 27px 22px; border-radius: 14px; }
  .members-welcome h1 { font-size: clamp(27px,9vw,39px); }
  .welcome-stats div { min-height: 88px; padding: 13px 8px; }
  .welcome-stats strong { font-size: 22px; }
  .member-tabs { grid-template-columns: repeat(2,1fr); }
  .course-summary { padding: 20px 18px; }
  .lesson-card { grid-template-columns: 112px minmax(0,1fr); gap: 14px; }
  .lesson-thumbnail { min-height: 108px; }
  .lesson-side { grid-column: 2; min-width: 0; flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (max-width: 500px) {
  .welcome-stats { grid-template-columns: 1fr; }
  .welcome-stats div { min-height: 64px; flex-direction: row; justify-content: space-between; padding: 13px 16px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.11); }
  .welcome-stats div:last-child { border-bottom: 0; }
  .continue-button { width: 100%; }
  .member-tab { min-height: 47px; padding: 0 8px; }
  .lesson-card { grid-template-columns: 1fr; }
  .lesson-thumbnail { min-height: 150px; }
  .lesson-side { grid-column: 1; }
  .lesson-action { flex: 1; }
}
