/* ==================== DISCORD DESIGN SYSTEM & THEME ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

:root {
    --brand: #5865f2;
    --brand-hover: #4752c4;
    --green-positive: #23a55a;
    --green-speaking: #57f287;
    --danger: #da373c;
    --danger-hover: #a12828;
    --warning: #f0b232;

    /* Backgrounds */
    --bg-servers: #1e1f22;
    --bg-channels: #2b2d31;
    --bg-chat: #313338;
    --bg-surface: #383a40;
    --bg-modifier-hover: rgba(255, 255, 255, 0.07);
    --bg-modifier-active: rgba(255, 255, 255, 0.12);
    --bg-modifier-selected: rgba(255, 255, 255, 0.15);
    --bg-profile: #232428;
    --bg-input: #383a40;

    /* Text */
    --text-normal: #dbdee1;
    --text-muted: #949ba4;
    --text-header: #f2f3f5;
    --text-interactive-hover: #dbdee1;
    --text-interactive-active: #ffffff;
    --text-link: #00a8fc;

    /* Borders & Radius */
    --radius-round: 50%;
    --radius-squircle: 16px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-servers);
    color: var(--text-normal);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    user-select: none;
}

/* ==================== 4-COLUMN DISCORD APP LAYOUT ==================== */
.app-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* ==================== COLUMN 1: SERVERS BAR ==================== */
.servers-nav {
    width: 72px;
    background-color: var(--bg-servers);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    gap: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    z-index: 20;
}

.servers-nav::-webkit-scrollbar {
    display: none;
}

.server-icon-btn {
    position: relative;
    width: 48px;
    height: 48px;
    background-color: var(--bg-chat);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-round);
    color: var(--text-normal);
    transition: border-radius var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.server-icon-btn .icon-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.server-icon-btn:hover {
    border-radius: var(--radius-squircle);
    background-color: var(--brand);
    color: #ffffff;
}

.server-icon-btn.active {
    border-radius: var(--radius-squircle);
    background-color: var(--brand);
    color: #ffffff;
}

.server-icon-btn.home-btn {
    background-color: var(--brand);
    color: #ffffff;
}

.server-icon-btn.home-btn:hover {
    background-color: var(--brand-hover);
}

.server-icon-btn.action-btn {
    color: var(--green-positive);
}

.server-icon-btn.action-btn:hover {
    background-color: var(--green-positive);
    color: #ffffff;
}

.server-icon-btn.install-btn {
    color: #fee75c;
}

.server-icon-btn.install-btn:hover {
    background-color: #fee75c;
    color: #111214;
}

/* Pill Indicator on left side of server icon */
.pill-indicator {
    position: absolute;
    left: -12px;
    width: 8px;
    height: 0;
    background-color: #ffffff;
    border-radius: 0 4px 4px 0;
    transition: height var(--transition-fast);
}

.server-icon-btn:hover .pill-indicator {
    height: 20px;
}

.server-icon-btn.active .pill-indicator {
    height: 40px;
}

.nav-separator {
    width: 32px;
    height: 2px;
    background-color: var(--bg-surface);
    border-radius: 1px;
    margin: 4px 0;
}

.servers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: center;
}

/* ==================== COLUMN 2: CHANNELS SIDEBAR ==================== */
.channels-sidebar {
    width: 240px;
    background-color: var(--bg-channels);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-top-left-radius: var(--radius-md);
    overflow: hidden;
    z-index: 15;
}

.server-header {
    height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.server-header:hover {
    background-color: var(--bg-modifier-hover);
}

.server-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-header);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-action-btn {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Channels scroller */
.channels-scroller {
    flex: 1;
    overflow-y: auto;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.channels-scroller::-webkit-scrollbar {
    width: 4px;
}

.channels-scroller::-webkit-scrollbar-thumb {
    background: var(--bg-servers);
    border-radius: 2px;
}

.channel-category {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.add-channel-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition-fast);
}

.add-channel-btn:hover {
    color: var(--text-header);
}

.channels-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Channel Item */
.channel-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.channel-item:hover {
    background-color: var(--bg-modifier-hover);
    color: var(--text-interactive-hover);
}

.channel-item.active {
    background-color: var(--bg-modifier-selected);
    color: var(--text-interactive-active);
}

.channel-icon {
    font-size: 1.1rem;
    opacity: 0.8;
}

.channel-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Connected Voice Members underneath channel item */
.voice-connected-members {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 24px;
    margin-top: 2px;
}

.voice-member-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.825rem;
    color: var(--text-normal);
}

.voice-member-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--brand);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid transparent;
    transition: all 0.15s ease;
}

/* VAD Speaking Glow Indicator */
.voice-member-avatar.speaking {
    border-color: var(--green-speaking);
    box-shadow: 0 0 8px var(--green-speaking);
    animation: speakingPulse 0.8s infinite alternate;
}

@keyframes speakingPulse {
    from { transform: scale(1); box-shadow: 0 0 4px var(--green-speaking); }
    to { transform: scale(1.08); box-shadow: 0 0 12px var(--green-speaking); }
}

.voice-member-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.voice-member-icons {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Active Voice Banner */
.active-voice-banner {
    background-color: rgba(35, 165, 90, 0.12);
    border-top: 1px solid rgba(35, 165, 90, 0.25);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.voice-status-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot-pulse {
    width: 10px;
    height: 10px;
    background-color: var(--green-positive);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green-positive);
}

.voice-status-texts {
    display: flex;
    flex-direction: column;
}

.voice-status-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--green-positive);
    line-height: 1.1;
}

.voice-status-channel {
    font-size: 0.725rem;
    color: var(--text-muted);
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    border-radius: 4px;
    transition: background-color var(--transition-fast);
}

.btn-icon.danger {
    color: var(--danger);
}

.btn-icon.danger:hover {
    background-color: rgba(218, 55, 60, 0.2);
}

/* User Profile Bar */
.user-profile-bar {
    height: 52px;
    background-color: var(--bg-profile);
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color var(--transition-fast);
    flex: 1;
    overflow: hidden;
}

.user-info-group:hover {
    background-color: var(--bg-modifier-hover);
}

.user-avatar-wrap {
    position: relative;
    width: 32px;
    height: 32px;
}

.avatar-badge {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--brand);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.user-status-indicator {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--bg-profile);
}

.user-status-indicator.online {
    background-color: var(--green-positive);
}

.user-name-tags {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    overflow: hidden;
}

.user-display-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-header);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-discriminator {
    font-size: 0.725rem;
    color: var(--text-muted);
}

.profile-actions {
    display: flex;
    align-items: center;
}

.profile-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.profile-action-btn:hover {
    background-color: var(--bg-modifier-hover);
    color: var(--text-header);
}

.profile-action-btn.off {
    color: var(--danger);
}

/* ==================== COLUMN 3: MAIN CHAT & VOICE AREA ==================== */
.main-content-area {
    flex: 1;
    background-color: var(--bg-chat);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Header */
.channel-header {
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    z-index: 10;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.channel-hash {
    font-size: 1.35rem;
    color: var(--text-muted);
    font-weight: 600;
}

.channel-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-header);
    white-space: nowrap;
}

.header-divider {
    width: 1px;
    height: 16px;
    background-color: var(--bg-surface);
    margin: 0 4px;
}

.channel-topic {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.15rem;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.header-icon-btn:hover {
    color: var(--text-header);
    background-color: var(--bg-modifier-hover);
}

.header-icon-btn.active {
    color: var(--text-header);
}

/* Voice & Stream Overlay Grid */
.voice-stream-area {
    position: relative;
    background-color: #111214;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 48vh;
    border-bottom: 2px solid var(--bg-servers);
}

.voice-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    min-height: 140px;
}

.voice-box {
    background-color: var(--bg-channels);
    border-radius: var(--radius-md);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.voice-box.speaking {
    border-color: var(--green-speaking);
    box-shadow: 0 0 16px rgba(87, 242, 135, 0.3);
}

.voice-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.voice-large-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--brand);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.voice-box.speaking .voice-large-avatar {
    box-shadow: 0 0 16px var(--green-speaking);
}

.voice-box-overlay {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.participant-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
}

.voice-box-status {
    font-size: 0.8rem;
}

.voice-controls-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.voice-control-btn {
    background-color: var(--bg-surface);
    border: none;
    color: var(--text-header);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--transition-fast);
}

.voice-control-btn:hover {
    background-color: var(--bg-modifier-selected);
    transform: translateY(-2px);
}

.voice-control-btn.disconnect-btn {
    background-color: var(--danger);
    color: #ffffff;
}

.voice-control-btn.disconnect-btn:hover {
    background-color: var(--danger-hover);
}

/* Messages Scroller */
.messages-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 16px;
    user-select: text;
}

.messages-container::-webkit-scrollbar {
    width: 8px;
}

.messages-container::-webkit-scrollbar-thumb {
    background: var(--bg-servers);
    border-radius: 4px;
}

.channel-welcome-banner {
    margin-bottom: 24px;
}

.welcome-icon-box {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background-color: var(--bg-surface);
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.channel-welcome-banner h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-header);
    margin-bottom: 6px;
}

.channel-welcome-banner p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Message Feed */
.messages-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message-card {
    display: flex;
    gap: 16px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
}

.message-card:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--brand);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.message-content-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.message-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.message-author {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-header);
}

.message-timestamp {
    font-size: 0.725rem;
    color: var(--text-muted);
}

.message-text {
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--text-normal);
    word-break: break-word;
}

/* Chat Input Field */
.chat-input-area {
    padding: 0 16px 24px;
    flex-shrink: 0;
}

.chat-input-wrapper {
    background-color: var(--bg-input);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
}

.chat-attachment-btn {
    background-color: var(--bg-surface);
    border: none;
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.chat-attachment-btn:hover {
    background-color: var(--text-normal);
    color: var(--bg-chat);
}

.chat-input-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-normal);
    font-size: 0.95rem;
    padding: 12px 0;
}

.chat-input-field::placeholder {
    color: var(--text-muted);
}

.chat-input-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.emoji-picker-btn,
.send-message-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
}

.emoji-picker-btn:hover,
.send-message-btn:hover {
    color: var(--text-header);
}

.send-message-btn {
    color: var(--brand);
}

/* ==================== COLUMN 4: MEMBERS LIST ==================== */
.members-sidebar {
    width: 240px;
    background-color: var(--bg-channels);
    display: flex;
    flex-direction: column;
    padding: 16px 8px;
    overflow-y: auto;
    flex-shrink: 0;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.members-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.members-category-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    padding: 4px 8px;
}

.members-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.member-item:hover {
    background-color: var(--bg-modifier-hover);
}

.member-avatar-wrap {
    position: relative;
    width: 32px;
    height: 32px;
}

.member-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--brand);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.member-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--bg-channels);
}

.member-status-dot.online {
    background-color: var(--green-positive);
}

.member-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-normal);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== MODALS ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: modalFadeIn 0.2s ease;
}

.modal-card {
    background-color: var(--bg-chat);
    width: 100%;
    max-width: 440px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 24px;
    text-align: center;
}

.modal-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-header);
    margin-bottom: 8px;
}

.modal-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.modal-body {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-body label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.modal-body input[type="text"] {
    background-color: var(--bg-servers);
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.95rem;
    color: var(--text-normal);
    outline: none;
    transition: border-color var(--transition-fast);
}

.modal-body input[type="text"]:focus {
    border-color: var(--brand);
}

/* Channel type selector radio card */
.channel-type-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-card {
    background-color: var(--bg-channels);
    padding: 12px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

.radio-card:hover {
    background-color: var(--bg-surface);
}

.radio-card.active {
    border-color: var(--brand);
    background-color: rgba(88, 101, 242, 0.1);
}

.type-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.type-icon {
    font-size: 1.5rem;
}

.type-info strong {
    font-size: 0.95rem;
    color: var(--text-header);
}

.type-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Color Picker */
.color-picker-group {
    display: flex;
    gap: 8px;
}

.color-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.color-dot:hover {
    transform: scale(1.15);
}

.color-dot.active {
    border-color: #ffffff;
    box-shadow: 0 0 8px #ffffff;
}

/* Mic meter */
.mic-meter-bar {
    height: 12px;
    background-color: var(--bg-servers);
    border-radius: 6px;
    overflow: hidden;
}

.mic-meter-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--green-positive), var(--green-speaking));
    transition: width 0.05s ease;
}

.modal-footer {
    background-color: var(--bg-channels);
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-normal);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.btn-text:hover {
    text-decoration: underline;
}

.btn-submit {
    background-color: var(--brand);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.btn-submit:hover {
    background-color: var(--brand-hover);
}

/* ==================== TOASTS ==================== */
.discord-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2000;
    pointer-events: none;
}

.discord-toast {
    background-color: var(--bg-servers);
    border: 1px solid var(--bg-surface);
    color: var(--text-header);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toastSlideIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== UTILS & ANIMATIONS ==================== */
.hidden {
    display: none !important;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes toastSlideIn {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .members-sidebar {
        display: none;
    }
    .channels-sidebar {
        width: 200px;
    }
}
