/* ===== MODO ESCURO (CYBERPUNK NEON GLASSMORPHISM) ===== */
.cv-hud-wrapper.cv-mode-dark {
    --bg-gradient: radial-gradient(ellipse at top left, #1f082e 0%, #0d0218 50%, #05000a 100%);
    --card-bg: rgba(18, 10, 32, 0.92);
    --border-accent: rgba(255, 42, 133, 0.35);
    --border-gold: #ffd700;
    --text-primary: #ffffff;
    --text-secondary: #b8a9cd;
    --text-pink: #ff2a85;
    --text-cyan: #00f3ff;
    --input-bg: rgba(8, 3, 16, 0.85);
    --card-option-bg: rgba(255, 255, 255, 0.04);
    --card-option-border: rgba(255, 42, 133, 0.2);
    --quiz-q-bg: rgba(15, 6, 28, 0.9);
    --quiz-btn-bg: rgba(30, 14, 50, 0.85);
    --status-live: #00ff88;
    --card-glow: 0 10px 25px rgba(255, 42, 133, 0.2);
}

/* ===== MODO CLARO (LUXURY NEON ROSE & GOLD) ===== */
.cv-hud-wrapper.cv-mode-light {
    --bg-gradient: radial-gradient(circle at top left, #fff0f6 0%, #ffe3ed 50%, #fbd5e5 100%);
    --card-bg: rgba(255, 255, 255, 0.96);
    --border-accent: rgba(233, 30, 99, 0.35);
    --border-gold: #d4af37;
    --text-primary: #1f0b18;
    --text-secondary: #6e4d60;
    --text-pink: #d81b60;
    --text-cyan: #0097a7;
    --input-bg: #fff8fa;
    --card-option-bg: #fff0f5;
    --card-option-border: rgba(216, 27, 96, 0.2);
    --quiz-q-bg: #fff5f8;
    --quiz-btn-bg: #fce4ec;
    --status-live: #0097a7;
    --card-glow: 0 10px 25px rgba(216, 27, 96, 0.12);
}

.cv-hud-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 8px;
    background: var(--bg-gradient);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-primary);
    box-sizing: border-box;
    position: relative;
}

.cv-card {
    width: 100%;
    max-width: 500px;
    background: var(--card-bg);
    border: 1px solid var(--border-accent);
    border-radius: 14px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--card-glow);
    overflow: hidden;
    position: relative;
    padding: 12px 14px;
    box-sizing: border-box;
    z-index: 2;
}

/* Header compacto e responsivo */
.cv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-option-border);
    padding-bottom: 6px;
    margin-bottom: 8px;
    gap: 6px;
    position: relative;
    z-index: 5;
}

.cv-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    color: var(--text-pink);
    letter-spacing: 0.5px;
    font-size: 0.78rem;
    text-shadow: 0 0 8px rgba(255, 42, 133, 0.4);
    white-space: nowrap;
}

.cv-header-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cv-btn-theme {
    background: rgba(255, 42, 133, 0.1);
    border: 1px solid var(--border-accent);
    color: var(--text-primary);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.2;
}

.cv-btn-theme:hover {
    background: var(--text-pink);
    color: #fff;
}

.cv-lang-selector {
    display: flex;
    gap: 2px;
}

.cv-btn-lang {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--card-option-border);
    color: var(--text-primary);
    padding: 2px 5px;
    border-radius: 5px;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.2;
}

.cv-btn-lang.active {
    background: linear-gradient(135deg, #ff2a85, #ff6000);
    color: #fff;
    font-weight: 700;
    border-color: transparent;
}

/* ===== ABAS APENAS COM ÍCONES + TEXTO NO MOUSE OVER ===== */
.cv-nav-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.35);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 5;
}

.cv-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 6px 2px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.cv-tab-icon {
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.2s;
}

.cv-tab-text {
    display: none;
    font-size: 0.58rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Mouse Over (Hover) Revela Texto */
.cv-tab:hover .cv-tab-text {
    display: inline-block;
    opacity: 1;
}

.cv-tab:hover .cv-tab-icon {
    transform: scale(1.15);
}

.cv-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-accent);
}

.cv-tab.active {
    background: linear-gradient(135deg, #ff2a85 0%, #ff5252 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 42, 133, 0.4);
}

.cv-tab.active .cv-tab-text {
    display: inline-block;
    opacity: 1;
}

.cv-status-bar {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    position: relative;
    z-index: 5;
}

.cv-status-live {
    color: var(--status-live);
    font-weight: 700;
}

.cv-body {
    position: relative;
    z-index: 5;
}

.cv-screen-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--text-pink);
    text-align: center;
    margin: 2px 0;
}

.cv-screen-desc {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 10px;
}

.cv-form-group {
    margin-bottom: 8px;
}

.cv-form-group label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-primary);
    margin-bottom: 3px;
    font-weight: 600;
}

.cv-form-group input, .cv-form-group select {
    width: 100%;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid var(--card-option-border);
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 0.75rem;
    box-sizing: border-box;
    outline: none;
}

.cv-rooms-radio-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-top: 4px;
}

.cv-room-card-option {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--card-option-bg);
    border: 1px solid var(--card-option-border);
    padding: 5px 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cv-room-card-option.selected, .cv-room-card-option:hover {
    border-color: var(--text-pink);
    background: rgba(255, 42, 133, 0.12);
}

.cv-room-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-pink);
}

.cv-room-users {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

/* Leaderboard Banner */
.cv-leaderboard-banner {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.12), rgba(255, 42, 133, 0.12));
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: #ffd700;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.cv-real-users-panel {
    background: var(--card-option-bg);
    border: 1px dashed var(--border-accent);
    padding: 6px 8px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.cv-panel-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-pink);
    margin-bottom: 4px;
}

.cv-users-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.cv-user-chip {
    background: rgba(255, 42, 133, 0.12);
    border: 1px solid var(--border-accent);
    color: var(--text-primary);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cv-user-chip.selected {
    background: linear-gradient(135deg, #ff2a85, #ff6000);
    color: #fff;
    border-color: transparent;
}

.cv-user-chip.me {
    background: rgba(0, 243, 255, 0.15);
    border-color: var(--text-cyan);
    color: #fff;
    cursor: default;
}

.cv-btn-like {
    background: linear-gradient(135deg, #ff2a85, #d81b60);
    border: none;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

/* Chat Box */
.cv-chat-box-wrapper {
    background: var(--input-bg);
    border: 1px solid var(--card-option-border);
    border-radius: 6px;
    padding: 6px;
    margin-bottom: 8px;
}

.cv-chat-header {
    font-size: 0.68rem;
    font-weight: 700;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--card-option-border);
    padding-bottom: 3px;
}

.cv-chat-messages {
    height: 85px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 2px;
    margin-bottom: 5px;
}

.cv-chat-msg {
    font-size: 0.68rem;
    padding: 4px 6px;
    border-radius: 5px;
    max-width: 88%;
    word-break: break-word;
    line-height: 1.2;
}

.cv-chat-msg.sys {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-style: italic;
    align-self: center;
    text-align: center;
}

.cv-chat-msg.sent {
    background: linear-gradient(135deg, #ff2a85, #e91e63);
    color: #fff;
    align-self: flex-end;
}

.cv-chat-msg.received {
    background: rgba(0, 243, 255, 0.15);
    border: 1px solid var(--text-cyan);
    color: #fff;
    align-self: flex-start;
}

.cv-chat-input-row {
    display: flex;
    gap: 4px;
}

.cv-chat-input-row input {
    width: 100%;
    padding: 5px 6px;
    border-radius: 4px;
    border: 1px solid var(--card-option-border);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    font-size: 0.72rem;
    outline: none;
}

.cv-match-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-option-bg);
    padding: 6px 8px;
    border-radius: 8px;
    margin: 0 auto 8px auto;
    border: 1px solid var(--card-option-border);
}

.cv-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--text-pink);
}

.cv-match-name {
    color: var(--text-pink);
    font-weight: 700;
    font-size: 0.8rem;
}

.cv-quiz-question {
    background: var(--quiz-q-bg);
    border: 1px solid var(--card-option-border);
    border-radius: 5px;
    padding: 5px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
    text-align: center;
}

.cv-quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.cv-quiz-btn {
    background: var(--quiz-btn-bg);
    border: 1px solid var(--card-option-border);
    border-radius: 5px;
    padding: 5px;
    color: var(--text-primary);
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cv-quiz-btn.active, .cv-quiz-btn:hover {
    background: linear-gradient(135deg, #ff9800, #ff2a85);
    color: #fff;
    border-color: transparent;
}

.cv-btn {
    width: 100%;
    padding: 6px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.7rem;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s ease;
}

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

.cv-btn-primary, .cv-btn-wink {
    background: linear-gradient(135deg, #ff2a85, #ad1457);
}

.cv-btn-secondary {
    background: linear-gradient(135deg, #7b1fa2, #512da8);
}

.cv-btn-danger {
    background: linear-gradient(135deg, #d32f2f, #c62828);
}

.cv-btn-chat {
    background: linear-gradient(135deg, #00f3ff, #00838f);
    color: #05000a;
    font-weight: 800;
    padding: 5px 10px;
    white-space: nowrap;
}

.cv-notification-box {
    background: rgba(255, 42, 133, 0.2);
    border: 1px solid var(--text-pink);
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.cv-footer {
    padding-top: 6px;
    border-top: 1px solid var(--card-option-border);
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-secondary);
}

/* ===== GRID DE ÍCONES DE FLIRT REVOLUCIONÁRIA ===== */
.cv-actions-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-pink);
    letter-spacing: 0.5px;
    margin: 8px 0 4px 0;
    text-transform: uppercase;
}

.cv-flirt-icons-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.cv-flirt-icon-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 42, 133, 0.08);
    border: 1px solid var(--border-accent);
    border-radius: 8px;
    padding: 6px 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.cv-flirt-icon-btn:hover {
    background: linear-gradient(135deg, #ff2a85, #ff6000);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 42, 133, 0.4);
}

.cv-flirt-icon-btn .cv-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.cv-flirt-icon-btn .cv-icon-lbl {
    font-size: 0.58rem;
    font-weight: 700;
    margin-top: 3px;
    color: var(--text-secondary);
}

.cv-flirt-icon-btn:hover .cv-icon-lbl {
    color: #ffffff;
}

/* ===== FIX: PARTÍCULAS VISÍVEIS DENTRO DO CARTÃO E EM VOLTA ===== */
.cv-particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

@keyframes cvFloatUp {
    0% {
        transform: translateY(105%) scale(0.6) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 0.85;
    }
    80% {
        opacity: 0.85;
    }
    100% {
        transform: translateY(-10%) scale(1.2) rotate(360deg);
        opacity: 0;
    }
}

.cv-floating-particle {
    position: absolute;
    bottom: -20px;
    user-select: none;
    pointer-events: none;
    animation: cvFloatUp linear infinite;
    z-index: 1;
    filter: drop-shadow(0 0 8px rgba(255, 42, 133, 0.8));
}
