/* ============================================
   TOUR POPUPS & TOOLTIPS - PREMIUM STYLES
   Ultra-modern, glassmorphic design
   ============================================ */

.tour-tooltip {
    position: fixed;
    z-index: 9999;
    max-width: 480px;
    animation: tooltipSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.4));
}

@keyframes tooltipSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.tooltip-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 0 30px rgba(99, 102, 241, 0.4);
    border: 3px solid transparent;
    background-image: linear-gradient(white, white),
        linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    position: relative;
    overflow: hidden;
}

.tooltip-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.tooltip-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.02em;
}

.tooltip-content p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
    font-weight: 500;
}

.tooltip-actions {
    display: flex;
    gap: 1rem;
}

.btn-tooltip {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    background: white;
    color: #4b5563;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.btn-tooltip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-tooltip:hover::before {
    width: 300px;
    height: 300px;
}

.btn-tooltip:hover {
    border-color: #6366f1;
    color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.btn-tooltip.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 10px 25px rgba(102, 102, 234, 0.3);
}

.btn-tooltip.btn-primary::before {
    background: rgba(255, 255, 255, 0.2);
}

.btn-tooltip.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(102, 102, 234, 0.5);
    color: white;
}

.tooltip-arrow {
    width: 0;
    height: 0;
    border-style: solid;
    position: absolute;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.tooltip-arrow.top {
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 15px 15px 0 15px;
    border-color: #6366f1 transparent transparent transparent;
}

.tooltip-arrow.bottom {
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 15px 15px 15px;
    border-color: transparent transparent #6366f1 transparent;
}

.tooltip-arrow.left {
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 15px 0 15px 15px;
    border-color: transparent transparent transparent #6366f1;
}

.tooltip-arrow.right {
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 15px 15px 15px 0;
    border-color: transparent #6366f1 transparent transparent;
}

/* ============================================
   HIGHLIGHT EFFECTS - PREMIUM
   ============================================ */

.tour-highlight {
    position: relative;
    z-index: 9998;
    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.5),
        0 0 0 8px rgba(99, 102, 241, 0.3),
        0 0 0 12px rgba(99, 102, 241, 0.15),
        0 0 60px rgba(99, 102, 241, 0.6) !important;
    animation: pulseGlow 2s ease-in-out infinite;
    border-radius: 1.5rem !important;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow:
            0 0 0 4px rgba(99, 102, 241, 0.5),
            0 0 0 8px rgba(99, 102, 241, 0.3),
            0 0 0 12px rgba(99, 102, 241, 0.15),
            0 0 60px rgba(99, 102, 241, 0.6);
    }

    50% {
        box-shadow:
            0 0 0 8px rgba(99, 102, 241, 0.6),
            0 0 0 16px rgba(99, 102, 241, 0.4),
            0 0 0 24px rgba(99, 102, 241, 0.2),
            0 0 80px rgba(99, 102, 241, 0.8);
    }
}

/* ============================================
   TOUR OVERLAY - PREMIUM
   ============================================ */

.tour-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    z-index: 9997;
    animation: overlayFadeIn 0.5s ease-out;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }

    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

/* ============================================
   FEATURE SPOTLIGHT
   ============================================ */

.feature-spotlight {
    position: relative;
    animation: spotlightGlow 2.5s ease-in-out infinite;
}

@keyframes spotlightGlow {

    0%,
    100% {
        box-shadow:
            0 0 30px rgba(99, 102, 241, 0.4),
            0 0 60px rgba(99, 102, 241, 0.2);
    }

    50% {
        box-shadow:
            0 0 50px rgba(99, 102, 241, 0.6),
            0 0 100px rgba(99, 102, 241, 0.4);
    }
}

/* ============================================
   INFO POPUP
   ============================================ */

.info-popup {
    position: absolute;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 3rem;
    font-size: 0.9375rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(99, 102, 241, 0.5);
    z-index: 100;
    animation: popupBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes popupBounce {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.7);
    }

    50% {
        transform: translateY(-8px) scale(1.1);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   INTERACTIVE POINTER
   ============================================ */

.tour-pointer {
    position: absolute;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    animation: pointerPulse 1.5s ease-in-out infinite;
    box-shadow:
        0 0 0 0 rgba(99, 102, 241, 0.7),
        0 8px 20px rgba(99, 102, 241, 0.4);
}

.tour-pointer::before {
    content: '👆';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes pointerPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 0 0 0 rgba(99, 102, 241, 0.7),
            0 8px 20px rgba(99, 102, 241, 0.4);
    }

    50% {
        transform: scale(1.3);
        box-shadow:
            0 0 0 20px rgba(99, 102, 241, 0),
            0 12px 30px rgba(99, 102, 241, 0.6);
    }
}

/* ============================================
   STEP INDICATOR
   ============================================ */

.step-indicator {
    position: fixed;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 1.25rem 2.5rem;
    border-radius: 4rem;
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    display: flex;
    gap: 0.75rem;
    z-index: 9999;
    border: 2px solid rgba(99, 102, 241, 0.2);
}

.step-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.step-dot:hover {
    transform: scale(1.2);
    background: #d1d5db;
}

.step-dot.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scale(1.5);
    box-shadow:
        0 4px 12px rgba(99, 102, 241, 0.4),
        0 0 20px rgba(99, 102, 241, 0.3);
}

.step-dot.completed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.step-dot.completed::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ============================================
   CONFETTI EFFECT - ENHANCED
   ============================================ */

.confetti {
    position: fixed;
    width: 12px;
    height: 12px;
    background: #6366f1;
    pointer-events: none;
    z-index: 10001;
    animation: confettiFall 3s linear forwards;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   SUCCESS MESSAGE - PREMIUM
   ============================================ */

.tour-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 4rem 3rem;
    border-radius: 2.5rem;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    text-align: center;
    z-index: 10000;
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 500px;
    border: 3px solid transparent;
    background-image: linear-gradient(white, white),
        linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) rotate(-10deg);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}

.tour-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    border-radius: 2.5rem 2.5rem 0 0;
}

.tour-success h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.tour-success p {
    color: #6b7280;
    margin-bottom: 2.5rem;
    font-size: 1.125rem;
    line-height: 1.7;
    font-weight: 500;
}

.tour-success button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.25rem 3rem;
    border-radius: 4rem;
    font-weight: 800;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(102, 102, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.tour-success button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.tour-success button:hover::before {
    width: 400px;
    height: 400px;
}

.tour-success button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 50px rgba(102, 102, 234, 0.6);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .tour-tooltip {
        max-width: calc(100vw - 2rem);
        left: 1rem !important;
        right: 1rem !important;
    }

    .tooltip-content {
        padding: 1.5rem;
    }

    .tooltip-content h3 {
        font-size: 1.25rem;
    }

    .tooltip-content p {
        font-size: 1rem;
    }

    .tooltip-actions {
        flex-direction: column;
    }

    .btn-tooltip {
        width: 100%;
    }

    .step-indicator {
        bottom: 1.5rem;
        padding: 1rem 2rem;
    }

    .step-dot {
        width: 12px;
        height: 12px;
    }

    .tour-success {
        width: calc(100vw - 2rem);
        padding: 3rem 2rem;
    }

    .tour-success h2 {
        font-size: 2rem;
    }

    .tour-success p {
        font-size: 1rem;
    }

    .tour-pointer {
        width: 40px;
        height: 40px;
    }

    .tour-pointer::before {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .tour-success {
        padding: 2.5rem 1.5rem;
    }

    .tour-success h2 {
        font-size: 1.75rem;
    }

    .step-indicator {
        padding: 0.75rem 1.5rem;
        gap: 0.5rem;
    }

    .step-dot {
        width: 10px;
        height: 10px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {

    .tour-tooltip,
    .tour-overlay,
    .tour-success,
    .confetti,
    .tour-pointer,
    .step-dot {
        animation: none !important;
        transition: none !important;
    }

    .tour-highlight {
        animation: none !important;
    }
}