* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f2f2f2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.mobile-container {
    width: 100%;
    max-width: 414px;
    height: 100vh;
    background-color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.splash-screen {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 70px 24px 44px;
    position: relative;
    background: #ffffff;
    overflow: hidden;
}

.splash-screen::before {
    content: "";
    position: absolute;
    top: -120px;
    left: -140px;
    width: 520px;
    height: 520px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0));
    transform: rotate(20deg);
}

.splash-screen::after {
    content: "";
    position: absolute;
    bottom: -160px;
    right: -180px;
    width: 580px;
    height: 580px;
    background: linear-gradient(315deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0));
    transform: rotate(18deg);
}

.splash-top,
.splash-bottom {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.splash-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 120px;
}

.splash-logo-icon {
    width: 80px;
    height: 80px;
}

.splash-brand {
    color: #00295F;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 4px;
}

.splash-tagline {
    color: #222;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 18px;
}

.splash-actions {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.splash-login-btn {
    width: 100%;
    border: none;
    background: #0061aa;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
}

.splash-create-btn {
    width: 100%;
    border: 2px solid #0061aa;
    background: transparent;
    color: #0061aa;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
}

.splash-create-btn:disabled {
    border-color: #c9d3de;
    color: #9aa7b5;
    cursor: not-allowed;
    opacity: 0.8;
}

.login-screen {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    padding-top: 50px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Subtle diagonal background */
    background: linear-gradient(170deg, #f8f8f8 45%, #ffffff 45%);
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 10px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.company-name {
    color: #00295F;
    font-size: 12px;
    font-weight: 800; /* Extra Bold */
    letter-spacing: 0.5px;
}

.service-name {
    color: #00295F;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-top: 2px;
}



/* Main Content */
.main-content {
    padding: 20px 30px;
    flex-grow: 1;
}

h1 {
    font-size: 20px; /* Smaller than standard h1 */
    color: #333;
    margin-bottom: 5px;
    font-weight: 600;
}

.subtitle {
    font-size: 14px;
    color: #555;
    margin-bottom: 30px;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
}

.input-group {
    margin-bottom: 25px;
}

.input-label {
    display: none; /* Hide label, use placeholder as visual cue per image */
}

.input-wrapper {
    position: relative;
    border-bottom: 1px solid #ccc;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 0;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    padding-right: 85px; /* Increased to accommodate eye icon and forgot link */
    background: transparent;
}

.input-wrapper input::placeholder {
    color: #888;
    opacity: 1;
}

.forgot-link {
    position: absolute;
    right: 0;
    text-decoration: none;
    color: #00295F;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.checkbox-group input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-right: 12px;
    border: 2px solid #777;
    border-radius: 4px;
    cursor: pointer;
    /* Remove default appearance to style if needed, but standard is okay */
}

.checkbox-group label {
    font-size: 15px;
    color: #555;
    cursor: pointer;
    font-weight: 500;
}

.sign-in-btn {
    width: 100%;
    padding: 16px;
    background-color: #E31837;
    color: white;
    border: none;
    border-radius: 30px; /* More rounded */
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 0.5px;
    transition: background-color 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sign-in-btn:hover {
    background-color: #c4122d;
}

.sign-in-btn .arrow {
    margin-left: 8px;
    font-size: 14px;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Overlay (Shared) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/* Original Modal (Keep for other pages if needed) */
.modal-content {
    background-color: white;
    width: 80%;
    max-width: 300px;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.modal-message {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
}

.modal-btn {
    width: 100%;
    padding: 12px 0;
    background-color: transparent;
    color: #0065B3; /* BofA Blue */
    border: none;
    border-top: 1px solid #eee;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

/* Security Code Modal */
.security-modal-content {
    background-color: white;
    width: 90%;
    max-width: 400px; /* Slightly wider for better layout */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    font-family: 'Arial', sans-serif;
    text-align: left; /* Default left align */
}

.security-modal-header {
    background-color: white;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
}

.security-logo-icon {
    height: 20px;
    width: auto;
    margin-right: 8px;
}

.security-logo-text {
    font-size: 14px;
    font-weight: bold;
    color: #012169; /* BofA Dark Blue */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.security-body {
    padding: 25px;
}

.security-icon-lock {
    text-align: center;
    font-size: 32px;
    color: #E31837; /* BofA Red */
    margin-bottom: 15px;
}

.security-title {
    font-size: 22px;
    font-weight: 300; /* Lighter weight like BofA */
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.security-text {
    font-size: 14px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.5;
    text-align: center;
}

.input-label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.security-input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 20px;
    outline: none;
    box-sizing: border-box; /* Fix padding issue */
}

.security-input:focus {
    border-color: #0065B3;
    box-shadow: 0 0 3px rgba(0, 101, 179, 0.3);
}

.security-btn {
    width: 100%;
    padding: 12px;
    background-color: #0065B3; /* BofA Primary Blue */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.security-btn:hover {
    background-color: #004a8f;
}

.security-footer-link {
    margin-top: 15px;
    text-align: center;
    font-size: 13px;
    color: #0065B3;
    cursor: pointer;
    text-decoration: none;
}

.security-footer-link:hover {
    text-decoration: underline;
}

/* Restricted Modal */
.restricted-modal-content {
    background-color: white;
    width: 90%;
    max-width: 350px;
    border-radius: 4px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    font-family: 'Arial', sans-serif;
    /* Animation for "Twisting/Pop" effect */
    animation: twist-shake 0.8s ease-out;
}

@keyframes twist-shake {
    0% {
        transform: scale(0.5) rotate(-15deg);
        opacity: 0;
    }
    40% {
        transform: scale(1.05) rotate(5deg);
        opacity: 1;
    }
    60% {
        transform: scale(1.05) rotate(-3deg);
    }
    80% {
        transform: scale(1.05) rotate(2deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.restricted-modal-header {
    background-color: #E31837; /* BofA Red for Alert/Restriction */
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.restricted-modal-logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 18px; /* Slightly larger */
    letter-spacing: 0.5px;
    font-family: 'Arial', sans-serif;
    text-transform: uppercase; /* Match BofA style */
}

.modal-logo-icon {
    height: 24px;
    width: auto;
    margin-right: 10px;
    filter: brightness(0) invert(1); /* Make logo white */
}

.restricted-modal-close {
    cursor: pointer;
    font-size: 20px;
    color: white;
}

.restricted-modal-body {
    padding: 20px;
}

.error-code {
    text-align: center;
    font-weight: bold;
    color: #555;
    margin-bottom: 20px;
    font-size: 14px;
}

.restricted-text {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 15px;
}

.restricted-text strong {
    font-weight: bold;
}

/* Footer */
.footer {
    padding: 20px 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #00295F;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 18px 0;
    width: 100%;
}

.footer-icon {
    margin-left: 6px;
    font-size: 14px; /* Icon size */
}

.divider {
    width: 90%; /* Not full width */
    height: 1px;
    background-color: #ddd;
}

/* ========================================= */
/* DASHBOARD STYLES */
/* ========================================= */

.mobile-container.dashboard-mode {
    background-color: #f4f4f4;
    overflow: hidden; /* Prevent container scroll */
    display: flex;
    flex-direction: column;
}

.mobile-container.dashboard-mode .main-content {
    padding: 20px;
    flex-grow: 1; /* Take remaining space */
    overflow-y: auto; /* Scroll internally */
    /* Remove padding-bottom since nav is no longer absolute */
}

/* Header */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 20px 15px; /* Adjust top padding for status bar */
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0; /* Prevent shrinking */
    z-index: 100;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 20px;
    cursor: pointer;
    color: #666;
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-text {
    font-size: 10px;
}

/* Tabs */
.tabs {
    display: flex;
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
    z-index: 99;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
}

.tab.active {
    color: #E31837;
    border-bottom: 3px solid #E31837;
}

/* Search Bar */
.search-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.search-box {
    flex-grow: 1;
    background-color: #e6e6e6;
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.search-icon {
    color: #999;
    margin-right: 10px;
}

.search-box input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-size: 16px;
    color: #333;
}

.erica-icon {
    width: 35px;
    height: 35px;
    background-color: #E31837;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #0065B3; /* BofA Blue */
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    border: 2px solid #f4f4f4; /* Match bg color for cutout effect */
}

/* Cards */
.card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    overflow: hidden;
}

.welcome-card {
    padding: 0;
}

.card-row {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.row-content {
    display: flex;
    align-items: center;
}

.row-content h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 2px;
}

.gold-member {
    font-size: 13px;
    color: #666;
    font-weight: 400;
}

.row-content h3 {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.sub-text {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.arrow-icon {
    color: #ccc;
    font-size: 14px;
}

.life-plan-icon-container {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
}

.item-icon {
    font-size: 20px;
    color: #333;
}

/* Accounts Section */
.accounts-section {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    overflow: hidden;
}

.accounts-header {
    background-color: #b9122c; /* Darker Red */
    padding: 15px 20px;
    color: white;
}

.accounts-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.account-list {
    padding: 0;
}

.account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.account-name {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.account-balance {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.view-btn {
    background-color: #eef3f6;
    color: #00295F;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
}

.divider.full-width {
    margin: 0 20px;
    background-color: #eee;
}

/* Promo Banner */
.promo-banner {
    background-color: #E31837;
    border-radius: 12px;
    padding: 20px;
    color: white;
    margin-bottom: 20px;
}

.promo-content h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.promo-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.promo-link i {
    margin-left: 5px;
    font-size: 12px;
}

/* Bottom Navigation */
.bottom-nav {
    width: 100%;
    background-color: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0 25px; /* Extra padding for home indicator */
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
    z-index: 100;
}

.bottom-nav .nav-item {
    margin: 0;
    flex: 1;
    color: #666;
}

.bottom-nav .nav-item.active {
    color: #005eb8;
}

.bottom-nav .nav-item.active .icon-circle {
    border-color: #005eb8;
}

.icon-circle {
    width: 24px;
    height: 24px;
    border: 1px solid #666;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
}

.bottom-nav .nav-item.active .icon-circle {
    border: 2px solid #005eb8;
}

.bottom-nav .nav-item span {
    font-size: 10px;
    font-weight: 600;
}

.bottom-nav .fa-dollar-sign {
    font-size: 14px;
}

.bottom-nav .fa-exchange-alt,
.bottom-nav .fa-file-invoice-dollar,
.bottom-nav .fa-camera,
.bottom-nav .fa-chart-pie {
    font-size: 12px;
}

/* Pay & Transfer Styles */
.page-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.pay-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.pay-option-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.1s;
}

.pay-option-card:active {
    transform: scale(0.98);
}

.pay-icon-container {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.pay-icon-container.zelle-bg {
    background-color: #6d1ed4; /* Zelle Purple */
    color: white;
}

.pay-icon-container.blue-bg {
    background-color: #0065B3; /* BofA Blue */
    color: white;
}

.pay-icon-container i {
    font-size: 20px;
}

.zelle-text {
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.pay-option-text {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}

.scheduled-section {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.section-header {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.section-header h2 {
    font-size: 16px;
    color: #333;
}

.empty-state {
    text-align: center;
    padding: 20px 0;
    color: #888;
    font-size: 14px;
}

/* Deposit Checks Styles */
.deposit-container {
    padding: 10px 0;
}

.check-photos-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.photo-box {
    background-color: #e6e6e6;
    border-radius: 12px;
    width: 48%;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 2px dashed #ccc;
}

.camera-icon-circle {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    color: #0065B3;
}

.photo-label {
    font-size: 12px;
    font-weight: bold;
    color: #666;
}

.deposit-input-group {
    background-color: white;
    padding: 0;
    border-bottom: 1px solid #ccc;
    margin-bottom: 25px;
}

.deposit-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

.amount-input-wrapper {
    display: flex;
    align-items: center;
}

.currency-symbol {
    font-size: 24px;
    color: #333;
    font-weight: bold;
    margin-right: 5px;
}

.deposit-amount-input {
    border: none;
    font-size: 24px;
    width: 100%;
    outline: none;
    color: #333;
    font-weight: bold;
    padding: 10px 0;
}

.deposit-amount-input::placeholder {
    color: #ccc;
}

.account-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
}

.selected-account {
    display: flex;
    flex-direction: column;
}

.account-balance-small {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}

.deposit-terms {
    font-size: 11px;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
}

.deposit-terms a {
    color: #0065B3;
    text-decoration: none;
}

.deposit-btn {
    margin-top: 10px;
    background-color: #0065B3; /* Blue for deposit action usually */
}

.deposit-btn:hover {
    background-color: #005eb8;
}

/* Recent Transactions Styles */
.recent-transactions-section {
    background-color: white;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px; /* Optional: adds a slight curve if desired, but BofA is usually flat full width on mobile or card based */
}

.recent-transactions-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.transaction-list {
    display: flex;
    flex-direction: column;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    margin-right: 15px;
    color: #666;
}

.transaction-date .month {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
}

.transaction-date .day {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.transaction-details {
    flex: 1;
}

.transaction-desc {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}

.transaction-sub {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.transaction-amount {
    font-size: 14px;
    font-weight: bold;
    text-align: right;
}

.transaction-amount.positive {
    color: #008a00; /* Green for deposits */
}

.transaction-amount.negative {
    color: #e31837; /* Bank of America Red */
}

.transaction-date .year {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
}


/* Invest Page Styles */
.invest-summary {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}
.invest-total-label {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}
.invest-total-amount {
    font-size: 32px;
    font-weight: 300;
    color: #333;
    margin-bottom: 5px;
}
.invest-change {
    font-size: 14px;
    color: #008a00; /* Green */
    font-weight: bold;
}
.invest-actions {
    display: flex;
    justify-content: space-between;
    padding: 0 15px 20px 15px;
    background-color: #f4f4f4;
}
.invest-btn {
    flex: 1;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    margin: 0 5px;
    text-align: center;
    font-weight: bold;
    color: #0065B3;
    cursor: pointer;
}
.invest-btn:first-child { margin-left: 0; }
.invest-btn:last-child { margin-right: 0; }

.holdings-list {
    background-color: white;
}
.holding-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.holding-name {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}
.holding-symbol {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}
.holding-value {
    text-align: right;
    font-weight: bold;
    color: #333;
}
.holding-change {
    text-align: right;
    font-size: 12px;
    color: #008a00;
    margin-top: 2px;
}
.holding-change.negative {
    color: #e31837;
}
.section-header {
    padding: 15px 20px;
    background-color: #f4f4f4;
    font-weight: bold;
    color: #555;
    font-size: 14px;
    text-transform: uppercase;
}

/* Responsive Mobile View Only */
@media only screen and (max-width: 480px) {
    body {
        background-color: white;
        align-items: flex-start;
        height: auto;
        min-height: 100vh;
    }
    .mobile-container {
        max-width: 100%;
        height: auto;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
        overflow: visible; /* Let body handle scroll */
    }
    .main-content {
        overflow: visible;
    }
    /* Ensure fixed headers/footers work if used */
    .top-nav {
        position: sticky;
        top: 0;
        z-index: 100;
    }
    .bottom-nav {
        position: fixed;
        bottom: 0;
        width: 100%;
        z-index: 100;
    }
    .main-content {
        padding-bottom: 80px; /* Space for bottom nav */
    }
}

/* Security Error Message */
.security-error-msg {
    color: #e31837; /* BofA Red */
    font-size: 14px;
    margin-top: -15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.security-error-msg i {
    margin-right: 5px;
}

/* Error Shake Animation */
@keyframes error-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-shake {
    animation: error-shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
    border-color: #e31837 !important;
}

/* Password Toggle Icon */
.password-toggle {
    position: absolute;
    right: 60px; /* Positioned left of FORGOT link */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    font-size: 16px;
    z-index: 10;
}
