:root {
  color-scheme: dark;
  --bg-canvas: linear-gradient(165deg, #060C1E 0%, #091128 52%, #050916 100%);
  --bg-solid: #060C1E;
  --aurora-blue: rgba(37, 99, 235, 0.22);
  --aurora-gold: rgba(245, 184, 46, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.065);
  --glass-bg-elevated: rgba(11, 20, 48, 0.9);
  --glass-border: rgba(147, 197, 253, 0.16);
  --glass-border-strong: rgba(245, 184, 46, 0.36);
  --input-bg: rgba(7, 15, 38, 0.78);
  --hero-surface: linear-gradient(135deg, #091438 0%, #0F2563 55%, #193B8E 100%);
  --gold-gradient: linear-gradient(135deg, #FFE074 0%, #FFD24C 50%, #F5B82E 100%);
  --gold-ink: #060C1E;
  --gold-accent: #F5B82E;
  --ink: #F8FAFF;
  --ink-muted: #A4B4D8;
  --ink-subtle: #7B8DB5;
  --emerald: #34D399;
  --emerald-bg: rgba(52, 211, 153, 0.14);
  --sapphire: #60A5FA;
  --sapphire-bg: rgba(96, 165, 250, 0.14);
  --row-border: rgba(147, 197, 253, 0.11);
  --shadow-card: 0 18px 42px rgba(2, 6, 20, 0.42);
  --shadow-gold: 0 10px 26px rgba(245, 184, 46, 0.25);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg-canvas: linear-gradient(165deg, #F2F6FF 0%, #F4F5FA 52%, #EDF1FA 100%);
  --bg-solid: #F2F6FF;
  --aurora-blue: rgba(37, 99, 235, 0.09);
  --aurora-gold: rgba(245, 184, 46, 0.09);
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-bg-elevated: rgba(255, 255, 255, 0.96);
  --glass-border: rgba(10, 19, 44, 0.09);
  --glass-border-strong: rgba(217, 155, 22, 0.38);
  --input-bg: rgba(255, 255, 255, 0.95);
  --gold-accent: #C7890A;
  --ink: #0A132C;
  --ink-muted: #4A5775;
  --ink-subtle: #64748B;
  --emerald: #059669;
  --emerald-bg: rgba(16, 185, 129, 0.14);
  --sapphire: #1D4ED8;
  --sapphire-bg: rgba(37, 99, 235, 0.12);
  --row-border: rgba(10, 19, 44, 0.08);
  --shadow-card: 0 14px 32px rgba(10, 19, 44, 0.08);
  --shadow-gold: 0 10px 22px rgba(245, 184, 46, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-canvas);
  background-attachment: fixed;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body::before, body::after {
  content: "";
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(115px);
  pointer-events: none;
  z-index: 0;
}
body::before {
  top: -160px;
  left: -140px;
  background: radial-gradient(circle, var(--aurora-blue) 0%, transparent 72%);
}
body::after {
  top: -120px;
  right: -140px;
  background: radial-gradient(circle, var(--aurora-gold) 0%, transparent 72%);
}

.hidden { display: none !important; }
.tabular { font-variant-numeric: tabular-nums; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(6, 12, 30, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
}
html[data-theme="light"] .topbar {
  background: rgba(242, 246, 255, 0.86);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 13px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--hero-surface);
  border: 1px solid rgba(255, 224, 116, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-title { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.brand-sub { font-size: 10.5px; font-weight: 700; color: var(--gold-accent); letter-spacing: 0.06em; text-transform: uppercase; }

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-input {
  background: var(--input-bg);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  border-radius: 12px;
  padding: 9px 13px;
  font-family: inherit;
  font-size: 13px;
  width: 220px;
  outline: none;
}
.search-input:focus { border-color: var(--gold-accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold-gradient);
  color: var(--gold-ink);
  box-shadow: var(--shadow-gold);
}
.btn-ghost {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  color: var(--ink);
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 22px 54px;
}

.hero-card {
  background: var(--hero-surface);
  border: 1px solid rgba(255, 224, 116, 0.28);
  border-radius: 24px;
  padding: 28px;
  color: #F8FAFF;
  box-shadow: var(--shadow-card);
  margin-bottom: 22px;
}
.hero-card h1 {
  margin: 6px 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.hero-card p {
  margin: 0 0 18px;
  color: #C7D7F6;
  font-size: 14.5px;
  max-width: 720px;
}

.quick-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.qstep {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 13px 15px;
}
.qstep-num {
  font-size: 11px;
  font-weight: 800;
  color: #FFD24C;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.qstep-txt {
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 700;
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.pill-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--ink-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.pill-btn.active {
  background: var(--gold-gradient);
  color: var(--gold-ink);
  border-color: transparent;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 26px;
}

.module-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
}

.video-shell {
  background: #040815;
  position: relative;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--row-border);
}
.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.module-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.module-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.badge-gold { background: rgba(245, 184, 46, 0.2); color: var(--gold-accent); }
.badge-sapphire { background: var(--sapphire-bg); color: var(--sapphire); }
.badge-emerald { background: var(--emerald-bg); color: var(--emerald); }

.step-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink);
}

.rule-note {
  margin-top: auto;
  padding: 9px 12px;
  border-radius: 11px;
  background: var(--sapphire-bg);
  border: 1px solid rgba(96, 165, 250, 0.26);
  font-size: 12.5px;
  font-weight: 600;
}

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.section-title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 800;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 13px;
  border: 1px solid var(--row-border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  background: rgba(15, 37, 99, 0.26);
}
html[data-theme="light"] th {
  background: rgba(15, 37, 99, 0.06);
}
td {
  padding: 10px 12px;
  border-top: 1px solid var(--row-border);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.faq-item {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}
.faq-q { font-size: 13.5px; font-weight: 800; margin-bottom: 4px; }
.faq-a { font-size: 13px; color: var(--ink-muted); }

@media (max-width: 920px) {
  .modules-grid, .quick-steps, .faq-grid { grid-template-columns: 1fr; }
  .search-input { width: 100%; }
}
