* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f7fa; color: #0a2540; line-height: 1.5; }

/* AUTH SCREEN */
.auth-screen { min-height: 100vh; background: linear-gradient(135deg, #0a2540 0%, #1e3a5f 100%); display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-container { background: white; border-radius: 20px; padding: 32px; width: 100%; max-width: 440px; box-shadow: 0 8px 24px rgba(10, 37, 64, 0.12); }
.auth-header { text-align: center; margin-bottom: 28px; }
.logo { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 8px; }
.logo-icon { width: 48px; height: 48px; background: linear-gradient(135deg, #00d4aa, #00b894); color: #0a2540; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 24px; }
.auth-header h1 { font-size: 24px; color: #0a2540; }
.auth-header p { color: #6b7c93; font-size: 14px; }

.auth-tabs { display: flex; background: #f5f7fa; border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.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: white; 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; }
.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: white; }
.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); }

.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); }

/* DASHBOARD */
.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; }
.topbar-title { font-size: 18px; font-weight: 700; color: #0a2540; flex: 1; }
.topbar-balance { background: #0a2540; color: white; padding: 8px 16px; border-radius: 50px; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.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; }
.sidebar-overlay.show { display: block; }

.sidebar-header { display: flex; align-items: center; gap: 12px; padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 20px; }
.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; }
.user-info h4 { font-size: 14px; font-weight: 600; }
.user-info p { font-size: 12px; opacity: 0.7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }

.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-icon { font-size: 18px; }

.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; }

.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; font-size: 24px; flex-shrink: 0; }
.stat-icon.green { background: rgba(0, 200, 83, 0.15); }
.stat-icon.blue { background: rgba(33, 150, 243, 0.15); }
.stat-icon.orange { background: rgba(255, 152, 0, 0.15); }
.stat-icon.purple { background: rgba(156, 39, 176, 0.15); }
.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; }

.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; }

/* WALLET - SEPARADO EM COLUNA */
.wallet-grid { display: flex; flex-direction: column; gap: 30px; margin-bottom: 20px; }
.payment-link-box { background: #fff8e1; border: 2px dashed #ff9800; border-radius: 12px; padding: 16px; margin-top: 16px; }
.payment-label { font-size: 13px; font-weight: 600; color: #0a2540; margin-bottom: 8px; }
.link-display { display: flex; align-items: center; gap: 10px; background: white; padding: 10px; border-radius: 8px; border: 1px solid #e3e8ee; margin-bottom: 8px; }
.link-display span { flex: 1; font-family: 'Courier New', monospace; font-size: 12px; word-break: break-all; }
.btn-copy { background: #00d4aa; color: #0a2540; border: none; padding: 8px 14px; border-radius: 8px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.payment-tip { font-size: 12px; color: #6b7c93; margin-top: 8px; line-height: 1.4; }

.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; }

.list-container { display: flex; flex-direction: column; gap: 10px; }
.list-item { display: flex; justify-content: space-between; align-items: center; padding: 14px; background: #f5f7fa; border-radius: 10px; border-left: 4px solid #e3e8ee; }
.list-item.deposit { border-left-color: #00c853; }
.list-item.withdraw { border-left-color: #ff9800; }
.list-item.investment { border-left-color: #2196f3; }
.list-item.earning { border-left-color: #00d4aa; }
.list-item strong { color: #0a2540; font-size: 14px; display: block; margin-bottom: 2px; }
.list-item p { font-size: 12px; color: #6b7c93; }
.list-item .amount { font-size: 15px; font-weight: 700; }
.empty-state { text-align: center; padding: 32px; color: #6b7c93; font-size: 14px; }

.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; }

.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-block; 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; }

.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); }
.btn-claim:hover { transform: translateY(-2px); }
.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 { font-size: 11px; background: #f5f7fa; padding: 4px 10px; border-radius: 20px; color: #6b7c93; }

@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); }
}
@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; }
}