:root {
  --navy: #07172f;
  --navy-2: #0b2c5b;
  --blue: #227fc0;
  --blue-light: #eaf6fc;
  --gold: #e5ad13;
  --text: #24364a;
  --muted: #6c7d8f;
  --line: #dbe3eb;
  --panel: #ffffff;
  --page: #f3f6f8;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body.members-body {
  background: var(--page);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

button, a { font: inherit; }

.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 #2787bd;
  box-shadow: 0 3px 12px rgba(0,0,0,.22);
}

.members-header-inner {
  width: min(100% - 32px, 1380px);
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.members-logo { display: inline-flex; align-items: center; }
.members-logo img { width: min(330px, 44vw); height: auto; display: block; }

.members-account {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.members-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
}

.members-avatar svg { width: 30px; height: 30px; fill: #d8e0e8; }
.members-account-copy { display: flex; flex-direction: column; gap: 2px; }
.members-account-copy strong { font-size: 14px; }
.members-account-copy span { color: #b8c4d0; font-size: 11px; }

.members-exit {
  margin-left: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
.members-exit:hover { background: rgba(255,255,255,.1); }

.members-main {
  width: min(100% - 32px, 1380px);
  margin: 28px auto 36px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.members-sidebar { display: grid; gap: 18px; }
.sidebar-panel { background: var(--panel); border: 1px solid #d7dee6; box-shadow: 0 2px 8px 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(180deg, #3b3b3b 0%, #0e0e0e 100%);
  color: #fff;
}
.sidebar-heading h2 { margin: 0; font-size: 17px; }
.sidebar-heading span { color: #9fb2c7; font-size: 11px; }
.sidebar-heading.compact { min-height: 50px; }

.course-list { display: grid; }
.course-select {
  width: 100%;
  min-height: 78px;
  padding: 14px 14px 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: #33465a;
  text-align: left;
  cursor: pointer;
}
.course-select:last-child { border-bottom: 0; }
.course-select:hover { background: #f7fbfd; }
.course-select.is-active { background: linear-gradient(90deg, #f8fdff 0%, #eaf7fd 100%); box-shadow: inset 5px 0 0 var(--blue); }
.course-select-copy { display: flex; flex-direction: column; gap: 6px; }
.course-select-copy strong { font-size: 17px; font-weight: 600; }
.course-select-copy small { color: #7c8b99; font-size: 12px; }
.course-select.is-active .course-select-copy strong { color: #0c5f98; }
.course-arrow {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.sidebar-support a {
  display: block;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  color: #35516c;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.sidebar-support a:last-child { border-bottom: 0; }
.sidebar-support a:hover { color: #0c69a4; background: #f7fbfd; }

.members-content { min-width: 0; }

.member-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: linear-gradient(180deg, #5da9d4 0%, #2980b8 100%);
  border: 1px solid #246f9e;
  box-shadow: 0 2px 7px rgba(25,79,114,.2);
}
.member-tab {
  min-height: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-right: 1px solid rgba(4,53,89,.42);
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.member-tab:last-child { border-right: 0; }
.member-tab:hover, .member-tab.is-active { background: rgba(3,55,91,.18); }
.member-tab svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.member-tab span { font-size: 13px; font-weight: 700; }

.course-summary {
  margin-top: 22px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: center;
  border: 1px solid #d6dde5;
  background: #fff;
  box-shadow: 0 2px 8px rgba(24,46,69,.06);
}
.course-kicker { margin: 0 0 5px; color: #2f8dc2; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.course-summary h1 { margin: 0; color: #24384c; font-size: clamp(27px, 3vw, 38px); font-weight: 500; }
.course-summary p:not(.course-kicker) { margin: 8px 0 0; max-width: 660px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.progress-copy { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: #5e7082; font-size: 12px; font-weight: 700; }
.progress-copy strong { color: #1e78ae; }
.progress-track { height: 10px; overflow: hidden; border-radius: 999px; background: #e3e9ee; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f2bf23, #e19b06); }

.member-view { margin-top: 20px; }
.lesson-list { display: grid; gap: 16px; }
.lesson-card {
  overflow: hidden;
  border: 1px solid #d6dde5;
  background: #fff;
  box-shadow: 0 2px 8px rgba(24,46,69,.06);
}
.lesson-card-head {
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
  border-bottom: 1px solid #d4d9df;
}
.lesson-number { display: block; margin-bottom: 6px; color: #7a8794; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.lesson-card h2 { margin: 0; color: #394a5b; font-size: clamp(18px, 2vw, 23px); font-weight: 500; line-height: 1.25; }
.lesson-duration { flex: 0 0 auto; padding: 6px 9px; background: #e9f4fa; color: #2477a9; font-size: 11px; font-weight: 800; }
.lesson-card-body {
  min-height: 130px;
  padding: 25px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.lesson-play {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef2f4;
  color: #8da0ad;
  font-size: 25px;
  padding-left: 4px;
}
.lesson-body-copy { flex: 1; }
.lesson-body-copy p { margin: 0 0 12px; color: #718090; font-size: 13px; line-height: 1.55; }
.lesson-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  background: linear-gradient(180deg, #f0c12a 0%, #d99700 100%);
  color: #102c52;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.lesson-action:hover { filter: brightness(1.04); }
.lesson-meta {
  min-height: 48px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid #d3e5ed;
  background: #e8f6fc;
  color: #4782a4;
  font-size: 11px;
  font-weight: 700;
}

.empty-panel {
  min-height: 330px;
  padding: 50px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6dde5;
  background: #fff;
  text-align: center;
}
.empty-icon { font-size: 44px; }
.empty-panel h2 { margin: 15px 0 8px; color: #31485d; font-size: 27px; font-weight: 500; }
.empty-panel p { max-width: 560px; margin: 0; color: #718090; font-size: 14px; line-height: 1.55; }

.members-footer {
  padding: 26px 18px 28px;
  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: #345473; text-decoration: none; font-size: 12px; font-weight: 700; }
.members-footer p { margin: 12px 0 0; color: #718090; font-size: 11px; }

@media (max-width: 980px) {
  .members-main { grid-template-columns: 1fr; }
  .members-sidebar { grid-template-columns: 1fr 1fr; }
  .course-summary { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .members-header-inner { min-height: 74px; width: min(100% - 20px, 1380px); }
  .members-logo img { width: min(245px, 62vw); }
  .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; }
  .member-tabs { grid-template-columns: repeat(2, 1fr); }
  .member-tab { min-height: 82px; border-bottom: 1px solid rgba(4,53,89,.42); }
  .member-tab:nth-child(2) { border-right: 0; }
  .member-tab:nth-child(3), .member-tab:nth-child(4) { border-bottom: 0; }
  .member-tab svg { width: 28px; height: 28px; }
  .course-summary { margin-top: 16px; padding: 19px 17px; }
  .lesson-card-head { padding: 17px; }
  .lesson-card-body { min-height: 0; padding: 20px 17px; align-items: flex-start; }
  .lesson-play { width: 44px; height: 44px; flex-basis: 44px; font-size: 20px; }
}

@media (max-width: 460px) {
  .course-select { min-height: 68px; }
  .course-select-copy strong { font-size: 15px; }
  .lesson-card-head { flex-direction: column; }
  .lesson-duration { align-self: flex-start; }
  .lesson-card-body { gap: 13px; }
}


/* Final111 support section */
.course-select-copy strong { font-size: 17px; font-weight: 600; }
.sidebar-support .support-link {
  width: 100%;
  display: block;
  padding: 13px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: #35516c;
  text-align: left;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.sidebar-support .support-link:last-child { border-bottom: 0; }
.sidebar-support .support-link:hover { color: #0c69a4; background: #f7fbfd; }
.sidebar-support .support-link.is-active { background: #eef8fd; color: #0c69a4; box-shadow: inset 4px 0 0 #2b84bd; }

.support-panel {
  border: 1px solid #d6dde5;
  background: #fff;
  box-shadow: 0 2px 8px rgba(24,46,69,.06);
}
.support-panel-head {
  padding: 22px 24px 14px;
  border-bottom: 1px solid #dfe6ed;
  background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
}
.support-kicker {
  display: block;
  margin-bottom: 6px;
  color: #2f8dc2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}
.support-panel-head h2 {
  margin: 0;
  color: #31485d;
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 500;
}
.support-panel-body {
  padding: 24px;
  color: #5e7082;
  font-size: 14px;
  line-height: 1.7;
}
.support-panel-body p { margin: 0 0 16px; }
.support-callout {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid #d5e5ef;
  background: #eef8fd;
}
.support-callout strong {
  display: block;
  margin-bottom: 6px;
  color: #35516c;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.support-callout a {
  color: #0c69a4;
  font-size: 20px;
  font-weight: 700;
  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: 13px;
}
