/* ==========================================
   RESET E BASE
   ========================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
    background: #ffffff; 
    color: #0a2540; 
    line-height: 1.5; 
    -webkit-font-smoothing: antialiased;
}

/* Barra de rolagem premium */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f5f7fa; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #00d4aa; }

/* ==========================================
   LOGO PREMIUM H-INVEST
   ========================================== */
.logo { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 14px; 
    margin-bottom: 8px; 
}

.logo-icon { 
    width: 56px; 
    height: 56px; 
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 50%, #009688 100%); 
    color: #ffffff; 
    border-radius: 16px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 900; 
    font-size: 32px; 
    font-family: 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 8px 24px rgba(0, 212, 170, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    letter-spacing: -2px;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.4) 50%, transparent 60%);
    animation: logoShine 4s infinite ease-in-out;
}

@keyframes logoShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    20%, 100% { transform: translateX(100%) rotate(45deg); }
}

.logo-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 212, 170, 0.6);
}

.auth-header h1 { 
    font-size: 28px; 
    font-weight: 800; 
    color: #0a2540; 
    letter-spacing: -0.5px;
}

.auth-header h1::first-letter {
    color: #00b894;
    font-size: 34px;
}

.auth-header p { 
    color: #6b7c93; 
    font-size: 14px; 
    font-weight: 500;
}

.sidebar-header { 
    display: flex; 
    align-items: center; 
    gap: 14px; 
    padding: 24px 20px; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    margin-bottom: 20px; 
}

.sidebar-header .logo-icon {
    width: 44px;
    height: 44px;
    font-size: 26px;
    box-shadow: 0 4px 16px rgba(0, 212, 170, 0.3);
}

.sidebar-header h2 { 
    font-size: 22px; 
    font-weight: 800; 
    color: #ffffff; 
    letter-spacing: -0.5px;
}

.sidebar-header h2::first-letter {
    color: #00d4aa;
    font-size: 28px;
}

/* ==========================================
   AUTH SCREEN - TELA DE LOGIN/CADASTRO
   ========================================== */
.auth-screen { 
    min-height: 100vh; 
    background: #ffffff;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 20px; 
}

.auth-container { 
    background: #ffffff; 
    border-radius: 24px; 
    padding: 32px; 
    width: 100%; 
    max-width: 440px; 
    border: 1px solid #e3e8ee;
    box-shadow: 0 4px 24px rgba(10, 37, 64, 0.06);
}

.auth-header { text-align: center; margin-bottom: 28px; }

.auth-tabs { 
    display: flex; 
    background: #f5f7fa; 
    border-radius: 12px; 
    padding: 4px; 
    margin-bottom: 24px; 
    border: 1px solid #e3e8ee;
}

.auth-tab { 
    flex: 1; 
    padding: 12px; 
    border: none; 
    background: none; 
    font-size: 14px; 
    font-weight: 600; 
    color: #6b7c93; 
    cursor: pointer; 
    border-radius: 8px; 
    transition: all 0.3s; 
}

.auth-tab.active { 
    background: #ffffff; 
    color: #0a2540; 
    box-shadow: 0 2px 8px rgba(10, 37, 64, 0.08); 
}

.auth-form { display: none; }
.auth-form.active { display: block; animation: fadeIn 0.3s ease; }

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

.input-group { margin-bottom: 16px; position: relative; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #0a2540; }
.input-group input, .input-group select { 
    width: 100%; 
    padding: 12px 14px; 
    border: 1.5px solid #e3e8ee; 
    border-radius: 10px; 
    font-size: 14px; 
    font-family: inherit; 
    transition: all 0.2s; 
    background: #fafbfc; 
}
.input-group input:focus, .input-group select:focus { 
    outline: none; 
    border-color: #00d4aa; 
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.15); 
    background: #ffffff; 
}

.input-group input.error { border-color: #ff4444; box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.15); }
.input-group input.success { border-color: #00c853; box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.15); }

.input-group input.referral-filled { 
    background-color: #f0fffc; 
    border-color: #00d4aa; 
    font-weight: 600; 
    color: #00b894; 
}

.btn-primary { 
    width: 100%; 
    padding: 14px; 
    background: linear-gradient(135deg, #00d4aa, #00b894); 
    color: #0a2540; 
    border: none; 
    border-radius: 10px; 
    font-size: 15px; 
    font-weight: 700; 
    cursor: pointer; 
    transition: all 0.2s; 
    font-family: inherit; 
    margin-top: 8px; 
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 212, 170, 0.4); }

/* ✅ AJUSTE PARA O BOTÃO DESABILITADO (FORA DO HORÁRIO DE SAQUE) */
.btn-primary:disabled { 
    background: #cbd5e1 !important; 
    color: #64748b !important;
    cursor: not-allowed; 
    transform: none !important; 
    box-shadow: none !important; 
}

/* ==========================================
   DASHBOARD LAYOUT
   ========================================== */
.dashboard-screen { display: flex; min-height: 100vh; }

.topbar { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    height: 60px; 
    background: white; 
    border-bottom: 1px solid #e3e8ee; 
    display: flex; 
    align-items: center; 
    padding: 0 20px; 
    z-index: 100; 
    gap: 16px; 
}

.menu-btn { 
    width: 40px; 
    height: 40px; 
    border: none; 
    background: #f5f7fa; 
    border-radius: 10px; 
    font-size: 20px; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #0a2540;
}

.topbar-title { 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    flex: 1; 
    min-width: 0; 
}
.greeting-text { font-size: 11px; color: #6b7c93; line-height: 1.2; }
.greeting-name { 
    font-size: 15px; 
    font-weight: 700; 
    color: #0a2540; 
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.topbar-balance { 
    background: #0a2540; 
    color: white; 
    padding: 8px 16px; 
    border-radius: 50px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 13px; 
    flex-shrink: 0; 
}
.balance-value { font-weight: 700; font-size: 15px; }

.sidebar { 
    position: fixed; 
    top: 0; 
    left: -280px; 
    width: 260px; 
    height: 100vh; 
    background: #0a2540; 
    color: white; 
    z-index: 200; 
    transition: left 0.3s ease; 
    padding: 20px 0; 
}
.sidebar.open { left: 0; }

.sidebar-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: rgba(0,0,0,0.5); 
    z-index: 150; 
    display: none; 
    backdrop-filter: blur(2px);
}
.sidebar-overlay.show { display: block; }

.sidebar-user { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 16px 20px; 
    background: rgba(255,255,255,0.05); 
    margin: 0 16px 20px; 
    border-radius: 12px; 
}

.user-avatar { 
    width: 44px; 
    height: 44px; 
    background: linear-gradient(135deg, #00d4aa, #00b894); 
    color: #0a2540; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 700; 
    flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; overflow: hidden; }
.user-info h4 { 
    font-size: 14px; 
    font-weight: 600; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.user-info p { 
    font-size: 12px; 
    opacity: 0.7; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap; 
}

.sidebar-nav { display: flex; flex-direction: column; gap: 4px; padding: 0 12px; }
.nav-link { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 14px 16px; 
    color: rgba(255,255,255,0.75); 
    text-decoration: none; 
    border-radius: 10px; 
    font-size: 14px; 
    transition: all 0.2s; 
}
.nav-link:hover { background: rgba(255,255,255,0.08); color: white; }
.nav-link.active { background: linear-gradient(135deg, #00d4aa, #00b894); color: #0a2540; font-weight: 600; }
.nav-link.logout { color: #ff6b6b; margin-top: 12px; }
.nav-link.logout:hover { background: rgba(255, 107, 107, 0.1); color: #ff6b6b; }

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

.main-content { flex: 1; margin-top: 60px; padding: 24px 20px; max-width: 1200px; width: 100%; }
.page { display: none; }
.page.active { display: block; animation: fadeIn 0.3s ease; }

.page-header { margin-bottom: 24px; }
.page-header h2 { font-size: 24px; font-weight: 700; color: #0a2540; margin-bottom: 4px; }
.page-header p { color: #6b7c93; font-size: 14px; }

/* ==========================================
   COMPONENTES DO DASHBOARD
   ========================================== */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { 
    background: white; 
    border-radius: 16px; 
    padding: 20px; 
    display: flex; 
    gap: 14px; 
    align-items: center; 
    box-shadow: 0 2px 8px rgba(10, 37, 64, 0.08); 
    border: 1px solid #e3e8ee; 
}
.stat-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon i { font-size: 24px; }
.stat-icon.green { background: rgba(0, 200, 83, 0.15); color: #00c853; }
.stat-icon.blue { background: rgba(33, 150, 243, 0.15); color: #2196f3; }
.stat-icon.orange { background: rgba(255, 152, 0, 0.15); color: #ff9800; }
.stat-icon.purple { background: rgba(156, 39, 176, 0.15); color: #9c27b0; }

.stat-label { font-size: 12px; color: #6b7c93; font-weight: 500; }
.stat-info h3 { font-size: 20px; font-weight: 700; color: #0a2540; }

.card { 
    background: white; 
    border-radius: 16px; 
    padding: 24px; 
    box-shadow: 0 2px 8px rgba(10, 37, 64, 0.08); 
    border: 1px solid #e3e8ee; 
    margin-bottom: 20px; 
}
.card-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 20px; 
    padding-bottom: 16px; 
    border-bottom: 1px solid #e3e8ee; 
}
.card-header h3 { font-size: 16px; font-weight: 700; color: #0a2540; display: flex; align-items: center; }
.card-header h3 i { margin-right: 8px; color: #00d4aa; }

/* ==========================================
   PLANOS DE INVESTIMENTO
   ========================================== */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.plan-card { 
    background: white; 
    border-radius: 16px; 
    padding: 24px; 
    box-shadow: 0 2px 8px rgba(10, 37, 64, 0.08); 
    border: 2px solid #e3e8ee; 
    transition: all 0.3s; 
}
.plan-card:hover { transform: translateY(-4px); border-color: #00d4aa; }
.plan-card.featured { border-color: #00d4aa; background: linear-gradient(135deg, white, #f0fffc); }

.plan-tag { display: inline-block; padding: 4px 12px; background: #f5f7fa; color: #6b7c93; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; margin-bottom: 12px; }
.plan-tag.featured { background: linear-gradient(135deg, #00d4aa, #00b894); color: #0a2540; }

.plan-card h3 { font-size: 20px; font-weight: 700; color: #0a2540; margin-bottom: 8px; }
.plan-price { font-size: 32px; font-weight: 800; color: #0a2540; margin-bottom: 16px; }
.plan-price small { font-size: 16px; color: #6b7c93; }

.plan-card ul { list-style: none; margin-bottom: 20px; }
.plan-card ul li { padding: 8px 0; font-size: 14px; border-bottom: 1px dashed #e3e8ee; display: flex; align-items: center; }
.plan-card ul li i { margin-right: 8px; font-size: 14px; flex-shrink: 0; }

/* ==========================================
   CARTEIRA E SISTEMA DE RECARGA
   ========================================== */
.wallet-grid { display: flex; flex-direction: column; gap: 30px; margin-bottom: 20px; }

.amount-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.amount-btn {
    padding: 16px;
    border: 2px solid #e3e8ee;
    background: white;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #0a2540;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}
.amount-btn:hover {
    border-color: #00d4aa;
    background: #f0fffc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.2);
}
.amount-btn:active { transform: translateY(0); }

.processing-container { text-align: center; padding: 40px 20px; }

.spinner-ring {
    width: 60px;
    height: 60px;
    border: 4px solid #f5f7fa;
    border-top: 4px solid #00d4aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.countdown-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff3cd;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #856404;
    margin-top: 12px;
}

.pix-success-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #00c853, #009624);
    color: white;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 16px;
}
.pix-success-header i { font-size: 24px; }

/* Caixa de PIX Unificada e Premium */
.payment-link-box { 
    background: #f0fffc; 
    border: 2px solid #00d4aa; 
    border-radius: 12px; 
    padding: 20px; 
    margin-top: 16px; 
}
.payment-label { 
    font-size: 14px; 
    font-weight: 600; 
    color: #0a2540; 
    margin-bottom: 12px; 
    display: block; 
}
.link-display { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    background: #ffffff; 
    padding: 12px; 
    border-radius: 8px; 
    border: 1px dashed #00b894; 
    margin-bottom: 12px; 
}
.link-display span { 
    flex: 1; 
    font-family: 'Courier New', monospace; 
    font-size: 12px; 
    word-break: break-all; 
    color: #0a2540;
}
.btn-copy { 
    background: #00d4aa; 
    color: #0a2540; 
    border: none; 
    padding: 8px 14px; 
    border-radius: 8px; 
    font-weight: 600; 
    cursor: pointer; 
    white-space: nowrap; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    transition: all 0.2s;
}
.btn-copy:hover { background: #00b894; }

.payment-steps {
    margin: 20px 0;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
}
.step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: #0a2540;
    border-bottom: 1px dashed #e3e8ee;
}
.step:last-child { border-bottom: none; }
.step span {
    background: #00d4aa;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.payment-tip { font-size: 12px; color: #6b7c93; margin-top: 12px; line-height: 1.4; }

.btn-text {
    background: transparent;
    border: 1px solid #e3e8ee;
    color: #6b7c93;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 10px;
}
.btn-text:hover { background: #f5f7fa; color: #0a2540; }

/* ==========================================
   SAQUE E TRANSAÇÕES
   ========================================== */
.withdraw-summary { background: #f5f7fa; border-radius: 12px; padding: 16px; margin-bottom: 20px; border: 1px solid #e3e8ee; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.summary-row.fee { color: #f44336; border-bottom: 1px dashed #e3e8ee; padding-bottom: 12px; margin-bottom: 4px; }
.summary-row.total { font-size: 16px; font-weight: 700; color: #00c853; }

.checkbox-group { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; font-size: 13px; color: #6b7c93; }
.checkbox-group input { width: 18px; height: 18px; margin-top: 2px; accent-color: #00d4aa; }

.withdraw-locked { position: relative; }
.withdraw-locked::after { 
    content: "🔒 Ative um plano ou faça uma recarga para liberar o saque"; 
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; 
    background: rgba(255, 255, 255, 0.95); 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 16px; font-weight: 700; font-size: 14px; color: #0a2540; 
    z-index: 10; text-align: center; padding: 20px; border: 2px solid #e3e8ee;
    backdrop-filter: blur(2px);
}

.list-container { display: flex; flex-direction: column; gap: 10px; }

.list-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 14px 16px; 
    background: #f5f7fa; 
    border-radius: 10px; 
    border-left: 4px solid #e3e8ee;
    overflow: hidden; 
    width: 100%;
    transition: transform 0.2s;
}
.list-item:hover { transform: translateX(2px); }

.list-item.deposit { border-left-color: #00c853; }
.list-item.withdraw, .list-item.withdraw_request { border-left-color: #ff9800; }
.list-item.investment { border-left-color: #2196f3; }
.list-item.earning, .list-item.bonus { border-left-color: #00d4aa; }

.list-item .content { flex: 1; min-width: 0; overflow: hidden; padding-right: 12px; }
.list-item strong { color: #0a2540; font-size: 13px; display: block; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item p { font-size: 11px; color: #6b7c93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.list-item .amount { font-size: 14px; font-weight: 700; white-space: nowrap; flex-shrink: 0; color: #00c853; margin-left: 8px; }

.empty-state { text-align: center; padding: 32px; color: #6b7c93; font-size: 14px; }

/* ==========================================
   INDICAÇÕES E PERFIL
   ========================================== */
.referral-box { background: linear-gradient(135deg, #0a2540, #1e3a5f); color: white; padding: 28px; border-radius: 16px; text-align: center; margin-bottom: 24px; }
.referral-label { font-size: 14px; opacity: 0.85; margin-bottom: 12px; }
.referral-code-display { display: flex; align-items: center; justify-content: center; gap: 12px; background: rgba(255,255,255,0.1); padding: 14px 20px; border-radius: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.referral-code-display span { font-size: 20px; font-weight: 700; font-family: 'Courier New', monospace; letter-spacing: 1px; }

.levels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.level-card { background: white; border-radius: 16px; padding: 24px; text-align: center; box-shadow: 0 2px 8px rgba(10, 37, 64, 0.08); border-top: 4px solid #00d4aa; }
.level-card:nth-child(2) { border-top-color: #ff9800; }
.level-card:nth-child(3) { border-top-color: #2196f3; }
.level-num { font-size: 11px; font-weight: 700; text-transform: uppercase; color: #6b7c93; margin-bottom: 8px; }
.level-card h3 { font-size: 36px; font-weight: 800; color: #0a2540; margin-bottom: 4px; }
.level-card p { font-size: 12px; color: #6b7c93; }

.profile-header { display: flex; align-items: center; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid #e3e8ee; margin-bottom: 24px; }
.profile-avatar { width: 80px; height: 80px; background: linear-gradient(135deg, #00d4aa, #00b894); color: #0a2540; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 32px; flex-shrink: 0; }
.profile-header h3 { font-size: 20px; font-weight: 700; color: #0a2540; margin-bottom: 4px; }
.profile-header p { color: #6b7c93; margin-bottom: 8px; }
.badge-verified { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; background: rgba(0, 200, 83, 0.15); color: #00c853; border-radius: 20px; font-size: 12px; font-weight: 600; }

.profile-details { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail-item { padding: 14px; background: #f5f7fa; border-radius: 10px; }
.detail-label { display: block; font-size: 11px; color: #6b7c93; margin-bottom: 4px; font-weight: 500; }
.detail-value { font-size: 14px; color: #0a2540; font-weight: 600; word-break: break-all; }

.btn-claim { 
    background: linear-gradient(135deg, #00c853, #009624); 
    color: white; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 8px; 
    font-weight: 700; 
    cursor: pointer; 
    margin-top: 10px; 
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3); 
    transition: all 0.2s;
}
.btn-claim:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 200, 83, 0.4); }

.claim-wait { background: #f5f7fa; color: #6b7c93; padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; margin-top: 10px; display: inline-block; }

/* ✅ BADGE INFO - AJUSTADO PARA MOBILE */
.badge-info { 
    font-size: 10px; 
    background: #f5f7fa; 
    padding: 6px 10px; 
    border-radius: 20px; 
    color: #6b7c93; 
    white-space: normal;
    font-weight: 600;
    transition: all 0.3s ease; 
    display: inline-block;
    max-width: 100%;
    text-align: center;
    line-height: 1.4;
}

/* ==========================================
   RESPONSIVIDADE (MOBILE / DESKTOP)
   ========================================== */
@media (min-width: 768px) {
    .sidebar { left: 0; }
    .menu-btn { display: none; }
    .main-content { margin-left: 260px; padding: 32px; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .profile-details { grid-template-columns: repeat(3, 1fr); }
    .amount-grid { grid-template-columns: repeat(3, 1fr); }
    
    /* Badge maior no desktop */
    .badge-info { 
        font-size: 11px; 
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .input-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .levels-grid { grid-template-columns: 1fr; }
    .profile-details { grid-template-columns: 1fr; }
    .profile-header { flex-direction: column; text-align: center; }
    
    .topbar-balance { padding: 6px 12px; }
    .balance-label { display: none; }
    
    .list-item { padding: 12px 14px; }
    .list-item .amount { font-size: 13px; }
    
    .amount-grid { grid-template-columns: 1fr 1fr; }
    
    .referral-code-display { flex-direction: column; gap: 8px; }
    .referral-code-display .btn-copy { width: 100%; justify-content: center; }
    
    /* ✅ CARD HEADER NO MOBILE - AJUSTE PARA O BADGE */
    .card-header { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 8px;
    }
    
    .card-header h3 { 
        font-size: 15px;
    }
    
    /* Badge com texto menor e quebrado no mobile */
    .badge-info { 
        font-size: 9px; 
        padding: 4px 8px; 
        white-space: normal;
        line-height: 1.3;
        display: block;
        width: 100%;
        text-align: left;
    }
}