  :root {
    --bg: #050c14;
    --bg2: #2a1647;
    --panel: #23133a;
    --panel2: #1f1232;
    --border: #3a1c63;
    --accent: #883CF0;
    --accent2: #af62c8;
    --accent3: #7b5ea7;
    --text: #cce4f7;
    --muted: #c8d6e5;
    --white: #f0f8ff;
    --warning: #e95bf6;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  .training-guide {
    background: #191127;
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
    height: 100vh;
    overflow-x: hidden;
    position: relative;
    overflow-y: auto;
  }

  /* GRID BACKGROUND */
  .training-guide::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(225, 0, 255, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(247, 0, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
  }

  /* SCANLINE */
  .training-guide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
      0deg, transparent, transparent 2px,
      rgba(0, 0, 0, 0.07) 2px, rgba(0, 0, 0, 0.07) 4px
    );
    pointer-events: none;
    z-index: 0;
  }

  .wrap { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 0 28px 80px; }

  /* HEADER */
  .training-guide header {
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
    position: relative;
  }
  .header-tag {
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .header-tag::before {
    content: '';
    width: 28px; height: 1px;
    background: var(--accent);
  }
  h1 {
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 16px;
  }
  h1 span { color: var(--accent); }
  .header-sub {
    color: var(--muted);
    font-size: 16px;
    max-width: 600px;
    font-weight: 300;
    margin-bottom: 32px;
  }
  .header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .badge {
    font-size: 10px;
    padding: 5px 14px;
    border: 1px solid;
    text-transform: uppercase;
    border-radius: 2px;
  }
  .badge-blue { border-color: var(--accent); color: var(--accent); background: #1f1232; }
  .badge-orange { border-color: var(--accent2); color: var(--accent2); background: rgba(255,107,43,0.06); }
  .badge-green { border-color: var(--accent3); color: var(--accent3); background: rgba(168,255,120,0.06); }

  /* PROGRESS BAR */
  .progress-bar {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 16px 22px;
    margin: 28px 0;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 11px;
  }
  .progress-label { color: var(--muted);  white-space: nowrap; }
  .progress-track {
    flex: 1;
    height: 4px;
    background: #282035;
    border-radius: 2px;
    overflow: hidden;
  }
  .progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent3));
    border-radius: 2px;
    transition: width 0.6s ease;
  }
  .progress-pct { color: var(--accent); min-width: 36px; text-align: right; }

  /* NAV TABS */
  .nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border: 1px solid var(--border);
    margin-bottom: 32px;
    background: var(--panel);
  }
  .nav-tab {
    font-size: 11px;
    text-transform: uppercase;
    padding: 14px 22px;
    color: var(--muted);
    cursor: pointer;
    border-right: 1px solid var(--border);
    transition: all 0.2s;
    background: none;
    border-bottom: none;
    border-top: none;
    border-left: none;
    position: relative;
    white-space: nowrap;
  }
  .nav-tab:last-child { border-right: none; }
  .nav-tab:hover { color: var(--text); background: #23133a9f; }
  .nav-tab.active {
    color: var(--accent);
    background: #23133a;
  }
  .nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
  }
  .nav-tab.done { color: var(--accent3); }
  .nav-tab.done::before { content: '✓ '; }

  /* SECTION PANEL */
  .section { display: none; animation: fadeIn 0.35s ease; }
  .section.active { display: block; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

  /* SECTION HEADER */
  .section-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
  }
  .section-num {
    font-size: 56px;
    font-weight: 800;
    color: var(--border);
    line-height: 1;
    flex-shrink: 0;
  }
  .section-title { font-size: 26px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
  .section-desc { color: var(--muted); font-size: 14px; }

  /* CARDS GRID */
  .cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 28px; }
  .card {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 22px;
    transition: border-color 0.2s, transform 0.2s;
    cursor: default;
    position: relative;
    overflow: hidden;
  }
  .card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 0;
    background: var(--accent);
    transition: height 0.3s ease;
  }
  .card:hover { border-color: #5e309d; transform: translateY(-2px); }
  .card:hover::before { height: 100%; }
  .card-icon { font-size: 26px; margin-bottom: 12px; }
  .card-title { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
  .card-text { color: var(--muted); font-size: 13.5px; line-height: 1.6; }

  /* ACCORDION */
  .accordion { border: 1px solid var(--border); margin-bottom: 12px; overflow: hidden; }
  .accordion-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    background: var(--panel);
    transition: background 0.2s;
    user-select: none;
  }
  .accordion-head:hover { background: var(--panel2); }
  .accordion-head-left { display: flex; align-items: center; gap: 14px; }
  .accordion-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
  }
  .accordion-tag {
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 2px;
    text-transform: uppercase;
  }
  .tag-human { background: rgba(168,255,120,0.1); color: var(--accent3); border: 1px solid rgba(168,255,120,0.2); }
  .tag-nonhuman { background: #23133a; color: var(--accent); border: 1px solid #5e309d; }
  .tag-discovery { background: rgba(255,107,43,0.1); color: var(--accent2); border: 1px solid rgba(255,107,43,0.2); }
  .tag-cid { background: rgba(255,204,0,0.1); color: var(--warning); border: 1px solid rgba(255,204,0,0.2); }
  .accordion-arrow {
    font-size: 14px;
    color: var(--muted);
    transition: transform 0.3s;
  }
  .accordion.open .accordion-arrow { transform: rotate(180deg); color: var(--accent); }
  .accordion-body {
    display: none;
    padding: 0 20px 20px;
    background: #1f1232;
    border-top: 1px solid var(--border);
  }
  .accordion.open .accordion-body { display: block; animation: fadeIn 0.25s ease; }
  .accordion-body ul { list-style: none; padding-top: 16px; }
  .accordion-body ul li {
    padding: 8px 0 8px 20px;
    border-bottom: 1px solid #5e309d;
    color: var(--text);
    font-size: 14px;
    position: relative;
  }
  .accordion-body ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
  }
  .accordion-body ul li:last-child { border-bottom: none; }

  /* COMPARISON TABLE */
  .compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 28px;
    font-size: 13.5px;
  }
  .compare-table th {
    font-size: 10px;
    text-transform: uppercase;
    padding: 14px 16px;
    background: var(--panel2);
    color: var(--accent);
    border: 1px solid var(--border);
    text-align: left;
  }
  .compare-table td {
    padding: 12px 16px;
    border: 1px solid var(--border);
    background: var(--panel);
    vertical-align: top;
    color: var(--text);
    line-height: 1.5;
  }
  .compare-table tr:hover td { background: var(--panel2); }
  .td-feature { color: var(--white); font-weight: 500; }
  .check { color: var(--accent3); }
  .cross { color: #ff4757; }

  /* FLOW DIAGRAM */
  .flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 28px 0;
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 24px;
    overflow-x: auto;
  }
  .flow-step {
    background: var(--bg2);
    border: 1px solid var(--border);
    padding: 14px 18px;
    min-width: 140px;
    text-align: center;
    position: relative;
  }
  .flow-step-num {
    font-size: 9px;
    color: var(--accent);
    margin-bottom: 6px;
    text-transform: uppercase;
  }
  .flow-step-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
  }
  .flow-arrow {
    color: var(--accent);
    font-size: 18px;
    padding: 0 6px;
    flex-shrink: 0;
  }

  /* QUIZ */
  .quiz-box {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 28px;
    margin-bottom: 20px;
  }
  .quiz-q {
    font-size: 17px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.5;
  }
  .quiz-options { display: flex; flex-direction: column; gap: 10px; }
  .quiz-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    border: 1px solid var(--border);
    background: var(--bg2);
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 2px;
    font-size: 14px;
    color: var(--text);
    text-align: left;
    width: 100%;
  }
  .quiz-option:hover { border-color: #3a1c63; color: var(--white); background: #1f1232; }
  .quiz-option.correct { border-color: #77b255; background: #77b25520; color:#60c090; }
  .quiz-option.wrong { border-color: #dc143c; background: #dc143c2b; color: #ff7a90; }
  .quiz-option.disabled { pointer-events: none; }
  .quiz-opt-letter {
    font-size: 11px;
    width: 24px;
    height: 24px;
    border: 1px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 2px;
  }
  .quiz-feedback {
    margin-top: 16px;
    padding: 14px 18px;
    font-size: 13.5px;
    display: none;
    border-radius: 2px;
  }
  .quiz-feedback.show { display: block; }
  .quiz-feedback.correct { background: #77b25520; border: 1px solid #77b255; color: #60c090; }
  .quiz-feedback.wrong { background: #dc143c2b; border: 1px solid #dc143c; color: #ff7a90; }

  /* CALLOUT */
  .callout {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    margin: 20px 0;
    border-left: 3px solid;
    font-size: 13.5px;
    line-height: 1.7;
  }
  .callout-info { border-color: var(--accent); background: #873cf023; }
  .callout-warn { border-color: var(--warning); background: #e95bf623; }
  .callout-tip { border-color: var(--accent3); background: rgba(168,255,120,0.05); }
  .callout-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
  .callout-title { font-weight: 600; color: var(--white); margin-bottom: 4px; font-size: 14px; }

  /* KEY TERMS */
  .term-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin: 20px 0; }
  .term-card {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 16px 20px;
  }
  .term-name {
    font-size: 11px;
    color: var(--accent2);
    text-transform: uppercase;
    margin-bottom: 6px;
  }
  .term-def { color: var(--muted); font-size: 13px; line-height: 1.6; }

  /* CHECKLIST */
  .checklist { display: flex; flex-direction: column; gap: 8px; margin: 20px 0; }
  .check-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
  }
  .check-item:hover { border-color: var(--accent); }
  .check-box {
    width: 18px;
    height: 18px;
    border: 1px solid var(--muted);
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.2s;
  }
  .check-item.checked .check-box {
    background: var(--accent3);
    border-color: var(--accent3);
    color: #000;
  }
  .check-item.checked .check-text { text-decoration: line-through; color: var(--muted); }
  .check-text { font-size: 14px; color: var(--text); line-height: 1.5; }

  /* BOTTOM NAV */
  .section-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
  }
  .btn {
    font-size: 11px;
    text-transform: uppercase;
    padding: 13px 24px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
  }
  .btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
  }
  .btn-outline:hover { border-color: var(--accent); color: var(--accent); }
  .btn-primary {
    background: var(--accent);
    color: #000;
    font-weight: 700;
  }
  .btn-primary:hover { background: #883cf0e0; }

  /* COMPLETION */
  .completion {
    text-align: center;
    padding: 60px 24px;
    background: var(--panel);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
  }
  .completion::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 0, 255, 0.08) 0%, transparent 70%);
  }
  .completion-icon { font-size: 52px; margin-bottom: 20px; }
  .completion h2 { font-size: 32px; font-weight: 800; color: var(--white); margin-bottom: 12px; }
  .completion p { color: var(--muted); margin-bottom: 28px; max-width: 460px; margin-left: auto; margin-right: auto; }

  /* SCORE */
  .score-display {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    padding: 10px 20px;
    background: var(--bg2);
    border: 1px solid var(--border);
    color: var(--accent);
    margin-bottom: 20px;
  }

  /* RESPONSIVE */
  @media (max-width: 600px) {
    .nav-tab { font-size: 9px; padding: 12px 12px; }
    .flow { flex-direction: column; }
    .flow-arrow { transform: rotate(90deg); }
    .section-header { flex-direction: column; gap: 10px; }
    .section-num { font-size: 36px; }
  }

  /* SCROLLBAR */
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: #873cf015; }
  ::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 3px; }