.glt-tooltip-text {
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    background: #1e1e1e;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 22px;
    line-height: 1.4;
    max-width: 650px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transform: translate3d(0, 0, 0);
    will-change: left, top, opacity;
}

.glt-tooltip-text.is-active {
    opacity: 1;
    visibility: visible;
}

/* Arrow */
.glt-tooltip-text::after {
    content: '';
    position: absolute;
    border: 6px solid transparent;
}

.glt-tooltip-text.is-top::after {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: #1e1e1e;
}

.glt-tooltip-text.is-bottom::after {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: #1e1e1e;
}

/* High Contrast Mode */
@media (forced-colors: active) {
    .glt-tooltip-text {
        border: 1px solid CanvasText;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .glt-tooltip-text {
        transition: none;
    }
}
