/* ── Tour spotlight overlay ───────────────────────────── */
.tour-spotlight {
    position: fixed;
    z-index: 9998;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.75);
    border-radius: 8px;
    transition: top 0.35s cubic-bezier(.4,0,.2,1),
                left 0.35s cubic-bezier(.4,0,.2,1),
                width 0.35s cubic-bezier(.4,0,.2,1),
                height 0.35s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}

/* Pulse ring around spotlight */
.tour-spotlight::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid rgba(240, 192, 64, 0.4);
    border-radius: 10px;
    animation: tour-ring-pulse 2s ease-in-out infinite;
}
@keyframes tour-ring-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ── Tour tooltip ────────────────────────────────────── */
.tour-tooltip {
    position: fixed;
    z-index: 9999;
    background: #141720;
    border: 1px solid rgba(240, 192, 64, 0.4);
    border-radius: 12px;
    padding: 18px 22px;
    width: 300px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(240, 192, 64, 0.08);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
.tour-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.tour-tooltip-title {
    color: #f0c040;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.tour-tooltip-text {
    color: #9ca3af;
    font-size: 0.75rem;
    line-height: 1.6;
}

/* ── Tooltip footer (buttons + progress) ─────────────── */
.tour-tooltip-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #1e2330;
    gap: 10px;
}

.tour-progress {
    color: #4b5563;
    font-size: 0.6rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}

.tour-btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.tour-btn-skip {
    color: #6b7280;
    font-size: 0.7rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    font-family: inherit;
}
.tour-btn-skip:hover {
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.04);
}

.tour-btn-next {
    background: #f0c040;
    color: #000;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 6px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.tour-btn-next:hover {
    background: #f0cc60;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(240, 192, 64, 0.3);
}
.tour-btn-next:active {
    transform: translateY(0);
}

/* ── Progress bar ────────────────────────────────────── */
.tour-progress-bar {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tour-progress-track {
    flex: 1;
    height: 3px;
    background: #1e2330;
    border-radius: 2px;
    overflow: hidden;
}
.tour-progress-fill {
    height: 100%;
    background: #f0c040;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* ── Entrance animation ──────────────────────────────── */
@keyframes tour-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.tour-spotlight {
    animation: tour-fade-in 0.3s ease-out;
}

/* ── First-visit prompt banner ───────────────────────── */
.tour-first-visit {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 9000;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}
.tour-first-visit.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.tour-fv-content {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #141720;
    border: 1px solid rgba(240, 192, 64, 0.35);
    border-radius: 14px;
    padding: 14px 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
                0 0 60px rgba(240, 192, 64, 0.06);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    max-width: 560px;
}
.tour-fv-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}
.tour-fv-text {
    flex: 1;
    min-width: 0;
}
.tour-fv-title {
    color: #f0c040;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 2px;
}
.tour-fv-desc {
    color: #9ca3af;
    font-size: 0.7rem;
    line-height: 1.4;
}
.tour-fv-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}
.tour-fv-start {
    background: #f0c040;
    color: #000;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 6px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    white-space: nowrap;
}
.tour-fv-start:hover { background: #f0cc60; }
.tour-fv-dismiss {
    color: #6b7280;
    font-size: 0.6rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 2px;
    text-align: center;
    transition: color 0.15s;
}
.tour-fv-dismiss:hover { color: #9ca3af; }
