/* ===== Feature Tour / Guide ===== */
.tour-mask {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9990;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}
.tour-mask.visible {
    opacity: 1;
    pointer-events: auto;
}

.tour-spotlight {
    position: fixed;
    border: 3px solid #155EEF;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9991;
}

.tour-spotlight::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 8px;
    border: 2px solid rgba(21, 94, 239, 0.5);
    animation: tour-pulse 2s ease-in-out infinite;
}

@keyframes tour-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.01); }
}

.tour-tooltip {
    position: fixed;
    background: #1a1a2e;
    border: 1px solid #155EEF;
    border-radius: 12px;
    padding: 16px 20px;
    max-width: 320px;
    z-index: 9992;
    opacity: 0;
    transform: translateY(8px);
    /* Position animates along with the spotlight so transitions feel like
       one continuous glide instead of "hide → move → fade in". */
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                top 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                transform 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tour-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Inner-content cross-fade while the tooltip glides to its new position —
   keeps the card present on screen rather than blanking out between steps. */
.tour-tooltip-icon,
.tour-tooltip-title,
.tour-tooltip-desc,
.tour-tooltip-counter {
    transition: opacity 0.18s ease;
}

.tour-tooltip.content-swapping .tour-tooltip-icon,
.tour-tooltip.content-swapping .tour-tooltip-title,
.tour-tooltip.content-swapping .tour-tooltip-desc,
.tour-tooltip.content-swapping .tour-tooltip-counter {
    opacity: 0.15;
}

.tour-tooltip-icon {
    font-size: 22px;
    margin-bottom: 6px;
}

.tour-tooltip-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.tour-tooltip-desc {
    font-size: 13px;
    color: #8a8a9a;
    line-height: 1.5;
}

.tour-tooltip-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.tour-tooltip-counter {
    font-size: 12px;
    color: #8a8a9a;
}

.tour-tooltip-nav {
    display: flex;
    gap: 6px;
}

.tour-tooltip-btn {
    padding: 5px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: #252540;
    color: #e0e0e0;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: bold;
}

.tour-tooltip-btn:hover {
    background: #2f2f4a;
}

.tour-tooltip-btn.primary {
    background: #155EEF;
    border-color: #155EEF;
    color: #fff;
}

.tour-tooltip-btn.primary:hover {
    background: #1a6fff;
}
