.modal-overlay{z-index:1000;-webkit-backdrop-filter:blur(6px);background:#0006;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal{background:var(--surface-1);box-shadow:var(--shadow);border:1px solid var(--color-border,#e0e0e0);border-radius:16px;width:90%;max-width:420px}.create-channel-modal{overflow:hidden}.create-channel-modal .modal__header{border-radius:16px 16px 0 0}.create-channel-modal .modal__body{border-radius:0 0 16px 16px}.create-server-modal{background:0 0;position:relative;overflow:hidden}.create-server-modal__bg-video{object-fit:cover;z-index:0;opacity:.35;pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.create-server-modal__content{z-index:1;position:relative}.create-server-modal .modal__header{-webkit-backdrop-filter:blur(10px);background:#f1f4f8c7}.create-server-modal .modal__body{-webkit-backdrop-filter:blur(10px);background:#ffffffb8;border-radius:0 0 16px 16px}.create-server-modal .modal__field input{background:#ffffffeb}.create-server-modal__choice{flex-direction:column;gap:.75rem;display:flex}.create-server-modal__choice-btn{border:1px solid var(--color-border,#e0e0e0);width:100%;color:var(--color-dark,#333);cursor:pointer;text-align:left;background:#ffffffe6;border-radius:12px;padding:.75rem .9rem;font-weight:600;transition:background .15s,border-color .15s}.create-server-modal__choice-btn:hover{background:#fff;border-color:#3498db80}.create-server-modal__icon-preview-wrap{justify-content:flex-start;display:flex}.create-server-modal__icon-preview{object-fit:cover;border:1px solid var(--color-border,#e0e0e0);border-radius:14px;width:64px;height:64px}.modal__header{border-bottom:1px solid var(--color-border,#e0e0e0);background:var(--surface-2);justify-content:space-between;align-items:center;padding:1rem 1.25rem;display:flex}.modal__title{margin:0;font-size:1.1rem;font-weight:700;line-height:1.2}.modal__close{cursor:pointer;color:var(--color-muted,#666);background:0 0;border:none;border-radius:10px;justify-content:center;align-items:center;width:34px;height:34px;padding:0;font-size:1.5rem;line-height:1;display:flex}.modal__close:hover{color:#333;background:#ffffff14}.modal__body{padding:1.25rem}.modal__field{margin-bottom:1rem;display:block}.modal__field span{color:var(--color-muted,#666);margin-bottom:.35rem;font-size:.85rem;display:block}.modal__field input{border:1px solid var(--color-border,#e0e0e0);box-sizing:border-box;border-radius:8px;width:100%;padding:.5rem .75rem;font-size:1rem}.modal__field input:focus{border-color:var(--color-primary,#3498db);outline:none}.modal__actions{justify-content:flex-end;gap:.75rem;margin-top:1.25rem;display:flex}.create-channel-modal__error{color:#c0392b;margin-bottom:1rem;font-size:.9rem}.settings-fullscreen-modal{flex-direction:column;height:min(860px,94vh);display:flex;width:min(1180px,96vw)!important;max-width:none!important}.settings-fullscreen-modal .modal__body{color:#ebeef2f5;background:linear-gradient(#22242efa,#1e202afa);flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.settings-fullscreen-modal .modal__header{flex-shrink:0}.settings-layout{flex:1;grid-template-columns:220px minmax(0,1fr);align-items:start;gap:.9rem;min-height:0;display:grid}.settings-layout__sidebar{border-right:1px solid #ffffff14;padding-right:.75rem;overflow:auto}.settings-layout__sidebar-title{letter-spacing:.08em;color:#a0a9b7e6;text-transform:uppercase;margin:.15rem 0 .55rem;font-size:.72rem;font-weight:800}.settings-layout__nav-item{text-align:left;color:#e1e7eff0;cursor:pointer;background:0 0;border:none;border-radius:8px;width:100%;padding:.5rem .6rem;font-size:.98rem;font-weight:650}.settings-layout__nav-item:hover{background:#ffffff0f}.settings-layout__nav-item--active{color:#f8fafcfa;background:#ffffff1f}.settings-layout__content{min-width:0;min-height:0;padding-right:.25rem;overflow:auto}.settings-layout__section{background:#ffffff08;border:1px solid #ffffff0f;border-radius:10px;flex-direction:column;gap:.35rem;margin-bottom:1rem;padding:.7rem;display:flex}.settings-layout__label{color:#b0b8c4f2;letter-spacing:.01em;font-size:.85rem;font-weight:800}.settings-fullscreen-modal .modal__field span{color:#b0b8c4f2;font-weight:700}.settings-fullscreen-modal .modal__field input{color:#f0f3f7f5;background:#14161ee0;border:1px solid #ffffff24}.settings-layout__hint{color:#a5adbaeb;font-size:.85rem}.settings-fullscreen-modal .modal__actions{margin-top:auto;padding-top:.8rem}@media (max-width:860px){.settings-fullscreen-modal{height:92vh;width:96vw!important}.settings-layout{grid-template-columns:1fr}.settings-layout__sidebar{border-bottom:1px solid #ffffff14;border-right:none;padding-bottom:.6rem;padding-right:0}}
.crop-modal-overlay{z-index:2000;-webkit-backdrop-filter:blur(6px);background:#00000073;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.crop-modal{background:var(--surface-1);border:1px solid var(--color-border,#e0e0e0);width:min(560px,96vw);box-shadow:var(--shadow);border-radius:16px;overflow:hidden}.crop-modal__header{border-bottom:1px solid var(--color-border,#e0e0e0);background:var(--surface-2);justify-content:space-between;align-items:center;padding:.9rem 1rem;display:flex}.crop-modal__title{margin:0;font-size:1rem;font-weight:700}.crop-modal__close{color:var(--color-muted,#666);cursor:pointer;background:0 0;border:none;border-radius:10px;width:32px;height:32px;font-size:1.4rem;line-height:1}.crop-modal__close:hover{background:#3498db1f}.crop-modal__body{padding:1rem}.crop-modal__error{color:#c0392b;margin-bottom:.7rem;font-size:.9rem}.crop-stage{border:1px solid var(--color-border,#e0e0e0);background:#0c141e29;border-radius:14px;width:320px;height:320px;margin:0 auto;position:relative;overflow:hidden}.crop-stage__image{-webkit-user-select:none;user-select:none;-webkit-user-drag:none;max-width:none;position:absolute;top:50%;left:50%}.crop-stage__frame{pointer-events:none;border:2px solid #3498dba6;border-radius:14px;position:absolute;inset:0}.crop-controls{flex-direction:column;gap:.55rem;margin-top:.9rem;display:flex}.crop-controls__row{grid-template-columns:100px 1fr;align-items:center;gap:.65rem;display:grid}.crop-controls__row span{color:var(--color-muted,#666);font-size:.85rem;font-weight:600}.crop-controls__row input[type=range]{width:100%}.crop-modal__actions{justify-content:flex-end;gap:.7rem;padding:0 1rem 1rem;display:flex}
.server-settings-modal{flex-direction:column;height:min(860px,94vh);display:flex;width:min(1180px,96vw)!important;max-width:none!important}.server-settings-modal-overlay{z-index:140;border-radius:inherit;position:absolute;inset:0}.server-settings-page{z-index:140;border-radius:var(--radius-lg,18px);border:1px solid var(--color-border,#e0e0e0);box-shadow:var(--shadow);background:linear-gradient(#22242efa,#1e202afa);position:absolute;inset:0;overflow:hidden}.server-settings-modal .modal__header{flex-shrink:0}.server-settings-modal--page{border-radius:var(--radius-lg,18px);height:100%;box-shadow:none;border:none;width:100%!important}.server-settings-modal__body{color:#ebeef2f5;background:linear-gradient(#22242efa,#1e202afa);border-radius:0;flex-direction:column;flex:1;min-height:0;padding-top:1rem;display:flex;overflow:hidden}.server-settings-modal__layout{flex:1;grid-template-columns:220px minmax(0,1fr);align-items:start;gap:.9rem;min-height:0;display:grid}.server-settings-modal__sidebar{border-right:1px solid #ffffff0f;padding:.15rem .75rem .15rem 0;overflow:auto}.server-settings-modal__sidebar-title{letter-spacing:.09em;color:#949caad1;text-transform:uppercase;margin:.12rem 0 .45rem;font-size:.7rem;font-weight:800}.server-settings-modal__sidebar-divider{background:#ffffff14;height:1px;margin:.55rem 0}.server-settings-modal__nav-item{text-align:left;color:#bbc2cdeb;cursor:pointer;background:0 0;border:none;border-radius:6px;width:100%;padding:.42rem .6rem;font-size:.99rem;font-weight:600;line-height:1.25;transition:background .12s,color .12s}.server-settings-modal__nav-item:hover{color:#eef2f7fa;background:#4f545c52}.server-settings-modal__nav-item--active{color:#f9fafcfc;background:#4f545c94}.server-settings-modal__nav-item--danger{color:#ff7878f2}.server-settings-modal__nav-item--danger:hover{color:#ffbebefc;background:#ed42453d}.server-settings-modal__nav-item--danger.server-settings-modal__nav-item--active{color:#ffcece;background:#ed424557}.server-settings-modal__content{min-width:0;min-height:0;padding-right:.25rem;overflow:auto}.server-settings-modal__section{background:#ffffff08;border:1px solid #ffffff0f;border-radius:10px;flex-direction:column;gap:.35rem;margin-bottom:1rem;padding:.7rem;display:flex}.server-settings-modal__label{color:#b0b8c4f2;letter-spacing:.01em;font-size:.85rem;font-weight:800}.server-settings-modal__input{color:#f0f3f7f5;background:#14161ee0;border:1px solid #ffffff24;border-radius:10px;width:100%;padding:.55rem .75rem;font-size:1rem}.server-settings-modal__input:disabled{opacity:.7;cursor:not-allowed}.server-settings-modal__hint{color:#a5adbaeb;font-size:.85rem}.server-settings-modal__actions{justify-content:flex-end;gap:.75rem;margin-top:1.1rem;display:flex}.server-settings-modal__btn-danger{color:#c0392bf2;border-color:#c0392b8c}.server-settings-modal__destructive{flex-wrap:wrap;gap:.75rem;margin-top:.75rem;display:flex}.server-settings-modal__invite,.server-settings-modal__invite-code{margin-top:.25rem}.server-settings-modal__invite-code-input{letter-spacing:.7px;max-width:260px;font-weight:800}.server-settings-modal__invite-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;display:flex}.server-settings-modal__invite-input{flex:1;min-width:220px}.server-settings-modal__copy-btn{white-space:nowrap}.server-settings-modal__icon-row{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.server-settings-modal__icon-preview,.server-settings-modal__icon-fallback{border:1px solid #ffffff1f;border-radius:14px;width:64px;height:64px}.server-settings-modal__icon-preview{object-fit:cover}.server-settings-modal__icon-fallback{color:#c6d2fffa;background:#5865f22e;justify-content:center;align-items:center;font-size:1.2rem;font-weight:700;display:inline-flex}.server-settings-modal__icon-upload-btn{color:#d2dbfffa;white-space:nowrap;cursor:pointer;background:#5865f22e;border:1px solid #5865f28c;border-radius:10px;width:fit-content;max-width:100%;margin-top:.15rem;padding:.5rem .75rem;font-weight:700}.server-settings-modal__icon-upload-btn:hover{background:#5865f247}.server-settings-modal__icon-upload-btn:disabled{opacity:.6;cursor:not-allowed}.server-settings-modal__members{flex-direction:column;gap:.45rem;display:flex}.server-settings-modal__member-item{background:#ffffff0a;border:1px solid #ffffff0f;border-radius:8px;align-items:center;gap:.55rem;padding:.4rem .45rem;display:flex}.server-settings-modal__member-meta{min-width:0}.server-settings-modal__member-name{color:#f3f6fafa;white-space:nowrap;text-overflow:ellipsis;font-weight:700;overflow:hidden}.server-settings-modal__member-role{color:#b0bac8e6;font-size:.8rem}@media (max-width:860px){.server-settings-modal{height:92vh;width:96vw!important}.server-settings-modal__layout{grid-template-columns:1fr}.server-settings-modal__sidebar{border-bottom:1px solid #ffffff14;border-right:none;padding-bottom:.6rem;padding-right:0}}
.channel-members-panel{background:var(--surface-1);border-left:1px solid var(--color-border,#e0e0e0);flex-direction:column;flex-shrink:0;width:280px;max-height:100%;display:flex}.channel-members-panel__header{border-bottom:1px solid var(--color-border,#e0e0e0);background:var(--surface-2);justify-content:space-between;align-items:center;padding:.75rem 1rem;display:flex}.channel-members-panel__title{white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:.95rem;font-weight:600;overflow:hidden}.channel-members-panel__close{cursor:pointer;color:var(--color-muted,#666);background:0 0;border:none;padding:0 .25rem;font-size:1.25rem}.channel-members-panel__error{color:#c0392b;padding:.5rem 1rem;font-size:.85rem}.channel-members-panel__loading{color:var(--color-muted,#666);padding:1rem;font-size:.9rem}.channel-members-panel__list{margin:0;padding:.5rem 0;list-style:none;overflow-y:auto}.channel-members-panel__item{align-items:center;gap:.5rem;padding:.5rem 1rem;font-size:.9rem;display:flex}.channel-members-panel__profile-hit{cursor:pointer;background:0 0;border:none;border-radius:50%;flex-shrink:0;margin:0;padding:0;line-height:0}.channel-members-panel__name{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.channel-members-panel__name--btn{font:inherit;text-align:left;cursor:pointer;color:inherit;background:0 0;border:none;padding:0}.channel-members-panel__name--btn:hover{text-decoration:underline}.channel-members-panel__role{color:var(--color-muted,#666);align-items:center;gap:.25rem;font-size:.8rem;display:flex}.channel-members-panel__role-btn{cursor:pointer;color:var(--color-muted,#666);background:0 0;border:none;padding:0 .2rem;font-size:.85rem}.channel-members-panel__role-btn:hover{color:var(--color-primary,#3498db)}.channel-members-panel__role-edit select{padding:.2rem .4rem;font-size:.8rem}.channel-members-panel__kick{color:#c0392b;cursor:pointer;background:0 0;border:none;padding:.2rem .5rem;font-size:.75rem}.channel-members-panel__kick:hover{text-decoration:underline}@media (max-width:768px){.channel-members-panel{z-index:100;width:100%;max-width:300px;position:fixed;top:0;bottom:0;right:0;box-shadow:-4px 0 16px #00000026}}
.user-profile-modal-overlay{z-index:12000;background:#000000a6;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.user-profile-modal{background:var(--chat-surface-elevated,#2b2d31);width:100%;max-width:420px;color:var(--chat-text,#f2f3f5);border-radius:12px;overflow:hidden;box-shadow:0 16px 48px #00000073}.user-profile-modal__banner{background:linear-gradient(135deg,#5865f2 0%,#9b59d6 50%,#eb459e 100%) 50%/cover;height:100px}.user-profile-modal__body-wrap{margin-top:-36px;padding:0 1.1rem 1.1rem}.user-profile-modal__avatar-row{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:.75rem;display:flex}.user-profile-modal__avatar{border:5px solid var(--chat-surface-elevated,#2b2d31);background:#1e1f22;border-radius:50%;flex-shrink:0;width:88px;height:88px;overflow:hidden}.user-profile-modal__avatar .avatar{width:100%;height:100%}.user-profile-modal__actions-top{align-items:center;gap:.5rem;margin-bottom:.25rem;display:flex}.user-profile-modal__title-block{margin-top:.5rem}.user-profile-modal__display-name{font-size:1.25rem;font-weight:700;line-height:1.2}.user-profile-modal__handle{color:var(--chat-text-muted,#b5bac1);margin-top:.15rem;font-size:.9rem}.user-profile-modal__since{color:var(--chat-text-muted,#949ba4);margin-top:.75rem;font-size:.8rem}.user-profile-modal__section{background:#0003;border-radius:8px;margin-top:1rem;padding:.65rem .75rem}.user-profile-modal__section-title{letter-spacing:.04em;text-transform:uppercase;color:var(--chat-text-muted,#949ba4);margin-bottom:.35rem;font-size:.7rem;font-weight:700}.user-profile-modal__about{white-space:pre-wrap;word-break:break-word;font-size:.9rem;line-height:1.45}.user-profile-modal__email{color:var(--chat-text-muted,#b5bac1);margin-top:.5rem;font-size:.85rem}.user-profile-modal__form label{color:var(--chat-text-muted,#949ba4);margin-bottom:.25rem;font-size:.75rem;font-weight:600;display:block}.user-profile-modal__form input,.user-profile-modal__form textarea{box-sizing:border-box;width:100%;color:inherit;font:inherit;background:#1e1f22;border:1px solid #ffffff1f;border-radius:6px;margin-bottom:.65rem;padding:.5rem .6rem}.user-profile-modal__form textarea{resize:vertical;min-height:88px}.user-profile-modal__error{color:#f23f42;margin-bottom:.5rem;font-size:.85rem}.user-profile-modal__btn-row{flex-wrap:wrap;gap:.5rem;margin-top:.5rem;display:flex}.user-profile-modal__btn-row button{cursor:pointer;color:#fff;background:#5865f2;border:none;border-radius:6px;padding:.45rem .75rem;font-size:.85rem}.user-profile-modal__btn-row button[type=button].user-profile-modal__btn-secondary{background:#4e5058}.user-profile-modal__btn-row button[type=button].user-profile-modal__btn-ghost{color:inherit;background:0 0;border:1px solid #fff3}.user-profile-modal__actions-top button{cursor:pointer;color:#fff;background:#5865f2;border:none;border-radius:6px;padding:.45rem .75rem;font-size:.85rem}.user-profile-modal__actions-top button.user-profile-modal__btn-secondary{background:#4e5058}.user-profile-modal__actions-top button.user-profile-modal__btn-ghost{color:inherit;background:0 0;border:1px solid #fff3}.user-profile-modal__about--muted{opacity:.75;font-style:italic}.user-profile-modal__logout{border-top:1px solid #ffffff14;margin-top:1rem;padding-top:1rem}.user-profile-modal__logout-btn{box-sizing:border-box;color:#f23f42;width:100%;font:inherit;cursor:pointer;background:0 0;border:1px solid #f23f4273;border-radius:6px;padding:.5rem .75rem;font-size:.85rem;font-weight:600}.user-profile-modal__logout-btn:hover:not(:disabled){background:#f23f421f}.user-profile-modal__logout-btn:disabled{opacity:.55;cursor:not-allowed}.user-profile-modal__loading{text-align:center;color:var(--chat-text-muted,#949ba4);padding:2rem}.user-profile-modal__close{color:#fff;cursor:pointer;background:#00000059;border:none;border-radius:6px;width:32px;height:32px;font-size:1.25rem;line-height:1;position:absolute;top:.65rem;right:.65rem}.user-profile-modal{position:relative}
