/* ── Tour Card ── */
.tour-card {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 340px;
    background: var(--bg-panel);
    border: 1px solid var(--border-mid);
    border-radius: 16px;
    padding: 18px 22px 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    z-index: 400;
    color: var(--text);
    animation: tour-card-in 0.4s cubic-bezier(0.16,1,0.3,1);
    transition: all 0.45s cubic-bezier(0.16,1,0.3,1);
}

.tour-card[data-position="bottom-left"] {
    left: calc(var(--sidebar-w) + 16px);
    bottom: 40px;
    transform: none;
}

.tour-card[data-position="bottom-right"] {
    left: auto;
    right: 72px;
    bottom: 40px;
    transform: none;
}

.tour-card[data-position="top-left"] {
    left: calc(var(--sidebar-w) + 16px);
    bottom: auto;
    top: 64px;
    transform: none;
}

.tour-card[data-position="top-right"] {
    left: auto;
    right: 72px;
    bottom: auto;
    top: 64px;
    transform: none;
}

.tour-card[data-position="center"] {
    bottom: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes tour-card-in {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Close button */
.tour-close {
    position: absolute;
    top: 12px; right: 16px;
    background: none; border: none;
    color: var(--text-dim);
    font-size: 20px;
    cursor: pointer;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}
.tour-close:hover {
    background: var(--bg-hover);
    color: var(--text);
}

/* Category pill */
.tour-category-pill {
    display: inline-block;
    font: 500 11px 'DM Mono', monospace;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 3px 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Title */
.tour-title {
    font: 700 17px 'Syne', sans-serif;
    color: var(--text);
    margin-bottom: 4px;
}

/* Description */
.tour-text {
    font: 400 12.5px/1.6 'Inter', sans-serif;
    color: var(--text-mid);
    margin-bottom: 12px;
}
.tour-text strong {
    color: var(--accent);
    font-weight: 600;
}

/* Footer */
.tour-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Progress */
.tour-progress-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 80px;
}

.tour-step-count {
    font: 400 11px 'DM Mono', monospace;
    color: var(--text-dim);
}

.tour-progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}

.tour-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.16,1,0.3,1);
}

/* Buttons */
.tour-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.tour-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 7px 16px;
    border-radius: 10px;
    font: 500 12px 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.tour-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-mid);
}
.tour-btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.tour-btn.primary:hover {
    background: #3a7fee;
}

.tour-btn-auto {
    width: 32px; height: 32px;
    padding: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}
.tour-btn-auto svg {
    width: 14px; height: 14px;
    fill: currentColor;
}

.tour-btn-finish {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: #000;
    font-weight: 600;
}
.tour-btn-finish:hover {
    opacity: 0.9;
}

/* Scrim — subtle darkening behind card, lets 3D scene show through */
.tour-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.15);
    z-index: 399;
    pointer-events: none;
    animation: tour-scrim-in 0.6s ease;
}
@keyframes tour-scrim-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Mobile */
@media (max-width: 600px) {
    .tour-card {
        width: calc(100vw - 24px);
        left: 12px;
        transform: none;
        bottom: 12px;
        padding: 18px 20px 16px;
    }
    .tour-card[data-position="bottom-left"],
    .tour-card[data-position="center"] {
        left: 12px;
        top: auto;
        bottom: 12px;
        transform: none;
    }
    .tour-title { font-size: 17px; }
    .tour-text { font-size: 12px; }
}
