/* GreyHatAlley member portal — same palette as the landing (bg #0a0a0a, accent #d4ff3d). */
@font-face { font-family: "Inter Tight"; font-weight: 700; font-display: swap; src: url("/assets/fonts/inter-tight-700-normal-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 800; font-display: swap; src: url("/assets/fonts/inter-tight-800-normal-latin.woff2") format("woff2"); }
:root {
  --bg: #0a0a0a; --bg-soft: #0f0f0f; --panel: #121212; --line: rgba(255,255,255,.08);
  --text: #fafafa; --dim: #8a8a8a; --accent: #d4ff3d; --red: #ff6b6b; --ok: #3ddc84;
  --display: "Inter Tight", -apple-system, "Inter", "Segoe UI", sans-serif;
  --body: -apple-system, "Inter", "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* top bar */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; height: 60px; background: rgba(10,10,10,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -.04em; text-decoration: none; }
.brand .roi { color: var(--accent); }
.top-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 0; font-weight: 600; font-size: 14px; text-decoration: none; background: var(--accent); color: #0a0a0a; transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* full-screen states */
.screen { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 40px 20px; text-align: center; }
.screen .box { max-width: 440px; }
.screen h1 { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -.03em; margin: 0 0 10px; }
.screen p { color: var(--dim); margin: 0 0 22px; }
.screen .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* preview banner */
.preview-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: center; padding: 10px 20px; background: rgba(212,255,61,.08); border-bottom: 1px solid rgba(212,255,61,.2); font-size: 13px; }
.preview-bar b { color: var(--accent); }

/* layout */
.layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: calc(100vh - 60px); }
.side { border-right: 1px solid var(--line); background: var(--bg-soft); padding: 18px 14px 90px; }
.content { padding: 24px 28px 110px; min-width: 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tab-btn { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--dim); font-size: 13px; font-weight: 600; }
.tab-btn.is-active { background: var(--text); color: #0a0a0a; border-color: var(--text); }

/* lesson list */
.module { margin-bottom: 16px; }
.module-h { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 6px 10px; }
.lesson { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 10px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text); }
.lesson:hover { background: rgba(255,255,255,.04); }
.lesson.is-active { background: var(--panel); border-color: var(--line); }
.lesson .num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.06); color: var(--dim); }
.lesson.is-done .num { background: rgba(61,220,132,.16); color: var(--ok); }
.lesson.is-active .num { background: var(--accent); color: #0a0a0a; }
.lesson .t { font-size: 14px; font-weight: 600; line-height: 1.3; }
.lesson .d { font-size: 12px; color: var(--dim); }
.lesson.is-locked { opacity: .55; }
.lesson.is-locked .d::after { content: " · locked"; }

/* player */
.stage { position: relative; background: #000; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; max-height: 72vh; border: 1px solid var(--line); }
.stage video { width: 100%; height: 100%; display: block; background: #000; }
.wm { position: absolute; left: 6%; top: 8%; z-index: 5; pointer-events: none; user-select: none; font: 600 12px/1 ui-monospace, Menlo, monospace; color: rgba(255,255,255,.55); text-shadow: 0 0 6px rgba(0,0,0,.8); padding: 6px 9px; border-radius: 6px; background: rgba(0,0,0,.25); transition: left 1.2s ease, top 1.2s ease; white-space: nowrap; }
.wm-center { position: absolute; inset: 0; z-index: 4; pointer-events: none; display: grid; place-items: center; font: 800 clamp(18px, 4vw, 42px)/1 var(--display); color: rgba(255,255,255,.045); letter-spacing: -.03em; transform: rotate(-18deg); white-space: nowrap; }
.stage-cover { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; text-align: center; padding: 24px; background: rgba(10,10,10,.82); backdrop-filter: blur(6px); }
.stage-cover .box { max-width: 380px; }
.stage-cover h3 { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.03em; margin: 0 0 8px; }
.stage-cover p { color: var(--dim); margin: 0 0 16px; font-size: 14px; }
.lesson-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; margin-top: 18px; }
.eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.lesson-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3vw, 32px); letter-spacing: -.03em; margin: 0; line-height: 1.1; }
.meta { color: var(--dim); font-size: 13px; margin-top: 6px; }
.lesson-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.is-done { background: rgba(61,220,132,.16); color: var(--ok); }

/* cards (documents / theme / community) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; margin: 0; }
.card p { margin: 0; color: var(--dim); font-size: 13.5px; flex: 1; }
.card .row { display: flex; gap: 8px; flex-wrap: wrap; }
.section-h { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.03em; margin: 0 0 6px; }
.section-p { color: var(--dim); margin: 0 0 20px; max-width: 60ch; }
.note { font-size: 13px; color: var(--dim); margin-top: 14px; }
.lock-note { display: inline-flex; gap: 8px; align-items: center; color: var(--dim); font-size: 13px; }

/* bottom nav (mobile) */
.bottom-nav { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(10,10,10,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
.bottom-nav button { flex: 1; background: transparent; border: 0; color: var(--dim); font-size: 11px; font-weight: 600; padding: 8px 4px; border-radius: 10px; }
.bottom-nav button.is-active { color: var(--accent); background: rgba(212,255,61,.08); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 40; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 13px; transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .side { border-right: 0; border-top: 1px solid var(--line); order: 2; padding-bottom: 100px; }
  .side .tabs { display: none; }
  .content { padding: 16px 16px 24px; }
  .bottom-nav { display: flex; }
  .stage { border-radius: 12px; }
  .top { padding: 0 16px; }
  .pill { max-width: 160px; }
}
@media (prefers-reduced-motion: reduce) { .wm { transition: none; } .btn:hover { transform: none; } }
