@import"https://fonts.googleapis.com/css2?family=Pacifico&family=Poppins:wght@400;500;600;700&display=swap";*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html{font-size:16px;scroll-behavior:smooth;line-height:1.5}body{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:#fafafa;color:#222;min-height:100vh}a{color:#06c;text-decoration:none;transition:color .2s}a:hover,a:focus{color:#05a;text-decoration:underline}IMG{max-width:100%;display:block;height:auto}ul,ol{padding-left:1.5rem}button,input,select,textarea{font:inherit}h1,h2,h3,h4,h5,h6{font-weight:600;margin-bottom:1rem}table{border-collapse:collapse;width:100%}th,td{padding:.5rem;border:1px solid #ccc}.hidden{display:none!important}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}@media(max-width:600px){html{font-size:15px}th,td{padding:.25rem}}:root{--primary-color: #e74c3c;--primary-dark: #c0392b;--accent-1: #ff6b81;--accent-2: #7b61ff;--text-dark: #2c3e50;--text-light: #7f8c8d;--text-muted: #95a5a6;--text-white: #ffffff;--bg-100: #f0f4f8;--bg-200: #ffffff;--border-color: #dfe6e9;--error-bg: #fed7d7;--error-color: #c53030;--error-text: #742a2a;--success-bg: #d1fae5;--success-color: #065f46;--success-text: #064e3b;--radius-sm: 8px;--radius-md: 12px;--radius-lg: 24px;--shadow-sm: 0 10px 20px rgba(0,0,0,.05);--shadow-md: 0 20px 50px rgba(0,0,0,.08);--shadow-lg: 0 10px 20px rgba(220,50,40,.18);--transition-fast: .18s cubic-bezier(.2,.9,.3,1);--transition: all .28s ease}*{box-sizing:border-box;margin:0;padding:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:focus{outline:none}:focus-visible{outline:3px solid var(--primary-color);outline-offset:3px}.login-page-container{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1rem;font-family:Poppins,sans-serif;color:var(--text-dark);background:linear-gradient(160deg,var(--bg-100),var(--bg-200));position:relative;overflow:hidden}.login-page-container:before,.login-page-container:after{content:"";position:absolute;border-radius:50%;filter:blur(80px);z-index:0;opacity:.45;animation:float 6s ease-in-out infinite;pointer-events:none}.login-page-container:before{top:6%;left:-12%;width:320px;height:320px;background:linear-gradient(135deg,#ff9a9e,#fecfef);animation-delay:0s}.login-page-container:after{bottom:6%;right:-12%;width:420px;height:420px;background:linear-gradient(135deg,#ff6b6b,#ff8e8e);animation-delay:3s}@keyframes float{0%,to{transform:translateY(0) translate(0)}50%{transform:translateY(-18px) translate(16px)}}.logo-container{z-index:1;width:100%;display:flex;flex-direction:column;gap:.4rem;align-items:center;justify-content:center;margin-bottom:1.5rem;animation:fadeInDown .6s ease-out both}@keyframes fadeInDown{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}.logo-icon{width:64px;height:64px;background:linear-gradient(135deg,var(--accent-1),var(--primary-color),var(--primary-dark));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(0 6px 14px rgba(231,76,60,.18));border-radius:16px;display:inline-flex;align-items:center;justify-content:center;animation:logoPulse 2.2s ease-in-out infinite}@keyframes logoPulse{0%,to{transform:scale(1);opacity:.95}50%{transform:scale(1.03);opacity:1}}.logo-title{font-family:Pacifico,cursive;font-size:2.2rem;letter-spacing:.6px;background:linear-gradient(135deg,var(--accent-1),var(--primary-color),var(--primary-dark));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;text-shadow:0 2px 6px rgba(0,0,0,.06);line-height:1}.logo-tagline{font-size:.9rem;color:var(--text-light);margin-top:2px}.signup-instruction{color:#fff!important;font-weight:700;font-size:1rem;line-height:1.3;text-align:center;text-shadow:0 2px 6px rgba(0,0,0,.35);margin:.6rem 0;z-index:2;-webkit-font-smoothing:antialiased}@media(min-width:769px){.signup-instruction{font-size:1.05rem}}@media(min-width:1025px){.signup-instruction{font-size:1.15rem}}.card-title{font-size:1.5rem;font-weight:700;margin-bottom:.25rem;color:#fff!important;text-shadow:0 4px 14px rgba(0,0,0,.25);z-index:2}.card-subtitle{font-size:.92rem;color:#ffffffe6;margin-bottom:1rem;line-height:1.4}.login-card{z-index:1;width:100%;max-width:420px;background:#ffffff0f;color:var(--text-dark);border-radius:var(--radius-lg);padding:1.25rem;box-shadow:var(--shadow-md);border:1px solid rgba(255,255,255,.08);text-align:center;animation:fadeInUp .6s ease-out both}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.login-form{display:flex;flex-direction:column;gap:1rem;margin-bottom:.75rem;text-align:left}.input-field{width:100%;padding:.9rem 1.1rem;border-radius:var(--radius-md);border:2px solid var(--border-color);background-color:#ffffff0f;font-size:.95rem;transition:var(--transition);color:var(--text-white);font-family:inherit}.input-field::placeholder{color:#ffffffb3}.input-field:focus{border-color:var(--primary-color);box-shadow:0 0 0 6px #e74c3c0f;background-color:#ffffff14;color:var(--text-white)}.input-field:disabled{opacity:.7;cursor:not-allowed}.password-input-container{position:relative;width:100%}.password-input-container .input-field{padding-right:3rem}.password-toggle{position:absolute;right:.6rem;top:50%;transform:translateY(-50%);background:none;border:none;padding:.25rem;cursor:pointer;border-radius:6px;color:#ffffffe6;display:flex;align-items:center;justify-content:center}.password-toggle:hover{color:var(--accent-1);background:#ffffff05}.avatar-uploader{width:120px;height:120px;margin:.5rem auto 1rem;position:relative;display:flex;align-items:center;justify-content:center;cursor:pointer}.avatar-uploader input[type=file]{display:none}.avatar-label{width:100%;height:100%;display:block;border-radius:50%;transition:transform var(--transition-fast)}.avatar-label:hover{transform:scale(1.03)}.avatar-placeholder{width:100%;height:100%;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;border:3px dashed rgba(255,255,255,.12);background:linear-gradient(135deg,#ffffff05,#ffffff03);color:#ffffffd9}.avatar-placeholder span{font-size:2.4rem;font-weight:300}.avatar-placeholder p{font-size:.85rem;font-weight:600;margin-top:3px;color:#ffffffd9}.avatar-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%;border:4px solid var(--accent-1);box-shadow:var(--shadow-sm);transition:transform var(--transition)}.avatar-preview:hover{transform:scale(1.06)}.avatar-remove{position:absolute;top:-6px;right:-6px;width:28px;height:28px;background:var(--primary-color);color:var(--text-white);border-radius:50%;display:grid;place-items:center;box-shadow:var(--shadow-sm);font-weight:700;cursor:pointer}.avatar-remove:hover{background:var(--primary-dark);transform:scale(1.08)}.otp-input-container{display:flex;gap:.8rem;justify-content:center;margin:1rem 0}.otp-box{width:56px;height:56px;border-radius:var(--radius-md);border:2px solid rgba(255,255,255,.12);font-size:1.4rem;font-weight:700;text-align:center;background:#00000029;color:var(--text-white);transition:var(--transition);-webkit-appearance:none;caret-color:transparent}.otp-box:focus{border-color:var(--primary-color);box-shadow:0 0 0 6px #e74c3c0f;transform:scale(1.03);outline:none;caret-color:auto}.otp-box.filled{border-color:var(--primary-color);background:#fffffff2;color:var(--text-dark);transform:scale(1.02);box-shadow:0 6px 18px #e74c3c14}.otp-box.filled::-webkit-text-fill-color{color:var(--text-dark)}.otp-input-container.otp-complete .otp-box{border-color:var(--primary-color);background:#fffffff2;color:var(--text-dark);box-shadow:0 8px 22px #e74c3c14}.otp-box.filled:focus-visible{outline:3px solid var(--primary-color);outline-offset:3px}.button-group{display:flex;gap:.75rem;margin-top:.5rem}.submit-button,.cancel-button,.email-login-button{width:100%;padding:.9rem 1.2rem;border:none;border-radius:var(--radius-md);font-weight:600;cursor:pointer;font-size:1rem;transition:var(--transition)}.submit-button,.email-login-button{background:linear-gradient(135deg,var(--primary-color),var(--primary-dark));color:var(--text-white);box-shadow:var(--shadow-sm)}.submit-button:hover,.email-login-button:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}.cancel-button{background:#ffffff0f;color:var(--text-white);border:1px solid rgba(255,255,255,.06)}.cancel-button:hover{background:#ffffff14;transform:translateY(-2px)}button:disabled{opacity:.6;cursor:not-allowed;transform:none;box-shadow:none}.email-verification-section{width:100%;margin-top:10px;display:flex;flex-direction:column;gap:10px;align-items:center}.verify-email-button{padding:12px 16px;border-radius:10px;font-size:14px;font-weight:700;border:none;cursor:pointer;background:linear-gradient(135deg,#667eea,#764ba2);color:var(--text-white);box-shadow:0 6px 18px #667eea2e}.verify-email-button[disabled]{opacity:.6;cursor:not-allowed;transform:none}.submit-otp-button{width:100%;padding:12px 16px;border-radius:10px;font-weight:700;border:none;cursor:pointer;background:linear-gradient(135deg,#10b981,#059669);color:var(--text-white);box-shadow:0 6px 18px #10b9811f}.submit-otp-button[disabled]{opacity:.6;cursor:not-allowed}.email-verified-badge{display:flex;align-items:center;gap:8px;padding:10px 14px;background:linear-gradient(135deg,#dcfce7,#bbf7d0);border:2px solid #10b981;border-radius:10px;color:var(--success-text);font-weight:700}.verified-checkmark{width:22px;height:22px;border-radius:50%;background:#10b981;color:var(--text-white);display:grid;place-items:center;font-weight:800}.error-message{background-color:var(--error-bg);color:var(--error-text);padding:.85rem 1rem;border-radius:var(--radius-sm);font-weight:700;border-left:4px solid var(--error-color);animation:shake-horizontal .45s ease}@keyframes shake-horizontal{0%,to{transform:translate(0)}25%{transform:translate(-6px)}75%{transform:translate(6px)}}.success-message{background:var(--success-bg);color:var(--success-text);padding:.85rem 1rem;border-radius:var(--radius-sm);font-weight:700;animation:slideIn .4s ease}@keyframes slideIn{0%{opacity:0;transform:translate(-14px)}to{opacity:1;transform:translate(0)}}.forgot-password-link{text-align:right;margin-top:-.4rem}.forgot-password-btn{background:none;border:none;color:var(--accent-1);font-weight:700;cursor:pointer;padding:.2rem 0}.forgot-password-btn:hover{text-decoration:underline;color:var(--primary-dark)}.signup-link{text-align:center;margin-top:1rem;color:#ffffffe6;font-size:.95rem}.signup-link button{background:none;border:none;color:var(--accent-1);font-weight:700;cursor:pointer}.signup-link button:hover{text-decoration:underline;color:var(--primary-dark)}.resend-otp-section{margin:.5rem 0 .75rem;display:flex;justify-content:center;align-items:center;gap:12px;width:100%}.resend-timer{color:#ffffffe6;font-size:.95rem;font-weight:600}.resend-otp-button{background:transparent;border:1px solid rgba(255,255,255,.12);color:var(--text-white);padding:8px 12px;border-radius:10px;font-weight:700;cursor:pointer;transition:transform var(--transition-fast),box-shadow var(--transition-fast)}.resend-otp-button:hover:not([disabled]){transform:translateY(-3px);box-shadow:0 10px 30px #00000040;border-color:#ffffff2e}.resend-otp-button[disabled]{opacity:.6;cursor:not-allowed;transform:none}.emote-selector-section{display:flex;flex-direction:column;gap:8px;align-items:flex-start;width:100%}.emote-preview-container{display:flex;align-items:center;gap:12px;padding:10px;width:100%;max-width:360px;border-radius:14px;border:1px solid rgba(255,255,255,.04);background:linear-gradient(180deg,#ffffff05,#ffffff03);box-shadow:0 10px 30px #0206170f;cursor:pointer;transition:transform var(--transition-fast),box-shadow var(--transition-fast)}.emote-preview-container:hover{transform:translateY(-5px);box-shadow:0 18px 40px #02061714}.emote-preview{width:62px;height:62px;border-radius:50%;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid rgba(255,255,255,.04);background:linear-gradient(135deg,#ff6b9a14,#7b61ff0f)}.avatar-modal-overlay{position:fixed;inset:0;background:#000c;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.avatar-modal-content{width:100%;max-width:620px;max-height:80vh;overflow-y:auto;background:linear-gradient(135deg,#1e1e2e,#2d2d44);border-radius:24px;padding:26px;border:1px solid rgba(255,255,255,.06);box-shadow:0 25px 50px #00000080;color:#fff}.avatar-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:14px;margin-top:18px}.avatar-option{position:relative;border-radius:16px;overflow:hidden;aspect-ratio:1/1;cursor:pointer;transition:transform var(--transition-fast),box-shadow var(--transition-fast);border:3px solid transparent;background:linear-gradient(135deg,#ffffff0f,#ffffff08)}.avatar-option:hover{transform:translateY(-6px) scale(1.03);border-color:#7b61ff2e;box-shadow:0 18px 40px #7b61ff1f}.avatar-option.selected{border-color:var(--accent-2);box-shadow:0 0 0 3px #7b61ff2e,0 15px 30px #7b61ff2e}.avatar-option img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease;background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0,#f0f0f0 75%);background-size:200% 100%;animation:loading 1.5s infinite}@keyframes loading{0%{background-position:200% 0}to{background-position:-200% 0}}.selection-badge{position:absolute;top:8px;right:8px;width:28px;height:28px;background:linear-gradient(135deg,var(--accent-2),var(--accent-1));border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:800;box-shadow:0 6px 14px #7b61ff2e}@media(max-width:360px){.logo-title{font-size:1.8rem}.logo-icon{width:46px;height:46px}.login-card{padding:1rem;border-radius:18px}.avatar-uploader,.avatar-placeholder,.avatar-preview{width:90px;height:90px}.otp-box{width:44px;height:44px;font-size:1.1rem}}@media(min-width:769px)and (max-width:1024px){.login-card{max-width:520px;padding:1.6rem}.logo-title{font-size:2.8rem}.logo-icon{width:80px;height:80px}.avatar-uploader{width:120px;height:120px}}@media(min-width:1025px){.login-page-container{padding:2rem}.login-card{max-width:480px;padding:2.25rem;box-shadow:var(--shadow-md);background:#ffffff0a}.logo-title{font-size:3.4rem}.card-title{font-size:1.85rem}.button-group{flex-direction:row}}@media(prefers-color-scheme:dark){:root{--text-dark: #f9fafb;--text-light: #d1d5db;--text-muted: #9ca3af;--bg-100: #0f1724;--bg-200: #071128;--border-color: #374151}.login-page-container{background:linear-gradient(160deg,#0f1724,#071128)}.login-page-container:before{background:linear-gradient(135deg,#ff9a9e3d,#fecfef2e)}.login-page-container:after{background:linear-gradient(135deg,#ff6b6b38,#ff8e8e2e)}.login-card{background:#181c26e0;border:1px solid rgba(255,255,255,.03);color:var(--text-dark)}.card-subtitle{color:#ffffffd9}.otp-box.filled{background:#ffffff0f;color:var(--text-dark);border-color:var(--primary-color);box-shadow:0 6px 18px #7b61ff0f}.otp-box.filled::-webkit-text-fill-color{color:var(--text-dark)}}@media(prefers-color-scheme:light){:root{--text-dark: #1f2937;--text-light: #4b5563;--text-muted: #6b7280;--text-white: #ffffff;--bg-100: #f7fbff;--bg-200: #ffffff;--border-color: #e6eef7;--shadow-sm: 0 8px 18px rgba(16,24,40,.06);--shadow-md: 0 18px 40px rgba(16,24,40,.06)}.login-page-container{background:linear-gradient(160deg,var(--bg-100),var(--bg-200));color:var(--text-dark)}.login-page-container:before{background:linear-gradient(135deg,#ff9a9e2e,#fecfef1f)}.login-page-container:after{background:linear-gradient(135deg,#ff6b6b24,#ff8e8e1f)}.login-card{background:linear-gradient(180deg,#fff,#fbfdff);color:var(--text-dark);border:1px solid var(--border-color);box-shadow:var(--shadow-sm)}.card-title,.signup-instruction{color:var(--text-dark)!important;text-shadow:none}.card-subtitle{color:var(--text-light)}.input-field{background-color:#fff;color:var(--text-dark);border:1.5px solid var(--border-color)}.input-field::placeholder{color:#1f293759}.input-field:focus{border-color:var(--primary-color);box-shadow:0 6px 20px #e74c3c0f;background-color:#fff;color:var(--text-dark)}.password-toggle{color:var(--text-light)}.password-toggle:hover{color:var(--primary-dark);background:#10182808}.avatar-placeholder{border:2px dashed rgba(31,41,55,.06);background:linear-gradient(135deg,#10182805,#10182803);color:#1f2937cc}.avatar-placeholder p{color:#1f2937cc}.avatar-option{background:linear-gradient(135deg,#10182805,#10182803);border:2px solid rgba(16,24,40,.03)}.avatar-option:hover{border-color:#7b61ff1f;box-shadow:0 8px 24px #1018280f}.otp-box{background:#00000008;color:var(--text-dark);border:1.5px solid rgba(31,41,55,.06)}.otp-box:focus{box-shadow:0 6px 20px #e74c3c0f;border-color:var(--primary-color)}.otp-box.filled{background:#fff;color:var(--text-dark);border-color:var(--primary-color);box-shadow:0 8px 22px #e74c3c0f}.otp-box.filled::-webkit-text-fill-color{color:var(--text-dark)}.cancel-button{background:transparent;color:var(--text-dark);border:1px solid var(--border-color)}.cancel-button:hover{background:#10182805;color:var(--text-dark)}.resend-timer{color:var(--text-light)}.resend-otp-button{border:1px solid var(--border-color);color:var(--text-dark);background:transparent}.resend-otp-button:hover:not([disabled]){box-shadow:0 8px 22px #1018280f;border-color:#1f293714}.avatar-modal-content{background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid var(--border-color);color:var(--text-dark);box-shadow:0 20px 40px #1018280f}.emote-preview-container{border:1px solid var(--border-color);background:linear-gradient(180deg,#10182805,#10182803);box-shadow:0 8px 18px #1018280a}.signup-link{color:var(--text-light)}.signup-link button,.forgot-password-btn{color:var(--primary-color)}.card-title{text-shadow:none}.error-message{background-color:var(--error-bg);color:var(--error-text);border-left:4px solid var(--error-color)}.success-message{background:var(--success-bg);color:var(--success-text)}.logo-title{text-shadow:0 1px 2px rgba(0,0,0,.04)}}@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}.close-button{background:none;border:none;color:#fff;cursor:pointer;padding:5px;border-radius:50%;transition:var(--transition);display:flex;align-items:center;justify-content:center}.close-button:hover{background:#fff3;transform:scale(1.1)}.profile-form{padding:30px;display:flex;flex-direction:column;gap:20px}.form-group{display:flex;flex-direction:column;gap:8px}.form-group label{font-size:1rem;font-weight:600;color:var(--text-color)}.form-group input{padding:12px 16px;border:2px solid #e1e1e1;border-radius:var(--border-radius);font-size:1rem;background:#f9f9f9;transition:var(--transition);outline:none}.form-group input:focus{border-color:var(--primary-color);background:#fff;box-shadow:0 0 0 3px #ff6b9d1a}.form-group input:invalid{border-color:var(--error-color)}.error-message{padding:12px 16px;background:linear-gradient(135deg,var(--error-color),#ff7675);color:#fff;border-radius:var(--border-radius);font-size:.9rem;text-align:center;animation:shake .5s ease-in-out}.form-actions{display:flex;gap:15px;justify-content:flex-end;margin-top:20px}.btn-secondary,.btn-primary{padding:12px 24px;border-radius:var(--border-radius);font-size:1rem;font-weight:600;cursor:pointer;transition:var(--transition);border:none;min-width:120px}.btn-secondary{background:#636e72;color:#fff}.btn-secondary:hover{background:#2d3436;transform:translateY(-1px)}.btn-primary{background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));color:#fff;box-shadow:var(--shadow)}.btn-primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 25px #ff6b9d4d}.btn-primary:disabled{opacity:.6;cursor:not-allowed;transform:none}@media(max-width:768px){.modal-content{width:95%;max-height:90vh}.modal-header{padding:15px 20px}.profile-form{padding:20px}.form-actions{flex-direction:column}.btn-secondary,.btn-primary{width:100%}}@media(max-width:480px){.modal-header h2{font-size:1.3rem}.form-group input{padding:10px 14px}.btn-secondary,.btn-primary{padding:10px 20px;font-size:.9rem}}input:focus,button:focus{outline:2px solid var(--accent-color);outline-offset:2px}.user-search-modal{background:var(--card-background);border-radius:var(--border-radius);box-shadow:0 10px 40px #0003;width:90%;max-width:600px;max-height:80vh;overflow:hidden;display:flex;flex-direction:column;animation:slideUp .3s ease-out}.search-section{padding:20px 30px;border-bottom:1px solid #e1e1e1}.search-input-container{position:relative;display:flex;align-items:center;gap:10px}.search-icon{position:absolute;left:15px;color:var(--text-color);opacity:.6;z-index:1}.search-input-field{flex:1;padding:12px 15px 12px 45px;border:2px solid #e1e1e1;border-radius:var(--border-radius);font-size:1rem;background:#f9f9f9;transition:var(--transition);outline:none}.search-input-field:focus{border-color:var(--primary-color);background:#fff;box-shadow:0 0 0 3px #ff6b9d1a}.search-button{padding:12px 20px;background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));color:#fff;border:none;border-radius:var(--border-radius);font-size:1rem;font-weight:600;cursor:pointer;transition:var(--transition);display:flex;align-items:center;gap:5px}.search-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 25px #ff6b9d4d}.search-button:disabled{opacity:.6;cursor:not-allowed;transform:none}.spinner{animation:spin 1s linear infinite}.error-message{display:flex;align-items:center;gap:10px;padding:12px 30px;background:linear-gradient(135deg,var(--error-color),#ff7675);color:#fff;border-radius:var(--border-radius);margin:0 30px 20px;font-size:.9rem;animation:shake .5s ease-in-out}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-5px)}75%{transform:translate(5px)}}.search-results{padding:0 30px 30px;overflow-y:auto;flex:1}.loading-state p{margin-top:15px;font-size:1rem}.empty-state svg{margin-bottom:15px;color:var(--primary-color)}.empty-state p{font-size:1.1rem;margin:0 0 5px}.empty-state small{font-size:.9rem;color:var(--text-color);opacity:.6}.results-list{display:flex;flex-direction:column;gap:15px}.user-result-item{display:flex;align-items:center;justify-content:space-between;padding:15px;border:1px solid #e1e1e1;border-radius:var(--border-radius);background:#f9f9f9;transition:var(--transition);box-shadow:var(--shadow)}.user-result-item:hover{transform:translateY(-2px);box-shadow:0 6px 25px #00000026}.user-info{display:flex;align-items:center;gap:15px;flex:1}.user-avatar{width:50px;height:50px;border-radius:50%;object-fit:cover;border:2px solid var(--primary-color);transition:var(--transition)}.user-avatar:hover{transform:scale(1.1)}.user-details{flex:1}.user-details h3{font-size:1.1rem;font-weight:600;color:var(--text-color);margin:0 0 5px}.user-details p{font-size:.9rem;color:var(--text-color);opacity:.8;margin:0 0 5px}.user-status{display:flex;align-items:center;gap:5px;font-size:.8rem;color:var(--text-color);opacity:.7}.status-dot{width:8px;height:8px;border-radius:50%;background:var(--error-color)}.status-dot.online{background:var(--success-color)}.user-actions{display:flex;align-items:center;gap:10px}.btn{display:flex;align-items:center;gap:5px;padding:8px 12px;border:none;border-radius:var(--border-radius);font-size:.9rem;font-weight:500;cursor:pointer;transition:var(--transition);text-transform:capitalize;min-width:100px;justify-content:center}.btn-send-request{background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));color:#fff}.btn-send-request:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 15px #ff6b9d4d}.btn-block-user{background:linear-gradient(135deg,var(--danger-color),#b71540);color:#fff}.btn-block-user:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 15px #d630314d}.btn-already-friend,.btn-request-pending{background:#636e72;color:#fff;cursor:not-allowed}.success-message{display:flex;align-items:center;gap:5px;color:var(--success-color);font-weight:600;font-size:.9rem}@media(max-width:768px){.user-search-modal{width:95%;max-height:90vh}.modal-header,.search-section{padding:15px 20px}.search-results{padding:0 20px 20px}.user-result-item{flex-direction:column;align-items:flex-start;gap:15px}.user-actions{width:100%;justify-content:space-around}.btn{flex:1;min-width:0}}@media(max-width:480px){.search-input-container{flex-direction:column;gap:10px}.search-button{width:100%}.user-info{gap:10px}.user-avatar{width:40px;height:40px}.user-details h3{font-size:1rem}.btn{padding:6px 10px;font-size:.8rem}}.search-input-field:focus,.search-button:focus,.btn:focus,.modal-close:focus{outline:2px solid var(--accent-color);outline-offset:2px}.chat-request-modal{background:var(--card-background);border-radius:var(--border-radius);box-shadow:0 10px 40px #0003;width:90%;max-width:600px;max-height:80vh;overflow:hidden;display:flex;flex-direction:column;animation:slideUp .3s ease-out}.modal-header h2{font-size:1.5rem;font-weight:600;margin:0}.modal-close{background:none;border:none;color:#fff;cursor:pointer;padding:5px;border-radius:50%;transition:var(--transition);display:flex;align-items:center;justify-content:center}.modal-close:hover{background:#fff3;transform:scale(1.1)}.modal-tabs{display:flex;border-bottom:1px solid #e1e1e1}.tab{flex:1;padding:15px 20px;background:none;border:none;font-size:1rem;font-weight:500;color:var(--text-color);cursor:pointer;transition:var(--transition);position:relative;opacity:.7}.tab.active{opacity:1;color:var(--primary-color);font-weight:600}.tab.active:after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--primary-color),var(--secondary-color))}.tab:hover:not(.active){background:#ff6b9d1a}.modal-content{padding:20px 30px;overflow-y:auto;flex:1}.no-requests{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;text-align:center;color:var(--text-color);opacity:.7}.no-requests svg{margin-bottom:15px;color:var(--primary-color)}.no-requests p{font-size:1.1rem;margin:0}.requests-list{display:flex;flex-direction:column;gap:15px}.request-item{display:flex;align-items:center;justify-content:space-between;padding:15px;border:1px solid #e1e1e1;border-radius:var(--border-radius);background:#f9f9f9;transition:var(--transition);box-shadow:var(--shadow)}.request-item:hover{transform:translateY(-2px);box-shadow:0 6px 25px #00000026}.request-user-info{display:flex;align-items:center;gap:15px;flex:1}.request-avatar{width:50px;height:50px;border-radius:50%;object-fit:cover;border:2px solid var(--primary-color);transition:var(--transition)}.request-avatar:hover{transform:scale(1.1)}.request-details{flex:1}.request-details h3{font-size:1.1rem;font-weight:600;color:var(--text-color);margin:0 0 5px}.request-details p{font-size:.9rem;color:var(--text-color);opacity:.8;margin:0 0 5px}.request-details small{font-size:.8rem;color:var(--text-color);opacity:.6}.request-actions{display:flex;gap:10px;flex-wrap:wrap}.btn{display:flex;align-items:center;gap:5px;padding:8px 12px;border:none;border-radius:var(--border-radius);font-size:.9rem;font-weight:500;cursor:pointer;transition:var(--transition);text-transform:capitalize;min-width:80px;justify-content:center}.btn-accept{background:linear-gradient(135deg,var(--success-color),#00a085);color:#fff}.btn-accept:hover{transform:translateY(-1px);box-shadow:0 4px 15px #00b8944d}.btn-reject,.btn-cancel{background:linear-gradient(135deg,var(--error-color),#ff7675);color:#fff}.btn-reject:hover,.btn-cancel:hover{transform:translateY(-1px);box-shadow:0 4px 15px #e170554d}.btn-block{background:linear-gradient(135deg,var(--danger-color),#b71540);color:#fff}.btn-block:hover{transform:translateY(-1px);box-shadow:0 4px 15px #d630314d}.btn:disabled{opacity:.6;cursor:not-allowed;transform:none}@media(max-width:768px){.chat-request-modal{width:95%;max-height:90vh}.modal-header,.modal-content{padding:15px 20px}.request-item{flex-direction:column;align-items:flex-start;gap:15px}.request-actions{width:100%;justify-content:space-around}.btn{flex:1;min-width:0}}@media(max-width:480px){.modal-tabs{flex-direction:column}.tab{padding:12px 15px}.request-user-info{gap:10px}.request-avatar{width:40px;height:40px}.request-details h3{font-size:1rem}.btn{padding:6px 10px;font-size:.8rem}}.tab:focus,.btn:focus,.modal-close:focus{outline:2px solid var(--accent-color);outline-offset:2px}:root{--primary-color: #ff6b9d;--secondary-color: #feca57;--accent-color: #48dbfb;--background-color: #f7f1e3;--card-background: #ffffff;--text-color: #2d3436;--error-color: #e17055;--success-color: #00b894;--warning-color: #fdcb6e;--danger-color: #d63031;--shadow: 0 4px 20px rgba(0, 0, 0, .1);--border-radius: 12px;--transition: all .3s ease;--font-family: "Poppins", sans-serif}.modal-overlay{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:1000;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);animation:fadeIn .3s ease-out}.modal-content{background:var(--card-background);border-radius:var(--border-radius);box-shadow:0 10px 40px #0003;width:90%;max-width:500px;max-height:80vh;overflow:hidden;display:flex;flex-direction:column;animation:slideUp .3s ease-out}@keyframes slideUp{0%{transform:translateY(50px);opacity:0}to{transform:translateY(0);opacity:1}}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px 30px;border-bottom:1px solid #e1e1e1;background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));color:#fff}.modal-header-title{display:flex;align-items:center;gap:10px}.modal-header-title h2{font-size:1.5rem;font-weight:600;margin:0}.modal-close-button{background:none;border:none;color:#fff;cursor:pointer;padding:5px;border-radius:50%;transition:var(--transition);display:flex;align-items:center;justify-content:center}.modal-close-button:hover{background:#fff3;transform:scale(1.1)}.modal-body{padding:20px 30px;overflow-y:auto;flex:1}.loading-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;text-align:center;color:var(--text-color);opacity:.7}.spinner{width:32px;height:32px;border:3px solid var(--primary-color);border-top:3px solid transparent;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:15px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-state p{font-size:1rem;margin:0}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;text-align:center;color:var(--text-color);opacity:.7}.empty-icon{margin-bottom:15px;color:var(--primary-color)}.empty-state h3{font-size:1.2rem;margin:0 0 10px;color:var(--text-color)}.empty-state p{font-size:1rem;margin:0}.blocked-users-list{display:flex;flex-direction:column;gap:15px}.blocked-user-item{display:flex;align-items:center;justify-content:space-between;padding:15px;border:1px solid #e1e1e1;border-radius:var(--border-radius);background:#f9f9f9;transition:var(--transition);box-shadow:var(--shadow)}.blocked-user-item:hover{transform:translateY(-2px);box-shadow:0 6px 25px #00000026}.blocked-user-info{display:flex;align-items:center;gap:15px;flex:1}.blocked-user-avatar{width:50px;height:50px;border-radius:50%;object-fit:cover;border:2px solid var(--primary-color);transition:var(--transition)}.blocked-user-avatar:hover{transform:scale(1.1)}.blocked-user-details{flex:1}.blocked-user-details h3{font-size:1.1rem;font-weight:600;color:var(--text-color);margin:0 0 5px}.blocked-user-details p{font-size:.9rem;color:var(--text-color);opacity:.8;margin:0}.unblock-button{padding:8px 16px;background:linear-gradient(135deg,var(--success-color),#00a085);color:#fff;border:none;border-radius:var(--border-radius);font-size:.9rem;font-weight:600;cursor:pointer;transition:var(--transition);display:flex;align-items:center;gap:5px}.unblock-button:hover{transform:translateY(-1px);box-shadow:0 4px 15px #00b8944d}@media(max-width:768px){.modal-content{width:95%;max-height:90vh}.modal-header,.modal-body{padding:15px 20px}.blocked-user-item{flex-direction:column;align-items:flex-start;gap:15px}.unblock-button{width:100%;justify-content:center}}@media(max-width:480px){.modal-header-title{gap:8px}.modal-header-title h2{font-size:1.3rem}.blocked-user-info{gap:10px}.blocked-user-avatar{width:40px;height:40px}.blocked-user-details h3{font-size:1rem}.unblock-button{padding:6px 12px;font-size:.8rem}}.unblock-button:focus,.modal-close-button:focus{outline:2px solid var(--accent-color);outline-offset:2px}:root{--primary-color: #2ecc71;--primary-color-light: #eafaf1;--primary-color-hover: #27ae60;--background-color: #f8fafa;--sidebar-background-color: #ffffff;--card-background-color: #ffffff;--hover-color: #e8fff2;--text-color-primary: #1a1d1a;--text-color-secondary: #4d4d4d;--text-color-tertiary: #7a7a7a;--text-color-inverted: #ffffff;--border-color: #d6f5e0;--divider-color: #c8e6d4;--unread-bg: #eafaf1;--online-indicator-color: #2ecc71;--notification-badge-color: #e74c3c;--transition-speed: .2s ease;--border-radius-sm: 8px;--border-radius-md: 12px}[data-theme=dark]{--primary-color: #64b5f6;--primary-color-light: #1e3a5f;--primary-color-hover: #42a5f5;--background-color: #0f172a;--sidebar-background-color: #0f172a;--card-background-color: #1e293b;--hover-color: #334155;--text-color-primary: #f1f5f9;--text-color-secondary: #cbd5e1;--text-color-tertiary: #94a3b8;--text-color-inverted: #0f172a;--border-color: #334155;--unread-bg: #312e81;--online-indicator-color: #4caf50;--notification-badge-color: #ef5350}[data-theme=midnight]{--primary-color: #6366f1;--primary-color-light: #e0e7ff;--primary-color-hover: #4f46e5;--background-color: #0f172a;--sidebar-background-color: #0f172a;--card-background-color: #1e293b;--hover-color: #334155;--text-color-primary: #f1f5f9;--text-color-secondary: #cbd5e1;--text-color-tertiary: #94a3b8;--text-color-inverted: #0f172a;--border-color: #475569;--unread-bg: #312e81;--online-indicator-color: #10b981;--notification-badge-color: #f43f5e}[data-theme=ocean]{--primary-color: #0099cc;--primary-color-light: #e0f7ff;--primary-color-hover: #0077aa;--background-color: #f0f8ff;--sidebar-background-color: #f0f8ff;--card-background-color: #e8f4ff;--hover-color: #d4eef7;--text-color-primary: #003366;--text-color-secondary: #005588;--text-color-tertiary: #6b8aa0;--text-color-inverted: #ffffff;--border-color: #b3d9ff;--unread-bg: #cce5ff;--online-indicator-color: #00d4aa;--notification-badge-color: #e74c3c}[data-theme=sunset]{--primary-color: #ff6b6b;--primary-color-light: #ffe0e0;--primary-color-hover: #ee5a52;--background-color: #fff9f0;--sidebar-background-color: #fff9f0;--card-background-color: #fff3e0;--hover-color: #ffe4cc;--text-color-primary: #663333;--text-color-secondary: #995555;--text-color-tertiary: #cc8888;--text-color-inverted: #ffffff;--border-color: #ffd4b4;--unread-bg: #ffe0cc;--online-indicator-color: #ff6b6b;--notification-badge-color: #fa5252}[data-theme=forest]{--primary-color: #2d6a4f;--primary-color-light: #d8f3dc;--primary-color-hover: #1b4332;--background-color: #f1f7f4;--sidebar-background-color: #f1f7f4;--card-background-color: #e8f5f0;--hover-color: #d7f0e3;--text-color-primary: #1a1d1a;--text-color-secondary: #4d4d4d;--text-color-tertiary: #7a7a7a;--text-color-inverted: #ffffff;--border-color: #c1e1c1;--unread-bg: #d8f3dc;--online-indicator-color: #2d6a4f;--notification-badge-color: #e74c3c}.hamburger-menu-button{display:none;position:fixed;top:15px;left:15px;z-index:1001;background-color:var(--primary-color);color:#fff;border:none;border-radius:12px;padding:10px;cursor:pointer;box-shadow:0 4px 12px #00000026;transition:all .3s ease}.hamburger-menu-button:hover{background-color:var(--primary-color-hover);transform:scale(1.05)}.hamburger-menu-button:active{transform:scale(.95)}.mobile-menu-overlay{display:none;position:fixed;inset:0;background-color:#00000080;z-index:998;animation:fadeIn .3s ease}.sidebar-container{display:flex;flex-direction:column;width:360px;background-color:var(--sidebar-background-color);border-right:1px solid var(--border-color);padding:1.5rem;transition:background-color var(--transition-speed),border-color var(--transition-speed);overflow:hidden}.sidebar-header{padding-bottom:1rem;flex-shrink:0}.sidebar-header-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.sidebar-title{font-size:1.75rem;font-weight:700;margin:0;color:var(--text-color-primary);letter-spacing:-.5px}.sidebar-actions{display:flex;gap:.5rem}.action-button-wrapper{display:flex;flex-direction:column;align-items:center;gap:4px}.action-button-label{font-size:10px;color:var(--text-color-secondary);text-align:center;white-space:nowrap;font-weight:500;letter-spacing:.3px}.action-button{background:transparent;border:none;cursor:pointer;padding:8px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--text-color-secondary);transition:background-color var(--transition-speed),color var(--transition-speed),transform .15s ease;position:relative}.action-button:hover{background-color:var(--card-background-color);color:var(--text-color-primary);transform:scale(1.08)}.action-button:active{transform:scale(.95)}.add-chat-button{background-color:var(--primary-color);color:var(--text-color-inverted);border:none;cursor:pointer;padding:8px;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:background-color var(--transition-speed),transform .15s ease,box-shadow .2s ease;box-shadow:0 2px 8px #0000001a}.add-chat-button:hover{background-color:var(--primary-color-hover);transform:scale(1.1);box-shadow:0 4px 12px #0003}.add-chat-button:active{transform:scale(.95)}.search-container{position:relative;margin-bottom:1rem;flex-shrink:0}.search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--text-color-tertiary);transition:color var(--transition-speed)}.search-input{width:100%;padding:10px 15px 10px 40px;border-radius:var(--border-radius-sm);border:1px solid var(--border-color);background-color:var(--card-background-color);color:var(--text-color-primary);font-size:.95rem;font-family:inherit;transition:border-color var(--transition-speed),box-shadow var(--transition-speed),background-color var(--transition-speed)}.search-input::placeholder{color:var(--text-color-tertiary)}.search-input:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 3px var(--primary-color-light);background-color:var(--sidebar-background-color)}.search-container:focus-within .search-icon{color:var(--primary-color)}.user-list{flex:1;overflow-y:auto;overflow-x:hidden;margin:0 -1.5rem;padding:0 1.5rem;min-height:0}.user-list::-webkit-scrollbar{width:6px}.user-list::-webkit-scrollbar-track{background:transparent}.user-list::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:3px}.user-list::-webkit-scrollbar-thumb:hover{background:var(--text-color-tertiary)}.user-item{display:flex;align-items:center;padding:1rem;border-radius:var(--border-radius-md);cursor:pointer;transition:background-color var(--transition-speed),border-left-color var(--transition-speed);margin-bottom:.5rem;border-left:4px solid transparent;position:relative}.user-item:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--primary-color);transform:scaleY(0);transition:transform .2s ease}.user-item.active:before{transform:scaleY(1)}.user-item:hover{background-color:var(--hover-color)}.user-item.active{background-color:var(--primary-color-light);border-left-color:var(--primary-color)}.user-item.has-unread{background-color:var(--unread-bg);border-left-color:var(--primary-color);background:linear-gradient(90deg,var(--unread-bg) 0%,transparent 100%)}.user-item.has-unread:hover{background-color:var(--hover-color)}.user-item.has-unread .user-name{font-weight:700}.user-item.has-unread .user-last-message{font-weight:600}.user-avatar-wrapper{position:relative;margin-right:1rem;flex-shrink:0}.user-avatar{width:50px;height:50px;border-radius:50%;object-fit:cover;border:2px solid var(--border-color);transition:border-color var(--transition-speed),transform .2s ease}.user-item:hover .user-avatar{border-color:var(--primary-color);transform:scale(1.05)}.user-status-dot{position:absolute;bottom:2px;right:2px;width:12px;height:12px;border-radius:50%;border:2px solid var(--sidebar-background-color);transition:background-color var(--transition-speed),box-shadow var(--transition-speed)}.user-status-dot.online{background-color:var(--online-indicator-color);box-shadow:0 0 6px var(--online-indicator-color)}.user-status-dot.offline{background-color:var(--text-color-tertiary)}.user-unread-badge{position:absolute;top:-6px;right:-6px;background-color:var(--notification-badge-color);color:#fff;font-size:.7rem;font-weight:700;padding:2px 6px;border-radius:10px;min-width:22px;height:22px;text-align:center;display:flex;align-items:center;justify-content:center;border:2px solid var(--sidebar-background-color);box-shadow:0 2px 8px #00000040;animation:badgePulse 2s ease-in-out infinite}@keyframes badgePulse{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}.user-details{flex:1;overflow:hidden;min-width:0}.user-details-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:.3rem}.user-name{font-weight:600;margin:0;font-size:1rem;color:var(--text-color-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-last-time{font-size:.8rem;color:var(--text-color-secondary);white-space:nowrap;flex-shrink:0;margin-left:.5rem}.user-details-bottom{display:flex;align-items:center;gap:.5rem}.user-last-message{font-size:.9rem;color:var(--text-color-secondary);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;transition:color var(--transition-speed);position:relative}.user-last-message.unread{color:var(--text-color-primary);font-weight:600}.new-message-indicator{color:var(--primary-color);font-weight:700;display:inline-flex;align-items:center;gap:.3rem;white-space:nowrap;animation:messageFlash 1.5s ease-in-out infinite}@keyframes messageFlash{0%,to{opacity:1}50%{opacity:.7}}.message-indicator{width:8px;height:8px;background-color:var(--primary-color);border-radius:50%;flex-shrink:0;animation:indicatorPulse 2s ease-in-out infinite}@keyframes indicatorPulse{0%,to{box-shadow:0 0 0 0 var(--primary-color);opacity:1}50%{box-shadow:0 0 0 4px #5e54f34d;opacity:.8}}.no-users-message{display:flex;align-items:center;justify-content:center;height:200px;color:var(--text-color-tertiary);font-size:.95rem;text-align:center;padding:2rem}.no-users-message p{margin:0}.sidebar-profile{padding:1rem 0 0;border-top:1px solid var(--border-color);margin-top:1rem;flex-shrink:0}.profile-main{display:flex;align-items:center;gap:1rem}.profile-avatar-wrapper{position:relative;flex-shrink:0}.profile-avatar{width:45px;height:45px;border-radius:50%;object-fit:cover;border:2px solid var(--primary-color);transition:border-color var(--transition-speed),transform .2s ease}.profile-avatar:hover{border-color:var(--primary-color-hover);transform:scale(1.05)}.profile-status-indicator{position:absolute;bottom:1px;right:1px;width:10px;height:10px;border-radius:50%;border:2px solid var(--sidebar-background-color);background-color:var(--online-indicator-color);box-shadow:0 0 4px var(--online-indicator-color)}.profile-info{flex:1;min-width:0}.profile-name{margin:0;font-weight:600;font-size:.95rem;color:var(--text-color-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-status{margin:.2rem 0 0;font-size:.8rem;color:var(--text-color-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-actions{display:flex;gap:.25rem}.profile-action-button{background:transparent;border:none;cursor:pointer;padding:6px;color:var(--text-color-secondary);border-radius:50%;transition:all var(--transition-speed);display:flex;align-items:center;justify-content:center}.profile-action-button:hover{color:var(--text-color-primary);background-color:var(--card-background-color);transform:scale(1.1)}.profile-action-button.logout:hover{color:var(--notification-badge-color);background-color:#fa383e1a}.theme-selector-wrapper{position:relative}.theme-dropdown{position:absolute;bottom:calc(100% + 8px);right:0;background-color:var(--sidebar-background-color);border:1px solid var(--border-color);border-radius:12px;box-shadow:0 8px 24px #00000026;padding:8px;min-width:180px;z-index:1000;animation:dropdownSlideUp .2s ease}@keyframes dropdownSlideUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.theme-option{width:100%;display:flex;align-items:center;gap:12px;padding:10px 12px;background:transparent;border:none;border-radius:8px;cursor:pointer;color:var(--text-color-primary);font-size:.9rem;transition:all .2s ease;position:relative}.theme-option:hover{background-color:var(--hover-color);transform:translate(4px)}.theme-option.active{background-color:var(--primary-color-light);color:var(--primary-color);font-weight:600}.theme-icon{font-size:1.2rem;line-height:1}.theme-name{flex:1;text-align:left}.theme-checkmark{color:var(--primary-color);font-weight:700;font-size:1rem}.notification-badge{position:absolute;top:-5px;right:-5px;background:var(--notification-badge-color);color:#fff;border-radius:50%;min-width:18px;height:18px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:600;border:2px solid var(--sidebar-background-color);padding:0 4px;z-index:10;animation:badgePulse 2s ease-in-out infinite}.user-typing-indicator{display:flex;align-items:center;gap:8px;color:#000;font-style:italic;font-size:.85rem;margin:0;padding:2px 0;animation:typing-pulse 2s infinite ease-in-out}.typing-dots{display:flex;align-items:center;gap:3px;padding:4px 8px;background:#4a90e21a;border-radius:12px;border:1px solid rgba(74,144,226,.2)}.typing-dot{width:6px;height:6px;border-radius:50%;background-color:#000;animation:typing-bounce 1.4s infinite ease-in-out both}.typing-dot:nth-child(1){animation-delay:-.32s}.typing-dot:nth-child(2){animation-delay:-.16s}.typing-dot:nth-child(3){animation-delay:0s}.typing-text{font-size:.8rem;color:#000;font-weight:500;letter-spacing:.3px}@keyframes typing-bounce{0%,80%,to{transform:scale(.8);opacity:.5}40%{transform:scale(1.1);opacity:1}}@keyframes typing-pulse{0%,to{opacity:1}50%{opacity:.8}}.user-item:hover .user-typing-indicator{transform:translate(2px);transition:transform .2s ease}.user-item.active .user-typing-indicator{color:#000;font-weight:600}.user-item.active .typing-dots{background:#4a90e233;border-color:#4a90e266}@media(max-width:1024px){.sidebar-container{width:320px;padding:1.25rem}.sidebar-title{font-size:1.5rem}.user-item{padding:.75rem}.user-avatar{width:45px;height:45px}}@media(max-width:768px){.hamburger-menu-button{display:flex;align-items:center;justify-content:center}.mobile-menu-overlay{display:block}.sidebar-container{position:fixed;top:0;left:-100%;width:85%;max-width:320px;height:100vh;height:100dvh;z-index:999;border-right:1px solid var(--border-color);padding:1rem;transition:left .3s cubic-bezier(.4,0,.2,1);box-shadow:2px 0 12px #0000001a;display:flex;flex-direction:column}.sidebar-container.mobile-menu-open{left:0}.sidebar-profile{order:-2;padding:.75rem 0;margin-top:0;margin-bottom:.75rem;border-top:none;border-bottom:1px solid var(--border-color);flex-shrink:0}.profile-main{gap:.75rem}.profile-avatar{width:42px;height:42px}.profile-name{font-size:.9rem}.profile-status{font-size:.75rem}.profile-action-button{padding:5px}.profile-action-button svg{width:15px;height:15px}.sidebar-header{order:-1;padding-top:0;padding-bottom:.75rem;flex-shrink:0}.sidebar-header-top{margin-bottom:1rem}.sidebar-title{font-size:1.5rem}.sidebar-actions{gap:.3rem;flex-wrap:wrap}.action-button-wrapper{gap:2px}.action-button-label{font-size:9px}.action-button,.add-chat-button{padding:6px}.action-button svg,.add-chat-button svg{width:16px;height:16px}.search-container{margin-bottom:.75rem}.user-list{order:0;flex:1;margin:0 -1rem;padding:0 1rem;overflow-y:auto;min-height:0}.user-item{padding:.75rem;margin-bottom:.25rem}.user-avatar-wrapper{margin-right:.75rem}.user-avatar{width:45px;height:45px}.user-name{font-size:.95rem}.user-last-message{font-size:.85rem}.user-last-time{font-size:.75rem}.notification-badge{top:-3px;right:-3px;min-width:16px;height:16px;font-size:10px}.user-typing-indicator{gap:6px;font-size:.8rem}.typing-dots{gap:2px;padding:3px 6px}.typing-dot{width:5px;height:5px}.typing-text{font-size:.75rem}.theme-dropdown{bottom:auto;top:calc(100% + 6px);min-width:160px}}@media(max-width:480px){.hamburger-menu-button{top:12px;left:12px;padding:8px}.sidebar-container{width:90%;max-width:300px;padding:.75rem}.sidebar-profile{order:-2;padding:.65rem 0;margin-bottom:.65rem;border-bottom:1px solid var(--border-color)}.profile-main{gap:.65rem}.profile-avatar{width:40px;height:40px}.profile-name{font-size:.85rem}.profile-status{font-size:.7rem}.profile-actions{gap:.15rem}.profile-action-button{padding:4px}.profile-action-button svg{width:14px;height:14px}.sidebar-header{order:-1;padding-top:0;padding-bottom:.5rem}.sidebar-header-top{margin-bottom:.75rem}.sidebar-title{font-size:1.35rem}.sidebar-actions{gap:.25rem}.action-button-wrapper{gap:1px}.action-button-label{font-size:8px}.action-button,.add-chat-button{padding:5px}.action-button svg,.add-chat-button svg{width:14px;height:14px}.search-input{font-size:.85rem;padding:8px 12px 8px 36px}.search-icon{left:10px}.search-container{margin-bottom:.5rem}.user-list{order:0;margin:0 -.75rem;padding:0 .75rem}.user-item{padding:.65rem;margin-bottom:.25rem;border-radius:10px}.user-avatar-wrapper{margin-right:.65rem}.user-avatar{width:42px;height:42px}.user-name{font-size:.9rem;font-weight:600}.user-last-message{font-size:.8rem}.user-last-time{font-size:.7rem}.user-unread-badge{width:18px;height:18px;font-size:.65rem;padding:0 2px;top:-5px;right:-5px}.user-typing-indicator{gap:5px;font-size:.75rem}.typing-dots{gap:2px;padding:2px 5px}.typing-dot{width:4px;height:4px}.typing-text{font-size:.7rem}.theme-dropdown{top:calc(100% + 6px);bottom:auto;min-width:150px;padding:6px}.theme-option{padding:8px 10px;gap:10px;font-size:.85rem}.theme-icon{font-size:1.1rem}}@media(max-width:360px){.sidebar-container{width:92%;max-width:280px;padding:.65rem}.sidebar-profile{order:-2;padding:.6rem 0;margin-bottom:.6rem}.profile-avatar{width:36px;height:36px}.profile-name{font-size:.8rem}.profile-status{font-size:.65rem}.sidebar-header{order:-1;padding-top:0;padding-bottom:.5rem}.sidebar-title{font-size:1.25rem}.user-list{order:0}.user-avatar{width:38px;height:38px}.user-name{font-size:.85rem}.user-last-message{font-size:.75rem}}.Toastify__toast-container{z-index:9999!important;width:100%}@media(max-width:359px){.Toastify__toast-container{padding:8px;max-width:calc(100vw - 16px)}.Toastify__toast-container--top-right,.Toastify__toast-container--top-left{top:8px}.Toastify__toast-container--bottom-right,.Toastify__toast-container--bottom-left{bottom:8px}}@media(min-width:360px)and (max-width:480px){.Toastify__toast-container{padding:12px;max-width:calc(100vw - 24px)}.Toastify__toast-container--top-right,.Toastify__toast-container--top-left{top:12px}.Toastify__toast-container--bottom-right,.Toastify__toast-container--bottom-left{bottom:12px}}@media(min-width:481px)and (max-width:768px){.Toastify__toast-container{padding:14px;max-width:400px}.Toastify__toast-container--top-right,.Toastify__toast-container--top-left{top:14px}.Toastify__toast-container--bottom-right,.Toastify__toast-container--bottom-left{bottom:14px}}@media(min-width:769px){.Toastify__toast-container{padding:16px;max-width:420px}.Toastify__toast-container--top-right,.Toastify__toast-container--top-left{top:16px}.Toastify__toast-container--bottom-right,.Toastify__toast-container--bottom-left{bottom:16px}}.Toastify__toast{padding:0!important;min-height:auto!important;border-radius:16px!important;backdrop-filter:blur(20px)!important;-webkit-backdrop-filter:blur(20px)!important;box-shadow:0 8px 32px #0000001f,0 2px 8px #00000014,inset 0 1px 1px #ffffff1a!important;overflow:hidden;animation:slideInRight .4s cubic-bezier(.34,1.56,.64,1);margin-bottom:12px!important;border:1px solid rgba(255,255,255,.1)}@keyframes slideInRight{0%{transform:translate(110%) scale(.9);opacity:0}to{transform:translate(0) scale(1);opacity:1}}@media(max-width:359px){.Toastify__toast{border-radius:12px!important;margin-bottom:8px!important;min-height:60px!important}}@media(min-width:360px)and (max-width:480px){.Toastify__toast{border-radius:14px!important;margin-bottom:10px!important;min-height:65px!important}}@media(min-width:481px)and (max-width:768px){.Toastify__toast{min-height:70px!important}}@media(min-width:769px){.Toastify__toast{min-height:75px!important}}.custom-message-toast,.custom-request-toast{background:transparent!important;padding:0!important}.custom-message-toast .Toastify__toast-body,.custom-request-toast .Toastify__toast-body{padding:0!important;margin:0!important}.custom-toast-content{display:flex;align-items:center;gap:14px;padding:14px 16px;background:var(--bg-primary);border-radius:16px;transition:all .3s cubic-bezier(.34,1.56,.64,1);cursor:pointer;position:relative;overflow:hidden;min-height:inherit}@media(max-width:359px){.custom-toast-content{gap:10px;padding:10px 12px;border-radius:12px;min-height:60px}}@media(min-width:360px)and (max-width:480px){.custom-toast-content{gap:12px;padding:12px 14px;border-radius:14px;min-height:65px}}@media(min-width:481px)and (max-width:768px){.custom-toast-content{min-height:70px}}@media(min-width:769px){.custom-toast-content{min-height:75px}}@media(hover:hover)and (pointer:fine){.custom-toast-content:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(102,126,234,.1),transparent);transition:left .5s ease}.custom-toast-content:hover:before{left:100%}.custom-toast-content:hover{transform:scale(1.02) translateY(-2px);box-shadow:0 12px 28px #00000026}.custom-toast-content:active{transform:scale(.98) translateY(0)}}.toast-avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;flex-shrink:0;border:3px solid transparent;background:linear-gradient(var(--bg-primary),var(--bg-primary)) padding-box,linear-gradient(135deg,#667eea,#764ba2) border-box;box-shadow:0 4px 12px #667eea4d;transition:all .3s ease}@media(max-width:359px){.toast-avatar{width:38px;height:38px;border:2px solid transparent}}@media(min-width:360px)and (max-width:480px){.toast-avatar{width:42px;height:42px;border:2.5px solid transparent}}@media(hover:hover)and (pointer:fine){.custom-toast-content:hover .toast-avatar{transform:scale(1.1) rotate(5deg);box-shadow:0 6px 16px #667eea80}}.toast-icon{color:var(--primary-color);flex-shrink:0;filter:drop-shadow(0 2px 4px rgba(102,126,234,.3))}@media(max-width:359px){.toast-icon{width:18px;height:18px}}@media(min-width:360px)and (max-width:480px){.toast-icon{width:20px;height:20px}}@media(min-width:481px){.toast-icon{width:22px;height:22px}}.toast-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}@media(max-width:359px){.toast-text{gap:2px}}.toast-sender{font-weight:700;font-size:15px;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;letter-spacing:.3px;line-height:1.2}@media(max-width:359px){.toast-sender{font-size:13px;font-weight:600}}@media(min-width:360px)and (max-width:480px){.toast-sender{font-size:14px}}.toast-message{font-size:14px;color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4;font-weight:500}@media(max-width:359px){.toast-message{font-size:12px}}@media(min-width:360px)and (max-width:480px){.toast-message{font-size:13px}}.Toastify__progress-bar{height:4px!important;background:linear-gradient(90deg,#667eea,#764ba2,#667eea)!important;background-size:200% 100%!important;animation:gradientFlow 2s linear infinite!important}@keyframes gradientFlow{0%{background-position:0% 50%}to{background-position:200% 50%}}@media(max-width:359px){.Toastify__progress-bar{height:3px!important}}.Toastify__close-button{opacity:.7;transition:all .3s ease;padding:8px;align-self:flex-start;margin-top:-4px;margin-right:-4px}.Toastify__close-button:hover{opacity:1;transform:rotate(90deg) scale(1.2)}@media(max-width:359px){.Toastify__close-button{padding:6px;margin-top:-2px;margin-right:-2px}}@media(min-width:360px)and (max-width:480px){.Toastify__close-button{padding:7px}}[data-theme=light] .Toastify__toast{background:#fffffff2!important;color:#1a1a1a;border:1px solid rgba(102,126,234,.15)}[data-theme=light] .custom-toast-content{background:#fffffffa}[data-theme=light] .Toastify__close-button{color:#666}[data-theme=light] .Toastify__close-button:hover{color:#333}[data-theme=dark] .Toastify__toast{background:#2a2a2af2!important;color:#fff;border:1px solid rgba(102,126,234,.2)}[data-theme=dark] .custom-toast-content{background:#2a2a2afa}[data-theme=dark] .Toastify__close-button{color:#ccc}[data-theme=dark] .Toastify__close-button:hover{color:#fff}[data-theme=dark] .toast-avatar{box-shadow:0 4px 12px #7c8fe666}.Toastify__toast--success{border-left:4px solid #28a745}.Toastify__toast--success .Toastify__progress-bar{background:linear-gradient(90deg,#28a745,#20c997)!important}.Toastify__toast--error{border-left:4px solid #dc3545}.Toastify__toast--error .Toastify__progress-bar{background:linear-gradient(90deg,#dc3545,#e83e8c)!important}.Toastify__toast--info{border-left:4px solid #667eea}.Toastify__toast--warning{border-left:4px solid #ffc107}.Toastify__toast--warning .Toastify__progress-bar{background:linear-gradient(90deg,#ffc107,#ff9800)!important}@media(prefers-reduced-motion:reduce){.sidebar-container,.hamburger-menu-button,.mobile-menu-overlay,.user-item,.typing-dot,.user-typing-indicator,.Toastify__toast,.custom-toast-content,.toast-avatar,.toast-icon,.Toastify__progress-bar,.Toastify__close-button{transition:none!important;animation:none!important}.custom-toast-content:hover{transform:none}}@media(prefers-contrast:high){.typing-dots{background:transparent;border:2px solid #000000}.typing-dot{background-color:#000}.Toastify__toast{border:2px solid currentColor}.toast-avatar{border:3px solid currentColor}.Toastify__progress-bar{background:currentColor!important;animation:none!important}}@media(hover:none)and (pointer:coarse){.custom-toast-content:active{transform:scale(.98);background-color:#667eea0d}.Toastify__close-button:active{transform:scale(.9);background-color:#0000001a;border-radius:50%}}@media print{.Toastify__toast-container{display:none!important}}:root{--whatsapp-sender: #dcf8c6;--whatsapp-receiver: #ffffff;--whatsapp-background: #e5ddd5;--whatsapp-timestamp: #667781;--whatsapp-blue: #0086ff;--whatsapp-green: #25d366;--whatsapp-read: #53bdeb;--shadow-light: 0 1px 3px rgba(0, 0, 0, .12);--shadow-medium: 0 2px 6px rgba(0, 0, 0, .15);--shadow-heavy: 0 4px 12px rgba(0, 0, 0, .2);--border-radius: 8px;--border-radius-lg: 12px;--transition: all .2s cubic-bezier(.4, 0, .2, 1)}.message-bubble-wrapper{display:flex;margin:4px 0;position:relative}.message-bubble-wrapper.sender{justify-content:flex-end}.message-bubble-wrapper.receiver{justify-content:flex-start}.message-bubble-container{position:relative;max-width:70%;min-width:120px}.message-bubble{position:relative;padding:8px 12px;border-radius:var(--border-radius-lg);word-wrap:break-word;transition:var(--transition);box-shadow:var(--shadow-light);cursor:pointer}.message-bubble.sender{background:var(--whatsapp-sender);border-bottom-right-radius:2px;margin-left:auto}.message-bubble.receiver{background:var(--whatsapp-receiver);border-bottom-left-radius:2px}.message-bubble.sender:after{content:"";position:absolute;bottom:0;right:-8px;width:0;height:0;border-left:8px solid var(--whatsapp-sender);border-top:8px solid transparent;border-bottom:8px solid transparent}.message-bubble.receiver:before{content:"";position:absolute;bottom:0;left:-8px;width:0;height:0;border-right:8px solid var(--whatsapp-receiver);border-top:8px solid transparent;border-bottom:8px solid transparent}.message-content-wrapper{position:relative}.message-text{font-size:15px;line-height:1.4;color:#333;margin-bottom:4px;white-space:pre-wrap}.message-time-inline{display:flex;align-items:center;justify-content:flex-end;gap:4px;margin-top:2px}.message-time{font-size:11px;color:var(--whatsapp-timestamp);white-space:nowrap}.message-status{display:flex;align-items:center;gap:2px}.message-status.sent,.message-status.delivered{color:var(--whatsapp-timestamp)}.message-status.read{color:var(--whatsapp-read)}.message-status.optimistic{color:#999;opacity:.7}.message-status.failed{color:#ff3b30}.status-text{display:none!important}.message-image-container,.message-video-container,.message-voice-container,.message-file-container{position:relative;border-radius:var(--border-radius);overflow:hidden;margin-bottom:4px}.message-image{max-width:100%;max-height:300px;border-radius:var(--border-radius);display:block}.message-video{max-width:100%;max-height:300px;border-radius:var(--border-radius);background:#000}.message-voice-container{display:flex;align-items:center;gap:12px;padding:12px;background:#0000000d;min-width:200px}.voice-icon{color:var(--whatsapp-timestamp);flex-shrink:0}.message-audio{flex:1;height:32px}.message-file-container{display:flex;align-items:center;justify-content:space-between;padding:12px;background:#0000000d;min-width:200px}.message-file{display:flex;align-items:center;gap:8px;color:#333;text-decoration:none;font-size:14px;flex:1}.message-file:hover{color:var(--whatsapp-blue)}.download-btn{position:absolute;top:8px;right:8px;width:32px;height:32px;border:none;border-radius:50%;background:#0009;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:var(--transition);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.download-btn:hover{background:#000c;transform:scale(1.1)}.message-image-container .message-time-inline,.message-video-container .message-time-inline,.message-voice-container .message-time-inline,.message-file-container .message-time-inline{position:absolute;bottom:8px;right:8px;background:#0009;padding:4px 8px;border-radius:12px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.message-image-container .message-time,.message-video-container .message-time,.message-voice-container .message-time,.message-file-container .message-time{color:#fff;font-size:10px}.reply-reference{display:flex;align-items:stretch;margin-bottom:4px;max-width:85%}.reply-reference.sender{margin-left:auto;justify-content:flex-end}.reply-reference.receiver{margin-right:auto;justify-content:flex-start}.reply-reference-line{width:3px;background:var(--whatsapp-blue);border-radius:2px;margin-right:8px;flex-shrink:0}.reply-reference.sender .reply-reference-line{order:1;margin-right:0;margin-left:8px}.reply-reference-content{flex:1;padding:6px 8px;background:#0000000d;border-radius:var(--border-radius);font-size:13px;overflow:hidden}.reply-reference-sender{display:block;font-weight:600;color:var(--whatsapp-blue);margin-bottom:2px;font-size:12px}.reply-reference-text{display:block;color:var(--whatsapp-timestamp);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-bubble-wrapper.sender .message-actions{right:0}.message-bubble-wrapper.receiver .message-actions{left:0}.message-action-btn{width:28px;height:28px;border:none;border-radius:50%;background:transparent;color:var(--whatsapp-timestamp);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:var(--transition);font-size:14px}.message-action-btn:hover{background:#0000000d;color:var(--whatsapp-blue);transform:scale(1.1)}.mobile-actions.sender{right:0}.mobile-actions.receiver{left:0}.mobile-action-btn{display:flex;align-items:center;gap:6px;padding:8px 12px;border:none;border-radius:16px;background:transparent;color:var(--whatsapp-timestamp);cursor:pointer;transition:var(--transition);font-size:14px;font-weight:500;white-space:nowrap}.mobile-action-btn:hover{background:#0000000d;color:var(--whatsapp-blue);transform:translateY(-1px)}.mobile-action-text{font-size:13px;font-weight:500}.message-reactions{display:flex;align-items:center;gap:4px;margin-top:4px;flex-wrap:wrap}.message-reactions.sender{justify-content:flex-end}.message-reactions.receiver{justify-content:flex-start}.reaction-badge{display:flex;align-items:center;gap:4px;padding:4px 6px;border:none;border-radius:12px;background:#fff;cursor:pointer;transition:var(--transition);font-size:12px;box-shadow:var(--shadow-light);border:1px solid rgba(0,0,0,.1)}.reaction-badge:hover{transform:scale(1.05);box-shadow:var(--shadow-medium)}.reaction-badge.user-reacted{background:var(--whatsapp-sender);border-color:var(--whatsapp-green)}.reaction-emoji{font-size:14px}.reaction-count{font-size:11px;color:var(--whatsapp-timestamp);font-weight:500}.reaction-add-btn{width:24px;height:24px;padding:0;justify-content:center;background:#0000000d;color:var(--whatsapp-timestamp)}.reaction-picker{position:absolute;bottom:100%;background:#fff;border-radius:24px;padding:8px;box-shadow:var(--shadow-heavy);z-index:30;border:1px solid rgba(0,0,0,.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);animation:slideUp .2s ease-out}.reaction-picker.sender{right:0;margin-bottom:8px}.reaction-picker.receiver{left:0;margin-bottom:8px}.reaction-picker.reactions-bar.sender,.reaction-picker.reactions-bar.receiver{bottom:calc(100% + 40px)}.reaction-picker-header{display:flex;justify-content:flex-end;margin-bottom:4px}.reaction-picker-close{width:20px;height:20px;border:none;background:transparent;color:var(--whatsapp-timestamp);cursor:pointer;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:16px;transition:var(--transition)}.reaction-picker-close:hover{background:#0000000d}.reaction-options{display:flex;align-items:center;gap:4px}.reaction-option{width:32px;height:32px;border:none;border-radius:50%;background:transparent;font-size:18px;cursor:pointer;transition:var(--transition);display:flex;align-items:center;justify-content:center}.reaction-option:hover{background:#0000000d;transform:scale(1.2)}.reaction-option.active{background:var(--whatsapp-sender);transform:scale(1.1)}.reaction-more-btn{font-size:16px;font-weight:700;color:var(--whatsapp-timestamp)}.emoji-picker-container{position:absolute;bottom:100%;z-index:30;animation:slideUp .2s ease-out}.emoji-picker-container.sender{right:0;margin-bottom:8px}.emoji-picker-container.receiver{left:0;margin-bottom:8px}.emoji-picker-container.reactions-bar.sender,.emoji-picker-container.reactions-bar.receiver{bottom:calc(100% + 40px)}.emoji-picker-close{position:absolute;top:8px;right:8px;width:24px;height:24px;border:none;background:#0009;color:#fff;border-radius:50%;cursor:pointer;z-index:31;display:flex;align-items:center;justify-content:center;font-size:16px;transition:var(--transition);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.emoji-picker-close:hover{background:#000c;transform:scale(1.1)}@media(min-width:769px){.message-bubble-wrapper:hover .message-actions{display:flex}.mobile-actions-overlay{display:none}.message-bubble{cursor:default}}@media(max-width:768px){.message-bubble-container{max-width:85%}.message-actions{display:none!important}.mobile-actions-overlay{display:block}.message-bubble.mobile-actions-active{opacity:.9;transform:scale(.98)}.message-bubble.sender:after{right:-6px;border-left-width:6px;border-top-width:6px;border-bottom-width:6px}.message-bubble.receiver:before{left:-6px;border-right-width:6px;border-top-width:6px;border-bottom-width:6px}.reaction-picker{padding:6px}.reaction-option{width:28px;height:28px;font-size:16px}.emoji-picker-container{position:fixed!important;bottom:130px!important;left:50%!important;transform:translate(-50%)!important;width:auto!important;padding:0;display:flex;justify-content:center;align-items:center;z-index:var(--z-emoji-picker)!important}.emoji-picker-container .EmojiPickerReact{width:200px!important;height:300px!important;max-width:90vw!important;border-radius:14px;box-shadow:0 10px 35px #00000052;background:#fff}}@media(max-width:480px){.message-bubble-container{max-width:90%}.message-bubble{padding:6px 10px}.mobile-actions{top:-42px;padding:6px}.mobile-action-btn{padding:6px 10px;font-size:13px}.mobile-action-text{font-size:12px}.message-image,.message-video{max-height:200px}.message-voice-container,.message-file-container{min-width:150px;padding:8px}}@media(prefers-color-scheme:dark){:root{--whatsapp-sender: #056162;--whatsapp-receiver: #2a2f32;--whatsapp-background: #0d1418;--whatsapp-timestamp: #8696a0}.message-text,.message-file{color:#e9edef}.reply-reference-content{background:#ffffff1a}.reaction-badge{background:#2a2f32;color:#e9edef}.message-actions,.mobile-actions,.reaction-picker{background:#2a2f32;border-color:#ffffff1a}.message-action-btn,.mobile-action-btn{color:#8696a0}.message-action-btn:hover,.mobile-action-btn:hover{background:#ffffff1a;color:var(--whatsapp-blue)}}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.message-bubble{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}}@media(prefers-reduced-motion:reduce){:root{--transition: none}.message-bubble,.message-action-btn,.mobile-action-btn,.reaction-badge,.reaction-option,.download-btn,.emoji-picker-close{transition:none}.reaction-picker,.emoji-picker-container{animation:none}}@media(hover:none)and (pointer:coarse){.message-bubble-wrapper:hover .message-actions{display:none}.message-action-btn:hover,.mobile-action-btn:hover,.reaction-badge:hover,.reaction-option:hover,.download-btn:hover,.emoji-picker-close:hover{transform:none}.message-action-btn:active,.mobile-action-btn:active,.reaction-badge:active,.reaction-option:active,.download-btn:active{background:#0000001a;transform:scale(.95)}}@media(max-width:768px)and (orientation:landscape){.message-bubble-container{max-width:75%}.mobile-actions{top:-40px}.message-image,.message-video{max-height:150px}}.bubble-with-reply{display:flex;align-items:flex-start;gap:8px;position:relative;width:100%}.message-bubble-wrapper.sender .bubble-with-reply{flex-direction:row-reverse}.message-bubble-wrapper.receiver .bubble-with-reply{flex-direction:row}.permanent-reply-btn{width:32px;height:32px;border:none;border-radius:50%;background:#fffffff2;color:#667781;cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px #00000026;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);flex-shrink:0;opacity:.8;position:relative;z-index:5}.permanent-reply-btn:hover{background:#fff;color:var(--whatsapp-blue);transform:scale(1.1);opacity:1;box-shadow:0 4px 16px #0003}.permanent-reply-btn:active{transform:scale(.95)}@media(min-width:769px){.bubble-with-reply{gap:8px}.permanent-reply-btn{width:32px;height:32px}.message-bubble-wrapper .permanent-reply-btn{opacity:.7}.message-bubble-wrapper:hover .permanent-reply-btn{opacity:1}}@media(max-width:768px){.bubble-with-reply{gap:6px}.permanent-reply-btn{width:36px;height:36px;opacity:.9}.permanent-reply-btn:active{transform:scale(.9);background:var(--whatsapp-blue);color:#fff}}@media(max-width:480px){.bubble-with-reply{gap:4px}.permanent-reply-btn{width:40px;height:40px;opacity:.95;box-shadow:0 2px 12px #0003}.message-bubble-container{max-width:calc(85% - 44px)}.permanent-reply-btn:active{transform:scale(.85);background:var(--whatsapp-blue);color:#fff;transition:all .1s ease}}@media(max-width:360px){.bubble-with-reply{gap:3px}.permanent-reply-btn{width:36px;height:36px}.message-bubble-container{max-width:calc(88% - 39px)}}@media(max-width:768px)and (orientation:landscape){.bubble-with-reply{gap:4px}.permanent-reply-btn{width:34px;height:34px}.message-bubble-container{max-width:calc(80% - 38px)}}.message-actions{position:absolute;top:-36px;display:none;align-items:center;gap:4px;background:#fff;border-radius:20px;padding:4px;box-shadow:var(--shadow-medium);z-index:10;border:1px solid rgba(0,0,0,.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.message-bubble-wrapper.sender .message-actions{right:40px}.message-bubble-wrapper.receiver .message-actions{left:40px}@media(max-width:768px){.message-bubble-wrapper.sender .message-actions{right:46px}.message-bubble-wrapper.receiver .message-actions{left:46px}}@media(max-width:480px){.message-bubble-wrapper.sender .message-actions{right:50px}.message-bubble-wrapper.receiver .message-actions{left:50px}}.mobile-actions-overlay{position:absolute;inset:0;z-index:5;pointer-events:none}.mobile-actions{position:absolute;top:-48px;display:flex;align-items:center;gap:8px;background:#fff;border-radius:24px;padding:8px;box-shadow:var(--shadow-heavy);z-index:20;border:1px solid rgba(0,0,0,.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);pointer-events:auto}.mobile-actions.sender{right:50px}.mobile-actions.receiver{left:50px}@media(max-width:480px){.mobile-actions.sender{right:55px}.mobile-actions.receiver{left:55px}}@media(max-width:360px){.mobile-actions.sender{right:50px}.mobile-actions.receiver{left:50px}.mobile-actions{padding:6px;gap:6px}}@media(prefers-color-scheme:dark){.permanent-reply-btn{background:#2a2f32f2;color:#8696a0;box-shadow:0 2px 8px #0000004d}.permanent-reply-btn:hover{background:#2a2f32;color:var(--whatsapp-blue)}.permanent-reply-btn:active{background:var(--whatsapp-blue);color:#fff}}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.permanent-reply-btn{-webkit-tap-highlight-color:transparent}}@media(prefers-reduced-motion:reduce){.permanent-reply-btn{transition:none}.permanent-reply-btn:hover,.permanent-reply-btn:active{transform:none}}@media(hover:none)and (pointer:coarse){.permanent-reply-btn:hover{transform:none;background:#fffffff2;color:#667781}.permanent-reply-btn:active{transform:scale(.9);background:var(--whatsapp-blue);color:#fff}.message-bubble-wrapper .permanent-reply-btn{opacity:.95}}.permanent-reply-btn:focus-visible{outline:2px solid var(--whatsapp-blue);outline-offset:2px;opacity:1;transform:scale(1.05)}@media print{.permanent-reply-btn{display:none}}.bubble-with-reply{transition:all .2s ease}.message-bubble{transition:all .2s ease;flex:1;min-width:0}:root{--primary-color: #0084ff;--primary-hover: #006edb;--secondary-color: #f0f2f5;--text-primary: #050505;--text-secondary: #65676b;--border-color: #e4e6eb;--shadow-light: 0 1px 2px rgba(0, 0, 0, .04);--shadow-medium: 0 2px 8px rgba(0, 0, 0, .08);--shadow-heavy: 0 4px 16px rgba(0, 0, 0, .12);--danger-color: #fa383e;--success-color: #00a400;--warning-color: #ff9500;--bg-white: #ffffff;--bg-overlay: rgba(0, 0, 0, .4);--transition-fast: .15s ease;--transition-medium: .3s ease;--border-radius-sm: 8px;--border-radius-md: 12px;--border-radius-lg: 20px;--border-radius-full: 50%;--spacing-xs: 4px;--spacing-sm: 8px;--spacing-md: 12px;--spacing-lg: 16px;--spacing-xl: 20px;--spacing-xxl: 24px}.message-input-container{position:relative;background:var(--bg-white);border-top:1px solid var(--border-color);padding:var(--spacing-md) var(--spacing-lg);box-shadow:var(--shadow-light);z-index:10}@media(max-width:768px){.message-input-container{padding:var(--spacing-md) var(--spacing-md) calc(var(--spacing-xxl) + env(safe-area-inset-bottom))}}.message-input-form{display:flex;align-items:center;gap:var(--spacing-sm);width:100%;max-width:100%}.input-wrapper{flex:1;position:relative;min-width:0}.message-input-field{width:100%;padding:var(--spacing-md) var(--spacing-lg);border:1px solid var(--border-color);border-radius:var(--border-radius-lg);font-size:15px;line-height:1.4;background:var(--secondary-color);color:var(--text-primary);transition:all var(--transition-fast);outline:none;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif}.message-input-field:focus{background:var(--bg-white);border-color:var(--primary-color);box-shadow:0 0 0 3px #0084ff1a}.message-input-field::placeholder{color:var(--text-secondary);opacity:.8}@media(max-width:768px){.message-input-field{font-size:16px;padding:var(--spacing-md)}}.message-input-button{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;padding:var(--spacing-sm);border:none;border-radius:var(--border-radius-full);background:transparent;color:var(--text-secondary);cursor:pointer;transition:all var(--transition-fast);flex-shrink:0;-webkit-tap-highlight-color:transparent}.message-input-button:hover{background:var(--secondary-color);color:var(--primary-color)}.message-input-button:active{transform:scale(.95)}@media(max-width:768px){.message-input-button{min-width:44px;min-height:44px}}.send-button{background:var(--primary-color);color:var(--bg-white)}.send-button:hover:not(:disabled){background:var(--primary-hover);transform:scale(1.05)}.send-button:disabled{background:var(--border-color);color:var(--text-secondary);cursor:not-allowed;opacity:.6}.voice-button{color:var(--danger-color)}.voice-button:hover{background:#fa383e1a;color:var(--danger-color)}.emoji-picker-wrapper{position:absolute;bottom:calc(100% + var(--spacing-sm));left:var(--spacing-md);z-index:1000;border-radius:var(--border-radius-md);box-shadow:var(--shadow-heavy);animation:slideUp .2s ease}@keyframes slideUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@media(max-width:768px){.emoji-picker-wrapper{left:50%;transform:translate(-50%);bottom:calc(100% + var(--spacing-md))}.emoji-picker-wrapper aside{max-width:90vw!important;width:320px!important}}.attachment-menu{position:absolute;bottom:calc(100% + var(--spacing-sm));left:var(--spacing-md);background:var(--bg-white);border-radius:var(--border-radius-md);box-shadow:var(--shadow-heavy);padding:var(--spacing-sm);min-width:180px;z-index:1000;animation:slideUp .2s ease}.attachment-menu-item{display:flex;align-items:center;gap:var(--spacing-md);width:100%;padding:var(--spacing-md);border:none;border-radius:var(--border-radius-sm);background:transparent;color:var(--text-primary);font-size:15px;cursor:pointer;transition:all var(--transition-fast);text-align:left;-webkit-tap-highlight-color:transparent}.attachment-menu-item:hover{background:var(--secondary-color);color:var(--primary-color)}.attachment-menu-item:active{transform:scale(.98)}.attachment-menu-item svg{flex-shrink:0;color:var(--primary-color)}@media(max-width:768px){.attachment-menu{left:50%;transform:translate(-50%);min-width:200px;bottom:calc(100% + var(--spacing-md))}.attachment-menu-item{padding:var(--spacing-lg);font-size:16px;min-height:48px}}.camera-modal-overlay{position:fixed;inset:0;background:var(--bg-overlay);display:flex;align-items:center;justify-content:center;z-index:9999;padding:var(--spacing-lg);animation:fadeIn .3s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.camera-modal-content{background:var(--bg-white);border-radius:var(--border-radius-lg);width:100%;max-width:500px;max-height:90vh;overflow:hidden;box-shadow:0 20px 60px #0000004d;position:relative;display:flex;flex-direction:column;animation:scaleIn .3s ease}@keyframes scaleIn{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}.camera-modal-close{position:absolute;top:var(--spacing-md);right:var(--spacing-md);width:36px;height:36px;border:none;border-radius:var(--border-radius-full);background:#0009;color:#fff;font-size:24px;cursor:pointer;z-index:10;display:flex;align-items:center;justify-content:center;transition:all var(--transition-fast);-webkit-tap-highlight-color:transparent}.camera-modal-close:hover{background:#000c;transform:rotate(90deg)}.camera-feed,.camera-preview{width:100%;height:auto;max-height:60vh;object-fit:cover;background:#000}.camera-actions{display:flex;gap:var(--spacing-md);padding:var(--spacing-xl);background:var(--secondary-color);justify-content:center}.camera-button{padding:var(--spacing-md) var(--spacing-xxl);border:none;border-radius:var(--border-radius-lg);font-size:15px;font-weight:600;cursor:pointer;transition:all var(--transition-fast);-webkit-tap-highlight-color:transparent;min-height:44px}.camera-button:not(.primary){background:var(--bg-white);color:var(--text-primary);border:1px solid var(--border-color)}.camera-button:not(.primary):hover{background:var(--secondary-color)}.camera-button.primary{background:var(--primary-color);color:var(--bg-white)}.camera-button.primary:hover{background:var(--primary-hover)}.camera-button.capture-button{width:70px;height:70px;border-radius:var(--border-radius-full);padding:0;background:var(--danger-color);color:#fff;border:4px solid white;box-shadow:var(--shadow-medium)}.camera-button.capture-button:hover{transform:scale(1.05)}.camera-button.capture-button:active{transform:scale(.95)}@media(max-width:768px){.camera-modal-overlay{padding:0}.camera-modal-content{max-width:100%;max-height:100vh;border-radius:0}.camera-feed,.camera-preview{max-height:calc(100vh - 120px)}.camera-actions{padding:var(--spacing-lg);padding-bottom:calc(var(--spacing-lg) + env(safe-area-inset-bottom))}}.voice-recorder-container{position:relative;background:var(--bg-white);border-top:1px solid var(--border-color);padding:var(--spacing-xl) var(--spacing-lg);box-shadow:var(--shadow-medium);animation:slideUp .3s ease}@media(max-width:768px){.voice-recorder-container{padding:var(--spacing-lg) var(--spacing-md) calc(var(--spacing-xxl) + env(safe-area-inset-bottom))}}.voice-recorder{display:flex;flex-direction:column;gap:var(--spacing-lg);max-width:600px;margin:0 auto}.recording-indicator{display:flex;align-items:center;justify-content:center;gap:var(--spacing-md);padding:var(--spacing-lg);background:var(--secondary-color);border-radius:var(--border-radius-md)}.recording-dot{width:12px;height:12px;border-radius:var(--border-radius-full);background:var(--text-secondary);transition:all var(--transition-medium)}.recording-dot.active{background:var(--danger-color);animation:pulse 1.5s ease-in-out infinite;box-shadow:0 0 #fa383e66}@keyframes pulse{0%,to{transform:scale(1);box-shadow:0 0 #fa383e66}50%{transform:scale(1.1);box-shadow:0 0 0 8px #fa383e00}}.recording-time{font-size:18px;font-weight:600;color:var(--text-primary);font-variant-numeric:tabular-nums;min-width:60px;text-align:center}.audio-preview{display:flex;flex-direction:column;gap:var(--spacing-sm);padding:var(--spacing-lg);background:var(--secondary-color);border-radius:var(--border-radius-md)}.preview-audio{width:100%;height:40px;border-radius:var(--border-radius-sm)}.audio-duration{text-align:center;font-size:14px;color:var(--text-secondary);font-weight:500}.recorder-buttons{display:flex;flex-wrap:wrap;gap:var(--spacing-md);justify-content:center}.recorder-button{display:inline-flex;align-items:center;justify-content:center;gap:var(--spacing-sm);padding:var(--spacing-md) var(--spacing-xl);border:none;border-radius:var(--border-radius-lg);font-size:15px;font-weight:600;cursor:pointer;transition:all var(--transition-fast);min-height:48px;flex:1;min-width:140px;-webkit-tap-highlight-color:transparent}.recorder-button.start{background:var(--danger-color);color:#fff}.recorder-button.start:hover{background:#e02f35;transform:translateY(-2px);box-shadow:var(--shadow-medium)}.recorder-button.stop{background:var(--text-secondary);color:#fff}.recorder-button.stop:hover{background:#4a4d52}.recorder-button.send{background:var(--primary-color);color:#fff}.recorder-button.send:hover{background:var(--primary-hover);transform:translateY(-2px);box-shadow:var(--shadow-medium)}.recorder-button.record-again{background:var(--warning-color);color:#fff}.recorder-button.record-again:hover{background:#e68600}.recorder-button.cancel{background:var(--bg-white);color:var(--text-primary);border:1px solid var(--border-color)}.recorder-button.cancel:hover{background:var(--secondary-color);border-color:var(--text-secondary)}.recorder-button:active{transform:scale(.98)}@media(max-width:768px){.recorder-buttons{gap:var(--spacing-sm)}.recorder-button{flex:1 1 calc(50% - var(--spacing-xs));min-width:0;font-size:14px;padding:var(--spacing-md) var(--spacing-lg)}}@media(max-width:375px){.message-input-form{gap:var(--spacing-xs)}.message-input-field{font-size:15px;padding:var(--spacing-sm) var(--spacing-md)}.message-input-button{min-width:40px;min-height:40px}}@media(min-width:769px){.message-input-container{padding:var(--spacing-lg) var(--spacing-xxl)}.message-input-form{gap:var(--spacing-md)}}@media(min-width:1200px){.message-input-container{padding:var(--spacing-xl) var(--spacing-xxl)}.input-wrapper{max-width:800px}}@media(prefers-color-scheme:dark){:root{--primary-color: #0a84ff;--primary-hover: #409cff;--secondary-color: #2c2c2e;--text-primary: #ffffff;--text-secondary: #98989d;--border-color: #38383a;--bg-white: #1c1c1e;--bg-overlay: rgba(0, 0, 0, .7)}.message-input-field{background:var(--secondary-color)}.camera-feed,.camera-preview{background:#000}}.message-input-button:focus-visible,.attachment-menu-item:focus-visible,.camera-button:focus-visible,.recorder-button:focus-visible{outline:3px solid var(--primary-color);outline-offset:2px}@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}@media(prefers-contrast:high){.message-input-button,.attachment-menu-item,.camera-button,.recorder-button{border:2px solid currentColor}}.message-input-container,.message-input-form,.input-wrapper,.message-input-field{background:#fff!important}.message-input-field{color:#050505!important}.message-input-field::placeholder{color:#65676b!important}@media(max-width:768px){.message-input-container,.message-input-form,.input-wrapper,.message-input-field{background:#e8ffe8!important}}@media(max-width:480px){.message-input-container{padding-bottom:30px;bottom:0;position:fixed;left:0;width:100%}}.message-input-button,.send-button,.voice-button{background:#80ff80!important;color:#050505}.typing-indicator-float{position:absolute;bottom:110px;left:50%;transform:translate(-50%);z-index:50;animation:fadeSlideUp .3s ease-out;pointer-events:none;width:auto;max-width:90%}@keyframes fadeSlideUp{0%{opacity:0;transform:translate(-50%) translateY(10px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.typing-indicator-popup{display:flex;align-items:center;gap:8px;background:linear-gradient(135deg,#1a1a2ef2,#16213ef2);padding:6px 14px;border-radius:20px;box-shadow:0 3px 15px #00000040,0 0 0 1px #ffffff1a;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.15);min-width:140px;transition:all .2s ease}.typing-avatar-container{width:26px;height:26px;border-radius:50%;background:radial-gradient(circle,#6a11cb,#2575fc);display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 0 8px #667eea80;border:1px solid rgba(255,255,255,.2)}.human-emote{font-size:14px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.3))}.typing-content{display:flex;flex-direction:row;align-items:center;gap:6px;flex:1;min-width:0}.typing-text{color:#fff;font-size:12px;font-weight:500;white-space:nowrap;text-shadow:0 1px 2px rgba(0,0,0,.3)}.typing-name{font-weight:600;background:linear-gradient(90deg,#00f2fe,#4facfe);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.typing-dots{display:flex;gap:3px;align-items:center;height:10px;margin-left:2px}.dot{width:4px;height:4px;border-radius:50%;background:linear-gradient(135deg,#00f2fe,#4facfe);animation:bounceDot 1.4s infinite ease-in-out both}.dot:nth-child(1){animation-delay:-.32s}.dot:nth-child(2){animation-delay:-.16s}.dot:nth-child(3){animation-delay:0s}@keyframes bounceDot{0%,80%,to{transform:scale(.7);opacity:.6}40%{transform:scale(1);opacity:1}}@media(max-width:359px){.typing-indicator-popup{padding:5px 12px;gap:6px;min-width:130px;border-radius:18px}.typing-avatar-container{width:24px;height:24px}.human-emote{font-size:13px}.typing-text{font-size:11px}.typing-dots{gap:2px;height:9px}.dot{width:3px;height:3px}}@media(min-width:360px)and (max-width:480px){.typing-indicator-popup{padding:6px 14px;gap:8px;min-width:140px;border-radius:20px}.typing-avatar-container{width:26px;height:26px}.human-emote{font-size:14px}.typing-text{font-size:12px}.typing-dots{gap:3px;height:10px}.dot{width:4px;height:4px}}@media(min-width:481px)and (max-width:768px){.typing-indicator-popup{padding:7px 16px;gap:9px;min-width:150px;border-radius:22px}.typing-avatar-container{width:28px;height:28px}.human-emote{font-size:15px}.typing-text{font-size:13px}.typing-dots{gap:3px;height:11px}.dot{width:4.5px;height:4.5px}}@media(min-width:769px){.typing-indicator-popup{padding:8px 18px;gap:10px;min-width:160px;border-radius:24px}.typing-avatar-container{width:30px;height:30px}.human-emote{font-size:16px}.typing-text{font-size:14px}.typing-dots{gap:4px;height:12px}.dot{width:5px;height:5px}}@media(max-height:500px)and (orientation:landscape){.typing-indicator-float{bottom:90px}.typing-indicator-popup{padding:4px 12px;transform:scale(.85);transform-origin:center bottom}}@media(prefers-reduced-motion:reduce){.typing-indicator-float{animation:none}.dot{animation:none;opacity:.7}}@media(hover:none)and (pointer:coarse){.typing-indicator-popup{padding:6px 14px}}.chat-window-container{background-image:url(/frontend/public/Gemini_Generated_Image_ia02emia02emia02.png);background-repeat:repeat;background-size:auto;background-color:var(--chat-background-color, #e5ddd5);flex:1;display:flex;flex-direction:column;background-color:var(--card-background-color);position:relative}.chat-placeholder{flex:1;display:flex;align-items:center;justify-content:center;background-color:var(--sidebar-background-color);color:var(--text-color-secondary)}.placeholder-content{text-align:center;max-width:300px;padding:2rem}.placeholder-icon{color:var(--divider-color);margin-bottom:1rem}.placeholder-content h2{font-size:1.2rem;font-weight:600;margin-bottom:.5rem;color:var(--text-color-primary)}.placeholder-content p{font-size:.9rem;color:var(--text-color-secondary);line-height:1.5}.chat-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;border-bottom:1px solid var(--border-color);background-color:var(--card-background-color);flex-shrink:0}.user-info{display:flex;align-items:center;gap:1rem}.header-avatar{width:45px;height:45px;border-radius:50%;object-fit:cover}.user-details h3,.header-name{font-size:1.1rem;font-weight:600;margin:0 0 .25rem;color:var(--text-color-primary)}.header-status{display:flex;align-items:center;gap:6px;font-size:.85rem;color:var(--text-color-secondary);margin:0}.status-indicator{width:8px;height:8px;border-radius:50%}.status-indicator.online{background-color:var(--online-indicator-color, #4CAF50);animation:pulse 2s infinite}.status-indicator.offline{background-color:var(--text-color-tertiary)}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.header-actions{display:flex;gap:.5rem}.header-btn{background:transparent;border:none;padding:8px;border-radius:50%;cursor:pointer;color:var(--text-color-secondary);display:flex;align-items:center;justify-content:center;transition:background-color var(--transition-speed, .2s)}.header-btn:hover,.header-btn.active{background-color:var(--hover-background-color);color:var(--text-color-primary)}.menu-container{position:relative}.dropdown-menu{position:absolute;top:100%;right:0;background:var(--card-background-color, white);border:1px solid var(--border-color, #e1e5e9);border-radius:var(--border-radius, 8px);box-shadow:0 4px 12px #0000001a;z-index:1000;min-width:150px;padding:4px 0;margin-top:4px;animation:fadeIn .2s ease-out}@keyframes fadeIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.dropdown-item{width:100%;padding:8px 16px;border:none;background:none;text-align:left;cursor:pointer;display:flex;align-items:center;gap:8px;font-size:14px;color:var(--text-color-primary);transition:background-color var(--transition-speed, .2s)}.dropdown-item:hover{background-color:var(--hover-background-color, #f8f9fa)}.dropdown-item.danger{color:var(--danger-color, #dc3545)}.dropdown-item.danger:hover{background-color:#dc35451a}.search-container-chat{padding:.75rem 1.5rem;border-bottom:1px solid var(--border-color);background-color:var(--card-background-color);animation:fadeIn .3s ease-out}.search-input-wrapper{position:relative;display:flex;align-items:center}.search-icon{position:absolute;left:12px;color:var(--text-color-secondary);z-index:1}.search-input-chat{width:100%;padding:.5rem .75rem .5rem 2.5rem;border-radius:var(--border-radius-sm, 6px);border:1px solid var(--border-color);background-color:var(--card-background-color);color:var(--text-color-primary);font-size:.9rem;transition:border-color var(--transition-speed, .2s)}.search-input-chat:focus{outline:none;border-color:var(--primary-color)}.clear-search{position:absolute;right:12px;background:var(--text-color-tertiary);border:none;border-radius:50%;width:18px;height:18px;cursor:pointer;font-size:14px;line-height:18px;text-align:center;color:#fff;display:flex;align-items:center;justify-content:center;transition:all var(--transition-speed, .2s)}.clear-search:hover{background:var(--text-color-secondary);transform:rotate(90deg)}.messages-area{flex:1;padding:1rem 1.5rem;overflow-y:auto;background-color:var(--sidebar-background-color);position:relative}.messages-area::-webkit-scrollbar{width:6px}.messages-area::-webkit-scrollbar-track{background:var(--hover-background-color)}.messages-area::-webkit-scrollbar-thumb{background:var(--text-color-tertiary);border-radius:3px}.messages-area::-webkit-scrollbar-thumb:hover{background:var(--text-color-secondary)}.messages-list{display:flex;flex-direction:column;gap:.75rem;max-width:800px;margin:0 auto;padding-bottom:80px}.loading-messages{display:flex;justify-content:center;align-items:center;padding:40px;color:var(--text-color-secondary, #64748b)}.no-messages{display:flex;align-items:center;justify-content:center;height:60vh;color:var(--text-color-secondary);text-align:center;padding:40px}.no-search-results{text-align:center;color:var(--text-color-secondary, #64748b)}.no-search-results svg{margin-bottom:16px;color:var(--divider-color, #cbd5e1)}.no-search-results p{font-size:.9rem;color:var(--text-color-primary)}.chat-start{text-align:center;color:var(--text-color-secondary, #64748b)}.start-avatar{width:80px;height:80px;border-radius:50%;margin:0 auto 20px;border:3px solid var(--border-color);overflow:hidden}.start-avatar img{width:100%;height:100%;object-fit:cover}.chat-start h3{margin:0 0 8px;font-size:1.2rem;color:var(--text-color-primary, #334155)}.chat-start p{margin:0;font-size:14px;color:var(--text-color-secondary);line-height:1.5}@media(max-width:768px){.chat-header{padding:12px 16px}.search-container-chat{padding:10px 16px}.messages-area{padding:16px}.header-avatar{width:40px;height:40px}.user-details h3,.header-name{font-size:1rem}.dropdown-menu{right:-.5rem}.messages-list{padding-bottom:60px}}@media(max-width:480px){.chat-header{padding:.5rem}.header-btn{padding:6px}.messages-area{padding:.5rem}.user-info{gap:.75rem}.header-avatar{width:36px;height:36px}.start-avatar{width:70px;height:70px}}.header-btn:focus,.dropdown-item:focus,.search-input-chat:focus,.clear-search:focus{outline:2px solid var(--primary-color);outline-offset:2px}@media(prefers-reduced-motion:reduce){.header-btn,.dropdown-item,.clear-search{transition:none;animation:none}}.chat-window-container:has(.typing-indicator-float) .message-input-container{margin-bottom:0}.header-btn.incognito-active{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;animation:pulse 2s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.7}}.incognito-status{font-size:11px;color:#8b5cf6;margin:2px 0 0;padding:2px 8px;background:#f3e8ff;border-radius:10px;display:inline-block}.notification-badge{position:absolute;top:-5px;right:-5px;background:#ef4444;color:#fff;border-radius:50%;width:18px;height:18px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:600;border:2px solid white}.sidebar-icon-btn{position:relative;background:transparent;border:none;padding:8px;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s;color:#374151}.sidebar-icon-btn:hover{background:#f3f4f6}.has-unread{background:#eff6ff;border-left:3px solid #3b82f6}.unread-indicator{width:8px;height:8px;background:#3b82f6;border-radius:50%;flex-shrink:0}.friend-item{position:relative;overflow:hidden}.friend-item:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#3b82f6;transform:scaleY(0);transition:transform .2s}.friend-item.active:before{transform:scaleY(1)}.friend-status-container{display:flex;align-items:center;justify-content:space-between;gap:8px}.last-message{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dropdown-divider{height:1px;background:#e0e0e0;margin:4px 0}.dropdown-item.warning{color:#ff9800}.dropdown-item.warning:hover{background:#fff3e0}.incognito-status{font-size:12px;color:#9c27b0;margin-top:4px}.incognito-toggle-container{position:relative;display:flex;align-items:center;gap:8px;margin:0 8px}.incognito-controls{display:flex;align-items:center;gap:6px}.incognito-label{font-size:13px;font-weight:500;color:#555;-webkit-user-select:none;user-select:none}.incognito-duration-btn{display:flex;align-items:center;gap:4px;padding:4px 8px;font-size:12px;font-weight:600;color:#7c3aed;background:#f3f0ff;border:1px solid #e9d5ff;border-radius:6px;cursor:pointer;transition:all .2s;-webkit-user-select:none;user-select:none}.incognito-duration-btn:hover{background:#ede9fe;border-color:#d8b4fe}.incognito-duration-btn:active{transform:scale(.95)}.incognito-toggle{position:relative;display:inline-block;width:44px;height:24px}.incognito-toggle input{opacity:0;width:0;height:0}.incognito-slider{position:absolute;cursor:pointer;inset:0;background-color:#ccc;transition:.3s;border-radius:24px}.incognito-slider:before{position:absolute;content:"";height:18px;width:18px;left:3px;bottom:3px;background-color:#fff;transition:.3s;border-radius:50%;box-shadow:0 2px 4px #0003}.incognito-toggle input:checked+.incognito-slider{background-color:#7c3aed}.incognito-toggle input:focus+.incognito-slider{box-shadow:0 0 1px #7c3aed}.incognito-toggle input:checked+.incognito-slider:before{transform:translate(20px)}.incognito-toggle:hover .incognito-slider{opacity:.9}.incognito-duration-menu{position:absolute;top:calc(100% + 8px);right:0;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 4px 12px #00000026;min-width:180px;padding:8px;z-index:1000;animation:slideDown .2s ease-out}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.duration-option{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border:none;background:transparent;border-radius:6px;cursor:pointer;transition:all .2s;text-align:left;font-size:14px;color:#374151}.duration-option:hover{background:#f3f4f6}.duration-option.active{background:#ede9fe;color:#7c3aed}.duration-option.active .duration-text{font-weight:600}.duration-icon{font-size:18px;width:24px;text-align:center}.duration-text{flex:1;font-size:14px}.check-icon{font-size:16px;color:#7c3aed;font-weight:700}.incognito-status{font-size:12px;color:#7c3aed;font-weight:500;margin-top:2px;display:flex;align-items:center;gap:4px}[data-theme=dark] .incognito-label{color:#aaa}[data-theme=dark] .incognito-duration-btn{color:#a78bfa;background:#2d1b4e;border-color:#553c9a}[data-theme=dark] .incognito-duration-btn:hover{background:#3d2563;border-color:#6d4db3}[data-theme=dark] .incognito-slider{background-color:#444}[data-theme=dark] .incognito-toggle input:checked+.incognito-slider{background-color:#9333ea}[data-theme=dark] .incognito-duration-menu{background:#1f2937;border-color:#374151;box-shadow:0 4px 12px #0000004d}[data-theme=dark] .duration-option{color:#d1d5db}[data-theme=dark] .duration-option:hover{background:#374151}[data-theme=dark] .duration-option.active{background:#3d2563;color:#a78bfa}[data-theme=dark] .check-icon,[data-theme=dark] .incognito-status{color:#a78bfa}@media(max-width:768px){.incognito-toggle-container,.incognito-controls{gap:4px}.incognito-label{display:none}.incognito-duration-btn{padding:3px 6px;font-size:11px}.incognito-toggle{width:40px;height:22px}.incognito-slider:before{height:16px;width:16px}.incognito-toggle input:checked+.incognito-slider:before{transform:translate(18px)}.incognito-duration-menu{min-width:150px;right:-10px}.duration-option{padding:8px 10px;font-size:13px}}.incognito-toggle input:checked+.incognito-slider{animation:pulse .5s ease-in-out}@keyframes pulse{0%,to{box-shadow:0 0 #7c3aed66}50%{box-shadow:0 0 0 8px #7c3aed00}}@media(max-width:1024px){.chat-window-container{width:calc(100% - 300px)}.chat-header{padding:1rem 1.25rem}.header-avatar{width:42px;height:42px}.header-name{font-size:1.05rem}.incognito-toggle-container{gap:6px}.incognito-label{font-size:.8rem}}@media(max-width:768px){.chat-window-container{position:fixed;inset:82px 0 0;width:100%;border-left:none}.chat-header{padding:.75rem 1rem;position:sticky;top:0;z-index:10;box-shadow:0 2px 4px #0000000d}.header-avatar{width:40px;height:40px}.header-name{font-size:1rem}.header-status{font-size:.8rem}.incognito-status{font-size:.7rem}.header-actions{gap:.25rem}.header-btn{padding:6px}.header-btn svg{width:18px;height:18px}.incognito-toggle-container{gap:4px;flex-direction:column;align-items:flex-end}.incognito-label{font-size:.7rem}.incognito-duration-btn{font-size:.7rem;padding:2px 4px}.incognito-duration-menu{right:0;top:100%;width:140px}.duration-option{padding:8px 10px;font-size:.85rem}.search-container-chat{padding:.5rem 1rem}.search-input-chat{font-size:.85rem;padding:8px 12px 8px 36px}.messages-area{height:calc(100vh - 240px);padding:.75rem}.message-bubble{max-width:85%;padding:5px 8px}.message-text{font-size:.9rem}.message-time{font-size:.7rem}.dropdown-menu{right:0;min-width:180px}.dropdown-item{padding:10px 14px;font-size:.9rem}.chat-placeholder{padding:1rem}.placeholder-icon{width:48px;height:48px}.placeholder-content h2{font-size:1.25rem}.placeholder-content p{font-size:.9rem}}@media(max-width:480px){.chat-window-container{top:52px}.chat-header{padding:.5rem .75rem}.header-avatar{width:36px;height:36px}.user-details{gap:2px}.header-name{font-size:.9rem}.header-status{font-size:.75rem}.incognito-status{font-size:.65rem}.header-actions{gap:.15rem}.header-btn{padding:5px}.header-btn svg{width:16px;height:16px}.incognito-toggle{width:32px;height:18px}.incognito-slider:before{width:14px;height:14px}.incognito-label{font-size:.65rem}.incognito-duration-btn{font-size:.65rem;padding:1px 3px}.search-container-chat{padding:.5rem .75rem}.messages-area{height:calc(100vh - 220px);padding:.5rem}.message-bubble{max-width:70%;padding:5px 8px}.message-text{font-size:.85rem}.message-time{font-size:.65rem}.message-status-icon{width:14px;height:14px}.dropdown-menu{min-width:160px}.dropdown-item{padding:8px 12px;font-size:.85rem}.chat-placeholder{padding:.75rem}.placeholder-icon{width:40px;height:40px}.placeholder-content h2{font-size:1.1rem}.placeholder-content p{font-size:.85rem}}:root{--rb-accent-strong-1: #2BD67B;--rb-accent-strong-2: #0AA3FF;--rb-text-strong: #ffffff;--rb-text-muted-strong: #dfe7f5;--rb-bg-strong: rgba(26, 33, 44, .85);--rb-border-strong: rgba(255, 255, 255, .25);--rb-shadow-strong: 0 12px 30px rgba(0,0,0,.45)}.reply-bar{position:relative;margin:8px 0 10px;padding:0 8px;animation:rb-slide-in .23s ease-out}.reply-bar-content{display:grid;grid-template-columns:1fr auto;align-items:center;padding:10px 14px 10px 16px;background:var(--rb-bg-strong);border-radius:14px;border:1px solid var(--rb-border-strong);box-shadow:var(--rb-shadow-strong);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);position:relative;overflow:hidden}.reply-bar-content:after{content:"";position:absolute;left:0;top:6px;bottom:6px;width:5px;border-radius:3px;background:linear-gradient(180deg,var(--rb-accent-strong-1),var(--rb-accent-strong-2))}.reply-bar-info{min-width:0;display:grid;gap:4px}.reply-bar-label{font-size:.9rem;font-weight:700;color:var(--rb-accent-strong-1);text-shadow:0 0 4px rgba(0,0,0,.45);padding-left:8px}.reply-bar-message{font-size:.88rem;color:var(--rb-text-muted-strong);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:8px}.reply-bar-cancel{width:36px;height:36px;display:flex;justify-content:center;align-items:center;color:var(--rb-text-strong);background:#ffffff1f;border-radius:50%;border:1px solid rgba(255,255,255,.25);cursor:pointer;transition:.18s}.reply-bar-cancel:hover{background:#fff3;transform:scale(1.07)}.reply-bar-cancel:active{transform:scale(.94)}@media(max-width:480px){.reply-bar-content{padding:9px 12px 9px 14px}.reply-bar-message{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}.reply-bar-cancel{width:34px;height:34px}}@keyframes rb-slide-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.header-name-container{display:flex;align-items:center;gap:8px}.activity-emote{font-size:18px;display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;animation:emoteEntry .3s ease-out;cursor:help;transition:transform .2s ease}.activity-emote:hover{transform:scale(1.2)}@keyframes emoteEntry{0%{opacity:0;transform:scale(.5) rotate(-10deg)}to{opacity:1;transform:scale(1) rotate(0)}}@keyframes activePulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.15);opacity:.8}}@keyframes typingBounce{0%,to{transform:translateY(0)}50%{transform:translateY(-3px)}}.header-status{display:flex;align-items:center;gap:6px;font-size:13px;color:#65676b;margin-top:2px}.user-details{display:flex;flex-direction:column;gap:2px}.header-name{margin:0;font-size:16px;font-weight:600;color:#050505}.status-indicator{width:8px;height:8px;border-radius:50%;flex-shrink:0}.status-indicator.online{background-color:#44b700;box-shadow:0 0 0 2px #44b70033;animation:onlinePulse 2s ease-in-out infinite}.status-indicator.offline{background-color:#8e8e93}@keyframes onlinePulse{0%,to{box-shadow:0 0 0 2px #44b70033}50%{box-shadow:0 0 0 4px #44b7001a}}.incognito-status{font-size:12px;color:#8e44ad;margin-top:2px;font-weight:500}.typing-toast-container{position:fixed;top:20px;right:20px;z-index:10000;display:flex;flex-direction:column;gap:12px;pointer-events:none}.typing-toast{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:12px 20px;border-radius:12px;box-shadow:0 8px 24px #667eea66;animation:slideInRight .3s ease-out;pointer-events:auto;min-width:250px;max-width:350px}.typing-toast-icon{font-size:20px;animation:pulse 1.5s ease-in-out infinite}.typing-toast-text{font-size:14px;line-height:1.4}.message-toast-container{position:fixed;top:80px;right:20px;z-index:10000;display:flex;flex-direction:column;gap:12px;pointer-events:none}.message-toast{background:#fff;color:#333;padding:12px 16px;border-radius:12px;box-shadow:0 8px 24px #00000026;animation:slideInRight .3s ease-out;pointer-events:auto;min-width:300px;max-width:400px;cursor:pointer;transition:all .2s ease;border-left:4px solid #667eea}.message-toast:hover{transform:translate(-4px);box-shadow:0 12px 32px #0003}.message-toast-content{display:flex;align-items:center;gap:12px;position:relative}.message-toast-avatar{width:44px;height:44px;border-radius:50%;object-fit:cover;flex-shrink:0;border:2px solid #667eea}.message-toast-text{flex:1;display:flex;flex-direction:column;gap:4px;overflow:hidden}.message-toast-sender{font-weight:600;font-size:14px;color:#1a1a1a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-toast-preview{font-size:13px;color:#666;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.message-toast-close{background:none;border:none;color:#999;cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .2s ease;flex-shrink:0}.message-toast-close:hover{background:#f0f0f0;color:#333}[data-theme=dark] .message-toast,[data-theme=midnight] .message-toast,[data-theme=ocean] .message-toast{background:#2a2a2a;color:#e0e0e0;border-left-color:#667eea}[data-theme=dark] .message-toast-sender,[data-theme=midnight] .message-toast-sender,[data-theme=ocean] .message-toast-sender{color:#fff}[data-theme=dark] .message-toast-preview,[data-theme=midnight] .message-toast-preview,[data-theme=ocean] .message-toast-preview{color:#b0b0b0}[data-theme=dark] .message-toast-close:hover,[data-theme=midnight] .message-toast-close:hover,[data-theme=ocean] .message-toast-close:hover{background:#3a3a3a;color:#fff}[data-theme=forest] .typing-toast{background:linear-gradient(135deg,#2d5016,#1a3a0f)}[data-theme=forest] .message-toast{background:#1a3a0f;color:#e8f5e9;border-left-color:#4caf50}[data-theme=forest] .message-toast-sender{color:#a5d6a7}[data-theme=forest] .message-toast-preview{color:#c8e6c9}[data-theme=sunset] .typing-toast{background:linear-gradient(135deg,#ff6b6b,#ee5a24)}[data-theme=sunset] .message-toast{background:#4a2c2a;color:#ffe5e5;border-left-color:#ff6b6b}[data-theme=sunset] .message-toast-sender{color:#ffb3b3}[data-theme=sunset] .message-toast-preview{color:#ffd9d9}@keyframes slideInRight{0%{transform:translate(400px);opacity:0}to{transform:translate(0);opacity:1}}@keyframes pulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.8}}@media(max-width:768px){.typing-toast-container,.message-toast-container{top:10px;right:10px;left:10px;max-width:calc(100% - 20px)}.typing-toast,.message-toast{min-width:auto;width:100%;max-width:100%}.message-toast-avatar{width:40px;height:40px}.message-toast-sender{font-size:13px}.message-toast-preview{font-size:12px}}@media(prefers-reduced-motion:reduce){.typing-toast,.message-toast,.typing-toast-icon{animation:none}.message-toast:hover{transform:none}}.typing-toast-container{position:fixed;top:20px;right:20px;z-index:9999;display:flex;flex-direction:column;gap:12px;pointer-events:none;max-height:calc(100vh - 40px);overflow:visible}.message-toast-container{position:fixed;top:20px;right:20px;z-index:9998;display:flex;flex-direction:column;gap:14px;pointer-events:none;max-height:calc(100vh - 40px);overflow:visible}.typing-toast{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:14px 22px;border-radius:16px;box-shadow:0 10px 30px #667eea59,0 4px 12px #667eea40;pointer-events:auto;cursor:default;min-width:220px;max-width:360px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);position:relative;overflow:hidden;animation:slideInFromTop .5s cubic-bezier(.68,-.55,.265,1.55),slideOutToTop .4s cubic-bezier(.6,-.28,.735,.045) 4.6s forwards}.typing-toast:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);animation:shimmer 2s infinite}.typing-toast-content{display:flex;align-items:center;gap:14px;position:relative;z-index:1}.typing-toast-icon{font-size:22px;animation:bounce 1.2s ease-in-out infinite;filter:drop-shadow(0 2px 4px rgba(0,0,0,.2))}.typing-toast-text{flex:1;font-size:14px;font-weight:500;line-height:1.5}.typing-toast-text strong{font-weight:700;display:block;margin-bottom:3px;font-size:15px;text-shadow:0 1px 2px rgba(0,0,0,.1)}.message-toast{background:#fff;color:#1f2937;padding:16px 18px;border-radius:16px;box-shadow:0 12px 32px #0000001f,0 4px 12px #00000014;pointer-events:auto;cursor:pointer;min-width:300px;max-width:400px;transition:all .3s cubic-bezier(.4,0,.2,1);border-left:5px solid #4f46e5;position:relative;overflow:hidden;animation:slideInFromTop .5s cubic-bezier(.68,-.55,.265,1.55),slideOutToTop .4s cubic-bezier(.6,-.28,.735,.045) 4.6s forwards}.message-toast:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,transparent 0%,rgba(79,70,229,.05) 100%);opacity:0;transition:opacity .3s ease;pointer-events:none}.message-toast:hover:before{opacity:1}.message-toast:hover{transform:translateY(-3px) scale(1.01);box-shadow:0 16px 40px #00000029,0 6px 16px #0000001a}.message-toast:active{transform:translateY(-1px) scale(.99)}.message-toast-content{display:flex;align-items:flex-start;gap:14px;position:relative;z-index:1}.message-toast-avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;border:3px solid #f3f4f6;flex-shrink:0;box-shadow:0 2px 8px #0000001a;transition:transform .3s ease}.message-toast:hover .message-toast-avatar{transform:scale(1.05);border-color:#e5e7eb}.message-toast-text{flex:1;display:flex;flex-direction:column;gap:5px;min-width:0}.message-toast-sender{font-size:15px;font-weight:700;color:#111827;display:block;letter-spacing:-.01em}.message-toast-preview{font-size:13px;color:#6b7280;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5;font-weight:400}.message-toast-close{position:absolute;top:-6px;right:-6px;background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;border:2px solid white;border-radius:50%;width:26px;height:26px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .25s cubic-bezier(.4,0,.2,1);opacity:0;transform:scale(.7);box-shadow:0 4px 12px #ef444466;z-index:10}.message-toast-close:hover{background:linear-gradient(135deg,#dc2626,#b91c1c);transform:scale(1.15) rotate(90deg);box-shadow:0 6px 16px #ef444480}.message-toast-close:active{transform:scale(.95) rotate(90deg)}@keyframes slideInFromTop{0%{opacity:0;transform:translateY(-120px) scale(.8);filter:blur(5px)}60%{transform:translateY(10px) scale(1.02)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}@keyframes slideOutToTop{0%{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}to{opacity:0;transform:translateY(-80px) scale(.85);filter:blur(3px)}}@keyframes bounce{0%,to{transform:translateY(0)}25%{transform:translateY(-5px)}50%{transform:translateY(0)}75%{transform:translateY(-2px)}}@keyframes shimmer{0%{left:-100%}to{left:100%}}.typing-toast:after,.message-toast:after{content:"";position:absolute;bottom:0;left:0;height:3px;background:#ffffff80;animation:progress 5s linear}.message-toast:after{background:linear-gradient(90deg,#4f46e5,#6366f1)}@keyframes progress{0%{width:100%}to{width:0%}}@media screen and (max-width:768px){.typing-toast-container,.message-toast-container{top:80px;right:12px;left:12px;align-items:stretch;gap:10px}.typing-toast{min-width:unset;max-width:unset;width:100%;padding:16px 20px;border-radius:14px;animation:slideInFromTopMobile .6s cubic-bezier(.68,-.55,.265,1.55),slideOutToTopMobile .4s cubic-bezier(.6,-.28,.735,.045) 4.6s forwards}.typing-toast-content{gap:12px}.typing-toast-icon{font-size:20px}.typing-toast-text{font-size:13px}.typing-toast-text strong{font-size:14px}.message-toast{min-width:unset;max-width:unset;width:100%;padding:14px 16px;border-radius:14px;animation:slideInFromTopMobile .6s cubic-bezier(.68,-.55,.265,1.55),slideOutToTopMobile .4s cubic-bezier(.6,-.28,.735,.045) 4.6s forwards}.message-toast-content{gap:12px}.message-toast-avatar{width:42px;height:42px;border-width:2px}.message-toast-sender{font-size:14px}.message-toast-preview{font-size:12px}.message-toast-close{width:24px;height:24px;opacity:1;transform:scale(1);top:-4px;right:-4px}@keyframes slideInFromTopMobile{0%{opacity:0;transform:translateY(-150px) scale(.85);filter:blur(5px)}60%{transform:translateY(8px) scale(1.01)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}@keyframes slideOutToTopMobile{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-100px) scale(.9);filter:blur(3px)}}}@media screen and (max-width:375px){.typing-toast-container,.message-toast-container{top:10px;right:10px;left:10px;gap:8px}.typing-toast{padding:14px 16px;border-radius:12px}.typing-toast-icon{font-size:18px}.typing-toast-text{font-size:12px}.typing-toast-text strong{font-size:13px}.message-toast{padding:12px 14px;border-radius:12px}.message-toast-avatar{width:38px;height:38px}.message-toast-sender{font-size:13px}.message-toast-preview{font-size:11px}.message-toast-close{width:22px;height:22px}}@media screen and (min-width:769px)and (max-width:1024px){.typing-toast-container,.message-toast-container{top:18px;right:18px}.typing-toast{min-width:260px;max-width:340px}.message-toast{min-width:320px;max-width:380px}}@media screen and (max-height:500px)and (orientation:landscape){.typing-toast-container,.message-toast-container{top:6px;right:6px;left:auto;max-width:300px;gap:6px}.typing-toast,.message-toast{padding:10px 14px;border-radius:10px}.typing-toast-icon{font-size:16px}.typing-toast-text{font-size:12px}.typing-toast-text strong{font-size:13px}.message-toast-avatar{width:34px;height:34px}.message-toast-sender{font-size:12px}.message-toast-preview{font-size:11px}}@media(prefers-color-scheme:dark){.message-toast{background:#1f2937;color:#f9fafb;box-shadow:0 12px 32px #00000080,0 4px 12px #0000004d;border-left-color:#6366f1}.message-toast:before{background:linear-gradient(135deg,transparent 0%,rgba(99,102,241,.1) 100%)}.message-toast-sender{color:#f9fafb}.message-toast-preview{color:#9ca3af}.message-toast-avatar{border-color:#374151}.message-toast:after{background:linear-gradient(90deg,#6366f1,#818cf8)}}.typing-toast-container>.typing-toast:nth-child(2),.message-toast-container>.message-toast:nth-child(2){animation-delay:.15s}.typing-toast-container>.typing-toast:nth-child(3),.message-toast-container>.message-toast:nth-child(3){animation-delay:.3s}@media(prefers-reduced-motion:reduce){.typing-toast,.message-toast{animation:fadeIn .4s ease,fadeOut .3s ease 4.7s forwards}.typing-toast-icon{animation:none}.typing-toast:before{animation:none}@keyframes fadeIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes fadeOut{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.95)}}}@media(prefers-contrast:high){.typing-toast{border:3px solid white}.message-toast{border:3px solid #000;border-left-width:6px}}.message-toast:focus-visible{outline:3px solid #4f46e5;outline-offset:3px}.message-toast-close:focus-visible{outline:2px solid white;outline-offset:2px}[dir=rtl] .message-toast{border-left:none;border-right:5px solid #4f46e5}[dir=rtl] .message-toast-close{right:auto;left:-6px}@media screen and (max-width:768px){[dir=rtl] .typing-toast-container,[dir=rtl] .message-toast-container{left:12px;right:12px}}@media print{.typing-toast-container,.message-toast-container{display:none}}.typing-toast-container{position:fixed;top:20px;right:20px;z-index:9999;display:flex;flex-direction:column;gap:10px;pointer-events:none}.typing-toast{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:12px 20px;border-radius:12px;box-shadow:0 8px 24px #667eea66;pointer-events:auto;cursor:default;min-width:200px;max-width:350px;animation:slideInFromTop .4s cubic-bezier(.68,-.55,.265,1.55),slideOutToTop .3s cubic-bezier(.6,-.28,.735,.045) 4.7s forwards;transform-origin:top center}.typing-toast-content{display:flex;align-items:center;gap:12px}.typing-toast-icon{font-size:20px;animation:bounce 1s infinite}.typing-toast-text{flex:1;font-size:14px;font-weight:500;line-height:1.4}.typing-toast-text strong{font-weight:600;display:block;margin-bottom:2px}.message-toast-container{position:fixed;top:20px;right:20px;z-index:9998;display:flex;flex-direction:column;gap:12px;pointer-events:none}.message-toast{background:#fff;color:#333;padding:14px 16px;border-radius:12px;box-shadow:0 8px 24px #00000026;pointer-events:auto;cursor:pointer;min-width:280px;max-width:380px;transition:transform .2s ease,box-shadow .2s ease;animation:slideInFromTop .4s cubic-bezier(.68,-.55,.265,1.55),slideOutToTop .3s cubic-bezier(.6,-.28,.735,.045) 4.7s forwards;border-left:4px solid #4f46e5}.message-toast:hover{transform:translateY(-2px);box-shadow:0 12px 28px #0003}.message-toast-content{display:flex;align-items:flex-start;gap:12px;position:relative}.message-toast-avatar{width:45px;height:45px;border-radius:50%;object-fit:cover;border:2px solid #f0f0f0;flex-shrink:0}.message-toast-text{flex:1;display:flex;flex-direction:column;gap:4px;min-width:0}.message-toast-sender{font-size:15px;font-weight:600;color:#1f2937;display:block}.message-toast-preview{font-size:13px;color:#6b7280;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.4}.message-toast-close{position:absolute;top:-4px;right:-4px;background:#ef4444;color:#fff;border:none;border-radius:50%;width:24px;height:24px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease;opacity:0;transform:scale(.8)}.message-toast:hover .message-toast-close{opacity:1;transform:scale(1)}.message-toast-close:hover{background:#dc2626;transform:scale(1.1)}.message-toast-close:active{transform:scale(.95)}@keyframes slideInFromTop{0%{opacity:0;transform:translateY(-100px) scale(.8)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes slideOutToTop{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-50px) scale(.9)}}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-4px)}}@media screen and (max-width:768px){.typing-toast-container,.message-toast-container{top:80px;right:10px;left:10px;align-items:center}.typing-toast{min-width:unset;max-width:unset;width:100%;padding:14px 18px;border-radius:10px;animation:slideInFromTopMobile .5s cubic-bezier(.68,-.55,.265,1.55),slideOutToTopMobile .4s cubic-bezier(.6,-.28,.735,.045) 4.6s forwards}.typing-toast-content{gap:10px}.typing-toast-icon{font-size:18px}.typing-toast-text{font-size:13px}.message-toast{min-width:unset;max-width:unset;width:100%;padding:12px 14px;border-radius:10px;animation:slideInFromTopMobile .5s cubic-bezier(.68,-.55,.265,1.55),slideOutToTopMobile .4s cubic-bezier(.6,-.28,.735,.045) 4.6s forwards}.message-toast-content{gap:10px}.message-toast-avatar{width:40px;height:40px}.message-toast-sender{font-size:14px}.message-toast-preview{font-size:12px}.message-toast-close{width:22px;height:22px;opacity:1;transform:scale(1)}@keyframes slideInFromTopMobile{0%{opacity:0;transform:translateY(-120px) scale(.85)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes slideOutToTopMobile{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-80px) scale(.9)}}}@media screen and (max-width:375px){.typing-toast-container,.message-toast-container{top:8px;right:8px;left:8px;gap:8px}.typing-toast{padding:12px 14px;border-radius:8px}.typing-toast-text{font-size:12px}.message-toast{padding:10px 12px;border-radius:8px}.message-toast-avatar{width:36px;height:36px}.message-toast-sender{font-size:13px}.message-toast-preview{font-size:11px}}@media screen and (min-width:769px)and (max-width:1024px){.typing-toast-container,.message-toast-container{top:16px;right:16px}.typing-toast{min-width:240px;max-width:320px}.message-toast{min-width:300px;max-width:360px}}@media screen and (max-height:500px)and (orientation:landscape){.typing-toast-container,.message-toast-container{top:5px;right:5px;left:auto;max-width:280px}.typing-toast,.message-toast{padding:8px 12px;border-radius:8px}.typing-toast-icon{font-size:16px}.typing-toast-text{font-size:12px}.message-toast-avatar{width:32px;height:32px}.message-toast-sender{font-size:12px}.message-toast-preview{font-size:11px}}@media(prefers-color-scheme:dark){.message-toast{background:#1f2937;color:#f9fafb;box-shadow:0 8px 24px #0006;border-left-color:#6366f1}.message-toast-sender{color:#f9fafb}.message-toast-preview{color:#9ca3af}.message-toast-avatar{border-color:#374151}}.typing-toast-container>.typing-toast:nth-child(n+4),.message-toast-container>.message-toast:nth-child(n+4){display:none}.typing-toast-container>.typing-toast:nth-child(2){animation-delay:.1s}.typing-toast-container>.typing-toast:nth-child(3){animation-delay:.2s}.message-toast-container>.message-toast:nth-child(2){animation-delay:.1s}.message-toast-container>.message-toast:nth-child(3){animation-delay:.2s}@media(prefers-reduced-motion:reduce){.typing-toast,.message-toast{animation:fadeIn .3s ease,fadeOut .3s ease 4.7s forwards}.typing-toast-icon{animation:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}}@media(prefers-contrast:high){.typing-toast{border:2px solid white}.message-toast{border:2px solid #000;border-left-width:4px}}[dir=rtl] .typing-toast-container,[dir=rtl] .message-toast-container{right:auto;left:20px}[dir=rtl] .message-toast{border-left:none;border-right:4px solid #4f46e5}[dir=rtl] .message-toast-close{right:auto;left:-4px}@media screen and (max-width:768px){[dir=rtl] .typing-toast-container,[dir=rtl] .message-toast-container{left:10px;right:10px}}.message-toast:focus-visible{outline:3px solid #4f46e5;outline-offset:2px}.message-toast-close:focus-visible{outline:2px solid white;outline-offset:1px}.header-status.last-seen-text{color:#888;font-size:.8rem;padding-left:0;font-style:italic;margin-top:-5px}.status-indicator{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px}.status-indicator.online{background-color:#4caf50}.status-indicator.offline{background-color:#f44336}.header-status{display:flex;align-items:center;color:#666;font-size:.9rem;margin:0;line-height:1.2;padding-left:0}.header-status.last-seen-text{color:#888;font-size:.85rem;padding-left:0;margin-top:0;display:block}.header-status.offline-status-line{font-weight:700;color:#333}.chat-header .user-details{display:flex;flex-direction:column;justify-content:center}.chat-layout-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;padding:2rem;overflow:hidden}.logo-container{display:flex;align-items:center;gap:12px;margin-bottom:2rem;color:var(--primary-color)}.logo-icon{width:48px;height:48px}.logo-title{font-size:2.5rem;font-weight:700;margin:0;letter-spacing:1px}.logo-tagline{display:none}.chat-card{display:flex;width:100%;max-width:1200px;height:85vh;max-height:900px;background-color:var(--card-background-color);border-radius:var(--border-radius-lg);box-shadow:var(--shadow-md);overflow:hidden;border:1px solid var(--border-color)}.loading-state,.error-state{display:flex;align-items:center;justify-content:center;height:100vh;font-size:1.2rem;color:var(--text-color-secondary)}.error-state{color:var(--notification-badge-color)}.loading-state{display:flex;justify-content:center;align-items:center;height:100vh;font-size:18px;color:#666}.error-state{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100vh;color:#e74c3c;text-align:center;gap:1rem}.error-state button{padding:.5rem 1rem;background:#007bff;color:#fff;border:none;border-radius:4px;cursor:pointer}.error-state button:hover{background:#0056b3}.auth-required{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100vh;text-align:center}.auth-required .logo-container{opacity:.7}.auth-required .logo-tagline{color:#666;font-style:italic}@media screen and (max-width:768px){.chat-layout-container{padding:0;min-height:100vh;height:100vh;overflow:hidden}.logo-container{position:fixed;top:0;left:0;right:0;background:var(--bg-primary, #fff);padding:12px 16px;margin-bottom:0;z-index:100;border-bottom:1px solid var(--border-color, #e0e0e0);box-shadow:0 2px 8px #0000001a;gap:8px}.logo-icon{width:32px;height:32px}.logo-title{font-size:1.5rem;letter-spacing:.5px}.chat-card{width:100%;height:100vh;max-height:none;border-radius:0;box-shadow:none;border:none;margin-top:60px}.chat-card{position:relative}.sidebar{width:100%;height:calc(100vh - 60px);position:absolute;top:0;left:0;z-index:10;transition:transform .3s ease}.chat-window{width:100%;height:calc(100vh - 60px);position:absolute;top:0;left:0;z-index:20;transition:transform .3s ease}.chat-window:before{content:"";position:absolute;top:0;left:0;right:0;height:60px;background:var(--bg-primary, #fff);border-bottom:1px solid var(--border-color, #e0e0e0);z-index:25}.chat-window-header{position:relative;z-index:30;background:transparent}.loading-state,.error-state,.auth-required{padding:20px;text-align:center}.loading-state .spinner{width:40px;height:40px;border-width:3px}.error-state button{padding:12px 24px;font-size:16px;min-height:44px}.sidebar.hidden{transform:translate(-100%)}.chat-window.hidden{transform:translate(100%)}.sidebar.visible,.chat-window.visible{transform:translate(0)}}@media screen and (max-width:480px){.logo-container{padding:5px 12px}.logo-icon{width:28px;height:28px}.logo-title{font-size:1rem}.chat-card{margin-top:56px}.sidebar,.chat-window{height:calc(100vh - 56px)}}@media screen and (max-width:390px){.logo-container{padding:5px 8px;gap:6px}.logo-icon{width:24px;height:24px}.logo-title{font-size:1.1rem}}@media screen and (max-height:500px)and (orientation:landscape){.chat-layout-container{height:100vh;overflow:hidden}.logo-container{padding:5px 12px}.logo-icon{width:25px;height:25px}.logo-title{font-size:1rem}.chat-card{margin-top:48px;height:calc(100vh - 48px)}.sidebar,.chat-window{height:calc(100vh - 48px)}}@media screen and (min-width:768px)and (max-width:1024px){.chat-layout-container{padding:1rem}.chat-card{height:90vh;max-height:800px}.logo-container{margin-bottom:1rem}.logo-icon{width:25px;height:25px}.logo-title{font-size:1.2rem}}@media screen and (min-width:1200px){.chat-card{max-width:1050px}}@media screen and (max-width:768px){[data-theme=dark] .logo-container{background:var(--bg-primary, #1a1a1a);border-bottom-color:var(--border-color, #333)}[data-theme=dark] .chat-window:before{background:var(--bg-primary, #1a1a1a);border-bottom-color:var(--border-color, #333)}}@supports (padding: max(0px)){@media screen and (max-width:768px){.chat-layout-container{padding-left:max(0px,env(safe-area-inset-left));padding-right:max(0px,env(safe-area-inset-right))}.logo-container{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}}}
