#nxlc-widget { position: fixed; bottom: 20px; right: 20px; z-index: 99999; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
#nxlc-toggle { width: 60px; height: 60px; border-radius: 50%; background: #0EBB85; color: #fff; border: none; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; position: relative; }
#nxlc-toggle:hover { background: #0aa873; }
#nxlc-unread { position: absolute; top: -4px; right: -4px; background: #e74c3c; color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
#nxlc-eyecatcher { position: absolute; bottom: 75px; right: 0; width: 260px; background: #fff; color: #1F3D33; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.18); padding: 14px 36px 14px 16px; font-size: 14px; line-height: 1.45; cursor: pointer; }
#nxlc-eyecatcher-close { position: absolute; top: 6px; right: 8px; background: none; border: none; font-size: 18px; color: #999; cursor: pointer; }
#nxlc-panel { position: absolute; bottom: 75px; right: 0; width: 380px; max-width: calc(100vw - 40px); height: 560px; max-height: calc(100vh - 120px); background: #fff; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.18); display: flex; flex-direction: column; overflow: hidden; }
#nxlc-header { background: #1F3D33; color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
#nxlc-header strong { display: block; font-size: 15px; }
#nxlc-status { font-size: 12px; opacity: 0.8; }
#nxlc-close { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; line-height: 1; }
#nxlc-namegate { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
#nxlc-namegate p { margin: 0 0 6px; font-size: 15px; }
#nxlc-namegate input, #nxlc-namegate select { padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; }
#nxlc-start { background: #0EBB85; color: #fff; border: none; padding: 12px; border-radius: 8px; font-size: 15px; cursor: pointer; font-weight: 600; }
#nxlc-profilegate { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
#nxlc-profilegate select, #nxlc-profilegate textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; resize: vertical; box-sizing: border-box; }
#nxlc-start-chat { background: #0EBB85; color: #fff; border: none; padding: 12px; border-radius: 8px; font-size: 15px; cursor: pointer; font-weight: 600; width: 100%; }
#nxlc-skip { background: none; border: none; color: #999; font-size: 13px; cursor: pointer; width: 100%; margin-top: 8px; }
#nxlc-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #F4FAF7; }
.nxlc-msg { max-width: 80%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; word-wrap: break-word; }
.nxlc-msg.visitor { align-self: flex-end; background: #0EBB85; color: #fff; border-bottom-right-radius: 4px; }
.nxlc-msg.ai, .nxlc-msg.admin { align-self: flex-start; background: #fff; color: #1F3D33; border: 1px solid #e0e0e0; border-bottom-left-radius: 4px; }
.nxlc-msg a { color: #0EBB85; }
.nxlc-msg.visitor a { color: #fff; text-decoration: underline; }
.nxlc-seen { display: block; font-size: 11px; opacity: 0.8; margin-top: 4px; text-align: right; }
#nxlc-typing { padding: 8px 14px; background: #F4FAF7; display: flex; gap: 4px; }
.nxlc-typing-dot { width: 8px; height: 8px; background: #999; border-radius: 50%; display: inline-block; animation: nxlc-blink 1.2s infinite; }
.nxlc-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.nxlc-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes nxlc-blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
#nxlc-input { display: flex; padding: 10px; background: #fff; border-top: 1px solid #eee; gap: 6px; align-items: center; position: relative; }
#nxlc-text { flex: 1; padding: 10px 12px; border: 1px solid #ddd; border-radius: 20px; font-size: 14px; outline: none; min-width: 0; }
#nxlc-send { background: #0EBB85; color: #fff; border: none; padding: 10px 18px; border-radius: 20px; cursor: pointer; font-weight: 600; }
#nxlc-emoji-btn, #nxlc-attach-btn { background: none; border: none; font-size: 20px; cursor: pointer; padding: 4px; line-height: 1; }
#nxlc-emoji-picker { position: absolute; bottom: 54px; left: 10px; background: #fff; border: 1px solid #ddd; border-radius: 10px; padding: 8px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; box-shadow: 0 4px 16px rgba(0,0,0,0.15); z-index: 2; }
.nxlc-emoji { background: none; border: none; font-size: 20px; cursor: pointer; padding: 4px; border-radius: 6px; }
.nxlc-emoji:hover { background: #F4FAF7; }
#nxlc-menu { background: #fff; border-top: 1px solid #eee; padding: 8px 0; }
#nxlc-quickbtns { display: flex; gap: 6px; padding: 0 10px; overflow-x: auto; scrollbar-width: none; }
#nxlc-quickbtns::-webkit-scrollbar { display: none; }
.nxlc-qbtn { background: #F4FAF7; border: 1px solid #0EBB85; color: #1F3D33; padding: 7px 12px; border-radius: 16px; font-size: 12px; cursor: pointer; transition: all 0.2s; white-space: nowrap; flex-shrink: 0; }
.nxlc-qbtn:hover { background: #0EBB85; color: #fff; }
.nxlc-dot { display: inline-block; width: 8px; height: 8px; background: #0EBB85; border-radius: 50%; margin-right: 4px; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
#nxlc-rating { padding: 24px 20px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
#nxlc-stars { display: flex; gap: 6px; }
.nxlc-star { background: none; border: none; font-size: 34px; color: #ddd; cursor: pointer; padding: 0 2px; line-height: 1; }
.nxlc-star.active { color: #f5a623; }
#nxlc-rating-feedback { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; resize: vertical; box-sizing: border-box; }
#nxlc-rating-submit { background: #0EBB85; color: #fff; border: none; padding: 11px 22px; border-radius: 8px; font-size: 14px; cursor: pointer; font-weight: 600; }
#nxlc-rating-skip { background: none; border: none; color: #999; font-size: 13px; cursor: pointer; }
#nxlc-offline { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
#nxlc-offline input, #nxlc-offline select, #nxlc-offline textarea { padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; width: 100%; box-sizing: border-box; resize: vertical; }
#nxlc-off-submit { background: #0EBB85; color: #fff; border: none; padding: 12px; border-radius: 8px; font-size: 15px; cursor: pointer; font-weight: 600; }
@media (max-width: 480px) { #nxlc-panel { width: calc(100vw - 40px); } #nxlc-eyecatcher { width: calc(100vw - 80px); } }
