/* Interactive site tour — 7-step onboarding */
.site-tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: auto;
}
.site-tour-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 16, 24, 0.55);
    z-index: 10000;
}
.site-tour-spotlight {
    position: fixed;
    z-index: 10001;
    border-radius: 14px;
    box-shadow: 0 0 0 9999px rgba(15, 16, 24, 0.62);
    pointer-events: none;
    transition: top 0.25s ease, left 0.25s ease, width 0.25s ease, height 0.25s ease;
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}
.site-tour-spotlight.is-pulse {
    animation: site-tour-pulse 1.6s ease-in-out infinite;
}
@keyframes site-tour-pulse {
    0%, 100% { outline-color: rgba(255, 255, 255, 0.75); }
    50% { outline-color: rgba(200, 208, 255, 1); }
}

.site-tour-popover {
    position: fixed;
    z-index: 10002;
    width: min(420px, calc(100vw - 32px));
    background: var(--surface-container-lowest, #fff);
    color: var(--on-surface, #1a1b23);
    border-radius: var(--radius-xl, 16px);
    border: 1px solid rgba(0, 33, 150, 0.12);
    box-shadow: var(--shadow-lg, 0 16px 48px rgba(0, 0, 0, 0.18));
    padding: 20px 20px 16px;
    font-family: var(--font-body, "Vazirmatn", sans-serif);
    transition: top 0.25s ease, left 0.25s ease, opacity 0.2s ease;
}
.site-tour-popover[hidden] { display: none !important; }

.site-tour-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.site-tour-step-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary, #002196);
    letter-spacing: 0.02em;
}
.site-tour-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}
.site-tour-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(0, 33, 150, 0.2);
    transition: transform 0.2s ease, background 0.2s ease;
}
.site-tour-dot.is-active {
    background: var(--primary, #002196);
    transform: scale(1.2);
}
.site-tour-dot.is-done {
    background: rgba(0, 33, 150, 0.45);
}

.site-tour-title {
    margin: 0 0 8px;
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--on-surface, #1a1b23);
    line-height: 1.45;
}
.site-tour-text {
    margin: 0 0 16px;
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--on-surface-variant, #555);
}
.site-tour-text a {
    color: var(--primary, #002196);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-tour-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.site-tour-actions-right {
    display: flex;
    gap: 8px;
    margin-right: auto;
}
.site-tour-btn {
    border: none;
    border-radius: 999px;
    padding: 9px 16px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}
.site-tour-btn:active { transform: scale(0.98); }
.site-tour-btn-skip {
    background: transparent;
    color: var(--on-surface-variant, #666);
}
.site-tour-btn-skip:hover { color: var(--primary, #002196); }
.site-tour-btn-ghost {
    background: rgba(0, 33, 150, 0.08);
    color: var(--primary, #002196);
}
.site-tour-btn-ghost:hover { background: rgba(0, 33, 150, 0.14); }
.site-tour-btn-primary {
    background: var(--primary, #002196);
    color: #fff;
}
.site-tour-btn-primary:hover { filter: brightness(1.06); }

.site-tour-launcher {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(0, 33, 150, 0.2);
    background: rgba(251, 248, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--primary, #002196);
    font-family: var(--font-body, "Vazirmatn", sans-serif);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-md, 0 8px 24px rgba(0, 0, 0, 0.12));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.site-tour-launcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 33, 150, 0.18);
}
.site-tour-launcher svg {
    flex-shrink: 0;
}
.site-tour-launcher[hidden],
body.site-tour-open .site-tour-launcher {
    display: none !important;
}

body.site-tour-open {
    overflow: hidden;
}
body.site-tour-open .scroll-top {
    display: none !important;
}

@media (max-width: 899px) {
    .site-tour-popover {
        left: 16px !important;
        right: 16px !important;
        width: auto;
        bottom: 16px !important;
        top: auto !important;
    }
    .site-tour-launcher {
        bottom: 16px;
        left: 16px;
        padding: 9px 14px;
        font-size: 0.82rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-tour-spotlight,
    .site-tour-popover { transition: none !important; }
    .site-tour-spotlight.is-pulse { animation: none !important; }
}

.site-tour-footer-link {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: var(--gold-light, #6b7fd4);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.site-tour-footer-link:hover { color: var(--gold, #002196); }
.site-footer .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-bottom-sep {
    color: var(--text-muted);
    opacity: 0.6;
}
