/* ── ULTRAGOL TOUR GUIDE — ultrax edition ───────────────────────────────── */

/* Four dark panels that surround the spotlight target */
.tour-panel {
    position: fixed;
    background: rgba(5, 8, 16, 0.84);
    z-index: 9991;
    transition: all 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    display: none;
}

/* Highlight ring around the target */
.tour-spotlight-ring {
    position: fixed;
    z-index: 9992;
    border-radius: 14px;
    border: 2px solid rgba(233, 69, 96, 0.9);
    box-shadow:
        0 0 0 4px rgba(233, 69, 96, 0.18),
        0 0 30px rgba(233, 69, 96, 0.4),
        inset 0 0 0 2px rgba(233, 69, 96, 0.08);
    pointer-events: none;
    display: none;
    transition: all 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    animation: uxRingPulse 2s ease-in-out infinite;
}
@keyframes uxRingPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(233,69,96,0.18), 0 0 30px rgba(233,69,96,0.4); }
    50%       { box-shadow: 0 0 0 8px rgba(233,69,96,0.08), 0 0 54px rgba(233,69,96,0.6); }
}

/* ── TOOLTIP CARD ─────────────────────────────────────────────────────────── */
.tour-card {
    position: fixed;
    z-index: 9999;
    width: 300px;
    background: #0e1220;
    border: 1px solid rgba(233, 69, 96, 0.32);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 20px 56px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.04);
    font-family: 'Inter', -apple-system, sans-serif;
    color: #fff;
    transition: all 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(10px) scale(0.97);
    display: none;
}
.tour-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Arrow */
.tour-card::before {
    content: '';
    position: absolute;
    width: 11px;
    height: 11px;
    background: #0e1220;
    border: 1px solid rgba(233, 69, 96, 0.32);
    transform: rotate(45deg);
    transition: all 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.tour-card.arrow-top::before    { top: -6px;    left: 26px;  border-bottom: none; border-right: none; }
.tour-card.arrow-bottom::before { bottom: -6px; left: 26px;  border-top: none; border-left: none; }
.tour-card.arrow-left::before   { left: -6px;   top: 24px;   border-right: none; border-top: none; }
.tour-card.arrow-right::before  { right: -6px;  top: 24px;   border-left: none; border-bottom: none; }
.tour-card.arrow-none::before   { display: none; }

/* Step badge + dots */
.tour-step-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.tour-step-badge {
    background: rgba(233, 69, 96, 0.14);
    border: 1px solid rgba(233, 69, 96, 0.32);
    color: #e94560;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 50px;
    white-space: nowrap;
}
.tour-step-dots {
    display: flex;
    gap: 4px;
    margin-left: auto;
}
.tour-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    transition: background 0.3s, transform 0.3s;
}
.tour-dot.active {
    background: #e94560;
    transform: scale(1.4);
}
.tour-dot.done {
    background: rgba(233,69,96,0.4);
}

/* Title & body */
.tour-title {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 7px;
    letter-spacing: -0.2px;
}
.tour-body {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.58);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Buttons */
.tour-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tour-btn-next {
    flex: 1;
    background: #e94560;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: transform 0.18s, box-shadow 0.18s;
}
.tour-btn-next:hover  { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(233,69,96,0.5); }
.tour-btn-next:active { transform: scale(0.96); }

.tour-btn-skip {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.45);
    padding: 10px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
}
.tour-btn-skip:hover {
    border-color: rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.05);
}

/* ── WELCOME MODAL ───────────────────────────────────────────────────────── */
.tour-welcome {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 8, 16, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.tour-welcome.active {
    opacity: 1;
    pointer-events: auto;
}
.tour-welcome-card {
    background: #0e1220;
    border: 1px solid rgba(233, 69, 96, 0.28);
    border-radius: 24px;
    padding: 40px 32px;
    max-width: 380px;
    width: calc(100% - 32px);
    text-align: center;
    box-shadow: 0 28px 70px rgba(0,0,0,0.75);
    animation: uxWelcomeIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes uxWelcomeIn {
    from { opacity: 0; transform: scale(0.82) translateY(24px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.tour-welcome-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(233, 69, 96, 0.14);
    border: 1px solid rgba(233, 69, 96, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin: 0 auto 20px;
    animation: uxIconPulse 2s ease-in-out infinite;
}
@keyframes uxIconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(233,69,96,0.3); }
    50%       { box-shadow: 0 0 0 10px rgba(233,69,96,0); }
}
.tour-welcome-card h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}
.tour-welcome-card p {
    font-size: 0.86rem;
    color: rgba(255,255,255,0.52);
    line-height: 1.7;
    margin-bottom: 28px;
}
.tour-welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tour-btn-start {
    background: #e94560;
    color: #fff;
    border: none;
    padding: 13px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: transform 0.18s, box-shadow 0.18s;
}
.tour-btn-start:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(233,69,96,0.5); }

.tour-btn-dismiss {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.32);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 6px;
    transition: color 0.18s;
}
.tour-btn-dismiss:hover { color: rgba(255,255,255,0.58); }


/* ── FINISH BURST ─────────────────────────────────────────────────────────── */
.tour-finish-burst {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tour-finish-burst span {
    font-size: 3rem;
    animation: uxBurst 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    display: block;
}
@keyframes uxBurst {
    0%   { opacity: 0; transform: scale(0.3); }
    60%  { opacity: 1; transform: scale(1.25); }
    100% { opacity: 0; transform: scale(1.5) translateY(-44px); }
}

@media (max-width: 480px) {
    .tour-card { width: calc(100vw - 24px); }
    .tour-welcome-card { padding: 28px 20px; }
    .tour-trigger-btn { bottom: 96px; right: 12px; }
}
