/* ==========================================================================
   SISTEMA DE DESIGN PREMIUM - RÁDIO IA JUKEBOX v3.0
   ========================================================================== */

:root {
    --bg-dark: #050508;
    --bg-card: rgba(13, 13, 23, 0.7);
    --glass-bg: rgba(18, 18, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-border-focus: rgba(168, 85, 247, 0.4);
    
    /* Cores de Destaque */
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-green: #10b981;
    --accent-blue: #3b82f6;
    --accent-yellow: #f59e0b;
    --accent-danger: #ef4444;
    
    /* Degradês */
    --gradient-primary: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    --gradient-glow: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(0,0,0,0) 70%);

    /* Tipografia */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Textos */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
}

/* 🌀 Configurações Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

/* 🎇 Efeitos de Fundo Dinâmicos (Background Cover) */
.background-effects {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background-color: var(--bg-dark);
}

.bg-blur-image {
    position: absolute;
    top: -10%; left: -10%;
    width: 120%; height: 120%;
    object-fit: cover;
    filter: blur(90px) saturate(2.5);
    opacity: 0.6;
    transition: all 2s ease-in-out;
}

.bg-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(5, 5, 8, 0.5) 0%, rgba(5, 5, 8, 0.95) 100%);
}

/* 📂 Painel de Efeito Glassmorphic */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* 🧭 Estrutura Dashboard */
.dashboard-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* 🧭 Sidebar (Desktop) */
.sidebar {
    width: 260px;
    height: 100vh;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.2rem;
    z-index: 100;
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
    padding-left: 0.5rem;
}

.brand-logo i {
    font-size: 2.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.4));
}

.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.brand-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.nav-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    transition: all 0.3s ease;
}

.nav-link i {
    font-size: 1.3rem;
}

.nav-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
    color: var(--text-main);
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.25) 0%, rgba(236, 72, 153, 0.05) 100%);
    border-left: 3px solid var(--accent-purple);
    padding-left: calc(1.2rem - 3px);
}

.nav-link .badge {
    background: var(--accent-pink);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.1rem 0.4rem;
    border-radius: 20px;
    margin-left: auto;
}

.sidebar-footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-login {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

/* 📱 Bottom Navigation Bar (Oculto no Desktop) */
.bottom-nav {
    display: none;
}

/* 💻 Conteúdo Principal (Layout) */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.main-header {
    height: 70px;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    flex-shrink: 0;
    background: rgba(10, 10, 15, 0.4);
}

.header-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.live-status {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.live-status .dot {
    width: 6px;
    height: 6px;
    background-color: #ef4444;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 0.2; }
    50% { opacity: 1; }
    100% { opacity: 0.2; }
}

.listeners {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-primary-sm {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: 0.2s;
}

.btn-primary-sm:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-secondary-sm {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: 0.2s;
}

.btn-secondary-sm:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-danger-sm {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: 0.2s;
}

.btn-danger-sm:hover {
    background: rgba(239, 68, 68, 0.25);
}

.content-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.dashboard-section {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.dashboard-section.active {
    display: flex;
    flex-direction: column;
}

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

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.3rem;
}

/* ==========================================================================
   📻 SEÇÃO DE RÁDIO (PLAYER, CHAT E FILA)
   ========================================================================== */

.radio-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: start;
    width: 100%;
}

.radio-left, .radio-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0; /* evita overflow de grid */
}

/* 💿 Player Card */
.player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.2rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.player-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-glow);
    z-index: 0;
    pointer-events: none;
}

.player-visual {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 2rem auto;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.vinyl-record {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, #27272a 30%, #18181b 45%, #09090b 70%, #000 100%);
    border: 8px solid rgba(0,0,0,0.8);
    box-shadow: 0 15px 40px rgba(0,0,0,0.8), inset 0 0 20px rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Efeito de sulcos de disco de vinil */
.vinyl-record::after {
    content: '';
    position: absolute;
    top: 8px; left: 8px; right: 8px; bottom: 8px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.04);
}

.vinyl-center {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: none;
}

.vinyl-center img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.vinyl-center::after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--text-muted);
    border-radius: 50%;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid #000;
}

/* Animação do vinil tocando */
.vinyl-record.playing {
    animation: spin 8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 🌊 Ondas Sonoras Animadas */
.wave-lines {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 30px;
    opacity: 0.8;
}

.wave-lines .stroke {
    width: 4px;
    background: var(--accent-purple);
    border-radius: 2px;
    height: 4px;
    transition: 0.3s;
}

.wave-lines.active .stroke {
    animation: bounceWave 1.2s ease-in-out infinite alternate;
}

.wave-lines.active .stroke:nth-child(1) { height: 18px; animation-delay: 0.1s; background-color: var(--accent-purple); }
.wave-lines.active .stroke:nth-child(2) { height: 26px; animation-delay: 0.3s; background-color: var(--accent-pink); }
.wave-lines.active .stroke:nth-child(3) { height: 12px; animation-delay: 0.6s; background-color: var(--accent-blue); }
.wave-lines.active .stroke:nth-child(4) { height: 22px; animation-delay: 0.2s; background-color: var(--accent-pink); }
.wave-lines.active .stroke:nth-child(5) { height: 16px; animation-delay: 0.4s; background-color: var(--accent-purple); }

@keyframes bounceWave {
    0% { transform: scaleY(0.2); }
    100% { transform: scaleY(1); }
}

.player-info {
    z-index: 1;
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.status-badge {
    color: var(--accent-pink);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

.current-track {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.4rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.requester-name {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Controles de Áudio */
.player-controls {
    width: 100%;
    z-index: 1;
}



.control-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.btn-play-radio {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.btn-play-radio:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

.btn-play-radio i {
    font-size: 1.4rem;
}

.audio-on-badge {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-share {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.btn-share:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.btn-share i {
    font-size: 1.2rem;
}

.btn-radio-off {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.btn-radio-off:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.6);
    color: #ef4444;
}

.btn-radio-off i {
    font-size: 1.2rem;
}

/* 📋 Fila Card */
.queue-card {
    display: flex;
    flex-direction: column;
    max-height: 300px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-tooltip {
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: help;
    transition: 0.2s;
}

.info-tooltip:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}

.queue-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.queue-list li {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: 0.2s;
}

.queue-list li:hover {
    background: rgba(255, 255, 255, 0.04);
}

.queue-list li .title {
    font-weight: 600;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.queue-list li .req {
    color: var(--text-muted);
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* 💬 Container de Chat */
.chat-container {
    height: 520px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.8rem;
    margin-bottom: 0.8rem;
    flex-shrink: 0;
}

.chat-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-options-tabs {
    display: flex;
    gap: 0.2rem;
    background: rgba(0,0,0,0.2);
    padding: 0.2rem;
    border-radius: 6px;
}

.chat-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}

.chat-tab-btn:hover {
    color: white;
}

.chat-tab-btn.active {
    background: rgba(255,255,255,0.06);
    color: var(--accent-purple);
}

.chat-sub-content {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.chat-sub-content.active {
    display: flex;
}

.chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding-right: 0.4rem;
    margin-bottom: 0.8rem;
}

.msg {
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    word-break: break-word;
}

.msg strong {
    color: var(--accent-purple);
}

.msg.system {
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.15);
    font-weight: 500;
}

.msg.admin {
    color: var(--accent-yellow);
    background: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.2);
    font-weight: 500;
}

.msg.admin strong {
    color: var(--accent-yellow);
}

.chat-input-area {
    border-top: 1px solid var(--glass-border);
    padding-top: 0.8rem;
    flex-shrink: 0;
}

.auth-prompt-card {
    background: rgba(168, 85, 247, 0.06);
    border: 1px border-style var(--accent-purple);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

.auth-prompt-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.dedication-settings {
    margin-bottom: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.input-group-row {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.35) !important;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0 0.8rem;
}

.input-group-row .icon {
    color: var(--accent-purple);
    font-size: 1rem;
    margin-right: 0.5rem;
}

/* Container de input de dedicação (injetamos background escuro e borda de vidro) */
.dedication-group {
    display: none;
    align-items: center;
    background: rgba(0,0,0,0.35) !important;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0 0.8rem;
}

/* Mostra o container quando a classe visible for adicionada */
.dedication-group.visible {
    display: flex !important;
}

.input-field-sm {
    background: transparent !important;
    border: none !important;
    color: white !important;
    padding: 0.5rem 0;
    font-size: 0.75rem;
    outline: none;
    width: 100%;
}

/* Força o dropdown e as opções a usarem fundo escuro e fonte clara */
select, select option {
    background-color: #12121a !important;
    color: #f8fafc !important;
}

/* Chrome/Safari autofill override to prevent white backgrounds */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
select:-webkit-autofill {
    -webkit-text-fill-color: #f8fafc !important;
    -webkit-box-shadow: 0 0 0px 1000px #12121a inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.input-field {
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
    outline: none;
    width: 100%;
    transition: 0.2s;
}

.input-field:focus {
    border-color: var(--accent-purple);
}

.quick-friends-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.7rem;
    margin-top: 0.2rem;
}

.btn-find-friends {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--accent-purple);
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
}

.btn-find-friends:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-1px);
}

.quick-friends-container .label {
    color: var(--text-muted);
    flex-shrink: 0;
}

.friends-horizontal-scroll {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 3px;
    flex: 1;
}

.friend-badge-btn {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.25);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    transition: 0.2s;
    white-space: nowrap;
}

.friend-badge-btn:hover {
    background: rgba(168, 85, 247, 0.25);
}

.request-row, .chat-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.btn-action-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-action-primary:hover {
    opacity: 0.95;
}

.btn-action-send {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--glass-border);
    color: white;
    width: 42px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.btn-action-send:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
}

.btn-action-send i {
    font-size: 1.1rem;
}

/* Rankings Block */
.rankings-tab-scroll {
    height: 100%;
}

.ranking-block h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ranking-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ranking-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    transition: 0.2s;
}

.ranking-item:hover {
    transform: translateX(2px);
    background: rgba(255, 255, 255, 0.04);
}

.ranking-item .rank-badge {
    font-weight: 800;
    width: 22px;
    display: inline-block;
}

.ranking-item .rank-name {
    font-weight: 600;
}

.ranking-item .rank-count {
    font-size: 0.75rem;
    background: rgba(255,255,255,0.06);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: var(--text-muted);
}

/* ==========================================================================
   👤 SEÇÃO: MINHA CONTA & GOSTOS
   ========================================================================== */

.account-profile-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    border: 2px solid var(--accent-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar i {
    font-size: 2rem;
    color: var(--accent-purple);
}

.profile-details h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
}

.profile-details span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.account-card {
    display: flex;
    flex-direction: column;
}

.genres-grid-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    height: 100%;
    justify-content: space-between;
}

.genres-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.genre-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: white;
    cursor: pointer;
    padding: 0.4rem 0.2rem;
}

.genre-checkbox input {
    accent-color: var(--accent-purple);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.2);
}

.history-scroll {
    max-height: 230px;
}

.history-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.history-list li {
    background: rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.03);
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
}

.history-list li span.title {
    font-weight: 600;
    color: white;
    display: block;
}

.history-list li span.meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   🤝 SEÇÃO SOCIAL & AMIGOS
   ========================================================================== */

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.social-block-card {
    display: flex;
    flex-direction: column;
    height: 400px;
}

.friend-action-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.social-list-scroll {
    flex: 1;
}

.social-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-list li {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.social-list li span {
    font-weight: 600;
}

/* ==========================================================================
   🔔 SEÇÃO NOTIFICAÇÕES
   ========================================================================== */

.notifications-card {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.notifs-scroll {
    max-height: 450px;
}

.notifs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.notifs-list li {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.notif-title {
    font-size: 0.85rem;
    line-height: 1.4;
}

.notif-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ==========================================================================
   ❔ SEÇÃO AJUDA / GUIAS
   ========================================================================== */

.help-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.help-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.8rem;
}

.help-icon {
    width: 48px;
    height: 48px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}

.help-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

.help-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ==========================================================================
   📦 CUSTOM SCROLLBARS & CONTÊINERES DE ROLAGEM
   ========================================================================== */

.scroll-container {
    overflow-y: auto;
    padding-right: 4px;
    min-height: 0;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   🔒 MODAIS E CONFIGURAÇÕES DE FORMULÁRIO
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 3, 5, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    width: 90%;
    max-width: 440px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-large {
    max-width: 520px;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    margin-bottom: 1.2rem;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    transition: 0.2s;
}

.close-btn:hover {
    color: white;
}

.form-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-primary-block {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    width: 100%;
    margin-top: 0.5rem;
    transition: 0.2s;
}

.btn-primary-block:hover {
    opacity: 0.95;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.25);
}

.modal-links {
    margin-top: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.modal-links a {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.modal-links a:hover {
    color: var(--accent-pink);
}

.security-question-hint {
    font-weight: 600;
    color: var(--accent-purple);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    background: rgba(168, 85, 247, 0.08);
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.genres-grid-reg {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    background: rgba(0,0,0,0.15);
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.genre-checkbox-reg {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: white;
    cursor: pointer;
}

.genre-checkbox-reg input {
    accent-color: var(--accent-purple);
}

/* ==========================================================================
   Toast de Notificação Real-Time
   ========================================================================== */
.notification-toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 320px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--accent-pink);
    border-radius: 12px;
    padding: 1rem;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.notification-toast.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.4rem;
    margin-bottom: 0.5rem;
}

.toast-title {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--accent-pink);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
}

.toast-body {
    font-size: 0.8rem;
    line-height: 1.4;
    color: white;
}

/* ==========================================================================
   RESPONSIVIDADE E ADAPTAÇÃO PARA DISPOSITIVOS MÓVEIS
   ========================================================================== */

@media (max-width: 992px) {
    .sidebar {
        display: none; /* Esconde sidebar */
    }

    .bottom-nav {
        display: flex; /* Exibe barra de navegação inferior */
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100vw;
        height: 68px;
        border-radius: 0;
        border-bottom: none;
        border-left: none;
        border-right: none;
        justify-content: space-around;
        align-items: center;
        padding: 0.2rem 0.5rem;
        z-index: 1000;
        background: rgba(10, 10, 15, 0.85);
        box-shadow: 0 -4px 25px rgba(0,0,0,0.5);
    }

    .bottom-link {
        background: transparent;
        border: none;
        color: var(--text-muted);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        font-size: 0.65rem;
        font-weight: 700;
        cursor: pointer;
        padding: 0.4rem 0.6rem;
        transition: 0.2s;
        position: relative;
    }

    .bottom-link i {
        font-size: 1.3rem;
    }

    .bottom-link:hover {
        color: white;
    }

    .bottom-link.active {
        color: var(--accent-purple);
    }

    .bottom-link .badge {
        position: absolute;
        top: 2px;
        right: 12px;
        background: var(--accent-pink);
        color: white;
        font-size: 0.6rem;
        font-weight: 800;
        padding: 0.05rem 0.3rem;
        border-radius: 10px;
    }

    .main-content {
        height: calc(100vh - 68px); /* Reserva espaço para o bottom-nav */
    }

    .radio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 0 1rem;
    }

    .content-scrollable {
        padding: 1rem;
    }

    .player-card {
        padding: 1.5rem 1.2rem;
    }

    .player-visual {
        width: 150px;
        height: 150px;
    }

    .current-track {
        font-size: 1.35rem;
    }

    .chat-container {
        height: 480px;
    }

    .account-grid, .social-grid, .help-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .account-profile-card {
        gap: 1rem;
        padding: 1rem;
    }

    .social-block-card {
        height: 350px;
    }
}

.chat-ban-timer-bar {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 0.75rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0.5rem;
    animation: chatPulse 2s infinite;
}

@keyframes chatPulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* Visualizer Circular Canvas */
.visualizer-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    z-index: -1;
    pointer-events: none;
}

/* Reações Coletivas */
.player-reactions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 1rem 0 0.5rem 0;
}

.reaction-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.reaction-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.15);
    box-shadow: 0 6px 12px rgba(168, 85, 247, 0.2);
}

.reaction-btn:active {
    transform: scale(0.9);
}

/* Emojis Flutuantes */
.floating-emojis-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 10;
}

.floating-emoji {
    position: absolute;
    bottom: -30px;
    font-size: 2rem;
    opacity: 0;
    animation: floatUp 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(0.4);
        opacity: 0;
    }
    15% {
        opacity: 1;
        transform: translateY(-20px) scale(1.2);
    }
    85% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(-190px) scale(0.8) rotate(var(--random-rotation));
        opacity: 0;
    }
}

/* Card de Duelo de Votação */
.duel-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 14px;
    padding: 12px;
    margin: 0.8rem 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    animation: duelPulseBorder 2s infinite alternate;
}

@keyframes duelPulseBorder {
    0% { border-color: rgba(168, 85, 247, 0.25); box-shadow: 0 4px 15px rgba(168, 85, 247, 0.05); }
    100% { border-color: rgba(236, 72, 153, 0.45); box-shadow: 0 4px 20px rgba(236, 72, 153, 0.15); }
}

.duel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.05em;
}

.duel-timer {
    background: rgba(236, 72, 153, 0.2);
    color: #f472b6;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.duel-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.duel-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    overflow: hidden;
}

.duel-option:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.duel-option:active {
    transform: scale(0.99);
}

.option-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e4e4e7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vote-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.vote-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #ec4899);
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.vote-count {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    align-self: flex-end;
}

.duel-footer {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

/* ==========================================================================
   💬 CHAT PRIVADO (DMs) & INSPETOR DE PERFIL
   ========================================================================== */

.clickable-username {
    cursor: pointer;
    transition: color 0.2s ease;
}
.clickable-username:hover {
    color: var(--accent-pink) !important;
    text-decoration: underline;
}

/* Lista de conversas de DM */
.dm-conversations-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 10px;
}

.dm-conversation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dm-conversation-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.dm-conversation-item.active {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--accent-purple);
}

.dm-avatar {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    border: 1px solid var(--glass-border);
}

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

.dm-info-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.dm-username {
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
}

.dm-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.dm-last-msg {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dm-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 6px;
}
.dm-status-dot.online {
    background-color: #60a5fa;
    box-shadow: 0 0 6px #60a5fa;
}
.dm-status-dot.sintonizado {
    background-color: #34d399;
    box-shadow: 0 0 6px #34d399;
}
.dm-status-dot.offline {
    background-color: #94a3b8;
}

/* Área de chat de DM ativo */
.dm-chat-header {
    background: rgba(0, 0, 0, 0.15);
}

.dm-msg-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.85rem;
    line-height: 1.4;
    word-break: break-word;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.dm-msg-bubble.outgoing {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--accent-purple), #7c3aed);
    color: white;
    border-bottom-right-radius: 4px;
}

.dm-msg-bubble.incoming {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #f1f5f9;
    border-bottom-left-radius: 4px;
}

.dm-msg-time {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    text-align: right;
    display: block;
}

.dm-msg-bubble.incoming .dm-msg-time {
    color: var(--text-muted);
}

/* Badges no Inspetor */
.genre-badge {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: white;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.profile-avatar-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    border: 2px solid var(--accent-purple);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3);
}

/* Resiliência do painel de DMs */
.btn-back-dms:hover {
    background: rgba(255,255,255,0.12) !important;
    border-color: rgba(255,255,255,0.25) !important;
}

/* ==========================================================================
   💬 CHAT FLUTUANTE ESTILO FACEBOOK
   ========================================================================== */
#floating-chat-container {
    position: fixed;
    bottom: 0;
    right: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-end;
    z-index: 2500;
    pointer-events: none;
}
#floating-chat-container * {
    pointer-events: auto;
}
.floating-chat-box {
    width: 290px;
    height: 380px;
    background: rgba(13, 13, 22, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.65);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s;
}
.floating-chat-box.minimized {
    height: 44px;
}
.floating-chat-header {
    height: 44px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 16px 16px 0 0;
}
.floating-chat-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 180px;
}
.floating-chat-actions {
    display: flex;
    gap: 8px;
    color: var(--text-muted);
}
.floating-chat-actions i {
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
}
.floating-chat-actions i:hover {
    color: white;
}
.floating-chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(0, 0, 0, 0.2);
}
.floating-chat-bubble {
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 0.8rem;
    max-width: 80%;
    word-break: break-word;
    position: relative;
    line-height: 1.4;
}
.floating-chat-bubble.outgoing {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}
.floating-chat-bubble.incoming {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}
.floating-chat-time {
    display: block;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
    text-align: right;
}
.floating-chat-input-area {
    padding: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 6px;
    background: rgba(0, 0, 0, 0.25);
}
.floating-chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 6px 12px;
    color: white;
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.2s;
}
.floating-chat-input:focus {
    border-color: var(--accent-pink);
}
.floating-chat-send {
    background: var(--accent-pink);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}
.floating-chat-send:hover {
    transform: scale(1.08);
}
.floating-chat-box.highlight {
    animation: flashHeader 0.5s ease-in-out infinite alternate;
}
@keyframes flashHeader {
    from { border-color: rgba(255, 255, 255, 0.1); }
    to { border-color: var(--accent-pink); }
}

