/* -------------------------------------------------------
   SPOTLIGHT TOUR (onboarding)
------------------------------------------------------- */

.tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 8000;
    background: rgba(0, 0, 0, 0.75);
    animation: tour-fade-in .25s ease-out;
}

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

/* Cutout hole — transparent centre, huge box-shadow blocks the rest */
.tour-spotlight {
    position: fixed;
    border-radius: var(--radius-md);
    box-shadow:
        0 0 0 9999px rgba(0, 0, 0, 0.75),
        0 0 0 4px rgba(74, 144, 226, 0.7),
        0 0 24px 8px rgba(74, 144, 226, 0.35);
    z-index: 8001;
    pointer-events: none;
    transition: left .3s ease, top .3s ease, width .3s ease, height .3s ease;
}

/* Clone of the target element, positioned above the overlay */
.tour-clone-wrapper {
    position: fixed;
    z-index: 8001;
    pointer-events: auto;
    cursor: pointer;
    overflow: hidden;
}

/* Tooltip card */
.tour-tooltip {
    position: fixed;
    z-index: 8002;
    background: var(--color-surface);
    backdrop-filter: var(--blur);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
    padding: 20px;
    max-width: 320px;
    width: calc(100vw - 24px);
    color: var(--color-text);
    animation: tour-tooltip-in .25s ease-out;
}

@keyframes tour-tooltip-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tour-tooltip-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.tour-tooltip-text {
    font-size: 13px;
    line-height: 1.55;
    color: var(--color-muted);
    margin-bottom: 16px;
}

.tour-tooltip-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tour-tooltip-counter {
    font-size: 12px;
    color: var(--color-muted);
    font-weight: 500;
}

.tour-tooltip-actions {
    display: flex;
    gap: 8px;
}

.tour-tooltip-skip {
    background: none;
    border: none;
    color: var(--color-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-md);
    transition: color .15s;
}

.tour-tooltip-skip:hover {
    color: var(--color-text);
}

.tour-tooltip-next {
    background: var(--color-primary);
    color: white;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    transition: background .15s;
}

.tour-tooltip-next:hover {
    background: var(--color-primary-dark);
}