:root {
    --wf-red: #d71e28;
    --wf-gold: #ffc220; /* Keep for potential accents */
    --wf-text: #333333;
    --wf-text-secondary: #595959;
    --bg-gradient-start: #fffce5; /* Light warm yellow/beige */
    --bg-gradient-end: #e6d3ea;   /* Light purple/lavender */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    color: var(--wf-text);
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: var(--wf-red);
    height: 60px; /* Approx height */
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.logo {
    color: white;
    font-weight: bold;
    font-size: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
    font-weight: 500;
}

.header-links a:hover {
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    header {
        padding: 0 20px;
        height: auto;
        min-height: 60px;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .header-links {
        display: flex;
        gap: 15px;
    }

    .header-links a {
        margin-left: 0;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header-links a {
        font-size: 12px;
    }
    
    /* Hide less critical links on very small screens if needed, 
       or just wrap them. They flex-wrap by default if we allow it, 
       but let's keep them on one line if possible or wrap nicely. */
    .header-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Main Content (Auth Card) */
.auth-container {
    flex: 1; /* Take up remaining space */
    display: flex;
    justify-content: center;
    align-items: center; /* Center vertically */
    padding: 20px;
}

.login-card {
    background: white;
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
}

.login-header h1 {
    font-weight: 300; /* Light weight as per image */
    font-size: 32px;
    margin-bottom: 25px;
    color: var(--wf-text);
}

/* Toggle/Tabs */
.login-toggle {
    display: flex;
    background: #f4f4f4;
    border-radius: 25px;
    padding: 4px;
    margin-bottom: 30px;
}

.toggle-btn {
    flex: 1;
    padding: 10px;
    border-radius: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--wf-text-secondary);
    font-size: 14px;
    outline: none; /* Remove focus outline */
}

.toggle-btn.active {
    background: white;
    color: black;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-wrapper {
    position: relative;
    border: 1px solid #ccc;
    border-radius: 25px; /* Rounded pill shape */
    padding: 2px 15px; /* Reduced vertical padding */
    height: 40px; /* Reduced from 48px */
    display: flex;
    align-items: center;
    background: white;
}

.input-wrapper:focus-within {
    border-color: #0060a9; /* Focus blue */
    box-shadow: 0 0 0 2px rgba(0,96,169,0.2);
}

.input-wrapper input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 16px;
    background: transparent;
}

.show-password {
    color: var(--wf-red);
    font-weight: 600;
    cursor: pointer;
    font-size: 12px; /* Reduced from 14px */
    background: none;
    border: none;
    padding: 0;
}

/* Checkbox */
.save-email-group {
    display: flex;
    align-items: flex-start; /* Align top to match text start */
    text-align: left;
    margin-bottom: 30px;
}

.checkbox-wrapper {
    position: relative;
    margin-right: 12px;
    padding-top: 2px; /* Slight adjustment to align with text */
}

.save-email-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 1px solid #d71e28; 
    border-radius: 50%; /* Circle */
    background-color: white;
    cursor: pointer;
    position: relative;
    outline: none;
}

.save-email-group input[type="checkbox"]:checked {
    background-color: #d71e28;
}

/* Checkmark for checked state */
.save-email-group input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    width: 14px; /* Adjust size */
    height: 14px;
}

.save-email-text strong {
    display: block;
    font-size: 14px; /* Reduced from 16px */
    color: var(--wf-text);
    font-weight: 600;
}

.save-email-text span {
    display: block;
    font-size: 12px; /* Reduced from 14px */
    color: var(--wf-text-secondary); /* Greyish */
    margin-top: 2px;
    line-height: 1.4;
}

/* Primary Button */
.btn-primary {
    width: 100%;
    padding: 14px;
    border-radius: 25px;
    background-color: #f0f0f0;
    color: #333;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #e0e0e0;
}

/* Red Button Style for Enroll */
.btn-primary.btn-red {
    background-color: var(--wf-red);
    color: white;
}

.btn-primary.btn-red:hover {
    background-color: #b9151e;
}

/* Enroll Helper Text */
.enroll-helper-text {
    margin-top: 15px;
    font-size: 13px;
    color: var(--wf-text-secondary);
    line-height: 1.4;
}

/* Button Processing State */
.btn-primary.processing {
    cursor: not-allowed;
    opacity: 0.7;
    position: relative;
    padding-left: 40px; /* Make room for spinner */
}

.spinner {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #333; /* Dark spinner for light button */
    animation: spin 1s linear infinite;
}

.btn-primary.btn-red .spinner {
    border-top-color: white; /* White spinner for red button */
    border-color: rgba(255,255,255,0.3);
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Notifications */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    text-align: left; /* Alerts usually readable from left */
    font-size: 14px;
    display: flex;
    align-items: center;
}

.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
    background-color: #fbeaea;
    border: 1px solid #d71e28;
    color: #333;
}

.alert-danger::before {
    content: '!';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #d71e28;
    color: white;
    text-align: center;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
    line-height: 20px;
    flex-shrink: 0;
}

.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

/* Footer (Simple) */
footer {
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: var(--wf-text-secondary);
}

/* ===========================
   DASHBOARD STYLES
   =========================== */

body.dashboard-page {
    /* User requested mixed gradient: #d8b4fe (Lavender) mixing with #bfdbfe (Blue) */
    background: linear-gradient(115deg, #d8b4fe 0%, #bfdbfe 100%);
    background-attachment: fixed; /* Ensure it covers whole scrollable area nicely */
    display: block; /* Reset flex for normal flow */
    min-height: 100vh;
}

.dashboard-header {
    background: transparent; /* Transparent to show body gradient */
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: none; /* Flat look based on image sample or just minimal */
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    background: white; /* White to stand out on gradient */
    border-radius: 20px;
    padding: 8px 15px;
    width: 100%;
    max-width: 350px; /* Constrain width to keep it looking like a "box" on the left */
    margin-right: 15px; /* Spacing from actions */
}

.search-bar ion-icon {
    color: #666;
    font-size: 18px;
    margin-right: 8px;
    flex-shrink: 0;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0; /* Prevent shrinking */
}

/* Header Responsiveness */
@media (max-width: 600px) {
    .dashboard-header {
        padding: 10px 15px;
        /* Override global header styles that might force column */
        flex-direction: row !important;
        height: auto;
        justify-content: space-between;
        gap: 10px;
    }
    
    .search-bar {
        max-width: none;
        width: auto;
        flex: 1; /* Take available space */
        padding: 8px 10px;
        margin-right: 0; /* Let gap handle spacing */
    }
    
    .sign-off-link {
        font-size: 12px;
        white-space: nowrap; /* Prevent wrapping */
    }
    
    .icon-btn {
        font-size: 20px;
    }
    
    .header-actions {
        gap: 10px;
    }
}

.icon-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #333;
}

.sign-off-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

/* Content */
.dashboard-content {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.greeting-section {
    margin-bottom: 20px;
}

.greeting-section h1 {
    font-weight: 300;
    font-size: 38px; /* Increased from 28px */
    margin: 0 0 8px 0; /* Adjusted margin */
    color: #1a1a1a;
    line-height: 1.1; /* Tighter line height for larger text */
}

.rewards-link {
    text-decoration: none;
    color: #333;
    font-size: 15px; /* Increased from 13px */
    display: flex;
    align-items: center;
    font-weight: 500;
    margin-top: 10px; /* Added margin */
}

.rewards-link ion-icon {
    font-size: 14px; /* Scaled icon with text */
    margin-left: 4px;
}

/* Account Card */
.account-summary-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.card-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.account-item {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #f9f9f9;
    position: relative;
    transition: background-color 0.2s;
}

.account-item:hover {
    background-color: #f7f7f7;
    cursor: pointer;
}

/* Red Indicator Line */
.account-indicator {
    position: absolute;
    left: 0;
    top: 15px;
    bottom: 15px;
    width: 4px;
    background-color: var(--wf-red);
    border-radius: 0 4px 4px 0;
}

.account-details {
    display: flex;
    flex: 1;
}

.account-info {
    display: flex;
    flex-direction: column;
    margin-left: 15px;
}

.acc-name {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    color: #333;
}

.acc-num {
    font-size: 12px;
    color: #666;
    margin: 2px 0;
}

.acc-meta {
    font-size: 11px;
    color: #888;
}

.account-balance {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.balance-top-row {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between amount and three dots */
}

.account-balance .currency {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.account-balance .balance-label {
    font-size: 11px;
    color: #666;
}

.more-options-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Recent Activity Stub */
/* Recent Activity Section - Redesigned Card */
.recent-activity-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.recent-activity-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 25px 0; /* Increased from 20px */
    padding-left: 0;
}

.activity-item {
    display: flex;
    align-items: center;
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-icon-circle {
    width: 48px; /* Slightly larger circles */
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Debit = Red UP Arrow (Rotated 45deg) */
.activity-icon-circle.debit {
    background: #ffe3e3; /* Light Red */
    color: #d71e28;     /* Red */
}

.activity-icon-circle.debit ion-icon {
    transform: rotate(45deg);
}

/* Credit = Green DOWN Arrow (Rotated -45deg) */
.activity-icon-circle.credit {
    background: #e5ffe5;  /* Light Green */
    color: #008f00;       /* Green */
}

.activity-icon-circle.credit ion-icon {
    transform: rotate(-45deg);
}


.activity-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.act-name {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 2px;
}

.act-date {
    display: block;
    font-size: 13px;
    color: #888;
}

.activity-amount {
    font-weight: 700;
    font-size: 16px;
}

.activity-amount.negative {
    color: #d71e28;
}

.activity-amount.positive {
    color: #008f00;
}

/* Bottom Nav & Send Money Bar */
/* Bottom Nav & Send Money Bar */
.send-money-bar {
    position: relative; 
    margin-top: 20px;
    width: 100%;
    /* Container only handles layout */
    background: transparent;
    padding: 0;
    box-shadow: none;
    text-align: center;
}

.btn-send-money {
    background: var(--wf-red);
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    border-radius: 25px;
    box-shadow: 0 4px 10px rgba(215, 30, 40, 0.3);
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-send-money:hover {
    background-color: #b9151e;
}

.btn-send-money ion-icon {
    margin-right: 8px;
    font-size: 20px;
}

/* ===========================
   MODAL & SLIDE UP
   =========================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
    align-items: flex-end; /* Align bottom for slide up */
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s forwards;
}

.modal-content.slide-up {
    background: white;
    width: 100%;
    max-width: 600px; /* Optional cap */
    border-radius: 20px 20px 0 0;
    padding: 25px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content.slide-up {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
}

.modal-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
}

.form-group-modal {
    margin-bottom: 15px;
}

.form-group-modal label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.modal-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    color: #333;
}

/* ===========================
   TRANSFER PAGE STYLES
   =========================== */

/* Red Background Body */
body.transfer-page {
    background-color: #d01c26; 
    background-image: none; 
    color: white;
}

.transfer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px; /* Keep padding */
    background: transparent;
    box-shadow: none;
    /* Override global mobile header styles */
    flex-direction: row !important; 
    height: auto !important;
}

.back-link {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}

.back-link ion-icon {
    font-size: 24px;
    margin-right: 10px;
}

.user-profile-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #551a1e; /* Dark red icon color */
}

.user-profile-icon ion-icon {
    font-size: 24px;
    opacity: 0.6;
}

.transfer-content {
    padding: 20px;
}

.transfer-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    color: #333;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    opacity: 0; 
}

.card-text-group {
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.card-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: #666;
}

/* Back Button at Bottom */
.transfer-action-container {
    margin-top: 30px;
    text-align: center;
    opacity: 0;
}

.btn-transfer-back {
    display: block;
    padding: 15px;
    background: #b9151e; /* Darker red matching design usually */
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-transfer-back:hover {
    background: #8e1017; /* Even darker on hover */
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

/* Staggered Animation */
.slide-up-card {
    animation: slideUpFade 0.5s ease-out forwards;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Transfer Step Container */
.transfer-step-container {
    background: white;
    border-radius: 30px 30px 0 0; /* Top rounded */
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: -20px;
    margin-top: 15px;
    padding: 30px 25px 50px 25px;
    min-height: calc(100vh - 100px); /* Fill bottom */
}

.step-header {
    margin: 0 0 25px 0;
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

/* Account Selection Card */
.account-select-card {
    background: #f4f6f8; /* Light blue-grey */
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-shadow: none; /* Flat look */
}

.account-select-card:hover {
    background: #eef0f3;
}

.acc-info-left {
    display: flex;
    flex-direction: column;
}

.acc-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.acc-label {
    font-size: 13px;
    color: #666;
}

.acc-info-right {
    text-align: right;
}

.acc-balance {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}


/* Amount Entry Display */
.amount-entry-display {
    margin: 20px 0;
    text-align: left;
}

.large-amount-text {
    font-size: 48px;
    font-weight: 700;
    color: #000;
    margin: 5px 0;
}

/* Numeric Keypad */
.numeric-keypad {
    margin-top: 20px;
    padding: 0 10px;
}

.keypad-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.key-btn {
    width: 30%;
    height: 60px;
    background: #f4f6f8;
    border: none;
    border-radius: 10px;
    font-size: 24px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.key-btn:active {
    background: #e0e0e0;
}

.key-btn ion-icon {
    font-size: 28px;
}

/* Action Buttons Row */
.action-buttons-row {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.btn-action {
    flex: 1;
    padding: 15px;
    border-radius: 25px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-back {
    background: #d71e28;
    color: white;
}

.btn-next.disabled {
    background: #e0e0e0;
    color: #999;
    pointer-events: none;
}

/* Success Overlay */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(209, 28, 40, 0.95); /* Red transparent */
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.checkmark-circle {
    width: 100px;
    height: 100px;
    position: relative;
    display: inline-block;
    vertical-align: top;
}

.checkmark-circle .background {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: white;
    position: absolute;
}

.checkmark-circle .checkmark {
    border-radius: 5px;
}

.checkmark-circle .checkmark.draw:after {
    animation-delay: 100ms;
    animation-duration: 1s;
    animation-timing-function: ease;
    animation-name: checkmark;
    transform: scaleX(-1) rotate(135deg);
    animation-fill-mode: forwards;
}

.checkmark-circle .checkmark:after {
    opacity: 1;
    height: 50px;
    width: 25px;
    transform-origin: left top;
    border-right: 10px solid #d11c28; /* Red Checkmark */
    border-top: 10px solid #d11c28;
    content: '';
    left: 25px;
    top: 50px;
    position: absolute;
}

@keyframes checkmark {
    0% {
        height: 0;
        width: 0;
        opacity: 1;
    }
    20% {
        height: 0;
        width: 25px;
        opacity: 1;
    }
    40% {
        height: 50px;
        width: 25px;
        opacity: 1;
    }
    100% {
        height: 50px;
        width: 25px;
        opacity: 1;
    }
}

/* ===========================
   ACCOUNT DETAILS PAGE
   =========================== */
.account-details-page {
    background-color: #f7f7f7;
    min-height: 100vh;
}

.account-header {
    background-color: var(--wf-red);
    color: white;
    padding: 20px 20px 50px 20px; /* Extra bottom padding for overlap */
}

.header-top {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between arrow and title */
}

.back-btn {
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
}

.header-title {
    font-size: 16px;
    font-weight: 500;
}

.profile-icon-header {
    background: rgba(255,255,255,0.2);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-left: auto; /* Push to far right */
}

.account-content-container {
    background: white;
    margin-top: -30px; /* Overlap effect */
    border-radius: 20px 20px 0 0;
    padding: 30px 20px;
    min-height: 80vh;
}

.balance-section {
    text-align: center;
    margin-bottom: 40px;
}

.balance-section h1 {
    font-size: 36px;
    margin: 0;
    font-weight: 800;
    color: #002f5f; /* Dark navy color often used for text */
    /* Or just black/dark grey */
    color: #0d1e3a; 
}

.balance-section p {
    color: #888;
    font-size: 14px;
    margin: 5px 0 0 0;
}

.section-title {
    color: var(--wf-red);
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.activity-item {
    border-bottom: none; /* Clean look */
    padding: 5px 0;
}

.activity-icon-card {
    width: 40px;
    height: 40px;
    background: #eef4fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0072ce; /* Icon Blue */
    font-size: 20px;
    margin-right: 15px;
}

.activity-amount.positive {
    color: #008f00;
    font-weight: 600;
}

.no-data-placeholder {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-top: 20px;
}

/* Floating FAB on details page */
.floating-fab {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #d0f0d0; 
    background: #ccffcc;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: white;
    display: flex;
    border-top: 1px solid #eee;
    z-index: 100;
    padding-bottom: 5px; /* for safe area */
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    font-size: 10px;
    padding: 8px 0;
}

.nav-item ion-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--wf-red);
    border-top: 3px solid var(--wf-red);
}

.nav-item.active ion-icon {
    color: var(--wf-red);
}

/* ===========================
   User Profile Page
=========================== */
.profile-page-body {
    background: linear-gradient(135deg, #f2e3ff 0%, #d5ebff 100%); /* Softer, exact gradient */
    min-height: 100vh;
    margin: 0;
    font-family: 'Outfit', sans-serif;
}

.profile-header {
    display: flex;
    align-items: center;
    padding: 25px 20px;
    gap: 15px;
}

.profile-back-btn {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    font-size: 20px;
}

.profile-header h1 {
    font-size: 22px; /* Smoother, smaller header */
    color: #1a1a5e; /* Exact deep blue */
    margin: 0;
    font-weight: 700;
}

.profile-main {
    padding: 0 20px 100px 20px;
}

.profile-card {
    background: white;
    border-radius: 25px; /* Slightly less rounded */
    padding: 30px 20px; /* Reduced card padding */
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    text-align: center;
}

.profile-avatar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px; /* Reduced margin */
    position: relative;
}

.profile-avatar {
    width: 90px; /* Smaller avatar */
    height: 90px;
    background: #d11c28; /* WF Red */
    border-radius: 50%;
    color: white;
    font-size: 28px; /* Balanced initials font */
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 20px rgba(209, 28, 40, 0.2);
}

.avatar-edit-icon {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 28px; /* Smaller edit icon */
    height: 28px;
    background: #d11c28;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.user-header-text h2 {
    margin: 0;
    font-size: 20px; /* Smaller header name */
    color: #1a1a1a;
    font-weight: 700;
}

.user-header-text p {
    margin: 4px 0 25px 0; /* Reduced margin */
    color: #8c8c8c;
    font-size: 14px; /* Smaller subtext */
}

.profile-info-list {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px; /* More compact list gap */
}

.profile-info-item {
    background: #f8f9fb; /* Exact row color */
    border-radius: 18px; /* Slightly less rounded */
    padding: 14px 18px; /* Compact padding */
    display: flex;
    align-items: center;
    gap: 15px; /* Tighter gap */
}

.info-icon-circle {
    width: 42px; /* Smaller icons */
    height: 42px;
    border-radius: 50%;
    background: #fee7e8; /* Soft light red background for iconic */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d11c28;
    font-size: 18px;
}

.info-details {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 11px; /* Tighter label */
    color: #8c8c8c;
    margin-bottom: 2px;
}

.info-value {
    font-size: 15px; /* Smaller info text */
    color: #1a1a1a;
    font-weight: 600;
}

.profile-preference {
    text-align: left;
    margin-top: 20px;
    background: #f8f9fb;
    padding: 12px 15px; /* Smaller section padding */
    border-radius: 18px;
}

.profile-preference .info-label {
    display: block;
    margin-bottom: 8px; /* Tighter spacing */
    font-size: 12px; /* Smaller label */
    color: #8c8c8c;
}

.preference-select-wrapper {
    position: relative;
    background: transparent;
}

.preference-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    font-size: 15px;
    color: #1a1a1a;
    background: white;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}

.preference-select:hover {
    border-color: #d11c28; /* Subtle Red border on hover */
    background: #fffafa;
}

.preference-select:focus {
    border-color: #d11c28;
    box-shadow: 0 0 0 3px rgba(209, 28, 40, 0.1);
}

.select-chevron {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #999;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.preference-select-wrapper:focus-within .select-chevron {
    transform: translateY(-50%) rotate(180deg);
}

