.luna-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 1050;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.luna-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
    text-decoration: none;
}

.luna-fab:active {
    transform: scale(0.95);
}

.luna-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.luna-fab-pulse {
    animation: lunaFabPulse 2.5s ease-in-out infinite;
}

@keyframes lunaFabPulse {
    0% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(102, 126, 234, 0.6), 0 0 0 10px rgba(102, 126, 234, 0.1);
    }
    100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }
}

.luna-chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 370px;
    max-height: 500px;
    background: #1a1d21;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1049;
    display: none;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.luna-chat-window.open {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.luna-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.luna-chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.luna-chat-header-info .luna-avatar {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.luna-chat-header-info .luna-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.luna-chat-header-info .luna-status {
    font-size: 0.75rem;
    opacity: 0.8;
}

.luna-chat-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease;
}

.luna-chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.luna-chat-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #1a1d21;
    color: #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 200px;
}

.luna-chat-body::-webkit-scrollbar {
    width: 4px;
}

.luna-chat-body::-webkit-scrollbar-track {
    background: transparent;
}

.luna-chat-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.luna-chat-welcome {
    text-align: center;
    padding: 1.5rem 1rem;
    color: rgba(233, 236, 239, 0.7);
}

.luna-chat-welcome .welcome-emoji {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.luna-chat-welcome p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.luna-chat-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: #212529;
}

.luna-chat-cta {
    display: block;
    width: 100%;
    padding: 0.65rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.luna-chat-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

@media (max-width: 480px) {
    .luna-chat-window {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-height: 70vh;
        border-radius: 16px 16px 0 0;
    }

    .luna-fab {
        bottom: 16px;
        right: 16px;
        width: 54px;
        height: 54px;
    }

    .luna-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 991px) {
    .luna-fab {
        bottom: 80px;
    }

    .luna-chat-window {
        bottom: 150px;
    }
}
