#ai-chat-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    color: #fff;
    border: none;
    box-shadow: 0 0 20px rgba(0, 212, 255, .5);
    cursor: pointer;
    z-index: 99999;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    pointer-events: auto !important;
}
#ai-chat-btn:hover { transform: scale(1.08); }

#ai-chat-box {
    position: fixed;
    right: 24px;
    bottom: 90px;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 480px;
    background: rgba(13, 18, 34, .95);
    border: 1px solid rgba(0, 212, 255, .35);
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(0, 212, 255, .25);
    z-index: 99998;
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    backdrop-filter: blur(12px);
    pointer-events: auto !important;
}
#ai-chat-box.open { display: flex; }

#ai-chat-header {
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    color: #fff;
    padding: 14px 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#ai-chat-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

#ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: rgba(7, 11, 22, .6);
}
.ai-msg {
    margin-bottom: 12px;
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}
.ai-msg.bot {
    background: rgba(0, 212, 255, .12);
    border: 1px solid rgba(0, 212, 255, .25);
    border-bottom-left-radius: 4px;
    color: #e6f1ff;
}
.ai-msg.user {
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

#ai-chat-input-area {
    padding: 12px;
    border-top: 1px solid rgba(0, 212, 255, .25);
    display: flex;
    gap: 8px;
    background: rgba(10, 15, 28, .9);
}
#ai-chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(0, 212, 255, .3);
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    background: rgba(7, 11, 22, .8) !important;
    color: #e6f1ff !important;
}
#ai-chat-send {
    padding: 0 18px;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    pointer-events: auto !important;
}
#ai-chat-send:disabled { opacity: 0.6; cursor: not-allowed; }