  :root {
    --azure: #883CF0;
    --azure-light: #883CF0;
    --azure-dim: #873cf0d2;
    --vault: #883CF0;
    --vault-dim: #873cf0d2;
    --delinea: #E8630A;
    --bg: #23133a;
    --surface: #23133a;
    --surface2: #2b1f3d;
    --surface3: #883CF0;
    --border: #3a1c63;
    --border-active: #5e309d;
    --text: #E4EEF8;
    --text-dim: #d6d6d6;
    --text-muted: #d6d6d6;
    --success: #00B294;
    --warn: #E8A20A;
    --grid: repeating-linear-gradient(rgba(8, 9, 10, 0.03) 0px, rgba(0,120,212,0.03) 1px, transparent 1px, transparent 40px),
            repeating-linear-gradient(90deg, rgba(11, 11, 11, 0.03) 0px, rgba(3, 11, 17, 0.03) 1px, transparent 1px, transparent 40px);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  .azure-keyvault-training-guide {
    background:#180f26;
    color: var(--text);
    font-weight: 300;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
  }

    /* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #873cf015; }
::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 3px; }

  /* BACKGROUND */
  .bg-grid {
    position: absolute; inset: 0; z-index: 0;
    background: var(--grid);
    pointer-events: none;
  }
  .bg-orb {
    position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
    filter: blur(80px); opacity: 0.12;
  }
  .bg-orb-1 { width: 600px; height: 600px; background: #180f26; top: -100px; left: -100px; }
  .bg-orb-2 { width: 400px; height: 400px; background: var(--vault); bottom: 100px; right: -80px; }
  .bg-orb-3 { width: 300px; height: 300px; background: #180f26; top: 50%; left: 50%; transform: translate(-50%,-50%); }

  /* LAYOUT */
  .shell {
    position: relative; z-index: 1;
    max-width: 1100px; margin: 0 auto;
    padding: 0 32px 80px;
  }

  /* HEADER */
  .azure-keyvault-training-guide header {
    padding: 56px 0 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
  }
  .header-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: #23133a;
    border: 1px solid #3a1c63;
    color: var(--azure-light);
    font-size: 11px; text-transform: uppercase;
    padding: 6px 14px; border-radius: 2px;
    margin-bottom: 20px;
  }
  .header-badge::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--azure-light);
    box-shadow: 0 0 8px var(--azure);
    animation: pulse 2s infinite;
  }
  @keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

  h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 12px;
  }
  h1 span.az { color: var(--azure-light); }
  h1 span.kv { color: var(--vault); }

  .header-sub {
    color: var(--text-dim);
    font-size: 16px;
    max-width: 560px;
    line-height: 1.6;
  }

  /* PROGRESS BAR */
  .progress-bar-wrap {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 20px 24px;
    margin-bottom: 40px;
    display: flex; align-items: center; gap: 20px;
  }
  .progress-label {
    font-size: 11px; color: var(--text-muted);
   text-transform: uppercase;
    white-space: nowrap;
  }
  .progress-track {
    flex: 1; height: 4px; background: var(--surface3); border-radius: 2px; overflow: hidden;
  }
  .progress-fill {
    height: 100%; background: linear-gradient(90deg, var(--azure), var(--vault));
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
    width: 0%;
  }
  .progress-pct {
   
    font-size: 13px; color: var(--vault);
    min-width: 36px; text-align: right;
  }

  /* STEP TABS */
  .step-tabs {
    display: flex; gap: 4px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
  }
  .step-tab {
    padding: 10px 20px 12px;
    font-size: 12px;
    color: var(--text-muted);
    background: none; border: none;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    white-space: nowrap;
  }
  .step-tab::after {
    content: ''; position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 2px; background: var(--vault);
    transform: scaleX(0);
    transition: transform 0.25s;
  }
  .step-tab:hover { color: var(--text-dim); }
  .step-tab.active { color: var(--vault); }
  .step-tab.active::after { transform: scaleX(1); }
  .step-tab.done { color: var(--azure-light); }
  .step-tab.done::after { background: var(--azure-light); transform: scaleX(1); opacity: 0.5; }

  /* STEP PANELS */
  .step-panel { display: none; animation: fadeIn 0.35s ease; }
  .step-panel.active { display: block; }
  @keyframes fadeIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform:translateY(0); } }

  /* STEP HEADER */
  .step-header {
    display: flex; align-items: flex-start; gap: 20px;
    margin-bottom: 28px;
  }
  .step-number {
    width: 52px; height: 52px;
    border: 1px solid var(--border-active);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 800;
    color: var(--vault);
    background: #23133a;
    flex-shrink: 0;
  }

  .step-title {
    
    font-size: 22px; font-weight: 700;
    margin-bottom: 4px;
  }
  .step-desc {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
  }

  /* TASK CARDS */
  .task-section { margin-bottom: 28px; }
  .task-section-label {
    font-size: 11px;
    text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 12px;
  }

  .task-card {
    background: #23133a;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 18px 20px;
    margin-bottom: 8px;
    display: flex; gap: 16px; align-items: flex-start;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
  }
  .task-card:hover { border-color: #5e309d; background: #1f1232; }
  .task-card.checked { border-color: var(--border-active); background: #2a1647; }

  .task-checkbox {
    width: 20px; height: 20px;
    border: 1.5px solid var(--text-muted);
    border-radius: 2px;
    flex-shrink: 0; margin-top: 1px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    background: transparent;
  }
  .task-card.checked .task-checkbox {
    background: var(--vault);
    border-color: var(--vault);
  }
  .task-checkbox svg { opacity: 0; transition: opacity 0.15s; }
  .task-card.checked .task-checkbox svg { opacity: 1; }

  .task-text-wrap { flex: 1; }
  .task-text {
    font-size: 14px; line-height: 1.5;
    color: var(--text);
    transition: color 0.2s;
  }
  .task-card.checked .task-text { color: var(--text-dim); text-decoration: line-through; text-decoration-color: var(--text-muted); }
  .task-note {
    font-size: 12px; color: var(--text-muted);
    margin-top: 4px; line-height: 1.4;
    font-style: italic;
  }

  /* WARNING CALLOUT */
  .callout {
    border-radius: 4px;
    padding: 14px 18px;
    margin: 20px 0;
    display: flex; gap: 12px; align-items: flex-start;
    font-size: 13px; line-height: 1.5;
  }
  .callout.warn {
    background: rgba(232,162,10,0.08);
    border: 1px solid rgba(232,162,10,0.25);
    color: #E8C96A;
  }
  .callout.info {
    background: #23133a;
    border: 1px solid #3a1c63;
    color: var(--azure-light);
  }
  .callout.success {
    background: #23133a;
    border: 1px solid #3a1c63;
    color: var(--vault);
  }
  .callout-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

  /* CODE BLOCK */
  .code-block {
    background: var(--surface3);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 14px 18px;
   
    font-size: 12px;
    color: #7ECFFF;
    margin: 12px 0;
    overflow-x: auto;
    position: relative;
  }
  .code-block .comment { color: var(--text-muted); }
  .code-block .key { color: var(--vault); }
  .code-block .val { color: #FFCF82; }

  /* DIAGRAM */
  .diagram {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 28px 20px;
    margin: 24px 0;
    display: flex; align-items: center; justify-content: center;
    gap: 0;
    flex-wrap: wrap;
  }
  .diag-box {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 12px 18px;
    text-align: center;
    min-width: 130px;
  }
  .diag-box .diag-icon { font-size: 24px; margin-bottom: 6px; }
  .diag-box .diag-label {
    font-size: 11px; 
    color: var(--text-dim);
  }
  .diag-box.azure-box { border-color: rgba(0,120,212,0.4); }
  .diag-box.vault-box { border-color: rgba(0,178,148,0.4); }
  .diag-box.delinea-box { border-color: rgba(232,99,10,0.4); }
  .diag-arrow {
    font-size: 18px; color: var(--text-muted);
    padding: 0 8px;
    align-self: center;
  }

  /* QUIZ */
  .quiz-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 22px 24px;
    margin: 24px 0;
  }
  .quiz-q {
    
    font-size: 15px; font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
  }
  .quiz-q::before {
    content: 'Knowledge Check  ';
    font-size: 10px;
    color: var(--delinea);
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
  }
  .quiz-options { display: flex; flex-direction: column; gap: 8px; }
  .quiz-opt {
    padding: 12px 16px;
    background: #883cf050;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px; color: var(--text-dim);
    transition: all 0.18s;
    text-align: left;
  }
  .quiz-opt:hover:not(.disabled) { border-color: #3a1c63; color: var(--text); }
  .quiz-opt.correct { background: #77b25520; border-color: #77b255; color: #60c090; }
  .quiz-opt.wrong { background: #dc143c2b; border-color: #dc143c; color: #ff7a90; }
  .quiz-opt.disabled { cursor: default; }
  .quiz-feedback {
    margin-top: 12px;
    font-size: 13px; line-height: 1.5;
    display: none;
  }
  .quiz-feedback.show { display: block; }
  .quiz-feedback.ok { color: #60c090; }
  .quiz-feedback.fail { color: #ff7a90; }

  /* NAVIGATION */
  .nav-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
  }
  .btn {
    padding: 11px 22px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid;
    transition: all 0.2s;
    text-transform: uppercase;
  }
  .btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text-muted);
  }
  .btn-ghost:hover { border-color: var(--azure); color: #23133a; }
  .btn-primary {
    background: var(--azure);
    border-color: var(--azure);
    color: #fff;
  }
  .btn-primary:hover { background: #883cf0e0; border-color: #3a1c63; }
  .btn:disabled { opacity: 0.3; cursor: default; }

  /* COMPLETION */
  .completion {
    text-align: center;
    padding: 48px 24px;
    display: none;
  }
  .completion.show { display: block; animation: fadeIn 0.5s ease; }
  .completion-badge {
    width: 80px; height: 80px;
    background: rgba(0,178,148,0.1);
    border: 2px solid var(--vault);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
    margin: 0 auto 24px;
    animation: pop 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
  }
  @keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
  .completion h2 {
    
    font-size: 28px; font-weight: 800;
    margin-bottom: 10px;
  }
  .completion p { color: var(--text-dim); font-size: 15px; max-width: 400px; margin: 0 auto; }

  /* SUMMARY TABLE */
  .summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 24px 0;
  }
  .summary-table th {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
  }
  .summary-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #3a1c63;
    color: var(--text-dim);
    vertical-align: top;
    line-height: 1.5;
  }
  .summary-table td:first-child { color: var(--azure-light); font-weight: 500; width: 200px; }

  /* RESPONSIVE */
  @media (max-width: 640px) {
    .step-tabs { overflow-x: auto; }
    .diagram { flex-direction: column; gap: 8px; }
    .diag-arrow { transform: rotate(90deg); }
  }