/* --- RESET E VARIÁVEIS (Padrão do Painel) --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
:root {
    --bg-color: #0b0c10; --card-bg: #14161f; --sidebar-bg: #0f111a;
    --text-main: #f3f4f6; --text-muted: #9ca3af; 
    --accent-neon: #00ffcc; --accent-purple: #7000ff; 
    --accent-gold: #ffc107; --accent-blue: #0077ff; --danger: #ff4757;
    --gradient-primary: linear-gradient(135deg, #00ffcc 0%, #7000ff 100%);
}
body { background-color: var(--bg-color); color: var(--text-main); display: flex; min-height: 100vh; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }

/* --- MENU LATERAL (SIDEBAR) --- */
.sidebar {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    background-color: var(--sidebar-bg, #0f111a) !important;
    border-right: 1px solid #1f222f !important;
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    height: 100vh !important;
    max-height: 100vh !important;
    left: 0 !important;
    top: 0 !important;
    z-index: 100 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.brand-box {
    height: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
    padding: 0 24px !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    border-bottom: 1px solid #1f222f !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.logo-rs { font-size: 1.8rem; font-weight: 800; letter-spacing: -2px; display: flex; gap: -2px; }
.logo-rs span { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo-rs span.mirrored { transform: scaleX(-1); }
.brand-text { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }

.nav-menu {
    padding: 0 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Scrollbar sutil para o menu se a resolução de tela for baixa */
.nav-menu::-webkit-scrollbar {
    width: 4px;
}
.nav-menu::-webkit-scrollbar-thumb {
    background: #1f222f;
    border-radius: 4px;
}

.nav-item {
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
    border-radius: 8px !important;
    gap: 12px !important;
    box-sizing: border-box !important;
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-weight: 600;
    transition: all 0.2s;
}

.nav-item i { font-size: 1.3rem; }

.nav-item:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
    background: rgba(0, 255, 204, 0.1);
    color: var(--accent-neon);
    border-left: 3px solid var(--accent-neon);
    border-radius: 0 8px 8px 0;
}

.nav-item.premium {
    color: var(--accent-gold);
    margin-top: 10px;
    border: 1px dashed rgba(255, 193, 7, 0.3);
}

.nav-item.premium:hover {
    background: rgba(255, 193, 7, 0.1);
    border-color: var(--accent-gold);
}

.nav-item.premium.unlocked {
    color: var(--accent-neon);
    border: 1px dashed rgba(0, 255, 204, 0.3);
}
.nav-item.premium.unlocked:hover {
    background: rgba(0, 255, 204, 0.1);
    border-color: var(--accent-neon);
}

.sidebar-divider, .nav-divider {
    border-bottom: 1px solid #1f222f !important;
    margin: 10px 0 !important;
    height: 1px !important;
    box-sizing: border-box !important;
}

.badge-soon {
    font-size: 0.62rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 3px 6px;
    border-radius: 4px;
    white-space: nowrap !important;
    margin-left: auto;
    line-height: 1;
    display: inline-block;
    text-transform: uppercase;
}

.badge-novo, .badge-new {
    font-size: 0.65rem;
    background: rgba(0, 255, 204, 0.15);
    color: var(--accent-neon);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
    text-transform: uppercase;
    font-weight: 700;
    white-space: nowrap !important;
    line-height: 1;
    display: inline-block;
}

.nav-item.suporte-prioritario {
    color: var(--accent-gold, #ffc107) !important;
    transition: all 0.2s ease;
}

.nav-item.suporte-prioritario i {
    color: var(--accent-gold, #ffc107) !important;
}

.nav-item.suporte-prioritario:hover {
    background: rgba(255, 193, 7, 0.08) !important;
    color: #ffd54f !important;
}

.nav-item.item-disabled, .nav-item.disabled {
    cursor: default;
    opacity: 0.65;
}

.nav-item.item-disabled:hover, .nav-item.disabled:hover {
    background: transparent;
    color: var(--text-muted);
}

.sidebar-footer {
    padding: 18px 20px !important;
    flex-shrink: 0 !important;
    border-top: 1px solid #1f222f !important;
    background: var(--sidebar-bg);
}

.nav-item.logout:hover {
    color: var(--danger);
    background: rgba(255, 71, 87, 0.1);
}

/* --- CONTEÚDO PRINCIPAL E HEADER --- */
.main-content {
    margin-left: 280px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    box-sizing: border-box !important;
}

.top-header {
    height: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
    padding: 0 40px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid #1f222f !important;
    box-sizing: border-box !important;
    background-color: rgba(11, 12, 16, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 90 !important;
}
.page-title { font-size: 1.4rem; font-weight: 700; }

/* --- DROPDOWNS E PERFIL DO HEADER --- */
.user-profile { display: flex; align-items: center; gap: 20px; }
.btn-notification { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; position: relative; }
.notification-dot { position: absolute; top: 0; right: 0; width: 8px; height: 8px; background-color: var(--danger); border-radius: 50%; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background-color: var(--card-bg); border: 2px solid var(--accent-purple); overflow: hidden; cursor: pointer; transition: transform 0.2s; }
.avatar:hover { transform: scale(1.05); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.dropdown-container, .user-profile-wrapper { position: relative; }
.user-avatar-badge { cursor: pointer; }
.dropdown-menu, .user-dropdown-menu { position: absolute; top: 120%; right: 0; background-color: var(--card-bg); border: 1px solid #1f222f; border-radius: 12px; width: 250px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.2s; z-index: 100; box-shadow: 0 10px 30px rgba(0,0,0,0.5);}
.dropdown-menu.show, .dropdown-menu.ativo, .user-dropdown-menu.show, .user-dropdown-menu.ativo { opacity: 1 !important; visibility: visible !important; transform: translateY(0) !important; }
.dropdown-header { padding: 16px; border-bottom: 1px solid #1f222f; font-weight: 700; }
.dropdown-item { padding: 12px 16px; display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 0.9rem; cursor: pointer; }
.dropdown-item:hover { background-color: rgba(255, 255, 255, 0.05); color: var(--text-main); }
.dropdown-divider { border-top: 1px solid #1f222f; margin: 4px 0; }
.dropdown-item.danger:hover, .dropdown-item.text-danger:hover { color: var(--danger) !important; background-color: rgba(255, 71, 87, 0.1) !important; }

/* --- LAYOUT DA PÁGINA DE CONFIGURAÇÕES --- */
.settings-container { padding: 40px; max-width: 1000px; margin: 0 auto; width: 100%; }

/* --- ABAS (TABS) --- */
.tabs-header { display: flex; border-bottom: 1px solid #1f222f; margin-bottom: 30px; gap: 30px; }
.tab-btn { background: none; border: none; color: var(--text-muted); font-size: 1.1rem; font-weight: 600; padding: 10px 0 15px 0; cursor: pointer; position: relative; transition: color 0.2s; }
.tab-btn:hover { color: var(--text-main); }
.tab-btn.active { color: var(--accent-neon); }
.tab-btn.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 3px; background-color: var(--accent-neon); border-radius: 3px 3px 0 0; }

.tab-content { display: none; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- ESTILOS DO FORMULÁRIO (PERFIL) --- */
.config-card { background: var(--card-bg); border: 1px solid #1f222f; border-radius: 16px; padding: 40px; }

.profile-pic-section { display: flex; align-items: center; gap: 30px; margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid #1f222f; }
.profile-pic-large { width: 100px; height: 100px; border-radius: 50%; border: 3px solid var(--accent-purple); overflow: hidden; position: relative; }
.profile-pic-large img { width: 100%; height: 100%; object-fit: cover; }
.profile-pic-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; cursor: pointer; color: white; font-size: 1.5rem; }
.profile-pic-large:hover .profile-pic-overlay { opacity: 1; }
.profile-pic-info h3 { font-size: 1.2rem; margin-bottom: 5px; }
.profile-pic-info p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; }
.btn-outline { background: transparent; border: 1px solid #31354b; color: var(--text-main); padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: all 0.2s; }
.btn-outline:hover { background: #31354b; }

.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.form-group { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); display: flex; align-items: center; }
.form-group input { background: #0f111a; border: 1px solid #1f222f; color: var(--text-main); padding: 14px 16px; border-radius: 10px; font-size: 1rem; transition: all 0.2s; outline: none; }
.form-group input:focus:not(:disabled) { border-color: var(--accent-neon); box-shadow: 0 0 0 3px rgba(0, 255, 204, 0.1); }
.form-group input:disabled { background: #14161f; opacity: 0.6; cursor: not-allowed; border-color: #1f222f; }

.form-actions { margin-top: 30px; display: flex; justify-content: flex-end; }
.btn-primary { background: var(--gradient-primary); color: var(--bg-color); border: none; padding: 14px 28px; border-radius: 10px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: transform 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 255, 204, 0.2); }

/* --- ESTILOS DO PLANO E GRADES --- */
.plan-status-card { background: linear-gradient(to right, rgba(0, 119, 255, 0.1), rgba(20, 22, 31, 0)); border: 1px solid var(--accent-blue); border-radius: 16px; padding: 30px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.plan-status-card.premium-status { background: linear-gradient(to right, rgba(255, 193, 7, 0.1), rgba(20, 22, 31, 0)); border-color: var(--accent-gold); }
.plan-status-info h2 { font-size: 1.5rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.plan-badge { font-size: 0.8rem; padding: 4px 12px; border-radius: 20px; font-weight: 800; text-transform: uppercase; }
.plan-badge.iniciante { background: #31354b; color: white; }
.plan-badge.pro { background: var(--accent-blue); color: white; }
.plan-badge.premium { background: var(--accent-gold); color: black; }
.plan-status-info p { color: var(--text-muted); }
.plan-status-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn-manage-plan { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid rgba(0, 119, 255, 0.45); background: rgba(0, 119, 255, 0.14); color: #ffffff; font-size: 0.9rem; font-weight: 700; text-decoration: none; transition: all 0.2s ease; }
.btn-manage-plan:hover { background: var(--accent-blue); border-color: var(--accent-blue); transform: translateY(-1px); }
.plan-status-card.premium-status .btn-manage-plan { border-color: rgba(255, 193, 7, 0.55); background: rgba(255, 193, 7, 0.14); color: var(--accent-gold); }
.plan-status-card.premium-status .btn-manage-plan:hover { background: var(--accent-gold); color: #000000; border-color: var(--accent-gold); }

.plan-usage { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.plan-usage-text { font-weight: 600; font-size: 0.95rem; }
.progress-track { width: 250px; height: 10px; background: #1f222f; border-radius: 5px; overflow: hidden; position: relative;}
.progress-fill { width: 0%; height: 100%; background: var(--accent-blue); transition: width 0.5s ease; }
.progress-fill.infinity { background: var(--gradient-primary); width: 100%; }

/* Grade de Planos Disponíveis */
.upgrade-section { animation: fadeIn 0.4s ease; }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; transition: all 0.3s; margin-top: 30px; }

/* Correção das Tags Flutuantes */
.pricing-card { background: var(--card-bg); border: 1px solid #1f222f; border-radius: 16px; padding: 30px; display: flex; flex-direction: column; transition: transform 0.2s; position: relative; overflow: visible; margin-top: 15px; }
.pricing-card:hover { border-color: #31354b; transform: translateY(-5px); }
.pricing-card.highlight { border-color: var(--accent-gold); background: linear-gradient(180deg, rgba(255, 193, 7, 0.05) 0%, rgba(20, 22, 31, 1) 100%); }

.popular-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent-blue); color: white; font-size: 0.75rem; font-weight: 800; padding: 4px 16px; border-radius: 20px; text-transform: uppercase; white-space: nowrap; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 10;}
.popular-tag.gold { background: var(--accent-gold); color: black; }

.plan-name { font-size: 1.2rem; font-weight: 700; color: var(--text-muted); margin-bottom: 15px; margin-top: 10px; text-align: center; }
.highlight .plan-name { color: var(--accent-gold); }

.plan-price { font-size: 2.5rem; font-weight: 800; margin-bottom: 5px; text-align: center; }
.plan-price span { font-size: 1rem; color: var(--text-muted); font-weight: 500; }

.plan-subtitle { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #1f222f; min-height: 50px; }

.plan-features { list-style: none; margin-bottom: 30px; flex: 1; }
.plan-features li { display: flex; gap: 10px; margin-bottom: 12px; color: var(--text-main); font-size: 0.95rem; align-items: flex-start; line-height: 1.4; }
.plan-features li i { color: var(--accent-neon); font-size: 1.2rem; flex-shrink: 0; }

.btn-pricing { width: 100%; padding: 12px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: all 0.2s; border: 1px solid #31354b; background: transparent; color: var(--text-main); }
.btn-pricing:hover { background: #31354b; }

.highlight .btn-pricing { background: var(--accent-gold); color: black; border: none; }
.highlight .btn-pricing:hover { filter: brightness(1.1); }

.btn-pricing.current { background: rgba(255,255,255,0.05); color: var(--text-muted); cursor: default; border: 1px dashed #31354b; }
.btn-pricing.current:hover { background: rgba(255,255,255,0.05); }

/* --- TOAST DE NOTIFICAÇÃO --- */
#toast-container { position: fixed; bottom: 30px; right: 30px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--card-bg); border: 1px solid #1f222f; border-left: 4px solid var(--accent-neon); color: var(--text-main); padding: 16px 20px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); display: flex; align-items: center; gap: 12px; font-weight: 500; transform: translateX(120%); transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
.toast.show { transform: translateX(0); }

/* --- TESTADOR DE PLANOS --- */
.plan-tester { background: rgba(255, 255, 255, 0.05); border: 1px solid #31354b; padding: 10px 20px; border-radius: 8px; margin-bottom: 20px; display: flex; align-items: center; gap: 15px; font-size: 0.85rem; }
.plan-tester span { color: var(--text-muted); }
.btn-test { background: transparent; border: 1px solid #4b5563; color: var(--text-main); padding: 5px 10px; border-radius: 4px; cursor: pointer; transition: all 0.2s; }
.btn-test:hover { background: #31354b; }
.btn-test.active { background: var(--accent-blue); border-color: var(--accent-blue); font-weight: bold;}

/* --- MODAIS CUSTOMIZADOS (Avatar) --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-box { background: var(--card-bg); border: 1px solid #31354b; border-radius: 16px; width: 90%; padding: 30px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.modal-overlay.show .modal-box { transform: scale(1); }
.modal-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; text-align: center; }

.avatar-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 20px; margin-top: 16px; max-height: 55vh; overflow-y: auto; padding: 6px; }
.avatar-option { width: 100%; aspect-ratio: 1; border-radius: 50%; cursor: pointer; border: 3px solid transparent; transition: all 0.2s; overflow: hidden; background: #1f222f; position: relative;}
.avatar-option:not(.locked):hover { transform: scale(1.06); border-color: var(--accent-neon); }
.avatar-option.selected { border-color: var(--accent-neon); box-shadow: 0 0 14px rgba(0, 229, 255, 0.35); }
.avatar-option img { width: 100%; height: 100%; object-fit: cover; transition: all 0.3s;}

/* Estilo de Avatar Bloqueado */
.avatar-option.locked { border-color: transparent; cursor: not-allowed; }
.avatar-option.locked img { filter: grayscale(100%) opacity(0.3); }
.lock-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--text-muted); font-size: 1.35rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 100%; background: rgba(0,0,0,0.48);}
.avatar-tier-pill { font-size: 0.62rem; font-weight: 800; padding: 2px 6px; border-radius: 999px; letter-spacing: 0.2px; text-transform: uppercase; }
.avatar-tier-pill.tier-pro { background: rgba(59, 130, 246, 0.28); color: #93c5fd; border: 1px solid rgba(96, 165, 250, 0.45); }
.avatar-tier-pill.tier-premium { background: rgba(251, 191, 36, 0.26); color: #fde047; border: 1px solid rgba(251, 191, 36, 0.45); }

.modal-icon { font-size: 3rem; margin-bottom: 16px; text-align: center; }
.modal-icon.warning { color: var(--accent-gold); }
.modal-icon.danger { color: var(--danger); }

.modal-desc { color: var(--text-muted); text-align: center; font-size: 0.95rem; margin-bottom: 24px; line-height: 1.5; white-space: pre-line;}

.modal-buttons { display: flex; gap: 12px; }
.btn-modal {
    flex: 1; padding: 12px; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
    cursor: pointer; transition: all 0.2s; border: none; width: 100%;
}
.btn-modal.cancel { background: transparent; color: var(--text-main); border: 1px solid #31354b; }
.btn-modal.cancel:hover { background: #31354b; }
.btn-modal.confirm-danger { background: rgba(255, 71, 87, 0.1); color: var(--danger); border: 1px solid var(--danger); }
.btn-modal.confirm-danger:hover { background: var(--danger); color: #fff; }
.btn-modal.confirm-action { background: var(--accent-blue); color: #fff; }
.btn-modal.confirm-action:hover { filter: brightness(1.1); }
.btn-modal.confirm-premium { background: var(--accent-neon); color: var(--bg-color); }
.btn-modal.confirm-premium:hover { filter: brightness(1.1); }

/* Badge para nome de usuário */
.badge-status { font-size: 0.7rem; padding: 2px 8px; border-radius: 4px; margin-left: 8px; font-weight: 700; }
.badge-status.neon { background: var(--accent-neon); color: black; }
.badge-status.muted { background: var(--text-muted); color: black; }

/* =========================================================
   NAVEGAÇÃO LATERAL MOBILE - PADRÃO GAVETA RETRÁTIL (OFF-CANVAS)
   ========================================================= */
.btn-mobile-menu {
    display: none;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2400;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.drawer-overlay.ativo {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    /* 1. Trava contra zoom-out indesejado no mobile */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative !important;
        display: block !important;
    }

    .main-content {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .top-header {
        padding: 0 16px !important;
        width: 100% !important;
    }

    .settings-container {
        padding: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .config-card {
        padding: 20px 16px !important;
    }

    /* 2. Plan tester flexível sem estourar largura */
    .plan-tester {
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 12px 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .plan-tester span {
        width: 100% !important;
        margin-bottom: 4px !important;
    }

    .btn-test {
        flex: 1 1 auto !important;
        text-align: center !important;
        padding: 7px 10px !important;
    }

    /* 3. Correção do Avatar em formato de ovo */
    .profile-pic-section {
        flex-direction: column !important;
        text-align: center !important;
        gap: 16px !important;
        padding-bottom: 24px !important;
        margin-bottom: 24px !important;
    }

    .profile-pic-large {
        width: 90px !important;
        height: 90px !important;
        min-width: 90px !important;
        min-height: 90px !important;
        flex-shrink: 0 !important;
        margin: 0 auto !important;
    }

    /* 4. Inputs em coluna única sem esmagar o texto */
    .form-row {
        flex-direction: column !important;
        gap: 16px !important;
        margin-bottom: 16px !important;
    }

    .form-group {
        width: 100% !important;
    }

    .form-actions {
        width: 100% !important;
    }

    .btn-primary {
        width: 100% !important;
        justify-content: center !important;
    }

    /* 5. Aba de Planos no Perfil em 1 coluna vertical */
    .plan-status-card {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
        padding: 20px 16px !important;
    }

    .progress-track {
        width: 100% !important;
    }

    .plans-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* 6. Sidebar Drawer no Perfil */
    .btn-mobile-menu {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid #31354b;
        color: var(--text-main);
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 0.88rem;
        font-weight: 600;
        cursor: pointer;
    }

    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 290px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: rgba(14, 17, 27, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-right: 1px solid var(--border-subtle, #1f222f) !important;
        z-index: 2500 !important;
        transform: translateX(-105%) !important;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
        display: flex !important;
        flex-direction: column !important;
        box-shadow: 15px 0 40px rgba(0, 0, 0, 0.8) !important;
    }

    .sidebar.drawer-aberto {
        transform: translateX(0) !important;
    }

    .sidebar-footer {
        margin-top: auto !important;
        padding: 16px 20px !important;
    }
}

/* --- SELETOR DE CURSORES E PLANOS DE FUNDO --- */
.theme-customizer-header {
    margin-bottom: 18px;
}
.theme-customizer-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.theme-customizer-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.theme-selector-block + .theme-selector-block {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #1f222f;
}
.theme-selector-block h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.theme-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.theme-option-card {
    background: #14161f;
    border: 1px solid #262a3a;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-main);
    text-align: left;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.theme-option-card:not(.locked):hover {
    border-color: var(--accent-neon);
    transform: translateY(-2px);
}
.theme-option-card.active {
    border-color: var(--accent-neon);
    box-shadow: 0 0 0 1px var(--accent-neon), 0 6px 18px rgba(0, 229, 255, 0.16);
}
.theme-option-card.locked {
    opacity: 0.7;
    cursor: not-allowed;
}
.theme-preview-swatch {
    width: 100%;
    height: 58px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.theme-preview-pattern {
    position: absolute;
    inset: 0;
    background-repeat: repeat;
    background-position: center;
    pointer-events: none;
}
.theme-preview-swatch.cursor-swatch {
    background: radial-gradient(circle at center, #1b2234 0%, #0e1017 100%);
}
.cursor-svg-preview {
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
    position: relative;
    z-index: 1;
}
.theme-lock-pill {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(11, 12, 16, 0.88);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.theme-option-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
}
.theme-option-name {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
    color: #f8fafc;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
}
.theme-tier-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    flex-shrink: 0;
}
.theme-tier-badge.tier-iniciante { background: rgba(16, 185, 129, 0.16); color: #34d399; }
.theme-tier-badge.tier-pro { background: rgba(59, 130, 246, 0.18); color: #60a5fa; }
.theme-tier-badge.tier-premium { background: rgba(251, 191, 36, 0.18); color: #fbbf24; }
