  :root {
    --bg: #060c14;
    --bg2: #23133a;
    --bg3: #b43ff34e;
    --surface: #23133a;
    --border: #3a1c63;
    --accent: #883CF0;
    --accent2: #b33ff3;
    --accent3: #00ffa3;
    --warn: #ff6b35;
    --text: #e2eaf4;
    --text-dim: #d6d6d6;
    --text-muted: #d6d6d6;
    --delinea: #b33ff3;
    --delinea2: #ad3ef2;
    --gold: #9b6dff;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  .pam-training-guide-3 {
    background: #191127;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    height: 100vh;
  }

  /* Grid background */
  .pam-training-guide-3::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255, 0, 230, 0.047) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 0, 204, 0.034) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
  }

  /* ── HEADER ── */
  .pam-training-guide-3 header {
    position: relative;
    z-index: 1;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    border-bottom: 1px solid var(--border);
    background: #180f26;
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
  }

  .logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .logo-icon {
    width: 36px; height: 36px;
    background: var(--delinea);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: white;
  }

  .logo-text {
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    line-height: 1.2;
  }
  .logo-sub { font-size: 11px; color: var(--text-dim); font-weight: 400; }

  .progress-pill {
    font-size: 11px;
    color: var(--accent);
    background: #291a3e;
    border: 1px solid #3a1c63;
    padding: 5px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .progress-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }

  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
  }

  /* ── HERO ── */
  .hero {
    position: relative;
    padding: 80px 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .hero-label {
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .hero-label::before {
    content: '';
    width: 24px; height: 1px;
    background: var(--accent);
  }

  h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 20px;
  }

  .h1-accent { color: var(--accent); }
  .h1-delinea { color: var(--delinea2); }

  .hero-desc {
    max-width: 620px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dim);
    margin-bottom: 40px;
  }

  .module-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .module-pill {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid;
  }
  .module-pill.blue { color: var(--accent); border-color: #3a1c63; background: #1f1232; }
  .module-pill.blue:hover, .module-pill.blue.active { background: #2a1647; border-color: var(--accent); }
  .module-pill.red { color: #dc143c; border-color: #e05252; background: #dc143c2b; }
  .module-pill.red:hover, .module-pill.red.active { background: rgba(218, 86, 57, 0.252); border-color: #dc143c; }
  .module-pill.green { color: var(--accent3); border-color: rgba(0,255,163,0.3); background: rgba(0,255,163,0.06); }
  .module-pill.green:hover, .module-pill.green.active { background: rgba(0,255,163,0.15); border-color: var(--accent3); }

  /* ── NAV TABS ── */
  .tab-nav {
    position: relative;
    display: flex;
    border-bottom: 1px solid var(--border);
    padding: 0 40px;
    background: #180f26;
    gap: 0;
    max-width: 100%;
    overflow-x: auto;
  }

  .tab-btn {
    padding: 16px 28px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color 0.2s;
  }

  .tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s;
  }

  .tab-btn.active { color: var(--text); }
  .tab-btn.active::after { transform: scaleX(1); }
  .tab-btn:hover { color: var(--text-dim); }

  .tab-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    border-radius: 4px;
    background: var(--bg3);
    font-size: 10px;
    margin-right: 8px;
    color: var(--text-dim);
  }

  .tab-btn.active .tab-num {
    background: var(--accent2);
    color: white;
  }

  /* ── MAIN CONTENT ── */
  .main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 40px 80px;
    position: relative;
  }

  .tab-panel { display: none; }
  .tab-panel.active {
    display: block;
    animation: fadeUp 0.4s ease;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ── SECTION HEADING ── */
  .section-head {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
  }

  .section-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
  }
  .icon-blue { background: #1f1232; border: 1px solid #5e309d; }
  .icon-red { background: #1f1232; border: 1px solid #5e309d; }
  .icon-green { background: #1f1232; border: 1px solid #5e309d; }

  .section-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .section-desc {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
    max-width: 600px;
  }

  /* ── CARDS ── */
  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
  }

  .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.2s, transform 0.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }

  .card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .card.blue-card::before { background: linear-gradient(90deg, var(--accent), transparent); }
  .card.red-card::before { background: linear-gradient(90deg, var(--delinea), transparent); }
  .card.green-card::before { background: linear-gradient(90deg, var(--accent3), transparent); }

  .card:hover { border-color: #5e309d; transform: translateY(-2px); }
  .card:hover::before { opacity: 1; }

  .card-icon { font-size: 28px; margin-bottom: 14px; }

  .card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
  }

  .card-body {
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-dim);
  }

  .card-tag {
    display: inline-block;
    margin-top: 12px;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--accent);
    background: #291a3e;
    border: 1px solid #3a1c63;
  }
  .card-tag.red { color: #ff7a90; background: rgba(232,52,10,0.08); border-color: rgba(232,52,10,0.15); }
  .card-tag.green { color: var(--accent3); background: rgba(0,255,163,0.08); border-color: rgba(0,255,163,0.15); }

  /* ── EXPANDABLE ACCORDION ── */
  .accordion {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
  }

  .accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: var(--surface);
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
  }

  .accordion-header:hover { background: var(--bg3); }

  .accordion-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
  }

  .accordion-badge {
    font-size: 9px;
    padding: 2px 7px;
    border-radius: 3px;
    background: #291a3e;
    color: var(--accent);
    border: 1px solid #3a1c63;
    text-transform: uppercase;
  }

  .accordion-arrow {
    color: var(--text-dim);
    transition: transform 0.3s;
    font-size: 18px;
    line-height: 1;
  }

  .accordion.open .accordion-arrow { transform: rotate(180deg); }

  .accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .accordion.open .accordion-body { max-height: 800px; }

  .accordion-content {
    padding: 24px;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-dim);
  }

  /* ── FEATURE LIST ── */
  .feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
  }

  .feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-dim);
  }

  .feature-list li::before {
    content: '▸';
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 11px;
  }

  .feature-list.red li::before { color: var(--delinea2); }
  .feature-list.green li::before { color: var(--accent3); }

  /* ── STAT BLOCKS ── */
  .stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 32px 0;
  }

  .stat-block {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 22px;
    text-align: center;
  }

  .stat-num {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
  }

  .stat-label {
    font-size: 11px;
    color: var(--text-dim);
  }

  /* ── THREAT TABLE ── */
  .threat-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 13px;
  }

  .threat-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    background: var(--bg3);
  }

  .threat-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(26,48,80,0.5);
    vertical-align: top;
    line-height: 1.5;
    color: var(--text-dim);
  }

  .threat-table tr:hover td { background: var(--bg3); color: var(--text); }

  .risk-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
  }
  .risk-critical { background: rgba(232,52,10,0.15); color: #ff6b35; border: 1px solid rgba(232,52,10,0.3); }
  .risk-high { background: rgba(245,197,24,0.1); color: var(--gold); border: 1px solid rgba(245,197,24,0.25); }
  .risk-med { background: #291a3e; color: var(--accent); border: 1px solid #3a1c63; }

  /* ── ARCHITECTURE DIAGRAM ── */
  .arch-diagram {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    margin: 32px 0;
    position: relative;
    overflow: hidden;
  }

  .arch-diagram::before {
    content: 'ARCHITECTURE';
    position: absolute;
    top: 16px; right: 20px;
    font-size: 9px;
    color: var(--text-muted);
  }

  .arch-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dim);
  }

  .arch-flow {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  .arch-node {
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 12px;
    text-align: center;
    min-width: 110px;
    line-height: 1.4;
  }
  .arch-node.primary { background: #1f1232; border: 1px solid #5e309d; color: #dbe8f0; }
  .arch-node.vault { background: #77b25520; border: 1px solid rgba(0,255,163,0.35); color: var(--accent3); }
  .arch-node.delinea-node { background: rgba(232,52,10,0.12); border: 1px solid rgba(232,52,10,0.35); color: var(--delinea2); }
  .arch-node.grey { background: var(--bg3); border: 1px solid var(--border); color: var(--text-dim); }

  .arch-arrow {
    color: var(--text-muted);
    font-size: 18px;
    padding: 0 8px;
    flex-shrink: 0;
  }

  /* ── CALLOUT ── */
  .callout {
    border-radius: 10px;
    padding: 18px 22px;
    margin: 20px 0;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.65;
  }
  .callout-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
  .callout.info { background: #1f1232; border: 1px solid #5e309d; color: #d8e7ed; }
  .callout.warn { background: rgba(255,107,53,0.07); border: 1px solid rgba(255,107,53,0.25); color: #f0a07a; }
  .callout.success { background: rgba(0,255,163,0.06); border: 1px solid rgba(0,255,163,0.2); color: #7ae8c4; }

  /* ── QUIZ ── */
  .quiz-wrap {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px;
    margin-top: 40px;
  }

  .quiz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
  }

  .quiz-title {
    font-size: 18px;
    font-weight: 700;
  }

  .quiz-score {
    font-size: 12px;
    color: var(--accent);
    background: #23133a;
    border: 1px solid #3a1c63;
    padding: 6px 14px;
    border-radius: 20px;
  }

  .quiz-q {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
  }
  .quiz-q:last-of-type { border-bottom: none; }

  .q-text {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 14px;
    line-height: 1.6;
    color: var(--text);
  }

  .q-num {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: block;
  }

  .q-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .q-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    color: var(--text-dim);
    user-select: none;
  }

  .q-opt:hover { border-color:#5e309d; color: var(--text); }
  .q-opt.selected { border-color: #5e309d; color: var(--text); background: #1f1232; }
  .q-opt.correct { border-color: var(--accent3); color: var(--accent3); background: rgba(0,255,163,0.07); }
  .q-opt.wrong { border-color: var(--warn); color: var(--warn); background: rgba(255,107,53,0.07); }

  .q-opt-letter {
    width: 22px; height: 22px;
    border-radius: 5px;
    background: var(--bg3);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
    color: var(--text-dim);
    border: 1px solid var(--border);
  }

  .quiz-btn {
    margin-top: 24px;
    padding: 12px 28px;
    background: var(--accent2);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
  }
  .quiz-btn:hover { opacity: 0.9; transform: translateY(-1px); }
  .quiz-btn.reset { background: var(--bg3); color: var(--text-dim); border: 1px solid var(--border); margin-left: 12px; }

  .q-feedback {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 12px;
    display: none;
    line-height: 1.5;
  }
  .q-feedback.show { display: block; }
  .q-feedback.ok { background: rgba(0,255,163,0.07); color: var(--accent3); border: 1px solid rgba(0,255,163,0.2); }
  .q-feedback.bad { background: rgba(255,107,53,0.07); color: var(--warn); border: 1px solid rgba(255,107,53,0.2); }

  /* ── RESILIENT SECRETS SECTION ── */
  .rs-banner {
    background: linear-gradient(135deg, #dc143c2b, #684895);
    border: 1px solid rgba(232,52,10,0.3);
    border-radius: 14px;
    padding: 32px 36px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
  }

  .rs-banner::after {
    content: 'RESILIENT SECRETS';
    position: absolute;
    right: -20px; top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 60px;
    font-weight: 800;
    color: #8547dc5e;
    pointer-events: none;
    white-space: nowrap;
  }

  .rs-banner h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
  }
  .rs-banner p { font-size: 13px; color: var(--text-dim); max-width: 540px; line-height: 1.65; }

  .delinea-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--delinea);
    border-radius: 6px;
    font-size: 10px;
    color: white;
    margin-bottom: 12px;
    font-weight: 500;
  }

  /* ── DR TIMELINE ── */
  .dr-timeline {
    position: relative;
    padding-left: 32px;
    margin: 28px 0;
  }

  .dr-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent2));
  }

  .dr-step {
    position: relative;
    margin-bottom: 28px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.2s;
  }
  .dr-step:hover { border-color: var(--delinea2); }

  .dr-step::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--delinea);
    border: 2px solid var(--bg);
    box-shadow: 0 0 12px rgba(232,52,10,0.5);
  }

  .dr-step-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
  }

  .dr-step-body {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.6;
  }

  /* ── COMPARISON TABLE ── */
  .compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 28px 0;
  }

  @media (max-width: 700px) {
    .compare-grid { grid-template-columns: 1fr; }
    .arch-flow { flex-direction: column; }
    .arch-arrow { transform: rotate(90deg); }
  }

  .compare-card {
    border-radius: 12px;
    padding: 24px;
    border: 1px solid;
  }
  .compare-card.without {
    background: rgba(255,107,53,0.05);
    border-color: rgba(255,107,53,0.2);
  }
  .compare-card.with {
    background: #77b25520;
    border-color: rgba(0,255,163,0.2);
  }
  .compare-head {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .check-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
  .check-list li {
    font-size: 12px;
    line-height: 1.55;
    padding-left: 20px;
    position: relative;
    color: var(--text-dim);
  }
  .check-list li::before {
    position: absolute;
    left: 0;
  }
  .check-list.bad li::before { content: '✗'; color: var(--warn); }
  .check-list.good li::before { content: '✓'; color: var(--accent3); }

  /* ── TOOLTIP ── */
  .tooltip-wrap { position: relative; display: inline-block; }
  .tooltip-trigger {
    border-bottom: 1px dashed var(--text-muted);
    cursor: help;
    color: var(--accent);
  }
  .tooltip-box {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    color: var(--text-dim);
    width: 220px;
    line-height: 1.5;
    z-index: 1;
    pointer-events: none;
    margin-bottom: 8px;
    font-style: normal;
  }
  .tooltip-wrap:hover .tooltip-box { display: block; }

  /* ── SCROLL PROGRESS ── */
  .scroll-bar {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--delinea), var(--accent));
    z-index: 1;
    transition: width 0.1s;
  }

  /* ── CERT BANNER ── */
  .cert-wrap {
    margin-top: 48px;
    padding: 32px 36px;
    background: linear-gradient(135deg, #23133a, #3a1c6350);
    border: 1px solid #3a1c63;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  @media (max-width: 600px) {
    .cert-wrap { flex-direction: column; }
    .main { padding: 32px 20px 60px; }
    .pam-training-guide-3 header { padding: 0 20px; }
    .tab-nav { padding: 0 20px; }
    .hero { padding: 48px 20px 40px; }
  }

  .cert-text h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
  }
  .cert-text p { font-size: 13px; color: var(--text-dim); }

  .cert-btn {
    padding: 12px 24px;
    background: var(--accent2);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
  }
  .cert-btn:hover { opacity: 0.85; }

  /* Highlight text */
  .hl { color: var(--accent); }
  .hl-r { color: var(--delinea2); }
  .hl-g { color: var(--accent3); }
  strong { color: var(--text); font-weight: 600; }

  /* Separator */
  .sep {
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
    margin: 32px 0;
  }

  .h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
  }

  .mono {font-size: 12px; }


  
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #873cf015; }
::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 3px; }