*,*:before,*:after{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,sans-serif;background:#f9f9f9;color:#1a1a1a;-webkit-font-smoothing:antialiased}button{font-family:inherit}h1,h2,h3,p{margin:0}:root{--lotto-blue: #003DA5;--lotto-blue-dark: #002d7a;--lotto-blue-light: #e8eef8;--lotto-dark: #1a1a1a;--lotto-gray: #f5f7fa;--lotto-border: #e0e0e0;--chat-width: 380px;--chat-height: 600px}.chat-fab{position:fixed;bottom:28px;right:28px;width:64px;height:64px;border-radius:50%;background:var(--lotto-blue);color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 20px #003da573;transition:transform .2s,box-shadow .2s;z-index:1000}.chat-fab:hover{transform:scale(1.08);box-shadow:0 6px 24px #003da58c}.chat-fab.hidden{display:none}.fab-badge{position:absolute;top:6px;right:6px;background:#fff;color:var(--lotto-blue);font-size:11px;font-weight:700;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center}.chat-window{position:fixed;bottom:28px;right:28px;width:var(--chat-width);height:var(--chat-height);background:#fff;border-radius:16px;box-shadow:0 8px 40px #0000002e;display:flex;flex-direction:column;overflow:hidden;z-index:1000;animation:slideUp .25s ease-out}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.chat-header{background:var(--lotto-blue);padding:14px 16px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.chat-header-left{display:flex;align-items:center;gap:10px}.bot-avatar-header{width:38px;height:38px;border-radius:50%;background:#ffffff2e;display:flex;align-items:center;justify-content:center;border:2px solid rgba(255,255,255,.35);flex-shrink:0;overflow:hidden}.bot-avatar-header .mini-logo{font-size:11px;font-weight:900;color:#fff;line-height:1;text-align:center;letter-spacing:-.5px}.bot-avatar-header .mini-logo span{font-weight:400}.chat-header-info{display:flex;flex-direction:column}.chat-header-name{color:#fff;font-weight:700;font-size:15px}.chat-header-status{color:#ffffffd9;font-size:12px;display:flex;align-items:center;gap:4px}.status-dot{width:7px;height:7px;background:#4cfe6a;border-radius:50%;display:inline-block}.chat-close-btn{background:#ffffff26;border:none;color:#fff;width:30px;height:30px;border-radius:50%;cursor:pointer;font-size:14px;display:flex;align-items:center;justify-content:center;transition:background .15s}.chat-close-btn:hover{background:#ffffff4d}.chat-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px;background:var(--lotto-gray)}.chat-messages::-webkit-scrollbar{width:4px}.chat-messages::-webkit-scrollbar-thumb{background:#ccc;border-radius:4px}.message{display:flex;align-items:flex-end;gap:8px;max-width:92%}.bot-message{align-self:flex-start}.user-message{align-self:flex-end;flex-direction:row-reverse}.bot-avatar{width:30px;height:30px;min-width:30px;border-radius:50%;background:var(--lotto-blue);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:11px;flex-shrink:0;letter-spacing:-.5px}.user-avatar{width:30px;height:30px;min-width:30px;border-radius:50%;background:#555;color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;flex-shrink:0}.message-content{display:flex;flex-direction:column;gap:4px;max-width:100%}.message-bubble{padding:10px 14px;border-radius:16px;font-size:14px;line-height:1.5;word-break:break-word}.bot-bubble{background:#fff;color:var(--lotto-dark);border-bottom-left-radius:4px;box-shadow:0 1px 4px #00000014}.user-bubble{background:var(--lotto-blue);color:#fff;border-bottom-right-radius:4px}.bot-bubble h4{font-size:13px;font-weight:700;margin:6px 0 2px;color:var(--lotto-blue)}.bot-bubble strong{color:var(--lotto-dark);font-weight:700}.bot-bubble .list-item{padding:1px 0;font-size:13.5px}.streaming-cursor{display:inline-block;width:2px;height:14px;background:var(--lotto-blue);margin-left:2px;vertical-align:middle;animation:blink .8s step-end infinite}@keyframes blink{0%,to{opacity:1}50%{opacity:0}}.typing-bubble{display:flex;align-items:center;gap:5px;padding:12px 16px;min-width:60px}.dot{width:8px;height:8px;background:#bbb;border-radius:50%;animation:bounce 1.2s infinite}.dot:nth-child(2){animation-delay:.2s}.dot:nth-child(3){animation-delay:.4s}@keyframes bounce{0%,60%,to{transform:translateY(0)}30%{transform:translateY(-6px)}}.message-footer{display:flex;align-items:center;gap:8px;padding:0 2px}.message-time{font-size:11px;color:#999}.feedback-buttons{display:flex;gap:4px}.feedback-btn{background:none;border:none;cursor:pointer;font-size:14px;padding:2px;opacity:.6;transition:opacity .15s,transform .15s}.feedback-btn:hover{opacity:1;transform:scale(1.2)}.feedback-thanks{font-size:11px;color:#888}.message-sources{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.source-tag{background:var(--lotto-blue-light);color:var(--lotto-blue);border:1px solid #c0d0f0;border-radius:10px;padding:2px 8px;font-size:11px;font-weight:500}.chat-input-area{background:#fff;border-top:1px solid var(--lotto-border);flex-shrink:0}.quick-replies{padding:10px 12px 6px;display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid var(--lotto-border)}.quick-reply-btn{background:#fff;border:1px solid var(--lotto-blue);color:var(--lotto-blue);border-radius:16px;padding:5px 12px;font-size:12px;cursor:pointer;transition:background .15s,color .15s;white-space:nowrap}.quick-reply-btn:hover:not(:disabled){background:var(--lotto-blue);color:#fff}.quick-reply-btn:disabled{opacity:.5;cursor:not-allowed}.chat-input-form{display:flex;align-items:flex-end;gap:8px;padding:10px 12px}.chat-textarea{flex:1;border:1px solid var(--lotto-border);border-radius:20px;padding:9px 14px;font-size:14px;resize:none;outline:none;font-family:inherit;max-height:120px;line-height:1.4;transition:border-color .15s}.chat-textarea:focus{border-color:var(--lotto-blue)}.chat-textarea::placeholder{color:#bbb}.send-btn{width:40px;height:40px;min-width:40px;border-radius:50%;border:none;background:#ddd;color:#999;font-size:16px;cursor:not-allowed;transition:background .15s,color .15s;display:flex;align-items:center;justify-content:center}.send-btn.active{background:var(--lotto-blue);color:#fff;cursor:pointer}.send-btn.active:hover{background:var(--lotto-blue-dark)}@media(max-width:440px){.chat-window{width:100vw;height:100dvh;bottom:0;right:0;border-radius:0}.chat-fab{bottom:20px;right:20px}}
