.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    transition: clip-path 0.3s ease;
    pointer-events: auto;
}

#tour-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    z-index: 9999;
    pointer-events: none;
}

.tour-tooltip {
    position: fixed;
    width: 380px;
    max-width: calc(100vw - 32px);
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 92, 246, 0.15);
    padding: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
    z-index: 10000;
    overflow: hidden;
}

.tour-tooltip-visible {
    opacity: 1;
    transform: translateY(0);
}

.tour-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px 0 20px;
}

.tour-step-count {
    font-size: 12px;
    font-weight: 500;
    color: #8b5cf6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tour-close-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.tour-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

.tour-body {
    padding: 12px 20px 16px 20px;
}

.tour-title {
    font-size: 17px;
    font-weight: 600;
    color: #f8fafc;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.tour-text {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

.tour-text strong {
    color: #c4b5fd;
    font-weight: 600;
}

.tour-progress {
    display: flex;
    gap: 4px;
    padding: 0 20px 14px 20px;
    justify-content: center;
}

.tour-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.tour-progress-dot.active {
    background: #8b5cf6;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
    transform: scale(1.2);
}

.tour-progress-dot.completed {
    background: rgba(139, 92, 246, 0.4);
}

.tour-buttons {
    display: flex;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    justify-content: flex-end;
}

.tour-btn {
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: 'Inter', system-ui, sans-serif;
}

.tour-btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.tour-btn-primary:hover {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
}

.tour-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tour-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

@media (max-width: 640px) {
    .tour-tooltip {
        width: calc(100vw - 24px);
        left: 12px !important;
    }

    .tour-progress-dot {
        width: 6px;
        height: 6px;
    }

    .tour-title {
        font-size: 15px;
    }

    .tour-text {
        font-size: 13px;
    }
}
