/* ==================== AURA ONBOARDING (тур + контекстные подсказки) ==================== */

.aura-onb-root {
    position: fixed;
    inset: 0;
    z-index: 10070;
    pointer-events: none;
}

.aura-onb-root--active {
    pointer-events: auto;
}

.aura-onb-root--hidden {
    display: none !important;
}

.aura-onb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    animation: aura-onb-fade-in 0.25s ease;
}

.aura-onb-spotlight {
    position: fixed;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.52);
    pointer-events: none;
    transition: top 0.2s ease, left 0.2s ease, width 0.2s ease, height 0.2s ease;
    z-index: 1;
}

.aura-onb-spotlight--pulse {
    animation: aura-onb-pulse 1.6s ease-in-out infinite;
}

@keyframes aura-onb-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.52), 0 0 0 0 rgba(74, 111, 255, 0.45);
    }
    50% {
        box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.52), 0 0 0 6px rgba(74, 111, 255, 0.35);
    }
}

@keyframes aura-onb-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* --- Общий тур (карточка) --- */
.aura-onb-tour-wrap {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    display: flex;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.aura-onb-tour-card {
    pointer-events: auto;
    position: relative;
    width: min(440px, 100%);
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(74, 111, 255, 0.22);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
    padding: 16px 16px 14px;
    animation: aura-onb-slide-up 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes aura-onb-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aura-onb-tour-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.aura-onb-tour-emoji {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4a6fff 0%, #6b8cff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 6px 16px rgba(74, 111, 255, 0.3);
}

.aura-onb-tour-title {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.aura-onb-tour-body {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #475569;
}

.aura-onb-tour-body strong {
    color: #4a6fff;
    font-weight: 600;
}

.aura-onb-tour-progress {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

.aura-onb-tour-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.aura-onb-btn {
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 9px 16px;
    transition: background 0.15s ease, transform 0.1s ease;
}

.aura-onb-btn:active {
    transform: scale(0.98);
}

.aura-onb-btn--primary {
    background: #4a6fff;
    color: #fff;
    box-shadow: 0 4px 14px rgba(74, 111, 255, 0.35);
}

.aura-onb-btn--primary:hover {
    background: #3d5fe6;
}

.aura-onb-btn--ghost {
    background: transparent;
    color: #64748b;
}

.aura-onb-btn--ghost:hover {
    color: #334155;
    background: rgba(15, 23, 42, 0.05);
}

.aura-onb-tour-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.05);
    color: #64748b;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.aura-onb-tour-close:hover {
    background: rgba(15, 23, 42, 0.1);
    color: #334155;
}

/* --- Контекстная подсказка --- */
.aura-onb-ctx-card {
    position: fixed;
    z-index: 3;
    max-width: min(320px, calc(100vw - 24px));
    padding: 12px 14px;
    background: #fff;
    border: 1px solid rgba(74, 111, 255, 0.2);
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.2);
    animation: aura-onb-slide-up 0.3s ease;
    pointer-events: auto;
}

.aura-onb-ctx-title {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.aura-onb-ctx-body {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.45;
    color: #475569;
}

.aura-onb-ctx-body strong {
    color: #4a6fff;
    font-weight: 600;
}

.aura-onb-ctx-actions {
    display: flex;
    justify-content: flex-end;
}

@media (min-width: 769px) {
    .aura-onb-tour-wrap {
        bottom: 16px;
        right: 16px;
        left: auto;
        padding: 0;
        justify-content: flex-end;
    }

    .aura-onb-tour-card {
        width: 400px;
    }
}

[data-theme='dark'] .aura-onb-tour-card,
[data-theme='dark'] .aura-onb-ctx-card {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-color: rgba(107, 140, 255, 0.25);
}

[data-theme='dark'] .aura-onb-tour-title,
[data-theme='dark'] .aura-onb-ctx-title {
    color: #f8fafc;
}

[data-theme='dark'] .aura-onb-tour-body,
[data-theme='dark'] .aura-onb-ctx-body,
[data-theme='dark'] .aura-onb-tour-progress {
    color: #94a3b8;
}
