/* Trade Wisdom Academy: styled after the Slav & Max channel art
   (night mountains, gold owl, glowing candlesticks, cyan highlights) */
:root {
  --night: #070f22;
  --navy: #0d1b3a;
  --navy-2: #152a55;
  --gold: #f4b93a;
  --gold-light: #ffe08a;
  --gold-dark: #c98a12;
  --cyan: #35d3ff;
  --red: #ff4d5e;
  --green: #22d18b;
  --text: #eef2fb;
  --muted: #a8b4d0;
  --card: rgba(21, 42, 85, .55);
  --border: rgba(244, 185, 58, .25);
  --radius: 18px;
  --max: 1180px;
  --sheet: url("images/channel.webp");
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(53, 211, 255, .12), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(244, 185, 58, .10), transparent 60%),
    var(--night);
  overflow-x: hidden;
}

/* starry sky */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(1px 1px at 10% 20%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 70%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 15%, #fff9 50%, transparent 51%),
    radial-gradient(1px 1px at 75% 40%, #fff7 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 80%, #fff5 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 45% 55%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 20% 90%, #fff5 50%, transparent 51%);
  background-size: 420px 420px;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, .display {
  font-family: "Anton", "Impact", sans-serif;
  font-weight: 400;
  letter-spacing: .5px;
  line-height: 1.1;
}

.gold-text {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cyan-text { color: var(--cyan); text-shadow: 0 0 18px rgba(53, 211, 255, .45); }

/* ---------- Image crops from the channel artwork ---------- */
.sheet {
  background-image: var(--sheet);
  background-repeat: no-repeat;
}
.crop-banner { aspect-ratio: 1170 / 200; background-size: 130.51% auto; background-position: 31.37% 3.17%; }
.crop-logo   { aspect-ratio: 1; background-size: 1004.6% auto; background-position: 8.15% 39.35%; border-radius: 50%; }
.crop-ep5    { aspect-ratio: 415 / 203; background-size: 367.95% auto; background-position: 8.81% 84.93%; }
.crop-ep4    { aspect-ratio: 415 / 203; background-size: 367.95% auto; background-position: 47.93% 84.93%; }
.crop-ep3    { aspect-ratio: 415 / 203; background-size: 367.95% auto; background-position: 87.14% 84.93%; }
.crop-slav   { aspect-ratio: 1; background-size: 1388% auto; background-position: 71.28% 76.86%; border-radius: 50%; }
.crop-max    { aspect-ratio: 1; background-size: 1272.5% auto; background-position: 24.52% 75.73%; border-radius: 50%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 15, 34, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.logo .crop-logo { width: 46px; box-shadow: 0 0 0 2px var(--gold), 0 0 16px rgba(244, 185, 58, .4); }
.logo-text { font-family: "Anton", sans-serif; font-size: 1.25rem; letter-spacing: 1px; line-height: 1; }
.logo-text small { display: block; font-size: .62rem; letter-spacing: 5px; color: var(--muted); margin-top: 3px; }

.nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; }
.nav a:hover, .nav a.active { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 60%, var(--gold-dark));
  color: #1a1203;
  box-shadow: 0 6px 24px rgba(244, 185, 58, .35);
}
.nav a.btn-primary { color: #1a1203; }
.btn-cyan {
  background: rgba(53, 211, 255, .1);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 22px rgba(53, 211, 255, .25);
}
.btn-small { padding: 8px 18px; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 36px 0 0; }
.hero-banner {
  border-radius: var(--radius);
  border: 2px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 40px rgba(244, 185, 58, .12);
}
.hero-copy { text-align: center; padding: 48px 0 24px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin: 0 0 14px; text-transform: uppercase; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* mountains + candles divider */
.mountains {
  height: 120px;
  margin-top: 30px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120 L0 80 L120 40 L210 70 L330 20 L450 75 L560 35 L680 80 L800 30 L920 70 L1040 25 L1200 75 L1200 120Z' fill='%23152a55'/%3E%3Cpath d='M0 120 L0 95 L150 70 L260 92 L400 60 L520 95 L650 65 L780 98 L900 68 L1050 96 L1200 72 L1200 120Z' fill='%230d1b3a'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.candles {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  height: 70px;
  opacity: .8;
}
.candles i {
  display: block;
  width: 8px;
  border-radius: 2px;
  position: relative;
  box-shadow: 0 0 10px currentColor;
}
.candles i::before {
  content: "";
  position: absolute;
  left: 3.5px;
  top: -10px;
  bottom: -10px;
  width: 1px;
  background: currentColor;
}
.candles i.up { background: var(--green); color: var(--green); }
.candles i.dn { background: var(--red); color: var(--red); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 8px; text-transform: uppercase; }
.section-sub { color: var(--muted); margin: 0 0 32px; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(6px);
}
.card h3 { margin: 12px 0 6px; font-size: 1.5rem; text-transform: uppercase; color: var(--gold); }
.card p { color: var(--muted); margin: 0; }
.card .icon { font-size: 2rem; }
a.card { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 12px 30px rgba(0,0,0,.4), 0 0 24px rgba(244,185,58,.2); }

/* episode cards (thumbnail style) */
.episode { padding: 0; overflow: hidden; }
.episode .thumb { border-bottom: 1px solid var(--border); }
.episode .meta { padding: 16px 18px 20px; }
.episode h3 { font-family: "Nunito", sans-serif; font-weight: 800; font-size: 1.05rem; text-transform: none; color: var(--text); margin: 0 0 4px; }
.episode .tag {
  display: inline-block;
  font-family: "Anton", sans-serif;
  font-size: .8rem;
  letter-spacing: 1px;
  background: var(--gold);
  color: #1a1203;
  padding: 2px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.video { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--navy); }
.video iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Slav & Max dialogue ---------- */
.dialogue { display: flex; flex-direction: column; gap: 18px; max-width: 820px; margin: 0 auto; }
.line { display: flex; gap: 14px; align-items: flex-end; }
.line.max { flex-direction: row-reverse; }
.line .avatar { width: 64px; flex: none; box-shadow: 0 0 0 3px var(--gold); }
.line.max .avatar { box-shadow: 0 0 0 3px var(--cyan); }
.bubble {
  position: relative;
  background: #fff;
  color: #13203d;
  padding: 14px 18px;
  border-radius: 18px;
  font-weight: 700;
  max-width: 80%;
}
.bubble b { display: block; font-family: "Anton", sans-serif; font-weight: 400; letter-spacing: 1px; font-size: .85rem; color: var(--gold-dark); }
.line.max .bubble b { color: #0b8fb3; }
.line.slav .bubble { border-bottom-left-radius: 4px; }
.line.max .bubble { border-bottom-right-radius: 4px; }

/* ---------- Lead magnet ---------- */
.band {
  position: relative;
  border-radius: var(--radius);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: center;
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  border: 2px solid var(--gold);
  box-shadow: 0 0 40px rgba(244, 185, 58, .15);
}
.band h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 3.5vw, 2.6rem); text-transform: uppercase; }
.band p { margin: 0; color: var(--muted); }

.signup { display: flex; flex-direction: column; gap: 10px; }
.signup input {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(7, 15, 34, .7);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.signup input::placeholder { color: #7f8bab; }
.signup input:focus { outline: 2px solid var(--gold); }
.signup small { color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 20px 0; }
.checklist li { padding: 6px 0 6px 32px; position: relative; }
.checklist li::before { content: "✔"; position: absolute; left: 0; color: var(--green); font-weight: 800; }

.journal {
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(53, 211, 255, .08), transparent),
    var(--navy);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 40px rgba(53, 211, 255, .15);
}
.journal h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 14px 0 0; text-transform: uppercase; }
.journal p { color: var(--muted); max-width: 620px; margin: 12px auto 26px; }
.badge {
  display: inline-block;
  background: var(--cyan);
  color: var(--night);
  font-weight: 800;
  font-size: .8rem;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 1px;
}

/* ---------- Inner page header ---------- */
.page-head { padding: 56px 0 0; text-align: center; }
.page-head h1 { margin: 0 0 10px; font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; }
.page-head p { margin: 0 auto; color: var(--muted); max-width: 640px; }

.prose { max-width: 780px; }
.prose h2 { margin-top: 40px; font-size: 2rem; text-transform: uppercase; color: var(--gold); }
.prose p { color: #d3dbee; }

/* ---------- Footer ---------- */
.site-footer {
  background: rgba(7, 15, 34, .9);
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 44px 0;
  font-size: .9rem;
}
.site-footer .links { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.site-footer a { color: #d6dcec; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .motto { font-family: "Anton", sans-serif; letter-spacing: 1px; font-size: 1.1rem; margin-bottom: 10px; }

@media (max-width: 900px) {
  .band { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .band { padding: 26px; }
  .nav { gap: 14px; }
  .line .avatar { width: 48px; }
  .bubble { max-width: 85%; }
  .candles { gap: 6px; }
}

/* ---------- Language switcher ---------- */
details.lang { position: relative; }
details.lang summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  font-weight: 800;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
details.lang summary::-webkit-details-marker { display: none; }
details.lang[open] summary, details.lang summary:hover { color: var(--gold); border-color: var(--gold); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  min-width: 150px;
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
  z-index: 30;
}
.lang-menu a { padding: 8px 12px; border-radius: 8px; color: var(--text) !important; }
.lang-menu a:hover, .lang-menu a.active { background: rgba(244,185,58,.15); color: var(--gold) !important; }

/* ---------- Generic content ---------- */
.lead { font-size: 1.15rem; color: #d3dbee; }
.note {
  background: rgba(53, 211, 255, .08);
  border-left: 4px solid var(--cyan);
  padding: 14px 18px;
  border-radius: 10px;
  color: #d3dbee;
  margin: 20px 0;
}
.warn { background: rgba(255, 77, 94, .08); border-left-color: var(--red); }
.pill {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(244,185,58,.15);
  color: var(--gold);
  border: 1px solid var(--border);
}
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.toc a { text-decoration: none; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; }
table.data th, table.data td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(244,185,58,.12); }
table.data th { font-family: "Anton", sans-serif; font-weight: 400; letter-spacing: .5px; color: var(--gold); background: rgba(7,15,34,.6); }
table.data td { color: #d3dbee; }
table.data tr:last-child td { border-bottom: 0; }

/* glossary */
.glossary-search {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(7,15,34,.7);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 24px;
}
.term { margin: 0; padding: 18px 0; border-bottom: 1px solid rgba(244,185,58,.12); }
.term dt { font-family: "Anton", sans-serif; font-size: 1.3rem; letter-spacing: .5px; color: var(--gold); }
.term dd { margin: 6px 0 0; color: #d3dbee; }
.term dd .slav { display: block; margin-top: 6px; color: var(--cyan); font-style: italic; }

/* calculators */
.calc label { display: block; font-weight: 700; margin: 12px 0 4px; color: #d3dbee; }
.calc input, .calc select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(7,15,34,.7);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.calc .out {
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(7,15,34,.7);
  border: 1px solid var(--gold);
}
.calc .out div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.calc .out b { color: var(--gold); }
.calc .out .neg { color: var(--red); }
.calc .out .pos { color: var(--green); }

/* quiz */
.quiz-q { margin: 0 0 22px; }
.quiz-q p { font-weight: 800; margin: 0 0 8px; }
.quiz-q label {
  display: block;
  padding: 10px 14px;
  margin: 6px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  color: #d3dbee;
}
.quiz-q label:hover { border-color: var(--gold); }
.quiz-q input { margin-right: 8px; accent-color: var(--gold); }
.quiz-q label.right { border-color: var(--green); background: rgba(34,209,139,.12); }
.quiz-q label.wrong { border-color: var(--red); background: rgba(255,77,94,.12); }
.quiz-score { font-family: "Anton", sans-serif; font-size: 1.5rem; color: var(--gold); margin-top: 12px; }

/* books */
.book { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; }
.book-cover {
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  font-family: "Anton", sans-serif;
  font-size: .85rem;
  line-height: 1.15;
  color: #fff;
  box-shadow: 4px 6px 0 rgba(0,0,0,.35);
  background: linear-gradient(160deg, var(--navy-2), #0a1430);
  border: 1px solid var(--border);
}
.book h3 { margin-top: 0; }
.book .by { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.book .slav { color: var(--cyan); font-style: italic; margin: 8px 0 12px; }
.ebook-cover {
  aspect-ratio: 2 / 3;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 10px;
  background: linear-gradient(170deg, var(--navy-2), var(--night));
  border: 2px solid var(--gold);
  box-shadow: 10px 14px 0 rgba(0,0,0,.4), 0 0 40px rgba(244,185,58,.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}
.ebook-cover .crop-logo { width: 90px; }
.ebook-cover h3 { font-size: 1.7rem; margin: 0; }

/* article */
.article h2 { color: var(--gold); text-transform: uppercase; font-size: 1.8rem; margin-top: 40px; }
.article p, .article li { color: #d3dbee; }
.article .meta-line { color: var(--muted); font-size: .9rem; }

@media (max-width: 600px) {
  .book { grid-template-columns: 70px 1fr; }
  .lang-menu { right: auto; left: 0; }
}

/* ---------- Printable checklist ---------- */
    .sheet-card { background: #fff; color: #13203d; border-radius: var(--radius); padding: 36px; max-width: 820px; margin: 0 auto; }
    .sheet-card h2 { font-size: 1.5rem; text-transform: uppercase; color: #0d1b3a; margin: 26px 0 8px; border-bottom: 3px solid var(--gold); padding-bottom: 4px; }
    .sheet-card ol { margin: 0; padding-left: 0; list-style: none; }
    .sheet-card li { padding: 7px 0 7px 34px; position: relative; border-bottom: 1px dashed #d8deea; }
    .sheet-card li::before { content: ""; position: absolute; left: 0; top: 10px; width: 18px; height: 18px; border: 2px solid #0d1b3a; border-radius: 4px; }
    .sheet-card .write { display: block; border-bottom: 1px solid #9aa6c0; height: 26px; margin: 4px 0 0; }
    .sheet-card .rule { background: #fff6dd; border-left: 5px solid var(--gold); padding: 12px 16px; border-radius: 8px; margin-top: 26px; font-weight: 700; }
    .sheet-card small { color: #5b6478; }
    .no-print { text-align: center; margin: 24px 0; }
    @media print {
      .site-header, .site-footer, .no-print, .page-head { display: none; }
      html, body { background: #fff !important; }
      body::before { display: none; }
      section { padding: 0; }
      .sheet-card { padding: 0; }
    }
  
@media (max-width: 600px) {
  .site-header { position: static; }
  .site-header .container { padding-top: 10px; padding-bottom: 10px; }
}

/* ---------- Strategy library ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.filter-btn {
  font-family: inherit;
  font-weight: 800;
  font-size: .88rem;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(7,15,34,.6);
  color: var(--muted);
  cursor: pointer;
}
.filter-btn:hover { color: var(--gold); border-color: var(--gold); }
.filter-btn.active { background: var(--gold); color: #1a1203; border-color: var(--gold); }
.strategy-card { display: flex; flex-direction: column; }
.strategy-card p { flex: 1; }
.strategy-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pill.level.pos { color: var(--green); border-color: rgba(34,209,139,.4); background: rgba(34,209,139,.1); }
.pill.level.neg { color: var(--red); border-color: rgba(255,77,94,.4); background: rgba(255,77,94,.1); }
.strategy-meta { margin-top: 14px; font-size: .85rem; color: var(--cyan); font-weight: 700; }
.strategy-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.strategy-facts div {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}
.strategy-facts span { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.strategy-facts b { color: var(--gold); }
@media (max-width: 700px) { .strategy-facts { grid-template-columns: 1fr 1fr; } }
