/* ============================================
   PROGRESS SIDEBAR — Collapsible workflow stepper
   Replaces the 52px icon-only .app-sidebar
   ============================================ */

:root {
    --ps-sidebar-width: 320px;
    --ps-sidebar-collapsed: 52px;
    --ps-header-height: 60px;

    /* Sidebar palette */
    --ps-bg: #0c1120;
    --ps-border: rgba(148,163,184,0.06);
    --ps-border-mid: rgba(148,163,184,0.10);
    --ps-border-hover: rgba(148,163,184,0.15);
    --ps-accent: #818cf8;
    --ps-accent-bright: #a5b4fc;
    --ps-accent-dim: rgba(129,140,248,0.10);
    --ps-accent-dim2: rgba(129,140,248,0.06);
    --ps-green: #2DD4BF;
    --ps-green-dim: rgba(45,212,191,0.08);
    --ps-gold: #f59e0b;
    --ps-gold-dim: rgba(245,158,11,0.10);
    --ps-bg3: #141c2e;
    --ps-bg4: #192236;
    --ps-bg5: #1e2a40;
    --ps-t1: #e8edf4;
    --ps-t2: #b0bdd0;
    --ps-t3: #687890;
    --ps-t4: #354055;
}

/* ===== HIDE OLD SIDEBAR + TOP NAV + STEP BAR when progress sidebar is active ===== */
body.ps-sidebar-visible .app-sidebar {
    display: none !important;
}

body.ps-sidebar-visible nav {
    display: none !important;
}

/* Horizontal progress stepper — redundant with sidebar steps */
body.ps-sidebar-visible .prism-wrapper {
    display: none !important;
}

/* ===== PRODUCT SWITCHER inside sidebar ===== */
.ps-product-switcher-slot {
    padding: 0 16px 12px;
    border-bottom: 1px solid var(--ps-border);
    flex-shrink: 0;
}

.ps-product-switcher-slot .product-switcher-container {
    position: static;
    z-index: auto;
}

.ps-product-switcher-slot .product-switcher {
    width: 100%;
}

.ps-product-switcher-slot .product-switcher-trigger {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    background: var(--ps-bg4);
    border-color: var(--ps-border-mid);
    border-radius: 8px;
}

.ps-product-switcher-slot .product-switcher-trigger:hover {
    background: var(--ps-bg5);
    border-color: var(--ps-border-hover);
}

.ps-product-switcher-slot .product-switcher-dropdown {
    left: 0;
    min-width: 100%;
}

/* Hide any product switcher NOT inside the sidebar slot */
body.ps-sidebar-visible .product-switcher-container:not(.ps-product-switcher-slot .product-switcher-container) {
    display: none !important;
}
/* Ensure the one inside the sidebar slot stays visible */
.ps-product-switcher-slot .product-switcher-container {
    display: block !important;
}

.progress-sidebar.collapsed .ps-product-switcher-slot {
    display: none;
}

/* ===== MAIN CONTAINER ===== */
.progress-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--ps-sidebar-width);
    height: 100vh;
    background: var(--ps-bg);
    border-right: 1px solid var(--ps-border);
    display: none;
    flex-direction: column;
    z-index: 999;
    transition: width 0.2s ease;
    overflow: hidden;
}

.progress-sidebar.visible {
    display: flex;
}

.progress-sidebar.collapsed {
    width: var(--ps-sidebar-collapsed);
}

/* ===== HEADER ===== */
.ps-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0 16px;
    border-bottom: 1px solid var(--vc-border, rgba(255,255,255,0.06));
    flex-shrink: 0;
    box-sizing: border-box;
}

.ps-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ps-header-brand-logo {
    flex-shrink: 0;
}

.ps-header-brand-logo svg {
    width: 32px;
    height: 32px;
}

.ps-header-brand-text {
    white-space: nowrap;
    overflow: hidden;
}

.ps-header-brand-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--ps-t1);
    line-height: 1.2;
}

.ps-header-brand-tagline {
    font-size: 10px;
    font-weight: 400;
    color: rgba(129, 140, 248, 0.7);
    letter-spacing: 0.4px;
    margin-top: 1px;
    font-style: normal;
    line-height: 1;
}

.ps-header-toggle {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: var(--ps-t3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.12s;
}

.ps-header-toggle:hover {
    color: var(--ps-t1);
}

/* Collapsed header */
.progress-sidebar.collapsed .ps-header {
    justify-content: center;
    padding: 0;
}

.progress-sidebar.collapsed .ps-header-brand {
    display: none;
}

/* ===== SCROLLABLE BODY ===== */
.ps-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    gap: 0;
}

.progress-sidebar.collapsed .ps-body {
    padding: 12px 0;
    align-items: center;
    gap: 4px;
}

/* ===== SECTION LABELS ===== */
.ps-section-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ps-t4);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    padding: 4px 8px;
    margin-bottom: 10px;
    white-space: nowrap;
}

.progress-sidebar.collapsed .ps-section-label {
    display: none;
}

/* ===== STEPS SECTION ===== */
.ps-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
    position: relative;
}

/* Vertical connector line */
.ps-steps-connector {
    position: absolute;
    left: 22px;
    top: 16px;
    bottom: 16px;
    width: 1px;
    transition: background 0.4s ease;
}

/* Individual step */
.ps-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 8px;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    transition: background 0.15s;
}

.ps-step.completed:hover {
    background: var(--ps-bg4);
}

.ps-step.active {
    background: var(--ps-accent-dim2);
    cursor: default;
}

.ps-step.future {
    cursor: default;
}

.ps-step.available {
    cursor: pointer;
}

.ps-step.available:hover {
    background: var(--ps-accent-dim);
}

.ps-step.locked {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Step node (circle) */
.ps-step-node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 1;
}

.ps-step.completed .ps-step-node {
    background: #2DD4BF;
    border: 2px solid #2DD4BF;
    box-shadow: 0 0 8px rgba(45,212,191,0.25);
}

.ps-step.active .ps-step-node {
    background: var(--ps-accent);
    border: 1.5px solid var(--ps-accent);
    box-shadow: 0 0 0 3px var(--ps-accent-dim);
}

.ps-step.available .ps-step-node {
    background: var(--ps-bg4);
    border: 1.5px solid var(--ps-border-hover);
}

.ps-step.future .ps-step-node {
    background: var(--ps-bg4);
    border: 1.5px solid var(--ps-border-mid);
}

.ps-step.locked .ps-step-node {
    background: var(--ps-green);
    border: 1.5px solid var(--ps-green);
}

/* Step node content */
.ps-step-node-check {
    display: none;
}

.ps-step.completed .ps-step-node-check,
.ps-step.locked .ps-step-node-check {
    display: block;
}

.ps-step.completed .ps-step-node-number,
.ps-step.locked .ps-step-node-number {
    display: none;
}

.ps-step-node-number {
    font-size: 14px;
    font-weight: 700;
    font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
}

.ps-step.active .ps-step-node-number {
    color: #fff;
}

.ps-step.future .ps-step-node-number {
    color: var(--ps-t4);
}

/* Step text */
.ps-step-text {
    flex: 1;
    min-width: 0;
}

.ps-step-label {
    font-size: 18px;
    font-weight: 400;
    color: var(--ps-t4);
    line-height: 1.2;
    transition: color 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ps-step.active .ps-step-label {
    font-weight: 600;
    color: var(--ps-t1);
}

.ps-step.completed .ps-step-label {
    font-weight: 500;
    color: #2DD4BF;
}

.ps-step.available .ps-step-label {
    font-weight: 400;
    color: var(--ps-t3);
}

.ps-step.locked .ps-step-label {
    font-weight: 500;
    color: var(--ps-green);
    opacity: 0.6;
}

/* Step description — only for active/completed */
.ps-step-desc {
    font-size: 14px;
    color: var(--ps-t3);
    margin-top: 1px;
    display: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ps-step.active .ps-step-desc {
    display: block;
    color: var(--ps-t3);
}

.ps-step.completed .ps-step-desc {
    display: block;
    color: var(--ps-green);
    opacity: 0.6;
}

.ps-step.available .ps-step-desc {
    display: none;
}

.ps-step.available .ps-step-node-number {
    color: var(--ps-t3);
}

/* Hide text in collapsed mode */
.progress-sidebar.collapsed .ps-step-text {
    display: none;
}

.progress-sidebar.collapsed .ps-steps {
    display: none;
}

/* ===== COLLAPSED STEP DOTS ===== */
.ps-collapsed-dots {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.progress-sidebar.collapsed .ps-collapsed-dots {
    display: flex;
}

.ps-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 4px auto;
    transition: all 0.2s;
    cursor: default;
}

.ps-dot.completed {
    background: #2DD4BF;
    border: 1.5px solid #2DD4BF;
    box-shadow: 0 0 4px rgba(45,212,191,0.3);
}

.ps-dot.active {
    background: var(--ps-accent);
    border: 1.5px solid var(--ps-accent);
    box-shadow: 0 0 0 2px var(--ps-accent-dim);
}

.ps-dot.available {
    background: var(--ps-bg4);
    border: 1.5px solid var(--ps-border-hover);
}

.ps-dot.future {
    background: var(--ps-bg4);
    border: 1.5px solid var(--ps-border-mid);
}

.ps-dot.locked {
    background: var(--ps-green);
    border: 1.5px solid var(--ps-green);
    opacity: 0.6;
}

/* ===== NAV ITEMS ===== */
.ps-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--ps-t3);
    cursor: pointer;
    transition: all 0.12s;
    margin-bottom: 2px;
    white-space: nowrap;
}

.ps-nav-item:hover {
    background: var(--ps-bg4);
    color: var(--ps-t1);
}

.ps-nav-item svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.ps-nav-item-label {
    font-size: 16px;
    white-space: nowrap;
}

/* Collapsed nav */
.progress-sidebar.collapsed .ps-nav-item {
    width: 32px;
    height: 32px;
    padding: 0;
    justify-content: center;
    gap: 0;
}

.progress-sidebar.collapsed .ps-nav-item-label {
    display: none;
}

/* Collapsed nav tooltips */
.progress-sidebar.collapsed .ps-nav-item {
    position: relative;
}

.progress-sidebar.collapsed .ps-nav-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    margin-left: 12px;
    padding: 6px 12px;
    background: rgba(25, 30, 45, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    pointer-events: none;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.progress-sidebar.collapsed .ps-nav-item:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ===== DIVIDER ===== */
.ps-divider {
    width: 100%;
    height: 1px;
    background: var(--ps-border);
    margin: 16px 0 12px;
}

.progress-sidebar.collapsed .ps-divider {
    width: 28px;
    margin: 8px 0;
}

/* ===== SETTINGS SECTION ===== */
.ps-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--ps-bg3);
    border: 1px solid var(--ps-border);
}

.ps-settings-row-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ps-settings-row-left svg {
    color: var(--ps-t3);
}

.ps-settings-label {
    font-size: 15px;
    color: var(--ps-t2);
}

.progress-sidebar.collapsed .ps-settings-row {
    display: none;
}

/* Toggle switch */
.ps-toggle {
    width: 28px;
    height: 14px;
    border-radius: 7px;
    cursor: pointer;
    position: relative;
    transition: background 0.15s;
    flex-shrink: 0;
}

.ps-toggle.on {
    background: var(--ps-accent);
}

.ps-toggle.off {
    background: var(--ps-bg5);
}

.ps-toggle-thumb {
    position: absolute;
    top: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    transition: left 0.15s;
}

.ps-toggle.on .ps-toggle-thumb {
    left: 16px;
}

.ps-toggle.off .ps-toggle-thumb {
    left: 2px;
}

/* ===== FOOTER (D+ Status Bar) ===== */
.ps-footer {
    padding: 0;
    flex-shrink: 0;
}

/* D+ wrapper — edge-to-edge, fused to sidebar bottom */
.ps-dp-wrap {
    border-top: 1px solid var(--ps-border-mid);
    background: linear-gradient(180deg, var(--ps-bg3), rgba(14,20,34,1));
    overflow: hidden;
}

/* Identity row: avatar + name + credits pill + chevron */
.ps-dp-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.ps-dp-identity:hover {
    background: rgba(255,255,255,0.02);
}

.ps-dp-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ps-accent), #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.ps-dp-info {
    flex: 1;
    min-width: 0;
}

.ps-dp-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ps-t1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ps-dp-plan {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--ps-gold);
    margin-top: 2px;
}

/* Credits pill */
.ps-dp-credits-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--ps-green-dim);
    padding: 5px 12px;
    border-radius: 20px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(52,211,153,0.12);
    position: relative;
}

.ps-dp-credits-pill:hover {
    background: rgba(52,211,153,0.14);
    border-color: rgba(52,211,153,0.22);
    box-shadow: 0 0 12px rgba(52,211,153,0.10);
}

.ps-dp-cr-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ps-green);
    flex-shrink: 0;
    animation: dpPulse 2.5s ease-in-out infinite;
}

@keyframes dpPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.ps-dp-cr-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--ps-green);
    font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
    letter-spacing: -0.02em;
}

.ps-dp-plus {
    font-size: 12px;
    font-weight: 700;
    color: var(--ps-green);
    opacity: 0;
    transition: opacity 0.15s;
    margin-left: 1px;
}

.ps-dp-credits-pill:hover .ps-dp-plus {
    opacity: 1;
}

/* Chevron */
.ps-dp-chev {
    color: var(--ps-t4);
    flex-shrink: 0;
    transition: color 0.15s, transform 0.2s;
}

.ps-dp-identity:hover .ps-dp-chev {
    color: var(--ps-t3);
    transform: translateY(1px);
}

/* Thin separator */
.ps-dp-sep {
    height: 1px;
    background: var(--ps-border);
    margin: 0 14px;
}

/* Action strip */
.ps-dp-strip {
    display: flex;
}

.ps-dp-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 0;
    color: var(--ps-t3);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

.ps-dp-action:hover {
    color: var(--ps-t1);
    background: rgba(255,255,255,0.025);
}

/* Vertical separators between actions (60% height) */
.ps-dp-action + .ps-dp-action::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--ps-border);
}

.ps-dp-action svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

/* ===== D+ Collapsed state ===== */
.progress-sidebar.collapsed .ps-dp-identity {
    flex-direction: column;
    gap: 6px;
    padding: 10px 4px 6px;
    align-items: center;
}

.progress-sidebar.collapsed .ps-dp-info {
    display: none;
}

.progress-sidebar.collapsed .ps-dp-avatar {
    width: 26px;
    height: 26px;
    font-size: 9px;
}

.progress-sidebar.collapsed .ps-dp-credits-pill {
    padding: 2px 6px;
}

.progress-sidebar.collapsed .ps-dp-cr-num {
    font-size: 8px;
}

.progress-sidebar.collapsed .ps-dp-cr-dot {
    width: 5px;
    height: 5px;
}

.progress-sidebar.collapsed .ps-dp-sep {
    margin: 0 4px;
}

.progress-sidebar.collapsed .ps-dp-strip {
    flex-direction: column;
}

.progress-sidebar.collapsed .ps-dp-action {
    padding: 8px 0;
}

.progress-sidebar.collapsed .ps-dp-action + .ps-dp-action::before {
    display: none;
}

.progress-sidebar.collapsed .ps-dp-action + .ps-dp-action {
    border-top: 1px solid var(--ps-border);
}

.progress-sidebar.collapsed .ps-dp-action span {
    display: none;
}

/* Collapsed action tooltips */
.progress-sidebar.collapsed .ps-dp-action {
    position: relative;
}

.progress-sidebar.collapsed .ps-dp-action::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    margin-left: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 5px 10px;
    background: rgba(20,28,46,0.98);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    font-size: 11px;
    color: #fff;
    white-space: nowrap;
    z-index: 1001;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
}

.progress-sidebar.collapsed .ps-dp-action:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   USER MENU DROPDOWN
   ============================================ */

.ps-user-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 6px;
    background: var(--ps-bg4);
    border: 1px solid var(--ps-border-mid);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 1002;
}

.ps-user-menu-item {
    padding: 10px 14px;
    font-size: 14px;
    color: var(--ps-t2);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.ps-user-menu-item:hover {
    background: var(--ps-accent-dim);
    color: var(--ps-t1);
}

.ps-user-menu-logout {
    color: #f87171;
}

.ps-user-menu-logout:hover {
    background: rgba(248, 113, 113, 0.10);
    color: #fca5a5;
}

/* Settings panel (popover from Settings nav item) */
.ps-settings-panel {
    background: var(--ps-bg4);
    border: 1px solid var(--ps-border-mid);
    border-radius: 10px;
    padding: 10px 8px;
    margin: 6px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.ps-settings-panel-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ps-t3);
    padding: 4px 10px 8px;
}

/* ============================================
   CONTENT PUSH MODEL
   ============================================ */

/* Screen 0 and Screen 1 — NO sidebar, no push */

/* Workflow screens — use margin-left */
/* NOTE: #screen2aContainer uses position:fixed + left/right, so it handles its own offset */
body.ps-sidebar-visible .cs-main-container,
body.ps-sidebar-visible .s2c-wrapper,
body.ps-sidebar-visible #screen2bContainer,
body.ps-sidebar-visible #screen5Container,
body.ps-sidebar-visible #socialVerifyScreen {
    margin-left: var(--ps-sidebar-width);
    padding-top: 24px;
    transition: margin-left 0.2s ease;
}

body.ps-sidebar-collapsed .cs-main-container,
body.ps-sidebar-collapsed .s2c-wrapper,
body.ps-sidebar-collapsed #screen2bContainer,
body.ps-sidebar-collapsed #screen5Container,
body.ps-sidebar-collapsed #socialVerifyScreen {
    margin-left: var(--ps-sidebar-collapsed);
    padding-top: 24px;
}

/* Ambient backgrounds for screens with sidebar */
body.ps-sidebar-visible #socialVerifyScreen .sv-ambient-bg {
    left: var(--ps-sidebar-width);
    width: calc(100% - var(--ps-sidebar-width));
}

body.ps-sidebar-collapsed #socialVerifyScreen .sv-ambient-bg {
    left: var(--ps-sidebar-collapsed);
    width: calc(100% - var(--ps-sidebar-collapsed));
}

/* Loading overlay adjustment */
body.ps-sidebar-visible #loadingOverlay {
    top: 0;
    left: var(--ps-sidebar-width);
    width: calc(100% - var(--ps-sidebar-width));
    height: 100%;
}

body.ps-sidebar-collapsed #loadingOverlay {
    top: 0;
    left: var(--ps-sidebar-collapsed);
    width: calc(100% - var(--ps-sidebar-collapsed));
    height: 100%;
}

/* Transition overlay */
body.ps-sidebar-visible .transition-overlay,
body.ps-sidebar-visible .premium-transition-overlay {
    top: 0;
    left: var(--ps-sidebar-width);
    width: calc(100% - var(--ps-sidebar-width));
    height: 100%;
}

body.ps-sidebar-collapsed .transition-overlay,
body.ps-sidebar-collapsed .premium-transition-overlay {
    top: 0;
    left: var(--ps-sidebar-collapsed);
    width: calc(100% - var(--ps-sidebar-collapsed));
    height: 100%;
}

/* ============================================
   MOBILE RESPONSIVE — hide sidebar on <768px
   ============================================ */

@media (max-width: 768px) {
    .progress-sidebar {
        display: none !important;
    }

    body.ps-sidebar-visible .cs-main-container,
    body.ps-sidebar-visible .s2c-wrapper,
    body.ps-sidebar-visible #screen2bContainer,
    body.ps-sidebar-visible #screen5Container,
    body.ps-sidebar-visible #socialVerifyScreen {
        margin-left: 0;
    }

    body.ps-sidebar-collapsed .cs-main-container,
    body.ps-sidebar-collapsed .s2c-wrapper,
    body.ps-sidebar-collapsed #screen2bContainer,
    body.ps-sidebar-collapsed #screen5Container,
    body.ps-sidebar-collapsed #socialVerifyScreen {
        margin-left: 0;
    }

    body.ps-sidebar-visible #loadingOverlay,
    body.ps-sidebar-collapsed #loadingOverlay {
        left: 0;
        width: 100%;
    }
}

/* ============================================
   AVAILABLE STEP PULSE ANIMATION
   ============================================ */

@keyframes availablePulse {
    0%, 100% { box-shadow: 0 0 0 3px var(--ps-accent-dim); }
    50% { box-shadow: 0 0 0 6px var(--ps-accent-dim), 0 0 12px var(--ps-accent-dim); }
}

/* ============================================
   SCREEN TRANSITION ANIMATIONS
   ============================================ */

@keyframes screenSlideOut {
    to { opacity: 0; transform: translateX(-20px); }
}

@keyframes screenSlideIn {
    from { opacity: 0; transform: translateX(20px); }
}

@keyframes screenSlideOutReverse {
    to { opacity: 0; transform: translateX(20px); }
}

@keyframes screenSlideInReverse {
    from { opacity: 0; transform: translateX(-20px); }
}

.ps-screen-exit {
    animation: screenSlideOut 200ms ease-out forwards;
}

.ps-screen-enter {
    animation: screenSlideIn 200ms ease-out forwards;
}

.ps-screen-exit-reverse {
    animation: screenSlideOutReverse 200ms ease-out forwards;
}

.ps-screen-enter-reverse {
    animation: screenSlideInReverse 200ms ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
    @keyframes availablePulse {
        0%, 100% { box-shadow: 0 0 0 4px var(--ps-accent-dim); }
    }

    .ps-screen-exit,
    .ps-screen-enter,
    .ps-screen-exit-reverse,
    .ps-screen-enter-reverse {
        animation: none;
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

.ps-body::-webkit-scrollbar {
    width: 4px;
}

.ps-body::-webkit-scrollbar-track {
    background: transparent;
}

.ps-body::-webkit-scrollbar-thumb {
    background: rgba(148,163,184,0.15);
    border-radius: 2px;
}

.ps-body::-webkit-scrollbar-thumb:hover {
    background: rgba(148,163,184,0.25);
}

/* ============================================================================
   LIGHT MODE — Progress sidebar teal overrides
   Dark teal (#0F766E) for proper contrast on light backgrounds
   ============================================================================ */
[data-theme="light"] .progress-sidebar {
    --ps-green: #0F766E;
    --ps-green-dim: rgba(15,118,110,0.08);
}

[data-theme="light"] .ps-step.completed .ps-step-node {
    background: #0F766E;
    border-color: #0F766E;
    box-shadow: 0 0 8px rgba(15,118,110,0.2);
}

[data-theme="light"] .ps-step.completed .ps-step-label {
    color: #0F766E;
}

[data-theme="light"] .ps-step.locked .ps-step-node {
    background: #0F766E;
    border-color: #0F766E;
}

[data-theme="light"] .ps-step.locked .ps-step-label {
    color: #0F766E;
}

[data-theme="light"] .ps-dot.completed {
    background: #0F766E;
    border-color: #0F766E;
    box-shadow: 0 0 4px rgba(15,118,110,0.25);
}

[data-theme="light"] .ps-dot.locked {
    background: #0F766E;
    border-color: #0F766E;
}

[data-theme="light"] .ps-dp-cr-dot {
    background: #0F766E;
}

[data-theme="light"] .ps-dp-cr-num,
[data-theme="light"] .ps-dp-plus {
    color: #0F766E;
}
