  :root {
    --bg: #3a1c63;
    --bg2: #2a1647;
    --bg3: #23133a;
    --surface: #1f1232;
    --surface2: #883cf050;
    --border: #3a1c63;
    --border2: #5e309d;
    --cyan: #883CF0;
    --cyan-dim: #bbced3;
    --amber: #ad3ef2;
    --amber-dim: #f0efed;
    --green: #b33ff3;
    --red: #873cf075;
    --purple: #a855f7;
    --text: #d4e2f8;
    --text2: #d6d6d6;
    --text3: #e8f0ff;
    --white: #eef4ff;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  .hybrid-identity-training {
    background: #191127;
    color: var(--text);
    position: relative;
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* Grid background */
  .hybrid-identity-training::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(var(--border) 1px, transparent 1px),
      linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
  }

  .app {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
  }

  /* ── SIDEBAR ────────────────────────────────────── */
  .sidebar {
    width: 280px;
    min-height: 100vh;
    background: #180f26;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
  }

  .sidebar-header {
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--border);
  }

  .module-badge {
    font-size: 10px;
    color: var(--cyan);
    text-transform: uppercase;
    background: #1f1232;
    border: 1px solid #3a1c63;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 10px;
  }

  .sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
  }

  .sidebar-title span { color: var(--cyan); }

  /* Progress */
  .progress-area {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
  }

  .progress-label {
    display: flex;
    justify-content: space-between;
    
    font-size: 11px;
    color: var(--text3);
    margin-bottom: 8px;
    text-transform: uppercase;
    
  }

  .progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
  }

  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--green));
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0%;
  }

  /* Nav */
  .nav-section {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-section-label {
    
    font-size: 10px;
    
    color: var(--text3);
    text-transform: uppercase;
    padding: 4px 20px 8px;
  }

  .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    position: relative;
  }

  .nav-item:hover { background: #23133a9f; }

  .nav-item.active {
    background: #23133a;
    border-left-color: var(--cyan);
  }

  .nav-item.completed .nav-num { background: var(--green); color: #000; }
  .nav-item.completed .nav-text { color: var(--text2); }

  .nav-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--surface2);
    border: 1px solid var(--border2);
    
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text3);
    flex-shrink: 0;
    transition: all 0.3s;
  }

  .nav-item.active .nav-num {
    background: var(--cyan);
    color: #000;
    border-color: var(--cyan);
    font-weight: 700;
  }

  .nav-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text2);
    line-height: 1.3;
  }

  .nav-item.active .nav-text { color: var(--white); }

  .sidebar-footer {
    margin-top: auto;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
  }

  .delinea-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    
    font-size: 16px;
    font-weight: 700;
    color: var(--text2);
    
  }

  .delinea-logo .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
  }

  /* ── MAIN ────────────────────────────────────────── */
  .main {
    flex: 1;
    overflow-y: auto;
    max-height: 100vh;
  }

  .section {
    display: none;
    padding: 48px 48px 80px;
    max-width: 900px;
    animation: fadeIn 0.4s ease;
  }

  .section.active { display: block; }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Section header */
  .section-eyebrow {
    
    font-size: 11px;
    
    color: var(--cyan);
    text-transform: uppercase;
    margin-bottom: 8px;
  }

  .section-title {
    
    font-size: 46px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.0;
    
    margin-bottom: 6px;
  }

  .section-title .accent { color: var(--cyan); }
  .section-title .accent2 { color: var(--amber); }

  .section-subtitle {
    font-size: 16px;
    color: var(--text2);
    max-width: 620px;
    margin-bottom: 40px;
    line-height: 1.65;
  }

  /* Divider */
  .divider {
    height: 1px;
    background: linear-gradient(90deg, var(--border2), transparent);
    margin: 36px 0;
  }

  /* ── CARDS ──────────────────────────────────────── */
  .card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
  }

  .card:hover { border-color: var(--border2); }

  .card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .card-title {
    
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    
  }

  .card-body {
    font-size: 14px;
    color: var(--text2);
    line-height: 1.6;
  }

  /* Stat cards */
  .stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
  }

  .stat-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
  }

  .stat-num {
    
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
  }

  .stat-label {
    font-size: 12px;
    color: var(--text3);
    
    text-transform: uppercase;
    
  }

  /* Challenge cards (expandable) */
  .challenge-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
  }

  .challenge-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
  }

  .challenge-header:hover { background: var(--surface); }

  .challenge-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
  }

  .challenge-info { flex: 1; }

  .challenge-title {
    
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    
  }

  .challenge-sub {
    font-size: 12px;
    color: var(--text3);
    
  }

  .challenge-chevron {
    color: var(--text3);
    font-size: 16px;
    transition: transform 0.3s;
  }

  .challenge-card.open .challenge-chevron { transform: rotate(180deg); }

  .challenge-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .challenge-card.open .challenge-body { max-height: 600px; }

  .challenge-content {
    padding: 0 22px 22px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
  }

  .challenge-content p {
    font-size: 14px;
    color: var(--text2);
    margin-bottom: 12px;
    line-height: 1.65;
  }

  .challenge-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .challenge-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: var(--text2);
  }

  .challenge-list li::before {
    content: '▸';
    color: var(--cyan);
    flex-shrink: 0;
    margin-top: 1px;
  }

  /* ── ARCH DIAGRAM ───────────────────────────────── */
  .arch-diagram {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px;
    position: relative;
    overflow: hidden;
  }

  .arch-diagram::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(0, 212, 255, 0.04), transparent);
    pointer-events: none;
  }

  .arch-title {
    
    font-size: 11px;
    
    color: var(--text3);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 28px;
  }

  /* Control plane banner */
  .control-plane {
    background: linear-gradient(135deg, #3a1c63, #684895);
    border: 1px solid #3a1c63;
    border-radius: 10px;
    padding: 16px 20px;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
  }

  .control-plane:hover {
    background: linear-gradient(135deg, #1f1232, #23133a);
    border-color: var(--cyan);
    box-shadow: 0 0 24px #be52e50f;
  }

  .control-plane-label {
    
    font-size: 22px;
    font-weight: 800;
    color: var(--cyan);
    
  }

  .control-plane-sub {
    font-size: 11px;
    color: #fff;
    text-transform: uppercase;
  }

  .connectors {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
  }

  .connector-line {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .arch-nodes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .arch-node {
    border-radius: 8px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid;
    position: relative;
  }

  .arch-node:hover { transform: translateY(-2px); }

  .arch-node.aws { background: rgba(245, 158, 11, 0.06); border-color: rgba(245, 158, 11, 0.3); }
  .arch-node.azure { background: #23133a; border-color: #3a1c63; }
  .arch-node.ad { background: rgba(168, 85, 247, 0.06); border-color: rgba(168, 85, 247, 0.3); }
  .arch-node.linux { background: rgba(16, 217, 128, 0.06); border-color: rgba(16, 217, 128, 0.3); }

  .arch-node:hover.aws { box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15); }
  .arch-node:hover.azure { box-shadow: 0 4px 20px #be52e50f; }
  .arch-node:hover.ad { box-shadow: 0 4px 20px rgba(168, 85, 247, 0.15); }
  .arch-node:hover.linux { box-shadow: 0 4px 20px rgba(16, 217, 128, 0.15); }

  .arch-node-icon { font-size: 26px; margin-bottom: 8px; }

  .arch-node-name {
    
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
    
  }

  .arch-node-tag {
    
    font-size: 10px;
    
    text-transform: uppercase;
  }

  .aws .arch-node-tag { color: var(--amber); }
  .azure .arch-node-tag { color: #60a5fa; }
  .ad .arch-node-tag { color: var(--purple); }
  .linux .arch-node-tag { color: var(--green); }

  /* Node tooltip */
  .node-tooltip {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg);
    border: 1px solid var(--border2);
    border-radius: 6px;
    padding: 12px 14px;
    width: 200px;
    z-index: 1;
    text-align: left;
    font-size: 12px;
    color: var(--text2);
    line-height: 1.5;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }

  .arch-node:hover .node-tooltip { display: block; }

  /* ── POLICY TABS ─────────────────────────────────── */
  .tab-bar {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    overflow-x: auto;
  }

  .tab {
    padding: 10px 18px;
    
    font-size: 12px;
    font-weight: 500;
    color: var(--text3);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    text-transform: uppercase;
    
  }

  .tab:hover { color: var(--text2); }

  .tab.active {
    color: var(--white);
    border-bottom-color: var(--cyan);
  }

  .tab-panel { display: none; }
  .tab-panel.active { display: block; animation: fadeIn 0.3s ease; }

  /* Policy table */
  .policy-table {
    width: 100%;
    border-collapse: collapse;
  }

  .policy-table th {
    
    font-size: 11px;
    
    text-transform: uppercase;
    color: var(--text3);
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
  }

  .policy-table td {
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text2);
    border-bottom: 1px solid var(--border);
    vertical-align: top;
  }

  .policy-table tr:last-child td { border-bottom: none; }
  .policy-table tr:hover td { background: var(--surface); }

  .tag {
    display: inline-block;
    
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 3px;
    
    margin-right: 4px;
  }

  .tag-cyan { background: #1f1232; color: var(--cyan); border: 1px solid #3a1c63; }
  .tag-amber { background: rgba(245, 158, 11, 0.1); color: var(--amber); border: 1px solid rgba(245,158,11,0.2); }
  .tag-green { background: rgba(16, 217, 128, 0.1); color: var(--green); border: 1px solid rgba(16,217,128,0.2); }
  .tag-red { background: rgba(240, 64, 96, 0.1); color: var(--red); border: 1px solid rgba(240,64,96,0.2); }
  .tag-purple { background: rgba(168, 85, 247, 0.1); color: var(--purple); border: 1px solid rgba(168,85,247,0.2); }

  /* Policy comparison */
  .platform-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: var(--bg2);
    border-radius: 8px;
    border: 1px solid var(--border);
  }

  .platform-icon { font-size: 28px; }

  .platform-name {
    
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    
  }

  .platform-desc {
    font-size: 13px;
    color: var(--text2);
  }

  .feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
  }

  .feature-item {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px 16px;
  }

  .feature-label {
    
    font-size: 11px;
    text-transform: uppercase;
    
    color: var(--text3);
    margin-bottom: 4px;
  }

  .feature-val {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
  }

  /* ── DELINEA SECTION ─────────────────────────────── */
  .capability-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 28px;
  }

  .capability-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 16px;
    transition: all 0.3s;
    cursor: default;
  }

  .capability-card:hover {
    border-color: var(--cyan-dim);
    background: var(--surface);
    transform: translateY(-2px);
  }

  .cap-icon {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .cap-title {
    
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
    
  }

  .cap-desc {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.55;
  }

  /* Flow diagram */
  .flow-diagram {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 24px 0;
    overflow-x: auto;
    padding: 8px 0;
  }

  .flow-step {
    flex-shrink: 0;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    min-width: 140px;
    text-align: center;
  }

  .flow-step-num {
    
    font-size: 10px;
    color: var(--text3);
    
    text-transform: uppercase;
    margin-bottom: 6px;
  }

  .flow-step-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--white);
  }

  .flow-arrow {
    flex-shrink: 0;
    color: var(--cyan);
    font-size: 18px;
    padding: 0 8px;
    opacity: 0.5;
  }

  /* ── QUIZ ────────────────────────────────────────── */
  .quiz-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 16px;
  }

  .quiz-q-num {
    
    font-size: 11px;
    
    color: var(--cyan);
    text-transform: uppercase;
    margin-bottom: 8px;
  }

  .quiz-q-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 18px;
    line-height: 1.5;
  }

  .quiz-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .quiz-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: var(--text2);
  }

  .quiz-option:hover {
    border-color: var(--border2);
    background: var(--surface);
    color: var(--text);
  }

  .quiz-option.selected {
    border-color: var(--cyan);
    background: rgba(0, 212, 255, 0.06);
    color: var(--white);
  }

  .quiz-option.correct {
    border-color: #77b255;
    background: #77b25520;
    color: #60c090;
  }

  .quiz-option.incorrect {
    border-color: #dc143c;
    background: #dc143c2b;
    color:#ff7a90;
    opacity: 0.7;
  }

  .quiz-opt-letter {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--surface2);
    
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text3);
    flex-shrink: 0;
  }

  .quiz-option.selected .quiz-opt-letter {
    background: var(--cyan);
    color: #000;
  }

  .quiz-feedback {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 13px;
    display: none;
  }

  .quiz-feedback.show { display: block; }
  .quiz-feedback.correct-fb { background: #77b25520;
    border: 1px solid #77b255;
    color: #60c090; }
  .quiz-feedback.incorrect-fb { background: #dc143c2b;
    border: 1px solid #dc143c;
    color: #ff7a90; }

  /* Score card */
  .score-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 36px;
    text-align: center;
    display: none;
  }

  .score-card.show { display: block; animation: fadeIn 0.5s ease; }

  .score-big {
    
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
  }

  .score-label {
    
    font-size: 13px;
    
    color: var(--text3);
    text-transform: uppercase;
    margin-bottom: 20px;
  }

  .score-msg {
    font-size: 16px;
    color: var(--text2);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
  }

  /* ── BUTTONS ─────────────────────────────────────── */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 6px; 
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
  }

  .btn-primary {
    background: var(--cyan);
    color: #000;
  }

  .btn-primary:hover {
    background: #883cf0e0;
    box-shadow: 0 0 16px #be52e50f;
  }

  .btn-secondary {
    background: transparent;
    color: var(--text2);
    border: 1px solid var(--border2);
  }

  .btn-secondary:hover {
    background: var(--surface);
    color: var(--white);
  }

  .btn-nav-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
  }

  /* Info callout */
  .callout {
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    border-left: 3px solid;
    font-size: 14px;
    line-height: 1.6;
  }

  .callout-info {
    background: #1f1232;
    border-color: var(--cyan);
    color: var(--text);
  }

  .callout-warn {
    background: rgba(245, 158, 11, 0.06);
    border-color: var(--amber);
    color: var(--text);
  }

  .callout-label {
    font-size: 10px;
    text-transform: uppercase;
    margin-bottom: 5px;
  }

  .callout-info .callout-label { color: var(--cyan); }
  .callout-warn .callout-label { color: var(--amber); }

  /* Scrollbar */
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover { background: #873cf015; }

  /* Responsive */
  @media (max-width: 768px) {
    .app { flex-direction: column; }
    .sidebar { width: 100%; min-height: auto; height: auto; position: relative; }
    .main { max-height: none; }
    .section { padding: 24px 20px 60px; }
    .section-title { font-size: 32px; }
    .card-grid, .capability-grid, .arch-nodes { grid-template-columns: 1fr 1fr; }
    .stat-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
  }