/* --- Overlay Container --- */
.ob-overlay-container {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 99999;
    pointer-events: none; /* Pass clicks to spotlight */
    overflow: hidden;
    animation: obFadeIn 0.3s ease forwards;
}

.ob-overlay-container.fade-out {
    animation: obFadeOut 0.3s ease forwards;
}

/* --- The Spotlight --- */
.ob-spotlight {
    position: absolute;
    border-radius: 6px;
    /* Deep dark overlay using box-shadow trick */
    box-shadow: 0 0 0 4000px rgba(0, 0, 0, 0.85);
    /* Active blue border */
    border: 2px solid #3b82f6; 
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

/* --- The Card (New Design) --- */
.ob-card {
    position: absolute;
    width: 340px;
    background: #0f0f11; /* Very dark grey, almost black */
    border: 1px solid #27272a;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    pointer-events: auto;
    transition: top 0.4s ease, left 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Progress Bar */
.ob-progress-track {
    height: 3px;
    background: #27272a;
    width: 100%;
}
.ob-progress-track .fill {
    height: 100%;
    background: #3b82f6;
    transition: width 0.3s ease;
}

/* Content */
.ob-card-body {
    padding: 24px;
}

.ob-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ob-step {
    font-size: 10px;
    font-weight: 700;
    color: #71717a;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ob-close-icon {
    font-size: 14px;
    color: #52525b;
    cursor: pointer;
    transition: color 0.2s;
}
.ob-close-icon:hover { color: #fff; }

.ob-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.2px;
}

.ob-text {
    margin: 0 0 20px 0;
    font-size: 13px;
    line-height: 1.6;
    color: #a1a1aa;
}

/* Footer & Buttons */
.ob-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Push primary button to right */
    gap: 12px;
}

.ob-btn-text {
    background: none;
    border: none;
    color: #71717a;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px;
    margin-right: auto; /* Push to left */
}
.ob-btn-text:hover { color: #fff; }

.ob-btn-primary {
    background: #fff; /* High contrast white button */
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}
.ob-btn-primary:hover {
    background: #e4e4e7;
}

/* Interaction Hint Pill */
.ob-interaction-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.pulse-dot {
    width: 6px; height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

/* --- Center Mode --- */
.ob-card.center-mode {
    width: 400px;
    text-align: center;
}
.ob-card.center-mode .ob-footer {
    justify-content: center;
}
.ob-card.center-mode .ob-btn-text {
    margin-right: 0; /* Center align */
}

/* Animations */
@keyframes obFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes obFadeOut { from { opacity: 1; } to { opacity: 0; } }

/* --- Fix Lock Overlay Positioning --- */
.timeline-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    /* [REQ] Use sticky to keep it visible in the viewport, not the center of 2000px */
    position: sticky; 
    width: 100%;
    max-width: 1000px; /* Limits how far right it can center itself */
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    pointer-events: none;
}

.timeline-lock-overlay.active {
    display: flex;
}

/* Ensure the content box itself allows clicks if needed */
.lock-content {
    pointer-events: auto;
    position: absolute !important;
    top: -12em;
    left: 18em;
}

.lock-content{
    display: none;
}