.gt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gt-overlay.gt-active {
    pointer-events: auto;
}

.gt-overlay-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gt-overlay-svg rect {
    transition: all 0.3s ease;
}

.gt-spotlight {
    position: fixed;
    z-index: 10001;
    pointer-events: none;
    border-radius: 8px;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.5), 0 0 20px rgba(124, 58, 237, 0.3);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.gt-tooltip {
    position: fixed;
    z-index: 10002;
    width: 360px;
    max-width: calc(100vw - 32px);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(124, 58, 237, 0.4);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(124, 58, 237, 0.15);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.gt-tooltip.gt-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gt-tooltip-arrow {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #0f172a;
    border: 1px solid rgba(124, 58, 237, 0.4);
    transform: rotate(45deg);
    z-index: -1;
}

.gt-tooltip[data-position="bottom"] .gt-tooltip-arrow {
    top: -7px;
    left: 50%;
    margin-left: -6px;
    border-bottom: none;
    border-right: none;
}

.gt-tooltip[data-position="top"] .gt-tooltip-arrow {
    bottom: -7px;
    left: 50%;
    margin-left: -6px;
    border-top: none;
    border-left: none;
}

.gt-tooltip[data-position="left"] .gt-tooltip-arrow {
    right: -7px;
    top: 50%;
    margin-top: -6px;
    border-left: none;
    border-bottom: none;
}

.gt-tooltip[data-position="right"] .gt-tooltip-arrow {
    left: -7px;
    top: 50%;
    margin-top: -6px;
    border-right: none;
    border-top: none;
}

.gt-step-counter {
    font-size: 11px;
    font-weight: 600;
    color: rgba(124, 58, 237, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.gt-tooltip-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.gt-tooltip-content {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
}

.gt-tooltip-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gt-tooltip-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gt-btn-next {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #7c3aed;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.gt-btn-next:hover {
    background: #6d28d9;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.gt-btn-next:active {
    transform: translateY(0);
}

.gt-btn-prev {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gt-btn-prev:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.gt-btn-skip {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.gt-btn-skip:hover {
    color: rgba(255, 255, 255, 0.75);
}

.gt-progress-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.gt-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.gt-dot.gt-dot-active {
    background: #7c3aed;
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.5);
    transform: scale(1.2);
}

.gt-dot.gt-dot-completed {
    background: rgba(124, 58, 237, 0.5);
}

@media (max-width: 640px) {
    .gt-tooltip {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        top: auto !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        border-radius: 20px 20px 0 0;
        padding: 24px 20px calc(env(safe-area-inset-bottom, 0px) + 20px);
        transform: translateY(100%);
    }

    .gt-tooltip.gt-visible {
        transform: translateY(0);
    }

    .gt-tooltip-arrow {
        display: none;
    }

    .gt-tooltip-footer {
        flex-direction: column;
        gap: 16px;
    }

    .gt-tooltip-actions {
        width: 100%;
        justify-content: stretch;
    }

    .gt-btn-next {
        flex: 1;
        justify-content: center;
        padding: 14px 20px;
    }

    .gt-btn-prev {
        flex: 0;
        padding: 14px;
    }

    .gt-progress-dots {
        justify-content: center;
        width: 100%;
    }
}

@keyframes gt-pulse-ring {
    0% {
        box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.5), 0 0 20px rgba(124, 58, 237, 0.3);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(124, 58, 237, 0.25), 0 0 30px rgba(124, 58, 237, 0.2);
    }
    100% {
        box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.5), 0 0 20px rgba(124, 58, 237, 0.3);
    }
}

.gt-spotlight {
    animation: gt-pulse-ring 2s ease-in-out infinite;
}
