@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500;600;700;800;900&display=swap');

:root {
    --blue-50: #E3F2FD;
    --blue-100: #BBDEFB;
    --blue-200: #90CAF9;
    --blue-300: #64B5F6;
    --blue-400: #42A5F5;
    --blue-500: #2196F3;
    --blue-600: #1E88E5;
    --blue-700: #1976D2;
    --blue-800: #1565C0;
    --blue-900: #0D47A1;
    --success: #4CAF50;
    --warning: #FF9800;
    --danger: #f44336;
    --bg-light: #FFF3E0;
    --bg-white: #FFFFFF;
    --text-dark: #1a1a2e;
    --text-muted: #666666;
    --text-light: #ffffff;
    --font-family: 'Nunito', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-family);
    background: var(--bg-light);
    color: var(--text-dark);
    padding-bottom: 70px;
    -webkit-font-smoothing: antialiased;
}

/* ===== CONTAINERS ===== */
.container-custom,
.container-app {
    max-width: 500px;
    margin: 0 auto;
    padding: 16px;
}

.container-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #FFF3E0;
}

/* ===== HEADERS ===== */
.header { margin-bottom: 20px; }
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.header h1 {
    font-size: clamp(20px, 5vw, 24px);
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.header h1 i { color: var(--blue-500); }
.header p {
    color: var(--text-muted);
    font-size: clamp(13px, 3.5vw, 14px);
    margin-top: 5px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-area img { height: 45px; }
.logo-area h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
}

/* ===== CARDS ===== */
.card,
.card-hover,
.section-card,
.chart-card,
.quick-links,
.stat-card,
.invest-card,
.profile-card,
.about-card,
.faq-card,
.terms-card,
.privacy-card,
.support-card,
.kyc-card,
.ticket-form,
.commission-table,
.team-list,
.referral-tree {
    background: var(--bg-white);
    border-radius: 20px;
    border: 1px solid rgba(33, 150, 243, 0.08);
    box-shadow: 0 2px 12px rgba(33, 150, 243, 0.06);
    transition: all 0.3s ease;
}

.card-hover:hover,
.section-card:hover,
.chart-card:hover,
.quick-links:hover,
.stat-card:hover,
.invest-card:hover,
.profile-card:hover,
.about-card:hover,
.faq-card:hover,
.terms-card:hover,
.privacy-card:hover,
.support-card:hover,
.kyc-card:hover,
.ticket-form:hover {
    border-color: rgba(33, 150, 243, 0.2);
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.1);
    transform: translateY(-2px);
}

.section-card,
.chart-card,
.quick-links,
.commission-table,
.team-list,
.ticket-form,
.kyc-card {
    padding: 20px;
    margin-bottom: 20px;
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title i { color: var(--blue-500); }

/* ===== BALANCE CARDS ===== */
.balance-card {
    border-radius: 24px;
    padding: 20px;
    color: #fff;
    margin-bottom: 20px;
}
.balance-card.green {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
}
.balance-card.blue {
    background: linear-gradient(135deg, #2196F3, #0D47A1);
}
.balance-card .label {
    font-size: 13px;
    opacity: 0.8;
}
.balance-card .amount {
    font-size: clamp(24px, 7vw, 32px);
    font-weight: 800;
}
.balance-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.balance-label { font-size: 13px; opacity: 0.8; font-weight: 500; }
.balance-amount {
    font-size: clamp(22px, 6vw, 28px);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}
.next-earning { text-align: right; }
.next-earning .label { font-size: 11px; opacity: 0.7; }
.next-earning .value {
    font-size: clamp(13px, 3.5vw, 16px);
    font-weight: 600;
    color: #BBDEFB;
}

/* ===== ACTION GRID ===== */
.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.action-btn {
    background: var(--bg-white);
    border: 1px solid rgba(33, 150, 243, 0.1);
    border-radius: 16px;
    padding: 14px 8px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.05);
    transition: all 0.3s ease;
}
.action-btn:hover {
    border-color: var(--blue-500);
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.12);
    transform: translateY(-3px);
}
.action-btn i { font-size: clamp(20px, 5vw, 24px); color: var(--blue-500); }
.action-btn span {
    font-size: clamp(10px, 2.8vw, 12px);
    font-weight: 500;
    color: var(--text-dark);
    display: block;
    margin-top: 5px;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.stat-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 14px 10px;
    text-align: center;
    border: 1px solid rgba(33, 150, 243, 0.06);
    transition: all 0.3s ease;
}
.stat-card:hover {
    border-color: rgba(33, 150, 243, 0.2);
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.08);
    transform: translateY(-2px);
}
.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}
.stat-icon.invest { background: #E3F2FD; color: var(--blue-500); }
.stat-icon.referral { background: #E8F5E9; color: #4CAF50; }
.stat-icon.withdraw { background: #FFEBEE; color: #f44336; }
.stat-icon.tier { background: #FFF3E0; color: #FF9800; }
.stat-value {
    font-size: clamp(13px, 3.5vw, 16px);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    word-break: break-word;
}
.stat-label {
    font-size: clamp(9px, 2.5vw, 10px);
    color: #888;
    margin-top: 4px;
    font-weight: 500;
}

/* ===== STATS ROW (3-col variant) ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.stat-box {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    border: 1px solid rgba(33, 150, 243, 0.06);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.05);
}
.stat-box .number {
    font-size: clamp(18px, 5vw, 24px);
    font-weight: 800;
    color: var(--blue-500);
    word-break: break-word;
}
.stat-box .label {
    font-size: clamp(10px, 2.8vw, 12px);
    color: #888;
    margin-top: 4px;
}

/* ===== 2-col stats row ===== */
.stats-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

/* ===== INVESTMENT CARDS ===== */
.invest-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(33, 150, 243, 0.06);
    transition: all 0.3s ease;
}
.invest-card:hover {
    border-color: rgba(33, 150, 243, 0.15);
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.08);
}
.invest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
    flex-wrap: wrap;
}
.plan-name {
    font-size: clamp(14px, 4vw, 16px);
    font-weight: 700;
    color: var(--text-dark);
}
.plan-status {
    background: #E3F2FD;
    color: var(--blue-500);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.invest-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}
.detail-item label {
    font-size: 10px;
    color: #888;
    display: block;
    font-weight: 500;
}
.detail-item span {
    font-size: clamp(12px, 3.5vw, 14px);
    font-weight: 600;
    color: var(--text-dark);
    word-break: break-word;
}
.progress-bar {
    height: 6px;
    background: #E3F2FD;
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue-200), var(--blue-500));
    border-radius: 3px;
    transition: width 0.5s ease;
}
.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #888;
}

/* ===== QUICK LINKS ===== */
.quick-links {
    background: var(--bg-white);
    padding: 20px;
    margin-bottom: 20px;
}
.quick-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(33, 150, 243, 0.06);
    cursor: pointer;
    transition: all 0.2s;
}
.quick-link:last-child { border-bottom: none; }
.quick-link:hover { padding-left: 8px; color: var(--blue-500); }
.quick-link-left { display: flex; align-items: center; gap: 12px; }
.quick-link-left i {
    font-size: 20px;
    color: var(--blue-500);
    width: 28px;
}
.quick-link-left span {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}
.quick-link i.ri-arrow-right-s-line { color: #ccc; }

/* ===== SUPPORT BUTTONS ROW ===== */
.support-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.support-btn {
    flex: 1;
    border-radius: 16px;
    padding: 16px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 56px;
}
.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.support-btn:active {
    transform: translateY(0);
}
.support-btn i {
    font-size: 22px;
}
.support-btn.blue {
    background: linear-gradient(135deg, #2196F3, #0D47A1);
}
.support-btn.blue:hover {
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
}
.support-btn.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}
.support-btn.whatsapp:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}
.support-btn.care {
    background: linear-gradient(135deg, #7C3AED, #4C1D95);
}
.support-btn.care:hover {
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

/* ===== SUPPORT CARD ===== */
.support-card {
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    color: #fff;
}
.support-card:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.3);
}
.support-card.green {
    background: linear-gradient(135deg, #25D366, #128C7E);
}
.support-card.green:hover {
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}
.support-card.blue {
    background: linear-gradient(135deg, #2196F3, #0D47A1);
}
.support-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.support-left i { font-size: 28px; color: #fff; }
.support-left h5 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.support-left p {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* ===== PROFILE HEADER ===== */
.profile-header {
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
}
.profile-header.green {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
}
.profile-header.blue {
    background: linear-gradient(135deg, #2196F3, #0D47A1);
}
.profile-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 32px;
    font-weight: 700;
}
.profile-name { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.profile-phone { font-size: 14px; opacity: 0.9; margin-bottom: 8px; }
.status-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.status-active { background: #4CAF50; color: #fff; }
.status-guest { background: #f44336; color: #fff; }

/* ===== REFERRAL CARD ===== */
.referral-card {
    background: linear-gradient(135deg, #2196F3, #0D47A1);
    border-radius: 20px;
    padding: 20px;
    color: #fff;
    margin-bottom: 20px;
}
.referral-card .referral-label {
    font-size: 14px;
    opacity: 0.9;
}
.ref-link-box {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.ref-link-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
    outline: none;
    min-width: 0;
}
.ref-link-box button {
    background: var(--blue-500);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.ref-link-box button:hover {
    background: var(--blue-700);
    transform: scale(0.98);
}
.share-buttons {
    display: flex;
    gap: 10px;
}
.share-btn {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.share-btn:hover { transform: scale(0.98); }
.share-wa { background: #25D366; color: #fff; }
.share-fb { background: #1877F2; color: #fff; }

/* ===== REFERENCE BOX (in balance card) ===== */
.ref-box {
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 12px;
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ref-box span { font-size: clamp(12px, 3vw, 13px); }
.ref-box strong { color: #BBDEFB; letter-spacing: 1px; }
.copy-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s;
    flex-shrink: 0;
}
.copy-btn:hover { background: rgba(255,255,255,0.3); }
.eye-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s;
    flex-shrink: 0;
}
.eye-btn:hover { background: rgba(255,255,255,0.3); }

/* ===== SUMMARY CARDS ===== */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.summary-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 14px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.05);
    border: 1px solid rgba(33, 150, 243, 0.06);
}
.summary-card .amount {
    font-size: clamp(14px, 4vw, 18px);
    font-weight: 800;
    color: var(--blue-500);
    word-break: break-word;
}
.summary-card .label {
    font-size: clamp(10px, 2.5vw, 11px);
    color: #666;
    margin-top: 4px;
}
.summary-card.income .amount { color: #4CAF50; }
.summary-card.expense .amount { color: #f44336; }

/* ===== FILTER TABS ===== */
.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}
.filter-tab {
    padding: 8px 20px;
    border-radius: 30px;
    background: var(--bg-white);
    border: 1px solid rgba(33, 150, 243, 0.1);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    color: var(--text-muted);
}
.filter-tab:hover {
    border-color: var(--blue-300);
}
.filter-tab.active {
    background: var(--blue-500);
    color: #fff;
    border-color: var(--blue-500);
}

/* ===== TRANSACTION ITEM ===== */
.transaction-item {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(33, 150, 243, 0.06);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.05);
}
.transaction-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.transaction-icon.deposit { background: #E8F5E9; color: #4CAF50; }
.transaction-icon.withdraw { background: #FFEBEE; color: #f44336; }
.transaction-icon.earning { background: #E3F2FD; color: #2196F3; }
.transaction-icon.referral { background: #FFF3E0; color: #FF9800; }
.transaction-details { flex: 1; min-width: 0; }
.transaction-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.transaction-date {
    font-size: 11px;
    color: #999;
}
.transaction-amount { text-align: right; flex-shrink: 0; }
.transaction-amount .amount {
    font-weight: 800;
    font-size: 15px;
}
.transaction-amount .amount.positive { color: #4CAF50; }
.transaction-amount .amount.negative { color: #f44336; }
.transaction-status {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 4px;
}
.status-completed { background: #E8F5E9; color: #4CAF50; }
.status-pending { background: #FFF3E0; color: #FF9800; }
.status-active { background: #E3F2FD; color: #2196F3; }

/* ===== INVESTMENT PLAN CARDS ===== */
.plans-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.plan-card {
    border-radius: 20px;
    padding: 24px 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(33, 150, 243, 0.15);
}
.plan-starter { background: linear-gradient(135deg, #E3F2FD, #BBDEFB); border: 2px solid #90CAF9; }
.plan-basic { background: linear-gradient(135deg, #BBDEFB, #90CAF9); border: 2px solid #64B5F6; }
.plan-bronze { background: linear-gradient(135deg, #90CAF9, #64B5F6); border: 2px solid #42A5F5; }
.plan-silver { background: linear-gradient(135deg, #64B5F6, #42A5F5); border: 2px solid #1E88E5; color: #fff; }
.plan-gold { background: linear-gradient(135deg, #42A5F5, #1E88E5); border: 2px solid #1565C0; color: #fff; }
.plan-platinum { background: linear-gradient(135deg, #1E88E5, #1565C0); border: 2px solid #0D47A1; color: #fff; }
.plan-diamond { background: linear-gradient(135deg, #1565C0, #0D47A1); border: 2px solid #0A3A7A; color: #fff; }
.plan-emerald { background: linear-gradient(135deg, #0D47A1, #0A3A7A); border: 2px solid #072A5A; color: #fff; }
.plan-sapphire { background: linear-gradient(135deg, #0A3A7A, #072A5A); border: 2px solid #051E3E; color: #fff; }
.plan-ruby { background: linear-gradient(135deg, #072A5A, #051E3E); border: 2px solid #03122A; color: #fff; }
.plan-titanium { background: linear-gradient(135deg, #051E3E, #03122A); border: 2px solid #020D1A; color: #fff; }
.plan-elite { background: linear-gradient(135deg, #03122A, #020D1A); border: 2px solid #01070D; color: #fff; }

.plan-silver .plan-name, .plan-silver .plan-price, .plan-silver .plan-features li, .plan-silver .plan-return span,
.plan-gold .plan-name, .plan-gold .plan-price, .plan-gold .plan-features li, .plan-gold .plan-return span,
.plan-platinum .plan-name, .plan-platinum .plan-price, .plan-platinum .plan-features li, .plan-platinum .plan-return span,
.plan-diamond .plan-name, .plan-diamond .plan-price, .plan-diamond .plan-features li, .plan-diamond .plan-return span,
.plan-emerald .plan-name, .plan-emerald .plan-price, .plan-emerald .plan-features li, .plan-emerald .plan-return span,
.plan-sapphire .plan-name, .plan-sapphire .plan-price, .plan-sapphire .plan-features li, .plan-sapphire .plan-return span,
.plan-ruby .plan-name, .plan-ruby .plan-price, .plan-ruby .plan-features li, .plan-ruby .plan-return span,
.plan-titanium .plan-name, .plan-titanium .plan-price, .plan-titanium .plan-features li, .plan-titanium .plan-return span,
.plan-elite .plan-name, .plan-elite .plan-price, .plan-elite .plan-features li, .plan-elite .plan-return span {
    color: #fff;
}
.plan-silver .plan-features li i, .plan-gold .plan-features li i, .plan-platinum .plan-features li i,
.plan-diamond .plan-features li i, .plan-emerald .plan-features li i, .plan-sapphire .plan-features li i,
.plan-ruby .plan-features li i, .plan-titanium .plan-features li i, .plan-elite .plan-features li i {
    color: rgba(255,255,255,0.7);
}
.plan-starter .plan-features li i, .plan-basic .plan-features li i, .plan-bronze .plan-features li i {
    color: #1E88E5;
}

.plan-card .plan-name { font-size: clamp(18px, 5vw, 20px); font-weight: 800; margin-bottom: 4px; letter-spacing: 0.5px; }
.plan-card .plan-price { font-size: clamp(22px, 6vw, 28px); font-weight: 800; margin-bottom: 12px; }
.plan-card .plan-price small { font-size: 12px; font-weight: normal; opacity: 0.7; }
.plan-card .plan-return {
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 12px;
    margin: 12px 0;
    text-align: center;
}
.plan-card .plan-return span { font-size: 13px; display: block; }
.plan-card .plan-return .daily { font-size: 18px; font-weight: 700; }
.plan-card .plan-features { list-style: none; padding: 0; margin: 15px 0; }
.plan-card .plan-features li {
    padding: 6px 0;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.plan-card .plan-features li i { font-size: 14px; }
/* ===== INVEST PLAN CARD (Plans Page) ===== */
.invest-plan-card {
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.invest-plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.invest-plan-card .plan-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.invest-plan-card .plan-amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.invest-plan-card .plan-daily,
.invest-plan-card .plan-total,
.invest-plan-card .plan-duration {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.invest-plan-card .invest-btn {
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    color: #fff;
    font-size: 14px;
}
.invest-plan-card .invest-btn:hover {
    transform: scale(0.98);
    opacity: 0.9;
}

.plan-card .invest-btn {
    background: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    color: var(--text-dark);
}
.plan-card .invest-btn:hover {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.plan-silver .invest-btn, .plan-gold .invest-btn, .plan-platinum .invest-btn,
.plan-diamond .invest-btn, .plan-emerald .invest-btn, .plan-sapphire .invest-btn,
.plan-ruby .invest-btn, .plan-titanium .invest-btn, .plan-elite .invest-btn {
    background: rgba(255,255,255,0.95);
    color: #0D47A1;
}
.plan-silver .invest-btn:hover, .plan-gold .invest-btn:hover, .plan-platinum .invest-btn:hover,
.plan-diamond .invest-btn:hover, .plan-emerald .invest-btn:hover, .plan-sapphire .invest-btn:hover,
.plan-ruby .invest-btn:hover, .plan-titanium .invest-btn:hover, .plan-elite .invest-btn:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(255,255,255,0.3);
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-deposit,
.btn-withdraw,
.btn-submit,
.btn-login,
.btn-register,
.btn-invest,
.btn-save,
.btn-reset,
.btn-copy,
.btn-confirm,
.btn-edit,
.btn-action {
    background: var(--blue-500);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-primary:hover,
.btn-deposit:hover,
.btn-withdraw:hover,
.btn-submit:hover,
.btn-login:hover,
.btn-register:hover,
.btn-invest:hover,
.btn-save:hover,
.btn-reset:hover,
.btn-copy:hover,
.btn-confirm:hover,
.btn-edit:hover,
.btn-action:hover {
    background: var(--blue-700);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.3);
}
.btn-primary:active,
.btn-deposit:active,
.btn-withdraw:active,
.btn-submit:active,
.btn-login:active,
.btn-register:active,
.btn-invest:active,
.btn-save:active,
.btn-reset:active,
.btn-copy:active,
.btn-confirm:active,
.btn-edit:active,
.btn-action:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--blue-100);
    color: var(--blue-800);
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-secondary:hover {
    background: var(--blue-300);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    color: var(--blue-500);
    border: 2px solid var(--blue-500);
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-outline-primary:hover {
    background: var(--blue-500);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 8px;
}
.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 14px;
}
.btn-block { width: 100%; }
.btn:disabled,
.btn-primary:disabled,
.btn-deposit:disabled,
.btn-withdraw:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ===== AMOUNT BUTTONS ===== */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.amount-btn {
    background: var(--bg-light);
    border: 1px solid rgba(33, 150, 243, 0.1);
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(12px, 3vw, 14px);
}
.amount-btn:hover {
    border-color: var(--blue-500);
    background: #E3F2FD;
}
.amount-btn.active {
    background: var(--blue-500);
    color: #fff;
    border-color: var(--blue-500);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.25);
}

/* ===== PAYMENT OPTIONS ===== */
.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 2px solid rgba(33, 150, 243, 0.1);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-white);
}
.payment-option:hover { border-color: var(--blue-300); }
.payment-option.active {
    border-color: var(--blue-500);
    background: #E3F2FD;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.08);
}
.payment-option i { font-size: 24px; }
.payment-option .payment-label strong { color: var(--text-dark); }

/* ===== FORM CONTROLS ===== */
.form-control {
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(33, 150, 243, 0.15);
    transition: all 0.3s ease;
}
.form-control:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.12);
    outline: none;
}
.input-group-text {
    background: var(--bg-light);
    border: 1px solid rgba(33, 150, 243, 0.1);
    color: var(--text-dark);
    border-radius: 12px 0 0 12px;
}

/* ===== TAX INFO ===== */
.tax-info {
    background: #E3F2FD;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    border-left: 4px solid var(--blue-500);
}
.tax-info span { display: block; font-size: 14px; color: #555; }
.tax-info .received {
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 800;
    color: var(--blue-700);
    margin-top: 4px;
}
.tax-info .tax-amount { font-weight: 700; color: var(--blue-700); }

/* ===== COMMISSION TABLE ===== */
.commission-table {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}
.commission-table h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}
.commission-table h4 i { color: var(--blue-500); }
.table-custom {
    width: 100%;
    border-collapse: collapse;
}
.table-custom th,
.table-custom td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid rgba(33, 150, 243, 0.06);
}
.table-custom th {
    background: #E3F2FD;
    font-weight: 700;
    color: var(--blue-700);
}
.table-custom td { color: var(--text-muted); }
.table-custom td.rate {
    color: var(--blue-500);
    font-weight: 700;
}

/* ===== TEAM LIST ===== */
.team-list {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}
.team-list h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}
.team-list h4 i { color: var(--blue-500); }
.team-member {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(33, 150, 243, 0.06);
    gap: 8px;
}
.team-member:last-child { border-bottom: none; }
.member-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}
.member-tier {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: #E3F2FD;
    color: var(--blue-500);
    flex-shrink: 0;
}
.member-details { min-width: 0; }
.member-details h6 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.member-details p {
    font-size: 11px;
    color: #888;
    margin: 0;
}
.member-earnings { text-align: right; flex-shrink: 0; }
.member-earnings .amount {
    font-size: 14px;
    font-weight: 700;
    color: #4CAF50;
}
.member-earnings .label {
    font-size: 10px;
    color: #888;
}

/* ===== INFO ROWS ===== */
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(33, 150, 243, 0.06);
    gap: 8px;
}
.info-row:last-child { border-bottom: none; }
.info-label {
    color: var(--text-muted);
    font-size: 13px;
    flex-shrink: 0;
}
.info-value {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    text-align: right;
    word-break: break-word;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-white);
    border-radius: 16px;
    color: #888;
    border: 1px solid rgba(33, 150, 243, 0.06);
}
.empty-state i {
    font-size: clamp(32px, 10vw, 40px);
    opacity: 0.4;
    margin-bottom: 12px;
}
.empty-state p { margin: 0; }

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    width: calc(100% - 40px);
}
.toast-msg {
    background: var(--bg-white);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 10px;
    box-shadow: 0 8px 30px rgba(33, 150, 243, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.35s ease;
    border-left: 4px solid var(--blue-500);
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}
.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 18px;
    padding: 0 4px;
}
.toast-close:hover { color: #555; }

.toast-message {
    background: var(--bg-white);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 10px;
    box-shadow: 0 8px 30px rgba(33, 150, 243, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.35s ease;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1a1a2e;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 6px;
    z-index: 1000;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
}
.bottom-nav a {
    flex: 1;
    text-align: center;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    padding: 6px 0;
    transition: all 0.2s;
    border-radius: 8px;
}
.bottom-nav a.active {
    color: #fff;
}
.bottom-nav a:hover {
    color: rgba(255,255,255,0.8);
}
.bottom-nav i {
    font-size: clamp(20px, 5vw, 22px);
    display: block;
    margin-bottom: 2px;
}
.bottom-nav small {
    font-size: clamp(9px, 2.5vw, 10px);
    font-weight: 500;
}

/* ===== NOTIFY BUTTON ===== */
.notify-btn {
    background: var(--bg-white);
    border: 1px solid rgba(33, 150, 243, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.06);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.notify-btn:hover {
    border-color: var(--blue-500);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.12);
    transform: scale(1.05);
}
.notify-btn i {
    font-size: 22px;
    color: var(--text-muted);
}

/* ===== CHART CARD ===== */
.chart-card {
    background: var(--bg-white);
    padding: 20px;
    margin-bottom: 20px;
}
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.chart-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}
.chart-header h4 i { color: var(--blue-500); }
.chart-total {
    font-size: clamp(13px, 3.5vw, 16px);
    font-weight: 700;
    color: var(--blue-700);
    background: #E3F2FD;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}
.chart-wrapper {
    position: relative;
    height: 200px;
    width: 100%;
}
.chart-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ===== EDIT BUTTON ===== */
.edit-btn {
    background: none;
    border: none;
    color: var(--blue-500);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}
.edit-btn:hover { color: var(--blue-700); }

/* ===== RANK PROGRESS ===== */
.rank-progress-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(33, 150, 243, 0.06);
}
.progress-bar-custom {
    height: 8px;
    background: #E3F2FD;
    border-radius: 4px;
    overflow: hidden;
}
.progress-fill-custom {
    height: 100%;
    background: linear-gradient(90deg, var(--blue-400), var(--blue-600));
    border-radius: 4px;
}
.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 10px;
    color: var(--text-muted);
}
.progress-labels .active {
    color: var(--blue-500);
    font-weight: 600;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-light); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: var(--blue-200); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-400); }

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Small phones (320px - 374px) */
@media (max-width: 374px) {
    .container-custom,
    .container-app {
        padding: 12px;
    }
    .action-grid {
        gap: 8px;
    }
    .action-btn {
        padding: 12px 6px;
    }
    .stats-grid {
        gap: 8px;
    }
    .stat-card {
        padding: 10px 6px;
    }
    .invest-details {
        grid-template-columns: repeat(2, 1fr);
    }
    .summary-cards {
        gap: 8px;
    }
    .summary-card {
        padding: 10px 6px;
    }
    .stats-row {
        gap: 8px;
    }
    .stat-box {
        padding: 12px 8px;
    }
    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .bottom-nav {
        padding: 6px 0 4px;
        padding-bottom: calc(4px + env(safe-area-inset-bottom, 0px));
    }
}

/* Mobile (375px - 575px) */
@media (min-width: 375px) and (max-width: 575.98px) {
    .invest-details {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile (up to 575px) */
@media (max-width: 575.98px) {
    .balance-amount {
        font-size: 22px;
    }
    .stat-value {
        font-size: 14px;
    }
    .plan-card .plan-price {
        font-size: 22px;
    }
    .plan-card .plan-name {
        font-size: 18px;
    }
    .filter-tabs {
        gap: 8px;
    }
    .filter-tab {
        padding: 6px 14px;
        font-size: 12px;
    }
    .chart-wrapper {
        height: 140px;
    }
}

/* Tablet (576px - 991px) */
@media (min-width: 576px) and (max-width: 991.98px) {
    .action-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .summary-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop (992px+) */
@media (min-width: 992px) {
    .container-custom,
    .container-app {
        max-width: 600px;
        padding: 24px;
    }
    .action-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .bottom-nav {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 20px 20px 0 0;
    }
}
