/* =========================================
   PRIMEVEST INVESTMENTS (PvI) - GLOBAL STYLES
   ========================================= */

:root {
    --pv-navy: #0A1128;       
    --pv-navy-light: #1C2E5A; 
    --pv-gold: #D4AF37;       
    --pv-gold-dark: #AA8C2C;
    --pv-bg: #F4F7F6;         
    --pv-white: #FFFFFF;
    --pv-text-dark: #333333;
    --pv-text-light: #888888;
    --pv-green: #28a745;
    --pv-red: #dc3545;
    
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--pv-navy); 
    color: var(--pv-text-dark);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 100%;
    background-color: var(--pv-bg);
    min-height: 100vh;
    position: relative;
    padding-bottom: 75px; 
    overflow-x: hidden;
}

@media (min-width: 481px) {
    .app-container { max-width: 480px; box-shadow: 0 0 20px rgba(0,0,0,0.5); }
    .bottom-nav { max-width: 480px; }
}

h1, h2, h3, h4 { font-weight: 600; }
.text-right { text-align: right; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mb-15 { margin-bottom: 15px; }
.full-width { width: 100%; }
.half-width { width: 48%; }

.top-header, .page-header {
    background: linear-gradient(135deg, var(--pv-navy), var(--pv-navy-light));
    color: var(--pv-white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    margin-bottom: 15px;
}

.page-header { border-radius: 0; padding: 15px 20px; }
.page-header h2 { font-size: 1.2rem; }

.user-info { display: flex; align-items: center; gap: 15px; }
.avatar {
    width: 45px; height: 45px;
    background-color: var(--pv-navy-light);
    border: 2px solid var(--pv-gold);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: var(--pv-gold);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.user-details h2 { font-size: 1.1rem; margin-bottom: 3px; }
.user-details p { font-size: 0.75rem; color: #ccc; }
.level-badge {
    background-color: var(--pv-gold);
    color: var(--pv-navy);
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 0.65rem;
    margin-left: 5px;
}
.header-icons i { font-size: 1.2rem; margin-left: 15px; cursor: pointer; }

.screen { display: none; padding: 0 15px; }
.screen.active { display: block; animation: fadeIn 0.3s ease; }

.main-card {
    background-color: var(--pv-white);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.card-label { color: var(--pv-text-light); font-size: 0.85rem; margin-bottom: 5px; }
.balance-amount { color: var(--pv-navy); font-size: 2rem; margin-bottom: 15px; }
.sub-label { color: var(--pv-text-light); font-size: 0.75rem; margin-bottom: 3px; }
.sub-value { color: var(--pv-navy); font-weight: 600; font-size: 0.9rem; }

button { border: none; outline: none; cursor: pointer; font-family: var(--font-main); border-radius: 10px; font-weight: 600; font-size: 0.95rem; padding: 12px; transition: 0.2s; }
.btn-primary { background: linear-gradient(135deg, var(--pv-gold), var(--pv-gold-dark)); color: var(--pv-navy); }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary { background-color: #E2E8F0; color: var(--pv-navy); }
.btn-outline { background-color: transparent; border: 1px solid var(--pv-navy); color: var(--pv-navy); }

.balance-sub { display: flex; justify-content: space-between; border-top: 1px solid #eee; padding-top: 15px; flex-wrap: wrap; gap: 10px; }
.quick-actions-section h3 { margin-bottom: 15px; color: var(--pv-navy); }
.actions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; }
.action-item { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.action-item i { width: 45px; height: 45px; background-color: #F0F4F8; color: var(--pv-navy); border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; }
.action-item span { font-size: 0.75rem; color: var(--pv-text-dark); font-weight: 500; }

.investment-stats { display: flex; justify-content: space-between; margin-bottom: 15px; }
.progress-bar-container { background-color: #E2E8F0; height: 8px; border-radius: 4px; margin: 10px 0; overflow: hidden; }
.progress-bar { background-color: var(--pv-gold); height: 100%; border-radius: 4px; }
.progress-info { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--pv-text-light); }

.wallet-sub-stats { display: flex; justify-content: space-between; border-top: 1px solid #eee; padding-top: 15px; flex-wrap: wrap; gap: 10px;}
.wallet-actions { display: flex; justify-content: space-between; }
.dark-card { background: linear-gradient(135deg, var(--pv-navy), var(--pv-navy-light)); color: var(--pv-white); display: flex; justify-content: space-between; }
.dark-card h3 { color: var(--pv-white); }
.dark-card .sub-label { color: #aaa; }
.card-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.view-all { color: var(--pv-gold-dark); text-decoration: none; font-size: 0.85rem; font-weight: 600; }

.blue-card { background: linear-gradient(135deg, var(--pv-navy), var(--pv-navy-light)); color: white; display: flex; justify-content: space-between; align-items: center; }
.blue-card .card-label { color: #ccc; }
.blue-card .balance-amount { color: var(--pv-gold); margin-bottom: 0; }
.chart-placeholder { text-align: right; color: var(--pv-gold); }
.chart-placeholder i { font-size: 2rem; }
.chart-placeholder span { display: block; font-size: 0.7rem; color: #ccc; margin-top: 5px; }

.profile-menu-list { padding: 0; overflow: hidden; }
.menu-item { display: flex; align-items: center; padding: 15px 20px; border-bottom: 1px solid #eee; cursor: pointer; }
.menu-item:last-child { border-bottom: none; }
.menu-icon { width: 35px; height: 35px; background-color: #F0F4F8; border-radius: 8px; display: flex; justify-content: center; align-items: center; color: var(--pv-navy); margin-right: 15px; flex-shrink: 0;}
.menu-text { flex: 1; }
.menu-text h4 { font-size: 0.95rem; color: var(--pv-text-dark); }
.menu-text p { font-size: 0.75rem; color: var(--pv-text-light); }
.menu-item .fa-chevron-right { color: #ccc; font-size: 0.8rem; }
.logout-btn { color: var(--pv-red); border-color: var(--pv-red); }
.empty-state { text-align: center; color: var(--pv-text-light); padding: 20px 0; font-size: 0.85rem; }

.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: var(--pv-white);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--pv-text-light); cursor: pointer; transition: 0.2s; }
.nav-item i { font-size: 1.2rem; }
.nav-item span { font-size: 0.7rem; font-weight: 500; }
.nav-item.active { color: var(--pv-navy); font-weight: bold; }
.nav-item.active i { color: var(--pv-gold); }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); z-index: 1000; justify-content: center; align-items: center; }
.modal.show { display: flex; }
.modal-content { background-color: var(--pv-navy); width: 90%; max-width: 350px; border-radius: 20px; padding: 25px; text-align: center; position: relative; color: white; border: 2px solid var(--pv-gold); }
.close-modal { position: absolute; top: 10px; right: 15px; font-size: 1.5rem; color: #ccc; cursor: pointer; }
.wa-header { background-color: var(--pv-white); color: var(--pv-navy); padding: 15px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 20px; }
.wa-icon { color: #25D366; font-size: 2.5rem; }
.wa-link-text { font-size: 0.9rem; margin-bottom: 5px; color: #ccc; }
.wa-link { font-size: 0.85rem; word-break: break-all; margin-bottom: 20px; color: var(--pv-gold); }

.method-option { display: flex; justify-content: space-between; align-items: center; padding: 15px; border: 1px solid #eee; border-radius: 10px; margin-bottom: 10px; cursor: pointer; transition: 0.2s; }
.method-option.active { border-color: var(--pv-gold); background-color: #FFF9E6; }
.input-group { display: flex; align-items: center; border: 1px solid #ddd; border-radius: 10px; padding: 12px 15px; background-color: #FAFAFA; }
.input-group input { border: none; outline: none; background: transparent; width: 100%; font-size: 1rem; font-family: var(--font-main); color: var(--pv-text-dark); }
.currency-symbol { font-weight: 600; color: var(--pv-navy); margin-right: 10px; }

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