* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: "Inter", Arial, sans-serif;
    background: #1e1f22;
    color: #ffffff;
}

body {
    overflow: hidden;
}

a {
    color: #7c84ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
input,
textarea {
    font: inherit;
}

img {
    max-width: 100%;
}

.hidden {
    display: none !important;
}

/* ==================================================
   LOGIN / REGISTER PAGE
================================================== */

.auth-page,
.login-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(88, 101, 242, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(59, 165, 93, 0.14), transparent 24%),
        #1e1f22;
    overflow: auto;
}

.auth-card,
.login-card {
    width: 100%;
    max-width: 440px;
    background: #2b2d31;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.auth-logo,
.login-logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #5865f2;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 18px;
}

.auth-title,
.login-title,
.auth-card h1,
.login-card h1 {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
    color: #ffffff;
}

.auth-subtitle,
.login-subtitle {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.6;
    color: #b5bac1;
}

.form-group,
.auth-field,
.login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-label,
.auth-label,
.login-label,
.auth-field label,
.login-field label {
    font-size: 13px;
    font-weight: 700;
    color: #dbdee1;
}

.input,
.auth-input,
.login-input,
.form-group input,
.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card input[type="email"],
.login-card input[type="text"],
.login-card input[type="password"],
.login-card input[type="email"] {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    outline: none;
    background: #1f2023;
    color: #ffffff;
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 15px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.input::placeholder,
.auth-input::placeholder,
.login-input::placeholder,
.auth-card input::placeholder,
.login-card input::placeholder {
    color: #949ba4;
}

.input:focus,
.auth-input:focus,
.login-input:focus,
.auth-card input:focus,
.login-card input:focus {
    border-color: #5865f2;
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.18);
    background: #232428;
}

.auth-actions,
.login-actions,
.auth-buttons,
.login-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.btn,
.auth-btn,
.login-btn,
.auth-card button,
.login-card button {
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.18s ease;
}

.btn-primary,
.auth-btn.primary,
.login-btn.primary,
.auth-submit,
.login-submit {
    background: #5865f2;
    color: #ffffff;
}

.btn-primary:hover,
.auth-btn.primary:hover,
.login-btn.primary:hover,
.auth-submit:hover,
.login-submit:hover {
    background: #4752c4;
}

.btn-secondary,
.auth-btn.secondary,
.login-btn.secondary {
    background: #404249;
    color: #ffffff;
}

.btn-secondary:hover,
.auth-btn.secondary:hover,
.login-btn.secondary:hover {
    background: #4c4f57;
}

.auth-footer,
.login-footer {
    margin-top: 18px;
    font-size: 14px;
    color: #b5bac1;
}

.message-box,
.auth-error,
.login-error,
.auth-success,
.login-success {
    display: none;
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.message-box.error,
.auth-error {
    display: block;
    background: rgba(218, 55, 60, 0.14);
    border: 1px solid rgba(218, 55, 60, 0.26);
    color: #ffb3b5;
}

.message-box.success,
.auth-success,
.login-success {
    display: block;
    background: rgba(59, 165, 93, 0.12);
    border: 1px solid rgba(59, 165, 93, 0.24);
    color: #9ee2b1;
}

/* ==================================================
   APP LAYOUT
================================================== */

.app-layout {
    display: grid;
    grid-template-columns: 72px 260px 1fr 280px;
    width: 100vw;
    height: 100vh;
    background: #1e1f22;
    overflow: hidden;
}

.servers-sidebar {
    background: #111214;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 10px;
    gap: 12px;
    min-height: 0;
    overflow: hidden;
}

.channels-sidebar {
    background: #2b2d31;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.chat-main {
    background: #313338;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.users-sidebar {
    background: #2b2d31;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

/* ==================================================
   LEFT SERVERS SIDEBAR
================================================== */

.sidebar-top,
.sidebar-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.servers-list {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    overflow-y: auto;
    padding: 6px 0;
    min-height: 0;
}

.servers-list::-webkit-scrollbar {
    width: 6px;
}

.servers-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.server-btn,
.sidebar-action-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 16px;
    background: #313338;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.server-btn {
    overflow: hidden;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.server-btn:hover,
.sidebar-action-btn:hover {
    background: #5865f2;
    border-radius: 12px;
    transform: translateY(-1px);
}

.server-btn.active {
    background: #5865f2;
    border-radius: 12px;
}

.sidebar-action-btn.danger:hover {
    background: #da373c;
}

/* ==================================================
   CHANNELS SIDEBAR
================================================== */

.channels-header,
.users-header {
    padding: 18px 16px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
    flex-shrink: 0;
}

.channels-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.channels-header h2,
.users-header h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    color: #f2f3f5;
}

.sidebar-subtitle {
    margin: 6px 0 0;
    font-size: 12px;
    color: #b5bac1;
}

.channels-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-btn {
    border: none;
    border-radius: 10px;
    background: #404249;
    color: #ffffff;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.18s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-btn:hover {
    background: #5865f2;
}

.header-btn.danger {
    background: #da373c;
}

.header-btn.danger:hover {
    background: #b52d31;
}

.channels-section-title {
    padding: 14px 16px 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #949ba4;
    flex-shrink: 0;
}

.channels-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 10px 12px;
    min-height: 0;
}

.channels-list::-webkit-scrollbar,
.users-list::-webkit-scrollbar,
.messages-container::-webkit-scrollbar {
    width: 8px;
}

.channels-list::-webkit-scrollbar-thumb,
.users-list::-webkit-scrollbar-thumb,
.messages-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.channel-btn {
    width: 100%;
    border: none;
    background: transparent;
    color: #dbdee1;
    text-align: left;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: 0.16s ease;
}

.channel-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.channel-btn.active {
    background: #404249;
    color: #ffffff;
}

/* ==================================================
   SERVER MENU
================================================== */

.server-menu-wrapper {
    position: relative;
}

.server-menu-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: #404249;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.server-menu-btn:hover {
    background: #5865f2;
}

.server-dropdown {
    position: absolute;
    top: 42px;
    right: 0;
    min-width: 210px;
    background: #1f2023;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 50;
}

.server-dropdown button {
    width: 100%;
    background: transparent;
    border: none;
    color: #ffffff;
    text-align: left;
    padding: 12px 14px;
    cursor: pointer;
    font-size: 14px;
}

.server-dropdown button:hover {
    background: rgba(255, 255, 255, 0.06);
}

.server-dropdown button.danger {
    color: #ff8080;
}

/* ==================================================
   CHAT MAIN
================================================== */

.chat-header {
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: #313338;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.16);
    flex-shrink: 0;
}


.voice-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.mic-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #c9d1d9;
    font-size: 13px;
    font-weight: 600;
}

.mic-status::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #8f96a3;
    box-shadow: 0 0 0 0 rgba(87, 242, 135, 0.45);
}

.mic-status.active::before {
    background: #57f287;
    box-shadow: 0 0 0 4px rgba(87, 242, 135, 0.18);
}

.mic-status.muted::before {
    background: #ed4245;
    box-shadow: 0 0 0 4px rgba(237, 66, 69, 0.14);
}

.mic-status.disabled::before {
    background: #8f96a3;
    box-shadow: none;
}

.voice-toggle-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    color: #ffffff;
    background: #5865f2;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.voice-toggle-btn:hover {
    transform: translateY(-1px);
}

.voice-toggle-btn.disconnect {
    background: #da373c;
}

.voice-toggle-btn.secondary {
    background: #4f545c;
}


.voice-toggle-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.chat-header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #f2f3f5;
}

#chatMeta {
    margin: 6px 0 0;
    font-size: 13px;
    color: #b5bac1;
}

.messages-container {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px 20px;
    min-height: 0;
    height: 0;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    text-align: center;
    color: #b5bac1;
    padding: 24px;
}

.empty-state h3 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #ffffff;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
    max-width: 420px;
    line-height: 1.5;
}

.typing-indicator {
    min-height: 24px;
    padding: 0 20px 10px;
    font-size: 13px;
    color: #b5bac1;
    flex-shrink: 0;
}

/* ==================================================
   MESSAGE
================================================== */

.message {
    display: flex;
    gap: 14px;
    padding: 10px 0;
    position: relative;
}

.message:hover .message-body {
    background: rgba(255, 255, 255, 0.02);
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #5865f2;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    overflow: hidden;
}

.message-wrapper {
    flex: 1;
    min-width: 0;
    position: relative;
}

.message-body {
    padding: 4px 10px 8px 0;
    border-radius: 10px;
    transition: background 0.16s ease;
}

.message-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    padding-right: 44px;
}

.message-username {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.message-time {
    font-size: 12px;
    color: #949ba4;
}

.message-text {
    font-size: 15px;
    line-height: 1.55;
    color: #dbdee1;
    word-break: break-word;
    white-space: pre-wrap;
}

.message-image {
    display: block;
    margin-top: 10px;
    max-width: min(420px, 100%);
    max-height: 320px;
    border-radius: 14px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.message-menu-btn {
    position: absolute;
    top: 4px;
    right: 0;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: #232428;
    color: #ffffff;
    cursor: pointer;
    font-size: 18px;
    display: none;
    align-items: center;
    justify-content: center;
}

.message:hover .message-menu-btn {
    display: flex;
}

.message-menu-btn:hover {
    background: #404249;
}

.message-dropdown {
    position: absolute;
    top: 42px;
    right: 0;
    min-width: 190px;
    background: #1f2023;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    z-index: 20;
}

.message-dropdown button {
    width: 100%;
    border: none;
    background: transparent;
    color: #ff8080;
    text-align: left;
    padding: 12px 14px;
    cursor: pointer;
    font-size: 14px;
}

.message-dropdown button:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* ==================================================
   CHAT INPUT
================================================== */

.chat-input-area {
    padding: 0 20px 20px;
    background: #313338;
    flex-shrink: 0;
}

.image-preview-container {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    max-width: 100%;
}

.image-preview {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.remove-image-btn {
    border: none;
    background: #da373c;
    color: #ffffff;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.remove-image-btn:hover {
    background: #bf2f33;
}

.chat-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #383a40;
    border-radius: 16px;
    padding: 10px 12px;
}

.upload-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #4b4d55;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.16s ease;
    flex-shrink: 0;
    font-size: 18px;
}

.upload-btn:hover {
    background: #5865f2;
}

.message-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #ffffff;
    font-size: 15px;
    padding: 10px 4px;
}

.message-input::placeholder {
    color: #a2a7ad;
}

.message-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.send-btn {
    border: none;
    border-radius: 12px;
    background: #5865f2;
    color: #ffffff;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.18s ease;
    flex-shrink: 0;
}

.send-btn:hover:not(:disabled) {
    background: #4752c4;
}

.send-btn:disabled {
    background: #4b4d55;
    color: #a2a7ad;
    cursor: not-allowed;
}

/* ==================================================
   USERS SIDEBAR
================================================== */

.users-list {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
    min-height: 0;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px;
    border-radius: 10px;
    transition: 0.16s ease;
}

.user-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-card.offline {
    opacity: 0.68;
}

.user-card.offline .user-avatar {
    filter: grayscale(100%);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3ba55d;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.user-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.user-status {
    font-size: 12px;
    color: #3ba55d;
    margin-top: 2px;
}

.user-status.offline {
    color: #8f96a3;
}

.current-user-box {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px;
    background: #232428;
    flex-shrink: 0;
}

.current-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #5865f2;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}

.current-user-info {
    min-width: 0;
}

.current-user-label {
    font-size: 12px;
    color: #949ba4;
    margin-bottom: 6px;
}

.current-user-name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    word-break: break-word;
}

.current-user-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ==================================================
   AVATARS
================================================== */

.avatar-image,
.server-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 1200px) {
    .app-layout {
        grid-template-columns: 72px 240px 1fr;
    }

    .users-sidebar {
        display: none;
    }
}

@media (max-width: 860px) {
    .app-layout {
        grid-template-columns: 72px 1fr;
    }

    .channels-sidebar {
        width: 100%;
    }

    .chat-main {
        display: none;
    }
}

@media (max-width: 640px) {
    .app-layout {
        grid-template-columns: 64px 1fr;
    }

    .servers-sidebar {
        padding: 10px 8px;
    }

    .server-btn,
    .sidebar-action-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .channels-header {
        flex-direction: column;
        align-items: stretch;
    }

    .channels-header-actions {
        justify-content: flex-start;
    }

    .auth-card,
    .login-card {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .auth-title,
    .login-title,
    .auth-card h1,
    .login-card h1 {
        font-size: 26px;
    }

    .auth-actions,
    .login-actions {
        flex-direction: column;
    }

    .btn,
    .auth-btn,
    .login-btn {
        width: 100%;
    }
}
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.message-username-wrap,
.user-name-row,
.role-member-name-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
}

.modal-card {
    width: min(1100px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: #1e1f22;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
    padding: 22px;
}

.modal-header,
.role-definition-item,
.role-member-top,
.role-create-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.role-manager-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
    margin-top: 18px;
}

.role-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 16px;
}

.role-definition-list,
.role-members-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.role-member-card,
.role-definition-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 12px;
}

.role-member-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-input {
    background: #111214;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 10px;
    padding: 10px 12px;
}

.role-color-input {
    width: 54px;
    height: 40px;
    border: none;
    background: transparent;
    padding: 0;
}

.member-role-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.member-role-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.danger-btn {
    background: rgba(240, 71, 71, 0.14);
}

.empty-state.compact {
    padding: 10px;
}

@media (max-width: 980px) {
    .role-manager-grid {
        grid-template-columns: 1fr;
    }
}


.message-dropdown button {
    color: #ffffff;
}

.message-dropdown button.danger {
    color: #ff8080;
}

.member-actions-modal {
    width: min(560px, 100%);
}

.modal-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
}

.member-actions-role-list {
    margin-top: 18px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}


.channels-group-title {
    margin: 16px 0 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.7;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.settings-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.settings-section h3 {
    margin: 0;
    font-size: 16px;
}

.settings-inline-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}


.channel-entry {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.voice-members-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: -2px 0 8px 18px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.voice-members-list-inline {
    margin: 14px auto 0;
    padding-left: 0;
    border-left: none;
    max-width: 360px;
    text-align: left;
}

.voice-member-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    font-size: 13px;
    line-height: 1.3;
    color: #b5bac1;
    word-break: break-word;
}

.voice-member-item.self {
    color: #ffffff;
}

.voice-member-item.speaking .voice-member-name {
    color: #57f287;
}

.voice-member-item.muted .voice-member-name {
    color: #f0b6b8;
}

.voice-member-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #5865f2;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}

.voice-member-name {
    flex: 1;
}

.voice-member-indicators {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.voice-member-indicator {
    font-size: 12px;
    line-height: 1;
}

