/* Set modern font for everything in the account section */
body, .account-container, .account-header, .account-header h2, .account-info, .profile-section, .profile-image, .profile-details, .profile-details h3, .profile-details p, .account-actions, .action-btn, .logout-btn, .account-sections, .account-section, .account-section h4, .account-section ul, .account-section ul li, .account-section a, .toggle-setting, .switch, .slider, .security-popup, .security-popup-content, .security-popup-header, .security-popup-header h3, .close-popup, .security-popup-body, .security-popup-icon, .balance-section, .balance-card, .balance-header, .balance-header h3, .balance-content, .balance-amount, .currency-symbol, .balance-value, .balance-actions, .balance-btn, .deposit-btn, .withdraw-btn, .popup-modal, .popup-content, .popup-header, .popup-header h3, .close-popup-modal, .popup-body, .form-group, .popup-actions, .save-btn, .popup-message {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, 'Helvetica Neue', sans-serif !important;
}

/* Account Section Styles */
.account-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
    background-color: white;
}

.account-header {
    border-bottom: 2px solid #00CED1;
    margin-bottom: 30px;
    padding-bottom: 15px;
    position: relative;
}

.account-header h2 {
    font-size: 26px;
    font-weight: 500;
    color: #333;
    letter-spacing: 0.5px;
}

.account-info {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #f5f5f5;
}

.profile-section {
    display: flex;
    align-items: center;
}

.profile-image {
    margin-right: 20px;
    background-color: #f8f8f8;
    border-radius: 50%;
    height: 70px;
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image i {
    font-size: 40px;
    color: #00CED1;
}

.profile-details h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.profile-details p {
    margin: 5px 0 0;
    color: #777;
    font-size: 14px;
}

.account-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.action-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    background-color: #f5f5f5;
    color: #333;
}

.action-btn:hover {
    background-color: #ebebeb;
    transform: translateY(-2px);
}

.logout-btn {
    background-color: rgba(231, 76, 60, 0.07);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.logout-btn:hover {
    background-color: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

/* Balance, Credit Score, Level Row */
.balance-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.balance-section {
    margin-bottom: 0; /* Override the previous margin since we're using grid gap */
}

/* System Messages Section - stays as is */
/* ... */

/* Remaining sections row */
.account-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px; /* Add some space after the system messages section */
}

.account-section {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 25px;
    border: 1px solid #f5f5f5;
    transition: transform 0.3s ease;
}

.account-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.account-section h4 {
    margin-top: 0;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
    letter-spacing: 0.3px;
}

.account-section h4 i {
    color: #00CED1;
}

.account-section ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.account-section ul li {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.account-section ul li:last-child {
    border-bottom: none;
}

.account-section a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
    display: inline-block;
}

.account-section a:hover {
    color: #00CED1;
}

.account-section a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #00CED1;
    transition: width 0.3s ease;
}

.account-section a:hover::after {
    width: 100%;
}

.toggle-setting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.toggle-setting:last-child {
    border-bottom: none;
}

/* Toggle Switch Styles */
.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: #e0e0e0;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #00CED1;
}

input:focus + .slider {
    box-shadow: 0 0 1px #00CED1;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Security Popup Styles */
.security-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.security-popup-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 450px;
    animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.security-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.security-popup-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.close-popup {
    font-size: 24px;
    cursor: pointer;
    color: #777;
    transition: color 0.2s;
}

.close-popup:hover {
    color: #333;
}

.security-popup-body {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.security-popup-icon {
    font-size: 48px;
    color: #00CED1;
    margin-bottom: 20px;
}

.security-popup-body p {
    margin: 0;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

/* Balance Card Styles */
.balance-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f5f5f5;
    position: relative;
    overflow: hidden;
}

.balance-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: #00CED1;
}

.balance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.balance-header {
    margin-bottom: 20px;
}

.balance-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.3px;
}

.balance-header h3 i {
    color: #00CED1;
}

.balance-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px 0;
}

.balance-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.currency-symbol {
    font-size: 22px;
    color: #555;
    margin-right: 8px;
}

.balance-value {
    font-size: 38px;
    font-weight: 600;
    color: #333;
    letter-spacing: -0.5px;
}

.balance-currency-label {
    font-size: 14px;
    color: #666;
    margin-top: 6px;
}

.balance-usd-equiv {
    font-size: 15px;
    color: #888;
    margin-top: 4px;
}

.balance-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}

.balance-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.deposit-btn {
    background-color: #00CED1;
    color: white;
}

.deposit-btn:hover {
    background-color: #00BCD4;
    transform: translateY(-2px);
}

.withdraw-btn {
    background-color: white;
    color: #333;
    border: 1px solid #e0e0e0;
}

.withdraw-btn:hover {
    border-color: #00CED1;
    color: #00CED1;
    transform: translateY(-2px);
}

/* Edit Profile & Change Password Popup Styles - Improved UI */
.popup-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.popup-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 400px;
    animation: popupFadeIn 0.3s ease;
    overflow: hidden; /* Prevent content from overflowing */
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #fdfdfd;
}

.popup-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-header h3 i {
    color: #00CED1;
}

.close-popup-modal {
    font-size: 24px;
    cursor: pointer;
    color: #777;
    transition: color 0.2s;
}

.close-popup-modal:hover {
    color: #333;
}

.popup-body {
    padding: 20px;
    box-sizing: border-box; /* Include padding in width calculation */
}

.text-center {
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    width: 100%; /* Ensure full width */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    box-sizing: border-box; /* Ensure input doesn't overflow */
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    border-color: #00CED1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 206, 209, 0.2);
}

.password-reset-info {
    margin-bottom: 24px;
}

.password-reset-info p {
    color: #555;
    line-height: 1.5;
    font-size: 0.95rem;
    margin: 0 0 15px 0;
}

.popup-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
}

.centered-actions {
    justify-content: center;
}

.save-btn {
    padding: 12px 25px;
    background-color: #00CED1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    min-width: 140px;
    justify-content: center;
}

.save-btn:hover {
    background-color: #00BCD4;
    transform: translateY(-2px);
}

.btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(51, 51, 51, 0.3);
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.save-btn.loading {
    pointer-events: none;
    opacity: 0.9;
}

.save-btn.loading .btn-text {
    opacity: 0;
    visibility: hidden;
}

.save-btn.loading .btn-loader {
    display: inline-block;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -9px;
    margin-top: -9px;
}

.popup-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.popup-message.success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border-left: 4px solid #2ecc71;
    display: block;
}

.popup-message.error {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-left: 4px solid #e74c3c;
    display: block;
}

/* Notification styles for toggle feedback */
.settings-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1100;
    max-width: 350px;
    padding: 12px 20px;
    background-color: #4CAF50;
    color: white;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.settings-notification.show {
    transform: translateY(0);
    opacity: 0.95;
    visibility: visible;
    pointer-events: auto;
}

.settings-notification.error {
    background-color: #f44336;
}

.notification-content {
    display: flex;
    align-items: center;
}

.notification-message {
    font-weight: 500;
}

/* Update animation styles for balance, credit score, and level */
.balance-value.balance-updated,
.balance-value.credit-score-updated,
.balance-value.level-updated {
    animation: updateGlow 0.5s ease-in-out;
    background: linear-gradient(90deg, #00CED1, #40E0D0);
    background-size: 200% 200%;
    border-radius: 4px;
    padding: 2px 6px;
    animation: updatePulse 0.5s ease-in-out;
}

@keyframes updatePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(253, 200, 87, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(253, 200, 87, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(253, 200, 87, 0);
    }
}

@keyframes updateGlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .account-container {
        padding: 8px 10px;
    }
    
    .account-header {
        margin-bottom: 8px;
        padding-bottom: 6px;
    }
    
    .account-header h2 {
        font-size: 18px;
        margin: 0;
    }      .account-info {
        flex-direction: row;
        align-items: center;
        padding: 8px 12px;
        margin-bottom: 10px;
        background: #ffffff;
        border-radius: 10px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.03);
        border: 1px solid #f0f0f0;
    }
      .profile-section {
        width: auto;
        display: flex;
        align-items: center;
        background-color: #fafafa;
        border-radius: 20px;
        padding: 4px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
        margin-bottom: 8px;
    }
    
    .profile-image {
        height: 36px;
        width: 36px;
        margin-right: 8px;
        min-width: 36px;
        background: #fef9e7;
        border-radius: 50%;
    }
    
    .profile-image i {
        font-size: 20px;
    }    .profile-details h3 {
        font-size: 14px;
        margin: 0;
        font-weight: 600;
        color: #333;
    }
    
    .profile-details p {
        font-size: 10px;
        margin: 0;
        color: #888;
        letter-spacing: 0.2px;
    }
    
    .account-actions {
        margin-top: 0;
        width: auto;
        gap: 6px;
        margin-left: auto;
    }    .action-btn {
        padding: 5px 10px;
        font-size: 11px;
        min-width: fit-content;
        border-radius: 15px;
        font-weight: 500;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }
    
    .action-btn i {
        font-size: 10px;
    }
    
    .balance-row {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .account-sections {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 15px;
    }
    
    .account-section {
        padding: 15px;
    }
    
    .account-section h4 {
        font-size: 16px;
        padding-bottom: 8px;
    }
    
    .account-section ul li {
        padding: 8px 0;
        font-size: 14px;
    }
    
    .toggle-setting {
        padding: 8px 0;
        font-size: 14px;
    }
    
    /* Smaller switch for mobile */
    .switch {
        width: 40px;
        height: 20px;
    }
    
    .slider:before {
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 3px;
    }
    
    input:checked + .slider:before {
        transform: translateX(20px);
    }
      /* Balance card mobile styles */
    .balance-card {
        padding: 10px;
    }
    
    .balance-header {
        margin-bottom: 5px;
    }
    
    .balance-header h3 {
        font-size: 14px;
    }
      .balance-content {
        gap: 5px;
        padding: 3px 0;
    }
    
    .currency-symbol {
        font-size: 16px;
    }
    
    .balance-value {
        font-size: 24px;
    }
    
    .balance-actions {
        gap: 8px;
        margin-top: 10px;
    }
    
    .balance-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    /* Popup styles for mobile */
    .popup-content {
        width: 95%;
        max-width: 320px;
    }
    
    .popup-header {
        padding: 12px 15px;
    }
    
    .popup-header h3 {
        font-size: 16px;
    }
    
    .popup-body {
        padding: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .form-group input {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .popup-actions {
        margin-top: 15px;
    }
    
    .save-btn {
        padding: 8px 15px;
        font-size: 14px;
        min-width: 100px;
    }
}

/* Keyframe animation for the button loader */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}