/* tela.css - Interface Discord Call & Compartilhamento de Tela - Rei Designer */
:root {
    --dc-darkest: #1e1f22;
    --dc-darker: #2b2d31;
    --dc-dark: #313338;
    --dc-light-dark: #383a40;
    --dc-hover: #3f4248;
    --dc-brand: #5865f2;
    --dc-brand-hover: #4752c4;
    --dc-green: #23a55a;
    --dc-red: #f23f43;
    --dc-yellow: #f0b232;
    --dc-text: #dbdee1;
    --dc-text-muted: #949ba4;
    --dc-text-heading: #f2f3f5;
    
    --rei-accent: #d4af37;
    --rei-green: #0a8f2d;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-main: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(35, 165, 90, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--dc-darkest);
    color: var(--dc-text);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header Superior da App */
.dc-header {
    height: 52px;
    background-color: var(--dc-darkest);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
    user-select: none;
}

.dc-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dc-text-heading);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
}

.dc-brand-logo img {
    height: 32px;
    width: auto;
    border-radius: 6px;
}

.dc-room-title {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dc-text-heading);
}

.dc-status-dot {
    width: 10px;
    height: 10px;
    background-color: var(--dc-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--dc-green);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(35, 165, 90, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(35, 165, 90, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(35, 165, 90, 0); }
}

.dc-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dc-btn-icon {
    background: transparent;
    border: none;
    color: var(--dc-text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.dc-btn-icon:hover {
    background-color: var(--dc-hover);
    color: var(--dc-text-heading);
}

.dc-btn-icon.active {
    color: var(--dc-brand);
    background-color: rgba(88, 101, 242, 0.15);
}

/* App Container Layout */
.dc-main-container {
    flex: 1;
    display: flex;
    height: calc(100vh - 52px);
    position: relative;
    overflow: hidden;
}

/* Sidebar de Servidor & Canais */
.dc-sidebar {
    width: 260px;
    background-color: var(--dc-darker);
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    user-select: none;
    transition: transform 0.3s ease;
}

.dc-server-header {
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    font-weight: 700;
    color: var(--dc-text-heading);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
}

.dc-channels-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 8px;
}

.dc-channel-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dc-text-muted);
    padding: 8px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dc-channel-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--dc-text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 2px;
    transition: all 0.2s ease;
}

.dc-channel-item:hover {
    background-color: var(--dc-hover);
    color: var(--dc-text-heading);
}

.dc-channel-item.active {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--dc-text-heading);
}

.dc-channel-item i {
    font-size: 16px;
}

.dc-channel-badge {
    margin-left: auto;
    background-color: var(--dc-green);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
}

/* User Widget na Sidebar */
.dc-user-profile-widget {
    background-color: var(--dc-darkest);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.dc-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--dc-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    position: relative;
    flex-shrink: 0;
}

.dc-avatar-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--dc-green);
    border: 2px solid var(--dc-darkest);
    position: absolute;
    bottom: -1px;
    right: -1px;
}

.dc-user-info {
    flex: 1;
    overflow: hidden;
}

.dc-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--dc-text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dc-user-sub {
    font-size: 11px;
    color: var(--dc-text-muted);
}

/* Estágio Central da Call (Stage Area) */
.dc-stage-area {
    flex: 1;
    background-color: var(--dc-dark);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Palco das Mídias (Grid ou Spotlight) */
.dc-video-grid {
    flex: 1;
    padding: 20px;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-content: center;
    justify-content: center;
    overflow-y: auto;
    transition: all 0.3s ease;
}

/* Modo Spotlight (Foco na Tela Compartilhada) */
.dc-video-grid.spotlight-mode {
    display: flex;
    flex-direction: column;
}

.dc-spotlight-screen {
    flex: 1;
    width: 100%;
    max-height: calc(100% - 130px);
    background-color: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-main);
}

.dc-spotlight-strip {
    height: 110px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0;
}

.dc-spotlight-screen video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
    display: block;
}

.dc-spotlight-strip .dc-video-card {
    min-width: 160px;
    height: 100px;
}

/* Cards de Participante / Vídeo / Tela */
.dc-video-card {
    background-color: var(--dc-darker);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.dc-video-card.speaking {
    border-color: var(--dc-green);
    box-shadow: var(--shadow-glow);
}

.dc-video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #000;
}

.dc-video-card.is-screen-share video {
    object-fit: contain;
}

/* Fallback de Avatar sem Câmera */
.dc-avatar-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.dc-avatar-lg {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background-color: var(--dc-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: relative;
    transition: transform 0.2s ease;
}

.dc-video-card.speaking .dc-avatar-lg {
    transform: scale(1.05);
    box-shadow: 0 0 0 4px var(--dc-green), 0 0 20px rgba(35, 165, 90, 0.5);
}

/* Badges sobre o card de vídeo */
.dc-card-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 5;
}

.dc-live-badge {
    background-color: var(--dc-red);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dc-screen-badge {
    background-color: var(--dc-brand);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dc-user-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
}

.dc-user-tag .status-mic {
    font-size: 11px;
    color: var(--dc-text-muted);
}

.dc-user-tag .status-mic.muted {
    color: var(--dc-red);
}

/* Barra Flutuante de Controles da Call */
.dc-controls-bar {
    height: 80px;
    background-color: rgba(30, 31, 34, 0.85);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 24px;
    z-index: 50;
}

.dc-ctrl-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--dc-light-dark);
    border: none;
    color: var(--dc-text-heading);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.dc-ctrl-btn:hover {
    background-color: var(--dc-hover);
    transform: translateY(-2px);
}

.dc-ctrl-btn.active {
    background-color: var(--dc-brand);
    color: white;
}

.dc-ctrl-btn.danger {
    background-color: var(--dc-red);
    color: white;
}

.dc-ctrl-btn.danger:hover {
    background-color: #d83a3e;
}

.dc-ctrl-btn.muted {
    background-color: var(--dc-red);
    color: white;
}

.dc-ctrl-btn-label {
    position: absolute;
    top: -34px;
    background: #000;
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.dc-ctrl-btn:hover .dc-ctrl-btn-label {
    opacity: 1;
}

/* Painel Lateral Direito (Chat & Membros) */
.dc-drawer-right {
    width: 280px;
    background-color: var(--dc-darker);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.25s ease, width 0.25s ease;
    z-index: 40;
    flex-shrink: 0;
}

.dc-drawer-right.closed {
    display: none !important;
}

.dc-drawer-header {
    height: 52px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background-color: var(--dc-darkest);
    user-select: none;
}

.dc-drawer-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--dc-text-muted);
}

.dc-members-badge-count {
    background: rgba(255, 255, 255, 0.08);
    color: var(--dc-text-heading);
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 700;
}

.dc-drawer-tabs {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    background-color: var(--dc-darkest);
}

.dc-tab {
    flex: 1;
    padding: 14px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--dc-text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.dc-tab.active {
    color: var(--dc-text-heading);
    border-bottom-color: var(--dc-brand);
}

.dc-drawer-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Área de Mensagens do Chat */
.dc-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dc-chat-msg {
    display: flex;
    gap: 12px;
}

.dc-chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--rei-accent);
    color: #000;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.dc-chat-body {
    flex: 1;
}

.dc-chat-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 2px;
}

.dc-chat-author {
    font-size: 13px;
    font-weight: 700;
    color: var(--dc-text-heading);
}

.dc-chat-author.admin-author {
    color: var(--rei-accent);
}

.dc-chat-time {
    font-size: 10px;
    color: var(--dc-text-muted);
}

.dc-chat-text {
    font-size: 13px;
    color: var(--dc-text);
    line-height: 1.4;
    word-break: break-word;
}

/* Input do Chat */
.dc-chat-input-area {
    padding: 12px 16px;
    background-color: var(--dc-darker);
}

.dc-chat-input-wrapper {
    background-color: var(--dc-light-dark);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 12px;
}

.dc-chat-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--dc-text-heading);
    padding: 12px 0;
    font-size: 13px;
}

.dc-chat-send-btn {
    background: transparent;
    border: none;
    color: var(--dc-brand);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
}

/* Lista de Membros Conectados */
.dc-members-list {
    padding: 12px;
    overflow-y: auto;
    flex: 1;
}

.dc-member-group-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dc-text-muted);
    padding: 8px 6px 4px 6px;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dc-member-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 2px;
    transition: all 0.15s ease;
    cursor: default;
    user-select: none;
}

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

.dc-member-item.is-me {
    background-color: rgba(88, 101, 242, 0.08);
}

.dc-member-item.is-me:hover {
    background-color: rgba(88, 101, 242, 0.16);
}

.dc-member-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5865f2, #3b45a9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    position: relative;
    flex-shrink: 0;
}

.dc-member-avatar.host {
    background: linear-gradient(135deg, #d4af37, #aa820a);
    color: #000;
}

.dc-member-avatar-status {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--dc-green);
    border: 2px solid var(--dc-darker);
}

.dc-member-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dc-member-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--dc-text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dc-member-badges {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    flex-wrap: wrap;
}

.dc-badge-role {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 1px 5px;
    border-radius: 4px;
    text-transform: uppercase;
}

.dc-badge-role.host {
    background-color: rgba(212, 175, 55, 0.15);
    color: #e5c158;
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.dc-badge-role.live {
    background-color: rgba(242, 63, 67, 0.2);
    color: #f23f43;
    border: 1px solid rgba(242, 63, 67, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; filter: drop-shadow(0 0 4px rgba(242, 63, 67, 0.6)); }
}

.dc-badge-role.you {
    background-color: rgba(88, 101, 242, 0.18);
    color: #9aa5ff;
}

/* Reações Flutuantes (Floating Emojis) */
.dc-floating-reaction {
    position: absolute;
    bottom: 90px;
    font-size: 32px;
    pointer-events: none;
    z-index: 999;
    animation: floatEmoji 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes floatEmoji {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.5) rotate(0deg);
    }
    50% {
        transform: translateY(-150px) scale(1.2) rotate(15deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-300px) scale(1) rotate(-15deg);
    }
}

/* Modal Soundboard / Emojis Quick Bar */
.dc-soundboard-popover {
    position: absolute;
    bottom: 90px;
    background-color: var(--dc-darkest);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    gap: 10px;
    box-shadow: var(--shadow-main);
    z-index: 100;
    animation: popUp 0.2s ease;
}

.dc-soundboard-popover.hidden {
    display: none;
}

@keyframes popUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dc-emoji-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.dc-emoji-btn:hover {
    transform: scale(1.3);
}

/* Overlay de Aguardando Transmissão */
.dc-waiting-overlay {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    padding: 40px 20px;
}

.dc-waiting-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(88, 101, 242, 0.12);
    border: 2px solid rgba(88, 101, 242, 0.4);
    color: var(--dc-brand);
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseDot 2s infinite;
}

.dc-waiting-overlay h2 {
    color: var(--dc-text-heading);
    font-size: 22px;
    font-weight: 700;
}

.dc-waiting-overlay p {
    color: var(--dc-text-muted);
    max-width: 460px;
    line-height: 1.6;
    font-size: 14px;
}

/* Badge de espectadores no header */
.dc-viewers-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(35, 165, 90, 0.12);
    border: 1px solid rgba(35, 165, 90, 0.35);
    color: #43b581;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.dc-viewers-badge:hover {
    background: rgba(35, 165, 90, 0.22);
    border-color: var(--dc-green);
    color: #fff;
    transform: translateY(-1px);
}

.dc-viewers-badge i {
    font-size: 13px;
}

/* Campo de Nome de Exibição (Salvo no PC) */
.dc-name-box {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 20px;
    text-align: left;
}

.dc-name-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--dc-text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.dc-name-label i {
    color: var(--rei-accent);
}

.dc-name-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.dc-name-input {
    width: 100%;
    background-color: var(--dc-darkest);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--dc-text-heading);
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: all 0.2s ease;
}

.dc-name-input:focus {
    border-color: var(--rei-accent);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    background-color: #17181b;
}

.dc-name-input::placeholder {
    color: var(--dc-text-muted);
    font-size: 12.5px;
    font-weight: 400;
}

.dc-name-hint {
    margin-top: 8px;
    font-size: 11px;
    color: var(--dc-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dc-name-hint i {
    color: var(--dc-green);
}

.dc-copy-btn {
    background: transparent;
    border: none;
    color: var(--dc-text-muted);
    cursor: pointer;
    font-size: 13px;
    transition: color 0.2s ease;
}

.dc-copy-btn:hover {
    color: var(--rei-accent);
}

/* Modal Criar / Entrar na Sala */
.dc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 14px;
    overflow-y: auto;
}

.dc-modal {
    background-color: var(--dc-darker);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-main);
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    padding: 20px 22px;
    animation: popUp 0.22s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.dc-modal-logo {
    text-align: center;
    margin-bottom: 12px;
}

.dc-modal-logo img {
    height: 40px;
    border-radius: 10px;
    margin-bottom: 6px;
}

.dc-modal-logo h1 {
    font-size: 18px;
    color: var(--dc-text-heading);
    font-weight: 800;
    margin-bottom: 2px;
}

.dc-modal-logo p {
    font-size: 12px;
    color: var(--dc-text-muted);
    line-height: 1.35;
}

.dc-user-setup-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 4px;
    text-align: left;
}

.dc-user-setup-compact .dc-avatar-preview-circle {
    width: 42px;
    height: 42px;
    font-size: 17px;
}

.dc-user-setup-inputs {
    flex: 1;
    min-width: 0;
}

.dc-user-setup-inputs .dc-name-label {
    margin-bottom: 4px;
    font-size: 10.5px;
    color: var(--dc-text-muted);
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dc-user-setup-inputs .dc-name-input {
    width: 100%;
    background-color: var(--dc-darkest);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 8px 10px;
    color: var(--dc-text-heading);
    font-size: 13.5px;
    font-weight: 600;
    outline: none;
    transition: all 0.2s ease;
}

.dc-user-setup-inputs .dc-name-input:focus {
    border-color: var(--rei-accent);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.25);
}

.dc-modal-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dc-modal-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    background-color: var(--dc-light-dark);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    padding: 11px 14px;
    color: var(--dc-text-heading);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dc-modal-option i {
    font-size: 18px;
    color: var(--dc-brand);
    flex-shrink: 0;
}

.dc-modal-option strong {
    display: block;
    font-size: 13.5px;
}

.dc-modal-option small {
    display: block;
    font-size: 11px;
    color: var(--dc-text-muted);
    margin-top: 1px;
}

.dc-modal-option:hover:not(:disabled) {
    background-color: var(--dc-hover);
    border-color: var(--dc-brand);
    transform: translateY(-1px);
}

.dc-modal-option:disabled {
    opacity: 0.5;
    cursor: wait;
}

.dc-modal-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dc-text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dc-modal-divider::before,
.dc-modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.dc-join-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dc-code-input {
    background-color: var(--dc-darkest);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    color: var(--dc-text-heading);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 8px;
    text-align: center;
    text-transform: uppercase;
    outline: none;
    transition: border-color 0.2s ease;
}

.dc-code-input:focus {
    border-color: var(--dc-brand);
}

.dc-code-input::placeholder {
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 500;
    color: var(--dc-text-muted);
}

.dc-join-group .dc-modal-option.join i {
    color: var(--dc-green);
}

.dc-modal-status {
    min-height: 20px;
    margin-top: 16px;
    text-align: center;
    font-size: 12.5px;
    color: var(--rei-accent);
    font-weight: 600;
}

/* Toast de Notificação */
.dc-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dc-light-dark);
    border: 1px solid var(--dc-green);
    color: var(--dc-text-heading);
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2000;
    box-shadow: var(--shadow-main);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dc-toast.error {
    border-color: var(--dc-red);
}

.dc-toast.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
    pointer-events: none;
}

/* Responsividade Mobile */
@media (max-width: 900px) {
    .dc-sidebar {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 90;
        transform: translateX(-100%);
    }
    .dc-sidebar.open {
        transform: translateX(0);
    }
    .dc-drawer-right {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 90;
    }
    .dc-video-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   BOLINHAS DE PERFIL & PALCO CENTRAL ESTILO DISCORD (v3.1)
   ========================================================= */

/* Selo Notório de Atualização no Modal */
.dc-update-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(35, 165, 90, 0.16);
    border: 1px solid var(--dc-green);
    color: #43b581;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.dc-update-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--dc-green);
    box-shadow: 0 0 10px var(--dc-green);
    animation: pulseDot 1.8s infinite;
}

/* Preview da Bolinha no Modal */
.dc-avatar-preview-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 16px;
}

.dc-avatar-preview-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dc-brand), #3b45a9);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.dc-avatar-preview-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--dc-green);
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.08); opacity: 0.4; }
    100% { transform: scale(1); opacity: 0.9; }
}

.dc-avatar-preview-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.dc-avatar-preview-text strong {
    font-size: 14px;
    color: var(--dc-text-heading);
}

.dc-avatar-preview-text small {
    font-size: 11.5px;
    color: var(--dc-text-muted);
    margin-top: 2px;
}

/* Bolinhas Compactas no Header */
.dc-header-avatars-group {
    display: flex;
    align-items: center;
    margin-left: 8px;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.dc-header-avatar-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--dc-brand);
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--dc-darkest);
    margin-left: -6px;
    transition: transform 0.2s ease;
    cursor: default;
}

.dc-header-avatar-circle:first-child {
    margin-left: 0;
}

.dc-header-avatar-circle:hover {
    transform: scale(1.25) translateY(-2px);
    z-index: 10;
}

/* PALCO CENTRAL DA CALL: Grade de Bolinhas dos Participantes */
.dc-stage-call-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px 30px;
    overflow-y: auto;
    position: relative;
    background: radial-gradient(circle at center top, #2b2d31 0%, #1e1f22 100%);
}

.dc-call-banner-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.dc-call-banner-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(35, 165, 90, 0.15);
    border: 1px solid rgba(35, 165, 90, 0.4);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #43b581;
}

.dc-pulse-ring {
    width: 8px;
    height: 8px;
    background-color: var(--dc-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--dc-green);
    animation: pulseDot 2s infinite;
}

.dc-call-room-code-badge {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 13px;
    color: var(--dc-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dc-call-room-code-badge strong {
    color: var(--rei-accent);
    letter-spacing: 1px;
    font-size: 15px;
}

/* Grade de Bolinhas */
.dc-bubbles-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    align-content: center;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding: 20px 0;
}

/* Card de cada Bolinha/Pessoa na Sala */
.dc-bubble-card {
    background: rgba(43, 45, 49, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 28px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    animation: popUp 0.3s ease;
}

.dc-bubble-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.dc-bubble-card.is-me {
    border-color: rgba(88, 101, 242, 0.4);
    background: rgba(88, 101, 242, 0.08);
}

.dc-bubble-card.is-presenting {
    border-color: rgba(242, 63, 67, 0.5);
    background: rgba(242, 63, 67, 0.08);
}

/* A Bolinha Grande de Perfil (Avatar Circular Estilo Discord) */
.dc-bubble-avatar-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.dc-bubble-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5865f2 0%, #353fa3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 2;
    transition: transform 0.25s ease;
}

.dc-bubble-card:hover .dc-bubble-avatar {
    transform: scale(1.06);
}

.dc-bubble-avatar.host {
    background: linear-gradient(135deg, #e5c158 0%, #a57d0e 100%);
    color: #000;
}

/* Anel verde de status online pulsando ao redor da bolinha */
.dc-bubble-status-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 3px solid var(--dc-green);
    box-shadow: 0 0 15px rgba(35, 165, 90, 0.6);
    z-index: 1;
    animation: ringGlow 2.5s infinite ease-in-out;
}

@keyframes ringGlow {
    0% { transform: scale(0.97); opacity: 0.6; }
    50% { transform: scale(1.03); opacity: 1; box-shadow: 0 0 22px rgba(35, 165, 90, 0.8); }
    100% { transform: scale(0.97); opacity: 0.6; }
}

.dc-bubble-avatar.host ~ .dc-bubble-status-ring {
    border-color: var(--rei-accent);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.dc-bubble-card.is-presenting .dc-bubble-status-ring {
    border-color: var(--dc-red);
    box-shadow: 0 0 15px rgba(242, 63, 67, 0.7);
}

.dc-bubble-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--dc-text-heading);
    margin-bottom: 6px;
    word-break: break-word;
    max-width: 100%;
}

.dc-bubble-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.dc-bubble-audio-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--dc-green);
    background: rgba(35, 165, 90, 0.12);
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
}

/* Dica no rodapé do palco */
.dc-call-bottom-hint {
    margin-top: 14px;
    text-align: center;
    color: var(--dc-text-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dc-call-bottom-hint strong {
    color: var(--rei-accent);
}

/* Tira de bolinhas durante compartilhamento de tela */
.dc-spotlight-members-strip {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.dc-strip-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--dc-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    position: relative;
    border: 2px solid var(--dc-green);
    cursor: default;
    transition: transform 0.2s ease;
}

.dc-strip-avatar:hover {
    transform: scale(1.15);
}

.dc-strip-avatar.host {
    background: var(--rei-accent);
    color: #000;
    border-color: #ffd700;
}

.dc-strip-avatar.live {
    border-color: var(--dc-red);
    box-shadow: 0 0 10px var(--dc-red);
}
