.ai-assistant-float {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 9999;
}

.ai-assistant-btn {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 24px rgba(30, 58, 138, 0.35), 0 0 0 0 rgba(59, 130, 246, 0);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: hidden;
}

.ai-assistant-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, transparent 50%, rgba(255, 193, 7, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.ai-assistant-btn::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 60%);
    animation: kaAssistPulse 3s ease-in-out infinite;
}

.ai-assistant-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.5), 0 0 20px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

.ai-assistant-btn:hover::before {
    opacity: 1;
}

.ai-assistant-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.ai-assistant-btn i {
    color: white;
    font-size: 22px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.4));
}

@keyframes kaAssistPulse {

    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0;
    }
}

.ai-assistant-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #e2e8f0;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: none;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s, transform 0.25s;
}

.ai-assistant-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 20px;
    width: 10px;
    height: 10px;
    background: #1e293b;
    border-right: 1px solid rgba(59, 130, 246, 0.15);
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
    transform: rotate(45deg);
}

.ai-assistant-float:hover .ai-assistant-tooltip {
    display: block;
    opacity: 1;
    transform: translateY(0);
}