  :root {
    --bg: #23133a;
    --bg2: #1f1232;
    --bg3: #2a1647;
    --surface: #883cf050;
    --surface2: #3a1c6350;
    --teal: #883CF0;
    --teal-dim: #883CF0;
    --teal-glow: #23133a;
    --blue: #1e90d6;
    --amber: #f5a623;
    --red: #e05252;
    --green: #3ecf8e;
    --text: #dce8f0;
    --text-dim: #d6d6d6;
    --border: #3a1c63;
    --radius: 10px;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  .strongdm-training-guide-4 {
    background: var(--bg);
    color: var(--text);
    height: 100vh;
    overflow-x: hidden;
    position: relative;
    overflow-y: auto;
  }


  .strongdm-training-guide-4 .container { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; }

  /* HEADER */
  .strongdm-training-guide-4 header {
    background: linear-gradient(135deg, #1f1232 0%, #be52e50f 100%);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1;
    backdrop-filter: blur(12px);
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    max-width: 1100px;
    margin: 0 auto;
  }

  .logo {  
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--teal);
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .logo-icon {
    width: 32px; height: 32px;
    background: var(--teal);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--bg);
    font-weight: 800;
  }

  .progress-bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-dim);
    
  }

  .progress-track {
    width: 140px; height: 4px;
    background: #282035;
    border-radius: 4px;
    overflow: hidden;
  }

  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--blue));
    border-radius: 4px;
    transition: width 0.4s ease;
    width: 0%;
  }

  /* HERO */
  .hero {
    padding: 60px 0 40px;
    text-align: center;
  }

  /* Ensure hero is visible on load (it's outside panels) */
  .hero.reveal {
    opacity: 1;
    transform: none;
  }

  .hero-badge {
    display: inline-block;
    background: var(--teal-glow);
    border: 1px solid var(--border);
    color: var(--teal);
    
    font-size: 0.7rem;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
  }

  .hero h1 {
    
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 16px;
  }

  .hero h1 span { color: var(--teal); }

  .hero p {
    color: var(--text-dim);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.65;
  }

  .modules-overview {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
  }

  .mod-pill {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.82rem;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
  }

  .mod-pill:hover, .mod-pill.active {
    background: var(--teal-glow);
    border-color: var(--teal);
    color: var(--teal);
  }

  /* MAIN NAV TABS */
  .main-nav {
    display: flex;
    gap: 0;
    background: #1f1232;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
  }

  .nav-tab {
    flex: 1;
    padding: 14px 8px;
    text-align: center;
    cursor: pointer;
    
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-dim);
    border: none;
    background: none;
    transition: all 0.2s;
    border-right: 1px solid var(--border);
    position: relative;
  }

  .nav-tab:last-child { border-right: none; }

  .nav-tab.active {
    background: var(--teal-glow);
    color: var(--teal);
  }

  .nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--teal);
  }

  .nav-tab .tab-num {
    display: block;
    
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-bottom: 2px;
    opacity: 0.7;
  }

  .nav-tab.active .tab-num { color: var(--teal); opacity: 0.8; }

  /* CONTENT PANELS */
  .panel { display: none; }
  .panel.active { display: block; animation: fadeIn 0.3s ease; }

  @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

  /* SECTION HEADERS */
  .section-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
  }

  .section-icon {
    width: 48px; height: 48px;
    background: var(--teal-glow);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
  }

  .section-header h2 {
    
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
  }

  .section-header p {
    color: var(--text-dim);
    font-size: 0.88rem;
    line-height: 1.5;
  }

  /* CARDS */
  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
  }

  .card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color 0.2s, transform 0.2s;
  }

  .card:hover {
    border-color: #5e309d;
    transform: translateY(-2px);
  }

  .card-label {
    
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .card-label::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--teal);
    border-radius: 50%;
  }

  .card h3 {
    
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
  }

  .card p, .card ul {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
  }

  .card ul { padding-left: 16px; }
  .card ul li { margin-bottom: 4px; }

  /* DIAGRAM BOXES */
  .diagram {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    overflow-x: auto;
  }

  .diagram-title {
    
    font-size: 0.72rem;
    color: var(--teal);
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .diagram-title::before {
    content: '▸';
  }

  .flow-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 8px;
  }

  .flow-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.82rem;
    color: var(--text);
    text-align: center;
    min-width: 120px;
    white-space: nowrap;
    position: relative;
  }

  .flow-box.highlight {
    background: var(--teal-glow);
    border-color: var(--teal);
    color: var(--teal);
  }

  .flow-box.warn {
    background: rgba(245,166,35,0.1);
    border-color: rgba(245,166,35,0.4);
    color: var(--amber);
  }

  .flow-box.danger {
    background: rgba(224,82,82,0.1);
    border-color: rgba(224,82,82,0.3);
    color: var(--red);
  }

  .flow-arrow {
    color: var(--teal);
    font-size: 1.1rem;
  }

  .flow-arrow.down { display: block; text-align: center; margin: 4px 0; }

  /* ACCORDION */
  .accordion {
    margin-bottom: 24px;
  }

  .accordion-item {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
  }

  .accordion-header {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: background 0.2s;
    user-select: none;
  }

  .accordion-header:hover { background: #23133a; }

  .acc-left { display: flex; align-items: center; gap: 14px; }

  .acc-num {
    
    font-size: 0.72rem;
    color: var(--teal);
    background: var(--teal-glow);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 3px 8px;
    white-space: nowrap;
  }

  .acc-title {
    
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text);
  }

  .acc-chevron {
    color: var(--text-dim);
    font-size: 0.8rem;
    transition: transform 0.25s;
  }

  .accordion-item.open .acc-chevron { transform: rotate(180deg); }

  .accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .accordion-body-inner {
    padding: 0 20px 20px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
  }

  .accordion-body-inner p, .accordion-body-inner li {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.65;
    margin-bottom: 8px;
  }

  .accordion-body-inner ul { padding-left: 18px; }

  /* CODE BLOCKS */
  .code-block {
    background: #0f0818;
    border: 1px solid #3a1c63;
    border-radius: 8px;
    padding: 16px 18px;
    
    font-size: 0.78rem;
    color: #a8d8ea;
    overflow-x: auto;
    margin: 12px 0;
    white-space: pre;
    line-height: 1.6;
  }

  .code-block .kw { color: var(--teal); }
  .code-block .str { color: var(--amber); }
  .code-block .cmt { color: #bcd7e8; font-style: italic; }

  /* COMPARISON TABLE */
  .compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    margin-bottom: 24px;
  }

  .compare-table th {
    background: var(--surface);
    padding: 12px 16px;
    text-align: left;
    
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
  }

  .compare-table th:first-child { border-radius: 8px 0 0 0; }
  .compare-table th:last-child { border-radius: 0 8px 0 0; }

  .compare-table td {
    padding: 11px 16px;
    color: var(--text-dim);
    border-bottom: 1px solid #3a1c63;
    vertical-align: top;
  }

  .compare-table tr:hover td { background: #23133a; }

  .tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    
    font-size: 0.68rem;
    font-weight: 500;
  }

  .tag-yes { background: rgba(62,207,142,0.15); color: var(--green); }
  .tag-no { background: rgba(224,82,82,0.12); color: var(--red); }
  .tag-ent { background: rgba(30,144,214,0.15); color: var(--blue); }
  .tag-warn { background: rgba(245,166,35,0.15); color: var(--amber); }

  /* QUIZ */
  .quiz-section {
    background: #23133a;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 32px;
  }

  .quiz-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
  }

  .quiz-header h3 {
    
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
  }

  .quiz-badge {
    background: rgba(245,166,35,0.15);
    border: 1px solid rgba(245,166,35,0.3);
    color: var(--amber);
    
    font-size: 0.65rem;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
  }

  .quiz-q {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
  }

  .quiz-q:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

  .quiz-question {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 12px;
    font-weight: 500;
    line-height: 1.5;
  }

  .quiz-q-num {
    
    font-size: 0.68rem;
    color: var(--teal);
    margin-bottom: 6px;
  }

  .quiz-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .quiz-option {
    background: #1f1232;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.84rem;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    width: 100%;
  }

  .quiz-option:hover { border-color:#2a1647; color: var(--text); }

  .quiz-option .opt-label {
    width: 22px; height: 22px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-size: 0.68rem;
    color: var(--teal);
    flex-shrink: 0;
  }

  .quiz-option.correct {
    background: rgba(62,207,142,0.12);
    border-color: var(--green);
    color: var(--green);
  }

  .quiz-option.wrong {
    background: rgba(224,82,82,0.1);
    border-color: var(--red);
    color: var(--red);
  }

  .quiz-option.disabled { cursor: default; pointer-events: none; }

  .quiz-feedback {
    margin-top: 10px;
    font-size: 0.82rem;
    line-height: 1.5;
    padding: 10px 14px;
    border-radius: 8px;
    display: none;
  }

  .quiz-feedback.show { display: block; }
  .quiz-feedback.correct { background: rgba(62,207,142,0.1); color: var(--green); border: 1px solid rgba(62,207,142,0.25); }
  .quiz-feedback.wrong { background: rgba(224,82,82,0.08); color: #f08080; border: 1px solid rgba(224,82,82,0.2); }

  /* KEY CONCEPTS */
  .key-concepts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
  }

  .concept {
    background: var(--bg3);
    border-left: 3px solid var(--teal);
    border-radius: 0 8px 8px 0;
    padding: 14px 16px;
  }

  .concept-term {
    
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--teal);
    margin-bottom: 5px;
  }

  .concept-def {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.5;
  }

  /* ALERT BOXES */
  .alert {
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 0.84rem;
    line-height: 1.55;
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }

  .alert-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

  .alert.info { background: rgba(30,144,214,0.1); border: 1px solid rgba(30,144,214,0.25); color: #7cc8f5; }
  .alert.warn { background: rgba(245,166,35,0.1); border: 1px solid rgba(245,166,35,0.25); color: #f5c77a; }
  .alert.tip { background: #1f1232; border: 1px solid #3a1c63; color: var(--teal); }

  /* STEP LIST */
  .step-list {
    counter-reset: step;
    margin-bottom: 24px;
  }

  .step {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
    align-items: flex-start;
  }

  .step-num {
    counter-increment: step;
    width: 28px; height: 28px;
    background: var(--teal-glow);
    border: 1px solid var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-size: 0.72rem;
    color: var(--teal);
    flex-shrink: 0;
    margin-top: 2px;
  }

  .step-content h4 {
    
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 4px;
  }

  .step-content p {
    font-size: 0.83rem;
    color: var(--text-dim);
    line-height: 1.55;
  }

  /* DIVIDER */
  .divider {
    height: 1px;
    background: var(--border);
    margin: 28px 0;
  }

  /* FOOTER */
  footer {
    border-top: 1px solid var(--border);
    margin-top: 60px;
    padding: 28px 0;
    text-align: center;
    
    font-size: 0.72rem;
    color: var(--text-dim);
  }

  /* RESPONSIVE */
  @media (max-width: 640px) {
    /* .strongdm-training-guide-4 body { padding-top: 56px; } */
    header { padding-top: 0; }
    .main-nav {
      position: absolute;
      top: -60px;
      left: 16px;
      right: 16px;
      background: rgba(7,24,40,0.95);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 12px;
      flex-direction: column;
      gap: 8px;
      transform: translateY(-8px);
      opacity: 0;
      pointer-events: none;
      z-index: 1;
      box-shadow: 0 16px 40px rgba(0,0,0,0.45);
    }
    body.menu-open .main-nav {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
    }
    .nav-tab { flex: none; width: 100%; }
    .flow-row { flex-direction: column; }
    .flow-arrow { transform: rotate(90deg); }
  }

  /* ── MOBILE TOPBAR ── */
  .mobile-topbar {
    display: none;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    padding: 0 16px;
    background: #191127;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    align-items: center;
    gap: 12px;
    z-index: 1;
  }
  .mobile-title {
    min-width: 0;
    
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 34px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
  }
  .menu-btn:hover { border-color: #5e309d; background: #23133a9f; }
  .menu-btn:active { transform: translateY(1px); }
  .menu-btn svg { width: 18px; height: 18px; }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1;
  }
  body.menu-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  @media (max-width: 640px) {
    .mobile-topbar { display: flex; }
  }

  /* SCROLL ANIMATIONS */
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

	  .reveal.visible {
	    opacity: 1;
	    transform: none;
	  }

	  /* ── RESPONSIVE HELPERS ── */
	  img, video, canvas, svg { max-width: 100%; height: auto; }
	  table { max-width: 100%; }
	  @media (max-width: 720px) {
	    table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	  }
	  pre { max-width: 100%; overflow-x: auto; }