/*
 * css/components/components.css
 * [VERSÃO 10.0 - MASTER UI KIT - BLINDAGEM BEE - CHAT & CARDS UNIFICADOS]
 * - Arquivo Central de Componentes.
 * - Contém: Botões, Forms, Modais, Tabelas, Chat, Sidebar, Badges e TODOS os Cards.
 * - [CRITICAL FIX] Remoção de classes utilitárias duplicadas.
 * - [FIX] Correção de sintaxe SCSS para CSS puro em tabelas.
 * - [UPGRADE] Refinamento de cores e sombras com variáveis de tema.
 * - [UNIFIED] Integrou chat-v2.css e card.css.
 */

/* =========================================
   1. BUTTONS (BOTÕES NEON)
   ========================================= */
.btn {
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 700; 
    font-size: 0.9rem;
    cursor: pointer; 
    text-decoration: none;
    transition: var(--transition-fast); /* Usando transição global */
    border: 1px solid var(--glass-border);
    background: var(--glass-fill);
    color: var(--txt-100);
    -webkit-tap-highlight-color: transparent; /* Remove highlight padrão em mobile */
}
.btn:hover { 
    background: var(--glass-2); /* Um pouco mais denso no hover */
    color: var(--txt-100); /* Garante cor de texto no hover */
}
.btn:active {
    transform: translateY(1px); /* Pequeno efeito de clique */
}

.btn.primary {
    background: var(--bee-primary);
    border-color: var(--bee-primary);
    color: var(--txt-black); /* Cor do texto preta, usando variável */
    box-shadow: var(--bee-glow); /* Brilho neon da abelha */
}
.btn.primary:hover {
    background: var(--bee-primary); /* Mantém a cor primária */
    border-color: var(--bee-primary); /* Mantém a cor da borda */
    box-shadow: var(--bee-glow-strong); /* Brilho mais forte no hover (assumindo variável em theme.css) */
}
.btn:disabled { 
    opacity: 0.5; 
    cursor: not-allowed; 
    box-shadow: none; 
    background: var(--bg-medium); /* Fundo mais escuro para desabilitado */
    border-color: var(--bg-medium);
    color: var(--txt-500);
}

/* Exemplo de botão secundário */
.btn.secondary {
    background: var(--bg-medium);
    border-color: var(--bg-medium);
    color: var(--txt-100);
}
.btn.secondary:hover {
    background: var(--glass-2);
    border-color: var(--glass-border);
}


/* =========================================
   2. FORMS (INPUTS & SELECTS)
   ========================================= */
.form .field { margin-bottom: 1.25rem; }
.form label { 
    display: block; 
    font-size: 0.85rem; 
    font-weight: 500; 
    color: var(--txt-300); 
    margin-bottom: 0.5rem; 
}

.input, select.input, textarea.input { /* Adicionado textarea */
    display: block; 
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-deep-dark); /* Fundo escuro para contraste */
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--txt-100);
    transition: var(--transition-fast); /* Usando transição global */
    box-sizing: border-box;
}
.input:focus, select.input:focus, textarea.input:focus {
    background: var(--bg-dark);
    border-color: var(--bee-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(254, 234, 0, 0.2); /* Brilho suave da cor primária */
}
.form .hint { 
    font-size: 0.8rem; 
    color: var(--txt-500); 
    margin-top: 5px; 
}

/* Checkbox e Radio (Estilos básicos, podem ser expandidos) */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
    cursor: pointer;
}
.form-check-input {
    width: 18px;
    height: 18px;
    appearance: none;
    border: 1px solid var(--glass-border);
    border-radius: 4px; /* Para checkbox */
    background-color: var(--bg-medium);
    transition: var(--transition-fast);
    position: relative;
    cursor: pointer;
}
.form-check-input[type="radio"] {
    border-radius: 50%; /* Para radio button */
}
.form-check-input:checked {
    background-color: var(--bee-primary);
    border-color: var(--bee-primary);
}
.form-check-input:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px; 
    height: 8px;
    background-color: var(--txt-black);
    border-radius: 2px; /* Para checkbox */
}
.form-check-input[type="radio"]:checked::before {
    border-radius: 50%; /* Para radio button */
}
.form-check-label {
    font-size: 0.9rem;
    color: var(--txt-300);
    cursor: pointer;
}

/* =========================================
   3. MODAL (JANELAS FLUTUANTES)
   ========================================= */
.modal {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Fundo semi-transparente */
    backdrop-filter: blur(8px); /* Efeito de desfoque */
    display: flex; 
    align-items: center; /* Centraliza verticalmente por padrão */
    justify-content: center; /* Centraliza horizontalmente */
    z-index: 2000; 
    opacity: 0; 
    pointer-events: none; /* Desabilita interações quando invisível */
    transition: opacity 0.3s ease;
    padding: 1rem;
}
.modal.active { 
    opacity: 1; 
    pointer-events: all; 
}

.modal-card {
    width: 100%; 
    max-width: 550px; /* Limite de largura em desktop */
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    display: flex; 
    flex-direction: column;
    max-height: 85vh; /* Altura máxima para desktop */
    transform: scale(0.95); /* Animação inicial */
    transition: transform 0.3s ease;
}
.modal.active .modal-card {
    transform: scale(1); /* Animação de entrada */
}

.modal-head {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}
.modal-head .title { 
    font-size: 1.1rem; 
    font-weight: 700; 
    color: var(--txt-100); 
}
.modal-body { 
    padding: 1.5rem; 
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch; 
    flex-grow: 1; /* Permite que o corpo ocupe o espaço restante */
}
.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex; 
    justify-content: flex-end; 
    gap: 0.5rem;
    background: var(--glass-fill);
}

/* Mobile Drawer (Estilo App - Mobile First) */
@media (max-width: 768px) {
    .modal { 
        align-items: flex-end; /* Ancorar na parte inferior */
        padding: 0; /* Remove padding lateral para mobile */
    }
    .modal-card { 
        border-radius: 20px 20px 0 0; /* Borda superior arredondada */
        max-height: 90vh; /* Ajuste a altura máxima para mobile */
        height: auto; /* Permite que a altura se ajuste ao conteúdo */
        transform: translateY(100%); /* Começa fora da tela */
    }
    .modal.active .modal-card {
        transform: translateY(0); /* Desliza para cima */
    }
    .modal-footer { 
        padding-bottom: 30px; /* Espaço extra para a base da tela */
    }
}

/* =========================================
   4. TABLES (TABELAS DE DADOS)
   ========================================= */
.table {
    width: 100%; 
    border-collapse: separate; 
    border-spacing: 0 6px; /* Espaçamento entre as linhas */
    margin-bottom: 1rem;
}
.table th {
    padding: 1rem; 
    text-align: left; 
    font-size: 0.75rem; 
    font-weight: 700;
    color: var(--txt-500); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    border: none;
}
.table tbody tr { 
    transition: transform 0.2s, box-shadow 0.2s; /* Adicionado box-shadow na transição */
}
.table tbody tr:hover { 
    transform: scale(1.01); 
    box-shadow: 0 0 10px rgba(254, 234, 0, 0.1); /* Brilho sutil no hover */
}
.table td {
    padding: 1rem; 
    background: var(--bg-800); 
    color: var(--txt-300);
    border: 1px solid var(--glass-border); /* Borda padrão */
}
/* Correção para bordas e borda-radius de células */
.table tbody tr td:first-child { 
    border-radius: 12px 0 0 12px; 
    border-right: none; 
}
.table tbody tr td:last-child { 
    border-radius: 0 12px 12px 0; 
    border-left: none; 
}
.table tbody tr td:not(:first-child):not(:last-child) { 
    border-left: none; 
    border-right: none; 
}
.table td.balance-column {
    text-align: right; 
    font-family: monospace; 
    font-weight: 700; 
    color: var(--bee-honey); 
    font-size: 1rem;
}

/* =========================================
   5. SIDEBAR (ADMIN & MENU LATERAL)
   ========================================= */
.brand {
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 0.5rem; 
    margin-bottom: 2rem; 
    text-decoration: none;
}
.brand .logo {
    width: 42px; 
    height: 42px; 
    background: var(--bee-primary); 
    color: var(--txt-black); /* Cor do texto preta */
    border-radius: var(--radius-sm); 
    display: grid; 
    place-items: center;
    font-size: 1.6rem; 
    box-shadow: var(--bee-glow);
}
.brand .name { 
    font-weight: 800; 
    font-size: 1.2rem; 
    color: var(--txt-100); 
}
.side-title {
    font-size: 0.75rem; 
    font-weight: 800; 
    color: var(--txt-500); 
    text-transform: uppercase;
    letter-spacing: 1.2px; 
    padding: 0 0.75rem; 
    margin-bottom: 0.75rem;
}
.side-item {
    display: flex; 
    align-items: center; 
    gap: 14px; 
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm); 
    color: var(--txt-300); 
    font-weight: 500;
    text-decoration: none; 
    transition: var(--transition-fast); 
    margin-bottom: 4px;
}
.side-item:hover { 
    background: var(--glass-fill); 
    color: var(--txt-100); 
}
.side-item:hover i { 
    color: var(--bee-primary); 
}
.side-item.active { 
    background: var(--glass-border); 
    color: var(--bee-primary); 
    font-weight: 700; 
}

/* =========================================
   6. CHAT (SUPORTE & IA)
   ========================================= */
/* Bolhas de Mensagem */
.chat-bubble {
    padding: 0.8rem 1.2rem;
    border-radius: 14px;
    max-width: 80%;
    line-height: 1.5;
    font-size: 0.95rem;
    position: relative;
    margin-bottom: 4px;
}

/* Mensagem do Cliente (Destaque Amarelo) */
.chat-bubble.user {
    background: var(--bee-primary);
    color: var(--txt-black);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

/* Mensagem da IA / Suporte (Fundo Escuro) */
.chat-bubble.ai, .chat-bubble.agent {
    background: var(--bg-medium);
    border: 1px solid var(--glass-border);
    color: var(--txt-100);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

/* Rodapé de Envio (Input e Botão) */
.chat-footer {
    padding: 1rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--glass-border);
    display: flex; /* Adicionado para alinhar input e botão */
    gap: 10px; /* Espaçamento entre input e botão */
}

.chat-footer .input {
    flex-grow: 1; /* Input ocupa o espaço restante */
    background: var(--bg-deep-dark) !important;
    border-radius: 25px; /* Estilo cápsula */
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--glass-border);
}

.chat-footer .btn-send {
    width: 45px; 
    height: 45px;
    min-width: 45px; /* Garante que o botão não encolha */
    border-radius: 50%;
    background: var(--bee-primary);
    color: var(--txt-black);
    box-shadow: var(--bee-glow); /* Usando variável de brilho */
}

/* =========================================
   7. NOTIFICAÇÕES (TOAST)
   ========================================= */
.toast-container {
    position: fixed; 
    top: 20px; 
    right: 20px; 
    z-index: 9999;
    display: flex; 
    flex-direction: column; 
    gap: 10px;
}
.toast-item {
    padding: 1rem 1.5rem; 
    background: var(--bg-dark); 
    color: var(--txt-100); /* Cor do texto branca */
    border-radius: var(--radius-sm); 
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--bee-primary); 
    animation: slideInRight 0.3s ease;
}
@keyframes slideInRight { 
    from { transform: translateX(100%); } 
    to { transform: translateX(0); } 
}

/* Mobile Toast (Posicionamento inferior para melhor UX) */
@media (max-width: 768px) {
    .toast-container {
        top: auto;
        bottom: 20px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100% - 40px); /* Ocupa a largura total com margem */
        align-items: center;
    }
    .toast-item {
        width: 100%;
        text-align: center;
        animation: slideInBottom 0.3s ease;
    }
    @keyframes slideInBottom {
        from { transform: translateY(100%); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
}


/* =========================================
   8. AUDITORIA (COMPLIANCE)
   ========================================= */
.doc-preview {
    background: var(--bg-deep-dark); 
    border: 2px dashed var(--glass-border); 
    transition: var(--transition-fast);
    padding: 1rem; /* Adicionado padding para melhor visualização */
    border-radius: var(--radius-sm); /* Adicionado border-radius */
}
.doc-preview:hover { 
    border-style: solid; 
    border-color: var(--bee-primary); 
    box-shadow: var(--bee-glow-subtle); /* Brilho sutil no hover */
}


/* =========================================
   9. ABAS DE NAVEGAÇÃO INTERNA (TABS)
   ========================================= */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
    flex-wrap: nowrap;
    overflow-x: auto; /* Permite rolar se tiver muitas abas */
    gap: 5px; /* Espaço entre as abas */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.auth-tabs::-webkit-scrollbar { display: none; }

.tab-link {
    padding: 1rem 1.2rem;
    cursor: pointer;
    color: var(--txt-500);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 3px solid transparent;
    transition: var(--transition-fast);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px; /* Espaço entre ícone e texto */
}

.tab-link i {
    font-size: 1rem;
}

/* Estado Ativo (Amarelo Neon) */
.tab-link.active {
    color: var(--bee-primary);
    border-bottom-color: var(--bee-primary);
    background: linear-gradient(to top, rgba(254, 234, 0, 0.05), transparent); /* Leve brilho no fundo */
}

.tab-link:hover {
    color: var(--txt-100);
}

/* Painéis de Conteúdo */
.tab-panel { 
    display: none; 
    animation: fadeIn 0.3s ease; 
}
.tab-panel.active { 
    display: block; 
}

@keyframes fadeIn { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}


/* =============================================================
   10. CARDS DIVERSOS (LAYOUT, VCC, COFRES)
   ============================================================= */

/* CARD PADRÃO DE LAYOUT (GLASSMORPHISM) */
.card {
    background: var(--bg-dark); /* Usando variável de fundo */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition-fast);
    height: 100%; /* Garante altura igual em grids */
    position: relative;
    overflow: hidden;
}

/* Hover suave para interatividade */
.card:hover {
    border-color: var(--bee-primary); /* Brilho com a cor primária */
    transform: translateY(-2px);
    box-shadow: var(--bee-glow-subtle); /* Brilho sutil no hover */
}

/* Tipografia Interna do Card */
.card .title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--txt-100);
    margin-bottom: 0.5rem;
}

.card .subtitle {
    font-size: 0.85rem;
    color: var(--txt-500);
    margin-bottom: 1rem;
}

/* ELEMENTOS DE PROGRESSO (BARRA DE LOADING/METAS) */
.progress-bar-container {
    height: 6px;
    background: var(--bg-medium);
    border-radius: 50px;
    overflow: hidden;
    margin: 1rem 0 0.5rem 0;
}

.progress-bar-fill {
    height: 100%;
    background: var(--bee-primary);
    box-shadow: 0 0 10px rgba(254, 234, 0, 0.3); /* Pode ser var(--bee-glow-subtle) */
    border-radius: 50px;
    transition: width 0.5s ease;
}

/* CARTÃO VCC (CARTEIRA DIGITAL - TOPO DO DASHBOARD) */
.wallet-card {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-deep-dark) 100%); /* Usando variáveis */
    border: 1px solid var(--bee-honey);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    color: var(--txt-100);
    margin-top: 10px;
}

.wallet-card .balance {
    margin: 15px 0;
}

.wallet-card .wallet-actions button {
    backdrop-filter: blur(5px);
}

/* CARTÃO DE CRÉDITO REALISTA (BEE BLACK INFINITE) */
.bee-card {
    aspect-ratio: 1.586 / 1;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-deep-dark) 50%, var(--bg-dark) 100%); /* Usando variáveis */
    border-radius: var(--radius-md); /* Usando variável de raio */
    box-shadow: 
        0 20px 40px -10px rgba(0, 0, 0, 0.8), 
        0 0 0 1px rgba(254, 234, 0, 0.1) inset; /* Pode ser var(--bee-glow-subtle) */
    position: relative;
    overflow: hidden;
    color: var(--txt-100);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-fast), box-shadow 0.3s ease; /* Usando transição global */
}

.bee-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 30px 60px -12px rgba(0, 0, 0, 0.9),
        0 0 0 1px var(--bee-primary) inset; /* Brilho de inset com a cor primária */
}

/* Textura de Fundo (Colmeia Sutil) */
.bee-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    /* Ajustado para usar uma opacidade mais sutil e fill do theme.css */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cpath fill='%23FEEA00' d='M13.99 9.25l13.99 8V33l-13.99 8L0 33V17.25z'/%3E%3C/svg%3E");
    background-size: 30px;
    opacity: 0.03; /* Ainda mais sutil para o efeito de fundo do card */
    mix-blend-mode: overlay;
    z-index: 1;
}

/* Reflexo de Luz (Shine) */
.bee-card::after {
    content: '';
    position: absolute; top: -50%; left: -50%; right: -50%; bottom: -50%;
    /* Ajustado para usar rgba com base na --bee-primary para consistência */
    background: linear-gradient(115deg, transparent 20%, rgba(254,234,0,0.1) 40%, rgba(255,255,255,0.1) 50%, rgba(254,234,0,0.1) 60%, transparent 80%);
    transform: rotate(-20deg);
    z-index: 2;
    pointer-events: none;
    animation: cardShine 6s infinite linear;
}

@keyframes cardShine {
    0% { transform: translateX(-30%) translateY(-30%) rotate(-20deg); }
    100% { transform: translateX(30%) translateY(30%) rotate(-20deg); }
}

/* Conteúdo do Cartão (Acima do brilho) */
.bee-card-content {
    position: relative; z-index: 10;
    height: 100%; display: flex; flex-direction: column; justify-content: space-between;
}

.bee-card-top { display: flex; justify-content: space-between; align-items: flex-start; }

.card-chip {
    width: 50px; height: 38px;
    background: linear-gradient(135deg, #d4af37 0%, #f9d976 50%, #d4af37 100%);
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.2);
}

.card-brand-logo {
    font-weight: 900; font-style: italic; font-size: 1.5rem;
    color: rgba(255,255,255,0.8);
}

.card-number {
    font-family: 'Courier New', monospace;
    font-size: 1.4rem; font-weight: 700; letter-spacing: 2px;
    color: var(--bee-primary);
    text-shadow: 0 0 10px rgba(254, 234, 0, 0.5); /* Brilho do número */
    margin: 15px 0;
    white-space: nowrap;
}

.bee-card-footer { display: flex; justify-content: space-between; align-items: flex-end; }

.card-holder-label, .card-expiry-label {
    display: block; font-size: 0.6rem; color: var(--txt-500); letter-spacing: 1px;
}

.card-holder-name { font-weight: 600; text-transform: uppercase; font-size: 0.9rem; }
.card-expiry-date { font-weight: 600; font-size: 0.9rem; }

/* GOAL CARD (COFRES INTELIGENTES) */
.goal-card {
    background: linear-gradient(145deg, var(--bg-dark), var(--bg-deep-dark)); /* Usando variáveis */
    border: 1px solid rgba(255, 215, 0, 0.15); /* Borda Ouro Sutil */
    border-radius: var(--radius-md); /* Usando variável de raio */
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition-fast);
}

.goal-card:hover {
    transform: translateY(-2px);
    border-color: var(--bee-primary);
    box-shadow: var(--bee-glow-subtle); /* Brilho sutil no hover */
}

.goal-header { display: flex; align-items: center; gap: 10px; }
.goal-icon { font-size: 1.8rem; }
.goal-name { font-weight: 700; color: var(--txt-100); font-size: 1.1rem; }
.goal-balance { font-size: 1.6rem; font-weight: 800; color: var(--bee-honey); margin: 5px 0; }
.goal-target { font-size: 0.85rem; color: var(--txt-500); }

.goal-actions { display: flex; gap: 10px; margin-top: 10px; }


.bottom-tab-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    width: 100%;
    background: var(--bg-dark);
    border-top: 1px solid var(--glass-border);
    position: sticky;
    bottom: 0;
    z-index: var(--z-sidebar);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: var(--txt-500);
    text-decoration: none;
    transition: var(--transition-fast);
}
.tab-item i {
    font-size: 1.25rem;
}
.tab-item span {
    font-size: 0.75rem; /* Mais pequeno */
    font-weight: 500;
    margin-top: 4px;
}

.tab-item:hover {
    color: var(--txt-100);
}

/* O estado ATIVO usa a cor primﾃ｡ria */
.tab-item.active {
    color: var(--bee-primary);
    font-weight: 700;
}

/* CARD PADRÃO DE LAYOUT (GLASSMORPHISM) */
.card {
    background: var(--bg-dark); /* Usando variável de fundo */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition-fast);
    height: 100%; /* Garante altura igual em grids */
    position: relative;
    overflow: hidden;
}

/* Hover suave para interatividade */
.card:hover {
    border-color: var(--bee-primary); /* Brilho com a cor primária */
    transform: translateY(-2px);
    box-shadow: var(--bee-glow-subtle); /* Brilho sutil no hover */
}

/* Tipografia Interna do Card */
.card .title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--txt-100);
    margin-bottom: 0.5rem;
}

.card .subtitle {
    font-size: 0.85rem;
    color: var(--txt-500);
    margin-bottom: 1rem;
}

/* ELEMENTOS DE PROGRESSO (BARRA DE LOADING/METAS) */
.progress-bar-container {
    height: 6px;
    background: var(--bg-medium);
    border-radius: 50px;
    overflow: hidden;
    margin: 1rem 0 0.5rem 0;
}

.progress-bar-fill {
    height: 100%;
    background: var(--bee-primary);
    box-shadow: 0 0 10px rgba(254, 234, 0, 0.3); /* Pode ser var(--bee-glow-subtle) */
    border-radius: 50px;
    transition: width 0.5s ease;
}

/* CARTÃO VCC (CARTEIRA DIGITAL - TOPO DO DASHBOARD) */
.wallet-card {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-deep-dark) 100%); /* Usando variáveis */
    border: 1px solid var(--bee-honey);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    color: var(--txt-100);
    margin-top: 10px;
}

.wallet-card .balance {
    margin: 15px 0;
}

.wallet-card .wallet-actions button {
    backdrop-filter: blur(5px);
}

/* CARTÃO DE CRÉDITO REALISTA (BEE BLACK INFINITE) */
.bee-card {
    aspect-ratio: 1.586 / 1;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-deep-dark) 50%, var(--bg-dark) 100%); /* Usando variáveis */
    border-radius: var(--radius-md); /* Usando variável de raio */
    box-shadow: 
        0 20px 40px -10px rgba(0, 0, 0, 0.8), 
        0 0 0 1px rgba(254, 234, 0, 0.1) inset; /* Pode ser var(--bee-glow-subtle) */
    position: relative;
    overflow: hidden;
    color: var(--txt-100);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-fast), box-shadow 0.3s ease; /* Usando transição global */
}

.bee-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 30px 60px -12px rgba(0, 0, 0, 0.9),
        0 0 0 1px var(--bee-primary) inset; /* Brilho de inset com a cor primária */
}

/* Textura de Fundo (Colmeia Sutil) */
.bee-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    /* Ajustado para usar uma opacidade mais sutil e fill do theme.css */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cpath fill='%23FEEA00' d='M13.99 9.25l13.99 8V33l-13.99 8L0 33V17.25z'/%3E%3C/svg%3E");
    background-size: 30px;
    opacity: 0.03; /* Ainda mais sutil para o efeito de fundo do card */
    mix-blend-mode: overlay;
    z-index: 1;
}

/* Reflexo de Luz (Shine) */
.bee-card::after {
    content: '';
    position: absolute; top: -50%; left: -50%; right: -50%; bottom: -50%;
    /* Ajustado para usar rgba com base na --bee-primary para consistência */
    background: linear-gradient(115deg, transparent 20%, rgba(254,234,0,0.1) 40%, rgba(255,255,255,0.1) 50%, rgba(254,234,0,0.1) 60%, transparent 80%);
    transform: rotate(-20deg);
    z-index: 2;
    pointer-events: none;
    animation: cardShine 6s infinite linear;
}

@keyframes cardShine {
    0% { transform: translateX(-30%) translateY(-30%) rotate(-20deg); }
    100% { transform: translateX(30%) translateY(30%) rotate(-20deg); }
}

/* Conteúdo do Cartão (Acima do brilho) */
.bee-card-content {
    position: relative; z-index: 10;
    height: 100%; display: flex; flex-direction: column; justify-content: space-between;
}

.bee-card-top { display: flex; justify-content: space-between; align-items: flex-start; }

.card-chip {
    width: 50px; height: 38px;
    background: linear-gradient(135deg, #d4af37 0%, #f9d976 50%, #d4af37 100%);
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.2);
}

.card-brand-logo {
    font-weight: 900; font-style: italic; font-size: 1.5rem;
    color: rgba(255,255,255,0.8);
}

.card-number {
    font-family: 'Courier New', monospace;
    font-size: 1.4rem; font-weight: 700; letter-spacing: 2px;
    color: var(--bee-primary);
    text-shadow: 0 0 10px rgba(254, 234, 0, 0.5); /* Brilho do número */
    margin: 15px 0;
    white-space: nowrap;
}

.bee-card-footer { display: flex; justify-content: space-between; align-items: flex-end; }

.card-holder-label, .card-expiry-label {
    display: block; font-size: 0.6rem; color: var(--txt-500); letter-spacing: 1px;
}

.card-holder-name { font-weight: 600; text-transform: uppercase; font-size: 0.9rem; }
.card-expiry-date { font-weight: 600; font-size: 0.9rem; }

/* GOAL CARD (COFRES INTELIGENTES) */
.goal-card {
    background: linear-gradient(145deg, var(--bg-dark), var(--bg-deep-dark)); /* Usando variáveis */
    border: 1px solid rgba(255, 215, 0, 0.15); /* Borda Ouro Sutil */
    border-radius: var(--radius-md); /* Usando variável de raio */
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition-fast);
}

.goal-card:hover {
    transform: translateY(-2px);
    border-color: var(--bee-primary);
    box-shadow: var(--bee-glow-subtle); /* Brilho sutil no hover */
}

.goal-header { display: flex; align-items: center; gap: 10px; }
.goal-icon { font-size: 1.8rem; }
.goal-name { font-weight: 700; color: var(--txt-100); font-size: 1.1rem; }
.goal-balance { font-size: 1.6rem; font-weight: 800; color: var(--bee-honey); margin: 5px 0; }
.goal-target { font-size: 0.85rem; color: var(--txt-500); }

.goal-actions { display: flex; gap: 10px; margin-top: 10px; }


/* =============================================================
   11. INVESTMENT ASSET CARD (NOVA SEÇÃO)
   ============================================================= */

/* O .card já possui estilos base. `.asset-card-template` irá adicionar os específicos. */
.asset-card-template {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Remover background, border, shadow se já definidos em .card */
    /* Adicione quaisquer estilos que diferenciem este card do .card genérico */
}

/* Imagem do Investment Asset */
.asset-image { /* Este é o elemento que o JS seleciona */
    width: 100%;
    height: 180px; /* Altura fixa para consistência visual */
    object-fit: cover; /* Recorta a imagem para preencher o espaço sem distorcer */
    display: block; /* Garante que a imagem se comporte como um bloco */
    border-radius: var(--radius-md) var(--radius-md) 0 0; /* Arredonda apenas os cantos superiores */
}

/* Corpo do card, com flex para layout interno */
.asset-body-flex {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Classes de Tipografia para o Asset Card */
.asset-name {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--txt-100);
}
.asset-description {
    font-size: 0.85rem;
    line-height: 1.4;
    flex-grow: 1; /* Permite que a descrição ocupe espaço flexível */
    color: var(--txt-300);
}
.asset-value-sm {
    font-size: 0.8rem;
    color: var(--txt-100);
}
.asset-yield-ok {
    font-size: 0.8rem;
    color: var(--ok);
}

/* Progress bar específica do Asset Card */
.progress-bar-thin { /* Este é o container da barra de progresso */
    height: 6px;
    background: var(--bg-800);
    border-radius: 50px;
    overflow: hidden;
    margin-top: 0.75rem; /* Espaçamento após a descrição */
    margin-bottom: 0.5rem;
}
.progress-bar-fill-primary { /* Este é o preenchimento da barra */
    height: 100%;
    background: var(--bee-primary);
    box-shadow: 0 0 10px rgba(254, 234, 0, 0.3); /* Pode usar var(--bee-glow-subtle) */
    border-radius: 50px;
    transition: width 0.5s ease;
}

/* Badge de localização (movido do JS para CSS) */
.location-badge {
    cursor: pointer;
    background: rgba(0,0,0,0.6);
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--txt-100); /* Cor de texto branca */
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(3px); /* Efeito glass para o badge */
}
.location-badge i {
    color: #EA4335; /* Cor vermelha para o ícone de mapa (Google Maps) */
}

/* Garante que o container do card seja relativo para posicionar o badge */
.card.asset-card-template {
    position: relative;
}

.toast-item {
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    color: var(--txt-100);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.toast-item.toast-info { background-color: var(--bg-medium); }
.toast-item.toast-success { background-color: var(--ok); }
.toast-item.toast-error { background-color: var(--err); }
.toast-item.toast-warning { background-color: var(--warn); }

 .pwa-install-banner {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background-color: var(--card-bg, #2a2a2a); /* Cor de fundo do banner */
            color: var(--txt-white, #fff);
            padding: 10px 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 15px;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
            z-index: 1000; /* Garante que o banner esteja acima de outros elementos */
            border-top: 1px solid var(--glass-border);
            transition: transform 0.3s ease-in-out;
            transform: translateY(100%); /* Começa fora da tela */
        }
        .pwa-install-banner.d-none {
            transform: translateY(100%); /* Escondido */
        }
        .pwa-install-banner.show { /* Será adicionado via JS quando o prompt estiver disponível */
            transform: translateY(0); /* Visível */
        }
        .pwa-banner-content {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-grow: 1;
        }
        .pwa-banner-logo {
            width: 30px;
            height: 30px;
            border-radius: 5px;
        }
        .pwa-banner-app-info {
            line-height: 1.2;
        }
        .pwa-banner-title {
            font-weight: bold;
            display: block;
            font-size: 0.95rem;
        }
        .pwa-banner-subtitle {
            font-size: 0.75rem;
            color: var(--txt-500, #ccc);
        }
        .pwa-banner-actions {
            display: flex;
            gap: 10px;
        }
        .pwa-banner-actions .btn {
            padding: 8px 15px;
            font-size: 0.85rem;
            font-weight: bold;
            border-radius: 5px;
        }
        /* Ajuste para o body quando o banner estiver visível */
        body.has-pwa-banner {
            padding-bottom: 50px; /* Altura do banner + padding */
        }
   
   .seu-container-com-o-botao {
    position: relative; /* ou outra posição */
    z-index: 1; /* Um valor base, se necessário */
}
.sua-classe-do-botao {
    position: relative; /* Ou absolute, fixed */
    z-index: 9999; /* Um valor bem alto para garantir que ele esteja acima de tudo */
}

.pai-do-botao {
    overflow: visible; /* Pode resolver, mas cuidado com o layout */
}
/* Ou, se o botão está position:absolute, ajuste suas coordenadas */
.sua-classe-do-botao {
    position: absolute;
    bottom: 10px; /* Exemplo: 10px do fundo */
    right: 10px;  /* Exemplo: 10px da direita */
}
/* =========================================
   12. PAGAMENTOS, PIX E BOLETO (STYLES ESPECÍFICOS)
   ========================================= */

/* Wrapper do QR Code (Fundo branco é obrigatório para leitura) */
.deposit-qr-wrapper {
    background-color: #ffffff;
    padding: 15px;
    border-radius: var(--radius-md);
    margin: 1.5rem auto; /* Centraliza vertical/horizontal */
    max-width: 240px;    /* Limita o tamanho para não estourar */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.5); /* Destaque */
}

/* A imagem do QR Code em si */
.deposit-qr-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Texto de valor abaixo do QR Code */
.deposit-amount-display {
    text-align: center;
    margin-bottom: 1.5rem;
}
.deposit-amount-display span {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--bee-honey);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Grupo de Input "Copia e Cola" */
.pix-copy-input-group {
    margin-bottom: 1.5rem;
    background: var(--bg-deep-dark);
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
}
.pix-copy-label {
    display: block;
    font-size: 0.75rem;
    color: var(--txt-500);
    margin-bottom: 5px;
    text-transform: uppercase;
}
.pix-copy-input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--txt-300);
    font-family: monospace;
    font-size: 0.9rem;
    outline: none;
    text-overflow: ellipsis; /* Três pontinhos se for muito longo */
}

/* Grid de Botões de Ação (PDF, Email, Voltar) */
.deposit-actions-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: Um embaixo do outro */
    gap: 10px;
    margin-top: 10px;
}

/* Botão específico para PDF/Boleto (Estilo Híbrido) */
.btn-white-bold {
    background: #fff;
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    border: none;
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: transform 0.2s;
}
.btn-white-bold:hover {
    transform: scale(1.02);
    background: var(--bee-primary); /* Vira amarelo no hover */
}

/* Botão Outline (Borda apenas) para ações secundárias */
.btn-outline-bee-primary {
    background: transparent;
    border: 1px solid var(--bee-primary);
    color: var(--bee-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-outline-bee-primary:hover {
    background: var(--bee-primary);
    color: #000;
}

.btn-outline-dark-muted {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--txt-500);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.btn-outline-dark-muted:hover {
    border-color: var(--txt-300);
    color: var(--txt-300);
}

/* Exibição do TxID (ID da Transação) */
.tx-id-display {
    text-align: center;
    margin-top: 20px;
    font-size: 0.7rem;
    color: var(--txt-500);
    border-top: 1px dashed var(--glass-border);
    padding-top: 10px;
}
.tx-id-display span:last-child {
    color: var(--txt-300);
    font-family: monospace;
}

/* Responsividade para Desktop (Botões lado a lado) */
@media (min-width: 768px) {
    .deposit-actions-grid {
        grid-template-columns: 1fr 1fr; /* Dois botões por linha */
    }
    /* O último botão (Voltar) ocupa a largura total se for o terceiro */
    .deposit-actions-grid button:last-child:nth-child(odd) {
        grid-column: span 2;
    }
}

/* =============================================================
   PATCH SUPERADMIN 3.0 - GOD MODE & UTILS
   ============================================================= */

/* 1. STATUS INDICATOR - ESTADO DE ALERTA (DB LAG) */
/* Já existe .online e .offline no layout.css, falta o warning */
.status-indicator.warning {
    background-color: var(--warn); /* Amarelo/Laranja */
    box-shadow: 0 0 8px var(--warn);
    animation: pulse 1.5s infinite;
}

/* 2. TOGGLE SWITCH (INTERRUPTORES) */
/* Estilo personalizado para os checkboxes ficarem como "chaves" */
.form-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.form-switch .form-check-input {
    appearance: none;
    -webkit-appearance: none;
    width: 40px;
    height: 22px;
    background: var(--bg-medium);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0; /* Remove margem padrão */
}
.form-switch .form-check-input::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: var(--txt-500);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}
/* Estado Ativo */
.form-switch .form-check-input:checked {
    background: var(--bee-primary); /* Amarelo Bee */
    border-color: var(--bee-primary);
}
.form-switch .form-check-input:checked::after {
    transform: translateX(18px);
    background: #000; /* Bolinha preta no fundo amarelo */
}

/* 3. CARDS DE ADMINISTRAÇÃO (SETTINGS) */
.admin-card-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 20px;
}
.admin-card-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}
.config-group {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.config-group:last-child {
    border-bottom: none;
}

/* 4. TEXTO NEON (GOD MODE) */
.text-neon-gold {
    color: var(--bee-primary) !important;
    text-shadow: 0 0 10px rgba(254, 234, 0, 0.2);
    font-weight: 800;
    letter-spacing: 1px;
}

/* 5. ANIMAÇÕES SIMPLES (Caso não use animate.css) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate__animated.animate__fadeIn {
    animation: fadeIn 0.4s ease-out forwards;
}
