
        /* Esconder seções principais inicialmente para evitar flicker */
        #authForm.hidden, #dashboard.hidden, #fixedHeader.hidden {
            display: none !important;
        }
        
        /* FORÇAR HEADER A APARECER - v2 */
        #dashboard:not(.hidden) .modern-header,
        #dashboard .modern-header {
            display: flex !important;
            visibility: visible !important;
            opacity: 1 !important;
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            z-index: 1000 !important;
        }
        
        #dashboard:not(.hidden) .header-left,
        #dashboard .header-left,
        #dashboard:not(.hidden) .header-right,
        #dashboard .header-right {
            display: flex !important;
            visibility: visible !important;
            opacity: 1 !important;
        }
        
        #dashboard:not(.hidden) .balance-display,
        #dashboard .balance-display,
        #dashboard:not(.hidden) .deposit-btn-header,
        #dashboard .deposit-btn-header,
        #dashboard:not(.hidden) .notification-icon,
        #dashboard .notification-icon,
        #dashboard:not(.hidden) .message-icon,
        #dashboard .message-icon,
        #dashboard:not(.hidden) .user-profile-icon,
        #dashboard .user-profile-icon {
            display: flex !important;
            visibility: visible !important;
            opacity: 1 !important;
        }
        
        #dashboard .deposit-btn-header {
            display: inline-block !important;
        }
    

/* =========================================== */
/* CSS extraído do index.html */
/* =========================================== */


                        #saveGroupsCheckbox {
                            width: 20px !important;
                            height: 20px !important;
                            cursor: pointer;
                            appearance: none;
                            -webkit-appearance: none;
                            -moz-appearance: none;
                            border: 2px solid rgba(0, 255, 136, 0.5);
                            border-radius: 4px;
                            background: rgba(0, 0, 0, 0.3);
                            position: relative;
                            transition: all 0.3s ease;
                            flex-shrink: 0;
                        }
                        
                        #saveGroupsCheckbox:checked {
                            background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
                            border-color: #00ff88;
                            box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
                        }
                        
                        #saveGroupsCheckbox:checked::after {
                            content: '✓';
                            position: absolute;
                            top: 50%;
                            left: 50%;
                            transform: translate(-50%, -50%);
                            color: #000;
                            font-weight: bold;
                            font-size: 14px;
                        }
                        
                        #saveGroupsCheckbox:disabled {
                            opacity: 0.5;
                            cursor: not-allowed;
                            border-color: rgba(255, 107, 107, 0.5);
                            background: rgba(0, 0, 0, 0.2);
                        }
                        
                        #saveGroupsCheckbox:disabled:checked {
                            background: rgba(255, 107, 107, 0.3);
                            border-color: rgba(255, 107, 107, 0.5);
                            box-shadow: none;
                        }
                        
                        #saveGroupsLabel:hover {
                            background: rgba(0, 255, 136, 0.1) !important;
                            border-color: rgba(0, 255, 136, 0.3) !important;
                        }
                        
                        #saveGroupsLabel.checkbox-disabled {
                            cursor: not-allowed !important;
                            background: rgba(255, 107, 107, 0.05) !important;
                            border-color: rgba(255, 107, 107, 0.2) !important;
                        }
                        
                        #saveGroupsLabel.checkbox-disabled:hover {
                            background: rgba(255, 107, 107, 0.08) !important;
                            border-color: rgba(255, 107, 107, 0.3) !important;
                        }
                        
                        #saveGroupsLabel.checkbox-checked {
                            background: rgba(0, 255, 136, 0.15) !important;
                            border-color: rgba(0, 255, 136, 0.5) !important;
                        }
                    

/* =========================================== */
/* CSS extraído do index.html */
/* =========================================== */


                        #groupsSearchInput::placeholder {
                            color: rgba(255,255,255,0.5);
                        }
                        #groupsSearchInput:focus {
                            outline: none;
                            border-color: rgba(255,255,255,0.5);
                            background: rgba(255,255,255,0.15);
                        }
                    

/* =========================================== */
/* CSS existente de index.css */
/* =========================================== */


        /* Esconder seções principais inicialmente para evitar flicker */
        #authForm.hidden, #dashboard.hidden, #fixedHeader.hidden {
            display: none !important;
        }
        
        /* FORÇAR HEADER A APARECER - v2 */
        #dashboard:not(.hidden) .modern-header,
        #dashboard .modern-header {
            display: flex !important;
            visibility: visible !important;
            opacity: 1 !important;
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            z-index: 1000 !important;
        }
        
        #dashboard:not(.hidden) .header-left,
        #dashboard .header-left,
        #dashboard:not(.hidden) .header-right,
        #dashboard .header-right {
            display: flex !important;
            visibility: visible !important;
            opacity: 1 !important;
        }
        
        #dashboard:not(.hidden) .balance-display,
        #dashboard .balance-display,
        #dashboard:not(.hidden) .deposit-btn-header,
        #dashboard .deposit-btn-header,
        #dashboard:not(.hidden) .notification-icon,
        #dashboard .notification-icon,
        #dashboard:not(.hidden) .message-icon,
        #dashboard .message-icon,
        #dashboard:not(.hidden) .user-profile-icon,
        #dashboard .user-profile-icon {
            display: flex !important;
            visibility: visible !important;
            opacity: 1 !important;
        }
        
        #dashboard .deposit-btn-header {
            display: inline-block !important;
        }
    

/* =========================================== */
/* CSS extraído do index.html */
/* =========================================== */


                        #saveGroupsCheckbox {
                            width: 20px !important;
                            height: 20px !important;
                            cursor: pointer;
                            appearance: none;
                            -webkit-appearance: none;
                            -moz-appearance: none;
                            border: 2px solid rgba(0, 255, 136, 0.5);
                            border-radius: 4px;
                            background: rgba(0, 0, 0, 0.3);
                            position: relative;
                            transition: all 0.3s ease;
                            flex-shrink: 0;
                        }
                        
                        #saveGroupsCheckbox:checked {
                            background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
                            border-color: #00ff88;
                            box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
                        }
                        
                        #saveGroupsCheckbox:checked::after {
                            content: '✓';
                            position: absolute;
                            top: 50%;
                            left: 50%;
                            transform: translate(-50%, -50%);
                            color: #000;
                            font-weight: bold;
                            font-size: 14px;
                        }
                        
                        #saveGroupsCheckbox:disabled {
                            opacity: 0.5;
                            cursor: not-allowed;
                            border-color: rgba(255, 107, 107, 0.5);
                            background: rgba(0, 0, 0, 0.2);
                        }
                        
                        #saveGroupsCheckbox:disabled:checked {
                            background: rgba(255, 107, 107, 0.3);
                            border-color: rgba(255, 107, 107, 0.5);
                            box-shadow: none;
                        }
                        
                        #saveGroupsLabel:hover {
                            background: rgba(0, 255, 136, 0.1) !important;
                            border-color: rgba(0, 255, 136, 0.3) !important;
                        }
                        
                        #saveGroupsLabel.checkbox-disabled {
                            cursor: not-allowed !important;
                            background: rgba(255, 107, 107, 0.05) !important;
                            border-color: rgba(255, 107, 107, 0.2) !important;
                        }
                        
                        #saveGroupsLabel.checkbox-disabled:hover {
                            background: rgba(255, 107, 107, 0.08) !important;
                            border-color: rgba(255, 107, 107, 0.3) !important;
                        }
                        
                        #saveGroupsLabel.checkbox-checked {
                            background: rgba(0, 255, 136, 0.15) !important;
                            border-color: rgba(0, 255, 136, 0.5) !important;
                        }
                    

/* =========================================== */
/* CSS extraído do index.html */
/* =========================================== */


                        #groupsSearchInput::placeholder {
                            color: rgba(255,255,255,0.5);
                        }
                        #groupsSearchInput:focus {
                            outline: none;
                            border-color: rgba(255,255,255,0.5);
                            background: rgba(255,255,255,0.15);
                        }
                    

/* =========================================== */
/* CSS existente de index.css */
/* =========================================== */

/* REMOVIDO: @import bloqueia evento load - fonte agora carregada via <link> no HTML */
/* @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:wght@300;400;600;700&display=swap'); */
        
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: #f9fafb;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box;
}

/* =========================================== */
/* Skeleton loading (evita "pular" números no load) */
/* =========================================== */
.skeleton-text {
    position: relative;
    display: inline-block;
    /* largura aproximada de "1.702" */
    min-width: 5.6ch;
    height: 1.15em;
    border-radius: 8px;
    /* visível em fundo branco */
    background: #e5e7eb;
    overflow: hidden;
    vertical-align: middle;
}
.skeleton-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    height: 100%;
    width: 150%;
    background: linear-gradient(90deg, rgba(229,231,235,0), rgba(255,255,255,0.85), rgba(229,231,235,0));
    animation: skeleton-shimmer 1.1s infinite;
}
@keyframes skeleton-shimmer {
    0% { left: -150%; }
    100% { left: 150%; }
}
.skeleton-text.is-loaded {
    background: transparent;
}
.skeleton-text.is-loaded::after {
    display: none;
}

body:has(#dashboard:not(.hidden)) {
    background: #f9fafb;
    display: block !important;
    align-items: flex-start;
    justify-content: flex-start;
}

body.shop-open {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    overflow: hidden;
}

/* body.admin-open - Migrado para admin.css */

/* Animated Background - desabilitado quando dashboard está visível */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 136, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 136, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 255, 136, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
    z-index: -2;
    animation: backgroundShift 20s ease infinite;
}

body:has(#dashboard:not(.hidden))::before {
    display: none;
}

@keyframes backgroundShift {
    0%, 100% {
        background: 
            radial-gradient(circle at 20% 80%, rgba(0, 255, 136, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(0, 255, 136, 0.2) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(0, 255, 136, 0.15) 0%, transparent 50%),
            linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
    }
    50% {
        background: 
            radial-gradient(circle at 80% 20%, rgba(0, 255, 136, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 20% 80%, rgba(0, 255, 136, 0.2) 0%, transparent 50%),
            radial-gradient(circle at 60% 60%, rgba(0, 255, 136, 0.15) 0%, transparent 50%),
            linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
    }
}

/* Floating Particles - desabilitado quando dashboard está visível */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

body:has(#dashboard:not(.hidden)) .particles {
    display: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00ff88;
    border-radius: 50%;
    animation: float 6s infinite linear;
}

.particle:nth-child(odd) {
    background: #00cc6a;
    animation-duration: 8s;
}

.particle:nth-child(3n) {
    background: #00ff88;
    animation-duration: 10s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Estilos para seleção de caixas da roleta */
.caixa-btn.selected {
    border: 3px solid #00ff88 !important;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4) !important;
    transform: scale(1.1) !important;
}


.container {
    max-width: 100%;
    width: 100%;
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    flex-direction: column;
}

.container #dashboard {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Garantir que authForm e dashboard não apareçam juntos */
.container #authForm.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.container #dashboard.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.container #dashboard:not(.hidden) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
}

/* Forçar elementos do header a aparecerem */
#dashboard:not(.hidden) .modern-header,
#dashboard .modern-header {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#dashboard:not(.hidden) .header-left,
#dashboard .header-left {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#dashboard:not(.hidden) .header-right,
#dashboard .header-right {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#dashboard:not(.hidden) .balance-display,
#dashboard .balance-display {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#dashboard:not(.hidden) .deposit-btn-header,
#dashboard .deposit-btn-header {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#dashboard:not(.hidden) .notification-icon,
#dashboard .notification-icon,
#dashboard:not(.hidden) .message-icon,
#dashboard .message-icon {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#dashboard:not(.hidden) .user-profile-icon,
#dashboard .user-profile-icon {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.container #dashboard {
    max-width: 100%;
    width: 100%;
}

.auth-container {
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(30, 58, 138, 0.3);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 25px 50px rgba(30, 58, 138, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

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

.auth-title {
    text-align: center;
    color: #1e3a8a;
    margin-bottom: 30px;
    font-family: 'Orbitron', monospace;
    font-size: 32px;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(30, 58, 138, 0.3);
    word-wrap: break-word;
}

@keyframes glow {
    from { 
        filter: drop-shadow(0 2px 10px rgba(30, 58, 138, 0.3));
        opacity: 0.9;
    }
    to { 
        filter: drop-shadow(0 2px 15px rgba(102, 126, 234, 0.4));
        opacity: 1;
    }
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    word-wrap: break-word;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    font-size: 16px;
    color: #1a1a1a;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.form-group input:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 20px rgba(30, 58, 138, 0.3);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.6);
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#googleLoginBtn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    animation: none;
}

/* Container principal (Foto + Dados) */
.profile-main-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .profile-main-container {
        flex-direction: column;
        align-items: center;
    }
}

/* Seção de dados do usuário */
.profile-data-section {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Estilos para foto de perfil */
.profile-photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    padding: 30px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.profile-photo {
    position: relative;
    display: inline-block;
    width: 180px;
    height: 180px;
}

.profile-photo-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    display: block !important;
    position: relative;
    z-index: 3;
}

.profile-photo-img.hidden {
    display: none !important;
}

.profile-photo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.6);
}

.no-photo-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid rgba(0, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 1);
    font-size: 72px;
    font-weight: bold;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

#noPhotoInitial {
    text-transform: uppercase;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    font-weight: 700;
    letter-spacing: -2px;
    user-select: none;
}

.no-photo-placeholder.hidden {
    display: none;
}

.change-photo-section {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.change-photo-btn,
.remove-photo-btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.change-photo-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.change-photo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.remove-photo-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.remove-photo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.6);
}

/* Modal para foto ampliada */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.photo-modal.active {
    display: flex;
}

.photo-modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.5);
    animation: zoomIn 0.3s ease;
}

.photo-modal-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.photo-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.photo-modal-close:hover {
    color: #00ffff;
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.no-photo-placeholder span {
    font-size: 32px;
    margin-bottom: 5px;
}

.no-photo-placeholder p {
    font-size: 12px;
    margin: 0;
    font-family: 'Orbitron', monospace;
}

/* Botões para trocar foto */
.change-photo-section {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.change-photo-btn, .remove-photo-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
}

.change-photo-btn {
    background: linear-gradient(45deg, #00ffff, #0088ff);
    color: white;
    border: 1px solid #00ffff;
}

.change-photo-btn:hover {
    background: linear-gradient(45deg, #0088ff, #00ffff);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
}

.remove-photo-btn {
    background: linear-gradient(45deg, #ff4444, #ff6666);
    color: white;
    border: 1px solid #ff4444;
}

.remove-photo-btn:hover {
    background: linear-gradient(45deg, #ff6666, #ff4444);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
    transform: translateY(-2px);
}

.auth-switch {
    text-align: center;
    margin-top: 30px;
    color: #333;
}

.auth-switch a {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-switch a:hover {
    color: #1e40af;
    text-decoration: underline;
    transform: scale(1.05);
}

.error-message {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #ff4444;
    backdrop-filter: blur(10px);
    animation: shake 0.5s ease-in-out;
}

.success-message {
    background: rgba(30, 58, 138, 0.1);
    color: #1e3a8a;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #1e3a8a;
    backdrop-filter: blur(10px);
    animation: pulse 0.5s ease-in-out;
    font-weight: 600;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.dashboard {
    background: #f9fafb;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    max-width: 100vw !important;
    width: 100vw !important;
    box-sizing: border-box;
    min-height: 100vh;
    position: relative;
    display: block;
    padding-top: 110px;
    overflow-x: hidden;
}

/* Header Moderno - v2 */
.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: #1e3a8a !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    visibility: visible !important;
    opacity: 1 !important;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 1 !important;
    visibility: visible !important;
}

.header-left .logo-text {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Forçar remoção do logo ST */
.header-left .hamburger-icon,
.header-left .logo-icon,
.modern-header .hamburger-icon,
.modern-header .logo-icon,
.logo-container .logo-icon {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

.sidebar-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    margin-right: 8px;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.hamburger-icon {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
}

.logo-container .logo-text {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.logo-icon {
    display: none !important;
    font-size: 20px;
    font-weight: 700;
    color: #00ff88;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff !important;
    font-family: 'Exo 2', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Sidebar Lateral */
 .main-sidebar {
    display: none !important;
}

/* Sidebar colapsada (desktop) */
/* Sidebar removida */

.sidebar-header {
    padding: 30px 20px 20px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.sidebar-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    font-family: 'Orbitron', monospace;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 30px;
}

.nav-section-title {
    font-size: 12px;
    color: rgba(0, 255, 136, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 20px 10px;
    margin-bottom: 10px;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
    position: relative;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #60a5fa;
}

.nav-item.active {
    background: rgba(96, 165, 250, 0.2);
    border-left-color: #60a5fa;
    color: #60a5fa;
}

.nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.nav-text {
    font-size: 14px;
    font-weight: 500;
    color: #00ff88;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(0, 255, 136, 0.1);
}

.sidebar-logout-btn {
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Orbitron', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.sidebar-logout-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.6);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.sidebar-logout-btn .menu-icon {
    font-size: 16px;
}

/* Conteúdo Principal */
.main-content {
    margin-left: 0 !important;
    flex: 1;
    width: 100% !important;
    padding: 0;
    background: #f9fafb;
    min-height: calc(100vh - 80px);
    max-width: 100vw !important;
    box-sizing: border-box;
    overflow-x: hidden;
}

.header-right {
    display: flex !important;
    align-items: center;
    gap: 20px;
    visibility: visible !important;
}

.balance-display {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    visibility: visible !important;
}

.balance-amount {
    display: flex !important;
    align-items: baseline !important;
    gap: 4px !important;
}

.balance-currency {
    color: #00ff88;
    font-weight: 700;
    font-size: 16px;
}

.balance-value {
    color: #00ff88;
    font-weight: 700;
    font-size: 18px;
}

.balance-text {
    color: rgba(0, 255, 136, 0.7);
    font-size: 12px;
    font-weight: 400;
    margin: 0;
    line-height: 1.2;
}

.deposit-btn-header {
    background: linear-gradient(135deg, #0a4d2e 0%, #0d5c35 100%) !important;
    color: #ffffff !important;
    border: 2px solid #00ff88 !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: auto !important;
    height: auto !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5), 
                0 0 30px rgba(0, 255, 136, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.deposit-btn-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.deposit-btn-header:hover::before {
    left: 100%;
}

.deposit-icon {
    display: none !important;
}

.deposit-text {
    font-weight: 600;
    font-size: 13px;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
}

.deposit-btn-header:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.7), 
                0 0 40px rgba(0, 255, 136, 0.5),
                0 5px 15px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    border-color: #00ff88 !important;
    background: linear-gradient(135deg, #0d5c35 0%, #0f6d3f 100%) !important;
}

.notification-icon, .message-icon {
    position: relative;
    font-size: 24px;
    cursor: pointer !important;
    transition: transform 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 1000 !important;
}

.notification-icon:hover, .message-icon:hover {
    transform: scale(1.1);
    background: rgba(0, 255, 136, 0.1);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.user-profile-icon {
    cursor: pointer !important;
    transition: transform 0.3s ease;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    width: 40px;
    height: 40px;
    pointer-events: auto !important;
    z-index: 1000 !important;
}

.user-profile-icon:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero-section {
    margin-top: 20px;
    padding: 50px 40px;
    margin-bottom: 40px;
}

.hero-content {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    gap: 80px;
    position: relative;
    padding: 0 20px;
}

.hero-left {
    flex: 0 1 auto;
    min-width: 400px;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.8);
    font-family: 'Exo 2', sans-serif;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    line-height: 1.6;
}

.contact-info-hero {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-top: 25px;
}

.contact-line {
    display: flex;
    align-items: center;
}

.contact-label {
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #00ff88;
    text-decoration: underline;
}

.hero-right {
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
}

.users-count-box {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: rgba(0, 255, 136, 0.9);
    font-size: 13px;
    backdrop-filter: blur(10px);
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.2);
    text-align: center;
}

.users-count-box span:first-child {
    color: rgba(0, 255, 136, 0.8);
    font-size: 12px;
}

.users-count-box strong {
    font-size: 28px;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
    line-height: 1.2;
}

.users-count-box span:last-child {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

/* Features Grid Moderno */
.features-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

/* Ajuste para página de tutorial - 5 cards em layout especial */
#boasVindasSection .features-grid-modern {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
}

/* Garantir que o último card (Perfil) fique na segunda linha, abaixo do primeiro */
#boasVindasSection .features-grid-modern .feature-profile {
    grid-column: 1;
    grid-row: 2;
}

.feature-card-modern {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.feature-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.1), transparent);
    transition: left 0.5s;
}

.feature-card-modern:hover::before {
    left: 100%;
}

.feature-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
    border-color: #1e3a8a;
}

.feature-welcome {
    border-color: #e5e7eb;
    background: #fff;
}

.feature-shop {
    border-color: #e5e7eb;
    background: #fff;
}

.feature-services {
    border-color: #e5e7eb;
    background: #fff;
}

.feature-profile {
    border-color: #e5e7eb;
    background: #fff;
}

.feature-activities {
    border-color: #e5e7eb;
    background: #fff;
}

.feature-telegram {
    border-color: #e5e7eb;
    background: #fff;
}

.feature-chat {
    border-color: #e5e7eb;
    background: #fff;
}

.feature-games {
    border-color: #e5e7eb;
    background: #fff;
}

.feature-admin {
    border-color: rgba(155, 89, 182, 0.5);
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.15) 0%, rgba(142, 68, 173, 0.15) 100%);
}

.feature-icon-modern {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-title-modern {
    color: #111827;
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 600;
    font-family: 'Exo 2', sans-serif;
    text-shadow: none;
}

.feature-subtitle-modern {
    color: #6b7280;
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: 600;
}

.feature-description-modern {
    color: #111827;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex: 1;
    font-weight: 600;
}

.feature-btn-modern {
    background: #1e3a8a;
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    margin-top: auto;
    width: fit-content;
    font-family: 'Exo 2', sans-serif;
}

.feature-btn-modern:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* Footer */
.dashboard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    background: rgba(26, 26, 46, 0.5);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    margin-top: 60px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    align-items: center;
}

.online-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.footer-center {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #00d4ff;
}

.footer-right {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

@media (max-width: 768px) {
    .modern-header {
        padding: 0 15px;
        height: 60px;
    }
    
    .logo-text {
        font-size: 18px;
        color: #ffffff !important;
        opacity: 1 !important;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .balance-display {
        font-size: 14px;
    }
    
    .balance-currency {
        font-size: 14px;
    }
    
    .balance-value {
        font-size: 16px;
    }
    
    .balance-text {
        font-size: 11px;
    }
    
    .deposit-btn-header {
        padding: 7px 14px !important;
        font-size: 12px !important;
        gap: 0 !important;
    }
    
    .deposit-icon {
        display: none !important;
    }
    
    .deposit-text {
        font-size: 12px !important;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .logout-container {
        bottom: 20px;
        left: 20px;
    }
}

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.dashboard-users-count {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 12px 20px;
    color: #00ffff;
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.2);
}

.dashboard-users-count strong {
    color: #00ffff;
    font-size: 16px;
}

@media (max-width: 768px) {
    .dashboard-users-count {
        position: static;
        margin: 20px auto;
        display: inline-block;
        font-size: 12px !important;
        padding: 8px 15px !important;
    }
    
    .dashboard-header {
        margin-bottom: 25px !important;
    }
}

@media (max-width: 480px) {
    .dashboard-users-count {
        font-size: 11px !important;
        padding: 6px 12px !important;
    }
}

.dashboard h1 {
    color: #00ffff;
    margin-bottom: 10px;
    font-family: 'Orbitron', monospace;
    font-size: 32px;
    font-weight: 900;
    text-shadow: 0 0 20px #00ffff;
}

.dashboard-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 400;
}

.dashboard-instruction {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 30px;
    font-style: italic;
}

.user-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    text-align: center;
}

.user-info h3 {
    margin: 0 0 10px 0;
    color: #ffffff;
    font-family: 'Orbitron', monospace;
    font-size: 18px;
}

.user-info p {
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.contact-info {
    background: rgba(0, 255, 136, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    backdrop-filter: blur(10px);
    text-align: center;
}

.contact-info h4 {
    color: #00ff88;
    margin: 0 0 10px 0;
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.contact-info p {
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 100%;
}

#dashboard .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
}

#dashboard .feature-card-landing {
    min-height: 200px;
}

#dashboard {
    padding: 0;
}

#dashboard .features-grid {
    padding: 20px;
    margin-top: 20px;
}

.feature-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 140px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
    border-color: #1e3a8a;
}

.feature-card.red { 
    border-color: #e5e7eb; 
    background: #fff;
    border-width: 2px;
}
.feature-card.red h4 {
    color: #1e3a8a;
    font-weight: 600;
}
.feature-card.red:hover {
    border-color: #1e3a8a;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
}
.feature-card.orange { border-color: #e5e7eb; background: #fff; }
.feature-card.purple { border-color: #e5e7eb; background: #fff; }
.feature-card.blue { border-color: #e5e7eb; background: #fff; }
.feature-card.cyan { border-color: #e5e7eb; background: #fff; }
.feature-card.green { border-color: #e5e7eb; background: #fff; }
.feature-card.teal { border-color: #e5e7eb; background: #fff; }
.feature-card.gray { border-color: #e5e7eb; background: #fff; }

.feature-card h4 {
    color: #111827 !important;
    margin: 0 0 8px 0;
    font-family: 'Exo 2', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: none;
    position: relative;
    z-index: 2;
}

.feature-card p {
    color: #111827 !important;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
    position: relative;
    z-index: 2;
    font-weight: 600;
}

.logout-btn {
    background: linear-gradient(45deg, #ff4444, #ff6666);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

.logout-btn:hover {
    background: linear-gradient(45deg, #ff6666, #ff8888);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.4);
}

/* Seção de Perfil */
.profile-section {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    width: 100%;
}

#shopSection {
    max-width: 100% !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 20px !important;
    border-radius: 0 !important;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    z-index: 1000;
}

/* Página /loja: um único scroll (body); evita scroll duplo */
body.loja-page #shopSection {
    position: static !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}
/* Aba Marketplace: nenhum scroll interno (só o da página) */
body.loja-page #shopTabMarketplaceContent,
body.loja-page #shopTabMarketplaceContent #marketplaceProductsList,
body.loja-page #shopTabMarketplaceContent #marketplaceProductsDiv {
    overflow-y: visible !important;
    max-height: none !important;
    height: auto !important;
}

/* #adminSection - Migrado para admin.css */

#boasVindasSection {
    max-width: 100% !important;
    width: 100vw !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 20px !important;
    border-radius: 0 !important;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    z-index: 1000;
}

#buyNumbersSection {
    max-width: 100% !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 20px !important;
    border-radius: 0 !important;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    z-index: 1000;
}

/* Modais admin - Migrado para admin.css */
.modal {
    z-index: 10000 !important;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.profile-header h2 {
    color: #00ffff;
    font-family: 'Orbitron', monospace;
    font-size: 28px;
    font-weight: 900;
    text-shadow: 0 0 20px #00ffff;
}

#shopSection .profile-header h2 {
    font-size: 36px;
    text-shadow: 0 0 30px #00ffff, 0 0 40px #00ffff;
    margin: 0;
}

.back-btn {
    background: linear-gradient(45deg, #4488ff, #66aaff);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: linear-gradient(45deg, #66aaff, #88ccff);
    transform: translateY(-2px);
}

.profile-content {
    display: block;
    max-width: 600px;
    margin: 0 auto;
}

#shopSection .profile-content {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
}

#shopSection .profile-info {
    width: 100% !important;
    max-width: 100% !important;
}

#buyNumbersSection .profile-content {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
}

#buyNumbersSection .profile-info {
    width: 100% !important;
    max-width: 100% !important;
}

/* Responsivo para Loja em mobile */
@media (max-width: 768px) {
    #shopSection {
        padding: 10px !important;
        overflow-x: hidden !important;
    }

    #shopSection img,
    #shopSection video,
    #shopSection iframe,
    #shopSection table {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    #shopSection .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Responsivo para Comprar Números em mobile */
@media (max-width: 768px) {
    #buyNumbersSection {
        padding: 10px !important;
        overflow-x: hidden !important;
    }

    #buyNumbersSection img,
    #buyNumbersSection video,
    #buyNumbersSection iframe,
    #buyNumbersSection table {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Estilos responsivos para a tabela de ativações */
    #numbersActivationsList {
        min-height: 300px !important;
        max-height: calc(100vh - 200px) !important;
        overflow-x: auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        position: relative !important;
    }
    
    /* Indicador de scroll horizontal */
    #numbersActivationsList::after {
        content: '← Deslize para ver mais →' !important;
        position: sticky !important;
        bottom: 10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        background: rgba(0, 255, 136, 0.9) !important;
        color: #000 !important;
        padding: 8px 16px !important;
        border-radius: 20px !important;
        font-size: 11px !important;
        font-weight: bold !important;
        pointer-events: none !important;
        z-index: 10 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
        animation: pulseScrollHint 2s ease-in-out infinite !important;
    }
    
    @keyframes pulseScrollHint {
        0%, 100% {
            opacity: 0.7;
            transform: translateX(-50%) scale(1);
        }
        50% {
            opacity: 1;
            transform: translateX(-50%) scale(1.05);
        }
    }
    
    #numbersActivationsList table {
        min-width: 800px !important; /* Largura mínima para manter legibilidade */
        font-size: 12px !important;
    }
    
    #numbersActivationsList th,
    #numbersActivationsList td {
        padding: 12px 8px !important;
        font-size: 12px !important;
    }
    
    #numbersActivationsList th {
        font-size: 11px !important;
        white-space: nowrap !important;
    }
    
    /* Ajustar botões em mobile */
    #numbersActivationsList button {
        padding: 8px 12px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }
    
    /* Ajustar título da aba */
    #numbersTabActivationsContent h3 {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }
    
    /* Mensagem de scroll no topo - mostrar apenas em mobile */
    #numbersScrollHint {
        display: block !important;
    }
    
    /* Ocultar indicador flutuante em desktop */
    #numbersActivationsList::after {
        display: none !important;
    }

    #buyNumbersSection .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }

    #buyNumbersSection .profile-header > div:first-child {
        width: 100%;
        justify-content: space-between;
    }

    #buyNumbersSection .profile-header h2 {
        font-size: 24px !important;
    }

    #buyNumbersSection .profile-header > div:last-child {
        position: static !important;
        transform: none !important;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    #numbersUserCoinsBadge {
        font-size: 14px;
        padding: 8px 12px;
    }
}

/* Tabs da loja em mobile: 2 colunas para nomes visíveis, sem scroll */
@media (max-width: 768px) {
    .shop-tabs {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 12px !important;
        flex-wrap: nowrap !important;
        overflow: visible !important;
        -webkit-overflow-scrolling: unset;
    }

    .shop-tab-btn {
        padding: 12px 10px !important;
        font-size: 13px !important;
        min-width: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        flex-shrink: 1 !important;
    }

    /* Input e botão Gerar PIX */
    .shop-deposit-input-group {
        flex-direction: column !important;
        gap: 10px !important;
    }
}

/* Mais estilos responsivos para loja em mobile */
@media (max-width: 768px) {
    #depositAmount {
        width: 100% !important;
        font-size: 16px !important; /* Evita zoom no iOS */
    }

    #shopTabDepositContent button[onclick="startPixDeposit()"] {
        width: 100% !important;
        padding: 12px !important;
    }

    /* Botões de valores predefinidos */
    .shop-amount-buttons {
        gap: 8px !important;
    }

    .shop-amount-buttons button {
        flex: 1 1 calc(33.333% - 6px);
        min-width: calc(33.333% - 6px);
        max-width: calc(33.333% - 6px);
        padding: 10px 8px !important;
        font-size: 13px !important;
    }

    /* Área PIX */
    #pixArea {
        width: 100%;
    }

    #pixQrContainer img {
        max-width: 100% !important;
        height: auto !important;
    }

    .shop-pix-code-group {
        flex-direction: column !important;
        gap: 10px !important;
    }

    #pixCode {
        width: 100% !important;
        font-size: 12px !important;
    }

    #pixArea button[onclick="copyPixCode()"] {
        width: 100% !important;
    }

    /* Lista de produtos */
    #shopProductsList {
        padding: 10px !important;
        overflow-x: hidden !important;
        max-width: 100% !important;
    }

    /* Grid de produtos responsivo */
    .shop-products-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* Cards de produtos */
    .shop-product-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* Container da imagem do produto */
    .shop-product-image-container {
        height: 200px !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* Imagens dos produtos */
    .shop-product-image {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Lista de compras */
    #shopPurchasesList {
        padding: 10px !important;
    }
}

/* Estilos do admin - Migrados para admin.css */

.profile-info, .profile-edit {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Estilo customizado para scrollbar da lista de sessões */
#sessionListContainer::-webkit-scrollbar {
    width: 8px;
}

#sessionListContainer::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

#sessionListContainer::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0088cc, #00ffff);
    border-radius: 10px;
}

#sessionListContainer::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00ffff, #0088cc);
}

.profile-info h3, .profile-edit h3 {
    color: #ffffff;
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.info-item label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.info-item span {
    color: #ffffff;
    font-weight: 500;
}

/* PyCoin - Widget de Saldo */
.pycoin-card {
    margin-top: 25px;
    padding: 20px;
    background: rgba(0, 255, 200, 0.07);
    border: 1px solid rgba(0, 255, 200, 0.25);
    border-radius: 15px;
}

.pycoin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pycoin-header h3 {
    margin: 0;
    color: #00ffd5;
    font-family: 'Orbitron', monospace;
    font-size: 18px;
}

.pycoin-badge {
    background: linear-gradient(45deg, #00e0ff, #00ffa3);
    color: #001b1a;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 16px rgba(0, 255, 200, 0.25);
}

.pycoin-balance {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 6px 0 10px 0;
    color: #ffffff;
}

.pycoin-balance #pycoinBalance {
    font-size: 28px;
    font-weight: 900;
    text-shadow: 0 0 16px rgba(0, 255, 200, 0.5);
    font-family: 'Orbitron', monospace;
}

.pycoin-balance small {
    opacity: 0.8;
}

.pycoin-desc {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    line-height: 1.35;
}

/* Notificações (Loja) */
.site-notice {
    display: none;
    margin: 0 0 15px 0;
    padding: 12px 16px;
    border-radius: 12px;
    font-family: 'Orbitron', monospace;
    font-size: 13px;
    border: 1px solid rgba(255,255,255,0.12);
}
.site-notice.success { background: rgba(0, 255, 170, 0.12); color: #b7ffe9; border-color: rgba(0,255,170,0.35); }
.site-notice.error { background: rgba(255, 68, 68, 0.12); color: #ffb3b3; border-color: rgba(255,68,68,0.35); }
.site-notice.warning { background: rgba(255, 193, 7, 0.12); color: #ffe5a3; border-color: rgba(255,193,7,0.35); }

/* Toast global (substitui alert) */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 18px;
    border-radius: 12px;
    z-index: 2000;
    font-family: 'Orbitron', monospace;
    border: 1px solid rgba(255,255,255,0.12);
    display: none;
}
.toast.success { background: rgba(30, 58, 138, 0.15); color: #1e3a8a; border-color: rgba(30, 58, 138, 0.4); font-weight: 600; }
.toast.error { background: rgba(255, 68, 68, 0.85); color: #ffffff; border-color: rgba(255,68,68,0.35); }
.toast.warning { background: rgba(255, 193, 7, 0.85); color: #ffffff; border-color: rgba(255,193,7,0.35); }

.danger-zone {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 15px;
    text-align: center;
}

.danger-zone h4 {
    color: #ff4444;
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    margin: 0 0 10px 0;
}

.danger-zone p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin: 0 0 15px 0;
}

.delete-btn {
    background: linear-gradient(45deg, #ff4444, #ff6666);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.delete-btn:hover {
    background: linear-gradient(45deg, #ff6666, #ff8888);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.4);
}

/* Modal de Confirmação */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000 !important;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal.hidden {
    display: none !important;
}

/* Garantir que todo conteúdo do modal seja visível e interativo */
.modal .modal-content {
    position: relative;
    z-index: 10001 !important;
    pointer-events: auto;
    max-width: 500px;
    width: 100%;
    margin: auto;
}

.modal .modal-content * {
    position: relative;
    z-index: inherit;
}

.modal input,
.modal button,
.modal a,
.modal label {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 10002 !important;
}

.modal input[type="password"],
.modal input[type="text"],
.modal input[type="email"] {
    cursor: text !important;
}

/* CRÍTICO: Modal de redefinição de senha - MÁXIMA PRIORIDADE (acima de emailVerificationModal) */
#resetPasswordModal {
    z-index: 200000 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
    overflow-y: auto !important;
}

#resetPasswordModal.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#resetPasswordModal .modal-content {
    pointer-events: auto !important;
    z-index: 200001 !important;
    position: relative !important;
    background: #1a1a1a !important;
    border: 2px solid #00ff88 !important;
    border-radius: 15px !important;
    padding: 30px !important;
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.3) !important;
}

#resetPasswordModal h2 {
    color: #00ff88 !important;
    z-index: 200002 !important;
    position: relative !important;
}

#resetPasswordModal input,
#resetPasswordModal button,
#resetPasswordModal label,
#resetPasswordModal p {
    pointer-events: auto !important;
    z-index: 200002 !important;
    position: relative !important;
    touch-action: manipulation !important;
}

#resetPasswordModal input {
    cursor: text !important;
}

#resetPasswordModal button {
    cursor: pointer !important;
}

/* Forçar tema dark nos inputs do modal de redefinir senha (override de autofill do browser) */
#resetPasswordModal input[type="password"],
#resetPasswordModal input[type="text"],
#resetPasswordModal input[type="email"] {
    background: #2a2a2a !important;
    background-color: #2a2a2a !important;
    color: #fff !important;
    border: 2px solid #444 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    font-size: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: border-color 0.2s ease !important;
}

#resetPasswordModal input[type="password"]:focus,
#resetPasswordModal input[type="text"]:focus {
    border-color: #00ff88 !important;
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2) !important;
}

#resetPasswordModal input[type="password"]::-webkit-input-placeholder,
#resetPasswordModal input[type="text"]::-webkit-input-placeholder {
    color: #888 !important;
}

#resetPasswordModal input:-webkit-autofill,
#resetPasswordModal input:-webkit-autofill:hover,
#resetPasswordModal input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #2a2a2a inset !important;
    -webkit-text-fill-color: #fff !important;
    background-color: #2a2a2a !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

#resetPasswordModal label {
    color: #ccc !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* CRÍTICO: Modal de verificação de email - garantir que esteja acima de tudo */
#emailVerificationModal {
    z-index: 100000 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.95) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
}

#emailVerificationModal.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Garantir que o conteúdo do modal seja interativo */
#emailVerificationModal .modal-content {
    pointer-events: auto !important;
    z-index: 100001 !important;
    position: relative !important;
}

/* Garantir que inputs e botões sejam interativos */
#emailVerificationModal input,
#emailVerificationModal button {
    pointer-events: auto !important;
    cursor: text !important;
    touch-action: manipulation !important;
}

#emailVerificationModal button {
    cursor: pointer !important;
}

/* Garantir que o modal de termos seja clicável */
#termsModal {
    pointer-events: auto !important;
    z-index: 2147483647 !important;
}

#termsModal.hidden {
    pointer-events: none !important;
}

#termsModal .modal-content,
#termsModal button {
    pointer-events: auto !important;
}

/* Modal de Termos: título e conteúdo legíveis (evitar override de admin.css que deixa h2 escuro) */
#termsModal .modal-content {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    color: #111827 !important;
}
#termsModal .modal-content h2 {
    color: #e67e22 !important;
    font-weight: 700 !important;
}

/* Quando modal de verificação estiver aberto, ocultar formulário de login */
#emailVerificationModal:not(.hidden) ~ #authForm,
body:has(#emailVerificationModal:not(.hidden)) #authForm {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

.modal-content {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 10001 !important;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: #ff4444;
    font-family: 'Orbitron', monospace;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 0 10px #ff4444;
}

.close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 30px;
}

.warning-message {
    text-align: center;
    margin-bottom: 25px;
}

.warning-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.warning-message p {
    color: rgba(255, 255, 255, 0.9);
    margin: 10px 0;
    font-size: 16px;
}

.warning-message p strong {
    color: #ff4444;
    font-size: 18px;
}

.modal-footer {
    display: flex;
    gap: 15px;
    padding: 25px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-cancel {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
}

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

.btn-delete {
    flex: 1;
    background: linear-gradient(45deg, #ff4444, #ff6666);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-delete:hover {
    background: linear-gradient(45deg, #ff6666, #ff8888);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.4);
}

.hidden {
    display: none !important;
}

/* Responsivo: Modal de Redefinição de Senha */
@media (max-width: 768px) {
    /* Modal ocupa tela inteira no mobile */
    .modal {
        padding: 10px !important;
        align-items: flex-start !important;
        overflow-y: auto !important;
    }

    .modal .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        margin: 20px auto !important;
        max-height: none !important;
    }

    /* Reset Password Modal específico */
    #resetPasswordModal {
        z-index: 10000 !important;
    }

    #resetPasswordModal .modal-content {
        width: 95% !important;
        padding: 20px !important;
        border-radius: 15px !important;
    }

    #resetPasswordModal h2 {
        font-size: 20px !important;
        margin-bottom: 20px !important;
    }

    #resetPasswordModal .form-group {
        margin-bottom: 15px !important;
    }

    #resetPasswordModal label {
        font-size: 14px !important;
        margin-bottom: 8px !important;
        display: block !important;
    }

    #resetPasswordModal input {
        width: 100% !important;
        padding: 14px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }

    #resetPasswordModal button {
        width: 100% !important;
        padding: 14px !important;
        font-size: 16px !important;
        margin-bottom: 10px !important;
        border-radius: 8px !important;
        touch-action: manipulation !important;
    }

    #resetPasswordModal #resetPasswordMessage {
        font-size: 14px !important;
        margin-top: 15px !important;
        line-height: 1.5 !important;
    }

    /* Garantir que os botões sejam facilmente tocáveis */
    #resetPasswordModal #submitResetPasswordBtn,
    #resetPasswordModal #cancelResetPasswordBtn {
        min-height: 48px !important;
        cursor: pointer !important;
    }
}

/* Tela de Manutenção */
.maintenance-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

.maintenance-content {
    text-align: center;
    color: #ffffff;
}

.maintenance-icon {
    font-size: 120px;
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
}

.maintenance-content h1 {
    font-family: 'Orbitron', monospace;
    font-size: 48px;
    color: #00ffff;
    margin-bottom: 20px;
    text-shadow: 0 0 30px #00ffff;
    animation: glow 2s ease-in-out infinite alternate;
}

.maintenance-content p {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Exo 2', sans-serif;
}

/* Seção de Reações Automáticas */
/* Seção de Mensagens Programadas */
.scheduled-messages-section {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 30px;
    margin: 20px auto;
    max-width: 900px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.scheduled-messages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #FF8C00;
    background: linear-gradient(90deg, #FF8C00, transparent);
    padding: 15px 20px;
    margin: -30px -30px 30px -30px;
    border-radius: 20px 20px 0 0;
}

.scheduled-messages-header h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.scheduled-messages-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Tabs */
.messages-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.tab-btn.active {
    background: rgba(255, 140, 0, 0.2);
    border-bottom-color: #FF8C00;
    color: #ffffff;
}

.tab-content {
    display: block;
}

.tab-content.hidden {
    display: none;
}

/* Form Groups */
.form-group-scheduled {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.form-group-scheduled label {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    display: flex;
    align-items: center;
    gap: 10px;
}

.label-icon {
    font-size: 20px;
}

.form-group-scheduled input,
.form-group-scheduled textarea,
.form-group-scheduled select {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
    width: 100%;
}

.form-group-scheduled input:focus,
.form-group-scheduled textarea:focus,
.form-group-scheduled select:focus {
    outline: none;
    border-color: #FF8C00;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.3);
}

.form-group-scheduled input::placeholder,
.form-group-scheduled textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group-scheduled textarea {
    resize: vertical;
    min-height: 100px;
}

/* Interval Input Group */
.interval-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.interval-input-group input {
    flex: 0 0 100px;
}

.interval-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    white-space: nowrap;
}

.interval-input-group select {
    flex: 0 0 150px;
}

/* Image Input Group */
.image-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.image-input-group input {
    flex: 1;
}

.btn-browse {
    background: linear-gradient(45deg, #0088ff, #00aaff);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-browse:hover {
    background: linear-gradient(45deg, #00aaff, #0088ff);
    box-shadow: 0 0 15px rgba(0, 136, 255, 0.4);
    transform: translateY(-2px);
}

/* Action Buttons */
.scheduled-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-schedule {
    background: linear-gradient(45deg, #FF8C00, #FFA500);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-schedule:hover {
    background: linear-gradient(45deg, #FFA500, #FF8C00);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
    transform: translateY(-2px);
}

.btn-cancel-scheduled {
    background: linear-gradient(45deg, #ff4444, #ff6666);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-cancel-scheduled:hover {
    background: linear-gradient(45deg, #ff6666, #ff4444);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
    transform: translateY(-2px);
}

/* Messages List */
.messages-list {
    padding: 20px;
    min-height: 200px;
    overflow-x: auto;
}

.manage-messages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.manage-messages-header h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-update {
    background: linear-gradient(45deg, #0088ff, #00aaff);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-update:hover {
    background: linear-gradient(45deg, #00aaff, #0088ff);
    box-shadow: 0 0 15px rgba(0, 136, 255, 0.4);
    transform: translateY(-2px);
}

/* Messages Table */
.messages-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.messages-table thead {
    background: rgba(255, 140, 0, 0.3);
}

.messages-table thead th {
    padding: 15px;
    text-align: left;
    color: #ffffff;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    border-bottom: 2px solid rgba(255, 140, 0, 0.5);
}

.messages-table tbody {
    background: rgba(255, 255, 255, 0.03);
}

.messages-table tbody td {
    padding: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.messages-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
}

.empty-row {
    text-align: center;
}

.empty-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    padding: 40px;
    margin: 0;
}

/* Message Preview */
.message-preview {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.message-preview:hover {
    color: #00ffff;
    text-decoration: underline;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
}

.status-badge.active {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid rgba(0, 255, 0, 0.5);
}

.status-badge.paused {
    background: rgba(255, 255, 0, 0.2);
    color: #ffff00;
    border: 1px solid rgba(255, 255, 0, 0.5);
}

.status-badge.stopped {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.5);
}

/* Action Buttons */
.action-buttons-table {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Responsivo para Mensagens Programadas em mobile */
@media (max-width: 768px) {
    .scheduled-messages-section {
        padding: 15px !important;
        margin: 10px !important;
        border-radius: 15px !important;
    }

    .scheduled-messages-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
        padding: 15px !important;
        margin: -15px -15px 20px -15px !important;
    }

    .scheduled-messages-header h2 {
        font-size: 20px !important;
        width: 100%;
    }

    .scheduled-messages-header .back-btn {
        width: 100% !important;
        padding: 12px !important;
        font-size: 14px !important;
    }

    .messages-tabs {
        flex-direction: column !important;
        gap: 5px !important;
    }

    .tab-btn {
        width: 100% !important;
        padding: 12px !important;
        font-size: 14px !important;
        justify-content: center !important;
    }

    .manage-messages-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
        padding-bottom: 15px !important;
    }

    .manage-messages-header h3 {
        font-size: 18px !important;
        width: 100%;
    }

    .btn-update {
        width: 100% !important;
        padding: 12px !important;
        justify-content: center !important;
    }

    .messages-list {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin: 0 -15px !important;
        padding: 0 15px !important;
        max-width: 100% !important;
    }

    /* Transformar tabela em cards em mobile */
    .messages-table {
        display: block !important;
        width: 100% !important;
        min-width: auto !important;
    }

    .messages-table thead {
        display: none !important;
    }

    .messages-table tbody {
        display: block !important;
        width: 100% !important;
    }

    .messages-table tbody tr {
        display: block !important;
        width: 100% !important;
        margin-bottom: 15px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border-radius: 10px !important;
        padding: 15px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    }

    .messages-table tbody td {
        display: block !important;
        width: 100% !important;
        padding: 8px 0 !important;
        text-align: left !important;
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        font-size: 13px !important;
    }

    .messages-table tbody td:last-child {
        border-bottom: none !important;
    }

    .messages-table tbody td:before {
        content: attr(data-label) !important;
        font-weight: 600 !important;
        color: #FF8C00 !important;
        display: block !important;
        margin-bottom: 5px !important;
        font-size: 11px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        opacity: 0.9 !important;
    }

    .messages-table tbody td[data-label="Ações"]:before {
        margin-bottom: 10px !important;
    }

    .messages-table tbody td.empty-row {
        display: table-cell !important;
        padding: 40px 20px !important;
    }

    .message-preview {
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .action-buttons-table {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: stretch !important;
        width: 100% !important;
        margin-top: 10px !important;
    }

    .btn-action {
        width: 100% !important;
        padding: 10px !important;
        font-size: 13px !important;
        text-align: center !important;
    }

    .manage-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .manage-actions button {
        width: 100% !important;
        padding: 12px !important;
    }

    .empty-message {
        padding: 20px !important;
        font-size: 14px !important;
    }

    /* Formulário responsivo */
    .form-group-scheduled {
        gap: 8px !important;
        margin-bottom: 15px !important;
    }

    .form-group-scheduled label {
        font-size: 14px !important;
    }

    .form-group-scheduled input,
    .form-group-scheduled textarea,
    .form-group-scheduled select {
        font-size: 16px !important; /* Evita zoom no iOS */
        padding: 12px !important;
    }

    /* Prevenir overflow horizontal */
    .scheduled-messages-section img,
    .scheduled-messages-section video,
    .scheduled-messages-section iframe {
        max-width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .scheduled-messages-content,
    .form-group-scheduled,
    .messages-list,
    .manage-messages-header,
    .action-buttons-table {
        box-sizing: border-box !important;
    }
}

.btn-action {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-pause {
    background: linear-gradient(45deg, #ffaa00, #ffcc00);
    color: white;
}

.btn-pause:hover {
    background: linear-gradient(45deg, #ffcc00, #ffaa00);
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
    transform: translateY(-1px);
}

.btn-resume {
    background: linear-gradient(45deg, #00ff00, #00cc00);
    color: white;
}

.btn-resume:hover {
    background: linear-gradient(45deg, #00cc00, #00ff00);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    transform: translateY(-1px);
}

.btn-delete {
    background: linear-gradient(45deg, #ff4444, #ff6666);
    color: white;
}

.btn-delete:hover {
    background: linear-gradient(45deg, #ff6666, #ff4444);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
    transform: translateY(-1px);
}

/* Notificação de Mensagens Programadas */
.scheduled-notification {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: slideDown 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Orbitron', monospace;
}

.scheduled-notification.success {
    background: rgba(0, 255, 0, 0.15);
    border-color: rgba(0, 255, 0, 0.5);
    color: #00ff00;
}

.scheduled-notification.error {
    background: rgba(255, 68, 68, 0.15);
    border-color: rgba(255, 68, 68, 0.5);
    color: #ff4444;
}

.scheduled-notification.info {
    background: rgba(0, 136, 255, 0.15);
    border-color: rgba(0, 136, 255, 0.5);
    color: #0088ff;
}

.scheduled-notification.warning {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.5);
    color: #ffc107;
}

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

.manage-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reactions-section {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 30px;
    margin: 20px auto;
    max-width: 800px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.reactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reactions-header h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.reactions-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group-reactions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group-reactions label {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group-reactions input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
}

.form-group-reactions input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.form-group-reactions input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.reactions-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 12px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .reactions-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .reactions-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }
}

/* Responsivo para Reações Automáticas em mobile */
@media (max-width: 768px) {
    .reactions-section {
        padding: 15px !important;
        margin: 10px !important;
        border-radius: 15px !important;
    }

    .reactions-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
        margin-bottom: 20px !important;
        padding-bottom: 15px !important;
    }

    .reactions-header h2 {
        font-size: 20px !important;
        width: 100%;
    }

    .reactions-header .back-btn {
        width: 100% !important;
        padding: 12px !important;
        font-size: 14px !important;
    }

    .reactions-content {
        gap: 20px !important;
    }

    .form-group-reactions {
        gap: 8px !important;
    }

    .form-group-reactions label {
        font-size: 14px !important;
    }

    .form-group-reactions input {
        padding: 12px !important;
        font-size: 16px !important; /* Evita zoom no iOS */
    }

    .reactions-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 10px !important;
        margin: 15px 0 !important;
    }

    .reaction-btn {
        width: 45px !important;
        height: 45px !important;
        font-size: 20px !important;
    }

    .selected-reaction {
        padding: 12px !important;
        gap: 10px !important;
    }

    .selected-reaction span {
        font-size: 16px !important;
    }

    .limits-info {
        padding: 15px !important;
    }

    .limits-info h4 {
        font-size: 16px !important;
    }

    .limits-info ul {
        font-size: 13px !important;
        padding-left: 20px !important;
    }

    .limits-info li {
        margin-bottom: 8px !important;
    }

    .action-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .action-buttons button {
        width: 100% !important;
        padding: 12px !important;
        font-size: 14px !important;
    }

    .reaction-result {
        padding: 15px !important;
    }

    .result-header h3 {
        font-size: 18px !important;
    }

    .result-stats {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .stat-item {
        width: 100% !important;
    }

    /* Prevenir overflow horizontal */
    .reactions-section img,
    .reactions-section video,
    .reactions-section iframe {
        max-width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .reactions-content,
    .form-group-reactions,
    .reactions-grid,
    .action-buttons,
    .reaction-result {
        box-sizing: border-box !important;
    }

    /* Garantir que textos longos quebrem */
    .form-group-reactions input,
    .limits-info,
    .selected-reaction {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
}

.reaction-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.3s ease;
}

.reaction-btn:hover {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.2);
    transform: scale(1.1);
}

.reaction-btn.selected {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

.selected-reaction {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 255, 0, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.selected-reaction span {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
}

.limits-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.limits-info h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.limits-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.limits-info li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.btn-send {
    flex: 1;
    background: linear-gradient(45deg, #00ff00, #00cc00);
    color: #000000;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-send:hover {
    background: linear-gradient(45deg, #00cc00, #009900);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.4);
}

.btn-cancel-reactions {
    flex: 1;
    background: linear-gradient(45deg, #ff4444, #cc0000);
    color: #ffffff;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-cancel-reactions:hover {
    background: linear-gradient(45deg, #cc0000, #990000);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.4);
}

/* Área de Resultados */
.reaction-result {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-top: 25px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    animation: slideIn 0.3s ease-out;
}

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

.result-header {
    margin-bottom: 20px;
}

.result-header h3 {
    color: #00ffff;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    margin: 0;
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-message {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 15px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 10px;
    border-left: 4px solid #00ffff;
}

.result-message.success {
    background: rgba(0, 255, 0, 0.1);
    border-left-color: #00ff00;
    color: #00ff00;
}

.result-message.error {
    background: rgba(255, 68, 68, 0.1);
    border-left-color: #ff4444;
    color: #ff4444;
}

.result-message.reaction-not-allowed {
    background: rgba(255, 165, 0, 0.1);
    border-left-color: #ffaa00;
    color: #ffaa00;
    border-left-width: 4px;
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0%, 100% {
        border-left-color: #ffaa00;
        box-shadow: 0 0 0 0 rgba(255, 170, 0, 0.4);
    }
    50% {
        border-left-color: #ff8800;
        box-shadow: 0 0 0 4px rgba(255, 170, 0, 0);
    }
}

.result-stats {
    display: flex;
    gap: 20px;
    justify-content: space-around;
}

.stat-item {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.stat-item.success {
    border-color: rgba(0, 255, 0, 0.5);
    background: rgba(0, 255, 0, 0.1);
}

.stat-item.error {
    border-color: rgba(255, 68, 68, 0.5);
    background: rgba(255, 68, 68, 0.1);
}

.stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
}

.stat-value {
    display: block;
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
}

.stat-item.success .stat-value {
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.stat-item.error .stat-value {
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.result-status {
    padding: 10px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-style: italic;
}

.result-status.processing {
    color: #00ffff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #00ffff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Seção de Comentários Automáticos */
.comments-section {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 30px;
    margin: 20px auto;
    max-width: 800px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #20B2AA;
    background: linear-gradient(90deg, #20B2AA, transparent);
    padding: 15px 20px;
    margin: -30px -30px 30px -30px;
    border-radius: 20px 20px 0 0;
}

.comments-header h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group-comments {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group-comments label {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group-comments input,
.form-group-comments textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
}

.form-group-comments textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group-comments input:focus,
.form-group-comments textarea:focus {
    outline: none;
    border-color: #20B2AA;
    box-shadow: 0 0 15px rgba(32, 178, 170, 0.3);
}

.form-group-comments input::placeholder,
.form-group-comments textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.comments-limits-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

.comments-action-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.btn-send-comments {
    flex: 1;
    background: linear-gradient(45deg, #20B2AA, #20B2AA);
    color: #ffffff;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-send-comments:hover {
    background: linear-gradient(45deg, #20B2AA, #48D1CC);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 178, 170, 0.4);
}

.btn-cancel-comments {
    flex: 1;
    background: linear-gradient(45deg, #888888, #666666);
    color: #ffffff;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-cancel-comments:hover {
    background: linear-gradient(45deg, #666666, #555555);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(136, 136, 136, 0.4);
}

/* Lista de Comentários */
.comments-list {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.comments-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.comments-list-header h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    margin: 0;
}

.comment-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.comment-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: #20B2AA;
}

.comment-item.completed {
    border-left-color: #00ff00;
}

.comment-item.queued {
    border-left-color: #ffaa00;
}

.comment-item.failed {
    border-left-color: #ff4444;
}

.comment-item.processing {
    border-left-color: #00ffff;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
}

.comment-status.completed {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
}

.comment-status.queued {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
}

.comment-status.processing {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
}

.comment-status.failed {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

.comment-group-link {
    color: #00ffff;
    font-size: 14px;
    text-decoration: none;
    word-break: break-all;
}

.comment-text {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsivo para Comentários Automáticos em mobile */
@media (max-width: 768px) {
    .comments-section {
        padding: 15px !important;
        margin: 10px !important;
        border-radius: 15px !important;
        overflow-x: hidden !important;
        max-width: calc(100vw - 20px) !important;
        width: calc(100vw - 20px) !important;
        box-sizing: border-box !important;
    }

    .comments-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
        padding: 15px !important;
        margin: -15px -15px 20px -15px !important;
        width: calc(100% + 30px) !important;
        max-width: calc(100% + 30px) !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .comments-header h2 {
        font-size: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .comments-header .back-btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px !important;
        font-size: 14px !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .comments-content {
        gap: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .form-group-comments {
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .form-group-comments label {
        font-size: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .form-group-comments input,
    .form-group-comments textarea {
        padding: 12px !important;
        font-size: 16px !important; /* Evita zoom no iOS */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    .form-group-comments textarea {
        min-height: 100px !important;
    }

    .comments-limits-info {
        padding: 12px 15px !important;
        font-size: 13px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .comments-action-buttons {
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 20px !important;
    }

    .btn-send-comments,
    .btn-cancel-comments {
        width: 100% !important;
        padding: 12px !important;
        font-size: 14px !important;
    }

    .comments-list {
        padding: 15px !important;
        margin-top: 15px !important;
    }

    .comments-list-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
        margin-bottom: 15px !important;
    }

    .comments-list-header h3 {
        font-size: 16px !important;
        width: 100%;
    }

    .comments-list-header .btn-update {
        width: 100% !important;
        padding: 10px !important;
        justify-content: center !important;
    }

    .comment-item {
        padding: 12px !important;
        margin-bottom: 8px !important;
    }

    .comment-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .comment-group-link {
        font-size: 12px !important;
        word-break: break-all !important;
        overflow-wrap: break-word !important;
    }

    .comment-text {
        font-size: 13px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Prevenir overflow horizontal */
    .comments-section img,
    .comments-section video,
    .comments-section iframe {
        max-width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .comments-content,
    .form-group-comments,
    .comments-inputs-container,
    .comments-action-buttons,
    .comments-list {
        box-sizing: border-box !important;
    }

    /* Garantir que inputs dinâmicos também sejam responsivos */
    .comments-inputs-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .comments-inputs-container .form-group-comments {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 0 15px 0 !important;
    }

    .comments-inputs-container .form-group-comments label {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .comments-inputs-container input,
    .comments-inputs-container textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
}

.comment-text {
    font-size: 14px;
    margin: 8px 0;
}

.comment-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

.comment-queue-info {
    background: rgba(255, 170, 0, 0.1);
    border-radius: 6px;
    padding: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: #ffaa00;
}

/* Seção Painel Revenda */
.revenda-section {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 30px;
    margin: 20px auto;
    max-width: 1200px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.revenda-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #4a9eff;
    background: linear-gradient(90deg, #4a9eff, transparent);
    padding: 15px 20px;
    margin: -30px -30px 30px -30px;
    border-radius: 20px 20px 0 0;
}

.revenda-header h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Responsivo para Painel Revenda em mobile */
@media (max-width: 768px) {
    .revenda-section {
        padding: 15px !important;
        margin: 10px !important;
        border-radius: 15px !important;
    }

    .revenda-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
        padding: 15px !important;
        margin: -15px -15px 20px -15px !important;
    }

    .revenda-header h2 {
        font-size: 20px !important;
        width: 100%;
    }

    .revenda-header-buttons {
        width: 100% !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .revenda-header-buttons button {
        width: 100% !important;
        padding: 12px !important;
        font-size: 14px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .revenda-balance-card {
        padding: 15px !important;
        margin-bottom: 20px !important;
    }

    .revenda-balance-card h3 {
        font-size: 16px !important;
    }

    #revendaSearchInput {
        font-size: 16px !important; /* Evita zoom no iOS */
        padding: 12px 40px 12px 12px !important;
    }

    .revenda-history-header {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: stretch !important;
    }

    .revenda-history-header h3 {
        font-size: 18px !important;
    }

    .revenda-history-header button {
        width: 100% !important;
    }
}

.revenda-balance-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.revenda-balance-card h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 15px;
}

.revenda-services {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.revenda-services h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 20px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #4a9eff;
    transform: translateY(-2px);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.service-name {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.service-price {
    color: #00ff88;
    font-size: 16px;
    font-weight: 600;
}

.service-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.service-info-item {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.service-info-item strong {
    color: #ffffff;
}

/* Seção de Chat */
.chat-section {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 25%, #24243e 50%, #1a1a2e 75%, #16213e 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    border-radius: 20px;
    padding: 20px;
    margin: 10px;
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 
                0 0 60px rgba(102, 126, 234, 0.2),
                inset 0 0 100px rgba(0, 242, 254, 0.05);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.chat-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 242, 254, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.chat-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(102, 126, 234, 0.03) 25%, rgba(102, 126, 234, 0.03) 26%, transparent 27%, transparent 74%, rgba(0, 242, 254, 0.03) 75%, rgba(0, 242, 254, 0.03) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(102, 126, 234, 0.03) 25%, rgba(102, 126, 234, 0.03) 26%, transparent 27%, transparent 74%, rgba(0, 242, 254, 0.03) 75%, rgba(0, 242, 254, 0.03) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 2;
}

.chat-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 20px;
    height: calc(100% - 80px);
    width: 100%;
    position: relative;
    z-index: 1;
}

.user-search-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-result-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-result-item:last-child {
    border-bottom: none;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-info {
    flex: 1;
}

.user-name {
    color: white;
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}

.user-status {
    color: #00ff88;
    font-size: 12px;
    margin: 0;
}



.chat-main {
    display: flex;
    flex-direction: column;
    background: rgba(26, 26, 46, 0.4);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    overflow: hidden;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    height: calc(100% - 120px);
    background: 
        radial-gradient(circle at 30% 20%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(0, 242, 254, 0.06) 0%, transparent 50%);
    position: relative;
}

.chat-messages::-webkit-scrollbar,
#chatMessages::-webkit-scrollbar,
#conversationsList::-webkit-scrollbar,
#userSearchResults::-webkit-scrollbar,
#emojiPicker::-webkit-scrollbar,
#pollsList::-webkit-scrollbar {
    width: 8px;
}

/* Sem setinhas: só a barra (visual limpo) */
.chat-messages::-webkit-scrollbar-button,
#chatMessages::-webkit-scrollbar-button,
#conversationsList::-webkit-scrollbar-button,
#userSearchResults::-webkit-scrollbar-button,
#emojiPicker::-webkit-scrollbar-button,
#pollsList::-webkit-scrollbar-button {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
}

#chatMessages.chat-messages::-webkit-scrollbar-button:vertical:decrement,
#chatMessages.chat-messages::-webkit-scrollbar-button:vertical:increment {
    display: none !important;
    height: 0 !important;
}

.chat-messages::-webkit-scrollbar-track,
#chatMessages::-webkit-scrollbar-track,
#conversationsList::-webkit-scrollbar-track,
#userSearchResults::-webkit-scrollbar-track,
#emojiPicker::-webkit-scrollbar-track,
#pollsList::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb,
#chatMessages::-webkit-scrollbar-thumb,
#conversationsList::-webkit-scrollbar-thumb,
#userSearchResults::-webkit-scrollbar-thumb,
#emojiPicker::-webkit-scrollbar-thumb,
#pollsList::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--theme-primary, #667eea) 0%, var(--theme-secondary, #764ba2) 100%);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover,
#chatMessages::-webkit-scrollbar-thumb:hover,
#conversationsList::-webkit-scrollbar-thumb:hover,
#userSearchResults::-webkit-scrollbar-thumb:hover,
#emojiPicker::-webkit-scrollbar-thumb:hover,
#pollsList::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--theme-secondary, #764ba2) 0%, var(--theme-primary, #667eea) 100%);
}

/* Firefox: scrollbar-width/scrollbar-color APENAS no Firefox.
   Chrome 121+: essas props desativam ::-webkit-scrollbar e mostram setas nativas do Windows. */
@supports not selector(::-webkit-scrollbar) {
    .chat-messages,
    #chatMessages,
    #conversationsList,
    #userSearchResults,
    #emojiPicker,
    #pollsList {
        scrollbar-width: thin;
        scrollbar-color: var(--theme-primary, #667eea) rgba(0, 0, 0, 0.2);
    }
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    animation: slideIn 0.3s ease;
}

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

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.message-content {
    flex: 1;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border-radius: 15px;
    padding: 12px 15px;
    position: relative;
    border: 1px solid rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2),
                0 0 20px rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.message-content:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}
.vip-badge { color: #ffd700; background: rgba(255,215,0,0.12); padding: 2px 6px; border-radius: 6px; font-size: 12px; }

.message-author {
    color: #00ffff;
    font-weight: 600;
    font-size: 14px;
}

.message-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.message-text {
    color: white;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.loading-messages {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 20px;
}

.chat-input-container {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input-box input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input-box input:focus {
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.chat-input-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-input-box button {
    background: linear-gradient(45deg, #00ffff, #0088cc);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.chat-input-box button:hover:not(:disabled) {
    background: linear-gradient(45deg, #0088cc, #00ffff);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.chat-input-box button:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Estilos para o seletor de emojis */
#emojiPicker {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 255, 0.3) transparent;
}

#emojiPicker::-webkit-scrollbar {
    width: 6px;
}

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

#emojiPicker::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.3);
    border-radius: 3px;
}

#emojiPicker::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.5);
}

/* Estilos para Grupos */
.chat-sidebar {
    background: rgba(26, 26, 46, 0.5);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.3);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.create-group-section {
    margin-bottom: 10px;
}

.create-group-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.create-group-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.groups-section h4 {
    color: #00d4ff;
    margin-bottom: 15px;
    font-size: 16px;
}

.groups-list {
    flex: 1;
    overflow: hidden;
    min-height: 200px;
}

.group-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.group-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.group-item.active {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
}

.group-icon {
    font-size: 20px;
    margin-right: 12px;
    width: 30px;
    text-align: center;
}

.group-info {
    flex: 1;
}

.group-name {
    color: white;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.group-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.chat-current-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-radius: 15px 15px 0 0;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.current-chat-info {
    display: flex;
    align-items: center;
}

.current-chat-icon {
    font-size: 24px;
    margin-right: 12px;
}

.current-chat-name {
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.current-chat-status {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

/* Modal para criar grupo */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000 !important;
}

.modal.hidden {
    display: none !important;
}

.modal-content {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 10001 !important;
    position: relative;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: white;
    margin: 0;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 25px;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body label {
    display: block;
    color: white;
    margin-bottom: 8px;
    font-weight: 600;
}

.modal-body input,
.modal-body textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.modal-body input:focus,
.modal-body textarea:focus {
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.modal-body input::placeholder,
.modal-body textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.modal-body textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Responsividade do Chat */
@media (max-width: 768px) {
    .chat-section {
        padding: 10px !important;
        margin: 5px !important;
        width: calc(100vw - 10px) !important;
        height: calc(100vh - 10px) !important;
        border-radius: 15px !important;
    }

    .chat-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
        margin-bottom: 15px !important;
        padding-bottom: 15px !important;
    }

    .chat-header h2 {
        font-size: 20px !important;
        width: 100%;
    }

    .chat-header .back-btn {
        width: 100% !important;
        padding: 12px !important;
        font-size: 14px !important;
    }

    /* ========== CHAT MOBILE OTIMIZADO ========== */
    .chat-section {
        padding: 0 !important;
        overflow: hidden !important;
        border-radius: 0 !important; /* Remover bordas arredondadas no mobile para não cortar conteúdo */
        height: 100vh !important; /* Garantir altura total */
        max-height: 100vh !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        margin: 0 !important;
    }
    
    .chat-section .chat-header {
        padding: 10px 15px !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        height: 60px !important;
        box-sizing: border-box !important;
        align-items: center !important;
    }
    
    .chat-section .chat-header h2 {
        font-size: 18px !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }
    
    .chat-section .chat-header .grupos-btn,
    .chat-section .chat-header .back-btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }
    
    .chat-container {
        display: flex !important;
        flex-direction: column !important;
        height: calc(100% - 60px) !important; /* Subtrair altura do header */
        gap: 0 !important;
        overflow: hidden !important;
    }
    
    /* Sidebar oculta por padrão no mobile, mas pode ser mostrada */
    .chat-sidebar {
        display: none !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 50 !important;
        background: #1a1a2e !important;
    }
    
    .chat-sidebar.show-sidebar {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Ajuste para o botão de grupos funcionar e mostrar ícone no mobile */
    .chat-header .grupos-btn {
        display: flex !important; /* Garantir que o botão apareça */
        align-items: center !important;
        justify-content: center !important;
        padding: 10px !important;
        min-width: 40px !important;
    }
    
    .chat-header .grupos-btn .desktop-text {
        display: none !important;
    }
    
    .chat-header .grupos-btn .mobile-icon {
        display: block !important;
        font-size: 24px !important;
        line-height: 1 !important;
    }
    
    /* Ajustar botão voltar para ser mais compacto */
    .chat-header .back-btn {
        padding: 8px 12px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    
    /* Ajustar título para não quebrar */
    .chat-header h2 {
        flex: 1 !important;
        text-align: center !important;
        font-size: 18px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* Área principal do chat ocupa tudo */
    .chat-main {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
        position: relative !important;
        width: 100% !important;
    }

    .chat-current-header {
        padding: 12px 15px !important;
        flex-shrink: 0 !important;
        background: rgba(26, 26, 46, 0.95) !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }

    .current-chat-info {
        gap: 10px !important;
    }

    .current-chat-icon {
        font-size: 28px !important;
    }

    .current-chat-name {
        font-size: 16px !important;
        font-weight: 600 !important;
    }

    .current-chat-status {
        font-size: 12px !important;
        opacity: 0.7 !important;
    }

    .chat-messages {
        flex: 1 !important;
        padding: 15px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        min-height: 0 !important;
        -webkit-overflow-scrolling: touch !important;
        height: auto !important;
        margin-bottom: 0 !important;
    }

    .message {
        gap: 10px !important;
        margin-bottom: 15px !important;
        max-width: 100% !important;
        display: flex !important;
        align-items: flex-start !important;
    }

    .message-avatar {
        width: 35px !important;
        height: 35px !important;
        flex-shrink: 0 !important;
        border-radius: 50% !important;
        margin-top: 2px !important;
    }

    .message-content {
        padding: 12px 14px !important;
        border-radius: 12px !important;
        max-width: calc(100% - 50px) !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        position: relative !important;
    }

    .message-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 6px !important;
        width: 100% !important;
    }

    .message-author {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #667eea !important;
    }

    .message-time {
        font-size: 11px !important;
        color: rgba(255,255,255,0.5) !important;
        margin-left: auto !important;
    }

    .message-text {
        font-size: 14px !important;
        line-height: 1.5 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        color: rgba(255,255,255,0.9) !important;
        display: block !important;
    }

    /* Container de input fixo na parte inferior */
    .chat-input-container {
        padding: 10px 15px 15px 15px !important; /* Padding extra embaixo para segurança */
        flex-shrink: 0 !important;
        background: #161625 !important; /* Fundo sólido escuro */
        border-top: 1px solid rgba(255,255,255,0.1) !important;
        position: relative !important;
        width: 100% !important;
        z-index: 40 !important;
        box-sizing: border-box !important;
    }

    .chat-input-box {
        display: flex !important;
        gap: 10px !important;
        align-items: center !important;
        width: 100% !important;
        background: transparent !important;
    }

    .chat-input-box input {
        flex: 1 !important;
        padding: 12px 16px !important;
        font-size: 16px !important; /* Tamanho legível */
        border-radius: 24px !important;
        background: rgba(255,255,255,0.08) !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
        color: white !important;
        height: 48px !important; /* Altura maior para toque fácil */
        min-width: 0 !important;
    }

    .chat-input-box input:focus {
        border-color: #667eea !important;
        background: rgba(255,255,255,0.12) !important;
    }

    .chat-input-box button {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        flex-shrink: 0 !important;
        font-size: 20px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        color: #a0a0b0 !important;
    }
    
    /* Botão de enviar destacado */
    .chat-input-box button#sendBtn {
        background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%) !important;
        color: white !important;
        box-shadow: 0 4px 12px rgba(0, 176, 155, 0.3) !important;
    }
    
    /* Botões de anexo e emoji */
    .chat-input-box button.attach-btn,
    .chat-input-box button.emoji-btn {
        width: 40px !important;
        min-width: 40px !important;
    }
    
    /* Botão de enviar destacado */
    .chat-input-box button#sendBtn {
        background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%) !important;
        box-shadow: 0 4px 15px rgba(0, 176, 155, 0.4) !important;
    }

    /* Ocultar elementos que atrapalham no mobile */
    .user-search-container {
        display: none !important;
    }
    
    /* Ajuste para o botão do WhatsApp não sobrepor */
    #whatsappButton {
        bottom: 80px !important;
    }

    /* Prevenir overflow horizontal */
    .chat-section img,
    .chat-section video,
    .chat-section iframe,
    .chat-section audio {
        max-width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    
    /* Vídeos e áudios em mensagens */
    .message-content video {
        max-width: 100% !important;
        max-height: 250px !important;
        border-radius: 8px !important;
    }
    
    .message-content audio {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Imagens em mensagens */
    .message-content img {
        max-width: 100% !important;
        max-height: 250px !important;
        border-radius: 8px !important;
        object-fit: contain !important;
    }
    
    /* Cards de arquivo */
    .message-content > div[style*="padding: 10px"] {
        padding: 12px !important;
        font-size: 13px !important;
    }

    .chat-container,
    .chat-main,
    .chat-sidebar,
    .chat-messages,
    .message-content,
    .chat-input-box {
        box-sizing: border-box !important;
    }

    /* Garantir que textos longos quebrem */
    .message-text,
    .message-author,
    .group-name,
    .group-description {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Botões de ação nas mensagens (admin) - Migrado para admin.css */
    
    /* Modal de edição de grupo responsivo */
    #editGroupModal > div {
        width: 95% !important;
        max-width: 95% !important;
        padding: 20px !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    
    /* Tipo de grupo no modal */
    #editGroupModal input[type="radio"] {
        width: 20px !important;
        height: 20px !important;
        margin-right: 8px !important;
    }
    
    #editGroupModal label[for="groupTypePublic"],
    #editGroupModal label[for="groupTypePrivate"] {
        font-size: 14px !important;
    }
    
    #editGroupModal label[for="groupTypePublic"] > div:first-child,
    #editGroupModal label[for="groupTypePrivate"] > div:first-child {
        font-size: 15px !important;
    }
    
    #editGroupModal label[for="groupTypePublic"] > div:last-child,
    #editGroupModal label[for="groupTypePrivate"] > div:last-child {
        font-size: 11px !important;
    }
    
    /* Resultados de busca responsivos */
    #userSearchResults {
        max-width: calc(100vw - 40px) !important;
        font-size: 14px !important;
    }
    
    #userSearchResults > div {
        padding: 12px !important;
        font-size: 14px !important;
    }
}

/* Seção de Links Grupos */
.group-links-section {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 30px;
    margin: 20px auto;
    max-width: 1000px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.group-links-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #8844ff;
    background: linear-gradient(90deg, #8844ff, transparent);
    padding: 15px 20px;
    margin: -30px -30px 30px -30px;
    border-radius: 20px 20px 0 0;
}

.group-links-header h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}






.links-list {
    max-height: 600px;
    overflow-y: auto;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.link-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
    gap: 15px;
}

.link-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.link-item:last-child {
    border-bottom: none;
}

.link-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.link-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.link-group-name {
    color: #cccccc;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    overflow-wrap: break-word;
}

.link-url {
    color: #4a9eff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 15px;
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
    flex-shrink: 0;
}

/* Responsivo para mobile */
@media (max-width: 768px) {
    .group-links-section {
        padding: 15px;
        margin: 10px;
        border-radius: 15px;
    }

    .group-links-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
        margin: -15px -15px 20px -15px;
    }

    .group-links-header h2 {
        font-size: 20px;
    }

    .links-list {
        max-height: none;
    }

    .link-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        gap: 10px;
    }

    .link-info {
        width: 100%;
    }

    .link-name {
        font-size: 14px;
    }

    .link-group-name {
        font-size: 12px;
    }

    .link-url {
        width: 100%;
        max-width: 100%;
        text-align: center;
        white-space: normal;
        word-break: break-all;
        overflow-wrap: break-word;
        padding: 10px;
        font-size: 12px;
    }

    #linksPagination {
        padding: 10px;
    }

    #linksPagination > div {
        flex-direction: column;
        gap: 10px;
    }

    #linksPrevBtn, #linksNextBtn {
        width: 100%;
        padding: 12px;
    }

    #linksPageInfo {
        padding: 10px;
    }
}

.link-url:hover {
    background: rgba(74, 158, 255, 0.2);
    border-color: rgba(74, 158, 255, 0.5);
    transform: translateY(-1px);
}

/* Seção de Membros VIP */
.vip-members-section {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 30px;
    margin: 20px auto;
    max-width: 900px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.vip-members-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #8844ff;
    background: linear-gradient(90deg, #8844ff, transparent);
    padding: 15px 20px;
    margin: -30px -30px 30px -30px;
    border-radius: 20px 20px 0 0;
}

.vip-members-header h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.vip-form-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vip-section-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.form-group-vip {
    margin-bottom: 20px;
}

.form-group-vip label {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: 'Orbitron', monospace;
}

.form-group-vip input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 14px;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
}

.form-group-vip input:focus {
    outline: none;
    border-color: #8844ff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(136, 68, 255, 0.3);
}

.hint-text {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
}

.vip-limits-info {
    background: rgba(136, 68, 255, 0.1);
    border: 1px solid rgba(136, 68, 255, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
}

.vip-limits-info p {
    color: rgba(255, 255, 255, 0.9);
    margin: 5px 0;
    font-size: 14px;
}

.vip-action-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.btn-cancel-vip {
    background: linear-gradient(45deg, #888888, #666666);
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
}

.btn-cancel-vip:hover {
    background: linear-gradient(45deg, #666666, #555555);
    transform: translateY(-2px);
}

.btn-add-members {
    background: linear-gradient(45deg, #8844ff, #aa66ff);
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
}

.btn-add-members:hover {
    background: linear-gradient(45deg, #aa66ff, #cc88ff);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(136, 68, 255, 0.4);
}

.vip-requests-list {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vip-requests-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.vip-requests-header h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
}

.vip-request-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #8844ff;
    transition: all 0.3s ease;
}

.vip-request-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.vip-request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.vip-request-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
}

.vip-request-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
}

.vip-request-status.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.vip-request-status.processing {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
}

.vip-request-status.completed {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.vip-request-status.failed {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.vip-request-status.queued {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

.vip-request-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px;
}

.vip-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vip-info-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.vip-info-value {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    word-break: break-all;
}

/* Container de Anúncios no Centro do Conteúdo */
.anuncios-section-wrapper {
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 20px;
    display: block !important;
}

.anuncios-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.anuncios-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #00ff88;
    margin: 0;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
}

.anuncios-create-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #000000;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.anuncios-create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.5);
    background: linear-gradient(135deg, #00ffaa 0%, #00ff88 100%);
}

.anuncios-create-icon {
    font-size: 18px;
    line-height: 1;
}

.anuncios-create-text {
    font-size: 14px;
}

.anuncios-main-content {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.anuncios-main-content .anuncio-card-main {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.anuncios-main-content .anuncio-card-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
    border-color: rgba(0, 255, 136, 0.6);
}

.anuncios-main-content .anuncio-title-main {
    color: #00ff88;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.anuncios-main-content .anuncio-text-main {
    color: rgba(0, 255, 136, 0.9);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.anuncios-main-content .anuncio-link-main {
    color: #00ff88;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.anuncios-main-content .anuncio-link-main:hover {
    color: #00ffaa;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

.anuncios-main-content .anuncio-media-main {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
}

.anuncios-main-content .anuncio-author-main {
    color: rgba(0, 255, 136, 0.6);
    font-size: 12px;
    margin-top: 10px;
    font-style: italic;
}

/* Containers de Anúncios Laterais (Desktop) - OCULTOS */
.anuncios-sidebar-left,
.anuncios-sidebar-right {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.anuncios-sidebar-right {
    right: 20px !important;
}

/* Garantir que as sidebars apareçam nas laterais em telas grandes */
@media (min-width: 1400px) {
    .anuncios-sidebar-left {
        left: calc((100vw - 1300px) / 2 - 295px) !important; /* Posicionar fora do container central (1300px) */
    }
    
    .anuncios-sidebar-right {
        right: calc((100vw - 1300px) / 2 - 295px) !important; /* Posicionar fora do container central */
    }
}

/* Em telas muito grandes, manter nas bordas */
@media (min-width: 1800px) {
    .anuncios-sidebar-left {
        left: 20px !important;
    }
    
    .anuncios-sidebar-right {
        right: 20px !important;
    }
}

.anuncio-sidebar-item {
    background: linear-gradient(135deg, rgba(255,193,7,0.15) 0%, rgba(255,152,0,0.15) 100%);
    border: 2px solid rgba(255,193,7,0.4);
    border-radius: 12px;
    padding: 15px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.anuncio-sidebar-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,193,7,0.5);
    border-color: rgba(255,193,7,0.6);
}

.anuncio-sidebar-item img,
.anuncio-sidebar-item video {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
    max-height: 150px;
    object-fit: cover;
}

.anuncio-sidebar-item h4 {
    color: #ffc107;
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: bold;
}

.anuncio-sidebar-item p {
    margin: 0 0 8px 0;
    color: rgba(255,255,255,0.9);
    line-height: 1.4;
    font-size: 12px;
    word-wrap: break-word;
}

.anuncio-sidebar-item a {
    color: #00d4ff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    display: block;
    margin-top: 8px;
}

.anuncio-sidebar-item .anuncio-author {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,193,7,0.2);
    font-size: 10px;
    color: rgba(255,255,255,0.6);
}

/* Container de Anúncios Inferior (Mobile) - usa boa parte da tela quando expandido */
.anuncios-bottom-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 72vh;
    z-index: 50;
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding: 0;
    padding-bottom: 0;
    display: none;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    flex-direction: column;
}

.anuncios-bottom-mobile.collapsed {
    padding-bottom: 0;
}

/* Garantir que o container sempre mostre o label, mesmo quando collapsed */
.anuncios-bottom-mobile.collapsed .anuncios-label {
    display: flex !important;
}

/* Ajustar scroll container para não sobrepor o botão do WhatsApp */
.anuncios-bottom-mobile .anuncios-scroll-container {
    padding-bottom: 90px; /* Espaço apenas no conteúdo, não no container */
}

.anuncios-bottom-mobile .anuncios-label {
    flex-shrink: 0;
    background: #ffffff;
    padding: 8px 0;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.anuncios-bottom-mobile .anuncios-label:hover {
    background: #f8f8f8;
}

.anuncios-bottom-mobile .anuncios-label .toggle-arrow {
    font-size: 14px;
    color: #666;
    transition: transform 0.3s ease;
    display: inline-block;
    line-height: 1;
}

.anuncios-bottom-mobile.collapsed .anuncios-label .toggle-arrow {
    transform: rotate(180deg);
}

.anuncios-bottom-mobile.collapsed .anuncios-scroll-container {
    display: none !important;
}

.anuncios-bottom-mobile.collapsed .anuncios-label {
    border-bottom: none;
}

.anuncios-bottom-mobile .anuncios-scroll-container {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px;
    padding-bottom: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    background: #f5f5f5;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) transparent;
    min-width: 100%;
    box-sizing: border-box;
}
/* Um único anúncio: sem scroll vertical interno, conteúdo define a altura */
.anuncios-bottom-mobile .anuncios-scroll-container:has(.anuncio-mobile-item:only-child) {
    overflow-y: hidden;
    align-items: flex-start;
}

.anuncios-bottom-mobile .anuncios-scroll-container::-webkit-scrollbar {
    height: 4px;
}

.anuncios-bottom-mobile .anuncios-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.anuncios-bottom-mobile .anuncios-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 2px;
}

.anuncio-mobile-item {
    flex: 0 0 auto;
    min-width: min(280px, calc(100vw - 48px));
    width: min(320px, calc(100% - 24px));
    max-width: 100%;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
/* Um único anúncio: largura total, altura pelo conteúdo (evita scroll interno e card desproporcional) */
.anuncios-bottom-mobile .anuncios-scroll-container:has(.anuncio-mobile-item:only-child) .anuncio-mobile-item {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 0 0 auto;
}

.anuncio-mobile-item:active {
    transform: scale(0.98);
}

.anuncio-mobile-item .anuncio-mobile-image-container {
    width: 100%;
    max-height: 38vh;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.anuncio-mobile-item .anuncio-mobile-image-container img,
.anuncio-mobile-item .anuncio-mobile-image-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.anuncio-mobile-item .anuncio-mobile-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    opacity: 0.9;
}

.anuncio-mobile-item .anuncio-mobile-content {
    padding: 12px 12px 20px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Anúncio só texto: sem bloco de imagem, mais espaço para o conteúdo */
.anuncio-mobile-item--text-only .anuncio-mobile-content {
    padding-top: 16px;
}
.anuncio-mobile-item--text-only .anuncio-mobile-content p {
    -webkit-line-clamp: 6;
    line-clamp: 6;
}

.anuncio-mobile-item h4 {
    color: #333;
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.anuncio-mobile-item p {
    margin: 0;
    color: #666;
    line-height: 1.4;
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.anuncio-mobile-item .anuncio-mobile-link {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.1);
    font-size: 11px;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}
.anuncio-mobile-item .anuncio-mobile-link--btn {
    display: block;
    margin-top: 12px;
    padding: 10px 16px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    border-radius: 10px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    border-top: 1px solid rgba(0,0,0,0.08);
}
.anuncio-mobile-item--has-link {
    cursor: pointer;
}

.anuncio-mobile-item .anuncio-author {
    display: none; /* Ocultar autor no mobile para manter visual limpo */
}

/* Scrollbar personalizada para containers laterais */
.anuncios-sidebar-left::-webkit-scrollbar,
.anuncios-sidebar-right::-webkit-scrollbar {
    width: 6px;
}

.anuncios-sidebar-left::-webkit-scrollbar-track,
.anuncios-sidebar-right::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
}

.anuncios-sidebar-left::-webkit-scrollbar-thumb,
.anuncios-sidebar-right::-webkit-scrollbar-thumb {
    background: rgba(255,193,7,0.3);
    border-radius: 3px;
}

.anuncios-sidebar-left::-webkit-scrollbar-thumb:hover,
.anuncios-sidebar-right::-webkit-scrollbar-thumb:hover {
    background: rgba(255,193,7,0.5);
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .anuncios-sidebar-left,
    .anuncios-sidebar-right {
        display: none !important;
    }
    
    /* Anúncios mobile - controlado via JS, não forçar display */
}

/* Listener para redimensionamento da janela */
let resizeTimeout;
window.addEventListener('resize', function() {
    clearTimeout(resizeTimeout);
    resizeTimeout = setTimeout(function() {
        // Recarregar anúncios quando a janela for redimensionada APENAS se estiver no dashboard
        const token = localStorage.getItem('token');
        const dashboardEl = document.getElementById('dashboard');
        const isDashboardVisible = dashboardEl && !dashboardEl.classList.contains('hidden');
        if (token && isDashboardVisible) {
            loadPublicAnuncios();
        }
    }, 300);
});

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 10px;
    }
    
    /* Sidebar Mobile */
    .main-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 260px;
        top: 60px;
        height: calc(100vh - 60px);
        z-index: 1002;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    }
    
    .main-sidebar.open {
        transform: translateX(0);
    }
    
    /* Overlay para mobile quando sidebar está aberto */
    .main-sidebar.open::before {
        content: '';
        position: fixed;
        top: 60px;
        left: 260px;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .dashboard {
        padding-top: 90px;
    }
    
    .sidebar-toggle {
        display: none !important;
    }
    
    /* Header Mobile */
    .modern-header {
        padding: 0 15px !important;
        height: 60px !important;
        flex-wrap: wrap;
    }
    
    .header-left {
        flex: 1 1 auto;
        min-width: 0;
    }
    
    .logo-text {
        font-size: 16px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #ffffff !important;
        opacity: 1 !important;
    }
    
    .header-right {
        gap: 8px !important;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .balance-display {
        font-size: 12px !important;
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
    }
    
    .balance-value {
        font-size: 14px !important;
    }
    
    .balance-text {
        font-size: 9px !important;
        display: none; /* Ocultar "Saldo disponível" em mobile para economizar espaço */
    }
    
    .deposit-btn-header {
        padding: 6px 12px !important;
        font-size: 11px !important;
        white-space: nowrap;
        gap: 0 !important;
    }
    
    .deposit-icon {
        display: none !important;
    }
    
    .deposit-text {
        font-size: 11px !important;
    }
    
    .notification-icon,
    .message-icon,
    .user-profile-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        margin-top: 80px;
        padding: 30px 20px !important;
        margin-bottom: 30px;
    }
    
    /* Anúncios Mobile */
    .anuncios-section-wrapper {
        padding: 0 15px !important;
        margin-bottom: 30px !important;
    }
    
    .anuncios-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding-bottom: 15px;
    }
    
    .anuncios-section-title {
        font-size: 22px !important;
    }
    
    .anuncios-create-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 30px !important;
        align-items: center;
    }
    
    .hero-left {
        min-width: auto !important;
        width: 100%;
        text-align: center;
    }
    
    .hero-title {
        font-size: 36px !important;
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        font-size: 16px !important;
        margin-bottom: 20px;
    }
    
    .contact-info-hero {
        align-items: center;
        text-align: center;
        margin-top: 20px;
    }
    
    .hero-right {
        width: 100%;
        justify-content: center;
    }
    
    .users-count-box {
        min-width: auto !important;
        width: 100%;
        max-width: 300px;
        padding: 18px 20px;
    }
    
    .users-count-box strong {
        font-size: 24px !important;
    }
    
    /* Features Grid Modern Mobile */
    .features-grid-modern {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 15px !important;
        margin-bottom: 40px !important;
    }
    
    #boasVindasSection .features-grid-modern {
        grid-template-columns: 1fr !important;
    }
    
    #boasVindasSection .features-grid-modern .feature-profile {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
    
    .feature-card-modern {
        padding: 25px 20px !important;
        min-height: auto !important;
    }
    
    .feature-icon-modern {
        font-size: 40px !important;
        margin-bottom: 12px !important;
    }
    
    .feature-title-modern {
        font-size: 20px !important;
        margin-bottom: 6px !important;
    }
    
    .feature-subtitle-modern {
        font-size: 13px !important;
        margin-bottom: 12px !important;
    }
    
    .feature-description-modern {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 15px !important;
    }
    
    .feature-btn-modern {
        padding: 8px 14px !important;
        font-size: 12px !important;
        width: 100%;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
        padding: 10px 5px;
    }
    
    .feature-card {
        padding: 20px;
        min-height: 120px;
    }
    
    #dashboard {
        padding: 15px 5px;
    }
    
    #dashboard .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
        padding: 10px 5px;
    }
    
    #dashboard .feature-card-landing {
        padding: 20px 15px;
        min-height: 180px;
    }
    
    #dashboard .feature-card-landing h3 {
        font-size: 20px !important;
    }
    
    #dashboard .feature-card-landing p {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
    
    #dashboard .feature-card-landing div[style*="font-size: 48px"] {
        font-size: 36px !important;
        margin-bottom: 10px !important;
    }
    
    .auth-container {
        padding: 30px 20px;
        max-width: 100%;
        margin: 10px;
        border-radius: 15px;
    }
    
    .auth-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input {
        padding: 14px 16px;
        font-size: 16px; /* Evita zoom no iOS */
    }
    
    .btn {
        padding: 14px;
        font-size: 15px;
    }
    
    .auth-switch {
        font-size: 14px;
        margin-top: 20px;
    }
    
    .auth-switch p {
        line-height: 1.6;
        word-wrap: break-word;
    }
    
    .auth-switch a {
        display: inline-block;
        margin-top: 5px;
    }
    
    /* Código de verificação responsivo */
    #emailVerificationGroup > div {
        flex-direction: column;
        gap: 15px;
    }
    
    #verificationCode {
        min-width: 100% !important;
        font-size: 32px !important;
        padding: 20px !important;
        letter-spacing: 10px !important;
        min-height: 70px !important;
    }
    
    #sendCodeBtn {
        width: 100%;
        padding: 12px !important;
    }
    
    /* Modal de verificação responsivo */
    #modalVerificationCode {
        font-size: 32px !important;
        padding: 20px !important;
        letter-spacing: 10px !important;
        min-height: 70px !important;
    }
}

/* Classe para grids de produtos responsivos */
.products-grid-responsive {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 25px !important;
    width: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
    position: static !important;
    clear: both !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    float: none !important;
    min-height: auto !important;
    height: auto !important;
}

/* Grids de produtos responsivos para mobile */
@media (max-width: 768px) {
    /* Ajustar grids de produtos para mobile */
    .products-grid-responsive,
    div[style*="grid-template-columns:repeat(auto-fill, minmax(300px, 1fr))"],
    div[style*="grid-template-columns:repeat(auto-fit, minmax(300px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Anúncios na área principal */
    .anuncios-main-content {
        padding: 15px 10px !important;
    }
    
    .anuncio-card-main {
        margin-bottom: 20px !important;
        padding: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .anuncio-title-main {
        font-size: 18px !important;
    }
    
    .anuncio-text-main {
        font-size: 14px !important;
    }
    
    .anuncio-media-main {
        max-height: 250px !important;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 10px 5px;
        max-width: 100%;
    }
    
    /* Grids de produtos para mobile pequeno - 1 coluna */
    div[style*="grid-template-columns:repeat(auto-fill, minmax(300px, 1fr))"],
    div[style*="grid-template-columns:repeat(auto-fit, minmax(300px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Header Mobile Pequeno */
    .modern-header {
        padding: 0 10px !important;
        height: auto !important;
        min-height: 60px;
    }
    
    .logo-text {
        font-size: 14px !important;
        color: #ffffff !important;
        opacity: 1 !important;
    }
    
    .balance-display {
        font-size: 11px !important;
    }
    
    .balance-value {
        font-size: 13px !important;
    }
    
    .deposit-btn-header {
        padding: 5px 10px !important;
        font-size: 10px !important;
        gap: 0 !important;
    }
    
    .deposit-icon {
        display: none !important;
    }
    
    .deposit-text {
        font-size: 10px !important;
    }
    
    .notification-icon,
    .message-icon,
    .user-profile-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
    }
    
    /* Hero Section Mobile Pequeno */
    .hero-section {
        margin-top: 70px !important;
        padding: 25px 15px !important;
    }
    
    .hero-title {
        font-size: 32px !important;
    }
    
    .hero-subtitle {
        font-size: 14px !important;
    }
    
    .users-count-box {
        padding: 15px 18px !important;
    }
    
    .users-count-box strong {
        font-size: 22px !important;
    }
    
    /* Features Grid Mobile Pequeno */
    .features-grid-modern {
        padding: 0 10px !important;
        gap: 15px !important;
    }
    
    .feature-card-modern {
        padding: 20px 15px !important;
    }
    
    .feature-icon-modern {
        font-size: 36px !important;
    }
    
    .feature-title-modern {
        font-size: 18px !important;
    }
    
    .feature-description-modern {
        font-size: 12px !important;
    }
    
    .feature-btn-modern {
        padding: 7px 12px !important;
        font-size: 11px !important;
    }
    
    .auth-container {
        padding: 25px 15px;
        margin: 5px;
        border-radius: 12px;
    }
    
    .dashboard {
        padding: 85px 5px 15px 5px;
        margin: 0;
    }
    
    #dashboard .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 10px 5px;
    }
    
    #dashboard .feature-card-landing {
        padding: 18px 12px;
        min-height: 160px;
    }
    
    #dashboard .feature-card-landing h3 {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }
    
    #dashboard .feature-card-landing p {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }
    
    #dashboard .feature-card-landing div[style*="font-size: 48px"] {
        font-size: 32px !important;
        margin-bottom: 8px !important;
    }
    
    .dashboard-header h1 {
        font-size: 28px !important;
    }
    
    .dashboard-subtitle {
        font-size: 14px !important;
    }
    
    .dashboard-instruction {
        font-size: 12px !important;
    }
    
    .contact-info {
        padding: 15px !important;
        margin: 15px 5px !important;
        font-size: 14px !important;
    }
    
    .contact-info h4 {
        font-size: 16px !important;
    }
    
    .contact-info p {
        font-size: 13px !important;
    }
    
    .logout-btn {
        width: calc(100% - 20px) !important;
        margin: 20px 10px !important;
        padding: 12px !important;
        font-size: 14px !important;
    }
    
    .auth-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-group label {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .form-group input {
        padding: 12px 14px;
        font-size: 16px; /* Evita zoom no iOS */
    }
    
    .btn {
        padding: 12px;
        font-size: 14px;
    }
    
    .auth-switch {
        font-size: 13px;
        margin-top: 15px;
    }
    
    .auth-switch p {
        text-align: center;
        line-height: 1.8;
    }
    
    .auth-switch a {
        display: block;
        margin-top: 8px;
        text-align: center;
    }
    
    /* Código de verificação responsivo para telas muito pequenas */
    #emailVerificationGroup > div {
        flex-direction: column;
        gap: 12px;
    }
    
    #verificationCode {
        min-width: 100% !important;
        font-size: 28px !important;
        padding: 18px !important;
        letter-spacing: 8px !important;
        min-height: 65px !important;
    }
    
    #sendCodeBtn {
        width: 100%;
        padding: 12px !important;
        font-size: 14px !important;
    }
    
    /* Modal de verificação responsivo */
    #modalVerificationCode {
        font-size: 28px !important;
        padding: 18px !important;
        letter-spacing: 8px !important;
        min-height: 65px !important;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .feature-card {
        padding: 15px;
        min-height: 100px;
    }
    
    .feature-card h4 {
        font-size: 14px;
    }
    
    .feature-card p {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .auth-container {
        padding: 20px 12px;
    }
    
    .auth-title {
        font-size: 22px;
    }
    
    .form-group input {
        padding: 11px 12px;
        font-size: 16px;
    }
    
    #verificationCode {
        font-size: 24px !important;
        letter-spacing: 6px !important;
    }
    
    #modalVerificationCode {
        font-size: 24px !important;
        letter-spacing: 6px !important;
    }
}
/* Remover spinners de inputs number */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Animação para os pontinhos de loading do modal de clonagem */
@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================================== */
/* NOVA HOME - ESTILOS CONFORME DESIGN */
/* =========================================== */

/* Header com menu horizontal */
.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 30px;
    opacity: 1 !important;
    visibility: visible !important;
}

.header-nav .header-nav-item {
    opacity: 1 !important;
    visibility: visible !important;
}

.header-nav-item {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
}

.header-nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    opacity: 1;
    color: #ffffff;
}

.header-nav-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid #ffffff;
    padding-bottom: 6px;
    opacity: 1;
    font-weight: 700;
}

/* Dropdown do usuário - oculto por padrão */
#userDropdown.user-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    min-width: 200px;
    max-width: min(250px, calc(100vw - 20px));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10001 !important;
    overflow: hidden;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    box-sizing: border-box;
}

.user-profile-icon.is-open #userDropdown.user-dropdown {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Garantir que o dropdown não ultrapasse a tela */
@media (max-width: 480px) {
    .user-dropdown {
        right: 10px;
        max-width: calc(100vw - 40px);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #111827;
    text-decoration: none;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f9fafb;
}

.dropdown-item span {
    font-size: 18px;
}

/* Sidebar atualizada */
.sidebar-nav .nav-item.active {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
}

.nav-arrow {
    margin-left: auto;
    font-size: 12px;
    opacity: 0.7;
}

/* Conteúdo principal da home */
.home-content {
    background: #f9fafb;
    min-height: calc(100vh - 80px);
    padding: 30px;
    margin-top: 0;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
}

/* Atalhos principais */
.quick-actions {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.quick-actions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.quick-actions-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.quick-action-btn {
    background: #f3f4f6;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.quick-action-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

@media (max-width: 768px) {
    .quick-actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* Card de Boas-Vindas */
.welcome-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    margin-top: 20px; /* Adicionado para garantir espaço extra */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.welcome-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.welcome-emoji {
    font-size: 32px;
}

.welcome-title {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.welcome-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Cards de Estatísticas */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.stat-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.stat-icon-users {
    background: rgba(59, 130, 246, 0.1);
}

.stat-icon-online {
    background: rgba(34, 197, 94, 0.1);
}

.stat-icon-secure {
    background: rgba(234, 179, 8, 0.1);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
}

/* Selos de Segurança */
.security-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.security-badge {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.badge-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.badge-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.badge-subtitle {
    font-size: 12px;
    color: #6b7280;
}

/* Área de Anúncios */
.anuncios-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.anuncios-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.anuncios-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.anuncios-icon {
    font-size: 24px;
}

.anuncios-create-btn {
    background: #22c55e;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.anuncios-create-btn:hover {
    background: #16a34a;
}

.anuncios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Transição suave ao trocar anúncios (fade out → troca → fade in) */
#anunciosMainContent,
#anunciosMobileScroll {
    transition: opacity 0.25s ease;
}
.anuncios-fade-out {
    opacity: 0 !important;
}
/* Wrapper injetado pelo JS: ocupa largura e mantém gap entre cards */
.anuncios-grid > div {
    width: 100%;
    min-width: 0;
}

/* Limitar fotos e vídeos na área de anúncios para não estourar a tela */
.anuncios-section .anuncio-card-main,
.anuncios-section .anuncio-card {
    overflow: hidden;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.anuncios-section .anuncio-media-main-wrap {
    min-width: 0;
    max-width: 100%;
}
.anuncios-section .anuncio-media-main,
.anuncios-section .anuncio-card img,
.anuncios-section .anuncio-card video,
.anuncios-section .anuncio-card-main img,
.anuncios-section .anuncio-card-main video {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: min(400px, 45vh);
    object-fit: contain;
    display: block;
    box-sizing: border-box;
}

/* Card com destaque na Área de Anúncios (index: .anuncios-grid / .anuncios-section) */
.anuncios-section .anuncio-card-main {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.anuncios-section .anuncio-card-main:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}
.anuncios-section .anuncio-card-main .anuncio-title-main {
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
}
.anuncios-section .anuncio-card-main .anuncio-text-main {
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 12px 0;
}
/* Desktop: mídia à esquerda, texto à direita */
.anuncios-section .anuncio-card-main-body {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
    margin-top: 8px;
    min-width: 0;
}
.anuncios-section .anuncio-media-main-wrap {
    flex-shrink: 0;
    width: 42%;
    max-width: 320px;
    min-width: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
}
.anuncios-section .anuncio-card-main-content {
    flex: 1;
    min-width: 0;
}
.anuncios-section .anuncio-card-main .anuncio-media-main {
    border-radius: 10px;
    margin-bottom: 0;
    background: #f1f5f9;
    width: 100%;
    max-width: 100%;
    display: block;
}
/* Mobile: volta a empilhar (mídia em cima, texto embaixo) e evita overflow */
@media (max-width: 768px) {
    .anuncios-section {
        overflow-x: hidden;
        padding-left: 16px;
        padding-right: 16px;
    }
    .anuncios-section .anuncios-grid,
    .anuncios-section #anunciosMainContent .anuncios-grid > div {
        min-width: 0;
        max-width: 100%;
    }
    .anuncios-section .anuncios-grid > div {
        grid-template-columns: 1fr !important;
        min-width: 0;
    }
    .anuncios-section .anuncio-card-main-body {
        flex-direction: column;
        min-width: 0;
    }
    .anuncios-section .anuncio-media-main-wrap {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }
    .anuncios-section .anuncio-card-main .anuncio-media-main,
    .anuncios-section .anuncio-card-main img,
    .anuncios-section .anuncio-card-main video {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 50vh;
        object-fit: contain;
        margin-bottom: 12px;
    }
}
.anuncios-section .anuncio-card-main .anuncio-link-main {
    color: #22c55e;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.anuncios-section .anuncio-card-main .anuncio-link-main:hover {
    text-decoration: underline;
}
.anuncios-section .anuncio-card-main .anuncio-author-main {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 8px;
}

.anuncio-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.anuncio-date {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.anuncio-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.anuncio-description {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

.anuncio-btn {
    background: #22c55e;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.anuncio-btn:hover {
    background: #16a34a;
}

/* Chamada para Contato */
.contact-cta {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cta-icon {
    font-size: 32px;
}

.cta-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.cta-subtitle {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
}

.cta-button {
    background: #22c55e;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.cta-button:hover {
    background: #16a34a;
}

/* Footer atualizado */
.dashboard-footer {
    background: #111827;
    color: #fff;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-logo-text {
    font-size: 16px;
    font-weight: 600;
}

.footer-slogan {
    font-size: 12px;
    color: #9ca3af;
}

.footer-separator {
    margin: 0 8px;
    color: #6b7280;
}

/* Responsividade */
@media (max-width: 1024px) {
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .security-badges {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .anuncios-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .security-badges {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-cta {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .dashboard-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 24px 20px;
        align-items: center;
    }
    .footer-left {
        order: 1;
    }
    .footer-center {
        order: 2;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        flex-wrap: nowrap;
    }
    .footer-center .footer-separator {
        display: none;
    }
    .footer-center .footer-link {
        font-size: 15px;
        padding: 6px 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.85);
    }
    .footer-center .footer-link:hover,
    .footer-center .footer-link:focus {
        color: #00d4ff;
    }
    .footer-right {
        order: 3;
        font-size: 12px;
        line-height: 1.5;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .home-content {
        padding: 16px;
    }
    
    .security-badges {
        grid-template-columns: 1fr;
    }
}/ *   C a c h e   b u s t e r   * / 
 
 