/* --- Shared Help Sidebar --- */
.help-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.help-sidebar-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.help-sidebar {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.help-sidebar-overlay.hidden .help-sidebar {
    transform: translateX(100%);
}

.help-header {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.help-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1e3a8a;
    font-weight: 700;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
}

.sidebar-close:hover {
    color: #ef4444;
}

.help-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.help-topics {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-topic-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid transparent;
    margin-bottom: 8px;
}

.help-topic-item:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.topic-icon {
    font-size: 1.5rem;
}

.topic-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.topic-title {
    font-weight: 600;
    color: #334155;
    font-size: 1rem;
}

.topic-desc {
    font-size: 0.85rem;
    color: #64748b;
}

/* --- Shared Video Modal --- */
.video-modal-content {
    position: relative;
    background: black;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-modal-content .video-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    transition: background 0.2s;
}

.video-modal-content .video-close-btn:hover {
    background: rgba(255, 0, 0, 0.7);
}

.video-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.demo-video {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* --- Help Button (Shared) --- */
.btn-help {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
    padding: 0;
}

.btn-help:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: rotate(15deg);
}