.sidebar-tour-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 2400;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 16px;
}

.sidebar-tour-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.sidebar-tour-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
    max-width: 420px;
    width: 100%;
    padding: 24px;
    position: relative;
    color: #0f172a;
}

.sidebar-tour-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.05);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar-tour-close:hover,
.sidebar-tour-close:focus {
    background: rgba(15, 23, 42, 0.12);
    transform: scale(1.05);
}

.sidebar-tour-step-count {
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
}

.sidebar-tour-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #0f172a;
}

.sidebar-tour-description {
    margin-bottom: 18px;
    color: #475569;
    line-height: 1.55;
    font-size: 14px;
}

.sidebar-tour-video {
    display: none;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
    margin-bottom: 20px;
}

.sidebar-tour-video.is-visible {
    display: inline-flex;
}

.sidebar-tour-video svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.sidebar-tour-video:hover,
.sidebar-tour-video:focus {
    text-decoration: underline;
}

.sidebar-tour-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.sidebar-tour-actions .btn {
    min-width: 120px;
}

.sidebar-tour-highlight > a,
.sidebar-tour-highlight > a:hover,
.sidebar-tour-highlight > a:focus {
    position: relative;
    z-index: 2450;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.9);
    background: rgba(56, 189, 248, 0.12);
    border-radius: 8px;
}

.sidebar-tour-overlay::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
}

.sidebar-tour-video-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.25s ease;
}

.sidebar-tour-video-container {
    background: #0f172a;
    color: #f8fafc;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.55);
    position: relative;
    padding: 24px;
}

.sidebar-tour-video-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(248, 250, 252, 0.12);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sidebar-tour-video-close:hover,
.sidebar-tour-video-close:focus {
    background: rgba(248, 250, 252, 0.2);
}

.sidebar-tour-video-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.sidebar-tour-video-frame video {
    width: 100%;
    border-radius: 8px;
    outline: none;
    background: #020617;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 500px) {
    .sidebar-tour-card {
        padding: 20px;
    }

    .sidebar-tour-actions {
        flex-direction: column;
    }

    .sidebar-tour-actions .btn {
        width: 100%;
    }
}
