:root{--mat-dark:#2a2a2a;--mat-gray:#4a4a4a;--mat-light:#6a6a6a;--mat-white:#ffffff;--mat-accent:#9945FF;--mat-shadow:0 4px 12px rgba(0,0,0,0.5);--background-dark:#1a1a1a;--card-background:rgba(40,40,40,0.95);--text-primary:#ffffff;--text-secondary:#cccccc;--pointer-shadow:0 4px 8px rgba(0,0,0,0.4),inset 0 2px 4px rgba(255,255,255,0.2);--neon-glow:0 0 10px rgba(153,69,255,0.7)}.chat-container{position:fixed;top:90px;right:0;width:300px;height:calc(100vh - 110px);background:var(--card-background);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1);border-radius:12px 0 0 12px;display:flex;flex-direction:row;z-index:800;box-shadow:var(--mat-shadow),var(--neon-glow);transition:transform .3s ease-in-out}.chat-container.open{transform:translateX(0)}.chat-container.closed{transform:translateX(270px)}.chat-toggle{position:absolute;left:-30px;top:50%;transform:translateY(-50%);width:30px;height:100px;background:var(--mat-dark);border:1px solid rgba(255,255,255,.1);border-right:none;border-radius:12px 0 0 12px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .3s ease,box-shadow .3s ease,transform .2s ease}.chat-toggle:hover{background:var(--mat-accent);box-shadow:var(--neon-glow);transform:translateY(-50%) scale(1.05)}.toggle-icon{color:var(--text-primary);font-size:1.2rem;transition:transform .3s ease}.chat-toggle:hover .toggle-icon{transform:rotate(5deg)}.chat-content{flex:1;display:flex;flex-direction:column}.chat-header{padding:12px 15px;border-bottom:1px solid rgba(255,255,255,.1);background:var(--mat-dark);box-shadow:0 2px 4px rgba(0,0,0,.2)}.chat-title{font-family:Orbitron,sans-serif;font-size:1.4rem;font-weight:600;color:var(--text-primary);text-shadow:0 0 5px rgba(153,69,255,.7);margin:0;text-align:center;letter-spacing:.5px}.online-indicator{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:8px}.online-dot{display:inline-block;width:10px;height:10px;background:#00ffaa;border-radius:50%;box-shadow:0 0 6px #00ffaa;animation:pulse 2s ease-in-out infinite}.online-count{font-family:Orbitron,sans-serif;font-size:.9rem;color:var(--text-secondary);text-shadow:0 0 4px rgba(153,69,255,.5)}@keyframes pulse{0%{transform:scale(1);opacity:1}50%{transform:scale(1.2);opacity:.7}to{transform:scale(1);opacity:1}}.chat-messages{flex:1;padding:15px;overflow-y:auto;display:flex;flex-direction:column;gap:10px;scrollbar-width:thin;scrollbar-color:var(--mat-accent) var(--mat-dark)}.chat-messages::-webkit-scrollbar{width:6px}.chat-messages::-webkit-scrollbar-track{background:var(--mat-dark);border-radius:4px}.chat-messages::-webkit-scrollbar-thumb{background:var(--mat-accent);border-radius:4px}.chat-messages::-webkit-scrollbar-thumb:hover{background:#6633cc}.chat-message{background:rgba(255,255,255,.05);padding:10px 12px;border-radius:8px;border:1px solid rgba(153,69,255,.3);color:var(--text-primary);font-family:Orbitron,sans-serif;font-size:.85rem;display:flex;flex-direction:column;gap:4px;transition:background .3s ease,transform .3s ease,box-shadow .3s ease;animation:messageFadeIn .3s ease-in-out}.chat-message:hover{background:rgba(153,69,255,.1);transform:translateY(-2px);box-shadow:0 4px 8px rgba(153,69,255,.5)}.message-content{display:flex;align-items:center;gap:8px}.message-user{font-weight:600;color:#00ffaa;font-size:.9rem}.message-text{color:var(--text-secondary);word-break:break-word;flex:1}.message-timestamp{font-size:.7rem;color:var(--text-secondary);align-self:flex-end}.user-avatar{width:32px;height:32px;border-radius:50%;-o-object-fit:cover;object-fit:cover;border:1px solid rgba(153,69,255,.3);transition:transform .3s ease,box-shadow .3s ease}.user-avatar:hover{transform:scale(1.1);box-shadow:var(--neon-glow)}.replied-message{background:rgba(255,255,255,.03);padding:6px 8px;border-left:3px solid var(--mat-accent);border-radius:4px;margin-bottom:6px;font-size:.75rem;color:var(--text-secondary);display:flex;flex-direction:column;gap:2px}.replied-message .message-user{font-size:.8rem;color:#00ffaa}.replied-message .message-text,.reply-button{font-size:.75rem}.reply-button{background:transparent;border:none;color:var(--text-secondary);cursor:pointer;transition:color .3s ease,transform .2s ease}.reply-button:hover{color:var(--mat-accent);transform:scale(1.1)}.chat-input-form{padding:12px 15px;border-top:1px solid rgba(255,255,255,.1);background:var(--mat-dark);gap:8px;box-sizing:border-box}.chat-input-form,.replying-to{display:flex;align-items:center;width:100%}.replying-to{background:rgba(153,69,255,.1);padding:8px 12px;border-radius:6px;color:var(--text-primary);font-size:.8rem;justify-content:space-between;margin:0 15px 4px}.replying-to button{background:transparent;border:none;color:var(--text-secondary);cursor:pointer;font-size:.8rem}.replying-to button:hover{color:#ff0000}.chat-input-wrapper{flex:1;position:relative;min-width:0}.chat-input{width:100%;background:var(--mat-dark);border:1px solid var(--mat-gray);border-radius:6px;padding:10px 36px 10px 12px;font-family:Orbitron,sans-serif;font-size:.9rem;color:var(--text-primary);outline:none;transition:border-color .3s ease,box-shadow .3s ease;box-sizing:border-box}.chat-input::-moz-placeholder{color:var(--text-secondary)}.chat-input::placeholder{color:var(--text-secondary)}.chat-input:focus{border-color:var(--mat-accent);box-shadow:var(--neon-glow)}.emoji-button{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:transparent;border:none;color:var(--text-secondary);font-size:1.2rem;cursor:pointer;transition:color .3s ease,transform .2s ease}.emoji-button:hover{color:var(--mat-accent);transform:translateY(-50%) scale(1.1)}.emoji-picker{position:absolute;bottom:50px;left:10px;right:10px;background:var(--card-background);border:1px solid rgba(255,255,255,.2);border-radius:8px;padding:10px;display:grid;grid-template-columns:repeat(auto-fill,minmax(28px,1fr));gap:6px;max-height:140px;overflow-y:auto;z-index:900;box-shadow:var(--mat-shadow),var(--neon-glow)}.emoji-option{font-size:1.4rem;cursor:pointer;text-align:center;transition:transform .2s ease}.emoji-option:hover{transform:scale(1.2)}.chat-send-button{background:linear-gradient(135deg,var(--mat-accent),#6633cc);border:none;border-radius:8px;padding:10px 16px;font-family:Orbitron,sans-serif;font-size:.9rem;font-weight:600;color:var(--mat-dark);cursor:pointer;transition:background .3s ease,transform .2s ease,box-shadow .3s ease;flex-shrink:0;min-width:60px;box-shadow:var(--neon-glow)}.chat-send-button:hover{background:linear-gradient(135deg,#6633cc,var(--mat-accent));transform:translateY(-1px);box-shadow:0 4px 12px rgba(153,69,255,.7)}@keyframes messageFadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media (max-width:768px){.chat-container{top:auto;bottom:20px;right:20px;width:60px;height:60px;border-radius:50%;background:linear-gradient(135deg,var(--mat-accent),#6633cc);box-shadow:var(--mat-shadow),var(--neon-glow);overflow:hidden;transition:all .3s ease-in-out}.chat-container.open{width:300px;height:400px;border-radius:12px;background:var(--card-background);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1);transform:translateX(0)}.chat-container.closed{transform:translateX(0);width:60px;height:60px}.chat-toggle{left:0;top:0;width:60px;height:60px;border:none;border-radius:50%;background:transparent;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:box-shadow .3s ease,transform .2s ease}.chat-toggle:hover{box-shadow:var(--neon-glow);transform:scale(1.1)}.toggle-icon{font-size:1.6rem;color:var(--text-primary)}.chat-toggle:hover .toggle-icon{transform:none}.chat-content{display:none}.chat-container.open .chat-content{display:flex}.chat-header,.chat-input-form,.chat-messages{display:none}.chat-container.open .chat-header,.chat-container.open .chat-input-form,.chat-container.open .chat-messages{display:flex}.chat-title{font-size:1.2rem}.online-indicator{margin-top:6px}.online-dot{width:8px;height:8px}.chat-message,.online-count{font-size:.8rem}.chat-message{padding:8px 10px}.user-avatar{width:28px;height:28px}.replied-message{font-size:.7rem;padding:4px 6px}.reply-button{font-size:.7rem}.replying-to{padding:6px 8px;margin:0 10px 4px}.replying-to,.replying-to button{font-size:.75rem}.chat-input,.chat-send-button{font-size:.8rem;padding:8px 10px}.emoji-button{font-size:1.1rem}.emoji-option{font-size:1.3rem}.emoji-picker{max-height:120px}}@media (max-width:480px){.chat-container.open{width:260px;height:360px}.chat-title{font-size:1rem}.online-indicator{margin-top:4px}.online-dot{width:6px;height:6px}.online-count{font-size:.7rem}.chat-message{font-size:.75rem;padding:6px 8px}.user-avatar{width:24px;height:24px}.replied-message{font-size:.65rem;padding:4px 6px}.reply-button{font-size:.65rem}.replying-to{padding:4px 6px;margin:0 8px 4px}.replying-to,.replying-to button{font-size:.7rem}.chat-input{padding:8px 32px 8px 10px;font-size:.75rem}.chat-send-button{padding:8px 12px;font-size:.75rem;min-width:50px}.emoji-button{font-size:1rem}.emoji-option{font-size:1.2rem}.emoji-picker{max-height:100px}}