  :root {
    --bg: #0a0c0f;
    --surface: #23133a;
    --surface2: #1f1232;
    --border: #3a1c63;
    --border2: #5e309d;
    --accent: #883CF0;
    --accent2: #af62c8;
    --accent3: #7b5ea7;
    --warn: #e95bf6;
    --danger: #ff4444;
    --text: #e8edf7;
    --text-dim: #d6d6d6;
    --text-bright: #c8d6e5;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  .service-account-guide {
    background: #191127;
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    height: 100vh;
    overflow-x: hidden;
    position: relative;
    overflow-y: auto;
  }

  /* SCANLINE OVERLAY */
  .service-account-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 */
  .service-account-guide header {
    background: #180f26;
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 1;
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .logo-tag {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent);
    background: #23133a;
    border: 1px solid #3a1c63;
    padding: 3px 8px;
    text-transform: uppercase;
  }

  .header-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-bright);
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .progress-indicator {
    font-size: 11px;
    color: var(--text-dim);
  }

  .progress-indicator span {
    color: var(--accent);
    font-weight: 600;
  }

  /* STATUS DOT */
  .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent3);
    box-shadow: 0 0 8px var(--accent3);
    animation: pulse 2s infinite;
    display: inline-block;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
  }

  /* MAIN LAYOUT */
  .service-account-guide main {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 60px);
  }

  /* SIDEBAR */
  aside {
    background: #180f26;
    border-right: 1px solid var(--border);
    padding: 24px 0;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .sidebar-section {
    padding: 0 20px;
    margin-bottom: 28px;
  }

  .sidebar-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
  }

  .module-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 2px;
    transition: all 0.15s;
    border: 1px solid transparent;
    font-size: 12px;
  }

  .module-item:hover { background: #23133a9f; }
  .module-item.active {
    background: #23133a;
    border-color: #3a1c63;
    color: var(--accent);
  }
  .module-item.completed .m-icon { color: var(--accent3); }

  .m-num {
    width: 20px;
    height: 20px;
    border: 1px solid var(--border2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    flex-shrink: 0;
    font-weight: 700;
  }

  .m-icon { font-size: 14px; flex-shrink: 0; }

  /* ACCOUNT TYPE BADGES */
  .account-badges {
    padding: 0 20px;
  }

  .badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    margin-bottom: 4px;
    border-left: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    border-radius: 0 4px 4px 0;
  }

  .badge-item:hover { background: var(--surface2); }

  .badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    flex-shrink: 0;
  }

  .badge-name {
    font-size: 11px;
    color: var(--text-dim);
    flex: 1;
  }

  .badge-tag {
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 2px;
    font-weight: 600;
  }

  /* CONTENT AREA */
  .content {
    padding: 36px 40px;
    max-width: 900px;
  }

  /* MODULE CONTAINER */
  .module-view {
    display: none;
    animation: fadeIn 0.25s ease;
  }
  .module-view.active { display: block; }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* PAGE HEADER */
  .page-header {
    margin-bottom: 36px;
  }

  .breadcrumb {
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .breadcrumb span { color: var(--text-dim); }
  .breadcrumb .current { color: var(--accent); }

  h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.2;
    margin-bottom: 10px;
  }

  h1 em {
    color: var(--accent);
    font-style: normal;
  }

  .subtitle {
    font-size: 14px;
    color: var(--text-dim);
    max-width: 600px;
    line-height: 1.7;
  }

  /* SECTION TITLES */
  h2 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-bright);
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
  }

  /* ACCOUNT TYPE CARDS */
  .account-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 36px;
  }

  .account-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }

  .account-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--card-color, var(--accent));
  }

  .account-card:hover {
    border-color: var(--card-color, var(--accent));
    background: var(--surface2);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  }

  .card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
  }

  .card-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-bright);
  }

  .card-abbr {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    background: rgba(255,255,255,0.05);
    color: var(--card-color, var(--accent));
    border: 1px solid rgba(255,255,255,0.1);
  }

  .card-desc {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 14px;
  }

  .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  .ctag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid var(--border2);
    color: var(--text-dim);
  }

  /* DECISION TREE */
  .tree-wrapper {
    margin-bottom: 36px;
  }

  .tree-intro {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.7;
    border-radius: 0 4px 4px 0;
  }

  .tree-intro strong { color: var(--text-bright); }

  /* QUESTION NODE */
  .q-node {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    display: none;
  }

  .q-node.visible { display: block; animation: fadeIn 0.3s ease; }

  .q-header {
    padding: 16px 20px;
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .q-num {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    background: #23133a;
    border: 1px solid #3a1c63;
    padding: 2px 7px;
  }

  .q-category {
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
  }

  .q-text {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-bright);
    line-height: 1.5;
  }

  .q-help {
    padding: 0 20px 14px;
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.6;
  }

  .q-options {
    padding: 12px 20px 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .q-btn {
    font-size: 12px;
    font-weight: 600;
    padding: 8px 18px;
    border: 1px solid var(--border2);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .q-btn:hover {
    background: var(--surface2);
    border-color: var(--accent);
    color: var(--accent);
  }

  .q-btn.yes { border-color: rgba(57,255,20,0.3); color: var(--accent3); }
  .q-btn.yes:hover { background: rgba(55, 255, 20, 0.116); }
  .q-btn.no { border-color: rgba(255,100,100,0.3); color: #ff8080; }
  .q-btn.no:hover { background: rgba(255, 100, 100, 0.097); }
  .q-btn.selected { opacity: 0.4; pointer-events: none; }

  .q-connector {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    margin: -4px 0 8px;
  }

  .q-connector-line {
    width: 1px;
    height: 20px;
    background: var(--border2);
    margin-left: 14px;
  }

  .q-connector-label {
    font-size: 10px;
    color: var(--text-dim);
    background: var(--surface);
    padding: 1px 6px;
    border: 1px solid var(--border2);
    border-radius: 3px;
  }

  /* RESULT NODE */
  .result-node {
    border-radius: 6px;
    padding: 24px 24px 28px;
    margin-top: 8px;
    display: none;
    border: 1px solid;
    position: relative;
    overflow: hidden;
  }

  .result-node.visible {
    display: block;
    animation: fadeIn 0.4s ease;
  }

  .result-node::before {
    content: '▶ RECOMMENDATION';
    font-size: 9px;
    font-weight: 700;
    color: var(--result-color);
    display: block;
    margin-bottom: 16px;
    opacity: 0.7;
  }

  .result-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
  }

  .result-full {
    font-size: 12px;
    opacity: 0.6;
    margin-bottom: 16px;
  }

  .result-desc {
    font-size: 13px;
    line-height: 1.75;
    margin-bottom: 20px;
  }

  .result-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
  }

  .spec-item {
    background: rgba(0,0,0,0.3);
    padding: 12px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
  }

  .spec-label {
    font-size: 9px;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 5px;
  }

  .spec-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--result-color);
  }

  .result-considerations {
    font-size: 12px;
    line-height: 1.7;
    opacity: 0.8;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 16px;
  }

  .result-considerations strong { opacity: 1; color: var(--text-bright); }

  /* RESTART BTN */
  .restart-btn {
    margin-top: 20px;
    font-size: 11px;
    font-weight: 600;
    padding: 8px 18px;
    background: transparent;
    border: 1px solid var(--border2);
    color: var(--text-dim);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }

  .restart-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0,212,255,0.04);
  }

  /* COMPARISON TABLE */
  .comp-table-wrap {
    overflow-x: auto;
    margin-bottom: 36px;
    border: 1px solid var(--border);
    border-radius: 6px;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
  }

  thead tr {
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
  }

  th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 700;
    color: var(--text-bright);
    white-space: nowrap;
  }

  th:first-child { color: var(--text-dim); font-size: 9px; text-transform: uppercase; }

  td {
    padding: 9px 14px;
    border-bottom: 1px solid #5e309d;
    color: var(--text-dim);
    vertical-align: middle;
    white-space: nowrap;
  }

  tr:last-child td { border-bottom: none; }
  tr:hover td { background: #23133a; }

  td:first-child {
    color: var(--text);
    font-weight: 500;
    background: var(--surface2);
    border-right: 1px solid var(--border);
  }

  .check { color: var(--accent3); }
  .cross { color: #ff6b6b; }
  .partial { color: var(--warn); }
  .na { color: var(--border2); }

  /* AUDIT TEMPLATE */
  .audit-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
  }

  .audit-header {
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .audit-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-bright);
  }

  .copy-btn {
    font-size: 10px;
    padding: 4px 10px;
    background: transparent;
    border: 1px solid var(--border2);
    color: var(--text-dim);
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.15s;
  }

  .copy-btn:hover { border-color: var(--accent); color: var(--accent); }
  .copy-btn.copied { border-color: var(--accent3); color: var(--accent3); }

  .audit-fields {
    padding: 16px 18px;
    display: grid;
    gap: 12px;
  }

  .field-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 12px;
    align-items: start;
  }

  .field-label {
    font-size: 11px;
    color: var(--text-dim);
    padding-top: 2px;
  }

  .field-input {
    background: var(--surface2);
    border: 1px solid var(--border2);
    color: var(--text);
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 4px;
    width: 100%;
    transition: border-color 0.15s;
    outline: none;
  }

  .field-input:focus { border-color: var(--accent); }

  select.field-input option { background: var(--surface2); }

  textarea.field-input {
    min-height: 60px;
    resize: vertical;
    line-height: 1.6;
  }

  /* CHECKLIST */
  .checklist {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
  }

  .check-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.12s;
  }

  .check-item:last-child { border-bottom: none; }
  .check-item:hover { background: var(--surface2); }
  .check-item.done { opacity: 0.5; }

  .check-box {
    width: 16px;
    height: 16px;
    border: 1px solid var(--border2);
    border-radius: 3px;
    flex-shrink: 0;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.15s;
    color: transparent;
  }

  .check-item.done .check-box {
    background: rgba(55, 255, 20, 0.845);
    border-color: var(--accent3);
    color: var(--accent3);
  }

  .check-text {
    font-size: 12px;
    color: var(--text);
    line-height: 1.5;
    flex: 1;
  }

  .check-text .ch-label {
    font-size: 10px;
    color: var(--text-dim);
    margin-top: 2px;
  }

  /* CALLOUT BOXES */
  .callout {
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 16px;
    border-left: 3px solid;
    font-size: 12px;
    line-height: 1.7;
  }

  .callout.info {
    background: #1f1232;
    border-color: var(--accent);
    color: var(--text);
  }

  .callout.warn {
    background: #e95bf61f;
    border-color: var(--warn);
    color: var(--text);
  }

  .callout.danger {
    background: rgba(199, 89, 89, 0.05);
    border-color: var(--danger);
    color: var(--text);
  }

  .callout strong { color: var(--text-bright); }

  /* PROGRESS BAR */
  .tree-progress {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .tp-label {
    font-size: 10px;
    color: var(--text-dim);
    white-space: nowrap;
    text-transform: uppercase;
  }

  .tp-bar-wrap {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
  }

  .tp-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 2px;
    transition: width 0.4s ease;
    width: 0%;
  }

  .tp-count {
    font-size: 10px;
    color: var(--accent);
    white-space: nowrap;
    min-width: 40px;
  }

  /* PATH TRAIL */
  .path-trail {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    min-height: 28px;
  }

  .path-crumb {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    background: var(--surface2);
    border: 1px solid var(--border2);
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 5px;
    animation: fadeIn 0.2s ease;
  }

  .path-crumb .pc-ans {
    color: var(--text-bright);
    font-weight: 600;
  }

  .path-crumb .pc-yes { color: var(--accent3); }
  .path-crumb .pc-no { color: #ff8080; }

  /* ====== MODULE-SPECIFIC HIDDEN ====== */
  #tab-overview .module-view { display: block; }

  /* RESPONSIVE */
  @media (max-width: 900px) {
    .service-account-guide main { grid-template-columns: 1fr; }
    aside { display: none; }
    .content { padding: 24px 20px; }
    .account-grid { grid-template-columns: 1fr; }
    .result-specs { grid-template-columns: repeat(2, 1fr); }
    .field-row { grid-template-columns: 1fr; }
  }


    /* SCROLLBAR */
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: #873cf015; }
  ::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 3px; }