  :root {
    --surface:   #1f1232;
    --card:      #23133a;
    --border:    #3a1c63;
    --accent:    #883CF0;
    --accent2:   #ad3ef2;
    --accent3:   #9f3df1;
    --danger:    #b33ff3;
    --text:      #e2eaf4;
    --muted:     #d6d6d6;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  .delinea-workstation-training {
    background: #191127;
    color: var(--text);
    position: relative;
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
    height: 100vh;
    overflow-y: auto;
  }

  /* SCANLINE EFFECT */
  .delinea-workstation-training::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,201,167,0.012) 2px,
      rgba(0,201,167,0.012) 4px
    );
    pointer-events: none;
    z-index: 1;
  }

  /* ─── LAYOUT ─── */
  .page-wrap { display: flex; min-height: 100vh; }

  /* ─── SIDEBAR ─── */
  .sidebar {
    width: 260px;
    min-width: 260px;
    background: #180f26;
    border-right: 1px solid var(--border);
    padding: 28px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .sidebar-logo {
    padding: 0 24px 28px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
  }

  .sidebar-logo .logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3a1c63, #3a1c638f);
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
  }

  .sidebar-logo .logo-badge svg { width: 14px; height: 14px; }

  .sidebar-title {
    padding: 0 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 10px;
  }

  .nav-section { margin-bottom: 18px; }

  .nav-section-label {
    padding: 0 24px 6px;
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
  }

  .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 24px;
    cursor: pointer;
    font-size: 13.5px;
    color: var(--muted);
    transition: all 0.2s;
    border-left: 2px solid transparent;
    text-decoration: none;
  }

  .nav-item:hover { color: var(--text); background: #23133a9f; }

  .nav-item.active {
    color: var(--accent);
    border-left-color: var(--accent);
    background: #23133a;
    font-weight: 500;
  }

  .nav-item .nav-num {
    font-size: 10px;
    color: var(--muted);
    min-width: 18px;
  }

  .nav-item.active .nav-num { color: var(--accent); }

  .progress-footer {
    margin-top: auto;
    padding: 20px 24px 0;
    border-top: 1px solid var(--border);
  }

  .progress-label {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 8px;
  }

  .progress-bar {
    height: 4px;
    background: #282035;
    border-radius: 2px;
    overflow: hidden;
  }

  .progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s ease;
  }

  /* ─── MAIN ─── */
  .main { flex: 1; overflow-x: hidden; }

  /* ─── HERO ─── */
  .hero {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 64px 72px;
    position: relative;
    overflow: hidden;
  }

  .hero::after {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, #68489555 0%, transparent 70%);
    pointer-events: none;
  }

  .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    
    font-size: 11px;
    color: var(--accent);
    
    text-transform: uppercase;
    margin-bottom: 20px;
  }

  .hero-tag::before {
    content: '';
    width: 24px; height: 1px;
    background: var(--accent);
  }

  h1 {
    
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    
    color: #fff;
    max-width: 680px;
    margin-bottom: 16px;
  }

  h1 span { color: var(--accent); }

  .hero-desc {
    font-size: 15px;
    color: var(--muted);
    max-width: 620px;
    line-height: 1.8;
    margin-bottom: 32px;
  }

  .hero-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
  }

  .meta-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    
    font-size: 12px;
    color: var(--muted);
    padding: 6px 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 4px;
  }

  .meta-chip .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
  }

  /* ─── SECTION ─── */
  .section {
    padding: 60px 72px;
    border-bottom: 1px solid var(--border);
    display: none;
    animation: fadeIn 0.35s ease;
  }

  .section.active { display: block; }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  h2 {
    
    font-size: 26px;
    font-weight: 700;
    
    color: #fff;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 14px;
  }

  h2 .section-num {
    font-size: 13px;
    color: var(--accent);
    background: #1f1232;
    border: 1px solid #5e309d;
    border-radius: 4px;
    padding: 2px 10px;
  }

  .section-subtitle {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 36px;
  }

  h3 {
    
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin: 32px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }

  p { color: var(--muted); margin-bottom: 14px; line-height: 1.8; }

  strong { color: var(--text); font-weight: 500; }

  /* ─── CARDS ─── */
  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 24px 0;
  }

  .card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 22px;
    transition: border-color 0.2s, box-shadow 0.2s;
  }

  .card:hover {
    border-color: #1f1232;
    box-shadow: 0 0 8px #5d309dae;
  }

  .card-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 18px;
  }

  .card-icon.green  { background: #2a1647; }
  .card-icon.blue   { background: #1f1232; }
  .card-icon.amber  { background: rgba(245,158,11,0.12); }
  .card-icon.red    { background: rgba(239,68,68,0.12); }

  .card h4 {
    
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
  }

  .card p { font-size: 13px; margin: 0; color: var(--muted); }

  /* ─── ARCHITECTURE DIAGRAM ─── */
  .arch-diagram {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 32px;
    margin: 28px 0;
    position: relative;
    overflow: hidden;
  }

  .arch-diagram::before {
    content: 'ARCHITECTURE';
    position: absolute;
    top: 16px; right: 20px;
    
    font-size: 9px;
    
    color: var(--muted);
  }

  .arch-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin: 12px 0;
  }

  .arch-node {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 18px;
    text-align: center;
    min-width: 130px;
    position: relative;
    transition: all 0.2s;
    cursor: default;
  }

  .arch-node:hover {
    border-color: var(--accent);
    box-shadow: 0 0 16px #be52e50f;
    transform: translateY(-2px);
  }

  .arch-node .node-label {
    
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    display: block;
  }

  .arch-node .node-sub {
    
    font-size: 10px;
    color: var(--muted);
    display: block;
    margin-top: 3px;
  }

  .arch-node.highlight { border-color: var(--accent); background: #1f1232; }
  .arch-node.highlight .node-label { color: var(--accent); }
  .arch-node.blue-hl { border-color: var(--accent2); background: #2a1647; }
  .arch-node.blue-hl .node-label { color: var(--accent2); }
  .arch-node.amber-hl { border-color: var(--accent3); background: #3a1c63; }
  .arch-node.amber-hl .node-label { color: var(--accent3); }

  .arch-arrow {
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border);
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
  }

  .arch-arrow::before {
    content: '';
    height: 1px;
    background: var(--border);
    width: 100%;
    position: absolute;
  }

  .arch-arrow::after {
    content: '▶';
    font-size: 8px;
    position: absolute;
    right: 0;
    color: var(--muted);
  }

  .arch-arrow.green-arrow::before { background: #180f26; }
  .arch-arrow.green-arrow::after  { color: var(--accent); }

  .arch-label {
    text-align: center;
    
    font-size: 11px;
    color: var(--muted);
    margin-top: 6px;
    
  }

  .arch-divider {
    border: none;
    border-top: 1px dashed var(--border);
    margin: 20px 0;
  }

  /* ─── CODE BLOCK ─── */
  .code-block {
    background: #060a10;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 20px 0;
    overflow-x: auto;
    position: relative;
  }

  .code-block::before {
    content: attr(data-lang);
    position: absolute;
    top: 10px; right: 14px;
    
    font-size: 10px;
    
    color: var(--muted);
    text-transform: uppercase;
  }

  .code-block code {
    
    font-size: 13px;
    color: #fbfbfb;
    line-height: 1.9;
    display: block;
    white-space: pre;
  }

  .code-block code .kw  { color: #d0dbe9; }
  .code-block code .str { color: #86efac; }
  .code-block code .cmt { color: #bdc7d4; font-style: italic; }
  .code-block code .val { color: #fcd34d; }
  .code-block code .key { color: #e2eaf4; }

  /* ─── STEPS ─── */
  .steps { margin: 24px 0; }

  .step {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    position: relative;
  }

  .step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 44px;
    bottom: -24px;
    width: 1px;
    background: var(--border);
  }

  .step-num {
    width: 36px; height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    position: relative;
    z-index: 1;
  }

  .step-content h4 {
    
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    margin-top: 4px;
  }

  .step-content p { font-size: 13.5px; margin-bottom: 10px; }

  /* ─── CALLOUT ─── */
  .callout {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 8px;
    border-left: 3px solid;
    margin: 20px 0;
  }

  .callout.info  { background: #1f1232;  border-color: var(--accent2); }
  .callout.warn  { background: rgba(245,158,11,0.07);  border-color: var(--accent3); }
  .callout.tip   { background: #23133a;   border-color: var(--accent); }
  .callout.danger{ background: rgba(239,68,68,0.07);   border-color: var(--danger); }

  .callout-icon { font-size: 18px; margin-top: 1px; flex-shrink: 0; }

  .callout p { margin: 0; font-size: 13.5px; }
  .callout strong { display: block; margin-bottom: 4px; }

  /* ─── TABLE ─── */
  .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 13.5px;
  }

  .data-table th {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 10px 16px;
    text-align: left;
    
    font-size: 11px;
    
    text-transform: uppercase;
    color: var(--muted);
  }

  .data-table td {
    border: 1px solid var(--border);
    padding: 11px 16px;
    color: var(--muted);
    background: var(--card);
    vertical-align: top;
  }

  .data-table tr:hover td { background: #2a1647; }

  .data-table td strong { color: var(--text); font-weight: 500; }

  .badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    
    font-size: 10px;
    
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
  }

  .badge.green  { background: #1f1232;  color: var(--accent);  border: 1px solid #3a1c63; }
  .badge.blue   { background: #23133a; color: #93c5fd;        border: 1px solid #5e309d; }
  .badge.amber  { background: rgba(245,158,11,0.12); color: #fcd34d;        border: 1px solid rgba(245,158,11,0.3); }
  .badge.red    { background: rgba(239,68,68,0.1);   color: #fca5a5;        border: 1px solid rgba(239,68,68,0.3); }

  /* ─── QUIZ ─── */
  .quiz-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px;
    margin: 20px 0;
  }

  .quiz-question {
    
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.5;
  }

  .quiz-options { display: flex; flex-direction: column; gap: 10px; }

  .quiz-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13.5px;
    color: var(--muted);
  }

  .quiz-option:hover:not(.disabled) { border-color: #3a1c63; color: var(--text); }
  .quiz-option .opt-letter {
    
    font-size: 11px;
    color: var(--muted);
    min-width: 18px;
    padding-top: 1px;
  }

  .quiz-option.correct { border-color: #77b255;
    background: #77b25520;
    color: #60c090; }
  .quiz-option.wrong   { border-color: #dc143c;
    background: #dc143c2b;
    color:#ff7a90; }
  .quiz-option.correct .opt-letter { color: var(--accent); }
  .quiz-option.wrong .opt-letter   { color: var(--danger); }

  .quiz-feedback {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13.5px;
    display: none;
  }

  .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; }

  /* ─── ACCORDION ─── */
  .accordion { margin: 16px 0; }

  .accordion-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
  }

  .accordion-item.open { border-color: #1f1232; }

  .accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    background: var(--card);
    transition: background 0.2s;
  }

  .accordion-header:hover { background: #2a1647; }

  .accordion-header h4 {
    
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .accordion-icon {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--muted);
    transition: transform 0.3s;
    flex-shrink: 0;
  }

  .accordion-item.open .accordion-icon { transform: rotate(45deg); color: var(--accent); }

  .accordion-body {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
  }

  .accordion-item.open .accordion-body {
    padding: 16px 20px 20px;
    max-height: 800px;
  }

  .accordion-body p { font-size: 13.5px; }

  /* ─── SECTION NAV ─── */
  .section-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
  }

  .nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card);
    color: var(--muted);
    cursor: pointer;
    
    font-size: 12px;
    
    transition: all 0.2s;
    text-transform: uppercase;
  }

  .nav-btn:hover { border-color: var(--accent); color: var(--accent); }
  .nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }

  /* ─── TAG LIST ─── */
  .tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }

  .tag {
    
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 3px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    
  }

  /* ─── FLOW DIAGRAM ─── */
  .flow {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 24px 0;
  }

  .flow-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    position: relative;
  }

  .flow-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 38px;
    height: 32px;
    width: 1px;
    background: var(--accent);
    opacity: 0.3;
  }

  .flow-dot {
    width: 30px; height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: var(--card);
    border: 2px solid var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    margin-top: 4px;
    flex-shrink: 0;
  }

  .flow-text {
    flex: 1;
    padding: 10px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 32px;
    font-size: 13.5px;
    color: var(--muted);
  }

  .flow-text strong { font-size: 14px; }

  /* scrollbar */
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: var(--surface); }
  ::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--muted); }

  @media (max-width: 900px) {
    .sidebar { display: none; }
    .hero, .section { padding: 40px 28px; }
  }