  :root {
    --bg: #080c10;
    --surface: #23133a;
    --surface2: #1f1232;
    --border: #3a1c63;
    --accent: #883CF0;
    --accent2: #b33ff3;
    --accent3: #ff6b35;
    --warn: #f0b429;
    --text: #e8fbfd;
    --muted: #d3dadb;
    --danger: #f85149;
    --glow: #2a1647;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  .pam-training-guide {
    background: #191127;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    height: 100vh;
  }

  /* Animated grid background */
  .pam-training-guide::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(0,229,160,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,229,160,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
  }

  /* Glow orbs */
  .pam-training-guide::after {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 0, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
  }

  .container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 80px;
  }

  /* ── HEADER ── */
  .pam-training-guide header {
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
  }

  .header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #291a3e;
    border: 1px solid #3a1c63;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 20px;
  }

  .header-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
  }

  h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 16px;
  }

  h1 span.accent { color: var(--accent); }
  h1 span.dim { color: var(--muted); }

  .header-desc {
    font-size: 16px;
    color: var(--muted);
    max-width: 560px;
    line-height: 1.6;
  }

  .progress-bar-wrap {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .progress-track {
    flex: 1;
    height: 4px;
    background: #282035;
    border-radius: 2px;
    overflow: hidden;
  }

  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0%;
  }

  .progress-label {
    font-size: 12px;
    color: var(--accent);
    min-width: 80px;
    text-align: right;
  }

  /* ── NAV TABS ── */
  .nav-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav-tabs::-webkit-scrollbar { display: none; }

  .tab-btn {
    flex-shrink: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
  }

  .tab-btn:hover {
    border-color: var(--accent);
    color: var(--text);
  }

  .tab-btn.active {
    background: #1f1232;
    border-color: var(--accent);
    color: var(--accent);
  }

  .tab-btn .tab-num {
    font-size: 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    padding: 1px 5px;
  }

  .tab-btn.active .tab-num {
    background: #2a1647;
  }

  .tab-btn.completed .tab-check {
    color: var(--accent);
  }

  /* ── SECTIONS ── */
  .section { display: none; }
  .section.active { display: block; animation: fadeIn 0.3s ease; }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ── CARDS ── */
  .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
    transition: border-color 0.2s;
  }

  .card:hover { border-color: #5e309d; }

  .card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .card-title .icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
  }

  .icon-green { background: #3a1c63; }
  .icon-blue { background: #3a1c63; }
  .icon-orange { background: #3a1c63; }
  .icon-yellow { background: #3a1c63; }
  .icon-red { background: #3a1c63; }

  .card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
  }

  /* ── DEFINITION BOX ── */
  .def-box {
    background: linear-gradient(135deg, #23133a, #684895);
    border: 1px solid #3a1c63;
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 24px;
  }

  .def-box .def-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
  }

  .def-box p {
    font-size: 16px;
    color: var(--text);
    line-height: 1.65;
  }

  /* ── GRID 2-col ── */
  .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  @media (max-width: 680px) { .grid-2 { grid-template-columns: 1fr; } }

  /* ── THREAT LIST ── */
  .threat-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
  }

  .threat-item:last-child { border-bottom: none; }

  .threat-severity {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    align-self: flex-start;
    margin-top: 2px;
  }

  .sev-critical { background: rgba(248,81,73,0.15); color: var(--danger); border: 1px solid rgba(248,81,73,0.3); }
  .sev-high { background: rgba(255,107,53,0.15); color: var(--accent3); border: 1px solid rgba(255,107,53,0.3); }
  .sev-medium { background: rgba(240,180,41,0.15); color: var(--warn); border: 1px solid rgba(240,180,41,0.3); }

  .threat-content h4 { font-size: 15px; margin-bottom: 4px; font-weight: 700; }
  .threat-content p { color: var(--muted); font-size: 14px; line-height: 1.6; }

  /* ── PILLARS ── */
  .pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
  }

  @media (max-width: 680px) { .pillars { grid-template-columns: 1fr; } }

  .pillar {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
    cursor: default;
  }

  .pillar:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px #be52e50f;
  }

  .pillar .pillar-icon { font-size: 28px; margin-bottom: 10px; }
  .pillar h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
  .pillar p { font-size: 13px; color: var(--muted); line-height: 1.5; }

  /* ── SERVICE ACCOUNT DIAGRAM ── */
  .sa-diagram {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
  }

  .sa-diagram::before {
    content: 'ARCHITECTURE';
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 10px;
    color: var(--border);
  }

  .sa-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }

  .sa-node {
    flex: 1;
    min-width: 100px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 10px;
    text-align: center;
    transition: all 0.3s;
  }

  .sa-node:hover {
    border-color: #5e309d;
    box-shadow: 0 0 20px #be52e50f;
  }

  .sa-node .node-icon { font-size: 22px; margin-bottom: 6px; }
  .sa-node .node-label { font-size: 12px; font-weight: 700; color: var(--text); }
  .sa-node .node-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

  .sa-arrow {
    color: var(--accent);
    font-size: 18px;
    flex-shrink: 0;
    opacity: 0.5;
  }

  /* ── CHECKLIST ── */
  .checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
  }

  .checklist-item:last-child { border-bottom: none; }
  .checklist-item:hover { padding-left: 4px; }

  .check-box {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 11px;
  }

  .checklist-item.checked .check-box {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
  }

  .checklist-item .check-text { font-size: 14px; color: var(--text); line-height: 1.5; }
  .checklist-item .check-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
  .checklist-item.checked .check-text { color: var(--muted); text-decoration: line-through; }

  /* ── QUIZ ── */
  .quiz-question {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.4;
  }

  .quiz-question .q-num {
    display: inline-block;    
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 10px;
  }

  .quiz-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }

  .quiz-option {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .quiz-option:hover:not(.disabled) { border-color: #5e309d; background: #1f1232; }

  .quiz-option .opt-letter {
    
    font-size: 12px;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
  }

  .quiz-option.correct { border-color: #77b255; background: #77b25520; }
  .quiz-option.correct .opt-letter { background: #60c090; color: #000; }
  .quiz-option.wrong { border-color: #dc143c; background: #dc143c2b; }
  .quiz-option.wrong .opt-letter { background: #ff7a90; color: #fff; }
  .quiz-option.disabled { cursor: default; }

  .quiz-feedback {
    display: none;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .quiz-feedback.correct { background: #77b25520; border: 1px solid #77b255; color: #60c090; }
  .quiz-feedback.wrong { background: #dc143c2b; border: 1px solid #dc143c; color: #ff7a90; }

  .quiz-nav {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
  }

  .quiz-score {
    
    font-size: 13px;
    color: var(--muted);
    margin-left: auto;
  }

  .quiz-result {
    text-align: center;
    padding: 40px 20px;
  }

  .quiz-result .result-score {
    font-size: 64px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
  }

  .quiz-result .result-label {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 24px;
  }

  /* ── BUTTONS ── */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
  }

  .btn-primary {
    background: var(--accent);
    color: #000;
  }

  .btn-primary:hover { background: #883cf0e0; transform: translateY(-1px); box-shadow: 0 4px 20px #be52e50f; }

  .btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
  }

  .btn-ghost:hover { border-color: var(--text); }

  .btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

  /* ── SECTION HEADING ── */
  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading .sh-tag {
    
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 8px;
  }

  .section-heading h2 {
    font-size: 28px;
    font-weight: 800;
  }

  .section-heading p {
    color: var(--muted);
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.6;
  }

  /* ── CODE BLOCK ── */
  .code-block {
    background: #010409;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    
    font-size: 13px;
    line-height: 1.7;
    overflow-x: auto;
    margin: 16px 0;
  }

  .code-block .comment { color: #6e7681; }
  .code-block .keyword { color: #ff7b72; }
  .code-block .string { color: #a5d6ff; }
  .code-block .value { color: var(--accent); }
  .code-block .field { color: #ffa657; }

  /* ── TAGS ── */
  .tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    
    margin: 2px;
  }

  .tag-green { background: #23133a; color: var(--accent); border: 1px solid #5e309d; }
  .tag-blue { background: #1f1232; color: var(--accent2); border: 1px solid #3a1c63; }
  .tag-orange { background: rgba(255,107,53,0.1); color: var(--accent3); border: 1px solid rgba(255,107,53,0.2); }
  .tag-red { background: rgba(248,81,73,0.1); color: var(--danger); border: 1px solid rgba(248,81,73,0.2); }

  /* ── COMPARE TABLE ── */
  .compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 20px;
  }

  .compare-table th {
    text-align: left;
    padding: 12px 16px;
    background: #883cf050;
    border: 1px solid var(--border);
    font-size: 12px;
    text-transform: uppercase;
    color: var(--muted);
    
  }

  .compare-table td {
    padding: 12px 16px;
    border: 1px solid var(--border);
    color: var(--text);
    line-height: 1.5;
    vertical-align: top;
  }

  .compare-table tr:hover td { background: #1f1232; }

  /* ── BOTTOM NAV ── */
  .bottom-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
  }

  /* ── ACCORDION ── */
  .accordion-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
  }

  .accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    background: var(--surface2);
    font-size: 15px;
    font-weight: 700;
    transition: background 0.2s;
    user-select: none;
  }

  .accordion-header:hover { background: #2a1647; }
  .accordion-header .acc-arrow { transition: transform 0.2s; font-size: 12px; color: var(--muted); }
  .accordion-item.open .acc-arrow { transform: rotate(180deg); }

  .accordion-body {
    display: none;
    padding: 20px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
  }

  .accordion-item.open .accordion-body { display: block; }

  /* ── SCROLL REVEAL ── */
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  /* Stagger delays */
  .reveal:nth-child(1) { transition-delay: 0s; }
  .reveal:nth-child(2) { transition-delay: 0.05s; }
  .reveal:nth-child(3) { transition-delay: 0.1s; }
  .reveal:nth-child(4) { transition-delay: 0.15s; }
  .reveal:nth-child(5) { transition-delay: 0.2s; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #873cf015; }
::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 3px; }