/* ── SBM Tour Tooltip ─────────────────────────────────────────── */
.shepherd-element.sbm-tour {
    max-width: 420px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.18), 0 4px 16px rgba(28,57,105,0.12);
    animation: sbmTourIn 0.28s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes sbmTourIn {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)  scale(1); }
}

/* ── Header ──────────────────────────────────────────────────── */
.sbm-tour .shepherd-header {
    background: linear-gradient(135deg, #1C3969 0%, #11b3e3 100%);
    padding: 1.1rem 1.4rem 0.9rem;
    position: relative;
}
/* progress track */
.sbm-tour .shepherd-header::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: rgba(255,255,255,0.2);
}
/* progress fill — driven by --sbm-progress custom property */
.sbm-tour .shepherd-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    width: var(--sbm-progress, 0%);
    background: #f6c000;
    transition: width 0.4s ease;
}

.sbm-tour .shepherd-title {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}
.sbm-tour .shepherd-cancel-icon {
    color: rgba(255,255,255,0.75);
    transition: color 0.15s;
    font-size: 1.4em;
}
.sbm-tour .shepherd-cancel-icon:hover { color: #fff; }

/* ── Step counter chip (injected into text) ──────────────────── */
.sbm-step-counter {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}
.sbm-step-dots {
    display: flex;
    gap: 4px;
}
.sbm-step-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #d1d5db;
    transition: background 0.2s, transform 0.2s;
}
.sbm-step-dot.active {
    background: #1C3969;
    transform: scale(1.25);
}
.sbm-step-dot.done { background: #11b3e3; }

/* ── Body text ───────────────────────────────────────────────── */
.sbm-tour .shepherd-text {
    font-size: 0.875rem;
    line-height: 1.65;
    padding: 1.1rem 1.4rem 0.9rem;
    color: #374151;
}
.sbm-step-body p {
    margin: 0 0 0.5rem;
}
.sbm-step-body strong { color: #1C3969; font-weight: 600; }

/* tip block */
.sbm-step-tip {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    background: rgba(17,179,227,0.07);
    border-left: 3px solid #11b3e3;
    border-radius: 0 8px 8px 0;
    padding: 0.55rem 0.75rem;
    margin-top: 0.85rem;
    font-size: 0.8rem;
    color: #1e40af;
    line-height: 1.5;
}
.sbm-step-tip i {
    flex-shrink: 0;
    margin-top: 1px;
    color: #11b3e3;
}

/* ── Footer ──────────────────────────────────────────────────── */
.sbm-tour .shepherd-footer {
    border-top: 1px solid #f0f0f0;
    padding: 0.75rem 1.4rem;
    background: #fafafa;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.sbm-tour .shepherd-button {
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.45rem 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.18s;
}
.sbm-tour .shepherd-button-primary {
    background: linear-gradient(135deg, #1C3969 0%, #11b3e3 100%);
    color: #fff;
}
.sbm-tour .shepherd-button-primary:hover:not(:disabled) {
    box-shadow: 0 4px 14px rgba(28,57,105,0.35);
    transform: translateY(-1px);
    color: #fff;
}
.sbm-tour .shepherd-button-secondary {
    background: #f3f4f6;
    color: #6b7280;
}
.sbm-tour .shepherd-button-secondary:hover:not(:disabled) {
    background: #e5e7eb;
    color: #1C3969;
}

/* ── Arrow ───────────────────────────────────────────────────── */
.sbm-tour .shepherd-arrow:before { background: #fff; }

/* ── Target element pulse ────────────────────────────────────── */
@keyframes sbmPulse {
    0%, 100% { box-shadow: 0 0 0 0   rgba(17,179,227,0.5); }
    50%       { box-shadow: 0 0 0 7px rgba(17,179,227,0); }
}
.shepherd-has-active-step .shepherd-target {
    animation: sbmPulse 1.8s ease-in-out infinite;
    border-radius: 6px;
}

/* ── Floating Start Tour FAB ─────────────────────────────────── */
.sbm-tour-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1055;
    background: linear-gradient(135deg, #1C3969 0%, #11b3e3 100%);
    color: #fff;
    border-radius: 999px;
    min-width: 148px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    box-shadow: 0 4px 20px rgba(28,57,105,0.3);
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
    overflow: visible;
}
.sbm-tour-fab:hover {
    box-shadow: 0 8px 30px rgba(28,57,105,0.4);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}
/* pulsing ring */
.sbm-tour-fab::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    border: 2px solid rgba(17,179,227,0.45);
    animation: fabRing 2.4s ease-out infinite;
    pointer-events: none;
}
@keyframes fabRing {
    0%   { transform: scale(1);   opacity: 0.7; }
    70%  { transform: scale(1.12); opacity: 0; }
    100% { transform: scale(1.12); opacity: 0; }
}
.sbm-tour-fab-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    user-select: none;
    letter-spacing: 0.02em;
}
