/* ==========================================================================
   HITHER MANN COPY TRADING - REAL-TIME LIVE CHAT SUPPORT WIDGET
   ========================================================================== */

.livechat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Floating Trigger Button */
.livechat-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #000;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 22px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.livechat-trigger:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.55);
}

.livechat-trigger-icon {
    width: 24px;
    height: 24px;
}

.livechat-unread-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 8px #10b981;
    animation: pulse 2s infinite;
}

/* Main Chat Window */
.livechat-window {
    display: none;
    flex-direction: column;
    width: 370px;
    height: 520px;
    background: #090d16;
    border: 1px solid var(--border-gold, rgba(245, 158, 11, 0.3));
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
    overflow: hidden;
    position: absolute;
    bottom: 0;
    right: 0;
    animation: chatSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.livechat-window.active {
    display: flex;
}

@keyframes chatSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Chat Header */
.livechat-header {
    background: linear-gradient(135deg, rgba(16, 22, 36, 0.98), rgba(245, 158, 11, 0.12));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.livechat-header-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.livechat-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: #000;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.livechat-header-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.livechat-header-subtitle {
    font-size: 11px;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
}

.livechat-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    transition: 0.2s;
}

.livechat-close-btn:hover {
    color: #fff;
}

/* Message List Container */
.livechat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #07090e;
}

.chat-msg {
    max-width: 82%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.5;
    position: relative;
    word-break: break-word;
}

.chat-msg-admin {
    align-self: flex-start;
    background: rgba(16, 24, 40, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    border-bottom-left-radius: 4px;
}

.chat-msg-client {
    align-self: flex-end;
    background: linear-gradient(135deg, #b45309, #d97706);
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.25);
}

.chat-msg-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    text-align: right;
}

.chat-resolved-notice {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-size: 12px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    margin: 8px 0;
}

/* Message Input Area */
.livechat-footer {
    padding: 14px 16px;
    background: #090d16;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.livechat-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.livechat-input {
    flex-grow: 1;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 11px 16px;
    color: #fff;
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: 0.2s;
}

.livechat-input:focus {
    border-color: #f59e0b;
}

.livechat-send-btn {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    border: none;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
}

.livechat-send-btn:hover {
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .livechat-widget {
        bottom: 16px;
        right: 16px;
    }
    .livechat-trigger {
        padding: 10px 16px;
        font-size: 13px;
        gap: 8px;
    }
    .livechat-window {
        width: calc(100vw - 32px);
        max-height: 82vh;
        height: 480px;
        right: 0;
        bottom: 0;
        border-radius: 16px;
    }
}
