.tour-ghost-highlight {
    position: absolute;
    /* Layer 2: Above the dark backdrop, below the popup */
    z-index: 2147483646 !important; 
    border-radius: 4px;
    
    /* Just the border/glow, NO giant shadow anymore */
    border: 2px solid #fff; 
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.tour-ghost-highlight.pulse {
    animation: tutorialPulse 1.2s infinite ease-in-out;
}

body.tour-open {
    overflow: hidden !important;
    height: 100vh;
}

#tour-backdrop-svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2147483645 !important; /* Layer 1: Below the ghosts */
    pointer-events: none; /* Let clicks pass through the "holes" */
    opacity: 0.7; /* Adjust darkness here */
}

@keyframes tutorialPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* --- CONTROLS POPUP --- */
#tutorial-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 16px;
    width: 260px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #ccc;
    display: none;
    z-index: 2147483647; /* Sits on top of the ghost */
}

#tutorial-text {
    font-family: sans-serif;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #333;
}

/* Buttons */
#tutorial-btn-prev, #tutorial-btn-next {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    font-size: 14px;
}

#tutorial-btn-prev {
    color: #575757;
    border: solid 1px #ccc;
    background: #fff;
}

#tutorial-btn-prev:disabled {
    color: #ccc;
    border-color: #eee;
    cursor: not-allowed;
}

#tutorial-btn-next {
    color: #575757;
    border: solid 1px #ccc;
    background: #fff;
}

#tutorial-btn-next:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Hover effects for enterprise feel */
#tutorial-btn-prev:not(:disabled):hover { border-color: #575757; background: #f9f9f9; }
#tutorial-btn-next:not(:disabled):hover { border-color: #575757; background: #f9f9f9; }
#tutorial-btn-skip, #tutorial-btn-skip-all {
    padding: 6px 12px;
    color: #ab1d37;
    border: 1px solid #c2c2c2;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
}