:root {
  color-scheme: dark;
  --black: #080a0d;
  --ink: #0d1117;
  --panel: #141922;
  --panel-2: #1b222d;
  --panel-3: #222b38;
  --red: #0aaee8;
  --gold: #4bc0ee;
  --cyan: #4bc0ee;
  --electric: #00b8f0;
  --blue: #075ea6;
  --deep-blue: #03396f;
  --green: #2fbf71;
  --amber: #f2b84b;
  --text: #f4f1ea;
  --muted: #9ba6b6;
  --faint: #667284;
  --line: rgba(244, 241, 234, 0.12);
  --line-strong: rgba(214, 168, 79, 0.32);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, transparent 0 72%, rgba(75, 192, 238, 0.14) 72% 73%, transparent 73%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--black);
  background-size: auto, 44px 44px, 44px 44px, auto;
  color: var(--text);
  font-family: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(transparent 0 48%, rgba(75, 192, 238, 0.055) 50%, transparent 52%),
    radial-gradient(circle at 18% 12%, rgba(75, 192, 238, 0.14), transparent 28%),
    radial-gradient(circle at 78% 84%, rgba(7, 94, 166, 0.18), transparent 32%);
  background-size: 100% 7px, auto, auto;
  mix-blend-mode: screen;
  opacity: 0.72;
  z-index: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  z-index: 1;
}

.auth-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 430px);
}

.auth-hero {
  position: relative;
  min-width: 0;
  padding: 28px;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(260px, 0.82fr);
  align-content: start;
  gap: 18px;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.auth-topline,
.brand-row,
.panel-head,
.topbar,
.topbar-actions,
.lesson-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-topline span,
.brand-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(3, 7, 12, 0.72);
  box-shadow: 0 0 34px rgba(72, 191, 238, 0.12);
  overflow: hidden;
}

.brand-mark img {
  width: 74%;
  height: 74%;
  object-fit: contain;
  display: block;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 860px;
}

.hero-copy h1 {
  margin: 12px 0 12px;
  max-width: 820px;
  font-size: clamp(42px, 5vw, 78px);
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy p:not(.eyebrow),
.panel-copy,
.muted-text {
  color: var(--muted);
  line-height: 1.58;
}

.hero-copy p:not(.eyebrow) {
  max-width: 760px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.proof-strip span {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  color: var(--muted);
  border: 1px solid rgba(75, 192, 238, 0.22);
  background: rgba(7, 94, 166, 0.08);
  font-size: 12px;
  font-weight: 850;
}

.proof-strip b {
  color: var(--cyan);
  font-size: 20px;
}

.academy-signal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 16px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(75, 192, 238, 0.3);
  background:
    linear-gradient(90deg, rgba(75, 192, 238, 0.12), transparent 52%),
    rgba(8, 13, 18, 0.82);
}

.academy-signal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 24%, rgba(75, 192, 238, 0.16) 24.4% 24.8%, transparent 25.2%),
    linear-gradient(0deg, transparent 0 48%, rgba(75, 192, 238, 0.06) 49%, transparent 50%);
  background-size: 140px 100%, 100% 16px;
  opacity: 0.7;
}

.academy-signal > * {
  position: relative;
  z-index: 1;
}

.academy-signal h2 {
  margin: 8px 0 0;
  max-width: 520px;
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.02;
  text-transform: uppercase;
}

.signal-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-content: center;
}

.signal-flow span {
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 10px;
  color: var(--text);
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  border: 1px solid rgba(75, 192, 238, 0.3);
  background: rgba(75, 192, 238, 0.08);
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.entry-grid article {
  position: relative;
  min-height: 160px;
  padding: 16px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(75, 192, 238, 0.14), transparent 54%),
    rgba(10, 14, 20, 0.78);
  border: 1px solid rgba(75, 192, 238, 0.28);
}

.entry-grid article::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -28px;
  width: 116px;
  height: 116px;
  background: url("assets/traderkartell-logo.png") center / contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
}

.entry-grid span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  color: #061017;
  background: var(--cyan);
  font-weight: 950;
}

.entry-grid strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  text-transform: uppercase;
}

.entry-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}

.entry-grid small {
  display: block;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(75, 192, 238, 0.16);
  color: rgba(244, 241, 234, 0.72);
  line-height: 1.4;
  font-size: 12px;
}

.market-console,
.video-placeholder,
.example-visual {
  position: relative;
  overflow: hidden;
  background: #0c1016;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.market-console {
  min-height: 285px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}

.market-console::before,
.video-placeholder::before,
.war-room::before,
.lesson-main::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border: 1px solid rgba(75, 192, 238, 0.34);
  box-shadow:
    0 0 28px rgba(75, 192, 238, 0.12),
    inset 0 0 46px rgba(7, 94, 166, 0.12);
}

.market-console::after,
.video-placeholder::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 92px;
  height: 92px;
  background: url("assets/traderkartell-logo.png") center / contain no-repeat;
  opacity: 0.14;
  filter: saturate(1.35);
  pointer-events: none;
}

.market-console canvas,
.video-placeholder canvas,
.example-visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
}

.console-header,
.console-ticket,
.video-meta,
.example-tag {
  position: absolute;
  background: rgba(8, 10, 13, 0.86);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
}

.console-header {
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 12px;
}

.console-header strong,
.console-ticket strong,
.video-meta strong {
  color: var(--text);
}

.console-ticket {
  left: 18px;
  bottom: 18px;
  width: min(360px, calc(100% - 36px));
  padding: 14px;
  border-left: 3px solid var(--red);
}

.console-ticket span,
.video-meta span {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.console-ticket small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.login-panel {
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow: auto;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  background: rgba(20, 25, 34, 0.94);
  border-left: 4px solid rgba(75, 192, 238, 0.78);
}

.upload-rule,
.png-only-badge {
  padding: 8px 10px;
  border: 1px solid rgba(75, 192, 238, 0.24);
  background: rgba(75, 192, 238, 0.07);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 850;
}

.upload-rule {
  margin: -2px 0 4px;
  color: var(--muted);
  line-height: 1.45;
}

.png-only-badge {
  white-space: nowrap;
  align-self: flex-start;
}

.login-panel h2,
.topbar h2,
.war-room h3,
.lesson-main h3,
.lesson-side h3,
.pipeline-grid h3,
.vault-grid h3 {
  margin: 8px 0 0;
  font-size: 29px;
  line-height: 1.05;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  background: #0c1016;
  color: var(--text);
  outline: 0;
}

input[type="file"] {
  padding: 12px;
  border-style: dashed;
  background: rgba(75, 192, 238, 0.055);
  color: var(--cyan);
}

textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  background: #0c1016;
  color: var(--text);
  outline: 0;
  resize: vertical;
}

input:focus {
  border-color: var(--gold);
}

textarea:focus,
select:focus {
  border-color: var(--cyan);
}

.login-panel button,
.primary-action,
.secondary-action {
  min-height: 44px;
  border: 1px solid transparent;
  padding: 0 16px;
  color: white;
  font-weight: 950;
}

.login-panel button,
.primary-action {
  background: var(--red);
}

.secondary-action {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--gold);
}

.terms-box {
  max-height: 150px;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(75, 192, 238, 0.24);
  background: rgba(12, 16, 22, 0.78);
}

.terms-box h3 {
  margin: 6px 0 8px;
  font-size: 18px;
}

.terms-box ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.38;
  font-size: 13px;
}

.privacy-check {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(75, 192, 238, 0.24);
  background: rgba(75, 192, 238, 0.06);
  line-height: 1.35;
  font-size: 12px;
}

.privacy-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.account-card strong {
  color: var(--cyan);
}

.member-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
}

.sidebar {
  min-height: 100vh;
  position: sticky;
  top: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background:
    linear-gradient(180deg, rgba(75, 192, 238, 0.08), transparent 32%),
    rgba(10, 13, 18, 0.96);
  border-right: 1px solid var(--line);
}

.sidebar::before {
  content: "";
  display: none;
}

.sidebar-watermark {
  position: absolute;
  right: -38px;
  bottom: 120px;
  color: rgba(214, 168, 79, 0.08);
  font-size: 58px;
  font-weight: 950;
  transform: rotate(-90deg);
  pointer-events: none;
  user-select: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item,
.logout {
  min-height: 46px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 0 12px;
  font-weight: 800;
}

.nav-item.is-active {
  border-color: rgba(75, 192, 238, 0.55);
  color: var(--text);
  background: linear-gradient(90deg, rgba(75, 192, 238, 0.18), rgba(7, 94, 166, 0.08));
  box-shadow: inset 3px 0 0 var(--cyan), 0 0 28px rgba(75, 192, 238, 0.08);
}

.rank-card {
  margin-top: auto;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.rank-card span,
.rank-card small,
.metric span,
.metric small {
  display: block;
  color: var(--muted);
}

.rank-card strong,
.metric strong {
  display: block;
  margin: 8px 0;
}

.logout {
  margin-top: 0;
  color: var(--red);
}

.workspace {
  position: relative;
  min-width: 0;
  padding: 26px;
  overflow: hidden;
}

.workspace::before {
  content: "";
  position: fixed;
  inset: 0 0 0 292px;
  pointer-events: none;
  background:
    linear-gradient(118deg, transparent 0 62%, rgba(75, 192, 238, 0.055) 62% 63%, transparent 63%),
    linear-gradient(22deg, transparent 0 74%, rgba(0, 184, 240, 0.08) 74% 75%, transparent 75%);
  z-index: 0;
}

.workspace-watermark {
  position: fixed;
  right: 38px;
  bottom: 26px;
  width: min(42vw, 420px);
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}

.workspace > *:not(.workspace-watermark) {
  position: relative;
  z-index: 1;
}

.view-section {
  position: relative;
}

.view-section::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 86px;
  width: min(24vw, 260px);
  height: min(24vw, 260px);
  background: url("assets/traderkartell-logo.png") center / contain no-repeat;
  opacity: 0.022;
  pointer-events: none;
  z-index: 0;
}

.view-section > * {
  position: relative;
  z-index: 1;
}

.topbar {
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-pill {
  padding: 9px 11px;
  color: var(--cyan);
  border: 1px solid rgba(75, 192, 238, 0.45);
  background: rgba(75, 192, 238, 0.09);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.muted {
  color: var(--text);
  border-color: rgba(7, 94, 166, 0.55);
  background: rgba(7, 94, 166, 0.16);
}

.view-section {
  padding-top: 22px;
}

.command-layout,
.lesson-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.65fr);
  gap: 16px;
}

.lesson-stage {
  grid-template-columns: minmax(0, 1fr);
}

.war-room,
.ops-stack article,
.pipeline-grid article,
.season-card,
.lesson-main,
.lesson-side article,
.example-card,
.vault-grid article {
  min-width: 0;
  background: rgba(20, 25, 34, 0.94);
  border: 1px solid var(--line);
  padding: 18px;
}

.war-room,
.lesson-main {
  border-top: 4px solid rgba(75, 192, 238, 0.82);
}

.panel-head {
  justify-content: space-between;
}

.episode-code {
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  color: var(--gold);
  background: rgba(214, 168, 79, 0.08);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.war-room h4 {
  margin: 18px 0 8px;
  font-size: 44px;
  line-height: 1;
  text-transform: uppercase;
}

.war-room p,
.season-card p,
.lesson-main p,
.caption-line,
.vault-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.video-placeholder {
  height: 330px;
  margin-top: 18px;
}

.video-placeholder.large {
  height: min(62vh, 620px);
  min-height: 420px;
}

.video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: #05070a;
  z-index: 1;
}

.play-button {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border: 1px solid var(--line-strong);
  background: rgba(75, 192, 238, 0.16);
  color: var(--cyan);
  font-size: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.video-meta {
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  z-index: 3;
}

.lesson-actions {
  margin-top: 14px;
  flex-wrap: wrap;
}

.ops-stack,
.lesson-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.metric strong {
  font-size: 28px;
}

.pipeline-grid,
.season-grid,
.gallery-feed,
.vault-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.season-grid {
  grid-template-columns: 1fr;
}

.course-intro {
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(75, 192, 238, 0.14), transparent 44%),
    rgba(20, 25, 34, 0.94);
  border: 1px solid rgba(75, 192, 238, 0.26);
}

.course-intro h3 {
  margin: 8px 0 14px;
  max-width: 980px;
  font-size: 34px;
  line-height: 1.08;
  text-transform: uppercase;
}

.course-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.course-steps span {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(75, 192, 238, 0.22);
  background: rgba(12, 16, 22, 0.82);
  color: var(--muted);
  font-weight: 800;
}

.course-steps b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--cyan);
  color: #03111b;
}

.vault-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.check-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.5;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  background: var(--gold);
}

.release-lines,
.slot-list,
.script-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.release-lines span,
.slot-list span,
.script-grid span {
  padding: 11px;
  background: #0c1016;
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.45;
}

.release-lines b,
.script-grid b {
  color: var(--text);
  display: block;
  margin-bottom: 5px;
}

.lesson-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.under-video {
  margin-top: 16px;
  background:
    linear-gradient(135deg, rgba(75, 192, 238, 0.08), transparent 38%),
    rgba(20, 25, 34, 0.94);
  border: 1px solid rgba(75, 192, 238, 0.22);
  padding: 18px;
}

.under-video h3 {
  margin: 8px 0 0;
  font-size: 28px;
}

.under-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.under-video-card {
  min-width: 0;
  background: #0c1016;
  border: 1px solid var(--line);
  padding: 12px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.under-video-card:hover,
.example-card:hover,
.season-card:hover {
  transform: translateY(-2px);
  border-color: rgba(75, 192, 238, 0.48);
  box-shadow: 0 22px 60px rgba(0, 184, 240, 0.10);
}

.under-video-card p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.under-video-card b {
  color: var(--text);
}

.case-code {
  padding: 8px;
  border: 1px solid rgba(75, 192, 238, 0.24);
  background: rgba(75, 192, 238, 0.07);
}

.case-photo {
  position: relative;
  height: 150px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #090b0f;
}

.case-photo::after,
.example-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0 70%, rgba(0, 184, 240, 0.15));
}

.case-photo canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.case-photo img,
.example-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-photo span {
  position: absolute;
  left: 9px;
  top: 9px;
  padding: 6px 8px;
  background: rgba(8, 10, 13, 0.86);
  border-left: 3px solid var(--gold);
  color: var(--text);
  font-size: 11px;
  font-weight: 950;
}

.bar {
  height: 8px;
  background: #0c1016;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.season-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.season-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--gold);
}

.season-2::after {
  background: var(--red);
}

.season-3::after {
  background: var(--green);
}

.season-4::after {
  background: var(--amber);
}

.season-card h3 {
  margin: 8px 0;
  font-size: 28px;
}

.season-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 13px;
}

.lesson-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.lesson-row {
  width: 100%;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #0c1016;
  color: var(--muted);
  text-align: left;
}

.lesson-row:hover {
  border-color: rgba(75, 192, 238, 0.48);
  background: rgba(75, 192, 238, 0.07);
}

.lesson-row strong {
  color: var(--gold);
}

.lesson-row span small {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  line-height: 1.35;
}

.lesson-row em {
  color: var(--faint);
  font-style: normal;
  font-size: 12px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-chip {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  padding: 10px 12px;
  font-weight: 800;
}

.filter-chip.is-active {
  border-color: rgba(75, 192, 238, 0.55);
  color: var(--text);
  background: rgba(75, 192, 238, 0.10);
}

.gallery-feed {
  margin-top: 0;
}

.example-visual {
  height: 230px;
  box-shadow: none;
}

.example-tag {
  top: 10px;
  left: 10px;
  padding: 7px 9px;
  border-left: 3px solid var(--gold);
  font-size: 11px;
  font-weight: 950;
}

.caption-line {
  margin: 10px 0 0;
  font-size: 14px;
}

.caption-line b {
  color: var(--text);
}

.image-slot-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.image-slot-row span {
  padding: 9px 8px;
  background: rgba(214, 168, 79, 0.08);
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.upload-zone {
  min-height: 170px;
  margin-top: 14px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  background: rgba(214, 168, 79, 0.05);
  color: var(--gold);
  font-weight: 900;
  text-align: center;
  padding: 18px;
}

.admin-nav {
  border-color: rgba(75, 192, 238, 0.18);
  color: var(--cyan);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 16px;
}

.admin-panel {
  min-width: 0;
  background: rgba(15, 23, 34, 0.96);
  border: 1px solid rgba(75, 192, 238, 0.22);
  padding: 18px;
  box-shadow: 0 22px 70px rgba(0, 184, 240, 0.06);
}

.studio-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  padding: 22px;
  margin-bottom: 16px;
  background:
    linear-gradient(135deg, rgba(75, 192, 238, 0.16), transparent 42%),
    rgba(15, 23, 34, 0.96);
  border: 1px solid rgba(75, 192, 238, 0.26);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.studio-hero h3 {
  margin: 8px 0;
  font-size: 36px;
  text-transform: uppercase;
}

.studio-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.studio-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.studio-tabs button {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(75, 192, 238, 0.24);
  background: rgba(12, 16, 22, 0.88);
  color: var(--muted);
  font-weight: 900;
}

.studio-tabs button.is-active {
  color: var(--text);
  background: rgba(75, 192, 238, 0.14);
  border-color: rgba(75, 192, 238, 0.58);
  box-shadow: 0 0 28px rgba(75, 192, 238, 0.12);
}

.studio-panel {
  margin-bottom: 16px;
}

.nav-editor {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.nav-edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
  background: #0c1016;
  border: 1px solid var(--line);
}

.nav-edit-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.nav-system-note {
  margin: 0;
  color: var(--faint);
  line-height: 1.45;
  align-self: end;
}

.nav-row-actions {
  display: flex;
  gap: 6px;
}

.nav-row-actions button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(75, 192, 238, 0.34);
  background: rgba(75, 192, 238, 0.08);
  color: var(--cyan);
  font-weight: 950;
}

.toggle-line {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
}

.toggle-line input {
  width: auto;
}

.compact-season-form {
  margin: 14px 0;
}

.admin-panel h3 {
  margin: 8px 0 0;
  font-size: 28px;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.wide-field {
  grid-column: 1 / -1;
}

.admin-lesson-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.admin-lesson-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #0c1016;
  border: 1px solid var(--line);
}

.admin-lesson-row span {
  color: var(--muted);
  line-height: 1.35;
}

.admin-lesson-row input,
.admin-lesson-row textarea {
  margin-top: 6px;
}

.admin-lesson-row b {
  display: block;
  color: var(--cyan);
  margin-bottom: 4px;
}

.admin-lesson-row button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(75, 192, 238, 0.34);
  background: rgba(75, 192, 238, 0.08);
  color: var(--cyan);
  font-weight: 950;
}

.admin-examples {
  margin-top: 16px;
}

.admin-example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.admin-example-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #0c1016;
  border: 1px solid var(--line);
}

.admin-lock {
  max-width: 520px;
  margin: 8vh auto;
  display: grid;
  gap: 16px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(75, 192, 238, 0.16), transparent 44%),
    rgba(15, 23, 34, 0.98);
  border: 1px solid rgba(75, 192, 238, 0.36);
  box-shadow: 0 28px 90px rgba(0, 184, 240, 0.12);
}

.admin-lock h3 {
  margin: 0;
  font-size: 34px;
  text-transform: uppercase;
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
}

.community-board,
.community-form,
.community-card {
  min-width: 0;
  background: rgba(20, 25, 34, 0.94);
  border: 1px solid rgba(75, 192, 238, 0.22);
  padding: 18px;
}

#communityFeed,
.community-admin-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.community-card h3 {
  margin: 8px 0 0;
  font-size: 26px;
}

.community-card p {
  color: var(--muted);
  line-height: 1.6;
}

.community-card b {
  color: var(--text);
}

.community-card img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border: 1px solid var(--line);
  margin-top: 12px;
}

.community-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.community-feed-list {
  display: grid;
  gap: 14px;
}

.community-meta,
.community-actions,
.comment-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.community-meta span {
  padding: 7px 9px;
  border: 1px solid rgba(75, 192, 238, 0.22);
  background: rgba(75, 192, 238, 0.06);
  color: var(--muted);
  font-size: 12px;
}

.community-meta b {
  color: var(--text);
}

.comment-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.comment-list p {
  margin: 0;
  padding: 9px;
  background: #0c1016;
  border-left: 3px solid rgba(75, 192, 238, 0.55);
}

.comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.custom-page-card {
  min-width: 0;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(75, 192, 238, 0.12), transparent 42%),
    rgba(20, 25, 34, 0.94);
  border: 1px solid rgba(75, 192, 238, 0.26);
}

.custom-page-card h3 {
  margin: 8px 0 12px;
  font-size: 40px;
  line-height: 1.05;
  text-transform: uppercase;
}

.custom-page-card p:not(.eyebrow) {
  max-width: 980px;
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-wrap;
}

.media-preview {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border: 1px solid var(--line);
  margin-top: 12px;
  background: #05070a;
}

.is-hidden {
  display: none !important;
}

/* v23 command-grade visual system */
body {
  background:
    linear-gradient(115deg, rgba(0, 184, 240, 0.12) 0 1px, transparent 1px 38%),
    linear-gradient(245deg, rgba(7, 94, 166, 0.18), transparent 46%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 52% -10%, rgba(75, 192, 238, 0.18), transparent 32%),
    #05070a;
  background-size: auto, auto, 38px 38px, 38px 38px, auto, auto;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 9%, rgba(75, 192, 238, 0.045) 9.2% 9.4%, transparent 9.6%),
    linear-gradient(180deg, rgba(255,255,255,0.035), transparent 18%, transparent 78%, rgba(0,0,0,0.42));
  mix-blend-mode: screen;
  z-index: 0;
}

.member-view {
  grid-template-columns: 316px minmax(0, 1fr);
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(75, 192, 238, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(7, 94, 166, 0.16), transparent 46%),
    rgba(5, 8, 13, 0.98);
  border-right: 1px solid rgba(75, 192, 238, 0.28);
  box-shadow: 18px 0 70px rgba(0, 0, 0, 0.42);
}

.brand-row {
  padding: 12px;
  border: 1px solid rgba(75, 192, 238, 0.24);
  background: rgba(75, 192, 238, 0.045);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.nav-list {
  gap: 10px;
  counter-reset: nav-protocol;
}

.nav-item {
  min-height: 58px;
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 14px 0 8px;
  overflow: hidden;
  border-color: rgba(75, 192, 238, 0.14);
  background:
    linear-gradient(90deg, rgba(75, 192, 238, 0.06), transparent 62%),
    rgba(9, 13, 20, 0.78);
  text-transform: uppercase;
  font-size: 13px;
}

.nav-item::before {
  counter-increment: nav-protocol;
  content: counter(nav-protocol, decimal-leading-zero);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(75, 192, 238, 0.28);
  color: var(--cyan);
  background: rgba(75, 192, 238, 0.08);
  font-size: 11px;
}

.nav-item::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  transition: width 180ms ease;
}

.nav-item:hover,
.nav-item.is-active {
  color: var(--text);
  border-color: rgba(75, 192, 238, 0.62);
  background:
    linear-gradient(90deg, rgba(75, 192, 238, 0.22), rgba(7, 94, 166, 0.12)),
    rgba(9, 13, 20, 0.96);
  box-shadow: 0 0 42px rgba(0, 184, 240, 0.12), inset 0 0 34px rgba(75, 192, 238, 0.06);
}

.nav-item.is-active::after {
  width: 4px;
}

.rank-card {
  margin-top: 0;
  background:
    linear-gradient(135deg, rgba(75, 192, 238, 0.12), transparent 45%),
    rgba(9, 13, 20, 0.88);
  border-color: rgba(75, 192, 238, 0.22);
}

.workspace {
  padding: 30px clamp(22px, 3vw, 42px);
}

.workspace::before {
  inset: 0 0 0 316px;
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(75, 192, 238, 0.06) 58.2% 58.45%, transparent 58.7%),
    linear-gradient(24deg, transparent 0 74%, rgba(0, 184, 240, 0.10) 74.2% 74.5%, transparent 74.7%);
}

.topbar {
  min-height: 92px;
  padding: 18px;
  border: 1px solid rgba(75, 192, 238, 0.20);
  background:
    linear-gradient(90deg, rgba(75, 192, 238, 0.10), transparent 42%),
    rgba(8, 12, 18, 0.76);
  backdrop-filter: blur(14px);
}

.topbar h2 {
  font-size: clamp(34px, 4vw, 62px);
  text-transform: uppercase;
}

.status-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}

.course-intro {
  position: relative;
  padding: 22px;
  overflow: hidden;
  border-color: rgba(75, 192, 238, 0.38);
  background:
    linear-gradient(135deg, rgba(75, 192, 238, 0.18), transparent 34%),
    linear-gradient(90deg, rgba(7, 94, 166, 0.18), transparent 64%),
    rgba(8, 12, 18, 0.94);
}

.course-intro::after {
  content: "TRADERKARTELL SYSTEM";
  position: absolute;
  right: 24px;
  bottom: -8px;
  color: rgba(75, 192, 238, 0.08);
  font-size: clamp(42px, 7vw, 104px);
  font-weight: 950;
  pointer-events: none;
}

.course-intro h3 {
  max-width: 980px;
  font-size: clamp(30px, 3.8vw, 56px);
  line-height: 1;
}

.course-steps {
  position: relative;
  z-index: 1;
}

.course-steps span {
  min-height: 58px;
  background: rgba(5, 8, 13, 0.78);
  border-color: rgba(75, 192, 238, 0.34);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.season-grid {
  gap: 22px;
  counter-reset: season-path;
}

.season-card {
  display: grid;
  grid-template-columns: 128px minmax(340px, 0.82fr) minmax(520px, 1.18fr);
  grid-template-areas:
    "orbit head lessons"
    "orbit meta lessons";
  gap: 0;
  padding: 0;
  min-height: 0;
  background:
    linear-gradient(110deg, rgba(75, 192, 238, 0.12), transparent 28%),
    rgba(10, 14, 21, 0.94);
  border-color: rgba(75, 192, 238, 0.26);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}

.season-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(75, 192, 238, 0.08), transparent),
    linear-gradient(180deg, rgba(255,255,255,0.035), transparent 28%);
}

.season-card::after {
  width: 7px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.season-orbit {
  grid-area: orbit;
  position: relative;
  display: grid;
  place-content: center;
  gap: 10px;
  min-height: 100%;
  border-right: 1px solid rgba(75, 192, 238, 0.18);
  background: rgba(75, 192, 238, 0.045);
}

.season-orbit span {
  font-size: 56px;
  font-weight: 950;
  color: rgba(75, 192, 238, 0.9);
  text-shadow: 0 0 34px rgba(75, 192, 238, 0.34);
}

.season-orbit i {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.season-card-head {
  grid-area: head;
  align-self: center;
  padding: 30px 28px 14px;
}

.season-card h3 {
  font-size: clamp(30px, 3vw, 54px);
  line-height: 0.98;
  text-transform: uppercase;
}

.season-meta {
  grid-area: meta;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  align-self: start;
  gap: 10px;
  padding: 0 28px 30px;
}

.season-meta span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid rgba(75, 192, 238, 0.22);
  background: rgba(75, 192, 238, 0.06);
}

.lesson-list {
  grid-area: lessons;
  max-height: 520px;
  overflow: auto;
  padding: 18px;
  border-left: 1px solid rgba(75, 192, 238, 0.20);
  background:
    linear-gradient(180deg, rgba(75, 192, 238, 0.08), transparent 42%),
    rgba(4, 8, 13, 0.44);
  scrollbar-width: thin;
  scrollbar-color: rgba(75, 192, 238, 0.7) rgba(75, 192, 238, 0.08);
}

.lesson-list::-webkit-scrollbar {
  width: 6px;
}

.lesson-list::-webkit-scrollbar-track {
  background: rgba(75, 192, 238, 0.08);
}

.lesson-list::-webkit-scrollbar-thumb {
  background: rgba(75, 192, 238, 0.72);
}

.lesson-row {
  min-height: 66px;
  grid-template-columns: 92px minmax(0, 1fr) 68px;
  padding: 12px 14px;
  border-color: rgba(75, 192, 238, 0.16);
  background:
    linear-gradient(90deg, rgba(75, 192, 238, 0.07), transparent 42%),
    rgba(5, 8, 13, 0.76);
}

.lesson-row strong {
  color: var(--cyan);
  font-size: 13px;
}

.lesson-row span {
  color: var(--text);
  font-weight: 800;
}

.lesson-row em {
  justify-self: end;
  padding: 7px 9px;
  border: 1px solid rgba(75, 192, 238, 0.28);
  color: var(--cyan);
}

.lesson-row:hover {
  transform: translateX(4px);
  border-color: rgba(75, 192, 238, 0.62);
  box-shadow: -8px 0 0 rgba(75, 192, 238, 0.18), 0 18px 44px rgba(0, 184, 240, 0.12);
}

.lesson-main {
  padding: clamp(18px, 2.2vw, 32px);
  background:
    linear-gradient(135deg, rgba(75, 192, 238, 0.12), transparent 32%),
    rgba(8, 12, 18, 0.95);
  border-color: rgba(75, 192, 238, 0.30);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}

.lesson-main h3 {
  font-size: clamp(30px, 4vw, 64px);
  line-height: 0.98;
  text-transform: uppercase;
}

.video-placeholder.large {
  height: min(68vh, 700px);
  min-height: 460px;
  border-color: rgba(75, 192, 238, 0.32);
}

.play-button {
  background: rgba(0, 184, 240, 0.20);
  border-color: rgba(75, 192, 238, 0.52);
  box-shadow: 0 0 0 12px rgba(75, 192, 238, 0.045), 0 22px 70px rgba(0, 184, 240, 0.22);
}

.under-video {
  padding: 22px;
  border-color: rgba(75, 192, 238, 0.32);
}

.under-video-grid {
  gap: 16px;
}

.under-video-card {
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(75, 192, 238, 0.075), transparent 44%),
    #070b11;
  border-color: rgba(75, 192, 238, 0.22);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.case-kicker {
  margin: 0 0 10px !important;
  color: var(--cyan) !important;
  font-size: 11px !important;
  font-weight: 950;
  text-transform: uppercase;
}

.case-photo {
  height: 190px;
  border-color: rgba(75, 192, 238, 0.22);
}

.gallery-feed {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.example-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(135deg, rgba(75, 192, 238, 0.09), transparent 35%),
    rgba(8, 12, 18, 0.94);
  border-color: rgba(75, 192, 238, 0.24);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.example-card .case-kicker,
.example-card .caption-line,
.example-card .case-open {
  margin-left: 16px;
  margin-right: 16px;
}

.example-visual {
  height: 310px;
  border: 0;
}

.case-open {
  min-height: 42px;
  margin-top: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(75, 192, 238, 0.42);
  background: rgba(75, 192, 238, 0.10);
  color: var(--cyan);
  font-weight: 950;
  text-transform: uppercase;
}

.filter-chip {
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}

.community-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
}

.community-board,
.community-form {
  background:
    linear-gradient(135deg, rgba(75, 192, 238, 0.10), transparent 38%),
    rgba(8, 12, 18, 0.95);
  border-color: rgba(75, 192, 238, 0.28);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.community-card {
  background:
    linear-gradient(90deg, rgba(75, 192, 238, 0.07), transparent 44%),
    rgba(5, 8, 13, 0.84);
  border-color: rgba(75, 192, 238, 0.22);
  border-left: 4px solid rgba(75, 192, 238, 0.68);
}

.community-card h3 {
  font-size: clamp(24px, 2.4vw, 40px);
  text-transform: uppercase;
}

.community-meta span,
.comment-list p {
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.analyzer-shell {
  display: grid;
  gap: 14px;
}

.analyzer-hero,
.analyzer-upload,
.analyzer-result,
.analyzer-history {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(75, 192, 238, 0.28);
  background:
    linear-gradient(135deg, rgba(75, 192, 238, 0.12), transparent 38%),
    rgba(8, 12, 18, 0.95);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}

.analyzer-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.65fr);
  align-items: center;
  gap: 18px;
  padding: clamp(16px, 2vw, 24px);
}

.analyzer-hero h3,
.analyzer-upload h3,
.analyzer-result h3,
.analyzer-history h3 {
  margin: 0;
  color: var(--text);
  text-transform: uppercase;
}

.analyzer-hero h3 {
  max-width: 760px;
  font-size: clamp(28px, 3vw, 50px);
  line-height: 1;
}

.analyzer-hero p {
  max-width: 760px;
  color: var(--muted);
}

.analyzer-status-grid,
.analysis-metrics,
.analyzer-history-list {
  display: grid;
  gap: 10px;
}

.analyzer-status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.analyzer-status-grid span,
.analysis-metrics span,
.analyzer-history-card {
  border: 1px solid rgba(75, 192, 238, 0.22);
  background: rgba(4, 8, 13, 0.72);
}

.analyzer-status-grid span {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  color: var(--text);
  font-weight: 950;
  text-transform: uppercase;
}

.analyzer-status-grid b {
  color: var(--cyan);
}

.analyzer-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.58fr) minmax(0, 1.42fr);
  gap: 14px;
}

.analyzer-upload,
.analyzer-result,
.analyzer-history {
  padding: 18px;
}

.analyzer-upload label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 800;
}

.analyzer-upload input[type="file"] {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(75, 192, 238, 0.24);
  background: rgba(3, 6, 10, 0.82);
  color: var(--text);
}

.analyzer-preview {
  min-height: 220px;
  display: grid;
  place-items: center;
  margin: 16px 0;
  border: 1px dashed rgba(75, 192, 238, 0.38);
  background:
    linear-gradient(rgba(244, 241, 234, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 234, 0.04) 1px, transparent 1px),
    rgba(3, 6, 10, 0.68);
  background-size: 42px 42px;
  color: var(--muted);
  font-weight: 950;
  text-transform: uppercase;
}

.analyzer-preview img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
}

.analyzer-note {
  margin: 12px 0 0;
  color: var(--muted);
}

.analysis-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0;
}

.analysis-detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 14px;
  margin-bottom: 14px;
}

.analysis-screenshot {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(75, 192, 238, 0.26);
  background:
    linear-gradient(rgba(244, 241, 234, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 234, 0.04) 1px, transparent 1px),
    rgba(3, 6, 10, 0.78);
  background-size: 34px 34px;
  color: var(--muted);
  font-weight: 950;
  text-transform: uppercase;
}

.analysis-screenshot img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: contain;
}

.analysis-screenshot figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border: 1px solid rgba(75, 192, 238, 0.25);
  background: rgba(3, 6, 10, 0.82);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  text-transform: none;
}

.analysis-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.analysis-metrics span {
  min-height: 58px;
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 12px;
}

.analysis-metrics b {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.analysis-metrics i,
.analysis-facts i {
  color: var(--cyan);
  font-style: normal;
  font-weight: 950;
}

.analysis-facts span {
  min-height: 66px;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 12px;
  border: 1px solid rgba(75, 192, 238, 0.22);
  background: rgba(4, 8, 13, 0.72);
}

.analysis-facts b {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.analysis-output {
  max-height: 360px;
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(75, 192, 238, 0.18);
  background: rgba(3, 6, 10, 0.72);
  scrollbar-width: thin;
  scrollbar-color: rgba(75, 192, 238, 0.7) rgba(75, 192, 238, 0.08);
}

.analysis-output h3,
.analysis-output h4,
.analysis-output p {
  margin: 0 0 12px;
}

.analysis-output h4 {
  margin-top: 14px;
  color: var(--cyan);
  font-size: 16px;
}

.analysis-output p {
  color: var(--muted);
  line-height: 1.5;
}

.analysis-bullet {
  padding-left: 14px;
  border-left: 2px solid rgba(75, 192, 238, 0.55);
}

.analyzer-history-card {
  display: grid;
  grid-template-columns: 84px 150px minmax(0, 1fr) 120px auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.danger-action {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 86, 98, 0.5);
  background: rgba(255, 86, 98, 0.08);
  color: #ff7480;
  font-weight: 950;
  text-transform: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.danger-action:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 86, 98, 0.85);
  background: rgba(255, 86, 98, 0.16);
}

.analyzer-history-card:hover {
  transform: translateY(-2px);
  border-color: rgba(75, 192, 238, 0.58);
  background: rgba(75, 192, 238, 0.08);
}

.history-thumb {
  width: 76px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(75, 192, 238, 0.26);
  background: rgba(3, 6, 10, 0.82);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 950;
}

.history-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.analyzer-history-card span,
.analyzer-history-card small {
  color: var(--muted);
}

.analyzer-history-card strong {
  color: var(--text);
}

@media (max-width: 1120px) {
  .season-grid {
    grid-template-columns: 1fr;
  }

  .member-view,
  .season-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "orbit"
      "head"
      "meta"
      "lessons";
  }

  .season-orbit {
    min-height: 120px;
    border-right: 0;
    border-bottom: 1px solid rgba(75, 192, 238, 0.18);
  }

  .season-card-head,
  .lesson-list {
    padding: 18px;
  }

  .season-meta {
    padding: 0 18px 18px;
  }

  .workspace::before {
    inset: 0;
  }
}

@media (max-width: 720px) {
  .topbar h2 {
    font-size: 34px;
  }

  .course-intro {
    padding: 18px;
  }

  .course-intro h3 {
    font-size: 34px;
  }

  .season-card {
    min-height: 0;
    gap: 0;
  }

  .season-orbit {
    min-height: 78px;
    grid-template-columns: auto auto;
    place-content: center start;
    padding-left: 18px;
  }

  .season-orbit span {
    font-size: 38px;
  }

  .season-card-head {
    padding: 18px;
  }

  .season-card h3 {
    font-size: 30px;
  }

  .lesson-list {
    max-height: 300px;
    padding: 0 14px 16px;
    border-left: 0;
    border-top: 1px solid rgba(75, 192, 238, 0.18);
  }

  .lesson-row {
    min-height: 62px;
  }

  .under-video-card,
  .example-card,
  .community-card {
    clip-path: none;
  }
}

@media (max-width: 1120px) {
  .auth-view,
  .member-view,
  .command-layout,
  .lesson-shell,
  .academy-signal {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    min-height: auto;
  }

  .nav-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .pipeline-grid,
  .proof-strip,
  .entry-grid,
  .signal-flow,
  .analyzer-hero,
  .analyzer-layout,
  .analysis-detail-grid,
  .season-grid,
  .gallery-feed,
  .vault-grid,
  .under-video-grid,
  .admin-layout,
  .admin-example-grid,
  .community-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .auth-hero,
  .login-panel,
  .workspace,
  .sidebar {
    padding: 18px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .topbar,
  .panel-head,
  .console-header,
  .video-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-list,
  .nav-edit-row,
  .nav-edit-main,
  .analyzer-hero,
  .analyzer-layout,
  .analyzer-status-grid,
  .analysis-metrics,
  .analysis-facts,
  .analysis-detail-grid,
  .pipeline-grid,
  .proof-strip,
  .entry-grid,
  .signal-flow,
  .season-grid,
  .gallery-feed,
  .vault-grid,
  .image-slot-row,
  .course-steps,
  .under-video-grid,
  .admin-layout,
  .admin-form,
  .admin-example-grid,
  .community-layout {
    grid-template-columns: 1fr;
  }

  .comment-form {
    grid-template-columns: 1fr;
  }

  .analyzer-history-card {
    grid-template-columns: 1fr;
  }

  .history-thumb {
    width: 100%;
    height: 130px;
  }

  .history-actions {
    justify-content: stretch;
  }

  .history-actions button {
    flex: 1;
  }

  .lesson-row {
    grid-template-columns: 1fr;
  }

  .war-room h4 {
    font-size: 34px;
  }

  .video-placeholder,
  .video-placeholder.large {
    height: 300px;
  }
}

@media (max-width: 720px) {
  .member-view {
    display: block;
  }

  .sidebar {
    min-height: auto;
    position: sticky;
    top: 0;
    z-index: 20;
    gap: 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(75, 192, 238, 0.26);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  }

  .sidebar::before,
  .sidebar-watermark {
    display: none;
  }

  .brand-row {
    min-height: 64px;
  }

  .nav-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(144px, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(75, 192, 238, 0.7) rgba(75, 192, 238, 0.08);
  }

  .nav-list::-webkit-scrollbar {
    height: 5px;
  }

  .nav-list::-webkit-scrollbar-track {
    background: rgba(75, 192, 238, 0.08);
  }

  .nav-list::-webkit-scrollbar-thumb {
    background: rgba(75, 192, 238, 0.72);
  }

  .nav-item {
    min-height: 52px;
    white-space: nowrap;
  }

  .rank-card {
    display: none;
  }

  .logout {
    min-height: 38px;
  }

  .workspace {
    padding-top: 14px;
  }
}

@media (max-width: 1120px) {
  #curriculum .season-grid {
    grid-template-columns: 1fr;
  }

  .member-view {
    display: block;
  }

  .sidebar {
    min-height: auto;
    position: sticky;
    top: 0;
    z-index: 20;
    gap: 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(75, 192, 238, 0.26);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  }

  .sidebar::before,
  .sidebar-watermark {
    display: none;
  }

  .nav-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(75, 192, 238, 0.7) rgba(75, 192, 238, 0.08);
  }

  .nav-list::-webkit-scrollbar {
    height: 5px;
  }

  .nav-list::-webkit-scrollbar-track {
    background: rgba(75, 192, 238, 0.08);
  }

  .nav-list::-webkit-scrollbar-thumb {
    background: rgba(75, 192, 238, 0.72);
  }

  .rank-card {
    display: none;
  }

  .workspace {
    padding-top: 14px;
  }
}
