/* ═══════════════════════════════════════════════════════════════
   BULLET SERVER GLOBAL LIVE CHAT SYSTEM — GLASSMORPHISM CSS
   ═══════════════════════════════════════════════════════════════ */

.chat-launcher-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90000;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.9) 0%, rgba(124, 92, 255, 0.9) 100%);
    border: 1px solid rgba(0, 240, 255, 0.4);
    border-radius: 30px;
    padding: 12px 22px;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.35), 0 0 15px rgba(0, 240, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.chat-launcher-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 40px rgba(0, 240, 255, 0.5), 0 0 25px rgba(0, 240, 255, 0.4);
}

.chat-launcher-dot {
    width: 9px;
    height: 9px;
    background-color: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: chatPulse 2s infinite ease-in-out;
}

@keyframes chatPulse {
    0%, 100% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.25); opacity: 1; }
}

/* Chat Drawer Drawer Container */
.chat-drawer-container {
    position: fixed;
    bottom: 84px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 520px;
    max-height: calc(100vh - 120px);
    background: rgba(10, 14, 24, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 240, 255, 0.15);
    z-index: 90001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    box-sizing: border-box;
}

.chat-drawer-container.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Header */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(0, 240, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.chat-online-badge {
    font-size: 11px;
    color: #00f0ff;
    font-family: 'Share Tech Mono', monospace;
    background: rgba(0, 240, 255, 0.1);
    padding: 3px 8px;
    border-radius: 10px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.chat-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.chat-close-btn:hover {
    color: #ff4c60;
}

/* Messages Body Stream */
.chat-messages-stream {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.chat-message-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00f0ff 0%, #7c5cff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #ffffff;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

.chat-bubble-wrap {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    border-top-left-radius: 2px;
    padding: 10px 14px;
}

.chat-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.chat-username {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.chat-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-badge.badge-admin { background: #ff4c60; color: #ffffff; box-shadow: 0 0 8px rgba(255, 76, 96, 0.5); }
.chat-badge.badge-tech  { background: #00f0ff; color: #0c101a; box-shadow: 0 0 8px rgba(0, 240, 255, 0.5); }
.chat-badge.badge-pro   { background: #7c5cff; color: #ffffff; }
.chat-badge.badge-user  { background: rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.8); }

.chat-timestamp {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin-left: auto;
}

.chat-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    word-break: break-word;
}

/* Input Area */
.chat-footer {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 10px 14px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease;
}

.chat-input:focus {
    border-color: #00f0ff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.chat-send-btn {
    background: #00f0ff;
    color: #0c101a;
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.6);
}
