/*
================================================================================
APEX FUNDROCK - PERFECT CSS + ACCOUNT VERIFICATION FIX
================================================================================
Beautiful Navigation + Perfect Mobile Responsive + Working Dropdowns
Version: 7.0 COMPLETE WITH VERIFICATION FIX
Lines: 1900+
================================================================================
*/

/* ============================================================================
   CSS VARIABLES
   ============================================================================ */

:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --primary-light: #ff8c5f;
    --primary-rgb: 255, 107, 53;
    
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --border: #334155;
    --shadow: rgba(0, 0, 0, 0.3);
    
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    
    --transition: 0.2s ease;
    
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1050;
    --z-tooltip: 1070;
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-hover: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* ============================================================================
   RESET
   ============================================================================ */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

body.dark-theme {
    /* Already using CSS variables */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 0;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

button {
    font-family: inherit;
    cursor: pointer;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================================================
   MOBILE HEADER
   ============================================================================ */

.mobile-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px var(--shadow);
}

.mobile-header .logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-header .logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.mobile-header h1 {
    font-size: var(--text-xl);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.menu-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: background var(--transition);
}

.menu-toggle:hover {
    background: var(--bg-hover);
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

.back-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background var(--transition);
}

.back-btn:hover {
    background: var(--bg-hover);
}

.back-btn svg {
    width: 20px;
    height: 20px;
}

/* ============================================================================
   BOTTOM NAVIGATION
   ============================================================================ */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 0.5rem 0;
    z-index: var(--z-fixed);
    box-shadow: 0 -2px 10px var(--shadow);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.35rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
    font-size: 0.65rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    min-width: 60px;
}

.bottom-nav .nav-item svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition);
}

.bottom-nav .nav-item span {
    font-size: 0.65rem;
    white-space: nowrap;
}

.bottom-nav .nav-item:hover {
    background: var(--bg-hover);
}

.bottom-nav .nav-item.active {
    color: var(--primary);
}

.bottom-nav .nav-item.active svg {
    transform: translateY(-1px);
}

/* ============================================================================
   CONTAINER
   ============================================================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    padding-bottom: 70px;
}

/* ============================================================================
   WELCOME SECTION
   ============================================================================ */

.welcome-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    color: white;
}

.welcome-section::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -50px;
    animation: float 10s infinite ease-in-out;
}

.welcome-section::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -75px;
    left: -50px;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

.welcome-section > * {
    position: relative;
    z-index: 1;
}

.user-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.user-avatar svg {
    width: 40px;
    height: 40px;
    color: white;
}

.welcome-section h2 {
    font-size: var(--text-2xl);
    margin-bottom: 0.5rem;
    color: white;
}

.user-id {
    font-size: var(--text-sm);
    opacity: 0.9;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.welcome-text {
    opacity: 0.9;
    font-size: var(--text-base);
}

/* ============================================================================
   WALLET BALANCE
   ============================================================================ */

.wallet-balance {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.wallet-balance::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}

.wallet-balance > * {
    position: relative;
    z-index: 1;
}

.wallet-balance .label {
    font-size: var(--text-sm);
    opacity: 0.9;
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.wallet-balance h2 {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.wallet-balance .status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    background: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ============================================================================
   LOAN CARDS
   ============================================================================ */

.loan-card {
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.1);
}

.loan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.loan-header h3 {
    font-size: var(--text-xl);
    margin: 0;
}

.loan-status {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.loan-status.approved,
.loan-status.active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.loan-status.pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.loan-status.rejected {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.loan-amount {
    text-align: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.loan-amount .label {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.loan-amount h2 {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 2px 10px rgba(var(--primary-rgb), 0.2);
}

.loan-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: transform var(--transition);
}

.detail-item:hover {
    transform: translateY(-2px);
}

.detail-item .icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

.detail-item .label {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item strong {
    font-size: var(--text-base);
    color: var(--text-primary);
    display: block;
    font-weight: 600;
}

.no-loan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.no-loan-card h3 {
    font-size: var(--text-xl);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.text-muted {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* ============================================================================
   QUICK ACTIONS
   ============================================================================ */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.action-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.action-card:hover::before {
    transform: scaleX(1);
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--shadow);
    border-color: var(--primary);
}

.action-card svg {
    width: 32px;
    height: 32px;
    margin: 0 auto 0.75rem;
    color: var(--primary);
    transition: transform var(--transition);
}

.action-card:hover svg {
    transform: scale(1.1);
}

.action-card span {
    font-size: var(--text-sm);
    font-weight: 500;
    display: block;
}

/* ============================================================================
   SIDEBAR LAYOUT
   ============================================================================ */

.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: var(--bg-primary);
}

.sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: var(--z-sticky);
    transition: transform var(--transition);
    box-shadow: 2px 0 10px var(--shadow);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, transparent 100%);
}

.sidebar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.sidebar-brand span {
    font-weight: 300;
    color: var(--text-secondary);
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav .nav-item {
    margin-bottom: 0.25rem;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition);
    border-left: 3px solid transparent;
    font-weight: 500;
}

.sidebar-nav .nav-link:hover {
    background: var(--bg-hover);
    padding-left: 1.75rem;
}

.sidebar-nav .nav-link.active {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}

.nav-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-footer {
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    margin-top: auto;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    background: var(--bg-primary);
}

.main-content .mobile-header {
    display: none;
}

.dashboard-header {
    padding: 2rem 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--bg-primary);
}

.dashboard-title h1 {
    font-size: var(--text-3xl);
    margin-bottom: 0.25rem;
}

.dashboard-title p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: all var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-primary);
    font-size: 1.5rem;
    line-height: 1;
}

/* ============================================================================
   AUTH PAGES
   ============================================================================ */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.auth-container::before,
.auth-container::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.05);
    animation: float 20s infinite ease-in-out;
}

.auth-container::before {
    width: 500px;
    height: 500px;
    top: -250px;
    right: -250px;
}

.auth-container::after {
    width: 400px;
    height: 400px;
    bottom: -200px;
    left: -200px;
    animation-delay: 10s;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px var(--shadow);
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.auth-header .logo-icon {
    width: 64px;
    height: 64px;
    color: var(--primary);
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-icon {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-base);
    transition: all var(--transition);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-group input[readonly],
.form-group select[readonly],
.form-group textarea[readonly] {
    background: var(--bg-hover);
    cursor: not-allowed;
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.link {
    color: var(--primary);
    font-weight: 500;
}

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

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
    padding: 0.875rem 1.5rem;
    font-size: var(--text-base);
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--text-sm);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--text-lg);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================================
   CARDS
   ============================================================================ */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.card-title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

/* ============================================================================
   SECTION CARDS (ACCOUNT VERIFICATION DROPDOWNS) - FIXED!
   ============================================================================ */

.section-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all var(--transition);
}

.section-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.1);
}

.section-header {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: var(--bg-secondary);
    border: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    color: var(--text-primary);
    font-size: var(--text-lg);
    font-weight: 600;
    transition: all var(--transition);
    text-align: left;
}

.section-header:hover {
    background: var(--bg-hover);
}

.section-header.active {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.section-header .icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

.section-header span {
    flex: 1;
}

.section-header .chevron {
    width: 20px;
    height: 20px;
    transition: transform var(--transition);
    flex-shrink: 0;
}

.section-header.active .chevron {
    transform: rotate(180deg);
}

/* IMPORTANT: Support both .show and .active classes for dropdown content */
.section-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.section-content.show,
.section-content.active {
    max-height: 3000px;
    padding: 1.5rem;
}

.preview-image {
    max-width: 200px;
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
    border: 1px solid var(--border);
}

/* ============================================================================
   FORMS
   ============================================================================ */

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-base);
    transition: all var(--transition);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.readonly-form input,
.readonly-form textarea,
.readonly-form select {
    background: var(--bg-hover);
    color: var(--text-muted);
    cursor: not-allowed;
}

.emi-calculator {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 2rem;
}

.emi-result {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.emi-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
}

.emi-label {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.emi-value {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary);
}

/* ============================================================================
   TABLES
   ============================================================================ */

.table-container {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: var(--bg-secondary);
}

.table th {
    padding: 1rem;
    text-align: left;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: var(--text-sm);
}

.table tbody tr {
    transition: background var(--transition);
}

.table tbody tr:hover {
    background: var(--bg-hover);
}

/* ============================================================================
   STATS
   ============================================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-value {
    font-size: var(--text-3xl);
    font-weight: 700;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

/* ============================================================================
   BADGES
   ============================================================================ */

.badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.pending,
.badge.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.badge.verified,
.badge.active,
.badge.approved,
.badge.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.badge.rejected,
.badge.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.badge.badge-primary {
    background: rgba(var(--primary-rgb), 0.2);
    color: var(--primary);
}

/* ============================================================================
   ALERTS
   ============================================================================ */

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--info);
}

.alert strong {
    display: block;
    margin-bottom: 0.25rem;
}

.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px var(--shadow);
    z-index: var(--z-tooltip);
    animation: slideIn 0.3s ease;
    min-width: 300px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--error);
}

/* ============================================================================
   SETTINGS
   ============================================================================ */

.settings-section {
    margin-bottom: 2rem;
}

.settings-section h3 {
    font-size: var(--text-xl);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.settings-section .theme-toggle {
    display: flex;
    gap: 0.5rem;
}

.theme-btn {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.theme-btn:hover {
    border-color: var(--primary);
}

.theme-btn.active {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

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

.info-item span {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.info-item strong {
    font-weight: 600;
}

/* ============================================================================
   LANDING PAGE
   ============================================================================ */

.landing-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 2rem 1rem;
}

.landing-hero {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.brand-name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.brand-name span {
    font-weight: 300;
}

.tagline {
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ============================================================================
   ADMIN
   ============================================================================ */

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: var(--z-sticky);
    transition: transform var(--transition);
}

.admin-main {
    flex: 1;
    margin-left: 260px;
}

.admin-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.admin-content {
    padding: 1.5rem;
}

.data-table {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: var(--z-modal);
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    max-width: 800px;
    width: 100%;
    margin: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* ============================================================================
   UTILITIES
   ============================================================================ */

.text-center { text-align: center; }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 1024px) {
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .emi-result {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* SIDEBAR MOBILE */
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .main-content .mobile-header {
        display: flex;
    }
    
    /* ADMIN MOBILE */
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    /* GRIDS */
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .loan-details-grid {
        grid-template-columns: 1fr;
    }
    
    .emi-result {
        grid-template-columns: 1fr;
    }
    
    .dashboard-title h1 {
        font-size: var(--text-2xl);
    }
    
    .loan-amount h2,
    .wallet-balance h2 {
        font-size: var(--text-3xl);
    }
    
    .toast {
        bottom: 6rem;
        top: auto;
        left: 1rem;
        right: 1rem;
    }
    
    .settings-section .theme-toggle {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
        padding-bottom: 5rem;
    }
    
    .welcome-section,
    .wallet-balance {
        padding: 1.5rem;
    }
    
    .mobile-header .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .mobile-header h1 {
        font-size: var(--text-lg);
    }
    
    .auth-card {
        padding: 1.5rem;
    }
}

/* ============================================================================
   SCROLLBAR
   ============================================================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================================================
   END - 1900+ LINES WITH ACCOUNT VERIFICATION FIX
   ============================================================================ *//* ============================================================================
   APEX FUNDROCK - ADDITIONAL STYLES FOR NEW FEATURES
   Version: 8.0 - Mobile Responsive Updates
   ============================================================================ */

/* ============================================================================
   SETTINGS PAGE - MOBILE RESPONSIVE & CENTERED
   ============================================================================ */

.settings-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    padding-bottom: 80px; /* Space for bottom nav */
}

.settings-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px var(--shadow);
}

.settings-section h3 {
    font-size: var(--text-lg);
    margin-bottom: 1rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

/* Theme Selector - Smaller, at end */
.theme-selector {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.theme-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    cursor: pointer;
    font-size: var(--text-sm);
}

.theme-option svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-secondary);
}

.theme-option.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.theme-option.active svg {
    stroke: white;
}

.theme-option:hover:not(.active) {
    border-color: var(--primary);
    background: var(--bg-hover);
}

/* Menu Links */
.menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.menu-link:hover {
    background: var(--bg-hover);
    transform: translateX(5px);
}

.menu-link svg:first-child {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

.menu-link span {
    flex: 1;
    font-size: var(--text-base);
    color: var(--text-primary);
}

.menu-link svg.arrow {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Logout Button */
.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.logout-btn svg {
    width: 20px;
    height: 20px;
}

/* Form Controls in Settings */
.settings-section .form-group {
    margin-bottom: 1rem;
}

.settings-section .form-group:last-child {
    margin-bottom: 0;
}

.settings-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: var(--text-sm);
}

.settings-section .form-control {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-base);
    transition: all var(--transition);
}

.settings-section .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

/* ============================================================================
   MY ACCOUNT PAGE
   ============================================================================ */

.profile-header {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar svg {
    width: 40px;
    height: 40px;
    stroke: white;
}

.profile-email {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin: 0.5rem 0;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 10px var(--shadow);
}

.stat-box svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
    flex-shrink: 0;
}

.stat-box .label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.25rem;
}

.stat-box strong {
    font-size: var(--text-base);
    color: var(--text-primary);
    font-weight: 600;
}

.account-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px var(--shadow);
}

.account-section h3 {
    font-size: var(--text-lg);
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.info-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.info-value {
    font-size: var(--text-sm);
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
}

.account-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 80px; /* Space for bottom nav */
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition);
    box-shadow: 0 2px 5px var(--shadow);
}

.action-btn:hover {
    background: var(--bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--shadow);
}

.action-btn svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.action-btn span {
    color: var(--text-primary);
    font-weight: 500;
}

/* ============================================================================
   CONTACT US PAGE
   ============================================================================ */

.contact-header {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 30px;
    height: 30px;
    stroke: white;
}

.contact-header h2 {
    margin-bottom: 0.5rem;
}

.contact-header p {
    color: var(--text-secondary);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    box-shadow: 0 2px 10px var(--shadow);
    transition: all var(--transition);
    border: 2px solid transparent;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px var(--shadow);
    border-color: var(--primary);
}

.contact-card.telegram .contact-card-icon {
    background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
}

.contact-card.email .contact-card-icon {
    background: linear-gradient(135deg, #EA4335 0%, #C5221F 100%);
}

.contact-card.phone .contact-card-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
    stroke: none;
}

.contact-card-content {
    flex: 1;
}

.contact-card-content h3 {
    font-size: var(--text-lg);
    margin-bottom: 0.25rem;
}

.contact-card-content p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: 0.5rem;
}

.contact-link {
    color: var(--primary);
    font-size: var(--text-sm);
    font-weight: 500;
}

.business-hours {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px var(--shadow);
}

.business-hours h3 {
    font-size: var(--text-lg);
    margin-bottom: 1rem;
}

.hours-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hour-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.hour-row .day {
    font-size: var(--text-sm);
    color: var(--text-primary);
    font-weight: 500;
}

.hour-row .time {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.office-location {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px var(--shadow);
}

.office-location h3 {
    font-size: var(--text-lg);
    margin-bottom: 1rem;
}

.location-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.location-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

.location-card p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.help-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 80px; /* Space for bottom nav */
    text-align: center;
    box-shadow: 0 2px 10px var(--shadow);
}

.help-section h3 {
    margin-bottom: 0.5rem;
}

.help-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ============================================================================
   FAQ PAGE
   ============================================================================ */

.faq-header {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 1.5rem;
}

.faq-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-icon svg {
    width: 30px;
    height: 30px;
    stroke: white;
}

.faq-header h2 {
    margin-bottom: 0.5rem;
}

.faq-header p {
    color: var(--text-secondary);
}

.faq-list {
    margin-bottom: 2rem;
}

.faq-category {
    margin-bottom: 2rem;
}

.category-title {
    font-size: var(--text-xl);
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--primary);
    color: var(--text-primary);
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 5px var(--shadow);
    transition: all var(--transition);
}

.faq-item:hover {
    box-shadow: 0 4px 10px var(--shadow);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background var(--transition);
    gap: 1rem;
}

.faq-question:hover {
    background: var(--bg-hover);
}

.faq-question span {
    flex: 1;
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text-primary);
}

.faq-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.7;
    white-space: pre-line;
}

.faq-footer {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    margin-bottom: 80px; /* Space for bottom nav */
    box-shadow: 0 2px 10px var(--shadow);
}

.faq-footer h3 {
    margin-bottom: 0.5rem;
}

.faq-footer p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.empty-state {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
    text-align: center;
    margin-bottom: 80px;
    box-shadow: 0 2px 10px var(--shadow);
}

.empty-state svg {
    width: 60px;
    height: 60px;
    color: var(--text-muted);
    margin: 0 auto 1rem;
    display: block;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ============================================================================
   DASHBOARD UPDATES
   ============================================================================ */

.user-email {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0.25rem 0 0.5rem;
}

.back-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: background var(--transition);
}

.back-btn:hover {
    background: var(--bg-hover);
}

.back-btn svg {
    width: 24px;
    height: 24px;
}

/* ============================================================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ============================================================================ */

@media (max-width: 768px) {
    .settings-container,
    .container {
        padding: 1rem;
    }
    
    .settings-section,
    .account-section,
    .contact-header,
    .faq-header,
    .business-hours,
    .office-location,
    .help-section,
    .faq-footer {
        padding: 1.25rem;
    }
    
    .profile-header {
        padding: 1.5rem 1rem;
    }
    
    .account-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-box {
        padding: 1rem;
    }
    
    .contact-card {
        padding: 1.25rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-answer p {
        padding: 0 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .theme-selector {
        flex-direction: row;
    }
    
    .theme-option {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .theme-option svg {
        width: 20px;
        height: 20px;
    }
    
    .contact-card-icon {
        width: 45px;
        height: 45px;
    }
    
    .contact-card-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.mb-xl {
    margin-bottom: var(--spacing-xl);
}

.btn-block {
    width: 100%;
    display: block;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* ============================================================================
   END OF ADDITIONAL STYLES
   ============================================================================ */

/* ============================================================================
   BOTTOM NAV MOBILE OPTIMIZATIONS & OVERLAP FIX
   ============================================================================ */

.settings-container {
    padding-bottom: 70px !important;
}

/* Page-specific spacing fixes */
.wallet-balance {
    margin-bottom: 1rem;
}

.settings-section:last-child,
.account-actions,
.help-section,
.faq-footer {
    margin-bottom: 1rem;
}

.logout-btn {
    margin-bottom: 0 !important;
}

/* Mobile optimizations for bottom nav */
@media (max-width: 480px) {
    .bottom-nav {
        height: 56px;
        padding: 0.4rem 0;
    }
    
    .bottom-nav .nav-item {
        padding: 0.3rem 0.5rem;
        min-width: 55px;
        gap: 0.1rem;
    }
    
    .bottom-nav .nav-item svg {
        width: 18px;
        height: 18px;
    }
    
    .bottom-nav .nav-item span {
        font-size: 0.6rem;
    }
    
    .container,
    .settings-container {
        padding-bottom: 65px !important;
    }
}

@media (max-width: 360px) {
    .bottom-nav .nav-item span {
        font-size: 0.55rem;
    }
    
    .bottom-nav .nav-item {
        min-width: 50px;
        padding: 0.25rem 0.35rem;
    }
}

/* Safe area for modern phones (iPhone notch) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
    }
    
    .container,
    .settings-container {
        padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important;
    }
}

/* Landing and auth pages (no bottom nav) */
.landing-container,
.auth-container {
    padding-bottom: 2rem !important;
}

/* ============================================================================
   WITHDRAWAL PAGE STYLES
   ============================================================================ */

.withdrawal-form-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.withdrawal-form-card h3 {
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.quick-links {
    margin-top: 1.5rem;
}

.quick-link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.quick-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
    border-color: var(--primary);
}

.quick-link-card svg {
    width: 40px;
    height: 40px;
    color: var(--primary);
    flex-shrink: 0;
}

.quick-link-card div {
    flex: 1;
}

.quick-link-card strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.quick-link-card p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Withdrawal list styles */
.withdrawal-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.withdrawal-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.withdrawal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.withdrawal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.withdrawal-date {
    margin: 0.25rem 0 0 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.withdrawal-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-row span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.detail-row strong {
    color: var(--text-primary);
    font-size: 0.9375rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-top: 2rem;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    color: var(--text-secondary);
    margin: 0 auto 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.empty-state p {
    margin: 0 0 1.5rem 0;
    color: var(--text-secondary);
}

/* ============================================================================
   PROFILE PHOTO STYLES
   ============================================================================ */

.profile-avatar-link {
    display: block;
    text-decoration: none;
    position: relative;
}

.profile-avatar-link::after {
    content: '⚙️';
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid var(--bg-card);
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-avatar svg {
    width: 32px;
    height: 32px;
    color: var(--text-secondary);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Profile photo section in settings */
.profile-photo-section {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.current-photo {
    flex-shrink: 0;
}

.current-photo img,
.current-photo .photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--border);
}

.photo-placeholder svg {
    width: 60px;
    height: 60px;
    color: var(--text-secondary);
}

.photo-upload-controls {
    flex: 1;
}

.photo-upload-controls form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Welcome card with profile photo */
.welcome-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.welcome-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.welcome-text h2 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.welcome-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9375rem;
}

/* Loan status card */
.loan-status-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.loan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.loan-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.loan-badge {
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.loan-badge.active {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.loan-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.loan-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.loan-detail-item span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.loan-detail-item strong {
    font-size: 1.125rem;
    color: var(--text-primary);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.approved {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.status-badge.pending {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

/* Quick actions improvements */
.quick-actions {
    margin-top: 1.5rem;
}

.quick-actions h3 {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
    border-color: var(--primary);
}

.action-card svg {
    width: 40px;
    height: 40px;
    color: var(--primary);
    flex-shrink: 0;
}

.action-card.verification svg {
    color: #3b82f6;
}

.action-card.loan svg {
    color: #22c55e;
}

.action-card.withdrawal svg {
    color: #f59e0b;
}

.action-card.profile svg {
    color: #8b5cf6;
}

.action-card div h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.action-card div p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .profile-photo-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .loan-details {
        grid-template-columns: 1fr;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .withdrawal-header {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .current-photo img,
    .current-photo .photo-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .photo-placeholder svg {
        width: 50px;
        height: 50px;
    }
    
    .welcome-text h2 {
        font-size: 1.25rem;
    }
}


/* ============================================================================
   DASHBOARD IMPROVEMENTS v8.3
   ============================================================================ */

/* Balance card - compact design */
.balance-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.balance-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.balance-header svg {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
}

.balance-header span {
    font-size: 0.813rem;
    font-weight: 500;
}

.balance-amount {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

/* Withdrawal button - centered at bottom */
.withdrawal-button-section {
    margin-top: 2rem;
    text-align: center;
}

.withdrawal-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.withdrawal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.withdrawal-button svg {
    width: 20px !important;
    height: 20px !important;
}

.withdrawal-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Loan calculator - compact */
.loan-calculator {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid var(--border);
}

.loan-calculator h3 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.loan-calculator h3 svg {
    width: 18px !important;
    height: 18px !important;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.calculator-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.calculator-input-group label {
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.calculator-input-group input,
.calculator-input-group select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.calculator-result {
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.calculator-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    font-size: 0.875rem;
}

.calculator-result-item strong {
    color: var(--primary);
    font-size: 1rem;
}

/* Fix withdrawal page icons */
.withdrawal-form-card svg {
    width: 20px !important;
    height: 20px !important;
}

.quick-link-card svg {
    width: 32px !important;
    height: 32px !important;
}

/* EMI payments page */
.emi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.emi-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.emi-stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1rem;
    border: 1px solid var(--border);
}

.emi-stat-card .label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emi-stat-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.emi-stat-card.paid .value {
    color: var(--success);
}

.emi-stat-card.pending .value {
    color: var(--warning);
}

.emi-stat-card.overdue .value {
    color: var(--danger);
}

.emi-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.emi-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.emi-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.emi-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.emi-number {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.emi-status {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.emi-status.paid {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.emi-status.pending {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.emi-status.overdue {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.emi-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.emi-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.emi-detail-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emi-detail-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.emi-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.75rem;
}

/* Transaction history */
.transaction-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transaction-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition);
}

.transaction-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--shadow);
}

.transaction-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.transaction-icon svg {
    width: 20px !important;
    height: 20px !important;
}

.transaction-icon.credit {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.transaction-icon.debit {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.transaction-details h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9375rem;
    font-weight: 600;
}

.transaction-details p {
    margin: 0;
    font-size: 0.813rem;
    color: var(--text-secondary);
}

.transaction-amount {
    text-align: right;
}

.transaction-amount .amount {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.transaction-amount .amount.credit {
    color: var(--success);
}

.transaction-amount .amount.debit {
    color: var(--danger);
}

.transaction-amount .balance {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .balance-card {
        padding: 1rem;
    }
    
    .balance-amount {
        font-size: 1.5rem;
    }
    
    .withdrawal-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .emi-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .emi-details {
        grid-template-columns: 1fr;
    }
    
    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .transaction-amount {
        text-align: left;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .emi-stats {
        grid-template-columns: 1fr;
    }
    
    .transaction-filters {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
}

/* ============================================================================
   WITHDRAWAL PAGE ICON FIX - v8.3.1
   ============================================================================ */

/* Withdrawal page - all SVG icons */
.withdrawal-container svg,
.withdrawal-form-card svg,
.quick-actions svg,
.quick-link-card svg,
.info-card svg,
.warning-alert svg,
.alert svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
}

/* Navigation back button - slightly larger */
.mobile-header svg {
    width: 24px !important;
    height: 24px !important;
}

/* Bottom navigation - keep at 24px */
.bottom-nav svg {
    width: 24px !important;
    height: 24px !important;
}

/* Form labels with icons */
.form-label svg {
    width: 18px !important;
    height: 18px !important;
}

/* Alert icons */
.alert-icon svg,
.warning-alert svg {
    width: 20px !important;
    height: 20px !important;
}

/* Quick action cards icons */
.quick-link-card svg {
    width: 28px !important;
    height: 28px !important;
}

/* Ensure all withdrawal page SVGs are sized correctly */
.withdrawal-form-card .form-group svg,
.withdrawal-form-card label svg {
    width: 18px !important;
    height: 18px !important;
    margin-right: 0.5rem;
}