/* Members area, built on the site design system */
body.members { min-height: 100vh; background:
  radial-gradient(ellipse 70% 50% at 80% -10%, rgba(29, 61, 71, .55), transparent 70%), var(--bg); }
.m-head { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px var(--pad); background: rgba(9, 19, 23, .85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.m-head nav { display: flex; align-items: center; gap: 30px; }
.m-head nav a { font: 500 13px/1 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.m-head nav a.active, .m-head nav a:hover { color: var(--gold); }
.m-main { padding: 60px var(--pad) 110px; max-width: 1500px; margin: 0 auto; }

/* auth */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 160px); gap: 0; margin: -60px calc(var(--pad) * -1) 0; }
.auth .art { position: relative; overflow: hidden; }
.auth .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.auth .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 19, 23, .1), var(--bg)); }
.auth .art .quote { position: absolute; left: var(--pad); bottom: 60px; z-index: 2; max-width: 420px; }
.auth .art .quote p { font: 600 34px/1.1 var(--display); text-transform: uppercase; margin: 16px 0 0; }
.auth form { align-self: center; width: min(460px, 86%); margin: 60px auto; }
.auth h1 { font-size: 46px; text-transform: uppercase; line-height: 1; margin: 18px 0 10px; }
.auth .switch { margin-top: 22px; background: none; border: 0; color: var(--gold); cursor: pointer; font: 15px var(--sans); padding: 0; text-decoration: underline; text-underline-offset: 4px; }
.auth .note { color: var(--muted); font-size: 14px; margin-top: 18px; }
.auth .btn-ignite { width: 100%; justify-content: center; margin-top: 8px; }

/* dashboard */
.dash-head { display: grid; gap: 14px; margin-bottom: 50px; }
.dash-head h1 { font-size: clamp(36px, 4.5vw, 62px); text-transform: uppercase; line-height: 1; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 26px; margin-bottom: 70px; }
.c-card { position: relative; background: var(--surface); border: 1px solid rgba(255, 255, 255, .05); overflow: hidden; display: flex; flex-direction: column; transition: border-color .4s, transform .4s var(--ease); }
.c-card:hover { border-color: var(--line); transform: translateY(-3px); }
.c-card .cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.c-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.c-card .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--surface), transparent 60%); }
.c-card .tag { position: absolute; top: 16px; left: 16px; z-index: 2; font: 600 11px/1 var(--display); letter-spacing: .24em; text-transform: uppercase; padding: 8px 12px; background: rgba(9, 19, 23, .8); border: 1px solid var(--line); color: var(--gold); }
.c-card .body { padding: 26px 28px 30px; display: grid; gap: 12px; flex: 1; }
.c-card h3 { font-size: 26px; text-transform: uppercase; line-height: 1.05; }
.c-card p { margin: 0; color: var(--muted); font-size: 15px; }
.c-card .foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: auto; padding-top: 12px; flex-wrap: wrap; }
.c-card .foot .btn-ignite, .c-card .foot .btn-line { white-space: nowrap; }

/* continue where you left off */
.resume { display: grid; grid-template-columns: minmax(260px, 460px) 1fr; margin-bottom: 60px; text-decoration: none; background: var(--surface);
  border: 1px solid var(--line); transition: border-color .4s, transform .4s var(--ease); }
.resume:hover { border-color: var(--gold); transform: translateY(-3px); }
.resume .r-img { position: relative; aspect-ratio: 16 / 9; background: #050b0d; overflow: hidden; }
.resume .r-img img { width: 100%; height: 100%; object-fit: cover; }
.resume .r-body { padding: clamp(24px, 3vw, 44px); display: grid; gap: 14px; align-content: center; justify-items: start; }
.resume .r-num { font: 600 13px/1.4 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.resume h2 { font-size: clamp(26px, 3vw, 40px); text-transform: uppercase; line-height: 1.05; }
.resume .btn-ignite { margin-top: 8px; }

/* sign-up confirmation: 18+ and the terms */
.auth .agree { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 14px; font-size: 15px; color: var(--muted); cursor: pointer; }
.auth .agree input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); flex: none; }
.auth .agree a, .auth .note a { color: var(--gold); text-underline-offset: 4px; }
.progress { height: 3px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.progress i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--gold), var(--gold-l)); box-shadow: 0 0 10px var(--gold); }
.p-label { font: 600 12px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.c-card .btn-ignite { padding: 14px 22px; font-size: 12px; }
.locked .cover img { filter: grayscale(.6) brightness(.6); }
.pending-note { font-size: 14px; color: var(--gold-l); }

/* course player */
.player { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: start; }
.side { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; border: 1px solid var(--line); background: rgba(16, 35, 42, .6); }
.side .ctitle { padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.side .ctitle h2 { font-size: 20px; text-transform: uppercase; line-height: 1.15; margin-bottom: 12px; }
.side .chap { padding: 16px 22px 6px; font: 600 12px/1.3 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.side a { display: grid; grid-template-columns: 22px 46px 1fr; gap: 8px; align-items: start; padding: 11px 22px; text-decoration: none; color: var(--muted); font-size: 15px; border-left: 2px solid transparent; }
.side a:hover { background: rgba(255, 255, 255, .03); color: var(--text); }
.side a.current { color: var(--text); border-left-color: var(--gold); background: rgba(216, 169, 95, .07); }
.side a .chk { width: 16px; height: 16px; border: 1px solid var(--line); border-radius: 50%; margin-top: 3px; display: grid; place-items: center; font-size: 10px; }
.side a.done .chk { background: var(--gold); border-color: var(--gold); color: #111; }
.side a .n { font: 600 13px/1.6 var(--display); color: var(--gold); }
.side a .lock { opacity: .5; }
.side .locked-ch { padding: 4px 22px 14px 52px; color: var(--muted); font-size: 14px; }
.side .locked-ch .lock { opacity: .6; margin-right: 4px; }
.side .locked-ch small { display: block; margin-top: 6px; font-size: 13px; line-height: 1.5; opacity: .8; }
.stage-box { min-width: 0; }
.video-box { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); }
.video-box video { width: 100%; height: 100%; }
.video-box video::cue { background: rgba(8, 14, 18, .72); color: #f2ebdf; font-family: "Segoe UI", sans-serif; line-height: 1.35; }
.video-box .empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; color: var(--muted);
  background: radial-gradient(ellipse at center, rgba(29, 61, 71, .6), #050b0d); }
.video-box .empty b { display: block; font: 600 22px/1.2 var(--display); text-transform: uppercase; color: var(--text); margin-bottom: 10px; }
.lesson-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; margin: 30px 0 18px; flex-wrap: wrap; }
.lesson-meta h1 { font-size: clamp(28px, 3vw, 42px); text-transform: uppercase; line-height: 1.05; }
.lesson-meta .num { font: 600 14px/1 var(--display); letter-spacing: .26em; color: var(--gold); }
.lesson-desc { color: var(--muted); font-size: 18px; max-width: 760px; }
.done-btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer;
  font: 600 12px/1 var(--display); letter-spacing: .22em; text-transform: uppercase; transition: all .3s; }
.done-btn::before { content: ""; width: 14px; height: 14px; border: 1px solid var(--gold); border-radius: 50%; }
.done-btn.on { border-color: var(--gold); color: var(--gold); }
.done-btn.on::before { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.pager { display: flex; justify-content: space-between; gap: 20px; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); }

/* account */
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.panel { border: 1px solid var(--line); background: rgba(16, 35, 42, .55); padding: 34px; }
.panel h2 { font-size: 22px; text-transform: uppercase; margin-bottom: 24px; }
.panel .btn-ignite { padding: 15px 24px; font-size: 12px; }
.orders { width: 100%; border-collapse: collapse; font-size: 15px; }
.orders td, .orders th { text-align: left; padding: 12px 8px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.orders th { font: 600 11px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.st { font: 600 11px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--line); }
.st.approved { color: #9fd6b0; border-color: rgba(159, 214, 176, .4); }
.st.pending { color: var(--gold-l); }
.st.rejected { color: #ef9a7c; border-color: rgba(239, 154, 124, .4); }

@media (max-width: 980px) {
  .auth { grid-template-columns: 1fr; }
  .auth .art { min-height: 260px; }
  .player { grid-template-columns: 1fr; }
  .side { position: relative; top: 0; max-height: 380px; order: 2; }
  .acc-grid { grid-template-columns: 1fr; }
  .resume { grid-template-columns: 1fr; }
  .m-head nav { gap: 16px; }
  .m-head nav a { font-size: 11px; letter-spacing: .14em; }
}
