/*
 * Fleet interactive guided tour — overlay, spotlight cutout, and card.
 * Scoped under .fwt-*; accent follows --primary (military green or civilian purple).
 */

.fwt-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    pointer-events: none;
    visibility: hidden;
    font-family: var(--font-sans, 'Karla', sans-serif);
}

.fwt-overlay.is-open {
    pointer-events: auto;
    visibility: visible;
}

.fwt-spot {
    position: fixed;
    border-radius: var(--radius-lg, 12px);
    border: 2px solid var(--primary);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.72);
    pointer-events: none;
    transition: top 0.2s var(--ease, ease), left 0.2s var(--ease, ease),
        width 0.2s var(--ease, ease), height 0.2s var(--ease, ease);
}

.fwt-spot.is-hidden {
    display: none;
}

.fwt-card {
    position: fixed;
    width: calc(100% - 24px);
    max-width: 360px;
    padding: 20px 22px 18px;
    background: var(--bg-panel, #16161b);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-modal, 0 20px 60px rgba(0, 0, 0, 0.5));
    color: var(--text-color, #e6e6e6);
    pointer-events: auto;
    transition: top 0.2s var(--ease, ease), left 0.2s var(--ease, ease),
        transform 0.2s var(--ease, ease);
}

.fwt-overlay.is-centered .fwt-card {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.fwt-stage-label {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--primary);
}

.fwt-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary, #fff);
    line-height: 1.25;
}

.fwt-body {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary, #a0a0a8);
}

.fwt-body strong {
    color: var(--text-primary, #fff);
    font-weight: 600;
}

.fwt-progress {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted, rgba(255, 255, 255, 0.5));
}

.fwt-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 14px;
}

.fwt-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.fwt-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.fwt-dot.is-active {
    background: var(--primary);
    transform: scale(1.2);
}

.fwt-dot:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.fwt-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.fwt-actions-main {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.fwt-btn {
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-md, 8px);
    cursor: pointer;
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.15));
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary, #fff);
    transition: background 0.15s ease, border-color 0.15s ease, filter 0.12s ease;
}

.fwt-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}

.fwt-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.fwt-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.fwt-btn-primary {
    border: none;
    background: var(--grad-pill-active, linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%));
    color: #fff;
}

.fwt-btn-primary:hover {
    filter: brightness(1.1);
}

.fwt-btn-skip {
    padding: 9px 12px;
    font-size: 12px;
    color: var(--text-secondary, #a0a0a8);
    background: transparent;
    border-color: transparent;
}

.fwt-btn-skip:hover {
    color: var(--text-primary, #fff);
    background: rgba(255, 255, 255, 0.05);
}

/* Top-bar launcher (self-contained; does not depend on fleet.css) */
.btn-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 8px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary, #a0a0a8);
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-help:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--text-primary, #fff);
}

.btn-help:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .fwt-spot,
    .fwt-card {
        transition: none;
    }
}
