.chat-widget-container{position:fixed;right:20px;bottom:80px;z-index:9999;display:flex;flex-direction:column;gap:12px;}.widget-btn{position:relative;width:42px;height:42px;border-radius:10px;border:none;background:rgba(128,128,128,0.35);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:#ffffff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all 0.3s cubic-bezier(0.4,0,0.2,1);box-shadow:0 4px 12px rgba(0,0,0,0.15);}.widget-btn:hover{background:rgba(128,128,128,0.55);transform:scale(1.08);}.widget-btn:active{transform:scale(0.96);}.widget-icon{width:20px;height:20px;}.unread-badge{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;padding:0 5px;background:#ff3b30;color:#ffffff;font-size:11px;font-weight:700;line-height:18px;text-align:center;border-radius:9px;box-shadow:0 2px 6px rgba(255,59,48,0.4);display:none;animation:badgePulse 2s infinite;}@keyframes badgePulse{0%,100%{transform:scale(1);}50%{transform:scale(1.15);}}.chat-modal{display:none;position:fixed;top:0;left:0;width:100%;height:100%;z-index:10000;}.chat-modal.active{display:block;}.chat-modal-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.35);backdrop-filter:blur(3px);}.chat-modal-content{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:380px;max-width:92%;height:460px;max-height:75vh;background:#ffffff;border-radius:16px;box-shadow:0 16px 48px rgba(0,0,0,0.2);display:flex;flex-direction:column;overflow:hidden;animation:chatPopIn 0.25s ease;}@keyframes chatPopIn{from{opacity:0;transform:translate(-50%,-50%) scale(0.92);}to{opacity:1;transform:translate(-50%,-50%) scale(1);}}.chat-header{padding:14px 18px;border-bottom:1px solid #eee;display:flex;justify-content:space-between;align-items:center;flex-shrink:0;background:#fff;}.chat-title{font-size:15px;font-weight:600;color:#111;}.chat-close-btn{width:28px;height:28px;border:none;background:#f5f5f5;font-size:18px;color:#666;cursor:pointer;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:0.2s;}.chat-close-btn:hover{background:#e0e0e0;color:#333;}.chat-body{flex:1;overflow-y:auto;padding:16px;background:#f8f9fa;min-height:0;}.chat-login-prompt{display:flex;align-items:center;justify-content:center;height:100%;min-height:180px;}.login-prompt-content{text-align:center;}.login-prompt-text{font-size:14px;color:#555;margin-bottom:16px;}.login-prompt-actions{display:flex;gap:10px;justify-content:center;}.login-btn{padding:8px 20px;background:#007bff;color:#ffffff;text-decoration:none;border-radius:8px;font-size:13px;transition:0.2s;cursor:pointer;border:none;}.login-btn:hover{background:#0056b3;}.close-prompt-btn{padding:8px 20px;background:#e9ecef;color:#495057;border:none;border-radius:8px;font-size:13px;cursor:pointer;transition:0.2s;}.close-prompt-btn:hover{background:#dee2e6;}.chat-messages{display:flex;flex-direction:column;gap:12px;}.message-time{text-align:center;font-size:11px;color:#888;background:#e9ecef;padding:2px 10px;border-radius:10px;align-self:center;margin:2px 0;cursor:pointer;user-select:none;}.msg-time-short,.msg-time-full{cursor:pointer;}.message-item{display:flex;align-items:flex-start;gap:8px;max-width:85%;}.message-item.received{align-self:flex-start;}.message-item.received .message-avatar{order:1;}.message-item.received .message-bubble{order:2;background:#ffffff;color:#222;border-radius:12px;}.message-item.received .message-bubble::before{content:'';position:absolute;left:-8px;top:10px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:8px solid #ffffff;}.message-item.sent{align-self:flex-end;flex-direction:row;justify-content:flex-end;}.message-item.sent .message-avatar{order:2;margin-left:6px;}.message-item.sent .message-bubble{order:1;background:#95ec69;color:#111;border-radius:12px;}.message-item.sent .message-bubble::before{content:'';position:absolute;right:-8px;top:10px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:8px solid #95ec69;}.message-avatar{width:32px;height:32px;border-radius:4px;object-fit:cover;flex-shrink:0;background:#eee;}.message-bubble{position:relative;padding:8px 12px;font-size:13px;line-height:1.5;word-break:break-word;box-shadow:0 1px 3px rgba(0,0,0,0.08);}.chat-footer{padding:12px 14px;border-top:1px solid #eee;background:#ffffff;display:flex;gap:8px;align-items:center;flex-shrink:0;}.chat-input{flex:1;padding:9px 12px;border:1px solid #ddd;border-radius:8px;font-size:13px;outline:none;transition:0.2s;background:#fafafa;}.chat-input:focus{border-color:#007bff;background:#ffffff;}.chat-send-btn{padding:9px 16px;background:#007bff;color:#ffffff;border:none;border-radius:8px;font-size:13px;font-weight:500;cursor:pointer;transition:0.2s;}.chat-send-btn:hover{background:#0056b3;}.chat-send-btn:disabled{background:#adb5bd;cursor:not-allowed;}@media (max-width:768px){.chat-widget-container{right:12px;}.widget-btn{width:38px;height:38px;}.chat-modal-content{width:94%;height:420px;max-height:70vh;}.chat-header{padding:12px 14px;}.chat-body{padding:12px;}.chat-footer{padding:10px 12px;}}html.dark .chat-modal-content{background:#1e293b;}html.dark .chat-header{background:#1e293b;border-bottom-color:#334155;}html.dark .chat-title{color:#f1f5f9;}html.dark .chat-close-btn{background:#334155;color:#94a3b8;}html.dark .chat-close-btn:hover{background:#475569;color:#e2e8f0;}html.dark .chat-body{background:#0f172a;}html.dark .message-time{background:#334155;color:#94a3b8;}html.dark .message-item.received .message-bubble{background:#334155;color:#e2e8f0;}html.dark .message-item.received .message-bubble::before{border-right-color:#334155;}html.dark .message-item.sent .message-bubble{background:#166534;color:#e2e8f0;}html.dark .message-item.sent .message-bubble::before{border-left-color:#166534;}html.dark .message-avatar{background:#334155;}html.dark .chat-footer{background:#1e293b;border-top-color:#334155;}html.dark .chat-input{background:#0f172a;border-color:#475569;color:#e2e8f0;}html.dark .chat-input:focus{border-color:#3b82f6;background:#0f172a;}html.dark .chat-input::placeholder{color:#64748b;}html.dark .login-prompt-text{color:#94a3b8;}html.dark .close-prompt-btn{background:#334155;color:#e2e8f0;}html.dark .close-prompt-btn:hover{background:#475569;}html.dark .chat-send-btn{background:#2563eb;}html.dark .chat-send-btn:hover{background:#1d4ed8;}html.dark .widget-btn{background:rgba(51,65,85,0.7);color:#e2e8f0;}html.dark .widget-btn:hover{background:rgba(71,85,105,0.8);}