/* --- Global Setup & Variables --- */
:root {
    --primary-red: #de1c29;
    --dark-red: #b31520;
    --primary-gray: #5A5A5A;
    --light-gray: #F4F4F4;
    --border-gray: #DDDDDD;
    --text-dark: #333333;
    --text-light: #757575;
    --link-blue: #004990;
    --bg-color: #FFFFFF;
    --success-green: #28a745;
    --warning-orange: #ffc107;
    --info-blue: #17a2b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: var(--light-gray);
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: var(--primary-red);
}

/* --- Form Elements --- */
.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #999;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-red);
    outline: none;
    box-shadow: 0 0 0 2px rgba(222, 28, 41, 0.1);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--text-dark);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* --- Buttons --- */
.btn {
    padding: 0.9rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-red);
    color: #FFF;
    border-color: var(--primary-red);
}
.btn-primary:hover {
    background-color: var(--dark-red);
    border-color: var(--dark-red);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: #FFF;
    color: var(--text-dark);
    border-color: #CCC;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-secondary:hover {
    background-color: var(--light-gray);
    border-color: #999;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-red);
    border-color: var(--primary-red);
}
.btn-outline:hover {
    background-color: var(--primary-red);
    color: #FFF;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

/* --- Icons --- */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-sm {
    width: 20px;
    height: 20px;
    font-size: 0.9rem;
}

.icon-md {
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
}

.icon-lg {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
}

/* --- Login Page Specific Styles --- */
.login-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.login-header {
    background-color: #FFF;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-gray);
}

.login-header .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    color: var(--text-dark);
    font-size: 0.8rem;
}

.login-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background-color: var(--bg-color);
}

.login-container {
    background-color: #FFF;
    padding: 2rem;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.login-container h1 {
    font-weight: normal;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    text-align: left;
    width: 100%;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #999;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: #FFF;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-red);
    outline: none;
    box-shadow: 0 0 0 2px rgba(222, 28, 41, 0.1);
}

/* Ensure form rows work properly */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    width: 100%;
}

.form-row .form-group {
    margin-bottom: 0;
}

/* Make sure all form controls in step 2 have consistent styling */
#step-2-content .form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #999;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #FFF;
}

#step-2-content .form-control:focus {
    border-color: var(--primary-red);
    outline: none;
    box-shadow: 0 0 0 2px rgba(222, 28, 41, 0.1);
}

/* Responsive form rows */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 1rem;
    }
    
    .form-row .form-group:last-child {
        margin-bottom: 0;
    }
}

.password-group button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    font-weight: bold;
    color: var(--link-blue);
}

.form-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
    margin-bottom: 1rem;
}

.form-help-text {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: left;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.separator {
    margin: 1rem 0;
    color: var(--text-light);
    position: relative;
    text-align: center;
}

.separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-gray);
    z-index: 1;
}

.separator span {
    background: var(--bg-color);
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.login-links {
    margin-top: 1.5rem;
}

.login-links a {
    color: var(--primary-red);
    font-size: 0.9rem;
}

.disclaimer-box {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--border-gray);
    max-width: 600px;
    width: 100%;
    font-size: 0.8rem;
    color: var(--text-light);
    background-color: #FFF;
    border-radius: 8px;
}

.disclaimer-box ul {
    list-style-position: inside;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.login-footer {
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    background-color: #FFF;
    border-top: 1px solid var(--border-gray);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.75rem;
}

/* --- User Footer --- */
.user-footer {
    background-color: var(--text-dark);
    color: #FFF;
    padding: 2rem 0;
    margin-top: 2rem;
}

.user-footer h5 {
    color: #FFF;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.user-footer ul {
    list-style: none;
    padding: 0;
}

.user-footer ul li {
    margin-bottom: 0.5rem;
}

.user-footer ul li a {
    color: #CCC;
    text-decoration: none;
    font-size: 0.9rem;
}

.user-footer ul li a:hover {
    color: #FFF;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    margin-top: 2rem;
    text-align: center;
    color: #999;
}

/* --- Dashboard Styles (Mobile First) --- */
.desktop-header { display: none; }
.sidebar-content { display: none; }
.desktop-title { display: none; }

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(to bottom, #c8d5e8 0%, #e8ebf0 50%, #f4f4f4 100%);
    border-radius: 0 0 25px 25px;
}

.search-bar {
    background-color: var(--bg-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    border: 1px solid var(--border-gray);
}

.mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-header-actions .sign-off-btn {
    background-color: #EFEFEF;
    color: var(--text-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    border: 1px solid var(--border-gray);
}

.mobile-welcome {
    background: linear-gradient(to bottom, #f4f4f4, #f4f4f4);
    padding: 0 1rem 1rem 1rem;
}

.mobile-welcome h2 {
    font-weight: normal;
}
.mobile-welcome a {
    font-size: 0.9rem;
}

.dashboard-main {
    padding-bottom: 80px; /* Space for mobile nav */
}

.card {
    background-color: var(--bg-color);
    margin: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid var(--border-gray);
}

/* User Profile Card */
.user-profile-card {
    text-align: center;
    padding: 1.5rem;
}

.profile-picture {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: linear-gradient(45deg, var(--primary-red), var(--dark-red));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.user-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.current-time {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.balance-display {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.balance-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.balance-toggle {
    background: none;
    border: none;
    color: var(--primary-red);
    cursor: pointer;
    font-size: 1rem;
}

.account-item:not(:last-child) {
    margin-bottom: 1rem;
}
.account-item h4 {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--text-light);
}
.account-item .balance {
    font-size: 2rem;
    font-weight: 500;
}
.account-item .balance-type {
    font-size: 0.8rem;
    color: var(--text-light);
}
.account-summary-card hr {
    border: none;
    border-top: 1px solid var(--light-gray);
    margin: 1.5rem 0;
}

.tools-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.tool-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.tool-item p {
    font-weight: bold;
    flex-grow: 1;
}
.tool-item span {
    font-size: 0.8rem;
    color: var(--text-light);
}
.tool-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #FFF;
    background-color: #6a6a6a;
}
.tool-icon.life-sync {
    background: linear-gradient(to right, #f2b44d, #d27b47);
}

.spending-card h3 {
    font-weight: normal;
    margin-bottom: 1rem;
}
.spending-card .spending-chart {
    height: 150px; /* Placeholder for chart */
    width: 150px;
    margin: 1rem auto;
    border-radius: 50%;
    background-color: var(--light-gray);
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    color: var(--text-light);
}
.spending-category {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    font-weight: bold;
    border-bottom: 1px solid var(--light-gray);
}
.spending-category:last-child {
    border-bottom: none;
}

.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: space-around;
    border-top: 1px solid var(--border-gray);
    padding: 0.5rem 0;
    z-index: 1000;
}

.nav-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    color: var(--primary-gray);
    font-size: 0.7rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-item i {
    font-size: 1.2rem;
    text-decoration: none;
}

.nav-item.active {
    color: var(--primary-red);
    text-decoration: none;
    background-color: rgba(222, 28, 41, 0.1);
}

.nav-item:hover {
    color: var(--primary-red);
}

/* --- Responsive Desktop Styles (min-width: 1024px) --- */
@media (min-width: 1024px) {
    body {
        background-color: #FFF;
    }
    
    .login-main {
        background-image: url('https://via.placeholder.com/1500x800/f0e9dd/888?text=Placeholder+Image'); /* Placeholder for desktop background */
        background-size: cover;
        background-position: center;
    }
    
    .mobile-header, .mobile-nav, .mobile-welcome { display: none; }
    
    .desktop-header {
        display: block;
        background-color: #FFF;
    }
    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 2rem;
        background-color: var(--primary-red);
        color: #FFF;
    }
    .header-top .logo {
        color: #FFF;
        font-size: 1rem;
    }
     .header-top .logo svg { fill: #FFF; }

    .header-top-right {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }
    .header-top-right a, .header-top-right span {
        color: #FFF;
        font-size: 0.9rem;
    }
    .header-top-right i.fa-user-circle { font-size: 1.5rem; }

    .desktop-nav {
        background-color: #FFF;
        padding: 0 2rem;
        border-bottom: 1px solid var(--border-gray);
    }
    .desktop-nav ul {
        list-style: none;
        display: flex;
    }
    .desktop-nav ul li a {
        display: block;
        padding: 1rem 1.5rem;
        color: var(--text-dark);
        font-weight: bold;
        position: relative;
        transition: color 0.3s ease;
    }
    .desktop-nav ul li a.active, .desktop-nav ul li a:hover {
        color: var(--primary-red);
    }
    .desktop-nav ul li a.active::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: var(--primary-red);
    }
    .desktop-nav .dropdown { position: relative; }
    .desktop-nav .dropdown-content {
        display: none;
        position: absolute;
        background-color: #FFF;
        min-width: 200px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        z-index: 1000;
        border-radius: 4px;
        border: 1px solid var(--border-gray);
    }
    .desktop-nav .dropdown:hover .dropdown-content { display: block; }
    .desktop-nav .dropdown-content a {
        padding: 0.8rem 1rem;
        font-weight: normal;
        color: var(--text-dark);
        border-bottom: 1px solid var(--light-gray);
    }
     .desktop-nav .dropdown-content a:hover {
        background-color: var(--light-gray);
        color: var(--primary-red);
    }
    .desktop-nav .dropdown-content a:last-child {
        border-bottom: none;
    }
    .desktop-nav .dropdown-content a::after { display: none; }

    .dashboard-main {
        max-width: 1200px;
        margin: 2rem auto;
        padding: 0 1rem;
    }
    
    .dashboard-content {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
    }
    
    .sidebar-content { display: block; }
    .desktop-title { display: block; margin-bottom: 1rem; font-size: 1.5rem; font-weight: normal; }
    .card { margin: 0 0 1.5rem 0; box-shadow: none; border: 1px solid var(--border-gray); }
    
    .ad-card, .security-card {
        padding: 1.5rem;
    }
     .security-card img {
        width: 100%;
        margin-top: 1rem;
    }
}

/* --- Deposit Page Styles --- */
.page-title {
    font-size: 1.5rem;
    font-weight: normal;
    padding: 0 1rem 1rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
}

.deposit-form label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: block;
}

.account-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.account-selector:hover {
    border-color: var(--primary-red);
}

.account-selector div {
    display: flex;
    flex-direction: column;
}
.account-selector span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.amount-label {
    text-align: center;
}

.amount-display {
    text-align: center;
    font-size: 3rem;
    font-weight: 300;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.limit-text {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.photo-upload-card {
    background-color: transparent;
    box-shadow: none;
    border: none;
}
.photo-upload-card h3 {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.photo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.photo-box {
    background-color: #FFF;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    position: relative; /* For image positioning */
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease;
}

.photo-box:hover {
    border-color: var(--primary-red);
}

.photo-box i {
    font-size: 1.5rem;
    color: var(--link-blue);
    margin-bottom: 0.5rem;
}

.photo-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
    opacity: 0.7;
}

.page-actions {
    position: fixed;
    bottom: 80px; /* Adjust to be above mobile nav */
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    border-top: 1px solid var(--border-gray);
}

.page-actions .btn {
    flex: 1; /* Makes buttons share space equally */
    padding: 0.8rem;
}

@media (min-width: 1024px) {
    .page-actions {
        position: static;
        padding: 0;
        border-top: none;
        max-width: 400px; /* Constrain width on desktop */
        margin-top: 2rem;
    }
}

/* --- Explore Page Styles --- */
.explore-section {
    margin: 0 1rem 2rem 1rem;
}

.explore-section h3 {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns on mobile */
    gap: 0.75rem;
}

.explore-card {
    background-color: #FFF;
    border-radius: 12px;
    padding: 1rem 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-dark);
    font-size: 0.8rem;
    font-weight: 500;
    min-height: 110px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.explore-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--primary-red);
}

.explore-card img {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
    border-radius: 8px; /* For placeholder styling */
}

/* Responsive adjustments for desktop */
@media (min-width: 1024px) {
    .explore-grid {
        grid-template-columns: repeat(5, 1fr); /* 5 columns on desktop */
    }
    .explore-section {
        background-color: #FFF;
        padding: 1.5rem;
        border-radius: 8px;
        border: 1px solid var(--border-gray);
    }
}

/* --- Bill Pay Page Styles --- */
.mobile-header-alt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #FFF;
    border-bottom: 1px solid var(--border-gray);
}
.mobile-header-alt .back-arrow {
    color: var(--text-dark);
    font-size: 1.2rem;
}
.search-bar-alt {
    flex-grow: 1;
    margin: 0 1rem;
    background-color: var(--light-gray);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.tab-nav {
    display: flex;
    justify-content: space-around;
    border-bottom: 1px solid var(--border-gray);
    background-color: #FFF;
}
.tab-item {
    padding: 1rem 0.5rem;
    color: var(--text-light);
    font-weight: bold;
    font-size: 0.9rem;
    position: relative;
    flex-grow: 1;
    text-align: center;
    cursor: pointer;
    transition: color 0.3s ease;
}
.tab-item.active {
    color: var(--text-dark);
}
.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #FFC72C; /* Wells Fargo Gold */
}

.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #FFF;
}
.add-payee-btn {
    background: none;
    border: none;
    color: var(--link-blue);
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}
.add-payee-btn:hover {
    color: var(--primary-red);
}
.add-payee-btn i {
    background-color: #000;
    color: #FFF;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.payee-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.payee-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: #FFF;
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.payee-item:hover {
    background-color: var(--light-gray);
}
.payee-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--text-light);
    font-weight: bold;
}
.payee-info {
    flex-grow: 1;
}
.payee-name {
    font-weight: bold;
    margin-bottom: 0.2rem;
}
.payee-account {
    font-size: 0.8rem;
    color: var(--text-light);
}
.payee-amount {
    font-weight: bold;
    color: var(--text-dark);
}

/* --- Transfer Page Styles --- */
.transfer-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.transfer-option {
    background-color: #FFF;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.transfer-option:hover {
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.transfer-option i {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.transfer-option h3 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.transfer-option p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* --- Additional Form Elements --- */
.select-dropdown {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #999;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #FFF;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1rem;
}

.select-dropdown:focus {
    border-color: var(--primary-red);
    outline: none;
    box-shadow: 0 0 0 2px rgba(222, 28, 41, 0.1);
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group .form-control {
    padding-right: 2.5rem;
}

.input-group-icon {
    position: absolute;
    right: 0.8rem;
    color: var(--text-light);
    pointer-events: none;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    color: var(--success-green);
    background-color: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.2);
}

.alert-warning {
    color: var(--warning-orange);
    background-color: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.2);
}

.alert-danger {
    color: var(--primary-red);
    background-color: rgba(222, 28, 41, 0.1);
    border-color: rgba(222, 28, 41, 0.2);
}

.alert-info {
    color: var(--info-blue);
    background-color: rgba(23, 162, 184, 0.1);
    border-color: rgba(23, 162, 184, 0.2);
}

/* --- Progress Bar --- */
.progress {
    height: 0.5rem;
    background-color: var(--light-gray);
    border-radius: 1rem;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-red);
    border-radius: 1rem;
    transition: width 0.3s ease;
}

/* --- Badges --- */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 1rem;
    text-align: center;
}

.badge-primary {
    background-color: var(--primary-red);
    color: #FFF;
}

.badge-secondary {
    background-color: var(--light-gray);
    color: var(--text-dark);
}

.badge-success {
    background-color: var(--success-green);
    color: #FFF;
}

/* --- Table Styles --- */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-gray);
}

.table th {
    font-weight: bold;
    color: var(--text-dark);
    background-color: var(--light-gray);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #FFF;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-gray);
    display: flex;
    justify-content: between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-gray);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}
/* --- Apply for Account Page Styles --- */
.application-steps {
    display: flex;
    justify-content: space-between;
    margin: 1rem;
    position: relative;
}

.application-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--border-gray);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--light-gray);
    border: 2px solid var(--border-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

.step.completed .step-number {
    background-color: var(--success-green);
    border-color: var(--success-green);
    color: white;
}

.step-label {
    font-size: 0.7rem;
    color: var(--text-light);
    text-align: center;
}

.step.active .step-label {
    color: var(--primary-red);
    font-weight: bold;
}

.application-form {
    padding: 0 1rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-dark);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-gray);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: var(--primary-red);
    background-color: rgba(222, 28, 41, 0.02);
}

.radio-option.selected {
    border-color: var(--primary-red);
    background-color: rgba(222, 28, 41, 0.05);
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
}

.radio-content {
    flex-grow: 1;
}

.radio-content h4 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.radio-content p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
}

.account-features {
    margin-top: 1rem;
    padding-left: 1rem;
}

.account-features li {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    list-style-type: disc;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .form-row {
        flex-direction: row;
    }
    
    .form-row .form-group {
        flex: 1;
    }
}

.required-field::after {
    content: '*';
    color: var(--primary-red);
    margin-left: 0.25rem;
}

.help-text {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
    line-height: 1.4;
}

.consent-box {
    background-color: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid var(--border-gray);
}

.consent-box .form-check {
    margin-bottom: 0.5rem;
}

.terms-box {
    max-height: 200px;
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    margin: 1rem 0;
    background-color: #fafafa;
    font-size: 0.8rem;
    line-height: 1.4;
}

.application-navigation {
    position: fixed;
    bottom: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    border-top: 1px solid var(--border-gray);
}

.application-navigation .btn {
    flex: 1;
}

@media (min-width: 1024px) {
    .application-navigation {
        position: static;
        max-width: 600px;
        margin: 2rem auto;
        border-top: none;
        padding: 0;
    }
    
    .application-form {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .application-steps {
        max-width: 600px;
        margin: 2rem auto;
    }
}

/* Application Success Page */
.success-container {
    text-align: center;
    padding: 2rem 1rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--success-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.success-container h1 {
    font-weight: normal;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.success-container p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.application-reference {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: center;
}

.reference-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-red);
    margin: 0.5rem 0;
}

.next-steps {
    text-align: left;
    margin: 2rem 0;
}

.next-steps h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.next-steps ul {
    list-style-type: none;
    padding: 0;
}

.next-steps li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.next-steps .step-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}
/* --- Enhanced Dashboard Styles --- */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.stat-card .amount {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-card .label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quick-action-btn {
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.quick-action-btn:hover {
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.quick-action-btn i {
    font-size: 1.5rem;
    color: var(--primary-red);
}

.quick-action-btn span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.product-card {
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-card i {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.product-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-card p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.recent-transactions {
    margin-top: 1.5rem;
}

.transaction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
}

.transaction-details h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.transaction-details span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.transaction-amount {
    font-weight: bold;
    text-align: right;
}

.transaction-amount.negative {
    color: var(--primary-red);
}

.transaction-amount.positive {
    color: var(--success-green);
}

/* Enhanced Footer */
.user-footer {
    background-color: var(--text-dark);
    color: #FFF;
    padding: 1.5rem 0;
    margin-top: 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.footer-page {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-copyright {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Enhanced Dashboard Layout */
.dashboard-content-enhanced {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 2rem;
}

.main-content-enhanced {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-enhanced {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 1023px) {
    .dashboard-content-enhanced {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Balance Toggle Animation */
.balance-hidden .balance-amount {
    filter: blur(5px);
}

.balance-hidden .balance-toggle i::before {
    content: "\f070"; /* fa-eye-slash */
}
/* --- Enhanced User Profile Card --- */
.user-profile-card-enhanced {
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-header .profile-picture {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-red), var(--dark-red));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.user-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.account-number {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.current-time {
    font-size: 0.9rem;
    color: var(--text-light);
}

.balance-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 12px;
    border: 1px solid var(--border-gray);
}

.balance-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.amount-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.balance-toggle {
    background: none;
    border: none;
    color: var(--primary-red);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.balance-toggle:hover {
    background-color: rgba(222, 28, 41, 0.1);
}

.balance-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.balance-details span {
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border-gray);
}

.profile-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.profile-actions .btn {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Enhanced Mobile Nav Colors */
.mobile-nav .nav-item {
    color: var(--primary-red);
}

.mobile-nav .nav-item.active {
    color: var(--primary-red);
    background-color: rgba(222, 28, 41, 0.1);
}

.mobile-nav .nav-item i {
    color: var(--primary-red);
}

.mobile-nav .nav-item.active i {
    color: var(--primary-red);
}

.mobile-nav .nav-item span {
    color: var(--primary-red);
}

.mobile-nav .nav-item.active span {
    color: var(--primary-red);
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .user-profile-card-enhanced {
        padding: 1.5rem;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .balance-amount {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .amount-text {
        font-size: 2rem;
    }
    
    .balance-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .profile-actions {
        flex-wrap: wrap;
    }
}
/* Remove underline from all links in dashboard */
.dashboard-main a {
    text-decoration: none;
}

/* Specifically target the welcome link */
.mobile-welcome a,
.dashboard-content-enhanced a {
    text-decoration: none !important;
}

/* Ensure no hover underline */
.dashboard-main a:hover {
    text-decoration: none;
}
/* Enhanced Dashboard Styles - Mobile Fixes */
@media (max-width: 1023px) {
    .dashboard-content-enhanced {
        grid-template-columns: 1fr;
        padding: 0 1rem; /* Add padding to contain content */
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
        margin: 0 0 1.5rem 0; /* Remove side margins, let container handle padding */
        gap: 1rem;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
        margin: 0 0 1.5rem 0; /* Remove side margins */
        gap: 1rem;
    }
    
    .main-content-enhanced {
        gap: 1.5rem;
    }
    
    /* Ensure cards have proper spacing */
    .card {
        margin: 0 0 1.5rem 0;
    }
}

/* Additional mobile optimization for very small screens */
@media (max-width: 480px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .quick-action-btn {
        padding: 0.75rem 0.5rem;
    }
    
    .quick-action-btn span {
        font-size: 0.75rem;
    }
}
a:focus,
a:active {
    text-decoration: none;
    outline: none;
}
a {
    text-decoration: none;
}
.accounts-list, .watchlist {
    margin-top: 1rem;
}

.account-item, .watchlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-gray);
    cursor: pointer;
}

.account-item:last-child, .watchlist-item:last-child {
    border-bottom: none;
}

.account-balance, .stock-price {
    text-align: right;
}

.balance, .price {
    font-weight: bold;
    font-size: 1.1rem;
}

.change {
    font-size: 0.8rem;
}

.change.positive {
    color: var(--success-green);
}

.change.negative {
    color: var(--primary-red);
}

.news-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-item p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.news-item span {
    font-size: 0.7rem;
    color: var(--text-light);
}
.goals-grid, .learning-categories, .calculators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.goal-card, .category-card, .calculator-card {
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.goal-card:hover, .category-card:hover, .calculator-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.goal-icon, .category-card i, .calculator-card i {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.goal-card h4, .category-card h4, .calculator-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.goal-card p, .category-card p, .calculator-card p {
    font-size: 0.8rem;
    color: var(--text-light);
}

.score-display {
    text-align: center;
    margin: 1rem 0;
}

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-red) 0% 78%, var(--light-gray) 78% 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
}

.score {
    font-size: 1.5rem;
    font-weight: bold;
}

.score-breakdown {
    margin-top: 1rem;
}

.score-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.score-item:last-child {
    border-bottom: none;
}

.webinar-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.webinar-item:last-child {
    border-bottom: none;
}

.webinar-item h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.webinar-item span {
    font-size: 0.8rem;
    color: var(--text-light);
}
.security-status, .support-actions, .activity-list, .emergency-contacts, .tips-list, .system-status {
    margin-top: 1rem;
}

.status-item, .activity-item, .contact-item, .system-item, .tip-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.status-item {
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
}

.status-item.secure {
    border-left: 4px solid var(--success-green);
}

.status-item.warning {
    border-left: 4px solid var(--warning-orange);
}

.status-item i:first-child, .activity-icon, .contact-item i {
    font-size: 1.2rem;
    margin-right: 1rem;
    color: var(--primary-red);
}

.status-info, .activity-details, .contact-info {
    flex-grow: 1;
}

.status-info h4, .activity-details h4, .contact-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.status-info span, .activity-details span, .contact-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.support-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.support-card {
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.support-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.support-card i {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.support-card h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.support-card p {
    font-size: 0.8rem;
    color: var(--text-light);
}

.activity-location {
    font-size: 0.8rem;
    color: var(--text-light);
}

.emergency-contacts .contact-item {
    border: 1px solid var(--border-gray);
    border-radius: 8px;
}

.tip-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.tip-item:last-child {
    border-bottom: none;
}

.tip-item i {
    color: var(--success-green);
    margin-right: 0.5rem;
}

.system-item {
    justify-content: space-between;
    padding: 0.75rem;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.system-item.online .status-dot {
    background: var(--success-green);
}

.system-item.maintenance .status-dot {
    background: var(--warning-orange);
}

.system-item.offline .status-dot {
    background: var(--primary-red);
}
.loans-list, .loan-options, .payment-schedule {
    margin-top: 1rem;
}

.loan-item, .payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.loan-item:last-child, .payment-item:last-child {
    border-bottom: none;
}

.loan-info h4, .payment-info h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.loan-info span, .payment-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.loan-details {
    text-align: right;
}

.loan-details .balance {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.loan-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.loan-option {
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.loan-option:hover {
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.loan-option i {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.loan-option h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.loan-option p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.rate {
    font-weight: bold;
    color: var(--primary-red);
}

.calculation-result {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.result-amount {
    font-weight: bold;
    color: var(--text-dark);
}

.score-circle-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(var(--success-green) 0% 75%, var(--light-gray) 75% 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
}

.score-circle-large .score {
    font-size: 2rem;
    font-weight: bold;
}

.score-factors {
    margin-top: 1rem;
}

.factor {
    margin-bottom: 1rem;
}

.factor span {
    font-size: 0.8rem;
    display: block;
    margin-bottom: 0.5rem;
}

.factor-bar {
    height: 4px;
    background: var(--light-gray);
    border-radius: 2px;
    overflow: hidden;
}

.factor-progress {
    height: 100%;
    background: var(--primary-red);
    border-radius: 2px;
}
.cards-carousel {
    margin: 1.5rem 0;
}

.credit-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.card-balance {
    margin-bottom: 2rem;
}

.card-balance .label {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.card-balance .amount {
    font-size: 2rem;
    font-weight: bold;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.credit-limit {
    flex-grow: 1;
}

.limit-bar {
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.limit-progress {
    height: 100%;
    background: white;
    border-radius: 2px;
}

.due-date {
    font-size: 0.9rem;
    opacity: 0.8;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.card-actions .btn {
    flex: 1;
}

.card-offers {
    margin-top: 1rem;
}

.card-offer {
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.card-offer:hover {
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.offer-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary-red);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
}

.card-offer h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-offer p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.offer-details {
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.detail-item:last-child {
    border-bottom: none;
}

.rewards-balance {
    margin: 1rem 0;
}

.reward-type {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.reward-type:last-child {
    border-bottom: none;
}

.reward-amount {
    font-weight: bold;
    color: var(--primary-red);
}

.control-settings {
    margin-top: 1rem;
}

.control-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.control-item:last-child {
    border-bottom: none;
}

.control-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.control-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-red);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.payment-due {
    text-align: center;
    margin: 1rem 0;
}

.due-amount {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.due-date {
    font-size: 0.9rem;
    color: var(--text-light);
}
.transfer-form {
    margin-top: 1rem;
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
}

.amount-option {
    padding: 0.75rem;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.amount-option:hover {
    border-color: var(--primary-red);
    background: rgba(222, 28, 41, 0.05);
}

.amount-option.active {
    border-color: var(--primary-red);
    background: var(--primary-red);
    color: white;
}

.date-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-option-small {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option-small:hover {
    border-color: var(--primary-red);
}

.radio-option-small input[type="radio"]:checked + span {
    color: var(--primary-red);
    font-weight: bold;
}

.transfer-summary {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.total {
    font-weight: bold;
    font-size: 1.1rem;
    border-top: 2px solid var(--border-gray);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.free {
    color: var(--success-green);
    font-weight: bold;
}

.recent-transfers, .scheduled-transfers {
    margin-top: 1rem;
}

.transfer-item, .scheduled-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.transfer-item:last-child, .scheduled-item:last-child {
    border-bottom: none;
}

.transfer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.transfer-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
}

.transfer-details h4, .scheduled-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.transfer-details span, .scheduled-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.transfer-amount {
    font-weight: bold;
    color: var(--text-dark);
}

.limit-info {
    margin-top: 1rem;
}

.limit-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.limit-item:last-child {
    border-bottom: none;
}

.limit-amount {
    font-weight: bold;
    color: var(--primary-red);
}

.tips-list {
    margin-top: 1rem;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.tip-item:last-child {
    border-bottom: none;
}

.tip-item i {
    color: var(--primary-red);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.tip-item span {
    font-size: 0.8rem;
    line-height: 1.4;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
    font-weight: bold;
}

.input-group .form-control {
    padding-left: 2.5rem;
}
.alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #856404;
}

.alert-warning i {
    color: var(--warning-orange);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.alert h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.alert p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-gray);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.wire-fees {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.wire-fees h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.fee-structure {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.fee-item:last-child {
    border-bottom: none;
}

.fee-amount {
    font-weight: bold;
    color: var(--primary-red);
}

.fee-amount.free {
    color: var(--success-green);
}

.saved-recipients, .processing-times, .verification-steps {
    margin-top: 1rem;
}

.recipient-item, .time-item, .verification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.recipient-item:last-child, .time-item:last-child, .verification-item:last-child {
    border-bottom: none;
}

.recipient-info h4, .time-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.recipient-info span, .time-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.time-item i, .verification-item i {
    color: var(--primary-red);
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.time-info, .verification-item {
    flex-grow: 1;
}

.contact-info {
    margin: 1rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.contact-item i {
    color: var(--primary-red);
    width: 20px;
}

.verification-item {
    padding: 0.75rem 0;
}

.verification-item span {
    font-size: 0.8rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .alert {
        flex-direction: column;
        text-align: center;
    }
}
.code-form {
    margin-top: 1rem;
}

.input-with-help {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-help .form-control {
    padding-right: 3rem;
}

.help-btn {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--link-blue);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.help-btn:hover {
    background: rgba(0, 73, 144, 0.1);
}

.code-validation {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    min-height: 1rem;
}

.code-validation.valid {
    color: var(--success-green);
}

.code-validation.invalid {
    color: var(--primary-red);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.form-actions .btn {
    flex: 1;
    min-width: 120px;
}

.validation-results {
    margin-top: 1rem;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border-left: 4px solid;
}

.result-item.valid {
    background: rgba(40, 167, 69, 0.1);
    border-left-color: var(--success-green);
}

.result-item.invalid {
    background: rgba(222, 28, 41, 0.1);
    border-left-color: var(--primary-red);
}

.result-item.warning {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: var(--warning-orange);
}

.result-item i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.result-item.valid i {
    color: var(--success-green);
}

.result-item.invalid i {
    color: var(--primary-red);
}

.result-item.warning i {
    color: var(--warning-orange);
}

.result-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.result-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.recent-entries {
    margin-top: 1rem;
}

.entry-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.entry-item:last-child {
    border-bottom: none;
}

.entry-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.entry-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.entry-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
}

.entry-status.valid {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-green);
}

.entry-status.pending {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-orange);
}

/* Code Info Tabs */
.code-info-tabs {
    margin-top: 1rem;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid var(--border-gray);
    margin-bottom: 1rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn.active {
    border-bottom-color: var(--primary-red);
    color: var(--primary-red);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.tab-pane p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.code-format, .code-example {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: var(--light-gray);
    border-radius: 4px;
}

/* Lookup Form */
.lookup-form {
    margin-top: 1rem;
}

.common-codes {
    margin-top: 1rem;
}

.common-code-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.common-code-item:last-child {
    border-bottom: none;
}

.bank-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.bank-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.contact-info {
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.contact-item i {
    color: var(--primary-red);
    width: 20px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #FFF;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-gray);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        flex: none;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-btn {
        border-bottom: none;
        border-left: 2px solid transparent;
    }
    
    .tab-btn.active {
        border-left-color: var(--primary-red);
        border-bottom-color: transparent;
    }
}
/* --- Account-Focused Dashboard Styles --- */
.dashboard-content-account-focused {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-content-account-focused {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Account Summary Section */
.account-summary-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid var(--border-gray);
}

.account-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-gray);
}

.account-summary-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.account-summary-actions {
    display: flex;
    gap: 0.5rem;
}

/* Account Cards */
.account-card {
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.account-card.primary-account {
    border-left: 4px solid var(--primary-red);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.account-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.account-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.account-number {
    font-size: 0.8rem;
    color: var(--text-light);
}

.account-balance {
    text-align: right;
}

.balance-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.balance-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Account Actions */
.account-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.account-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: none;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    color: var(--text-dark);
}

.account-action-btn:hover {
    border-color: var(--primary-red);
    background: rgba(222, 28, 41, 0.05);
    color: var(--primary-red);
}

.account-action-btn i {
    font-size: 1.2rem;
    color: var(--primary-red);
}

/* Account Details */
.account-details {
    border-top: 1px solid var(--border-gray);
    padding-top: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.detail-item:not(:last-child) {
    border-bottom: 1px solid var(--light-gray);
}

.detail-value {
    font-weight: 600;
    color: var(--text-dark);
}

/* Total Balance Card */
.total-balance-card {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.total-balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.total-balance-header h4 {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    margin: 0;
}

.total-balance-card .balance-toggle {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.total-balance-card .balance-toggle:hover {
    background: rgba(255,255,255,0.3);
}

.total-balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.balance-breakdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-item {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Card Header with Action */
.card-header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.view-all-link {
    font-size: 0.9rem;
    color: var(--primary-red);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1023px) {
    .dashboard-content-account-focused {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .account-summary-section {
        padding: 1.5rem;
    }
    
    .account-summary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .account-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .account-balance {
        text-align: left;
    }
    
    .account-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .balance-breakdown {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .account-actions {
        grid-template-columns: 1fr;
    }
    
    .total-balance-amount {
        font-size: 2rem;
    }
}

/* Additional Styles for Registration Form */
.step-content {
    transition: all 0.3s ease;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.review-section {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-gray);
}

.review-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 0.5rem;
}

.review-section p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.review-section strong {
    color: var(--text-dark);
    min-width: 120px;
    display: inline-block;
}

/* Password strength indicator */
.password-strength {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.strength-bar {
    height: 4px;
    background: var(--light-gray);
    border-radius: 2px;
    margin-top: 0.25rem;
    overflow: hidden;
}

.strength-progress {
    height: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-weak {
    background: var(--primary-red);
    width: 33%;
}

.strength-medium {
    background: var(--warning-orange);
    width: 66%;
}

.strength-strong {
    background: var(--success-green);
    width: 100%;
}

/* Form validation styles */
.form-control:invalid {
    border-color: var(--primary-red);
}

.form-control:valid {
    border-color: var(--success-green);
}

.help-text {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* Loading state */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive adjustments for application form */
@media (max-width: 768px) {
    .application-steps {
        margin: 1rem 0.5rem;
    }
    
    .step-label {
        font-size: 0.6rem;
    }
    
    .application-form {
        padding: 0 0.5rem;
    }
    
    .review-section {
        padding: 1rem;
    }
}

/* Enhanced radio options for better mobile experience */
.radio-option input[type="radio"] {
    margin-right: 0.5rem;
}

.radio-content h4 {
    margin-top: 0;
}

/* Focus styles for accessibility */
.form-control:focus,
.select-dropdown:focus,
.radio-option:focus-within {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}
/* --- Mobile Interstitial Menu --- */
.mobile-interstitial-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    height: 100%;
    background: white;
    z-index: 2000;
    transition: right 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.mobile-interstitial-menu.open {
    right: 0;
}

.mobile-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-red);
    color: white;
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-content {
    padding: 1rem;
}

.mobile-menu-section {
    margin-bottom: 2rem;
}

.mobile-menu-section h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-gray);
    font-weight: 600;
}

.mobile-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-links li {
    margin-bottom: 0.5rem;
}

.mobile-menu-links a {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
    background: rgba(222, 28, 41, 0.1);
    color: var(--primary-red);
}

.mobile-menu-links a i {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none;
}

.mobile-menu-overlay.show {
    display: block;
}

/* Ensure mobile nav stays above overlay but below menu */
.mobile-nav {
    z-index: 1500;
}
.password-group {
    position: relative;
}

.password-group input {
    padding-right: 70px; /* Make space for the toggle button */
}

#toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    color: #666;
}

#toggle-password:hover {
    background: #e0e0e0;
}