/* Spotlight / Onboarding Tour */

#spotOverlay {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    background: transparent;
    pointer-events: auto;
    cursor: default;
}

#spotHole {
    position: fixed;
    z-index: 1000001;
    background: transparent;
    border: 3px solid rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.72);
    pointer-events: none;
}

#spotHole::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 22px;
    border: 3px solid rgba(37, 99, 235, 0.85);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.65), inset 0 0 18px rgba(37, 99, 235, 0.2);
    animation: spotPulse 2s ease-in-out infinite;
    pointer-events: none;
}

#spotHole.spot-anim {
    transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes spotPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50%      { opacity: 1;    transform: scale(1.03); }
}

#spotLabel {
    position: fixed;
    z-index: 1000002;
    background: #2563eb;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
    pointer-events: none;
    white-space: nowrap;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    opacity: 0;
    transition: opacity 0.22s ease;
}

#spotLabel.spot-show {
    opacity: 1;
}

#spotLabel::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
}

#spotLabel[data-place="top"]::after {
    bottom: -10px;
    border-top-color: #2563eb;
    border-bottom: 0;
}

#spotLabel[data-place="bottom"]::after {
    top: -10px;
    border-bottom-color: #2563eb;
    border-top: 0;
}

#spotTooltip {
    position: fixed;
    z-index: 1000002;
    width: 360px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    padding: 20px 22px 18px;
    box-sizing: border-box;
    color: #0f172a;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    opacity: 0;
    transition: opacity 0.22s ease;
}

#spotTooltip.spot-show {
    opacity: 1;
}

.spot-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.spot-step {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2563eb;
}

.spot-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 2px;
    transition: color 0.15s ease;
}

.spot-close:hover {
    color: #334155;
}

.spot-title {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
}

.spot-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #475569;
}

.spot-dots {
    display: flex;
    gap: 6px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.spot-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: all 0.25s ease;
}

.spot-dot.spot-dot-active {
    width: 22px;
    border-radius: 6px;
    background: #2563eb;
}

.spot-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.spot-actions-right {
    display: flex;
    gap: 10px;
}

.spot-btn {
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    padding: 9px 16px;
    border-radius: 9px;
    transition: all 0.18s ease;
    font-family: inherit;
}

.spot-btn-skip {
    background: none;
    color: #94a3b8;
    padding-left: 0;
}

.spot-btn-skip:hover {
    color: #64748b;
}

.spot-btn-prev {
    background: #f1f5f9;
    color: #334155;
}

.spot-btn-prev:hover:not(:disabled) {
    background: #e2e8f0;
}

.spot-btn-next {
    background: #2563eb;
    color: #ffffff;
}

.spot-btn-next:hover {
    background: #1d4ed8;
}

.spot-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.spot-arrow {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #ffffff;
    transform: rotate(45deg);
}

#spotTooltip[data-place="bottom"] .spot-arrow { top: -7px; }
#spotTooltip[data-place="top"]    .spot-arrow { bottom: -7px; }
#spotTooltip[data-place="left"]   .spot-arrow { right: -7px; }
#spotTooltip[data-place="right"]  .spot-arrow { left: -7px; }
