  :root {
    --bg: #191127;
    --bg2: #23133a;
    --bg3: #2a1647;
    --surface: #883cf050;
    --surface2: #3a1c6350;
    --border: #3a1c63;
    --border2: #5e309d;
    --accent: #883CF0;
    --accent2: #2a1647;
    --accent3: #a855f7;
    --teal: #883CF0;
    --red: #e84040;
    --blue: #883CF0;
    --purple: #9b59f5;
    --text: #c8d8f0;
    --text2: #d6d6d6;
    --text3: #d6d6d6;
    --white: #e8f0ff;
  }

  * { margin:0; padding:0; box-sizing:border-box; }

  html { scroll-behavior: smooth; }

  .delinea-pam-training-guide {
    background: #191127;
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    height: 100vh;
    overflow-y: auto;
  }

  /* SCANLINE OVERLAY */
  .delinea-pam-training-guide::before {
    content:'';
    position:absolute;
    inset:0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
    pointer-events:none;
    z-index:1;
  }

  /* HEADER */
  .delinea-pam-training-guide header {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #180f26;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--white);
    
  }

  .logo-icon {
    width: 28px; height: 28px;
    background: var(--accent);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    color: #000;
    font-weight: 900;
  }

  .header-tag {
    font-size: 0.65rem;
    color: var(--accent);
    background: #23133a;
    border: 1px solid #3a1c63;
    padding: 3px 10px;
    border-radius: 2px;
    
    text-transform: uppercase;
  }

  /* HERO */
  .hero {
    position: relative;
    padding: 5rem 2rem 4rem;
    text-align: center;
    overflow: hidden;
  }

  .hero-grid {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(74,158,255,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(74,158,255,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
  }

  .hero-glow {
    position: absolute;
    top: -100px; left: 50%; transform: translateX(-50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, #2a2a2b23 0%, transparent 70%);
    pointer-events: none;
  }

  .module-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    color: var(--teal);
    background: #1f1232;
    border: 1px solid #3a1c63;
    padding: 5px 14px;
    border-radius: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
  }

  .module-badge::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--teal);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--teal);
    animation: pulse 2s infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
  }

  h1 {
    
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.4rem);
    color: var(--white);
    line-height: 1.1;
    
    margin-bottom: 1rem;
  }

  h1 span {
    color:#883CF0;
  }

  .hero-sub {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    color: var(--text2);
    font-size: 1.05rem;
    font-weight: 300;
  }

  .hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
  }

  .stat {
    text-align: center;
  }

  .stat-num {
    
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
  }

  .stat-label {
    font-size: 0.7rem;
    color: var(--text3);
    text-transform: uppercase;
    
  }

  /* PROGRESS */
  .progress-bar-wrap {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .progress-bar-wrap::-webkit-scrollbar { display: none; }

  .prog-label {
    
    font-size: 0.65rem;
    color: var(--text3);
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .prog-track {
    flex: 1;
    height: 4px;
    background: #282035;
    border-radius: 2px;
    min-width: 80px;
    position: relative;
    overflow: visible;
  }

  .prog-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 2px;
    transition: width 0.4s ease;
    position: relative;
  }

  .prog-fill::after {
    content: '';
    position: absolute;
    right: -3px; top: 50%;
    transform: translateY(-50%);
    width: 8px; height: 8px;
    background: var(--accent2);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent2);
  }

  .prog-count {
    font-size: 0.7rem;
    color: var(--accent);
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* NAV TABS */
  .nav-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: sticky;
    top: 58px;
    z-index: 1;
  }

  .nav-tabs::-webkit-scrollbar { display: none; }

  .tab-btn {
    padding: 0.85rem 1.2rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text3);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
  }

  .tab-btn:hover { color: var(--text); }

  .tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: #23133a;
  }

  .tab-icon {
    width: 18px; height: 18px;
    border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
  }

  /* MAIN */
  .main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem 5rem;
  }

  /* ACCOUNT PANEL */
  .account-panel {
    display: none;
    animation: fadeIn 0.3s ease;
  }

  .account-panel.active { display: block; }

  @keyframes fadeIn {
    from { opacity:0; transform: translateY(8px); }
    to { opacity:1; transform: translateY(0); }
  }

  .panel-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
  }

  .panel-header::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
  }

  .panel-icon-wrap {
    width: 56px; height: 56px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    position: relative;
  }

  .panel-meta { flex: 1; }

  .panel-type-tag {
    
    font-size: 0.6rem;
    text-transform: uppercase;
    
    padding: 3px 8px;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 0.5rem;
  }

  .panel-title {  
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 0.4rem;
  }

  .panel-desc {
    color: var(--text2);
    font-size: 0.9rem;
    max-width: 600px;
  }

  .risk-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }

  .risk-meter {
    width: 60px; height: 60px;
    position: relative;
  }

  .risk-meter svg { transform: rotate(-90deg); }

  .risk-label {
    
    font-size: 0.6rem;
    color: var(--text3);
    text-transform: uppercase;
    
    text-align: center;
  }

  /* GRID */
  .info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  @media (max-width: 700px) {
    .info-grid { grid-template-columns: 1fr; }
    .panel-header { flex-wrap: wrap; }
    .hero-stats { gap: 1rem; }
    .delinea-grid { grid-template-columns: 1fr; }
  }

  .info-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.5rem;
  }

  .info-card-full {
    grid-column: 1 / -1;
  }

  .card-heading {
    
    font-size: 0.65rem;
    text-transform: uppercase;
    
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .card-heading::before {
    content: '';
    width: 3px; height: 12px;
    border-radius: 2px;
  }

  /* RISK PROFILE */
  .risk-items { display: flex; flex-direction: column; gap: 0.6rem; }

  .risk-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0.7rem 0.9rem;
    background: var(--bg3);
    border-radius: 3px;
    border-left: 3px solid;
    font-size: 0.85rem;
  }

  .risk-item-icon { font-size: 0.9rem; flex-shrink: 0; margin-top: 1px; }

  /* MISCONFIG */
  .misconfig-list { display: flex; flex-direction: column; gap: 0.5rem; }

  .misconfig-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 0.6rem 0.8rem;
    background: rgba(232,64,64,0.06);
    border: 1px solid rgba(232,64,64,0.15);
    border-radius: 3px;
    font-size: 0.82rem;
  }

  .misconfig-num {
    
    font-size: 0.65rem;
    color: var(--red);
    min-width: 22px;
    padding-top: 1px;
  }

  /* DELINEA SECTION */
  .delinea-section {
    background: linear-gradient(135deg, #3a1c63, #684895);
    border: 1px solid var(--border2);
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
  }

  .delinea-section::after {
    content: 'DELINEA';
    position: absolute;
    right: -20px; top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-weight: 800;
    font-size: 4rem;
    color: rgba(186, 186, 186, 0.03);
    pointer-events: none;
    
  }

  .delinea-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
  }

  .delinea-step {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 1.1rem;
    position: relative;
  }

  .step-num {
    font-size: 0.6rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: block;
  }

  .step-title {
    
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--white);
    margin-bottom: 0.5rem;
  }

  .step-body {
    font-size: 0.78rem;
    color: var(--text2);
    line-height: 1.6;
  }

  .step-features {
    margin-top: 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .step-feature {
    font-size: 0.73rem;
    color: var(--text2);
    display: flex;
    gap: 6px;
    align-items: flex-start;
  }

  .step-feature::before {
    content: '→';
    color: var(--accent);
    flex-shrink: 0;
    
    font-size: 0.7rem;
  }

  /* QUIZ SECTION */
  .quiz-section {
    margin-top: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
  }

  .quiz-header {
    background: var(--surface);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
  }

  .quiz-header:hover { background: var(--surface2); }

  .quiz-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    
    font-size: 0.7rem;
    color: var(--teal);
    text-transform: uppercase;
    
  }

  .quiz-chevron {
    color: var(--text3);
    transition: transform 0.3s;
    font-size: 0.8rem;
  }

  .quiz-body {
    display: none;
    padding: 1.5rem;
    background: var(--bg2);
    border-top: 1px solid var(--border);
  }

  .quiz-body.open { display: block; }

  .quiz-q {
    font-weight: 500;
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 0.9rem;
  }

  .quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .quiz-opt {
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.83rem;
    transition: all 0.2s;
    background: var(--bg3);
    color: var(--text);
  }

  .quiz-opt:hover { border-color: var(--accent); color: var(--accent); }
  .quiz-opt.correct { border-color: #77b255;
    background: #77b25520;
    color: #60c090; }
  .quiz-opt.wrong { border-color: #dc143c;
    background: #dc143c2b;
    color:#ff7a90; }

  .quiz-feedback {
    margin-top: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 3px;
    font-size: 0.82rem;
    display: none;
  }

  .quiz-feedback.show { display: block; }
  .quiz-feedback.correct-fb { background: #77b25520;
    border: 1px solid #77b255;
    color: #60c090; }
  .quiz-feedback.wrong-fb { background: #dc143c2b;
    border: 1px solid #dc143c;
    color: #ff7a90; }

  /* OVERVIEW PANEL */
  .overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .overview-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.2rem 1.3rem;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
  }

  .overview-card:hover {
    border-color: var(--border2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }

  .overview-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
  }

  .ov-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.7rem;
  }

  .ov-icon { font-size: 1.4rem; }

  .ov-risk-chip {
    
    font-size: 0.58rem;
    padding: 2px 7px;
    border-radius: 2px;
    text-transform: uppercase;
    
  }

  .ov-title {
    
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--white);
    margin-bottom: 0.3rem;
  }

  .ov-desc {
    font-size: 0.75rem;
    color: var(--text3);
    line-height: 1.5;
  }

  .ov-arrow {
    position: absolute;
    right: 1rem; bottom: 1rem;
    font-size: 0.7rem;
    color: var(--text3);
    transition: all 0.2s;
  }

  .overview-card:hover .ov-arrow {
    color: var(--accent);
    right: 0.7rem;
  }

  /* COLORS per account type */
  .c-domainadmin { --ac: #e84040; }
  .c-localadmin { --ac: #ff6b35; }
  .c-service { --ac: #e8a020; }
  .c-application { --ac: #f5c84a; }
  .c-breakglass { --ac: #9b59f5; }
  .c-sshkeys { --ac: #4a9eff; }
  .c-apitokens { --ac: #00c9a7; }
  .c-cloudiam { --ac: #56cfff; }

  [class*="c-"] .overview-card::before,
  [class*="c-"] .panel-header::before,
  [class*="c-"] .card-heading::before { background: #9d309d; }
  [class*="c-"] .panel-type-tag { background: rgba(var(--ac-rgb, 232,64,64), 0.1); color: var(--ac); border: 1px solid rgba(var(--ac-rgb, 232,64,64), 0.2); }
  [class*="c-"] .panel-icon-wrap { background: rgba(var(--ac-rgb, 232,64,64), 0.1); }
  [class*="c-"] .card-heading { color: #9d309d; }

  .risk-critical { color: #e84040; }
  .risk-high { color: #ff6b35; }
  .risk-elevated { color: #e8a020; }
  .risk-medium { color: #f5c84a; }

  /* FOOTER */
  .delinea-pam-training-guide footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
  }

  .footer-content {
    font-size: 0.65rem;
    color: var(--text3);
    text-transform: uppercase;
  }

  /* TOOLTIP */
  .tooltip-wrap { position: relative; display: inline-block; }
  .tooltip-wrap .tt {
    visibility: hidden;
    opacity: 0;
    background: var(--surface2);
    color: var(--text);
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 3px;
    border: 1px solid var(--border2);
    position: absolute;
    z-index: 1;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    transition: opacity 0.2s;
    pointer-events: none;
  }
  .tooltip-wrap:hover .tt { visibility: visible; opacity: 1; }

  /* SCROLL REVEAL */
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* SEARCH */
  .search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.2s;
  }

  .search-bar:focus-within { border-color: var(--accent); }

  .search-icon { color: var(--text3); font-size: 0.9rem; }

  .search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--white);
    
    font-size: 0.9rem;
    padding: 0.75rem 0;
  }

  .search-input::placeholder { color: var(--text3); }

  /* COMPLETION MARK */
  .completion-ring {
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px;
    color: transparent;
    transition: all 0.3s;
    flex-shrink: 0;
  }

  .completion-ring.done {
    background: #1f1232;
    border-color: var(--teal);
    color: var(--teal);
  }


::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 3px; }