@import url("fonts/vazirmatn/vazirmatn.css");

:root,
[data-theme="dark"] {
    color-scheme: dark;
    --bg: #090e18;
    --surface: #101724;
    --surface-2: #141d2c;
    --bg-elevated: #0c121e;
    --bg-panel: #101724;
    --bg-soft: rgba(255, 255, 255, 0.04);
    --bg-hover: rgba(255, 255, 255, 0.07);
    --bg-active: rgba(102, 227, 205, 0.12);
    --text: #f3f6fa;
    --text-muted: #99a7b9;
    --text-dim: #5f7086;
    --border: rgba(255, 255, 255, 0.08);
    --line: rgba(255, 255, 255, 0.08);
    --accent: #66e3cd;
    --accent-dark: #09251f;
    --accent-hover: #93f3e2;
    --accent-soft: rgba(102, 227, 205, 0.12);
    --accent-glow: rgba(102, 227, 205, 0.25);
    --primary: #66e3cd;
    --tertiary: #a7cbf8;
    --danger: #f43f5e;
    --danger-soft: rgba(244, 63, 94, 0.14);
    --success: #10b981;
    --success-soft: rgba(16, 185, 129, 0.14);
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    --radius: 12px;
    --radius-pill: 9999px;
    --font: "Vazirmatn", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-fa: "Vazirmatn", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --rail-width: 68px;
    --channels-width: 270px;
    --members-width: 250px;
    --scrollbar-thumb: rgba(255, 255, 255, 0.12);
    --scrollbar-thumb-hover: rgba(255, 255, 255, 0.22);
    --scrollbar-track: transparent;
    --bento-bg: #101724;
    --bento-card-bg: #141d2c;
    --bento-border: 1px solid rgba(255, 255, 255, 0.08);
    --bento-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] {
    /* Light theme is permanently disabled - fallback to dark theme */
    color-scheme: dark;
}

html,
body,
input,
button,
select,
textarea {
    font-family: var(--font);
}

html,
body {
    margin: 0;
    height: 100%;
    width: 100%;
    background: var(--bg);
    color: var(--text);
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
    background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
    background: transparent;
}

html.locale-fa,
html.locale-fa body,
html.locale-fa input,
html.locale-fa button,
html.locale-fa select,
html.locale-fa textarea {
    font-family: var(--font-fa);
}

body {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#app,
.app-layout-host {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

a, button { font: inherit; }
button {
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.nexus-icon {
    display: block;
    flex-shrink: 0;
}

/* ===== App shell ===== */
.vx-shell {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-columns: var(--rail-width) minmax(0, 1fr);
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
}

.vx-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 0.5rem 0.75rem;
    background: var(--bg-elevated);
    border-inline-end: 1px solid var(--border);
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 10;
}

.vx-rail__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.vx-rail__pill {
    position: absolute;
    inset-inline-start: -0.5rem;
    width: 4px;
    height: 0;
    border-radius: 0 4px 4px 0;
    background: var(--text);
    transition: height 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, background-color 0.2s ease;
    opacity: 0;
    pointer-events: none;
}
[dir="rtl"] .vx-rail__pill {
    border-radius: 4px 0 0 4px;
}

.vx-rail__item:hover .vx-rail__pill {
    height: 18px;
    opacity: 0.8;
}

.vx-rail__item.is-active .vx-rail__pill {
    height: 38px;
    opacity: 1;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(102, 227, 205, 0.6);
}

.vx-rail__divider {
    width: 32px;
    height: 1px;
    background: var(--border);
    border-radius: 999px;
    margin: 0.25rem 0;
    flex-shrink: 0;
}

.vx-rail__brand,
.vx-rail__btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}

.vx-rail__brand,
.vx-rail__btn--home.is-active {
    background: var(--accent);
    color: var(--accent-dark);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(102, 227, 205, 0.25);
}

.vx-rail__nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    align-items: center;
}

.vx-rail__btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-radius: 14px;
    transform: none;
    box-shadow: none;
}

.vx-rail__btn.is-active {
    background: rgba(102, 227, 205, 0.16);
    color: var(--accent);
    border-radius: 14px;
    border: 1px solid rgba(102, 227, 205, 0.25);
    box-shadow: none;
}

.vx-rail__btn:disabled {
    opacity: 0.32;
    cursor: not-allowed;
    pointer-events: none;
    color: var(--text-dim);
}

.vx-rail__btn--add {
    border: 1.5px dashed rgba(102, 227, 205, 0.4);
    border-radius: 14px;
    background: transparent;
    color: var(--accent);
    transition: all 0.2s ease;
}
.vx-rail__btn--add:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent-dark);
    background: var(--accent);
    box-shadow: 0 4px 14px rgba(102, 227, 205, 0.3);
}

.vx-rail__btn--server {
    border-radius: 24px;
    overflow: hidden;
    padding: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
    border: 1px solid var(--border);
}
.vx-rail__btn--server.is-active {
    border-radius: 16px;
    border-color: rgba(255, 255, 255, 0.2);
}
.vx-rail__btn--server:hover {
    border-radius: 16px;
}
.vx-rail__server-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vx-rail__server-initials {
    font-size: 0.85rem;
    font-weight: 700;
}
.vx-rail__spacer { flex: 1; }

.vx-rail__avatar {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.vx-chat,
.vx-voice,
.vx-settings {
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: grid;
    overflow: hidden;
}

.vx-chat {
    grid-template-columns: var(--channels-width) minmax(0, 1fr) var(--members-width);
}

.vx-chat:not(.has-members) {
    grid-template-columns: var(--channels-width) minmax(0, 1fr);
}

.vx-voice {
    grid-template-columns: var(--channels-width) minmax(0, 1fr);
}

.vx-settings {
    grid-template-columns: 280px minmax(0, 1fr);
    background: color-mix(in srgb, var(--bg) 92%, black);
}

.vx-channels,
.vx-members,
.vx-settings__nav {
    background: var(--bg-panel);
    border-inline-end: 1px solid var(--border);
    min-height: 0;
    overflow: auto;
}

.vx-channels {
    display: flex;
    flex-direction: column;
    padding: 0.85rem 0.7rem 0.65rem;
    gap: 0.85rem;
}

.vx-members {
    display: flex;
    flex-direction: column;
    padding: 0.85rem 0.7rem 1rem;
    gap: 0.85rem;
}

.vx-channels__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.45rem 0.85rem;
    border-bottom: 1px solid var(--border);
    gap: 0.5rem;
}

.vx-channels__header-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.vx-channels__header-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1;
}

.vx-channels__server-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.vx-channels__server-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vx-channels__header-text {
    min-width: 0;
    overflow: hidden;
}

.vx-channels__header-text strong,
.vx-channels__header strong { display: block; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vx-channels__header-text span,
.vx-channels__header span { color: var(--text-muted); font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

.vx-channels__group { display: flex; flex-direction: column; gap: 0.2rem; }
.vx-channels__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-dim);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.35rem 0.45rem;
}

.vx-channel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    width: 100%;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    color: var(--text-muted);
    text-align: start;
    position: relative;
    transition: all 0.15s ease;
}
.vx-channel__start {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}
.vx-channel__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vx-channel:hover { background: var(--bg-hover); color: var(--text); }
.vx-channel.is-active {
    background: var(--bg-active);
    color: var(--text);
    font-weight: 600;
}


.vx-channel.has-unread {
    color: #ffffff !important;
    font-weight: 700;
}
.vx-channel.has-unread .vx-channel__name {
    color: #ffffff !important;
    font-weight: 700;
}
html[data-theme="light"] .vx-channel.has-unread,
.theme-light .vx-channel.has-unread {
    color: #0f172a !important;
}
html[data-theme="light"] .vx-channel.has-unread .vx-channel__name,
.theme-light .vx-channel.has-unread .vx-channel__name {
    color: #0f172a !important;
}

.vx-channel__unread-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.45);
    flex-shrink: 0;
    margin-inline-start: 0.4rem;
    animation: vx-badge-pop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.vx-rail__unread-badge {
    position: absolute;
    bottom: -2px;
    inset-inline-end: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 10px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    border: 2px solid #07080b;
    pointer-events: none;
    z-index: 2;
    animation: vx-badge-pop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes vx-badge-pop {
    from {
        transform: scale(0.6);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.vx-voice-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.85rem 0.35rem 1.85rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.vx-user-panel {
    margin-top: auto;
    padding: 0.65rem;
    border-radius: 14px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
}
/* ==========================================================================
   Lightweight Theme Overrides (when html.glass-enabled is active)
   ========================================================================== */
html.glass-enabled .vx-modal__dialog,
html.glass-enabled .vx-modal {
    background: #101724 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
}

.vx-user-panel__voice {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    background: #0d1420;
    border: 1px solid rgba(102, 227, 205, 0.22);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: all 0.2s ease;
    cursor: default;
    min-width: 0;
}

.vx-user-panel__voice:hover {
    border-color: rgba(102, 227, 205, 0.4);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), 0 0 12px rgba(102, 227, 205, 0.1);
}

.vx-user-panel__voice.is-connecting {
    background: #141720;
    border-color: rgba(245, 158, 11, 0.28);
}

.vx-user-panel__voice.is-connecting:hover {
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), 0 0 12px rgba(245, 158, 11, 0.12);
}

.vx-user-panel__voice-signal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vx-voice-connecting-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(245, 158, 11, 0.25);
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: vx-spin 0.8s linear infinite;
}

.vx-signal-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 15px;
    width: 14px;
}

.vx-signal-bars .bar {
    width: 3px;
    border-radius: 1.5px;
    background: var(--accent, #66e3cd);
    box-shadow: 0 0 5px rgba(102, 227, 205, 0.45);
}

.vx-signal-bars .bar-1 { height: 5px; }
.vx-signal-bars .bar-2 { height: 10px; }
.vx-signal-bars .bar-3 { height: 15px; }

.vx-signal-bars.is-good .bar {
    background: var(--accent, #66e3cd);
    box-shadow: 0 0 5px rgba(102, 227, 205, 0.45);
}

.vx-signal-bars.is-fair .bar-3 { background: rgba(255, 255, 255, 0.15); box-shadow: none; }
.vx-signal-bars.is-fair .bar-1, .vx-signal-bars.is-fair .bar-2 { background: #f59e0b; box-shadow: 0 0 5px rgba(245, 158, 11, 0.45); }
.vx-signal-bars.is-poor .bar-2, .vx-signal-bars.is-poor .bar-3 { background: rgba(255, 255, 255, 0.15); box-shadow: none; }
.vx-signal-bars.is-poor .bar-1 { background: var(--danger, #f43f5e); box-shadow: 0 0 5px rgba(244, 63, 94, 0.45); }

.vx-user-panel__voice-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    gap: 3px;
    line-height: 1.35;
}

.vx-user-panel__voice-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    min-width: 0;
    width: 100%;
}

.vx-user-panel__voice-status {
    font-size: 0.78rem;
    font-weight: 700;
    color: #66e3cd !important;
    text-shadow: 0 0 8px rgba(102, 227, 205, 0.35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
    min-width: 0;
    flex: 1;
}

.vx-user-panel__voice.is-connecting .vx-user-panel__voice-status {
    color: #f59e0b !important;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.35);
}

.vx-user-panel__ping-pill {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.08rem 0.4rem;
    border-radius: 999px;
    background: rgba(102, 227, 205, 0.12);
    color: #66e3cd;
    border: 1px solid rgba(102, 227, 205, 0.28);
    line-height: 1.1;
    display: inline-flex;
    align-items: center;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

.vx-user-panel__ping-pill.is-good {
    background: rgba(102, 227, 205, 0.12);
    color: #66e3cd;
    border-color: rgba(102, 227, 205, 0.28);
}

.vx-user-panel__ping-pill.is-fair {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.28);
}

.vx-user-panel__ping-pill.is-poor {
    background: rgba(244, 63, 94, 0.12);
    color: var(--danger, #f43f5e);
    border-color: rgba(244, 63, 94, 0.28);
}

.vx-user-panel__voice-sub {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.vx-user-panel__voice-channel {
    color: #f8fafc;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex-shrink: 1;
}

.vx-user-panel__voice-sep {
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    font-size: 0.65rem;
}

.vx-user-panel__voice-server {
    color: var(--text-muted, #94a3b8);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex-shrink: 2;
}

.vx-ping-loading {
    font-size: 0.74rem;
    color: #60a5fa;
}

.vx-channel-connecting-badge {
    margin-inline-start: auto;
    font-size: 0.68rem;
    font-weight: 600;
    color: #eab308;
}

.vx-channel.is-connecting {
    opacity: 0.85;
}

.vx-spinner--xs {
    width: 14px;
    height: 14px;
    border-width: 2px;
}

.vx-user-panel__end {
    color: #f87171;
    margin-inline-start: auto;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.25);
    transition: all 0.18s ease;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

.vx-user-panel__end:hover {
    background: #f43f5e;
    color: #ffffff;
    border-color: #f43f5e;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.45);
    transform: scale(1.08);
}
.vx-user-panel__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
}
.vx-user-panel__identity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
    cursor: pointer;
    border-radius: 8px;
    padding: 0.2rem 0.25rem;
    transition: background 0.15s ease;
    position: relative;
}
.vx-user-panel__identity:hover {
    background: var(--bg-hover);
}
.vx-user-panel__copied-toast {
    position: absolute;
    bottom: calc(100% + 8px);
    inset-inline-start: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    color: #34d399;
    background: #0d1424;
    border: 1px solid rgba(52, 211, 153, 0.4);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 10px rgba(52, 211, 153, 0.15);
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    animation: vx-toast-pop 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.vx-user-panel__copied-toast::after {
    content: '';
    position: absolute;
    top: 100%;
    inset-inline-start: 14px;
    border: 4px solid transparent;
    border-top-color: #0d1424;
}
html[data-theme="light"] .vx-user-panel__copied-toast,
.theme-light .vx-user-panel__copied-toast {
    background: #ffffff;
    color: #059669;
    border-color: rgba(5, 150, 105, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
html[data-theme="light"] .vx-user-panel__copied-toast::after,
.theme-light .vx-user-panel__copied-toast::after {
    border-top-color: #ffffff;
}
@keyframes vx-toast-pop {
    from {
        opacity: 0;
        transform: translateY(4px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.vx-user-panel__meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}
.vx-user-panel__meta strong {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.vx-user-panel__meta span {
    color: var(--text-dim);
    font-size: 0.72rem;
    line-height: 1.2;
}
.vx-user-panel__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    flex-shrink: 0;
}
.vx-user-panel__actions .vx-icon-btn {
    padding: 0.35rem;
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.vx-avatar {
    position: relative;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #fff; font-weight: 700; font-size: 0.8rem; flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.vx-avatar--sm { width: 32px; height: 32px; font-size: 0.7rem; }
.vx-avatar--md { width: 44px; height: 44px; min-width: 44px; min-height: 44px; font-size: 0.85rem; }
.vx-avatar--xs { width: 24px; height: 24px; font-size: 0.6rem; }
.vx-avatar__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.vx-status-dot {
    position: absolute; inset-inline-end: -1px; bottom: -1px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--text-dim); border: 2px solid var(--bg-panel);
}
.vx-status-dot.is-online { background: var(--success); }

.vx-icon-btn {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--text-muted);
}
.vx-icon-btn:hover { background: var(--bg-hover); color: var(--text); }

.vx-chat-main, .vx-voice-stage, .vx-settings__main {
    min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden;
    background: var(--bg-elevated);
    position: relative;
}

.vx-chat-header, .vx-voice-top, .vx-settings__header {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
}

.vx-chat-header__title, .vx-voice-top__title {
    display: flex; align-items: center; gap: 0.65rem; min-width: 0;
}
.vx-chat-header__title strong, .vx-voice-top__title strong { display: block; }
.vx-chat-header__title span { color: var(--text-muted); font-size: 0.8rem; }
.vx-chat-header__tools, .vx-voice-top__tools { display: inline-flex; align-items: center; gap: 0.35rem; }

.vx-search {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 0.7rem; border-radius: 999px;
    background: var(--bg-soft); color: var(--text-dim); min-width: 160px;
}
.vx-search input {
    border: 0; outline: 0; background: transparent; color: var(--text); width: 100%;
}

.vx-messages { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 1.5rem 1.5rem clamp(2rem, 4vh, 3.5rem); scroll-padding-bottom: 3rem; }

/* -------------------------------------------------------------
   BENTO GRID WELCOME HUB
   ------------------------------------------------------------- */
.vx-bento-welcome {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 960px;
}

.vx-bento-card {
    background: var(--bento-card-bg);
    border: var(--bento-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}
.vx-bento-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--bento-shadow);
    border-color: rgba(255, 255, 255, 0.15);
}

.vx-bento-card--hero {
    grid-column: span 12;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(15, 22, 41, 0.85) 60%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 1.75rem;
}
.vx-bento-hero__glow {
    position: absolute;
    top: -50px;
    inset-inline-start: -50px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 70%);
    pointer-events: none;
}
.vx-bento-hero__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.vx-bento-badge {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, #66e3cd, #2dd4bf);
    color: #09251f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(102, 227, 205, 0.25);
    flex-shrink: 0;
}
.vx-bento-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
}
.vx-bento-hero__header h1 {
    margin: 0.15rem 0 0;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}
.vx-bento-hero__desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 1.25rem;
    max-width: 680px;
}
.vx-bento-hero__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vx-bento-card--stats {
    grid-column: span 4;
}
.vx-bento-card--voice {
    grid-column: span 4;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(23, 34, 59, 0.6));
}
.vx-bento-card--voice:hover {
    border-color: var(--accent);
}
.vx-bento-card--voice.is-connected {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(23, 34, 59, 0.6));
}
.vx-bento-card--tips {
    grid-column: span 4;
}

@media (max-width: 900px) {
    .vx-bento-card--stats,
    .vx-bento-card--voice,
    .vx-bento-card--tips {
        grid-column: span 12;
    }
}

.vx-bento-card__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}
.vx-bento-card__icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vx-bento-card__icon--emerald {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}
.vx-bento-card__icon--indigo {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}
.vx-bento-card__icon--amber {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}
.vx-bento-card__title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    flex: 1;
}

.vx-live-beacon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: vx-beacon-pulse 1.8s infinite;
}
@keyframes vx-beacon-pulse {
    0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 4px #10b981; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px #10b981; }
    100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 4px #10b981; }
}

.vx-bento-stat__number {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}
.vx-bento-stat__number strong {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}
.vx-bento-stat__number span {
    font-size: 0.9rem;
    color: var(--text-dim);
}
.vx-bento-stat__label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.vx-dot--online {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
}

.vx-bento-voice__info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.vx-bento-voice__info strong {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vx-voice-waveform-preview {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
}
.vx-voice-waveform-preview .wv-bar {
    width: 3px;
    border-radius: 2px;
    background: var(--accent);
    animation: vx-wv-bounce 1s ease-in-out infinite;
}
.vx-voice-waveform-preview .wv-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.vx-voice-waveform-preview .wv-bar:nth-child(2) { height: 14px; animation-delay: 0.3s; }
.vx-voice-waveform-preview .wv-bar:nth-child(3) { height: 10px; animation-delay: 0.15s; }
.vx-voice-waveform-preview .wv-bar:nth-child(4) { height: 16px; animation-delay: 0.4s; }
.vx-voice-waveform-preview .wv-bar:nth-child(5) { height: 8px; animation-delay: 0.25s; }
@keyframes vx-wv-bounce {
    0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
    50% { transform: scaleY(1); opacity: 1; }
}

.vx-bento-voice__cta {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: auto;
}

.vx-bento-tip-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.vx-kbd {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: inherit;
    line-height: 1;
    color: var(--text);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.vx-user-panel__avatar-wrap {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}
.vx-user-status-dot {
    position: absolute;
    bottom: -1px;
    inset-inline-end: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--bg-soft);
    background: var(--text-dim);
}
.vx-user-status-dot.is-online {
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.vx-welcome { max-width: 36rem; margin-bottom: 1.5rem; }
.vx-welcome__icon { font-size: 2.4rem; margin-bottom: 0.5rem; }
.vx-welcome h1 { margin: 0 0 0.45rem; font-size: 1.7rem; letter-spacing: -0.03em; }
.vx-welcome p { margin: 0 0 1rem; color: var(--text-muted); }

.vx-dm-welcome {
    padding: 1.5rem 0 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
html[data-theme="light"] .vx-dm-welcome,
.theme-light .vx-dm-welcome {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.vx-dm-welcome__title {
    margin: 0 0 0.4rem;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}
.vx-dm-welcome__subtitle {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.vx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.25rem;
    height: 40px;
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.vx-btn--sm {
    height: 32px;
    padding: 0 0.9rem;
    font-size: 0.78rem;
    border-radius: 9999px;
}

.vx-btn--xs {
    height: 26px;
    padding: 0 0.7rem;
    font-size: 0.72rem;
    border-radius: 9999px;
}

.vx-btn--primary {
    background: var(--accent, #66e3cd);
    color: var(--accent-dark, #09251f);
    border: 1px solid var(--accent, #66e3cd);
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(102, 227, 205, 0.25);
}

.vx-btn--primary:hover:not(:disabled) {
    background: var(--accent-hover, #93f3e2);
    border-color: var(--accent-hover, #93f3e2);
    color: var(--accent-dark, #09251f);
    box-shadow: 0 6px 22px rgba(102, 227, 205, 0.38);
    transform: translateY(-1px);
}

.vx-btn--primary:active:not(:disabled) {
    transform: translateY(0);
}

.vx-btn--primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.vx-btn--primary .vx-spinner {
    border-color: rgba(9, 37, 31, 0.3);
    border-top-color: #09251f;
}

.vx-btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.11);
}

.vx-btn--ghost:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.vx-btn--danger {
    background: rgba(244, 63, 94, 0.16);
    color: #fda4af;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.vx-btn--danger:hover:not(:disabled) {
    background: #f43f5e;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.35);
    transform: translateY(-1px);
}

.vx-date-sep {
    display: flex; align-items: center; gap: 0.85rem; margin: 1rem 0;
    color: var(--text-dim); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.vx-date-sep::before, .vx-date-sep::after {
    content: ""; flex: 1; height: 1px; background: var(--border);
}

.vx-message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.35rem 1rem;
    margin-top: 0.45rem;
    border-radius: 6px;
    min-width: 0;
    transition: background 0.15s ease;
}
.vx-message:first-of-type {
    margin-top: 0.2rem;
}
.vx-message:hover {
    background: rgba(255, 255, 255, 0.03);
}
.vx-message__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    padding: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.vx-message__body header {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
    padding-bottom: 0;
}
.vx-message__username {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--primary, #bbc3ff);
    cursor: pointer;
}
.vx-message__username:hover {
    text-decoration: underline;
}
.vx-message__body time {
    color: var(--text-dim, #8e8fa2);
    direction: ltr;
    font-size: 0.68rem;
    unicode-bidi: isolate;
}
.vx-message__body p {
    margin: 0;
    line-height: 1.48;
    font-size: 0.92rem;
    color: var(--text, #e1e1ef);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}
+.vx-message__edited {
    color: var(--text-dim, #8e8fa2);
    font-size: 0.66rem;
}
.vx-message__actions {
    display: inline-flex;
    gap: 0.2rem;
    margin-inline-start: auto;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.vx-message:hover .vx-message__actions,
.vx-message:focus-within .vx-message__actions {
    opacity: 1;
}
.vx-message__actions button {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface-2, rgba(255, 255, 255, 0.05));
    color: var(--text-dim);
    cursor: pointer;
}
.vx-message__actions button:hover {
    color: var(--text);
    border-color: var(--primary);
}
.vx-message__actions button.is-danger:hover {
    color: #ff7777;
    border-color: rgba(255, 90, 90, 0.6);
}
.vx-message__actions button:disabled {
    cursor: wait;
    opacity: 0.5;
}
.vx-message__body p.vx-message__deleted {
    color: var(--text-dim);
    font-style: italic;
}
.vx-message-edit {
    display: grid;
    gap: 0.45rem;
}
.vx-message-edit textarea {
    width: min(100%, 720px);
    resize: vertical;
    min-height: 64px;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--primary);
    border-radius: 8px;
    outline: none;
    background: var(--surface-2, rgba(255, 255, 255, 0.05));
    color: var(--text);
    font: inherit;
}
.vx-message-edit__actions {
    display: flex;
    gap: 0.4rem;
}
@media (hover: none) {
    .vx-message__actions {
        opacity: 1;
    }
}

.vx-mention { color: var(--accent); font-weight: 650; background: var(--accent-soft); padding: 0 0.25rem; border-radius: 4px; }
.vx-hashtag { color: var(--accent); }

/* Message Attachments */
.vx-attachments-single {
    margin-top: 0.5rem;
    max-width: 420px;
}

.vx-attachment-image-card {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    max-width: 420px;
    max-height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.vx-attachment-image-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.2);
}

.vx-attachment-image-card img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 380px;
    display: block;
    object-fit: contain;
    background: var(--bg-soft);
    border-radius: 12px;
}

.vx-attachment-ondemand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--border);
    border-radius: 14px;
    max-width: 420px;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.vx-attachment-ondemand:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: var(--accent, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.vx-ondemand-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vx-ondemand-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.vx-ondemand-filename {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text, #f1f5f9);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vx-ondemand-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
}

.vx-ondemand-ext {
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent, #3b82f6);
}

.vx-ondemand-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--accent, #3b82f6);
    color: #fff;
    border: 0;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, transform 0.15s ease;
}

.vx-ondemand-action-btn:hover {
    background: var(--accent-hover, #2563eb);
    transform: scale(1.03);
}

.vx-attachments-preview-wrap {
    margin-top: 0.5rem;
    position: relative;
    max-width: 420px;
    display: inline-block;
}

.vx-attachments-collapsed-image,
.vx-attachments-collapsed-video {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.vx-attachments-collapsed-file {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.vx-attachments-expand-badge {
    position: absolute;
    bottom: 12px;
    inset-inline-end: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    background: rgba(15, 20, 32, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.vx-attachments-expand-badge:hover {
    background: var(--accent, #6366f1);
    border-color: var(--accent, #6366f1);
    transform: scale(1.08);
    box-shadow: 0 6px 22px rgba(99, 102, 241, 0.5);
}

.vx-attachments-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    background: var(--bg-soft, #1e2433);
    color: var(--text-main, #f0f2f8);
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
    cursor: pointer;
    transition: all 0.2s ease;
}

.vx-attachments-expand-btn:hover {
    background: var(--accent-soft, rgba(99, 102, 241, 0.15));
    border-color: var(--accent, #6366f1);
    color: var(--accent, #6366f1);
}

/* Expanded Gallery Container */
.vx-attachments-expanded-box {
    margin-top: 0.65rem;
    padding: 0.85rem;
    background: rgba(18, 24, 38, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    max-width: 520px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    animation: vx-fadeIn 0.22s ease-out;
}

@keyframes vx-fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.vx-attachments-expanded-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.65rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vx-attachments-expanded-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.84rem;
    font-weight: 650;
    color: var(--text-dim, #94a3b8);
}

.vx-attachments-close-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-dim, #cbd5e1);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.15s ease;
}

.vx-attachments-close-btn:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.vx-attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.vx-attachments-grid:last-child {
    margin-bottom: 0;
}

.vx-attachments-grid__item {
    border: 0;
    padding: 0;
    background: var(--bg-soft, #151a28);
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.vx-attachments-grid__item:hover {
    transform: scale(1.04);
    border-color: var(--accent, #6366f1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.vx-attachments-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vx-media-video {
    margin-top: 0.65rem;
    max-width: 440px;
    border-radius: 14px;
    overflow: hidden;
    background: #090b14;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 32px rgba(0,0,0,0.4);
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.vx-media-video:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 36px rgba(0,0,0,0.5);
}
.vx-media-video video {
    width: 100%;
    display: block;
    max-height: 320px;
    min-height: 180px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #000;
}
.vx-media-video__open {
    position: absolute;
    inset: 0;
    z-index: 1;
    border: 0;
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease;
}
.vx-media-video__open:hover {
    background: rgba(0, 0, 0, 0.35);
}
.vx-media-video__play {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(15, 20, 32, 0.82);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.vx-media-video__open:hover .vx-media-video__play {
    transform: scale(1.12);
    background: var(--accent, #6366f1);
    border-color: var(--accent, #6366f1);
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.5);
}
.vx-media-video__top-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}
.vx-media-video__meta-chip {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(10, 14, 24, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
    font-size: 0.76rem;
    font-weight: 500;
    max-width: 80%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.vx-media-video__meta-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vx-media-video__dl-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(10, 14, 24, 0.75);
    color: #f1f5f9;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
    flex-shrink: 0;
}
.vx-media-video__dl-btn:hover {
    background: var(--accent, #6366f1);
    border-color: var(--accent, #6366f1);
    color: #fff;
    transform: scale(1.1);
}
.vx-media-video__name { padding: .55rem .75rem .7rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; color: var(--text-dim); }
.vx-media-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(3,6,16,.88);
    backdrop-filter: blur(12px);
    animation: vx-media-modal-in .16s ease-out;
}

.vx-media-modal__panel {
    position: relative;
    width: auto;
    max-width: min(92vw, 1150px);
    max-height: 92vh;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-soft);
    box-shadow: 0 28px 90px rgba(0,0,0,.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}

.vx-media-modal__top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.25rem 0.5rem 0.65rem;
    box-sizing: border-box;
    gap: 0.75rem;
    z-index: 10;
}

.vx-media-modal__file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--text-muted, #94a3b8);
    font-size: 0.85rem;
    font-weight: 500;
}

.vx-media-modal__file-name {
    color: var(--text, #f1f5f9);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vx-media-modal__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.vx-media-modal__save-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: var(--text, #f1f5f9);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    backdrop-filter: blur(8px);
}

.vx-media-modal__save-btn:hover {
    background: var(--accent, #3b82f6);
    color: #fff;
    border-color: var(--accent, #3b82f6);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.vx-media-modal__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.vx-media-modal__display {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: calc(90vh - 4.5rem);
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.vx-media-modal__panel.has-gallery .vx-media-modal__display {
    max-height: calc(90vh - 10rem);
}

.vx-media-modal__image, .vx-media-modal__video {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    background: #05070d;
    box-shadow: 0 8px 30px rgba(0,0,0,.45);
    box-sizing: border-box;
}

.vx-media-modal__video {
    width: min(100%, 1000px);
}

.vx-media-modal__close {
    position: static;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted, #94a3b8);
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    backdrop-filter: blur(8px);
}

.vx-media-modal__close:hover {
    color: #fff;
    background: rgba(220, 38, 38, 0.85);
    border-color: rgba(220, 38, 38, 0.85);
    transform: scale(1.05);
}

.vx-media-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.75);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.vx-media-nav:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.vx-media-nav--prev,
.vx-media-nav--left {
    left: 0.75rem;
    right: auto;
}

.vx-media-nav--next,
.vx-media-nav--right {
    right: 0.75rem;
    left: auto;
}

.vx-media-modal__strip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 0.5rem 0.25rem;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
}

.vx-media-thumb {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    border: 2px solid transparent;
    padding: 0;
    background: #0b0f19;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.55;
    transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.vx-media-thumb img,
.vx-media-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vx-media-thumb:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.vx-media-thumb.is-active {
    opacity: 1;
    border-color: var(--accent, #6366f1);
    box-shadow: 0 0 12px var(--accent-glow, rgba(99, 102, 241, 0.45));
    transform: translateY(-2px) scale(1.04);
}

.vx-media-thumb__video {
    position: relative;
    width: 100%;
    height: 100%;
}

.vx-media-thumb__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
    background: rgba(0,0,0,0.35);
}

.vx-media-modal__caption {
    margin-top: .65rem;
    color: var(--text-dim);
    font-size: .82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@keyframes vx-media-modal-in { from { opacity: 0; } to { opacity: 1; } }

.vx-file-card {
    margin-top: 0.55rem;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: inherit;
    text-decoration: none;
    max-width: min(100%, 320px);
    min-width: 0;
}
.vx-file-card > div {
    min-width: 0;
    overflow: hidden;
}
.vx-file-card strong { display: block; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vx-file-card span { color: var(--text-dim); font-size: 0.75rem; }

.vx-attach-preview {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0.5rem 1rem 0;
}

.vx-attach-preview__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    border-radius: 20px;
    background: rgba(18, 22, 32, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    max-width: min(380px, 100%);
    min-width: 220px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.vx-attach-preview__item:hover {
    border-color: rgba(102, 227, 205, 0.35);
    background: rgba(22, 27, 38, 0.95);
}

.vx-attach-preview__item.is-error {
    border-color: rgba(244, 63, 94, 0.5);
    background: rgba(40, 16, 24, 0.85);
}

.vx-attach-preview__item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.vx-attach-preview__meta {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.vx-attach-preview__meta strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vx-attach-preview__meta span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
}

.vx-upload-progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.15rem;
    width: 100%;
}

.vx-upload-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    line-height: 1;
}

.vx-upload-progress__pct {
    color: var(--accent);
    font-weight: 700;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    font-size: 0.75rem;
}

.vx-upload-progress {
    display: block;
    width: 100%;
    height: 6px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    border: none;
}

.vx-upload-progress__bar {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #66e3cd 0%, #2dd4bf 100%);
    box-shadow: 0 0 10px rgba(102, 227, 205, 0.4);
    transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    min-width: 4px;
}

.vx-upload-progress__shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
    animation: vx-shimmer-pass 1.6s infinite;
}

@keyframes vx-shimmer-pass {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.vx-attach-preview__remove {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.vx-attach-preview__remove:hover {
    background: rgba(244, 63, 94, 0.2);
    border-color: rgba(244, 63, 94, 0.5);
    color: #f43f5e;
    transform: scale(1.08);
}

/* KeyVue-style Drag & Drop Overlay with Voxir Wellness Aesthetics */
.vx-chat-dropzone {
    position: absolute;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
    background: rgba(7, 8, 11, 0.78);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.96);
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.28s;
}

.vx-chat-dropzone.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
}

.vx-chat-dropzone__inner {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 540px;
    max-height: 380px;
    border-radius: 32px;
    border: 2px dashed rgba(102, 227, 205, 0.45);
    background: radial-gradient(circle at 50% 35%, rgba(102, 227, 205, 0.08) 0%, rgba(16, 23, 36, 0.9) 100%);
    box-shadow: 0 0 50px rgba(102, 227, 205, 0.12), inset 0 0 35px rgba(102, 227, 205, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.1rem;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
    overflow: hidden;
    user-select: none;
    pointer-events: none;
}

.vx-chat-dropzone__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 227, 205, 0.15) 0%, rgba(9, 14, 24, 0) 70%);
    filter: blur(40px);
    pointer-events: none;
    animation: vx-glow-pulse 4s ease-in-out infinite alternate;
}

.vx-chat-dropzone__ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -65%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 1.5px solid rgba(102, 227, 205, 0.35);
    box-shadow: 0 0 30px rgba(102, 227, 205, 0.2);
    pointer-events: none;
    animation: vx-ring-spin 12s linear infinite;
}

@keyframes vx-ring-spin {
    0% { transform: translate(-50%, -65%) rotate(0deg) scale(0.96); }
    50% { transform: translate(-50%, -65%) rotate(180deg) scale(1.04); }
    100% { transform: translate(-50%, -65%) rotate(360deg) scale(0.96); }
}

@keyframes vx-glow-pulse {
    0% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.92); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.vx-chat-dropzone__badge {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(102, 227, 205, 0.45);
    box-shadow: 0 0 35px rgba(102, 227, 205, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    animation: vx-drop-float 2.4s ease-in-out infinite alternate;
}

@keyframes vx-drop-float {
    0% { transform: translateY(0px) scale(0.98); }
    100% { transform: translateY(-8px) scale(1.02); }
}

.vx-chat-dropzone__title {
    position: relative;
    z-index: 2;
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.vx-chat-dropzone__sub {
    position: relative;
    z-index: 2;
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 320px;
    line-height: 1.4;
}

.vx-chat-banner {
    margin: 0.75rem 1.25rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.vx-chat-banner--error {
    border-color: color-mix(in srgb, var(--danger) 45%, var(--border));
    background: color-mix(in srgb, var(--danger) 12%, var(--bg-soft));
}
.vx-chat-loading-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.65rem 0 1rem;
    color: var(--text-dim);
    font-size: 0.8rem;
    font-weight: 500;
}
.vx-chat-load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 0.4rem 0 1rem;
}
.vx-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid color-mix(in srgb, var(--accent) 30%, transparent);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: vx-spin 0.7s linear infinite;
    display: inline-block;
}
@keyframes vx-spin {
    to { transform: rotate(360deg); }
}
.vx-composer {
    display: flex; align-items: center; gap: 0.5rem;
    margin: 0.5rem 1rem 0; padding: 0.65rem 0.85rem;
    border-radius: 20px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
    transition: all 0.2s ease;
}
.vx-composer:focus-within {
    border-color: rgba(102, 227, 205, 0.45);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(102, 227, 205, 0.15);
}
.vx-composer input,
.vx-composer textarea {
    flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); padding: 0.35rem;
    resize: none; max-height: 140px; font: inherit;
}
.vx-composer__hint {
    margin: 0.35rem 1.15rem 0.85rem; color: var(--text-dim); font-size: 0.72rem;
}
.vx-icon-btn--send { color: var(--accent); }
.vx-icon-btn--send:disabled { opacity: .65; cursor: wait; }
.vx-send-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: vx-spin .7s linear infinite;
}
@keyframes vx-spin { to { transform: rotate(360deg); } }
.vx-dock-btn.is-danger { color: var(--danger); }
.vx-avatar--lg {
    width: 72px; height: 72px; border-radius: 50%;
    display: grid; place-items: center; margin: auto;
    background: var(--accent-soft); font-weight: 700; font-size: 1.25rem;
}

.vx-reactions { display: flex; gap: 0.35rem; margin-top: 0.55rem; }
.vx-reactions button {
    padding: 0.2rem 0.55rem; border-radius: 999px;
    background: var(--bg-soft); border: 1px solid var(--border); font-size: 0.8rem;
}

.vx-members { padding: 1rem 0.85rem; }
.vx-members h3 {
    margin: 0.85rem 0 0.55rem; color: var(--text-dim);
    font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase;
}
.vx-member {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.4rem 0.35rem; border-radius: 10px;
}
.vx-member:hover { background: var(--bg-hover); }
.vx-member strong { display: block; font-size: 0.88rem; }
.vx-member span { color: var(--text-muted); font-size: 0.75rem; }
.vx-member.is-offline { opacity: 0.55; }

/* ==========================================================================
   Voice Room (Spotlight Stage + Scrollable Participants Sidebar)
   ========================================================================== */
.vx-voice-container,
.vx-voice-container *,
.vx-voice-container *::before,
.vx-voice-container *::after {
    box-sizing: border-box;
}

.vx-voice-container {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg, #07080b);
    color: #f8fafc;
    overflow: hidden;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    caret-color: transparent !important;
    cursor: default;
}

.vx-voice-container *,
.vx-voice-container *:focus,
.vx-voice-container *:focus-visible {
    caret-color: transparent !important;
    outline: none;
}

.vx-spotlight-avatar-wrap,
.vx-spotlight-avatar,
.vx-spotlight-name,
.vx-voice-card,
.vx-voice-grid-card,
.vx-voice-stage,
.vx-spotlight-stage {
    user-select: none;
    -webkit-user-select: none;
    caret-color: transparent !important;
}

html[data-theme="light"] .vx-voice-container,
.theme-light .vx-voice-container {
    background: #f1f5f9;
    color: #0f172a;
}

.vx-voice-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(12, 14, 19, 0.85);
    backdrop-filter: blur(12px);
    z-index: 15;
    flex-shrink: 0;
}

html[data-theme="light"] .vx-voice-topbar,
.theme-light .vx-voice-topbar {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
}

.vx-voice-topbar__start,
.vx-voice-topbar__end {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vx-voice-topbar__info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.vx-voice-topbar__channel {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.vx-voice-topbar__server {
    font-size: 0.75rem;
    color: #94a3b8;
}

.vx-voice-topbar__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
    font-weight: 600;
}

html[data-theme="light"] .vx-voice-topbar__badge,
.theme-light .vx-voice-topbar__badge {
    background: rgba(0, 0, 0, 0.05);
    color: #334155;
}

/* Voice Floating Error Toast (Auto-dismissing) */
.vx-voice-error-toast {
    position: absolute;
    top: 4.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    max-width: min(92vw, 680px);
    padding: 0.6rem 1rem;
    border-radius: 12px;
    background: rgba(220, 38, 38, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 18px rgba(239, 68, 68, 0.2);
    animation: vxToastSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: auto;
}

@keyframes vxToastSlideDown {
    0% {
        opacity: 0;
        transform: translate(-50%, -10px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

.vx-voice-error-toast__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    flex-shrink: 0;
}

.vx-voice-error-toast__msg {
    color: #fecaca;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vx-voice-error-toast__close {
    background: transparent;
    border: none;
    color: #fca5a5;
    padding: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
    margin-inline-start: 0.35rem;
}

.vx-voice-error-toast__close:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ffffff;
}

/* Camera Flip Buttons */
.vx-voice-card__flip-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    border-radius: 6px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    pointer-events: auto;
}

.vx-voice-card__flip-btn:hover {
    background: var(--accent, #66e3cd);
    color: #09251f;
    transform: rotate(180deg);
}

.vx-dock-pill--flip:hover {
    color: var(--accent, #66e3cd) !important;
}

.vx-voice-body {
    flex: 1;
    min-height: 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    overflow: hidden;
    overflow-x: hidden;
    position: relative;
}

/* Voice Connecting State */
.vx-voice-connecting {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 38%, rgba(102, 227, 205, 0.08) 0%, #101724 50%, #090e18 100%);
    overflow: hidden;
    z-index: 5;
    padding-bottom: 5rem;
    user-select: none;
}

html[data-theme="light"] .vx-voice-connecting,
.theme-light .vx-voice-connecting {
    background: radial-gradient(circle at 50% 42%, #fff7ed 0%, #fef3c7 65%, #f1f5f9 100%);
}

.vx-voice-connecting__ambient {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 122, 89, 0.22) 0%, rgba(245, 158, 11, 0.1) 42%, transparent 70%);
    filter: blur(55px);
    pointer-events: none;
    animation: vxAmbientPulse 4s ease-in-out infinite alternate;
}

html[data-theme="light"] .vx-voice-connecting__ambient,
.theme-light .vx-voice-connecting__ambient {
    background: radial-gradient(circle, rgba(255, 122, 89, 0.18) 0%, rgba(245, 158, 11, 0.08) 40%, transparent 70%);
}

@keyframes vxAmbientPulse {
    0% { transform: scale(0.85); opacity: 0.6; }
    100% { transform: scale(1.15); opacity: 1; }
}

.vx-voice-connecting__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    text-align: center;
    animation: vxConnectingEnter 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes vxConnectingEnter {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(12px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.vx-voice-connecting__radar {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.vx-voice-conn-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 122, 89, 0.55);
    pointer-events: none;
    animation: vxPulseRing 2.8s cubic-bezier(0.15, 0.7, 0.3, 1) infinite;
}

.vx-voice-conn-ring--1 {
    animation-delay: 0s;
}

.vx-voice-conn-ring--2 {
    animation-delay: 0.9s;
}

.vx-voice-conn-ring--3 {
    animation-delay: 1.8s;
}

@keyframes vxPulseRing {
    0% {
        transform: scale(0.75);
        opacity: 0.9;
        border-color: rgba(255, 122, 89, 0.75);
    }
    50% {
        border-color: rgba(245, 158, 11, 0.45);
    }
    100% {
        transform: scale(2.4);
        opacity: 0;
        border-color: rgba(102, 227, 205, 0);
    }
}

.vx-voice-connecting__orb {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #66e3cd 0%, #14b8a6 50%, #0f766e 100%);
    box-shadow: 0 0 38px rgba(102, 227, 205, 0.4), 0 10px 24px rgba(0, 0, 0, 0.45), inset 0 2px 5px rgba(255, 255, 255, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    animation: vxOrbFloating 3s ease-in-out infinite alternate;
}

@keyframes vxOrbFloating {
    0% { transform: translateY(0) scale(1); box-shadow: 0 0 32px rgba(102, 227, 205, 0.35), 0 8px 20px rgba(0, 0, 0, 0.35); }
    100% { transform: translateY(-6px) scale(1.03); box-shadow: 0 0 48px rgba(102, 227, 205, 0.6), 0 16px 28px rgba(0, 0, 0, 0.5); }
}

.vx-voice-connecting__icon {
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.vx-voice-connecting__eq {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 14px;
    margin-top: 3px;
}

.vx-eq-bar {
    width: 3.5px;
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    animation: vxEqBouncing 0.9s ease-in-out infinite alternate;
}

.vx-eq-bar--1 { height: 5px; animation-delay: 0.1s; }
.vx-eq-bar--2 { height: 11px; animation-delay: 0.35s; }
.vx-eq-bar--3 { height: 14px; animation-delay: 0s; }
.vx-eq-bar--4 { height: 9px; animation-delay: 0.5s; }
.vx-eq-bar--5 { height: 6px; animation-delay: 0.2s; }

@keyframes vxEqBouncing {
    0% { transform: scaleY(0.35); opacity: 0.65; }
    100% { transform: scaleY(1.15); opacity: 1; }
}

.vx-voice-connecting__details {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vx-voice-connecting__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] .vx-voice-connecting__badge,
.theme-light .vx-voice-connecting__badge {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #475569;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.vx-voice-connecting__server-dot {
    opacity: 0.45;
    font-size: 0.75rem;
}

.vx-voice-connecting__server-name {
    opacity: 0.85;
}

.vx-voice-connecting__title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 0.45rem 0;
    letter-spacing: -0.015em;
    background: linear-gradient(135deg, #ffffff 30%, #fed7aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html[data-theme="light"] .vx-voice-connecting__title,
.theme-light .vx-voice-connecting__title {
    background: linear-gradient(135deg, #0f172a 30%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vx-voice-connecting__subtitle {
    font-size: 0.92rem;
    color: #94a3b8;
    margin: 0 0 1.4rem 0;
    max-width: 360px;
    line-height: 1.45;
}

html[data-theme="light"] .vx-voice-connecting__subtitle,
.theme-light .vx-voice-connecting__subtitle {
    color: #64748b;
}

.vx-voice-connecting__loader {
    width: 160px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

html[data-theme="light"] .vx-voice-connecting__loader,
.theme-light .vx-voice-connecting__loader {
    background: rgba(0, 0, 0, 0.08);
}

.vx-voice-connecting__bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 45%;
    background: linear-gradient(90deg, #66e3cd, #2dd4bf, #38bdf8);
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(102, 227, 205, 0.5);
    animation: vxIndeterminateProgress 1.7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes vxIndeterminateProgress {
    0% {
        left: -45%;
        width: 30%;
    }
    50% {
        width: 55%;
    }
    100% {
        left: 100%;
        width: 30%;
    }
}

/* Participants Sidebar */
.vx-voice-participants-sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-inline-end: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 13, 22, 0.75);
    backdrop-filter: blur(16px);
    overflow: hidden;
    z-index: 10;
}

html[data-theme="light"] .vx-voice-participants-sidebar,
.theme-light .vx-voice-participants-sidebar {
    border-inline-end: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(248, 250, 252, 0.85);
}

.vx-voice-sidebar-header {
    padding: 1rem 1.1rem 0.6rem;
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 700;
}

html[data-theme="light"] .vx-voice-sidebar-header,
.theme-light .vx-voice-sidebar-header {
    color: #64748b;
}

.vx-voice-cards-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.4rem 0.85rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Individual Participant Card */
.vx-voice-card {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9.6;
    min-height: 100px;
    border-radius: 14px;
    overflow: hidden;
    background: #141724;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

html[data-theme="light"] .vx-voice-card,
.theme-light .vx-voice-card {
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(0, 0, 0, 0.06);
}

.vx-voice-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

html[data-theme="light"] .vx-voice-card:hover,
.theme-light .vx-voice-card:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

.vx-voice-card.is-focused {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 1px #3b82f6, 0 4px 14px rgba(59, 130, 246, 0.3) !important;
}

html[data-theme="light"] .vx-voice-card.is-focused,
.theme-light .vx-voice-card.is-focused {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 1px #2563eb, 0 4px 14px rgba(37, 99, 235, 0.25) !important;
}

/* Speaking Animation with Dynamic Avatar Glow Color */
.vx-voice-card.is-speaking {
    border-color: var(--speaker-glow-color, #3b82f6) !important;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--speaker-glow-color, #3b82f6) 45%, transparent), 0 0 16px color-mix(in srgb, var(--speaker-glow-color, #3b82f6) 65%, transparent) !important;
    animation: vx-speaking-glow-dynamic 1.4s ease-in-out infinite !important;
}

@keyframes vx-speaking-glow-dynamic {
    0%, 100% {
        border-color: var(--speaker-glow-color, #3b82f6);
        box-shadow: 0 0 0 2px color-mix(in srgb, var(--speaker-glow-color, #3b82f6) 45%, transparent), 0 0 14px color-mix(in srgb, var(--speaker-glow-color, #3b82f6) 55%, transparent);
    }
    50% {
        border-color: color-mix(in srgb, var(--speaker-glow-color, #3b82f6) 80%, #ffffff);
        box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--speaker-glow-color, #3b82f6) 75%, transparent), 0 0 24px color-mix(in srgb, var(--speaker-glow-color, #3b82f6) 85%, transparent);
    }
}

html[data-theme="light"] .vx-voice-card.is-speaking,
.theme-light .vx-voice-card.is-speaking {
    border-color: var(--speaker-glow-color, #2563eb) !important;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--speaker-glow-color, #2563eb) 35%, transparent), 0 0 14px color-mix(in srgb, var(--speaker-glow-color, #2563eb) 45%, transparent) !important;
    animation: vx-speaking-glow-dynamic 1.4s ease-in-out infinite !important;
}

/* Card Contents */
.vx-voice-card__media {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.vx-voice-card__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #080911;
}

.vx-voice-card__avatar-box {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.vx-voice-card__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.vx-voice-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.vx-voice-card__overlay {
    position: absolute;
    inset: 0;
    padding: 0.5rem 0.65rem;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
}

.vx-voice-card__tag {
    align-self: flex-start;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    backdrop-filter: blur(4px);
}

.vx-voice-card__status {
    align-self: flex-end;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    backdrop-filter: blur(4px);
}

.vx-voice-card__status.is-muted {
    color: #f87171;
    background: rgba(239, 68, 68, 0.25);
}

.vx-voice-card__status.is-speaking-icon {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.25);
}

.vx-voice-card--invite {
    border: 1.5px dashed rgba(255, 255, 255, 0.18) !important;
    background: transparent !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 48px;
    aspect-ratio: auto;
    padding: 0.85rem;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: none !important;
}

html[data-theme="light"] .vx-voice-card--invite,
.theme-light .vx-voice-card--invite {
    border: 1.5px dashed rgba(0, 0, 0, 0.2) !important;
    color: #64748b;
}

.vx-voice-card--invite:hover {
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.08) !important;
}

/* Main Spotlight Stage */
.vx-voice-spotlight {
    flex: 1;
    min-width: 0;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 1rem 1.25rem 5.5rem;
    overflow: hidden;
    overflow-x: hidden;
    background: radial-gradient(circle at 50% 25%, #161b36 0%, #090b14 70%);
}

html[data-theme="light"] .vx-voice-spotlight,
.theme-light .vx-voice-spotlight {
    background: radial-gradient(circle at 50% 25%, #e2e8f0 0%, #f1f5f9 85%);
}

.vx-spotlight-header {
    position: absolute;
    top: 1.75rem;
    inset-inline-end: 2.25rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vx-spotlight-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

html[data-theme="light"] .vx-spotlight-status-pill,
.theme-light .vx-spotlight-status-pill {
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.vx-spotlight-status-pill.is-speaking {
    border-color: var(--speaker-glow-color, #3b82f6);
    box-shadow: 0 0 16px color-mix(in srgb, var(--speaker-glow-color, #3b82f6) 50%, transparent);
}

.vx-spotlight-quick-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.vx-spotlight-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: all 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

html[data-theme="light"] .vx-spotlight-action-btn,
.theme-light .vx-spotlight-action-btn {
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.vx-spotlight-action-btn:hover {
    background: rgba(59, 130, 246, 0.9);
    color: #ffffff;
    border-color: #60a5fa;
    transform: scale(1.08);
}

.vx-spotlight-action-btn.is-active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #60a5fa;
}

.vx-spotlight-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--speaker-glow-color, #3b82f6);
    box-shadow: 0 0 8px var(--speaker-glow-color, #3b82f6);
}

.vx-spotlight-stage {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #080a12;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 20px 48px rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

html[data-theme="light"] .vx-spotlight-stage,
.theme-light .vx-spotlight-stage {
    background: #0f172a;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
}

.vx-spotlight-stage.is-fit-cover .vx-spotlight-media video {
    object-fit: cover !important;
}

.vx-spotlight-stage.is-fit-contain .vx-spotlight-media video {
    object-fit: contain !important;
}

.vx-spotlight-media {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #05060a;
}

.vx-spotlight-media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #05060a;
    transition: object-fit 0.2s ease;
}

.vx-spotlight-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.vx-spotlight-avatar {
    position: relative;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.vx-spotlight-avatar__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.vx-spotlight-avatar.is-speaking::before,
.vx-spotlight-avatar.is-speaking::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--speaker-glow-color, #3b82f6);
    animation: vx-spotlight-ring 1.8s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    pointer-events: none;
}

.vx-spotlight-avatar.is-speaking::after {
    animation-delay: 1s;
}

@keyframes vx-spotlight-ring {
    0% { transform: scale(1); opacity: 0.85; }
    100% { transform: scale(1.45); opacity: 0; }
}

.vx-spotlight-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f1f5f9;
}

/* Responsive Dynamic Grid */
.vx-voice-grid-wrap {
    flex: 1;
    min-width: 0;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 1.25rem 1.5rem 6.5rem;
    overflow: hidden;
    overflow-x: hidden;
    background: radial-gradient(circle at 50% 25%, #161b36 0%, #090b14 70%);
}

html[data-theme="light"] .vx-voice-grid-wrap,
.theme-light .vx-voice-grid-wrap {
    background: radial-gradient(circle at 50% 25%, #e2e8f0 0%, #f1f5f9 85%);
}

.vx-voice-grid {
    flex: 1;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    display: grid;
    gap: 1.25rem;
    align-content: center;
    justify-content: center;
    align-items: center;
    justify-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 0.5rem;
}

.vx-voice-grid[data-count="1"] {
    grid-template-columns: minmax(0, 920px);
    grid-template-rows: 1fr;
}

.vx-voice-grid[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr;
}

.vx-voice-grid[data-count="3"],
.vx-voice-grid[data-count="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, 1fr);
}

.vx-voice-grid[data-count="5"],
.vx-voice-grid[data-count="6"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, 1fr);
}

.vx-voice-grid[data-count="7"],
.vx-voice-grid[data-count="8"],
.vx-voice-grid[data-count="9"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, 1fr);
}

/* Individual Grid Card */
.vx-voice-grid-card {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: calc(100% - 1rem);
    min-height: 160px;
    border-radius: 16px;
    background: #141726;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    margin: auto;
}

html[data-theme="light"] .vx-voice-grid-card,
.theme-light .vx-voice-grid-card {
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.vx-voice-grid-card--screen {
    border: 2px solid rgba(59, 130, 246, 0.4) !important;
    background: #06080e !important;
}

.vx-voice-grid-card--screen .vx-voice-grid-card__media video {
    object-fit: contain !important;
}

/* Speaking glow for grid card with dynamic avatar color */
.vx-voice-grid-card.is-speaking {
    border-color: var(--speaker-glow-color, #3b82f6) !important;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--speaker-glow-color, #3b82f6) 45%, transparent), 0 0 18px color-mix(in srgb, var(--speaker-glow-color, #3b82f6) 65%, transparent) !important;
    animation: vx-speaking-glow-dynamic 1.4s ease-in-out infinite !important;
}

html[data-theme="light"] .vx-voice-grid-card.is-speaking,
.theme-light .vx-voice-grid-card.is-speaking {
    border-color: var(--speaker-glow-color, #2563eb) !important;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--speaker-glow-color, #2563eb) 35%, transparent), 0 0 14px color-mix(in srgb, var(--speaker-glow-color, #2563eb) 45%, transparent) !important;
    animation: vx-speaking-glow-dynamic 1.4s ease-in-out infinite !important;
}

.vx-voice-grid-card__media {
    width: 100%;
    height: 100%;
    display: flex;
}

.vx-voice-grid-card__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vx-voice-grid-card__avatar-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vx-voice-grid-card__avatar {
    width: clamp(72px, 12vw, 130px);
    height: clamp(72px, 12vw, 130px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 800;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.vx-voice-grid-card__avatar.is-speaking-pulse {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--speaker-glow-color, #3b82f6) 45%, transparent), 0 0 24px color-mix(in srgb, var(--speaker-glow-color, #3b82f6) 80%, transparent) !important;
}

.vx-voice-grid-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vx-voice-grid-card__overlay {
    position: absolute;
    bottom: 0.85rem;
    inset-inline: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 5;
}

.vx-voice-grid-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.vx-voice-grid-card__status {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.vx-voice-grid-card__status.is-muted {
    color: #f87171;
    background: rgba(239, 68, 68, 0.3);
}

.vx-voice-grid-card__status.is-speaking-icon {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.3);
}

/* Floating Control Dock */
.vx-voice-floating-dock {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    z-index: 25;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.85rem;
    border-radius: 20px;
    background: rgba(14, 16, 22, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(18px);
}

html[data-theme="light"] .vx-voice-floating-dock,
.theme-light .vx-voice-floating-dock {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

.vx-dock-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: none;
    transition: all 0.15s ease;
    cursor: pointer;
}

.vx-dock-pill span {
    display: none;
}

html[data-theme="light"] .vx-dock-pill,
.theme-light .vx-dock-pill {
    background: rgba(0, 0, 0, 0.05);
    color: #475569;
}

.vx-dock-pill:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-1px);
}

html[data-theme="light"] .vx-dock-pill:hover,
.theme-light .vx-dock-pill:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

.vx-dock-pill.is-active {
    background: var(--accent, #66e3cd) !important;
    color: #09251f !important;
    box-shadow: 0 4px 14px rgba(102, 227, 205, 0.35);
}

.vx-dock-pill.is-danger {
    background: rgba(239, 68, 68, 0.22) !important;
    color: #f87171 !important;
}

.vx-dock-pill--danger {
    background: #ef4444 !important;
    color: #ffffff !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    padding: 0 !important;
}

.vx-dock-pill--danger:hover {
    background: #dc2626 !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.vx-devices-item--toggle {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 0.25rem;
}

.vx-devices-item--toggle.is-active {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
}

.vx-devices-item__info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.vx-devices-item__sub {
    font-size: 0.65rem;
    color: #94a3b8;
}

.vx-toggle-pill {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.vx-toggle-pill.is-on {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.vx-toggle-pill.is-off {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

/* More Options Dropdown in Dock */
.vx-more-dropdown-wrap {
    position: relative;
    display: inline-flex;
}

.vx-more-menu {
    position: absolute;
    bottom: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    background: rgba(18, 22, 38, 0.96);
    backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 0.5rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    animation: vx-popover-up 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="light"] .vx-more-menu,
.theme-light .vx-more-menu {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.vx-more-menu__header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.6rem 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .vx-more-menu__header,
.theme-light .vx-more-menu__header {
    color: #64748b;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.vx-more-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: inherit;
}

html[data-theme="light"] .vx-more-item,
.theme-light .vx-more-item {
    color: #334155;
}

.vx-more-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

html[data-theme="light"] .vx-more-item:hover,
.theme-light .vx-more-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
}

.vx-more-item.is-active {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
}

.vx-more-item__start {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.vx-more-item__arrow {
    opacity: 0.6;
    transition: transform 0.15s ease;
}

[dir="rtl"] .vx-more-item__arrow {
    transform: rotate(180deg);
}

.vx-layout-menu--dock {
    top: auto;
    bottom: calc(100% + 0.75rem);
    left: 50%;
    inset-inline-end: auto;
    transform: translateX(-50%);
    z-index: 60;
    animation: vx-popover-up 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Audio Devices Dropdown in Dock */
.vx-devices-dropdown-wrap {
    position: relative;
    display: inline-flex;
}

.vx-devices-menu {
    position: absolute;
    bottom: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    width: 310px;
    max-height: 420px;
    overflow-y: auto;
    background: rgba(18, 22, 38, 0.96);
    backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 0.65rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: vx-popover-up 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="light"] .vx-devices-menu,
.theme-light .vx-devices-menu {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

@keyframes vx-popover-up {
    from { opacity: 0; transform: translate(-50%, 8px) scale(0.96); }
    to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.vx-devices-menu__header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.6rem 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .vx-devices-menu__header,
.theme-light .vx-devices-menu__header {
    color: #64748b;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.vx-devices-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.vx-devices-section__title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #38bdf8;
    padding: 0.25rem 0.5rem 0.15rem;
}

html[data-theme="light"] .vx-devices-section__title,
.theme-light .vx-devices-section__title {
    color: #0284c7;
}

.vx-devices-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    color: #e2e8f0;
    font-size: 0.78rem;
    cursor: pointer;
    text-align: start;
    transition: all 0.15s ease;
}

html[data-theme="light"] .vx-devices-item,
.theme-light .vx-devices-item {
    color: #1e293b;
}

.vx-devices-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

html[data-theme="light"] .vx-devices-item:hover,
.theme-light .vx-devices-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
}

.vx-devices-item.is-active {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    font-weight: 700;
}

html[data-theme="light"] .vx-devices-item.is-active,
.theme-light .vx-devices-item.is-active {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.25);
    color: #2563eb;
}

.vx-devices-item__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vx-devices-item__check {
    color: #3b82f6;
    flex-shrink: 0;
}

.vx-devices-empty {
    font-size: 0.75rem;
    color: #64748b;
    padding: 0.35rem 0.5rem;
    font-style: italic;
}

/* Layout Switcher Dropdown */
.vx-layout-dropdown-wrap {
    position: relative;
    display: inline-flex;
}

.vx-layout-menu {
    position: absolute;
    top: calc(100% + 0.65rem);
    inset-inline-end: 0;
    min-width: 290px;
    background: rgba(18, 22, 38, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    animation: vx-popover-in 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="light"] .vx-layout-menu,
.theme-light .vx-layout-menu {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

@keyframes vx-popover-in {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.vx-layout-menu__header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.65rem 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0.2rem;
}

html[data-theme="light"] .vx-layout-menu__header,
.theme-light .vx-layout-menu__header {
    color: #64748b;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.vx-layout-menu__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    color: #e2e8f0;
    cursor: pointer;
    text-align: start;
    transition: all 0.15s ease;
}

html[data-theme="light"] .vx-layout-menu__item,
.theme-light .vx-layout-menu__item {
    color: #1e293b;
}

.vx-layout-menu__item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

html[data-theme="light"] .vx-layout-menu__item:hover,
.theme-light .vx-layout-menu__item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
}

.vx-layout-menu__item.is-active {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

html[data-theme="light"] .vx-layout-menu__item.is-active,
.theme-light .vx-layout-menu__item.is-active {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.25);
    color: #2563eb;
}

.vx-layout-menu__item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

html[data-theme="light"] .vx-layout-menu__item-icon,
.theme-light .vx-layout-menu__item-icon {
    background: rgba(0, 0, 0, 0.05);
}

.vx-layout-menu__item.is-active .vx-layout-menu__item-icon {
    background: #3b82f6;
    color: #ffffff;
}

.vx-layout-menu__item-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.vx-layout-menu__item-text strong {
    font-size: 0.85rem;
    font-weight: 700;
}

.vx-layout-menu__item-text small {
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.25;
}

html[data-theme="light"] .vx-layout-menu__item-text small,
.theme-light .vx-layout-menu__item-text small {
    color: #64748b;
}

.vx-layout-menu__check {
    color: #3b82f6;
    flex-shrink: 0;
}

/* 3. Theater Layout */
.vx-voice-spotlight--theater {
    padding: 0.75rem 0.75rem 4.5rem;
}

.vx-voice-spotlight--theater .vx-spotlight-stage {
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

/* 4. Picture-in-Picture Layout */
.vx-voice-pip-overlay {
    position: absolute;
    bottom: 5.5rem;
    inset-inline-end: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    z-index: 20;
    max-height: 60vh;
    max-width: calc(100% - 3rem);
    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: auto;
}

.vx-voice-pip-overlay .vx-voice-card {
    width: 180px;
    min-height: 105px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.15);
    background: rgba(18, 22, 36, 0.92);
    backdrop-filter: blur(12px);
}

/* Fullscreen Mode */
.vx-voice-container.is-fullscreen,
.vx-voice-container.is-native-fullscreen,
.vx-voice-container:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    background: #000000 !important;
}

.vx-voice-container.is-fullscreen .vx-voice-spotlight,
.vx-voice-container.is-native-fullscreen .vx-voice-spotlight,
.vx-voice-container:fullscreen .vx-voice-spotlight {
    padding: 0 !important;
    background: #000000 !important;
}

.vx-voice-container.is-fullscreen .vx-spotlight-stage,
.vx-voice-container.is-native-fullscreen .vx-spotlight-stage,
.vx-voice-container:fullscreen .vx-spotlight-stage {
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #000000 !important;
}

.vx-voice-container.is-fullscreen .vx-spotlight-header,
.vx-voice-container.is-native-fullscreen .vx-spotlight-header,
.vx-voice-container:fullscreen .vx-spotlight-header {
    top: 1rem;
    inset-inline-end: 1rem;
    z-index: 60;
}

/* Hide floating dock completely in fullscreen so it does not block the screen */
.vx-voice-container.is-fullscreen .vx-voice-floating-dock,
.vx-voice-container.is-native-fullscreen .vx-voice-floating-dock,
.vx-voice-container:fullscreen .vx-voice-floating-dock,
:fullscreen .vx-voice-floating-dock {
    display: none !important;
}

@media (max-width: 900px) {
    .vx-voice-body {
        flex-direction: column-reverse;
        padding-bottom: 74px !important;
        position: relative;
    }
    .vx-voice-participants-sidebar {
        width: 100%;
        max-height: 115px;
        flex-shrink: 0;
        border-inline-end: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(10, 12, 22, 0.65);
    }
    .vx-voice-cards-scroll {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.35rem 0.5rem;
        gap: 0.45rem;
    }
    .vx-voice-card {
        width: 100px;
        min-width: 100px;
        height: 66px;
        aspect-ratio: auto;
    }
    .vx-voice-floating-dock {
        position: absolute;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: max(0.85rem, env(safe-area-inset-bottom, 14px));
        gap: 0.45rem;
        padding: 0.45rem 0.65rem;
        border-radius: 999px;
        width: max-content;
        max-width: calc(100% - 1.25rem);
        justify-content: center;
        background: rgba(18, 22, 36, 0.94);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65);
    }
    .vx-dock-pill {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 50% !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    .vx-dock-pill span {
        display: none !important;
    }
    .vx-dock-pill--danger {
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        height: 44px !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 50% !important;
    }
}

.vx-screen-share-control { position: relative; display: inline-flex; }
.vx-screen-share-quality {
    position: absolute;
    inset-inline-end: 0;
    bottom: calc(100% + 0.75rem);
    min-width: 210px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    padding: 0.65rem;
    border-radius: 14px;
    background: rgba(18, 22, 38, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 50;
    animation: vx-popover-in 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="light"] .vx-screen-share-quality,
.theme-light .vx-screen-share-quality {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.vx-screen-share-quality > span {
    grid-column: 1 / -1;
    padding: 0.1rem 0.2rem 0.35rem;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0.2rem;
}

html[data-theme="light"] .vx-screen-share-quality > span,
.theme-light .vx-screen-share-quality > span {
    color: #64748b;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.vx-screen-share-quality button {
    min-width: 54px;
    padding: 0.55rem 0.4rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.15s ease;
    cursor: pointer;
}

.vx-screen-share-quality button strong {
    font-size: 0.84rem;
    font-weight: 700;
    color: #ffffff;
}

.vx-screen-share-quality button small {
    font-size: 0.62rem;
    color: #94a3b8;
    line-height: 1.1;
}

.vx-screen-share-quality button:hover,
.vx-screen-share-quality button:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    outline: none;
}

.vx-screen-share-quality button.is-default {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.15);
}

.vx-screen-share-quality button.is-default strong {
    color: #60a5fa;
}

/* Light Theme */
html[data-theme="light"] .vx-screen-share-quality button,
.theme-light .vx-screen-share-quality button {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

html[data-theme="light"] .vx-screen-share-quality button strong,
.theme-light .vx-screen-share-quality button strong {
    color: #0f172a;
}

html[data-theme="light"] .vx-screen-share-quality button small,
.theme-light .vx-screen-share-quality button small {
    color: #64748b;
}

html[data-theme="light"] .vx-screen-share-quality button:hover,
.theme-light .vx-screen-share-quality button:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .vx-screen-share-quality button.is-default,
.theme-light .vx-screen-share-quality button.is-default {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
}

html[data-theme="light"] .vx-screen-share-quality button.is-default strong,
.theme-light .vx-screen-share-quality button.is-default strong {
    color: #2563eb;
}

.vx-settings__nav {
    display: flex; flex-direction: column; gap: 0.35rem;
    padding: 1.1rem 0.85rem;
}
.vx-settings__brand {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 1rem; padding: 0.35rem;
}
.vx-settings__brand strong { display: block; }
.vx-settings__brand span { color: var(--text-muted); font-size: 0.78rem; }
.vx-settings__item {
    display: flex; align-items: center; gap: 0.65rem;
    width: 100%; padding: 0.7rem 0.8rem; border-radius: 12px;
    color: var(--text-muted); text-align: start;
}
.vx-settings__item:hover { background: var(--bg-hover); color: var(--text); }
.vx-settings__item.is-active { background: var(--bg-soft); color: var(--text); }
.vx-settings__logout {
    margin-top: auto; display: flex; align-items: center; gap: 0.65rem;
    width: 100%; padding: 0.8rem; border-radius: 12px;
    color: var(--danger); background: var(--danger-soft); font-weight: 650;
}
.vx-settings__main {
    padding: 1.5rem 2rem 4rem;
    overflow-y: auto !important;
    overflow-x: hidden;
    gap: 1.25rem;
    min-height: 0;
    height: 100%;
}
.vx-settings__header h1 { margin: 0; font-size: 1.55rem; letter-spacing: -0.03em; }
.vx-settings__header p { margin: 0.35rem 0 0; color: var(--text-muted); }
.vx-card {
    padding: 1rem 1.1rem; border-radius: var(--radius);
    background: var(--bg-panel); border: 1px solid var(--border);
}
.vx-card h2 {
    display: flex; align-items: center; gap: 0.45rem;
    margin: 0 0 0.85rem; font-size: 0.95rem;
}
.vx-card p { margin: 0; color: var(--text-muted); font-size: 0.88rem; }
.vx-card--row {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.vx-theme-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem;
}
.vx-theme-card {
    position: relative; text-align: start;
    padding: 0.85rem; border-radius: 14px;
    border: 1px solid var(--border); background: var(--bg-elevated);
    display: flex; flex-direction: column; gap: 0.45rem;
}
.vx-theme-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.vx-theme-card__check {
    position: absolute; inset-block-start: 0.65rem; inset-inline-start: 0.65rem;
    width: 22px; height: 22px; border-radius: 50%;
    display: grid; place-items: center; background: var(--accent); color: #fff;
}
.vx-theme-preview {
    height: 84px; border-radius: 10px; border: 1px solid var(--border);
}
.vx-theme-preview.is-light {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0 45%, #cbd5e1);
}
.vx-theme-preview.is-dark {
    background: linear-gradient(135deg, #111827, #1f2937 45%, #0b1220);
}
.vx-theme-card strong { font-size: 0.95rem; }
.vx-theme-card span { color: var(--text-muted); font-size: 0.8rem; line-height: 1.4; }

.vx-lang-list { display: flex; flex-direction: column; gap: 0.45rem; }
.vx-lang-item {
    display: grid; grid-template-columns: auto 1fr auto; gap: 0.75rem; align-items: center;
    width: 100%; padding: 0.75rem 0.85rem; border-radius: 12px;
    border: 1px solid var(--border); text-align: start;
}
.vx-lang-item.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.vx-lang-item strong { display: block; }
.vx-lang-item span { color: var(--text-muted); font-size: 0.8rem; }
.vx-radio {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--text-dim);
}
.vx-radio.is-on {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 4px var(--accent);
}

.vx-toggle {
    width: 52px; height: 30px; border-radius: 999px;
    background: var(--bg-soft); border: 1px solid var(--border);
    padding: 3px; flex-shrink: 0;
}
.vx-toggle span {
    display: block; width: 22px; height: 22px; border-radius: 50%;
    background: #fff; transition: transform 0.15s ease;
}
.vx-toggle.is-on { background: var(--accent); border-color: transparent; }
.vx-toggle.is-on span { transform: translateX(22px); }
[dir="rtl"] .vx-toggle.is-on span { transform: translateX(-22px); }

.vx-settings__row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.vx-accent-row { display: flex; gap: 0.65rem; }
.vx-accent {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--swatch); border: 2px solid transparent;
}
.vx-accent.is-selected { border-color: var(--text); box-shadow: 0 0 0 2px var(--bg-panel); }
.vx-font-preview {
    margin-top: 0.75rem; padding: 0.85rem; border-radius: 12px;
    background: var(--bg-elevated); border: 1px solid var(--border);
    font-size: 1.05rem;
}
.vx-settings__guest {
    display: inline-flex; align-items: center; gap: 0.65rem;
    margin-top: auto; padding: 0.5rem 0;
    color: var(--text-muted);
}
.vx-settings__guest strong { display: block; color: var(--text); font-size: 0.88rem; }
.vx-settings__guest span { font-size: 0.75rem; }

@media (max-width: 1100px) {
    .vx-chat { grid-template-columns: var(--channels-width) minmax(0, 1fr); }
    .vx-members { display: none; }
}
@media (max-width: 860px) {
    .vx-shell { grid-template-columns: 1fr; }
    .vx-rail {
        position: fixed; inset-inline-start: 0; bottom: 0; top: auto;
        width: 100%; height: 64px; flex-direction: row; z-index: 20;
        border-inline-end: 0; border-top: 1px solid var(--border);
        justify-content: flex-start; gap: 0.5rem;
    }
    .vx-rail__nav { flex-direction: row; justify-content: flex-start; flex: 0 1 auto; gap: 0.5rem; }
    .vx-rail__spacer { display: block; flex: 1 1 auto; }
    .vx-rail__avatar { display: none; }
    .vx-chat, .vx-voice, .vx-settings { padding-bottom: 64px; grid-template-columns: 1fr; }
    .vx-channels, .vx-settings__nav { display: none; }
    .vx-voice-grid, .vx-theme-grid, .vx-settings__row { grid-template-columns: 1fr; }
    .vx-voice-dock { width: calc(100% - 1.5rem); justify-content: center; }
}

/* =============================================================
   QUANTUM AURORA & HOLOGRAPHIC AUTH DESIGN SYSTEM
   ============================================================= */

.auth-shell--quantum {
    position: fixed;
    inset: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    overflow-x: hidden;
    overflow-y: auto;
    background: #060911;
    color: #f1f5f9;
    box-sizing: border-box;
}

/* Multi-layered Quantum Aurora Background */
.vx-aurora-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    background: #060911;
}

.vx-aurora-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(85px);
    opacity: 0.52;
    mix-blend-mode: screen;
    will-change: transform, opacity;
}

.vx-aurora-orb--1 {
    top: -15%;
    inset-inline-start: -10%;
    width: 65vw;
    height: 65vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle, #3b82f6 0%, #1d4ed8 45%, transparent 70%);
    animation: vx-aurora-orbit-1 9s ease-in-out infinite alternate;
}

.vx-aurora-orb--2 {
    bottom: -20%;
    inset-inline-end: -10%;
    width: 70vw;
    height: 70vw;
    max-width: 850px;
    max-height: 850px;
    background: radial-gradient(circle, #ec4899 0%, #8b5cf6 50%, transparent 70%);
    animation: vx-aurora-orbit-2 11s ease-in-out infinite alternate;
}

.vx-aurora-orb--3 {
    top: 45%;
    inset-inline-start: 25%;
    width: 55vw;
    height: 55vw;
    max-width: 650px;
    max-height: 650px;
    background: radial-gradient(circle, #06b6d4 0%, #10b981 45%, transparent 70%);
    animation: vx-aurora-orbit-3 8s ease-in-out infinite alternate;
    opacity: 0.42;
}

.vx-aurora-orb--4 {
    top: 10%;
    inset-inline-end: 15%;
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, #a855f7 0%, #6366f1 50%, transparent 70%);
    animation: vx-aurora-orbit-4 13s ease-in-out infinite alternate;
    opacity: 0.38;
}

.vx-grid-mesh {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 85%);
}

@keyframes vx-aurora-orbit-1 {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(110px, 70px) scale(1.16) rotate(35deg); }
    66% { transform: translate(50px, 140px) scale(0.94) rotate(70deg); }
    100% { transform: translate(-45px, 80px) scale(1.08) rotate(110deg); }
}

@keyframes vx-aurora-orbit-2 {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(-120px, -80px) scale(1.18) rotate(-40deg); }
    66% { transform: translate(-70px, -150px) scale(0.88) rotate(-90deg); }
    100% { transform: translate(70px, -90px) scale(1.1) rotate(-140deg); }
}

@keyframes vx-aurora-orbit-3 {
    0% { transform: translate(0, 0) scale(0.92) rotate(0deg); }
    33% { transform: translate(90px, -90px) scale(1.2) rotate(50deg); }
    66% { transform: translate(-75px, -60px) scale(1.04) rotate(100deg); }
    100% { transform: translate(-95px, 70px) scale(1.12) rotate(160deg); }
}

@keyframes vx-aurora-orbit-4 {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(-100px, 120px) scale(1.16) rotate(-80deg); }
    100% { transform: translate(80px, 60px) scale(0.95) rotate(-160deg); }
}

/* Two-Column Split Container */
.auth-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    align-items: center;
    margin: auto;
}

@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 480px;
    }
    .auth-showcase {
        display: none !important;
    }
}

/* Left Showcase Panel */
.auth-showcase {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.auth-showcase__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-brand__quantum-logo {
    position: relative;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
}

.auth-brand__quantum-logo .auth-brand__logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: contain;
    z-index: 2;
    position: relative;
}

.auth-brand__ring {
    position: absolute;
    inset: -3px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1, #06b6d4, #a855f7);
    filter: blur(3px);
    opacity: 0.75;
    animation: vx-ring-pulse 3s linear infinite alternate;
}

@keyframes vx-ring-pulse {
    0% { transform: rotate(0deg) scale(0.96); opacity: 0.5; }
    100% { transform: rotate(180deg) scale(1.06); opacity: 0.9; }
}

.auth-showcase__brand-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.auth-showcase__version-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.auth-showcase__title {
    margin: 0 0 0.75rem;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.03em;
    color: #fff;
}

.vx-gradient-text {
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-showcase__subtitle {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #94a3b8;
    max-width: 520px;
}

/* Holographic Live Card Widget */
.auth-hologram-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-hologram-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-hologram-card__status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #10b981;
}

.auth-hologram-card__ping {
    font-size: 0.75rem;
    font-weight: 700;
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.12);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.auth-hologram-voice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-hologram-speaker {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 1;
}

.auth-hologram-speaker__avatar {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: grid;
    place-items: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
}

.auth-hologram-speaker__pulse {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid #10b981;
    animation: vx-beacon-pulse 1.6s infinite;
}

.auth-hologram-speaker__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.auth-hologram-speaker__info strong {
    font-size: 0.9rem;
    color: #f1f5f9;
}

.auth-hologram-eq {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 14px;
}

.auth-hologram-eq .eq-b {
    width: 3px;
    border-radius: 2px;
    background: #6366f1;
    animation: vx-eq-dance 0.9s ease-in-out infinite alternate;
}
.auth-hologram-eq .eq-b1 { height: 6px; animation-delay: 0.1s; }
.auth-hologram-eq .eq-b2 { height: 14px; animation-delay: 0.3s; background: #06b6d4; }
.auth-hologram-eq .eq-b3 { height: 9px; animation-delay: 0.2s; }
.auth-hologram-eq .eq-b4 { height: 13px; animation-delay: 0.4s; background: #8b5cf6; }
.auth-hologram-eq .eq-b5 { height: 7px; animation-delay: 0.15s; }
.auth-hologram-eq .eq-b6 { height: 11px; animation-delay: 0.25s; background: #10b981; }

@keyframes vx-eq-dance {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1); }
}

.auth-hologram-msg {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.auth-hologram-msg__user {
    color: var(--primary);
    font-weight: 700;
}
.auth-hologram-msg__text {
    color: #cbd5e1;
}

.auth-showcase__features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.auth-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    font-weight: 600;
    color: #cbd5e1;
    backdrop-filter: blur(10px);
}
.auth-feature-pill svg {
    color: var(--primary);
}

/* Steps Flow (For Signup Showcase) */
.auth-steps-flow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-step-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
}

.auth-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    font-weight: 800;
}

.auth-step-item.is-active .auth-step-dot {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.5);
}

.auth-step-text {
    display: flex;
    flex-direction: column;
}
.auth-step-text strong {
    font-size: 0.85rem;
    color: #fff;
}
.auth-step-text span {
    font-size: 0.72rem;
    color: #64748b;
}

.auth-step-connector {
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

/* Right Side: Futuristic Glassmorphic Auth Card */
.auth-card-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

.auth-card--quantum {
    width: 100%;
    max-width: 440px;
    background: rgba(15, 22, 41, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 2.25rem 2rem;
    backdrop-filter: blur(32px);
    box-shadow:
        0 30px 80px -10px rgba(0, 0, 0, 0.6),
        0 0 50px -5px rgba(99, 102, 241, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    box-sizing: border-box;
}

.auth-card--quantum.auth-card--signup {
    max-width: 460px;
}

/* Auth Loading State (Session Check & Initial App Load) */
.auth-card--loading {
    max-width: 360px !important;
    padding: 2.5rem 2rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: auto;
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.auth-brand__logo {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    border-radius: 12px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.auth-brand__name {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 850;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.auth-loading-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    backdrop-filter: blur(8px);
}

.auth-loading-pill .auth-brand__tagline {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #a5b4fc;
}

/* Tabs Switcher */
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    border-radius: 14px;
    background: rgba(10, 15, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    background: transparent;
    cursor: pointer;
}

.auth-tab:hover {
    color: #f1f5f9;
}

.auth-tab.is-active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.auth-card__header {
    margin-bottom: 0.25rem;
}

.auth-card__heading {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.auth-card__subheading {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: #94a3b8;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.auth-label {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.auth-label--sentence {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-text-link {
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s ease;
}
.auth-text-link:hover {
    color: #a5b4fc;
    text-decoration: underline;
}

.auth-input {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input__icon {
    position: absolute;
    inset-inline-start: 1rem;
    color: #64748b;
    pointer-events: none;
    transition: color 0.2s ease;
}

.auth-input:focus-within .auth-input__icon {
    color: var(--primary);
}

.auth-input__control {
    width: 100%;
    height: 48px;
    padding: 0 2.75rem 0 2.75rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 15, 28, 0.65);
    color: #f1f5f9;
    font-size: 0.92rem;
    outline: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.auth-input__control::placeholder {
    color: #475569;
}

.auth-input__control:focus {
    border-color: var(--accent);
    background: rgba(15, 23, 42, 0.85);
    box-shadow:
        0 0 0 3px rgba(99, 102, 241, 0.25),
        0 0 20px rgba(99, 102, 241, 0.2);
}

.auth-input__action {
    position: absolute;
    inset-inline-end: 0.5rem;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.auth-input__action:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.06);
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.88rem;
    color: #94a3b8;
    cursor: pointer;
    user-select: none;
}
.auth-check input {
    width: 17px;
    height: 17px;
    accent-color: var(--accent);
    border-radius: 5px;
    cursor: pointer;
}

.auth-error-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    font-size: 0.85rem;
    font-weight: 500;
}

.auth-info-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
    font-size: 0.85rem;
    font-weight: 500;
}

.auth-field-error {
    margin: 0;
    font-size: 0.78rem;
    color: #f87171;
    font-weight: 500;
}

/* Quantum Glowing Primary Button */
.auth-primary-btn--quantum {
    margin-top: 0.5rem;
    width: 100%;
    height: 50px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    background-size: 200% auto;
    border: none;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35), 0 0 20px rgba(6, 182, 212, 0.2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.auth-primary-btn--quantum:hover:not(:disabled) {
    transform: translateY(-2px);
    background-position: right center;
    box-shadow: 0 14px 40px rgba(99, 102, 241, 0.5), 0 0 30px rgba(6, 182, 212, 0.35);
}

.auth-primary-btn--quantum:active:not(:disabled) {
    transform: translateY(0);
}

.auth-primary-btn--quantum:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-switch {
    margin: 0.5rem 0 0;
    text-align: center;
    font-size: 0.88rem;
    color: #94a3b8;
}
.auth-switch a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    margin-inline-start: 0.35rem;
}
.auth-switch a:hover {
    text-decoration: underline;
}

/* Avatar Picker Styles */
.auth-avatar-picker {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    padding: 0.75rem;
    border-radius: 16px;
    background: rgba(10, 15, 28, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-avatar-picker__control {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px dashed rgba(99, 102, 241, 0.4);
    background: rgba(15, 23, 42, 0.8);
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.auth-avatar-picker__control:hover {
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.3);
}

.auth-avatar-picker__badge {
    position: absolute;
    bottom: -2px;
    inset-inline-end: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
    border: 2px solid #0f1629;
}

.auth-avatar-picker__image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.auth-avatar-picker__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.auth-strength {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
    margin-top: 0.5rem;
}
.auth-strength__segment {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
}
.auth-strength__segment--weak { background: #f43f5e; box-shadow: 0 0 8px rgba(244, 63, 94, 0.5); }
.auth-strength__segment--fair { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.5); }
.auth-strength__segment--good { background: #6366f1; box-shadow: 0 0 8px rgba(99, 102, 241, 0.5); }
.auth-strength__segment--strong { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.5); }

/* Verify Page Styles */
.auth-shell--verify {
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 2rem;
}

.verify-topbar {
    width: 100%;
    max-width: 800px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.verify-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

.verify-progress {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.verify-progress__label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--primary);
}

.verify-progress__track {
    width: 140px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.verify-progress__fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #06b6d4);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.verify-main {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    position: relative;
    z-index: 2;
}

.verify-copy {
    text-align: center;
}

.otp-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin: 1.25rem 0;
}

.otp-cell {
    width: 48px;
    height: 56px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 15, 28, 0.75);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    outline: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.otp-cell:focus {
    border-color: var(--accent);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3), 0 0 20px rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.otp-separator {
    width: 8px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.verify-resend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 0.75rem;
}

.auth-resend {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.auth-resend:hover:not(:disabled) {
    text-decoration: underline;
}
.auth-resend:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.verify-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 580px) {
    .verify-benefits {
        grid-template-columns: 1fr;
    }
}

.verify-benefit {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
}

.verify-benefit__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.verify-benefit__icon--shield {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}
.verify-benefit__icon--support {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
}

.verify-benefit h3 {
    margin: 0 0 0.2rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}
.verify-benefit p {
    margin: 0;
    font-size: 0.74rem;
    line-height: 1.45;
    color: #94a3b8;
}

.verify-protocol {
    margin-top: 2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #475569;
    text-align: center;
    position: relative;
    z-index: 2;
}

.auth-avatar-picker__copy .auth-hint {
    margin: 0;
}

.auth-hint--loading {
    color: #8ea2ff;
}

.avatar-crop-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    margin: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(4, 4, 6, 0.78);
    backdrop-filter: blur(8px);
    box-sizing: border-box;
}

.avatar-crop-modal__panel {
    width: min(100%, 420px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #151518;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.avatar-crop-modal__header h3 {
    margin: 0;
    color: #f4f4f5;
    font-size: 1.15rem;
    font-weight: 650;
}

.avatar-crop-modal__header p {
    margin: 0.35rem 0 0;
    color: #8f8f9a;
    font-size: 0.88rem;
    line-height: 1.45;
}

.avatar-crop-stage {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0.25rem auto 0;
    touch-action: none;
    user-select: none;
    cursor: grab;
    overflow: hidden;
    border-radius: 50%;
    flex-shrink: 0;
    z-index: 0;
}

.avatar-crop-stage:active {
    cursor: grabbing;
}

.avatar-crop-stage__viewport {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    background: #0e0e10;
}

.avatar-crop-stage__image {
    position: absolute;
    max-width: none;
    pointer-events: none;
}

.avatar-crop-stage__image--loading {
    opacity: 0.85;
}

.avatar-crop-stage__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.42);
    pointer-events: none;
}

.avatar-crop-zoom {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: #9a9aa5;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.avatar-crop-zoom input[type="range"] {
    flex: 1;
    accent-color: #4d6bff;
}

.avatar-crop-modal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.avatar-crop-modal__actions .auth-secondary-btn,
.avatar-crop-modal__actions .auth-primary-btn {
    width: 100%;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.auth-agree {
    width: min(100%, 440px);
    margin-top: 1.35rem;
    text-align: center;
    color: #6f6f7a;
    font-size: 0.78rem;
    line-height: 1.5;
}

.auth-agree a {
    color: #9a9aa5;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-error,
.auth-info {
    margin: 0;
    font-size: 0.85rem;
}

.auth-error { color: #f07178; }
.auth-info { color: #8fb4ff; }

.verify-topbar {
    width: min(100%, 920px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.verify-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.verify-brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
}

.verify-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.verify-progress__label {
    color: #8b8b96;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.verify-progress__track {
    width: 96px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.verify-progress__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #c4b5fd, #e8e4ff);
}

.verify-main {
    width: min(100%, 560px);
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.verify-copy {
    text-align: center;
    margin-bottom: 1.5rem;
}

.verify-copy h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.verify-copy p {
    margin: 0.75rem auto 0;
    max-width: 34rem;
    color: #9a9aa5;
    font-size: 0.98rem;
    line-height: 1.55;
}

.verify-copy strong {
    color: #d8d8e0;
    font-weight: 600;
}

.otp-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin: 0.35rem 0 1.25rem;
}

.otp-cell {
    width: 52px;
    height: 58px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0e0e12;
    color: #fff;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 600;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.otp-cell:focus {
    border-color: rgba(59, 89, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(59, 89, 255, 0.18);
}

.otp-separator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5a5a66;
    margin: 0 0.15rem;
}

.verify-resend {
    margin-top: 1.15rem;
    text-align: center;
}

.verify-resend p {
    margin: 0 0 0.35rem;
    color: #8b8b96;
    font-size: 0.85rem;
}

.auth-resend {
    color: #e8e8ee;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.verify-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    margin-top: 1.25rem;
}

.verify-benefit {
    display: flex;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(18, 18, 22, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.verify-benefit h3 {
    margin: 0 0 0.35rem;
    font-size: 0.92rem;
    font-weight: 650;
}

.verify-benefit p {
    margin: 0;
    color: #8b8b96;
    font-size: 0.78rem;
    line-height: 1.45;
}

.verify-benefit__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.verify-benefit__icon--shield {
    color: #b39dff;
    background: rgba(139, 110, 255, 0.12);
}

.verify-benefit__icon--support {
    color: #6fd6c8;
    background: rgba(80, 200, 180, 0.12);
}

.verify-protocol {
    margin-top: 2rem;
    color: #5a5a66;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-align: center;
}

@media (max-width: 640px) {
    .auth-card,
    .auth-card--signup,
    .auth-card--verify {
        padding: 1.5rem 1.15rem;
        border-radius: 20px;
    }

    .otp-cell {
        width: 42px;
        height: 48px;
        font-size: 1.15rem;
    }

    .verify-benefits {
        grid-template-columns: 1fr;
    }

    .verify-topbar {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1.75rem;
    }

    .auth-page-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Server create modal + empty states */
.vx-channels__empty {
    margin: 1.25rem 0.85rem;
    padding: 1rem;
    border-radius: 14px;
    background: var(--bg-soft);
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.vx-channels__empty p {
    margin: 0;
    color: var(--text);
    font-weight: 650;
}
.vx-channels__empty span { font-size: 0.85rem; line-height: 1.45; }

.vx-btn--ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.vx-btn--ghost:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text);
}
.vx-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.vx-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 1rem;
}
.vx-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: color-mix(in srgb, #05060a 62%, transparent);
    backdrop-filter: blur(6px);
    cursor: pointer;
}
.vx-modal__panel {
    position: relative;
    width: min(460px, 100%);
    max-height: min(90vh, calc(100dvh - 60px));
    overflow-y: auto;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: radial-gradient(ellipse 95% 65% at 50% -8%, rgba(102, 227, 205, 0.12) 0%, rgba(16, 23, 36, 0.96) 55%), #101724;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 24px 70px -12px rgba(0, 0, 0, 0.85),
        0 0 40px -10px rgba(102, 227, 205, 0.1),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.12);
    padding: 1.6rem 1.6rem 1.4rem;
}
.vx-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.vx-modal__header h2 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    font-weight: 700;
}
.vx-modal__header p {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}
.vx-modal__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.vx-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.vx-field > span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding-inline-start: 0.35rem;
}
.vx-field input {
    width: 100%;
    height: 46px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    padding: 0 1.25rem;
    outline: 0;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
.vx-field textarea {
    width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    padding: 0.85rem 1.1rem;
    outline: 0;
    resize: vertical;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
.vx-field input:focus,
.vx-field textarea:focus {
    border-color: rgba(102, 227, 205, 0.45);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(102, 227, 205, 0.15);
}
.vx-field__prefix {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.08);
    padding-inline-start: 1.1rem;
    height: 46px;
    box-sizing: border-box;
}
.vx-field__prefix > span {
    color: var(--text-dim);
    font-size: 0.85rem;
    white-space: nowrap;
}
.vx-field__prefix input {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding-inline-start: 0;
}
.vx-check {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    cursor: pointer;
}
.vx-check input { margin-top: 0.2rem; }
.vx-check strong { display: block; font-size: 0.92rem; }
.vx-check small { color: var(--text-muted); line-height: 1.4; }
.vx-modal__error {
    margin: 0;
    color: var(--danger);
    font-size: 0.88rem;
}
.vx-modal__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    width: 100%;
}
.vx-modal__actions-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-inline-start: auto;
}
.vx-btn--danger-text {
    background: transparent;
    color: #f23f43;
    padding: 0 0.65rem;
    height: 38px;
    border-radius: 8px;
    border: none;
    font-size: 0.88rem;
    font-weight: 600;
}
.vx-btn--danger-text:hover:not(:disabled) {
    background: rgba(242, 63, 67, 0.12);
    color: #fa5255;
}

.vx-modal__panel--delete-msg {
    width: min(460px, 100%);
}

.vx-delete-msg-preview {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    margin-bottom: 1.1rem;
    max-height: 140px;
    overflow-y: auto;
}

.vx-delete-msg-preview__text {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.5;
    word-break: break-word;
}

.vx-delete-msg-preview__attachments {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.vx-modal__actions--delete {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.vx-server-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.35rem 0 0.15rem;
}

.vx-server-picker__wrapper {
    position: relative;
    width: 84px;
    height: 84px;
}

.vx-server-picker__control {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed color-mix(in srgb, var(--text-dim) 45%, transparent);
    background: color-mix(in srgb, var(--bg-soft) 85%, var(--accent) 15%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                border-radius 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.vx-server-picker__control:hover {
    border-color: var(--accent);
    border-radius: 24px;
    background: color-mix(in srgb, var(--bg-soft) 70%, var(--accent) 30%);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
}

.vx-server-picker__control.has-image {
    border-style: solid;
    border-color: var(--border);
    border-radius: 24px;
}

.vx-server-picker__control.has-image:hover {
    border-color: var(--accent);
}

.vx-server-picker__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vx-server-picker__empty,
.vx-server-picker__fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-muted);
    gap: 0.25rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-align: center;
    user-select: none;
}

.vx-server-picker__initials {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vx-server-picker__overlay {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, #000 70%, transparent);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(3px);
    padding: 0.25rem;
}

.vx-server-picker__control:hover .vx-server-picker__overlay {
    opacity: 1;
}

.vx-server-picker__remove-btn {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-elevated, #1e1f22);
    color: var(--danger, #f43f5e);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
    z-index: 2;
}

.vx-server-picker__remove-btn:hover:not(:disabled) {
    transform: scale(1.15);
    background: var(--danger, #f43f5e);
    color: #ffffff;
}

.vx-server-picker__input {
    display: none;
}

.vx-server-picker__hint {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 500;
}

.vx-field select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    color-scheme: dark;
    padding: 0.75rem 0.9rem;
    outline: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.92rem;
}

.vx-field select:focus {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.vx-field select option,
select option {
    background-color: #121824 !important;
    color: #f8fafc !important;
    padding: 0.5rem;
}

[data-theme="light"] .vx-field select,
[data-theme="light"] select {
    color-scheme: light;
}

[data-theme="light"] .vx-field select option,
[data-theme="light"] select option {
    background-color: #ffffff !important;
    color: #060607 !important;
}
.vx-members__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.25rem 0.25rem 0.65rem;
    margin-bottom: 0.45rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.vx-members__title-wrap {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-muted);
}

.vx-members__title-wrap h3 {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.vx-members__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 0.35rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.vx-members__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.vx-members-invite-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.16);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.35);
    transition: all 0.15s ease;
    cursor: pointer;
}

.vx-members-invite-btn:hover {
    background: rgba(99, 102, 241, 0.28);
    color: #ffffff;
    border-color: rgba(99, 102, 241, 0.6);
}

html[data-theme="light"] .vx-members-invite-btn,
.theme-light .vx-members-invite-btn {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    border: 1px solid rgba(79, 70, 229, 0.25);
}

.vx-header-invite-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 10px;
    color: var(--primary) !important;
    background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.vx-header-invite-btn:hover {
    background: color-mix(in srgb, var(--primary) 24%, transparent);
}

/* Custom UI Refinements Matching Reference Screenshot */
.vx-welcome-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.vx-member {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    color: var(--text-muted);
    transition: background 0.15s ease, color 0.15s ease;
    cursor: pointer;
}
.vx-member:hover {
    background: var(--bg-hover);
    color: var(--text);
}
.vx-member__info {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    flex: 1;
}
.vx-member__name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vx-member-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.12rem 0.45rem;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.35);
    line-height: 1.2;
    white-space: nowrap;
}

.vx-composer-container {
    padding: 0.75rem 1rem 1rem;
}
.vx-composer-box {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    background: var(--surface-container-high);
    border-radius: 12px;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--border);
    min-height: 48px;
    box-sizing: border-box;
}
.vx-composer-box textarea {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--text);
    font-size: 0.94rem;
    resize: none;
    min-height: 24px;
    max-height: 150px;
    padding: 0.25rem 0;
    line-height: 1.45;
    overflow-y: hidden;
    overflow-x: hidden;
    scrollbar-width: thin;
}
.vx-composer-box textarea::placeholder {
    color: var(--text-dim);
}
.vx-composer-btn-add {
    position: relative;
    overflow: hidden;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: var(--bg-hover);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: background 0.15s ease;
    cursor: pointer;
    flex-shrink: 0;
    margin-bottom: 2px;
}
.vx-composer-btn-add:hover {
    background: var(--bg-active);
}
.vx-composer-btn-add input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.vx-composer-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}
.vx-composer-actions button {
    color: var(--text-muted);
    padding: 0.3rem;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
}
.vx-composer-actions button:hover {
    color: var(--primary);
    background: var(--bg-hover);
}
.vx-composer-send-btn {
    color: #ffffff !important;
    background: var(--accent) !important;
    border-radius: 8px;
    padding: 0.35rem 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.vx-composer-send-btn:hover {
    opacity: 0.9;
}

/* Mobile & Smartphone Responsiveness */
@media (max-width: 768px) {
    .vx-shell {
        grid-template-columns: 56px minmax(0, 1fr);
    }
    .vx-rail {
        padding: 0.75rem 0.35rem;
    }
    .vx-rail__brand, .vx-rail__btn {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }
    .vx-chat {
        grid-template-columns: minmax(0, 1fr) !important;
        position: relative;
    }
    .vx-channels {
        position: absolute;
        top: 0;
        bottom: 0;
        inset-inline-start: 0;
        width: 290px;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    }
    [dir="rtl"] .vx-channels {
        transform: translateX(100%);
    }
    .vx-chat.is-channels-open .vx-channels {
        transform: translateX(0) !important;
    }
    .vx-members {
        position: absolute;
        top: 0;
        bottom: 0;
        inset-inline-end: 0;
        width: 270px;
        z-index: 100;
        transform: translateX(100%);
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    }
    [dir="rtl"] .vx-members {
        transform: translateX(-100%);
    }
    .vx-chat.is-members-open .vx-members {
        transform: translateX(0) !important;
    }
    .vx-drawer-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(3px);
        z-index: 90;
    }
    .vx-search {
        min-width: 100px;
    }
}

/* Emoji and Sticker Picker */
.vx-picker-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: transparent;
}
.vx-emoji-picker {
    position: absolute;
    bottom: calc(100% + 12px);
    inset-inline-end: 1rem;
    width: min(390px, 92vw);
    height: 420px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 70;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: vx-scale-in 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes vx-scale-in {
    from { opacity: 0; transform: scale(0.95) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.vx-picker__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.75rem 0.45rem;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg-panel) 60%, transparent);
}

.vx-picker__tabs {
    display: flex;
    gap: 0.35rem;
}

.vx-picker__tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.vx-picker__tab:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.vx-picker__tab.is-active {
    background: var(--accent-soft);
    color: var(--accent);
}

.vx-picker__search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.6rem 0.75rem 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text-dim);
}

.vx-picker__search input {
    flex: 1;
    border: 0;
    background: transparent;
    outline: 0;
    color: var(--text);
    font-size: 0.88rem;
}

.vx-picker__search input::placeholder {
    color: var(--text-dim);
}

.vx-picker__clear {
    border: 0;
    background: transparent;
    color: var(--text-dim);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 0.2rem;
    line-height: 1;
}

.vx-picker__clear:hover {
    color: var(--text);
}

.vx-picker__body {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0.75rem 0.75rem;
    scrollbar-width: thin;
}

.vx-picker__category {
    margin-bottom: 0.85rem;
}

.vx-picker__category h4 {
    margin: 0.25rem 0 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

.vx-picker__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
    gap: 0.25rem;
}

.vx-picker__grid--stickers {
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 0.5rem;
}

.vx-picker__emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease;
    user-select: none;
}

.vx-picker__emoji:hover {
    background: var(--bg-hover);
    transform: scale(1.22);
}

.vx-picker__sticker {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.vx-picker__sticker:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
    transform: scale(1.1);
}

.vx-sticker-preview {
    font-size: 2rem;
    line-height: 1;
}

/* Discord-style Rich Link Embed Card */
.vx-link {
    color: var(--accent);
    text-decoration: none;
    word-break: break-all;
}
.vx-link:hover {
    text-decoration: underline;
}

.vx-embed {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    max-width: 520px;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    padding: 0.75rem 1rem;
    background: var(--bg-soft, #1e1f22);
    border: 1px solid var(--border);
    border-inline-start: 4px solid var(--accent, #66e3cd);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.vx-embed__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.vx-embed__site {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: capitalize;
}

.vx-embed__favicon {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    object-fit: contain;
}

.vx-embed__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.vx-embed__title:hover {
    text-decoration: underline;
}

.vx-embed__description {
    margin: 0;
    font-size: 0.83rem;
    line-height: 1.45;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.vx-embed__thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vx-embed__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* ==========================================================================
   Server Settings View
   ========================================================================== */

.vx-server-settings {
    display: grid;
    grid-template-columns: var(--channels-width) 1fr;
    height: 100vh;
    height: 100dvh;
    background: var(--bg);
    overflow: hidden;
}

.vx-server-settings__nav {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem clamp(5rem, 10vh, 7.5rem);
    background: var(--bg-panel);
    border-inline-end: 1px solid var(--border);
    gap: 0.35rem;
    overflow-y: auto;
}

.vx-server-settings__nav-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
}

.vx-server-settings__back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: color 0.15s ease, background 0.15s ease;
}

.vx-server-settings__back-btn:hover {
    color: var(--text);
    background: var(--bg-hover);
}


.vx-server-settings__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
    padding-inline-start: 0.5rem;
}

.vx-server-settings__nav-divider {
    height: 1px;
    background: var(--border);
    margin: 0.75rem 0.5rem;
}

.vx-server-settings__item--danger {
    color: var(--danger) !important;
}

.vx-server-settings__item--danger:hover {
    background: var(--danger-soft) !important;
    color: var(--danger) !important;
}

.vx-server-settings__item--danger.is-active {
    background: var(--danger-soft) !important;
    color: var(--danger) !important;
}

.vx-server-settings__main {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 3rem clamp(6.5rem, 14vh, 10rem);
    scroll-padding-bottom: 6rem;
    box-sizing: border-box;
    overflow-y: auto;
    max-width: 900px;
    width: 100%;
}

.vx-server-settings__overview-layout {
    display: flex;
    flex-direction: row;
    gap: 2.25rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 860px;
}

[dir="rtl"] .vx-server-settings__overview-layout {
    flex-direction: row-reverse;
}

.vx-server-settings__header h1 {
    font-size: 1.55rem;
    font-weight: 800;
    margin: 0 0 1.25rem 0;
    color: #ffffff;
}

.vx-server-settings__avatar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
    padding-top: 0.5rem;
}

.vx-server-settings__form-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
    min-width: 0;
    max-width: 620px;
}

.vx-server-settings__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vx-server-settings__field span {
    font-size: 0.88rem;
    font-weight: 700;
    color: #dbdee1;
    display: block;
    text-align: inherit;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.vx-server-settings__field input {
    background: #2b2d31;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.85rem 1.15rem;
    color: #f2f3f5;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    height: 50px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.vx-server-settings__field textarea {
    background: #2b2d31;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.95rem 1.15rem;
    color: #dbdee1;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    width: 100%;
    min-height: 140px;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.vx-server-settings__field input:focus,
.vx-server-settings__field textarea:focus {
    outline: none;
    border-color: var(--accent, #66e3cd);
    background: #1e1f22;
}

.vx-server-avatar-picker {
    position: relative;
    width: 140px;
    height: 140px;
}

.vx-server-avatar-picker__control {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #2b2d31;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.vx-server-avatar-picker__control:hover {
    border-color: var(--accent, #66e3cd);
    transform: scale(1.02);
}

.vx-server-avatar-picker__control.has-image {
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.12);
}

.vx-server-avatar-picker__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vx-server-avatar-picker__fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d9488, #059669);
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
}

.vx-server-avatar-picker__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    color: #949ba4;
    font-size: 0.8rem;
}

.vx-server-avatar-picker__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 0.6rem;
    text-align: center;
    border-radius: 50%;
}

.vx-server-avatar-picker__overlay span {
    font-size: 0.72rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.vx-server-avatar-picker__overlay small {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.78);
}

.vx-server-avatar-picker__control:hover .vx-server-avatar-picker__overlay {
    opacity: 1;
}

.vx-server-avatar-picker__remove-btn {
    position: absolute;
    top: -2px;
    inset-inline-end: -2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1e1f22;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f23f43;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.15s ease, transform 0.15s ease;
}

.vx-server-avatar-picker__remove-btn:hover {
    background: rgba(242, 63, 67, 0.2);
    transform: scale(1.1);
}

.vx-server-avatar-picker__input {
    display: none;
}

.vx-server-avatar-picker__hint {
    font-size: 0.82rem;
    color: #949ba4;
    line-height: 1.5;
    max-width: 190px;
    text-align: center;
}

.vx-server-settings__unsaved-bar {
    position: fixed;
    bottom: 24px;
    inset-inline-start: calc(50% - 100px);
    transform: translateX(-50%);
    width: min(720px, calc(100% - 360px));
    background: #111214;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.65);
    z-index: 50;
    animation: vxSlideUp 0.25s ease-out;
}

[dir="rtl"] .vx-server-settings__unsaved-bar {
    inset-inline-start: calc(50% - 100px);
    transform: translateX(-50%);
}

.vx-server-settings__unsaved-text {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f2f3f5;
    white-space: nowrap;
}

.vx-server-settings__unsaved-text .nexus-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #f2f3f5;
}

.vx-server-settings__unsaved-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vx-server-settings__unsaved-actions .vx-btn--ghost {
    background: #2b2d31;
    color: #f2f3f5;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 24px;
    border-radius: 6px;
    font-weight: 500;
}

.vx-server-settings__unsaved-actions .vx-btn--ghost:hover {
    background: #35373c;
}

.vx-server-settings__unsaved-actions .vx-btn--primary {
    background: var(--accent, #66e3cd);
    color: #09251f;
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vx-server-settings__unsaved-actions .vx-btn--primary:hover {
    background: #93f3e2;
}

.vx-server-settings__error,
.vx-server-settings__success {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.vx-server-settings__error {
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.vx-server-settings__success {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.vx-server-settings__placeholder {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vx-server-settings__placeholder-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
    gap: 0.75rem;
    padding: 3rem;
    background: var(--bg-panel);
    border: 1px dashed var(--border);
    border-radius: 12px;
}

.vx-server-settings__placeholder-content h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.2rem;
}

.vx-channels__settings-btn {
    opacity: 0.75;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.vx-channels__settings-btn:hover {
    opacity: 1;
    transform: rotate(30deg);
}

.vx-channels__leave-btn {
    opacity: 0.75;
    color: var(--color-danger, #ef4444);
    transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.vx-channels__leave-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(239, 68, 68, 0.15);
}

.vx-channel__settings-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease, color 0.15s ease;
    padding: 2px 4px;
    border-radius: 4px;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-inline-start: auto;
}

.vx-channel:hover .vx-channel__settings-btn,
.vx-channel__settings-btn:focus {
    opacity: 0.8;
    pointer-events: auto;
}

.vx-channel__settings-btn:hover {
    opacity: 1;
    color: var(--text);
    transform: rotate(30deg);
}

.vx-btn--danger {
    background: #da373c;
    color: #ffffff;
    border: none;
}
.vx-btn--danger:hover {
    background: #a1282c;
}

.vx-btn--danger-outline {
    background: transparent;
    color: #da373c;
    border: 1px solid rgba(218, 55, 60, 0.4);
}
.vx-btn--danger-outline:hover {
    background: rgba(218, 55, 60, 0.1);
    border-color: #da373c;
}

.vx-modal__warning-box {
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(242, 63, 67, 0.1);
    border: 1px solid rgba(242, 63, 67, 0.3);
    border-radius: 8px;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.vx-modal__warning-box p {
    margin: 0;
    font-size: 0.88rem;
    color: #f23f43;
    line-height: 1.4;
}
.vx-modal__warning-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.vx-server-settings__delete-title {
    color: #f23f43 !important;
}

.vx-server-delete-card {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    max-width: 600px;
    background: #1e1f22;
    border: 1px solid rgba(242, 63, 67, 0.25);
    border-radius: 12px;
    padding: 1.75rem;
}

.vx-server-delete-card__warning {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: #f23f43;
    background: rgba(242, 63, 67, 0.1);
    border: 1px solid rgba(242, 63, 67, 0.2);
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.vx-server-delete-card__warning h3 {
    margin: 0 0 0.4rem 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #f2f3f5;
}

.vx-server-delete-card__warning p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #dbdee1;
}

.vx-server-delete-card__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.vx-server-delete-card__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 0.5rem;
}

.vx-btn--danger {
    background: #da373c;
    color: #ffffff;
    border: none;
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.vx-btn--danger:hover:not(:disabled) {
    background: #a12828;
}

.vx-btn--danger:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 860px) {
    .vx-server-settings {
        grid-template-columns: 1fr;
    }
    .vx-server-settings__overview-layout {
        grid-template-columns: 1fr;
    }
    .vx-server-settings__main {
        padding: 1.5rem 1rem calc(clamp(5rem, 10vh, 8rem) + env(safe-area-inset-bottom, 0px));
    }
}

/* Direct Messages Styles */
.vx-member.is-clickable {
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.vx-member.is-clickable:hover {
    background: var(--bg-hover);
}

.vx-member.is-clickable:active {
    transform: scale(0.98);
}

.vx-dm-channels {
    border-inline-end: 1px solid var(--border-subtle);
}

.vx-dm-list-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 0 0.5rem clamp(2.5rem, 5vh, 4rem);
    scroll-padding-bottom: 3rem;
}

.vx-dm-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    text-align: start;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    box-sizing: border-box;
}

.vx-dm-item:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.vx-dm-item.is-active {
    background: var(--bg-active);
    color: var(--text);
}

.vx-dm-item .vx-avatar {
    flex-shrink: 0;
}

.vx-dm-item__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.vx-dm-item__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.vx-dm-item__name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vx-dm-item__time {
    font-size: 0.72rem;
    color: var(--text-dim);
    flex-shrink: 0;
}

.vx-dm-item__preview {
    font-size: 0.76rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.vx-dm-item__preview.is-new {
    color: var(--accent);
    font-weight: 500;
}

.vx-dm-item__close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
    padding: 0;
    margin-inline-start: auto;
}

.vx-dm-item:hover .vx-dm-item__close,
.vx-dm-item:focus-within .vx-dm-item__close {
    display: inline-flex;
}

.vx-dm-item__close:hover {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger, #ef4444);
    transform: scale(1.1);
}

.vx-dm-item:hover .vx-dm-item__time {
    display: none;
}

.vx-dm-header-status {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.vx-dm-header-status.is-online {
    color: var(--color-success, #22c55e);
}

/* ==========================================================================
   VOXIR.IR SLEEK WORKSPACE & CHAT THEMING (LIGHTWEIGHT & FAST)
   ========================================================================== */

/* 1. Shell & Navigation Rail */
.vx-shell {
    background: var(--bg) !important;
    color: var(--text);
}

.vx-rail--orbital {
    background: var(--bg-elevated) !important;
    border-inline-end: 1px solid var(--border) !important;
    box-shadow: none !important;
}

.vx-rail__badge {
    position: absolute;
    top: -3px;
    inset-inline-end: -3px;
    background: var(--accent) !important;
    color: var(--accent-dark) !important;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: none !important;
    border: 2px solid var(--bg-elevated);
}

/* 2. Channels Sidebar */
.vx-channels {
    background: var(--bg-panel) !important;
    border-inline-end: 1px solid var(--border) !important;
}

.vx-channels__header {
    background: var(--bg-panel) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: none !important;
}

.vx-channels__server-icon {
    border-radius: 10px;
}

.vx-channel {
    border-radius: 8px !important;
    margin: 2px 6px !important;
    padding: 0.45rem 0.75rem !important;
    transition: all 0.15s ease !important;
    border: 1px solid transparent !important;
    color: var(--text-muted) !important;
}

.vx-channel:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #ffffff !important;
    transform: none !important;
}

.vx-channel.is-active,
.vx-channel.is-voice.is-active {
    background: rgba(102, 227, 205, 0.12) !important;
    border: 1px solid rgba(102, 227, 205, 0.25) !important;
    color: var(--accent) !important;
    box-shadow: none !important;
}

.vx-channel.is-active .vx-channel__name {
    color: #ffffff !important;
    font-weight: 600;
}

.vx-channel.is-active svg,
.vx-channel.is-active .vx-channel__icon,
.vx-channel.is-active .vx-channel__start {
    color: var(--accent) !important;
}

.vx-channel__unread-badge {
    background: var(--accent) !important;
    color: var(--accent-dark) !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

/* Voice Channel In-Sidebar Participants */
.vx-voice-channel-users {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 2px 0 6px 18px;
    padding-left: 10px;
    border-left: 2px solid var(--border);
    transition: border-color 0.2s ease;
}

[dir="rtl"] .vx-voice-channel-users {
    margin: 2px 18px 6px 0;
    padding-left: 0;
    padding-right: 10px;
    border-left: none;
    border-right: 2px solid var(--border);
}

.vx-voice-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.15s ease;
    user-select: none;
}

.vx-voice-user:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.vx-voice-user.is-me {
    font-weight: 600;
}

.vx-voice-user.is-speaking {
    color: #ffffff;
}

.vx-voice-user__avatar-wrap {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.15s ease;
}

.vx-voice-user__avatar-wrap.is-speaking-ring {
    box-shadow: 0 0 0 2px var(--accent), 0 0 8px rgba(102, 227, 205, 0.5);
}

.vx-voice-user__avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.vx-voice-user__avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #234e48;
    color: #c6f3e5;
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.vx-voice-user__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.vx-voice-user__icons {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.vx-voice-user__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.vx-voice-user__icon--muted,
.vx-voice-user__icon--deaf {
    color: var(--danger) !important;
}

.vx-voice-user__icon--video {
    color: var(--tertiary) !important;
}

.vx-voice-badge-live {
    background: var(--danger);
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* 3. Spatial Voice & Video Stage */
.vx-voice-container {
    background: var(--bg) !important;
    position: relative;
    overflow: hidden;
}

.vx-voice-topbar {
    background: var(--bg-panel) !important;
    border-bottom: 1px solid var(--border) !important;
}

.vx-participant-card {
    border-radius: 16px !important;
    background: var(--bg-panel) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    transition: transform 0.18s ease, border-color 0.18s ease !important;
}

.vx-participant-card:hover {
    transform: translateY(-2px);
    border-color: rgba(102, 227, 205, 0.3) !important;
}

.vx-participant-card.is-speaking {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 2px rgba(102, 227, 205, 0.35), 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

.vx-participant-card.is-screenshare {
    border-color: rgba(102, 227, 205, 0.5) !important;
    box-shadow: 0 0 20px rgba(102, 227, 205, 0.25), 0 12px 30px rgba(0, 0, 0, 0.5) !important;
}

/* 4. Voice Floating Control Dock */
.vx-voice-floating-dock {
    background: var(--surface-2) !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    padding: 0.5rem 0.85rem !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5) !important;
    gap: 0.65rem !important;
}

.vx-dock-pill {
    width: 42px !important;
    height: 42px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    transition: all 0.15s ease !important;
}

.vx-dock-pill:hover {
    background: rgba(102, 227, 205, 0.15) !important;
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    transform: scale(1.04);
}

.vx-dock-pill.is-active {
    background: var(--success) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

.vx-dock-pill.is-danger {
    background: var(--danger) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

.vx-dock-pill--leave {
    background: #dc2626 !important;
    color: #ffffff !important;
}

/* 5. Chat Main Pane, Messages, and Members */
.vx-chat-main, .vx-voice-stage, .vx-settings__main {
    background: var(--bg) !important;
    position: relative;
}

.vx-chat-header, .vx-voice-top, .vx-settings__header {
    background: var(--bg-panel) !important;
    border-bottom: 1px solid var(--border) !important;
}

.vx-members {
    background: var(--bg-panel) !important;
    border-inline-start: 1px solid var(--border) !important;
}

.vx-message {
    padding: 0.65rem 0.85rem !important;
    margin: 2px 8px !important;
    border-radius: 10px !important;
    transition: background 0.15s ease !important;
    border: 1px solid transparent !important;
}

.vx-message:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

.vx-message__username {
    font-weight: 700 !important;
    color: #ffffff !important;
}

.vx-message__actions {
    background: var(--surface-2) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    padding: 3px 6px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

/* 6. Command Composer Bar */
.vx-composer-box {
    background: var(--surface-2) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.vx-composer-box:focus-within {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(102, 227, 205, 0.15) !important;
}

.vx-composer-btn-send {
    background: var(--accent) !important;
    color: var(--accent-dark) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    transition: transform 0.15s ease, background 0.15s ease !important;
}

.vx-composer-btn-send:hover:not(:disabled) {
    background: var(--accent-hover) !important;
    color: var(--accent-dark) !important;
    transform: none !important;
    box-shadow: 0 2px 10px rgba(102, 227, 205, 0.25) !important;
}

.vx-search {
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border) !important;
}

.vx-search:focus-within {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(102, 227, 205, 0.15) !important;
}

.vx-user-panel {
    border-radius: 14px !important;
    background: var(--bg-panel) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

/* =============================================================
   DISCORD-LIKE USER PROFILE MODAL & POPOVER
   ============================================================= */

.vx-user-popover-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: vx-fade-in 0.18s ease-out;
}

@keyframes vx-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.vx-user-popover-card {
    width: 100%;
    max-width: 380px;
    background: #0d1420;
    border: 1px solid rgba(102, 227, 205, 0.2);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75), 0 0 24px rgba(102, 227, 205, 0.08);
    display: flex;
    flex-direction: column;
    animation: vx-pop-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes vx-pop-in {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.vx-user-popover__banner {
    height: 110px;
    position: relative;
    width: 100%;
}

.vx-user-popover__close {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(9, 14, 24, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-muted, #94a3b8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
    padding: 0;
}

.vx-user-popover__close:hover {
    background: #141d2c;
    color: #66e3cd;
    border-color: rgba(102, 227, 205, 0.45);
    box-shadow: 0 0 10px rgba(102, 227, 205, 0.25);
    transform: scale(1.08);
}

.vx-user-popover__avatar-row {
    padding: 0 1.25rem;
    margin-top: -46px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
}

.vx-user-popover__avatar-wrap {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    position: relative;
    background: #0d1420;
    padding: 5px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.vx-user-popover__avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.vx-user-popover__avatar-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 227, 205, 0.22), rgba(102, 227, 205, 0.06));
    color: var(--accent, #66e3cd);
    border: 1px solid rgba(102, 227, 205, 0.35);
    font-weight: 800;
    font-size: 1.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vx-user-popover__status-dot {
    position: absolute;
    bottom: 3px;
    inset-inline-end: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3.5px solid #0d1420;
}

.vx-user-popover__status-dot.is-online {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.vx-user-popover__status-dot.is-offline {
    background: #64748b;
}

.vx-user-popover__top-actions {
    margin-bottom: 6px;
}

.vx-user-popover__btn-message {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.15rem;
    height: 34px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    background: var(--accent, #66e3cd);
    color: #09251f;
    border: 1px solid var(--accent, #66e3cd);
    box-shadow: 0 4px 14px rgba(102, 227, 205, 0.32);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.vx-user-popover__btn-message:hover {
    background: #8bf7e4;
    border-color: #8bf7e4;
    color: #051a16;
    box-shadow: 0 6px 20px rgba(102, 227, 205, 0.48);
    transform: translateY(-1.5px);
}

.vx-user-popover__btn-message:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 227, 205, 0.3);
}

.vx-user-popover__btn-message .vx-icon {
    flex-shrink: 0;
}

.vx-user-popover__body {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.vx-user-popover__names {
    display: flex;
    flex-direction: column;
}

.vx-user-popover__display-name {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text, #f8fafc);
    line-height: 1.25;
}

.vx-user-popover__handle {
    font-size: 0.85rem;
    color: var(--text-muted, #94a3b8);
    margin-top: 2px;
}

.vx-user-popover__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.15rem;
}

.vx-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
}

.vx-badge--owner {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.35);
}

.vx-badge--status.is-online {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.vx-badge--status.is-offline {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.vx-badge--self {
    background: rgba(102, 227, 205, 0.15);
    color: #66e3cd;
    border: 1px solid rgba(102, 227, 205, 0.35);
}

.vx-badge--success {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.vx-badge--warning {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.vx-badge--info {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.vx-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* =============================================================
   INVITE MEMBER PREVIEW CARD
   ============================================================= */
.vx-invite-preview-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: var(--bg-soft, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border);
    margin-top: 0.5rem;
    animation: vx-fade-in 0.2s ease-out;
}

.vx-invite-preview-card .vx-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
}

.vx-invite-preview-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

.vx-invite-preview-card__title {
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.03em;
}

.vx-invite-preview-card__name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vx-invite-preview-card__status {
    flex-shrink: 0;
}

.vx-invite-preview-card__status .vx-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
}

.vx-invite-preview-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.vx-invite-preview-loading .vx-spinner {
    width: 14px;
    height: 14px;
}

.vx-invite-preview-empty {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.vx-user-popover__divider {
    height: 1px;
    background: var(--border, rgba(255, 255, 255, 0.08));
    margin: 0.15rem 0;
}

.vx-user-popover__section {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.vx-user-popover__section-title {
    margin: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--text-muted, #94a3b8);
}

.vx-user-popover__meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.vx-user-popover__meta-label {
    color: var(--text-muted, #94a3b8);
}

.vx-user-popover__meta-val-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.vx-user-popover__meta-val {
    font-family: monospace;
    font-size: 0.72rem;
    background: var(--surface-2, #141d2c);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    color: var(--text, #f8fafc);
}

.vx-user-popover__copied-toast {
    font-size: 0.75rem;
    color: #4ade80;
    font-weight: 600;
}

.vx-user-popover__quick-dm {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.vx-user-popover__quick-dm-box {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #101724;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.3rem 0.45rem 0.3rem 0.65rem;
    transition: all 0.2s ease;
}

.vx-user-popover__quick-dm-box:focus-within {
    border-color: var(--accent, #66e3cd);
    box-shadow: 0 0 0 3px rgba(102, 227, 205, 0.18), 0 0 16px rgba(102, 227, 205, 0.1);
}

.vx-user-popover__quick-dm-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text, #f8fafc);
    font-size: 0.85rem;
    padding: 0.25rem 0.2rem;
    min-width: 0;
}

.vx-user-popover__quick-dm-box input::placeholder {
    color: rgba(148, 163, 184, 0.65);
}

.vx-user-popover__quick-send-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.25);
    cursor: not-allowed;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.vx-user-popover__quick-send-btn.is-active,
.vx-user-popover__quick-send-btn:not(:disabled) {
    background: var(--accent, #66e3cd);
    color: #09251f;
    border-color: var(--accent, #66e3cd);
    box-shadow: 0 0 12px rgba(102, 227, 205, 0.38);
    cursor: pointer;
}

.vx-user-popover__quick-send-btn.is-active:hover,
.vx-user-popover__quick-send-btn:not(:disabled):hover {
    background: #8bf7e4;
    border-color: #8bf7e4;
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(102, 227, 205, 0.55);
}

.vx-user-popover__quick-send-btn:disabled {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.25);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.vx-user-popover__error {
    font-size: 0.75rem;
    color: #f43f5e;
}

.vx-message__avatar-btn {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    outline: none;
    border-radius: 50%;
    display: inline-flex;
    transition: transform 0.15s ease;
}

.vx-message__avatar-btn:hover {
    transform: scale(1.08);
}

.vx-message__author-btn {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    outline: none;
    font-family: inherit;
    text-align: inherit;
    display: inline-flex;
}

.vx-message__author-btn:hover .vx-message__username {
    text-decoration: underline;
    color: var(--accent, #66e3cd);
}

/* =============================================================
   SETTINGS - MY ACCOUNT TAB & CARDS
   ============================================================= */

.vx-account-card {
    background: #15171c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
    max-width: 820px;
    width: 100%;
    flex: 0 0 auto;
    flex-shrink: 0;
    min-height: fit-content;
    overflow: visible;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vx-account-card__banner {
    height: 155px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 14px 18px;
    border-radius: 19px 19px 0 0;
    overflow: hidden;
}

.vx-account-card__banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18) 0%, transparent 50%),
                radial-gradient(circle at 10% 90%, rgba(0, 0, 0, 0.45) 0%, transparent 60%);
    pointer-events: none;
}

.vx-account-card__banner-tag {
    position: relative;
    z-index: 2;
    background: rgba(10, 12, 18, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 650;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.vx-account-card__body {
    padding: 0 24px 24px;
    position: relative;
    background: #15171c;
    border-radius: 0 0 19px 19px;
}

.vx-account-card__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: -50px;
    position: relative;
    margin-bottom: 12px;
}

.vx-account-card__avatar-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 6px solid #15171c;
    background: #1e293b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    flex-shrink: 0;
    cursor: pointer;
}

.vx-account-card__avatar {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    overflow: hidden !important;
}

.vx-account-card__avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.vx-account-card__avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
    color: #fff;
    font-size: 0.64rem;
    font-weight: 600;
    text-align: center;
    padding: 6px;
    z-index: 2;
}

.vx-account-card__avatar-wrap:hover .vx-account-card__avatar-overlay {
    opacity: 1;
}

.vx-account-card__avatar-badge {
    position: absolute;
    bottom: 0;
    inset-inline-end: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent, #66e3cd);
    border: 3px solid #101724;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #09251f;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 10px rgba(102, 227, 205, 0.3);
    transition: transform 0.15s ease, filter 0.15s ease;
    z-index: 3;
}

.vx-account-card__avatar-badge:hover {
    transform: scale(1.1);
    filter: brightness(1.15);
}

.vx-account-card__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.vx-btn-profile-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    line-height: 1.2;
}

.vx-btn-profile-action--primary {
    background: var(--accent, #66e3cd);
    color: #09251f;
    border: 1px solid var(--accent, #66e3cd);
    box-shadow: 0 4px 14px rgba(102, 227, 205, 0.35);
}

.vx-btn-profile-action--primary:hover {
    background: #8bf7e4;
    color: #09251f;
    border-color: #8bf7e4;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 227, 205, 0.5);
}

.vx-btn-profile-action--danger {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.32);
    color: #fca5a5;
}

.vx-btn-profile-action--danger:hover {
    background: rgba(239, 68, 68, 0.24);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ffffff;
    transform: translateY(-1px);
}

.vx-account-card__identity {
    padding: 4px 4px 16px;
}

.vx-account-card__identity h2 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.vx-account-card__tag-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.vx-account-card__handle {
    font-size: 0.92rem;
    color: #94a3b8;
    font-weight: 500;
    direction: ltr;
}

.vx-account-card__tag-pill {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 3px 10px;
    border-radius: 8px;
    letter-spacing: 0.02em;
    direction: ltr;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.15);
}

/* Account Details Box */
.vx-account-details-box {
    background: #1f2229;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 6px 20px;
    display: flex;
    flex-direction: column;
    margin-top: 4px;
}

.vx-account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    gap: 16px;
    transition: background 0.15s ease;
}

.vx-account-row:last-child {
    border-bottom: none;
}

.vx-account-row__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.vx-account-row__label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.06em;
}

.vx-account-row__val {
    font-size: 0.96rem;
    font-weight: 600;
    color: #ffffff;
    word-break: break-word;
    margin-top: 2px;
}

.vx-account-row__val.is-muted {
    color: #94a3b8;
    font-style: normal;
    font-weight: 500;
}

.vx-account-tag-display {
    margin-top: 2px;
}

.vx-account-row__code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 4px 12px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 8px;
    color: #38bdf8;
    width: fit-content;
    direction: ltr;
    display: inline-block;
}

.vx-account-row__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.vx-btn-row-action {
    background: #2b2f3a;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f1f5f9;
    border-radius: 9px;
    padding: 7px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.18s ease;
}

.vx-btn-row-action:hover {
    background: #393e4d;
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    transform: translateY(-1px);
}

.vx-btn-row-action.is-copied {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.vx-account-inline-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
    width: 100%;
    max-width: 380px;
}

.vx-account-inline-form .vx-input {
    background: #15171c !important;
    border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
}

.vx-account-inline-form__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =========================================================
   PASSWORD & SECURITY CARD
   ========================================================= */
.vx-security-card {
    background: #15171c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
    max-width: 820px;
    width: 100%;
    margin-top: 0;
    margin-bottom: 28px;
    flex: 0 0 auto;
    flex-shrink: 0;
    min-height: fit-content;
}

.vx-security-card h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.vx-security-card p {
    margin: 0 0 20px;
    color: #94a3b8;
    font-size: 0.88rem;
}

.vx-password-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
}

.vx-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.vx-form-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: 0.02em;
}

.vx-password-form input[type="password"],
.vx-password-form input[type="text"] {
    background: #1f2229 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    color: #ffffff !important;
    font-size: 0.94rem !important;
    height: 44px !important;
    width: 100% !important;
    outline: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
}

.vx-password-form input::placeholder {
    color: #94a3b8 !important;
    opacity: 0.85 !important;
    letter-spacing: 2px !important;
    font-weight: 700 !important;
}

.vx-password-form input:focus {
    border-color: var(--accent, #66e3cd) !important;
    box-shadow: 0 0 0 3px rgba(102, 227, 205, 0.25) !important;
    background: #141d2c !important;
}

.vx-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.vx-form-actions {
    margin-top: 8px;
}

.vx-security-card .vx-btn--primary {
    background: var(--accent, #66e3cd);
    border: 1px solid var(--accent, #66e3cd);
    color: #09251f;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(102, 227, 205, 0.35);
    border-radius: 10px;
    padding: 10px 22px;
    font-size: 0.92rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    opacity: 1;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.vx-security-card .vx-btn--primary:hover:not(:disabled) {
    background: #8bf7e4;
    color: #09251f;
    border-color: #8bf7e4;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(102, 227, 205, 0.5);
}

.vx-security-card .vx-btn--primary:disabled {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    box-shadow: none;
    opacity: 1;
    transform: none;
}

.vx-form-error {
    font-size: 0.85rem;
    color: #fca5a5;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    padding: 10px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vx-settings-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    max-width: 820px;
    width: 100%;
    animation: vx-fade-in 0.2s ease;
}

.vx-settings-alert--success {
    background: rgba(34, 197, 94, 0.16);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.vx-settings-alert--error {
    background: rgba(239, 68, 68, 0.16);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.vx-settings-placeholder {
    text-align: center;
    padding: 3.5rem 1.5rem;
    color: var(--text-muted, #94a3b8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* =============================================================
   VOXIR.IR CLEAN & LIGHTWEIGHT AUTH DESIGN SYSTEM
   ============================================================= */

.auth-shell--wellness {
    position: fixed;
    inset: 0;
    z-index: 50;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--bg);
    color: var(--text);
    box-sizing: border-box;
}

/* Disable heavy GPU-churning glows and rings */
.auth-ambient-glow,
.auth-ambient-ring {
    display: none !important;
}

/* Auth Card Shell matching voxir.ir */
.auth-card--wellness {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.25rem 2rem 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

@media (max-width: 480px) {
    .auth-card--wellness {
        max-width: 100%;
        border-radius: 16px;
        padding: 1.75rem 1.25rem 1.5rem;
    }
}

.auth-wellness__status-bar,
.auth-wellness__notch {
    display: none;
}

/* Brand Wordmark */
.auth-wellness__brand-wrap {
    text-align: center;
    margin-bottom: 1.2rem;
}

.auth-wellness__brand-name {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text);
    font-family: var(--font);
}

/* Big Hero Typography */
.auth-wellness__hero {
    text-align: center;
    margin-bottom: 1.5rem;
    outline: none;
}

.auth-wellness__headline {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--text);
    outline: none;
}

.auth-wellness__headline-accent {
    display: block;
    font-weight: 700;
    color: var(--accent);
}

/* Form Styles */
.auth-wellness-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-wellness-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-wellness-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.01em;
    padding-inline-start: 0.25rem;
}

/* Modern Input */
.auth-pill-input {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.auth-pill-input:focus-within {
    border-color: var(--accent);
    background: var(--surface-2);
    box-shadow: 0 0 0 3px rgba(102, 227, 205, 0.15);
}

.auth-pill-input__icon {
    position: absolute;
    inset-inline-start: 1rem;
    color: var(--text-dim);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: color 0.15s ease;
}

.auth-pill-input:focus-within .auth-pill-input__icon {
    color: var(--accent);
}

.auth-pill-input__control {
    width: 100%;
    height: 48px;
    padding: 0 2.8rem 0 2.8rem;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: var(--text);
    color-scheme: dark;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    text-align: start;
}

.auth-pill-input__control::placeholder {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.auth-pill-input__control:-webkit-autofill,
.auth-pill-input__control:-webkit-autofill:hover,
.auth-pill-input__control:-webkit-autofill:focus,
.auth-pill-input__control:-webkit-autofill:active,
.auth-pill-input__control:autofill {
    -webkit-box-shadow: 0 0 0 1000px #141d2c inset !important;
    box-shadow: 0 0 0 1000px #141d2c inset !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    caret-color: #ffffff !important;
    border-radius: 12px !important;
}

.auth-pill-input__action {
    position: absolute;
    inset-inline-end: 0.65rem;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--text-dim);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2;
    transition: all 0.15s ease;
}

.auth-pill-input__action:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

/* Auxiliary Row */
.auth-wellness-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.15rem 0 0.25rem;
    font-size: 0.82rem;
}

.auth-wellness-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.auth-wellness-check input[type="checkbox"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.auth-wellness-forgot {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 0.82rem;
    transition: color 0.15s ease;
}

.auth-wellness-forgot:hover {
    color: var(--accent);
}

/* Clean High-Performance Mint CTA Button (Matching voxir.ir) */
.auth-pill-btn--luminous {
    margin-top: 0.4rem;
    width: 100%;
    height: 48px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--accent-dark);
    background: var(--accent);
    border: 1px solid var(--accent);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: none;
}

.auth-pill-btn--luminous:hover:not(:disabled) {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 4px 20px rgba(102, 227, 205, 0.25);
    transform: translateY(-1px);
}

.auth-pill-btn--luminous:active:not(:disabled) {
    transform: translateY(0);
}

.auth-pill-btn--luminous:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Divider */
.auth-divider--glow {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
    gap: 0.85rem;
}

.auth-divider--glow::before,
.auth-divider--glow::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider--glow span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-dim);
}

/* Footer Switcher */
.auth-wellness-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-wellness-switch {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-size: 0.85rem;
    transition: color 0.15s ease;
}

.auth-wellness-switch:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Error Alert */
.auth-wellness-error {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: var(--danger-soft);
    border: 1px solid var(--danger);
    color: #f87171;
    font-size: 0.82rem;
    font-weight: 500;
}

/* Avatar Picker */
.auth-avatar-picker--wellness {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    margin-bottom: 0.25rem;
}

.auth-avatar-picker--wellness .auth-avatar-picker__control {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 2px dashed rgba(102, 227, 205, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.auth-avatar-picker--wellness .auth-avatar-picker__control:hover {
    border-color: var(--accent);
}

.auth-avatar-picker--wellness .auth-avatar-picker__control--selected {
    border-style: solid;
    border-color: var(--accent);
}

.auth-avatar-picker--wellness .auth-avatar-picker__badge {
    position: absolute;
    bottom: 0;
    inset-inline-end: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-panel);
}

.auth-avatar-picker--wellness .auth-avatar-picker__input {
    display: none;
}

.auth-avatar-picker--wellness .auth-avatar-picker__image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.auth-avatar-picker--wellness .auth-avatar-picker__placeholder {
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-avatar-picker--wellness .auth-avatar-picker__copy .auth-label {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}

.auth-avatar-picker--wellness .auth-hint {
    margin: 0;
    font-size: 0.72rem;
    color: var(--text-dim);
}

/* OTP Cells */
.auth-otp-row--wellness {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.auth-otp-cell--wellness {
    width: 48px;
    height: 52px;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.auth-otp-cell--wellness:focus {
    border-color: var(--accent);
    background: var(--surface-2);
    box-shadow: 0 0 0 3px rgba(102, 227, 205, 0.2);
}

/* Minimal In-App Loader */
.auth-card--wellness-loading {
    max-width: 320px;
    padding: 2.2rem 1.8rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.vx-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    user-select: none;
}

.vx-loader--fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    width: 100vw;
    height: 100vh;
}

.vx-loader__spinner-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vx-loader__glow,
.vx-loader__orbit {
    display: none;
}

.vx-loader__svg {
    width: 36px;
    height: 36px;
    animation: vx-boot-spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.vx-loader__center {
    display: none;
}

.vx-loader__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.vx-loader__name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text);
    font-family: var(--font);
}

.vx-loader__status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-dim);
}

.vx-loader__dots {
    display: inline-flex;
    gap: 3px;
}

.vx-loader__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--accent);
    opacity: 0.5;
    animation: vx-dot-pulse 1.2s ease-in-out infinite;
}

.vx-loader__dot:nth-child(2) {
    animation-delay: 0.2s;
}

.vx-loader__dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes vx-boot-spin {
    to { transform: rotate(360deg); }
}

@keyframes vx-dot-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Captcha Component Styles */
.vx-captcha-widget {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.vx-captcha-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background: rgba(18, 19, 22, 0.7);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.35rem 0.5rem;
    box-sizing: border-box;
}

.vx-captcha-image {
    height: 42px;
    width: auto;
    border-radius: 6px;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.vx-captcha-skeleton {
    height: 42px;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
}

.vx-captcha-refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.vx-captcha-refresh-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.14);
    color: var(--text);
    transform: rotate(45deg);
}

.vx-captcha-refresh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vx-captcha-input {
    letter-spacing: 0.2em;
    font-weight: bold;
    text-transform: uppercase;
    font-family: monospace, sans-serif;
}

/* ==========================================================================
   Server Invite Links System Styles
   ========================================================================== */
.vx-server-invites {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vx-invites-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vx-invites-card--permanent {
    background: linear-gradient(135deg, rgba(102, 227, 205, 0.04) 0%, var(--surface-2) 100%);
    border-color: rgba(102, 227, 205, 0.2);
}

.vx-invites-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.vx-invites-card__title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vx-invites-card__title-row h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.vx-invites-card__title-row p {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin: 0.2rem 0 0 0;
}

.vx-invites-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
}

.vx-invites-status-badge.is-active {
    background: var(--success-soft);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.vx-invites-status-badge.is-active .vx-status-dot {
    background: var(--success);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.vx-invites-status-badge.is-revoked {
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.vx-invites-status-badge.is-revoked .vx-status-dot {
    background: var(--danger);
}

.vx-invites-link-field {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.vx-invites-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    font-size: 0.88rem;
    color: var(--text);
    direction: ltr !important;
    text-align: left !important;
    font-family: monospace, sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.vx-invites-input:focus {
    border-color: var(--accent);
}

.vx-invites-input.is-disabled {
    opacity: 0.5;
    text-decoration: line-through;
}

.vx-btn--copy.is-copied {
    background: var(--success) !important;
    color: #fff !important;
    border-color: var(--success) !important;
}

.vx-btn--danger-soft {
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid rgba(244, 63, 94, 0.25);
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.vx-btn--danger-soft:hover:not(:disabled) {
    background: rgba(244, 63, 94, 0.25);
    border-color: var(--danger);
}

.vx-invites-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.vx-invites-stats {
    margin-inline-start: auto;
    font-size: 0.82rem;
    color: var(--text-dim);
}

.vx-invites-creator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.85rem;
    align-items: flex-end;
}

@media (max-width: 680px) {
    .vx-invites-creator-grid {
        grid-template-columns: 1fr;
    }
}

.vx-invites-creator-btn-col {
    display: flex;
    align-items: flex-end;
}

.vx-invites-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vx-invites-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: background 0.2s;
}

.vx-invites-item:hover {
    background: var(--bg-hover);
}

.vx-invites-item.is-inactive {
    opacity: 0.6;
}

.vx-invites-item__main {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.vx-invites-item__code-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.vx-invites-item__code {
    font-family: monospace, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    direction: ltr !important;
}

.vx-invites-item__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-dim);
    flex-wrap: wrap;
}

.vx-invites-item__actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.vx-modal__direct-link-section {
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border);
}

.vx-modal__direct-link-title {
    font-size: 0.84rem;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
}

/* Invite Landing Page */
.vx-invite-landing-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.vx-invite-landing-card {
    width: 100%;
    max-width: 480px;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.vx-invite-landing-loading,
.vx-invite-landing-error {
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.vx-invite-landing-error-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--danger-soft);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vx-invite-hero {
    display: flex;
    flex-direction: column;
}

.vx-invite-hero__banner {
    height: 140px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.vx-invite-hero__banner--gradient {
    background: linear-gradient(135deg, #101724 0%, #1e293b 50%, #0f172a 100%);
}

.vx-invite-hero__banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vx-invite-hero__content {
    padding: 0 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.vx-invite-hero__icon-wrap {
    margin-top: -45px;
    margin-bottom: 0.75rem;
    width: 88px;
    height: 88px;
    border-radius: 20px;
    background: var(--surface-2);
    border: 4px solid var(--surface);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vx-invite-hero__icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vx-invite-hero__icon-fallback {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.vx-invite-hero__badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.vx-invite-hero__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.5rem 0;
}

.vx-invite-hero__desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0 0 1rem 0;
    white-space: pre-wrap;
    line-height: 1.6;
    max-height: 150px;
    overflow-y: auto;
}

.vx-invite-hero__stats {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-pill);
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.vx-invite-hero__invalid-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: 10px;
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
    width: 100%;
}

.vx-invite-join-btn {
    padding: 0.85rem 1.5rem !important;
    font-size: 1rem !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 20px var(--accent-glow) !important;
}

.vx-invite-auth-prompt {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vx-invite-auth-hint {
    font-size: 0.86rem;
    color: var(--text-dim);
    margin: 0;
}

.vx-invite-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ==========================================================================
   Server Channels Header & Info Clickable
   ========================================================================== */

.vx-channels__header-info--clickable {
    appearance: none;
    background: transparent;
    border: none;
    font: inherit;
    color: inherit;
    text-align: start;
    padding: 4px 6px;
    margin: -4px -6px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1;
    transition: background 0.15s ease, transform 0.1s ease;
    outline: none;
}

.vx-channels__header-info--clickable:hover {
    background: var(--bg-modifier-hover, rgba(255, 255, 255, 0.07));
}

.vx-channels__header-info--clickable:active {
    transform: scale(0.98);
}

.vx-channels__header-info--clickable:focus-visible {
    outline: 2px solid var(--color-primary, #6366f1);
}

.vx-channels__server-icon-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    user-select: none;
}

.vx-channels__header-hint {
    color: var(--color-primary-light, #818cf8) !important;
    font-size: 0.74rem !important;
    font-weight: 500;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.vx-channels__header-info--clickable:hover .vx-channels__header-hint {
    color: #a5b4fc !important;
    text-decoration: underline;
}

/* ==========================================================================
   Server Info Modal
   ========================================================================== */

.vx-server-info-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: vxFadeIn 0.2s ease;
}

.vx-server-info-modal {
    width: 100%;
    max-width: 480px;
    background: var(--bg-surface, #1e1f22);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    animation: vxModalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.vx-server-info__banner {
    height: 120px;
    position: relative;
    background: linear-gradient(135deg, #312e81 0%, #1e1b4b 50%, #0f172a 100%);
    overflow: hidden;
}

.vx-server-info__banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vx-server-info__close-btn {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    z-index: 3;
}

.vx-server-info__close-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.05);
}

.vx-server-info__header-content {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    padding: 0 1.25rem;
    margin-top: -36px;
    position: relative;
    z-index: 2;
}

.vx-server-info__icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-surface, #1e1f22);
    border: 4px solid var(--bg-surface, #1e1f22);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

.vx-server-info__icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vx-server-info__icon-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    user-select: none;
}

.vx-server-info__title-area {
    min-width: 0;
    flex: 1;
    padding-bottom: 4px;
}

.vx-server-info__name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vx-server-info__vanity {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--color-primary-light, #818cf8);
    font-family: monospace;
    font-weight: 600;
    margin-top: 2px;
}

.vx-server-info__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vx-server-info__stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.vx-server-info__stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-muted, #94a3b8);
}

.vx-server-info__stat-chip strong {
    color: #fff;
}

.vx-server-info__section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vx-server-info__section-title {
    margin: 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #94a3b8);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vx-server-info__desc-box {
    background: var(--bg-soft, rgba(0, 0, 0, 0.25));
    border: 1px solid var(--border, rgba(255, 255, 255, 0.07));
    border-radius: 10px;
    padding: 12px 14px;
    max-height: 220px;
    overflow-y: auto;
}

.vx-server-info__desc-text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-primary, #e2e8f0);
    white-space: pre-wrap;
    word-break: break-word;
}

.vx-server-info__desc-empty {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-dim, #64748b);
    font-style: italic;
}

.vx-server-info__footer-meta {
    font-size: 0.76rem;
    color: var(--text-dim, #64748b);
    display: flex;
    align-items: center;
    gap: 4px;
}

.vx-server-info__footer {
    display: flex;
    justify-content: flex-end;
    padding: 0.75rem 1.25rem 1.25rem;
    border-top: 1px solid var(--border, rgba(255, 255, 255, 0.06));
}

.vx-server-info__btn-close {
    min-width: 90px;
}



