:root{--text:#6b6375;--text-h:#08060d;--bg:#fff;--border:#e5e4e7;--code-bg:#f4f3ec;--accent:#aa3bff;--accent-bg:#aa3bff1a;--accent-border:#aa3bff80;--social-bg:#f4f3ec80;--shadow:#0000001a 0 10px 15px -3px, #0000000d 0 4px 6px -2px;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--heading:system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:18px/145% var(--sans);letter-spacing:.18px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}@media (width<=1024px){:root{font-size:16px}}@media (prefers-color-scheme:dark){:root{--text:#9ca3af;--text-h:#f3f4f6;--bg:#16171d;--border:#2e303a;--code-bg:#1f2028;--accent:#c084fc;--accent-bg:#c084fc26;--accent-border:#c084fc80;--social-bg:#2f303a80;--shadow:#0006 0 10px 15px -3px, #00000040 0 4px 6px -2px}#social .button-icon{filter:invert()brightness(2)}}body{margin:0}#root{text-align:center;border-inline:1px solid var(--border);box-sizing:border-box;flex-direction:column;width:1126px;max-width:100%;min-height:100svh;margin:0 auto;display:flex}h1,h2{font-family:var(--heading);color:var(--text-h);font-weight:500}h1{letter-spacing:-1.68px;margin:32px 0;font-size:56px}@media (width<=1024px){h1{margin:20px 0;font-size:36px}}h2{letter-spacing:-.24px;margin:0 0 8px;font-size:24px;line-height:118%}@media (width<=1024px){h2{font-size:20px}}p{margin:0}code,.counter{font-family:var(--mono);color:var(--text-h);border-radius:4px;display:inline-flex}code{background:var(--code-bg);padding:4px 8px;font-size:15px;line-height:135%}*{box-sizing:border-box;margin:0;padding:0}:root{--primary:#f97316;--primary-dark:#ea580c;--primary-light:#fdba74;--bg-main:#fff7ed;--bg-card:#fff;--text-main:#1e293b;--text-muted:#64748b;--border:#fed7aa;--shadow:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a}body{min-height:100vh;color:var(--text-main);background:linear-gradient(135deg,#fff7ed 0%,#ffedd5 50%,#fed7aa 100%);font-family:Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,sans-serif}.app{flex-direction:column;gap:1.5rem;width:100vw;max-width:none;height:100vh;margin:0;padding:1.5rem;display:flex}.app-header{background:linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);color:#fff;box-shadow:var(--shadow-lg);border-radius:16px;justify-content:space-between;align-items:center;padding:1.25rem 2rem;display:flex}.app-header h1{align-items:center;gap:.5rem;font-size:1.75rem;font-weight:700;display:flex}.app-header h1:before{content:"💬"}.user-info{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#ffffff26;border-radius:20px;padding:.5rem 1rem;font-size:1rem}.user-info strong{font-weight:600}.app-main{flex:1;gap:3rem;display:flex}.room-list{background:var(--bg-card);width:420px;box-shadow:var(--shadow);border-radius:16px;flex-direction:column;height:calc(100vh - 140px);padding:1.5rem;display:flex;overflow:hidden}.room-list ul{flex:1;overflow-y:auto}.room-list h2{color:var(--text-main);align-items:center;gap:.5rem;margin-bottom:1.25rem;font-size:1.25rem;font-weight:600;display:flex}.room-list h2:before{content:"👥"}.new-room-form{border-bottom:2px solid var(--border);flex-direction:column;gap:.75rem;margin-bottom:1.5rem;padding-bottom:1.5rem;display:flex}.new-room-form input::placeholder{color:var(--text-muted)}.new-room-form input{border:2px solid var(--border);border-radius:12px;flex:1;padding:.75rem 1rem;font-size:.95rem;transition:border-color .2s,box-shadow .2s}.new-room-form input:focus{border-color:var(--primary);outline:none;box-shadow:0 0 0 3px #6366f126}.new-room-form button{background:var(--primary);color:#fff;cursor:pointer;border:none;border-radius:12px;width:100%;padding:.75rem 1.25rem;font-size:.95rem;font-weight:500;transition:all .2s}.new-room-options{justify-content:space-between;align-items:center;display:flex}.room-type-options{gap:.75rem;margin:.75rem 0;display:flex}.room-type-option{border:2px solid var(--border);cursor:pointer;color:var(--text-muted);border-radius:10px;flex:1;justify-content:center;align-items:center;gap:.5rem;padding:.75rem;font-size:.9rem;font-weight:500;transition:all .2s;display:flex}.room-type-option input{display:none}.room-type-option.selected{border-color:var(--primary);color:var(--primary-dark);background:linear-gradient(135deg,#fff7ed 0%,#ffedd5 100%)}.room-type-option:hover:not(.selected){background:#f8fafc}.new-room-form button{width:100%}.room-section-title{color:var(--text-muted);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;margin:1.5rem 0 .5rem;padding-bottom:.5rem;font-size:.85rem;display:flex}.room-section-title.clickable{cursor:pointer;background:#f8fafc;border-bottom:none;border-radius:8px;margin:1rem -.5rem .5rem;padding:.5rem}.room-section-title.clickable:hover{background:#f1f5f9}.section-spinner{border:2px solid #e2e8f0;border-top-color:var(--primary);border-radius:50%;width:16px;height:16px;animation:.8s linear infinite spin}.expand-icon{color:var(--text-muted);font-size:.7rem}.no-rooms-section{text-align:center;color:var(--text-muted);padding:1rem;font-size:.85rem;font-style:italic}.no-rooms{text-align:center;color:var(--text-muted);padding:2rem;font-size:.9rem}.new-room-form button:hover{background:var(--primary-dark);box-shadow:var(--shadow);transform:translateY(-1px)}.room-list ul{flex:1;list-style:none;overflow-y:auto}.room-list li{cursor:pointer;border-radius:12px;align-items:center;gap:.75rem;margin-bottom:.5rem;padding:1rem;font-weight:500;transition:all .2s;display:flex}.room-list li.locked{opacity:.6}.room-list li.locked:hover{opacity:1}.access-request{color:#fff;background:#f97316;border-radius:8px;margin-left:auto;padding:.2rem .5rem;font-size:.7rem}.room-name{flex:1;align-items:center;gap:.5rem;display:flex}.request-btn{color:#fff;cursor:pointer;background:#f97316;border:none;border-radius:8px;padding:.3rem .6rem;font-size:.7rem;transition:background .2s}.request-btn:hover{background:#ea580c}.request-btn:disabled{cursor:not-allowed;background:#cbd5e1}.room-list li:before{content:"💭";font-size:1.2rem}.room-list li:hover{background:linear-gradient(135deg,#f8fafc 0%,#f1f5f9 100%);transform:translate(4px)}.room-list li.active{background:linear-gradient(135deg, var(--primary-light) 0%, #c7d2fe 100%);color:var(--primary-dark);font-weight:600}.chat-room{background:var(--bg-card);box-shadow:var(--shadow);border-radius:16px;flex-direction:column;flex:1;height:calc(100vh - 140px);display:flex;position:relative;overflow:hidden}.chat-room.empty{color:var(--text-muted);justify-content:center;align-items:center;font-size:1.1rem;display:flex}.chat-room.empty:before{content:"💭";opacity:.5;margin-bottom:1rem;font-size:3rem;display:block}.chat-header{border-bottom:2px solid var(--border);background:linear-gradient(135deg,#f8fafc 0%,#f1f5f9 100%);justify-content:space-between;align-items:center;padding:1.25rem 1.5rem;display:flex}.chat-header-info{align-items:center;gap:.75rem;display:flex}.chat-header h2{color:var(--text-main);align-items:center;gap:.5rem;font-size:1.25rem;font-weight:600;display:flex}.chat-header h2:before{content:"💬"}.message-count{color:var(--text-muted);background:#f1f5f9;border-radius:12px;padding:.25rem .5rem;font-size:.8rem}.online-indicator{background:#ecfdf5;border-radius:20px;align-items:center;gap:.5rem;padding:.5rem .75rem;display:flex}.online-dot{background:#22c55e;border-radius:50%;width:8px;height:8px;animation:2s infinite pulse}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.online-count{color:#166534;font-size:.85rem;font-weight:500}.message-list{background:#fafbfc;flex-direction:column;flex:1;gap:.75rem;padding:1.5rem;display:flex;overflow-y:auto}.message-list.empty{color:var(--text-muted);justify-content:center;align-items:center}.message-list.empty:before{content:"Nenhuma mensagem ainda.nSeja o primeiro a enviar!";white-space:pre-line;text-align:center;line-height:1.6}.message{border-radius:16px;max-width:75%;padding:1rem 1.25rem;animation:.2s ease-out slideIn;box-shadow:0 1px 2px #0000000d}.message.my-message{color:#fff;background:linear-gradient(135deg,#f97316 0%,#ea580c 100%);border-bottom-right-radius:4px;border-bottom-left-radius:16px;margin-left:auto}.message.my-message .message-author{color:#fff}.message.my-message .message-time{color:#ffffffb3}.message.other-message{background:var(--bg-card);border-bottom-left-radius:4px;position:relative}.message.my-message{position:relative}@keyframes slideIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.message-header{justify-content:space-between;margin-bottom:.5rem;font-size:.85rem;display:flex}.message-author{color:#ea580c;align-items:center;gap:.3rem;font-weight:700;display:flex}.creator-badge{margin-left:.25rem;font-size:.9rem}.message-time{color:var(--text-muted);font-size:.75rem}.message-content{color:var(--text-main);word-wrap:break-word;line-height:1.5}.room-admin{border-bottom:2px solid var(--border);background:linear-gradient(135deg,#fff7ed 0%,#ffedd5 100%)}.admin-toggle{text-align:left;width:100%;color:var(--primary-dark);cursor:pointer;background:0 0;border:none;align-items:center;gap:.5rem;padding:1rem 1.5rem;font-size:.95rem;font-weight:600;display:flex}.admin-toggle:hover{background:#f973161a}.pending-badge{color:#fff;background:#ef4444;border-radius:10px;margin-left:.5rem;padding:.15rem .5rem;font-size:.75rem}.room-admin .admin-info{color:var(--text-muted);margin-bottom:.25rem;padding:0 1.5rem;font-size:.85rem}.pending-users,.allowed-users{margin-top:1rem;padding:0 1.5rem 1rem}.pending-users h5,.allowed-users h5{color:var(--text-muted);margin-bottom:.5rem;font-size:.85rem}.pending-users ul,.allowed-users ul{list-style:none}.pending-users li,.allowed-users li{background:#fff;border-radius:8px;justify-content:space-between;align-items:center;margin-bottom:.5rem;padding:.5rem;font-size:.9rem;display:flex}.action-buttons{gap:.5rem;display:flex}.approve-btn,.reject-btn,.remove-user-btn{cursor:pointer;background:0 0;border:none;border-radius:4px;padding:.25rem .5rem;font-size:.9rem;transition:background .2s}.approve-btn:hover{background:#dcfce7}.reject-btn:hover,.remove-user-btn:hover{background:#fee2e2}.remove-user-btn{opacity:.6;padding:.25rem;transition:opacity .2s}.remove-user-btn:hover{opacity:1}.message-form{border-top:2px solid var(--border);background:var(--bg-card);gap:1rem;padding:1.25rem 1.5rem;display:flex}.message-form input{border:2px solid var(--border);border-radius:24px;flex:1;padding:1rem 1.25rem;font-size:1rem;transition:border-color .2s,box-shadow .2s}.message-form input:focus{border-color:var(--primary);outline:none;box-shadow:0 0 0 3px #6366f126}.message-form button{background:linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);color:#fff;cursor:pointer;border:none;border-radius:24px;padding:1rem 1.75rem;font-size:1rem;font-weight:600;transition:all .2s;box-shadow:0 2px 4px #6366f14d}.message-form button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 8px #6366f166}.message-form button:disabled{cursor:not-allowed;box-shadow:none;background:#cbd5e1}.file-input{display:none}.image-btn{border:2px solid var(--border);cursor:pointer;background:#f1f5f9;border-radius:50%;justify-content:center;align-items:center;width:46px;height:46px;font-size:1.25rem;transition:all .2s;display:flex}.image-btn:hover{background:#e2e8f0;transform:scale(1.05)}.message-image img{cursor:pointer;border-radius:12px;max-width:250px;max-height:200px;transition:transform .2s}.message-image img:hover{transform:scale(1.02)}.message-actions{opacity:0;gap:4px;transition:opacity .2s;display:flex;position:absolute;top:8px;right:8px}.message:hover .message-actions{opacity:1}.delete-btn,.report-btn{cursor:pointer;background:0 0;border:none;border-radius:4px;padding:4px;font-size:.85rem;transition:background .2s}.delete-btn:hover{background:#fee2e2}.report-btn{color:#dc2626}.report-btn:hover{background:#fef2f2}.delete-btn:disabled,.report-btn:disabled{opacity:.5;cursor:not-allowed}.loading{color:var(--text-muted);justify-content:center;align-items:center;padding:2rem;font-size:1rem;display:flex}.loading:after{content:"";border:2px solid var(--border);border-top-color:var(--primary);border-radius:50%;width:20px;height:20px;margin-left:.75rem;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.modal-overlay{z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#00000080;justify-content:center;align-items:center;animation:.2s ease-out fadeIn;display:flex;position:fixed;inset:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal{box-shadow:var(--shadow-lg);text-align:center;background:#fff;border-radius:20px;width:90%;max-width:400px;padding:2.5rem;animation:.3s ease-out slideUp}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.modal h2{color:var(--primary);margin-bottom:.75rem;font-size:1.5rem}.modal p{color:var(--text-muted);margin-bottom:1.5rem}.modal input{border:2px solid var(--border);border-radius:12px;width:100%;margin-bottom:1rem;padding:1rem 1.25rem;font-size:1.1rem;transition:border-color .2s,box-shadow .2s}.modal input:focus{border-color:var(--primary);outline:none;box-shadow:0 0 0 3px #6366f126}.terms-modal{text-align:center;max-width:420px}.terms-icon{margin-bottom:.5rem;font-size:3rem}.terms-content{text-align:left;max-height:250px;margin:1.5rem 0;overflow-y:auto}.terms-content p{margin-bottom:.75rem;line-height:1.5}.terms-content ul{margin-bottom:1rem;margin-left:1.5rem}.terms-content li{color:#dc2626;margin-bottom:.25rem}.terms-warning{color:#dc2626;background:#fef2f2;border-radius:8px;margin-top:1rem;padding:.75rem;font-size:.85rem;font-weight:600}.terms-buttons{gap:1rem;display:flex}.terms-buttons button{flex:1;padding:.875rem}.accept-btn{background:linear-gradient(135deg,#22c55e 0%,#16a34a 100%)!important}.accept-btn:hover{box-shadow:0 4px 12px #22c55e66!important}.decline-btn{background:#64748b!important}.decline-btn:hover{background:#475569!important}.modal button{background:linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);color:#fff;cursor:pointer;border:none;border-radius:12px;width:100%;padding:1rem;font-size:1.1rem;font-weight:600;transition:all .2s}.modal button:hover{transform:translateY(-2px);box-shadow:0 4px 12px #6366f166}.notification{z-index:100;border-radius:24px;padding:.75rem 1.5rem;font-size:.9rem;font-weight:500;animation:.3s ease-out slideDown,.3s ease-out 3.5s forwards fadeOut;position:absolute;top:80px;left:50%;transform:translate(-50%);box-shadow:0 4px 12px #00000026}.notification.join{color:#166534;background:#ecfdf5;border:1px solid #bbf7d0}.notification.leave{color:#991b1b;background:#fef2f2;border:1px solid #fecaca}@keyframes slideDown{0%{opacity:0;transform:translate(-50%)translateY(-20px)}to{opacity:1;transform:translate(-50%)translateY(0)}}@keyframes fadeOut{to{opacity:0}}.banned-screen{background:linear-gradient(135deg,#fef2f2 0%,#fee2e2 100%);justify-content:center;align-items:center;min-height:100vh;display:flex}.banned-content{text-align:center;background:#fff;border-radius:20px;max-width:500px;padding:3rem;box-shadow:0 10px 40px #0000001a}.banned-icon{margin-bottom:1rem;font-size:4rem}.banned-content h2{color:#dc2626;margin-bottom:1rem;font-size:2rem}.banned-content p{color:#374151;margin-bottom:1rem;line-height:1.6}.banned-contact{color:#6b7280;background:#f3f4f6;border-radius:8px;padding:1rem;font-size:.9rem}@media (width<=900px){.app{gap:.75rem;padding:.75rem}.app-header{border-radius:12px;padding:1rem}.app-header h1{font-size:1.25rem}.app-main{flex-direction:column}.room-list{border-radius:12px;width:100%;height:80vh;min-height:400px;padding:1rem;display:flex;overflow-y:auto}.room-list ul{max-height:none;overflow-y:auto}.room-list h2{z-index:1;background:#fff;position:sticky;top:0}.new-room-form{z-index:1;background:#fff;position:sticky;top:50px}.room-list h2{font-size:1.1rem}.chat-room{border-radius:12px;height:calc(100vh - 200px);min-height:500px}.message{max-width:85%;padding:.75rem 1rem}.message.my-message,.message.other-message{max-width:85%}.message-form{gap:.5rem;padding:1rem}.message-form input{padding:.75rem 1rem}.message-form button{padding:.75rem 1.25rem}.modal{border-radius:16px;padding:2rem}.modal h2{font-size:1.25rem}}
