/* ============================= */
/* Общая блокировка прокрутки    */
/* ============================= */

.onboarding-lock {
    overflow: hidden;
}


/* ============================= */
/* Скрытие модалки и тура        */
/* ============================= */

.onboarding-modal[hidden],
.onboarding-tour[hidden] {
    display: none !important;
}


/* ============================= */
/* Подсветка пункта меню         */
/* ============================= */

.onboarding-highlight {
    position: relative;
    z-index: 3000 !important;
    border-radius: 8px;
    background-color: #eef2ff !important;
    color: #4361ee !important;
    box-shadow:
        0 0 0 4px rgba(67, 97, 238, 0.35),
        0 0 0 9999px rgba(15, 23, 42, 0.45);
}

.onboarding-highlight:hover {
    background-color: #eef2ff !important;
    color: #4361ee !important;
}


/* ============================= */
/* Приветственная модалка        */
/* ============================= */

.onboarding-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.onboarding-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.onboarding-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    padding: 32px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
}

.onboarding-modal__title {
    margin-bottom: 16px;
    color: #111827;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.onboarding-modal__text,
.onboarding-modal__question {
    margin-bottom: 16px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.65;
}

.onboarding-modal__question {
    font-weight: 600;
    color: #111827;
}

.onboarding-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}


/* ============================= */
/* Тур по навигации              */
/* ============================= */

.onboarding-tour {
    position: fixed;
    inset: 0;
    z-index: 900;
}

.onboarding-tour__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.onboarding-tour__tooltip {
    position: fixed;
    z-index: 3000;
    width: min(360px, calc(100vw - 32px));
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.2);
}

.onboarding-tour__step {
    margin-bottom: 10px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.onboarding-tour__title {
    margin-bottom: 8px;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
}

.onboarding-tour__text {
    margin-bottom: 18px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}

.onboarding-tour__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.onboarding-tour__actions .btn-link {
    margin-left: auto;
    color: #6b7280;
    text-decoration: none;
}

.onboarding-tour__actions .btn-link:hover {
    color: #374151;
}


/* ============================= */
/* Адаптивность                  */
/* ============================= */

@media (max-width: 767.98px) {
    .onboarding-modal__dialog {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .onboarding-modal__title {
        font-size: 20px;
    }

    .onboarding-modal__actions .btn {
        width: 100%;
    }

    .onboarding-tour__tooltip {
        left: 16px !important;
        right: 16px;
        width: auto;
    }
}