* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: #0b0f2a; color: white; padding-bottom: 80px; }

/* PAGE SYSTEM */
.page { display: none; padding: 0 15px; }
.page.active { display: block; }

/* AUTH SCREEN */
.auth-box { background: #151b3d; padding: 30px 20px; border-radius: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.auth-box input { width: 100%; padding: 15px; margin-bottom: 15px; background: #0b0f2a; border: 1px solid #1f2a5a; color: white; border-radius: 10px; font-size: 16px; }
.auth-box button { width: 100%; padding: 15px; background: linear-gradient(90deg, #d4af37, #f3d47c); border: none; border-radius: 10px; color: #000; font-weight: 800; font-size: 16px; cursor: pointer; }

/* TOP NAV */
.top-nav { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid #1f2a5a; margin-bottom: 15px; }

/* DASHBOARD UI */
.top-banner { background: linear-gradient(90deg, #d4af37, #f3d47c); color: #000; text-align: center; padding: 12px; font-weight: 800; font-size: 14px; border-radius: 10px; margin-bottom: 20px; }
.stats-container { display: flex; gap: 10px; margin-bottom: 20px; }
.stat-box { background-color: #151b3d; flex: 1; border-radius: 10px; padding: 12px; text-align: center; }
.stat-label { font-size: 10px; color: #8a93b2; margin-bottom: 5px; display: block; }
.stat-value { font-size: 16px; font-weight: 700; }

/* TABS */
.tabs { display: flex; justify-content: space-between; border-bottom: 1px solid #1f2a5a; padding-bottom: 10px; margin-bottom: 15px; }
.tab { color: #8a93b2; font-size: 14px; cursor: pointer; }
.tab.active { color: #d4af37; font-weight: 700; border-bottom: 2px solid #d4af37; padding-bottom: 8px;}

/* CARDS */
.investment-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; }
.card { background-color: #151b3d; border-radius: 15px; overflow: hidden; border-left: 3px solid #4caf50; }
.card.hot { border-left: 3px solid #ff9800; }
.card.premium { border-left: 3px solid #9c27b0; }
.card.vip { border-left: 3px solid #f44336; }

/* NEW: Image Container */
.card-image-container { width: 100%; height: 160px; overflow: hidden; border-radius: 15px 15px 0 0; background: #0b0f2a; }
.card-image-container img { width: 100%; height: 100%; object-fit: cover; }

.tag { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.tag.green { background: #4caf50; } 
.tag.orange { background: #ff9800; }
.tag.purple { background: #9c27b0; }
.tag.red { background: #f44336; }
.card-content { padding: 15px; }
.data-grid { display: flex; justify-content: space-between; text-align: center; border-bottom: 1px solid #1f2a5a; padding: 10px 0; margin-bottom: 10px; }
.data-item h4 { color: #d4af37; } 
.data-item span { font-size: 10px; color: #8a93b2; }
.income-row { display: flex; justify-content: space-between; margin-bottom: 15px; }
.income-item h4 { color: #4caf50; } 
.card.hot .income-item h4 { color: #ff9800; }
.card.premium .income-item h4 { color: #9c27b0; }
.card.vip .income-item h4 { color: #f44336; }
.invest-btn { width: 100%; padding: 15px; background: linear-gradient(90deg, #d4af37, #f3d47c); border: none; border-radius: 10px; color: #000; font-weight: 800; cursor: pointer; }

/* TRUST SECTION */
.trust-section { text-align: center; padding: 25px 15px; background: #151b3d; border-radius: 15px; border: 1px solid #1f2a5a; margin-top: 20px; }
.trust-headline { font-size: 16px; color: #d4af37; font-weight: 800; margin-bottom: 20px; line-height: 1.5; text-transform: uppercase; letter-spacing: 0.5px; }
.trust-features { display: flex; justify-content: space-between; align-items: center; }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.trust-icon { font-size: 24px; }
.trust-text { font-size: 12px; color: #8a93b2; font-weight: 600; }

/* INCOME PAGE */
.profit-card { background: linear-gradient(145deg, #1a2352, #111636); padding: 20px; border-radius: 20px; margin-bottom: 20px; border: 1px solid #2a397a; box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.profit-sub { display: flex; justify-content: space-between; margin-top: 20px; font-size: 13px; color: #8a93b2; }

.income-card { background: linear-gradient(145deg, #1a2352, #111636); border-radius: 15px; padding: 15px; border-left: 4px solid #d4af37; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.income-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; border-bottom: 1px dashed #2a397a; padding-bottom: 10px; }
.income-card-title { font-weight: 800; font-size: 18px; color: #d4af37; }
.income-card-status { color: #4caf50; font-size: 12px; font-weight: bold; background: rgba(76, 175, 80, 0.1); padding: 4px 8px; border-radius: 5px; }
.income-card-data { display: flex; justify-content: space-between; font-size: 13px; color: #8a93b2; margin-bottom: 15px; }
.income-card-data b { color: white; }
.timer-box { width: 100%; background: #0b0f2a; border-radius: 10px; padding: 12px; text-align: center; border: 1px solid #2a397a; }
.timer-label { font-size: 10px; color: #8a93b2; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }
.timer-value { color: #d4af37; font-family: monospace; font-size: 22px; font-weight: 700; }

/* AGENT PAGE */
.ref-card { background: linear-gradient(135deg, #4a148c, #1a237e); padding: 20px; border-radius: 15px; margin-bottom: 20px; }
.ref-levels { display: flex; justify-content: space-around; text-align: center; }
.ref-levels h2 { color: #d4af37; }
.ref-link-box { background: #151b3d; padding: 15px; border-radius: 15px; }
.link-input { display: flex; gap: 10px; }
.link-input input { flex: 1; padding: 10px; border-radius: 5px; border: none; background: #0b0f2a; color: #d4af37; }
.link-input button { padding: 10px; background: #d4af37; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; }

/* MINE PAGE */
.profile-card { display: flex; align-items: center; background: linear-gradient(145deg, #1a2352, #111636); padding: 20px; border-radius: 20px; border: 1px solid #2a397a; box-shadow: 0 8px 20px rgba(0,0,0,0.3); margin-bottom: 25px; }
.profile-avatar { width: 60px; height: 60px; background: linear-gradient(135deg, #d4af37, #f3d47c); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 28px; font-weight: 800; color: #000; margin-right: 15px; }
.profile-info { flex: 1; }
.profile-switch-btn { background: rgba(255,255,255,0.05); border: 1px solid #2a397a; color: #8a93b2; padding: 8px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; }
.dashboard-stats { display: flex; flex-direction: column; gap: 12px; margin-bottom: 25px; }
.dash-stat-card { display: flex; align-items: center; background: #151b3d; padding: 18px; border-radius: 15px; border: 1px solid #1f2a5a; transition: transform 0.2s; }
.dash-stat-card:hover { transform: translateY(-2px); }
.dash-icon { width: 45px; height: 45px; border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 20px; margin-right: 15px; }
.dash-stat-card h4 { font-size: 20px; font-weight: 800; color: white; margin-bottom: 3px; }
.dash-stat-card p { font-size: 12px; color: #8a93b2; font-weight: 600; }
.action-buttons { display: flex; gap: 15px; margin-bottom: 25px; }
.btn-deposit, .btn-withdraw { flex: 1; padding: 16px; border: none; border-radius: 12px; font-weight: 800; font-size: 15px; cursor: pointer; transition: opacity 0.2s; }
.btn-deposit { background: #4caf50; color: white; box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3); }
.btn-withdraw { background: linear-gradient(90deg, #d4af37, #f3d47c); color: #000; box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3); }
.btn-deposit:active, .btn-withdraw:active { opacity: 0.8; }
.whatsapp-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border: none; border-radius: 12px; color: white; font-weight: 700; font-size: 14px; margin-bottom: 12px; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }

/* BOTTOM NAV & MODAL */
.bottom-nav { position: fixed; bottom: 0; width: 100%; background: #0b0f2a; border-top: 1px solid #1f2a5a; display: flex; justify-content: space-around; padding: 10px 0 20px 0; z-index: 10; }
.nav-item { display: flex; flex-direction: column; align-items: center; color: #8a93b2; font-size: 11px; cursor: pointer; }
.nav-item.active { color: #d4af37; }
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 1000; justify-content: center; align-items: center; }
.modal-content { background: #151b3d; padding: 20px; border-radius: 15px; width: 80%; max-width: 300px; text-align: center; }
.modal-content input { width: 100%; padding: 10px; margin: 15px 0; border-radius: 5px; border: none; background: #0b0f2a; color: white; }
.modal-content button { width: 100%; padding: 10px; background: #d4af37; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; }

/* ================= DEPOSIT FLOW OVERLAYS ================= */
.full-page-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #0b0f2a; z-index: 2000; flex-direction: column; padding: 20px; overflow-y: auto; }
.full-page-overlay.active { display: flex; }

.overlay-header { display: flex; align-items: center; margin-bottom: 25px; }
.back-btn { background: none; border: none; color: white; font-size: 20px; margin-right: 15px; cursor: pointer; }
.overlay-header h3 { font-size: 16px; font-weight: 600; }

.method-list { display: flex; flex-direction: column; gap: 15px; }
.method-item { background: #151b3d; border: 1px solid #1f2a5a; border-radius: 15px; padding: 15px; display: flex; align-items: center; cursor: pointer; transition: 0.2s; }
.method-item:active { background: #1a2352; }
.method-icon { width: 45px; height: 45px; background: #0b0f2a; border-radius: 10px; display: flex; justify-content: center; align-items: center; font-weight: bold; color: #d4af37; margin-right: 15px; font-size: 14px; border: 1px solid #2a397a; }
.method-info h4 { font-size: 15px; color: white; margin-bottom: 3px; }
.method-info p { font-size: 11px; color: #8a93b2; }

.instruction-card { background: #151b3d; border-radius: 15px; padding: 15px; margin-top: 20px; border: 1px solid #1f2a5a; }
.instruction-card h4 { color: white; font-size: 14px; margin-bottom: 10px; }
.instruction-card p { font-size: 12px; color: #8a93b2; line-height: 1.6; }

/* Step 2: Amount Form */
.amount-form-card { background: #151b3d; border-radius: 15px; padding: 20px; border: 1px solid #1f2a5a; }
.form-label { font-size: 14px; font-weight: 700; margin-bottom: 15px; color: white; }
.selected-method-box { display: flex; align-items: center; background: #0b0f2a; border: 1px solid #1f2a5a; padding: 12px; border-radius: 10px; margin-bottom: 15px; font-size: 14px; }
.method-icon-small { background: #1f2a5a; color: #d4af37; padding: 4px 8px; border-radius: 5px; font-size: 10px; font-weight: bold; margin-right: 10px; }
.amount-input { width: 100%; background: #0b0f2a; border: 1px solid #1f2a5a; color: white; padding: 15px; border-radius: 10px; font-size: 15px; margin-bottom: 15px; outline: none; }
.amount-range-box { background: rgba(76, 175, 80, 0.1); border: 1px solid rgba(76, 175, 80, 0.3); padding: 12px; border-radius: 10px; margin-bottom: 20px; }
.amount-range-box p { color: #4caf50; font-size: 12px; font-weight: 600; text-align: center; }
.submit-tx-btn { width: 100%; padding: 16px; background: #152250; border: 1px solid #2a397a; color: white; border-radius: 10px; font-weight: bold; font-size: 15px; cursor: pointer; margin-bottom: 25px; }
.submit-tx-btn:active { background: #1a2d5c; }
.tx-instructions h4 { font-size: 13px; margin-bottom: 10px; color: white; }
.tx-instructions p { font-size: 11px; color: #8a93b2; line-height: 1.6; }

/* Step 3 & 4: Payment / Success */
.payment-card { background: #151b3d; border-radius: 15px; padding: 20px; border: 1px solid #1f2a5a; }
.payment-networks { display: flex; gap: 10px; margin-bottom: 15px; }
.network-btn { flex: 1; background: #0b0f2a; border: 1px solid #1f2a5a; border-radius: 10px; padding: 10px; text-align: center; font-size: 11px; cursor: pointer; color: #8a93b2; }
.network-btn.active { border-color: #d4af37; background: rgba(212, 175, 55, 0.05); color: white; }
.phone-input-group { display: flex; margin-bottom: 15px; }
.warning-box { background: rgba(244, 67, 54, 0.1); border: 1px solid rgba(244, 67, 54, 0.3); padding: 10px; border-radius: 8px; margin-bottom: 20px; }
.submit-payment-btn { width: 100%; padding: 15px; background: linear-gradient(90deg, #d4af37, #f3d47c); border: none; border-radius: 10px; color: black; font-weight: bold; font-size: 16px; cursor: pointer; }