/* MFS Pro - Premium Mobile Financial Services Stylesheet
 * Glassmorphism + Neumorphism + Modern Banking Aesthetic
 * Dark/Light Mode Support
 */

:root {
    --primary: #E91E63;
    --primary-dark: #C2185B;
    --primary-light: #F48FB1;
    --secondary: #7C4DFF;
    --accent: #00E5FF;
    --success: #00C853;
    --warning: #FFD600;
    --danger: #FF1744;
    --info: #2979FF;

    --bg-dark: #0f0f1a;
    --bg-dark-elevated: #1a1a2e;
    --bg-dark-card: #16162a;
    --bg-light: #f0f2f5;
    --bg-light-elevated: #ffffff;
    --bg-light-card: #ffffff;

    --text-dark: #ffffff;
    --text-dark-secondary: #b0b0c0;
    --text-light: #1a1a2e;
    --text-light-secondary: #6b7280;

    --border-dark: rgba(255,255,255,0.08);
    --border-light: rgba(0,0,0,0.06);

    --shadow-dark: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-light: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-neu-dark: 5px 5px 10px #0a0a14, -5px -5px 10px #141426;
    --shadow-neu-light: 5px 5px 10px #d1d9e6, -5px -5px 10px #ffffff;

    --glass-dark: rgba(26, 26, 46, 0.7);
    --glass-light: rgba(255, 255, 255, 0.75);
    --glass-border-dark: rgba(255,255,255,0.1);
    --glass-border-light: rgba(255,255,255,0.5);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

[data-theme="dark"] {
    --bg: var(--bg-dark);
    --bg-elevated: var(--bg-dark-elevated);
    --bg-card: var(--bg-dark-card);
    --text: var(--text-dark);
    --text-secondary: var(--text-dark-secondary);
    --border: var(--border-dark);
    --shadow: var(--shadow-dark);
    --shadow-neu: var(--shadow-neu-dark);
    --glass: var(--glass-dark);
    --glass-border: var(--glass-border-dark);
}

[data-theme="light"] {
    --bg: var(--bg-light);
    --bg-elevated: var(--bg-light-elevated);
    --bg-card: var(--bg-light-card);
    --text: var(--text-light);
    --text-secondary: var(--text-light-secondary);
    --border: var(--border-light);
    --shadow: var(--shadow-light);
    --shadow-neu: var(--shadow-neu-light);
    --glass: var(--glass-light);
    --glass-border: var(--glass-border-light);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

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

/* ===== SPLASH SCREEN ===== */
.splash-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-logo {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 800;
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: splashPulse 2s ease-in-out infinite;
}

@keyframes splashPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
    50% { transform: scale(1.05); box-shadow: 0 30px 80px rgba(0,0,0,0.4); }
}

.splash-title {
    margin-top: 24px;
    font-size: 28px;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
}

.splash-subtitle {
    margin-top: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.splash-loader {
    margin-top: 40px;
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    overflow: hidden;
}

.splash-loader-bar {
    height: 100%;
    width: 0%;
    background: white;
    border-radius: 2px;
    animation: loadBar 2s ease-in-out forwards;
}

@keyframes loadBar {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ===== GLASSMORPHISM CARDS ===== */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.neu-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-neu);
    border: 1px solid var(--border);
    transition: var(--transition);
}

/* ===== APP SHELL ===== */
.app-shell {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background: var(--bg);
    box-shadow: 0 0 60px rgba(0,0,0,0.1);
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .app-shell {
        max-width: 100%;
    }
}

/* ===== HEADER ===== */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 16px 20px;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: 0 4px 30px rgba(233, 30, 99, 0.3);
}

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

.header-greeting {
    color: white;
}

.header-greeting h1 {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    margin: 0;
}

.header-greeting h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 4px 0 0 0;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
}

.icon-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.05);
}

.icon-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
}

.avatar-sm {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
}

/* ===== BALANCE CARD ===== */
.balance-section {
    padding: 20px;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.balance-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-xl);
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(233, 30, 99, 0.3);
}

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

.balance-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.balance-label {
    font-size: 13px;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.balance-amount .currency {
    font-size: 20px;
    font-weight: 600;
}

.balance-actions {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.balance-btn {
    flex: 1;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    padding: 12px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.balance-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.balance-btn i {
    font-size: 20px;
}

.cashback-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 200, 83, 0.2);
    color: #69f0ae;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
}

/* ===== QUICK ACTIONS GRID ===== */
.quick-actions {
    padding: 0 20px 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title a {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
}

.action-item:active {
    transform: scale(0.95);
}

.action-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-bounce);
}

.action-item:hover .action-icon {
    transform: scale(1.1) rotate(5deg);
}

.action-icon.send { background: linear-gradient(135deg, #E91E63, #F48FB1); color: white; }
.action-icon.cashout { background: linear-gradient(135deg, #7C4DFF, #B388FF); color: white; }
.action-icon.recharge { background: linear-gradient(135deg, #00C853, #69F0AE); color: white; }
.action-icon.bills { background: linear-gradient(135deg, #2979FF, #82B1FF); color: white; }
.action-icon.addmoney { background: linear-gradient(135deg, #FFD600, #FFFF00); color: #333; }
.action-icon.qr { background: linear-gradient(135deg, #00E5FF, #18FFFF); color: #333; }
.action-icon.loan { background: linear-gradient(135deg, #FF6D00, #FFAB40); color: white; }
.action-icon.more { background: var(--bg-elevated); color: var(--text-secondary); box-shadow: var(--shadow-neu); }

.action-label {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

/* ===== OFFER SLIDER ===== */
.offers-section {
    padding: 0 20px 20px;
}

.offers-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
}

.offers-slider::-webkit-scrollbar { display: none; }

.offer-card {
    min-width: 280px;
    scroll-snap-align: start;
    border-radius: var(--radius-lg);
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.offer-card.pink { background: linear-gradient(135deg, #E91E63, #AD1457); }
.offer-card.purple { background: linear-gradient(135deg, #7C4DFF, #4527A0); }
.offer-card.green { background: linear-gradient(135deg, #00C853, #2E7D32); }

.offer-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.offer-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
    backdrop-filter: blur(10px);
}

.offer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.offer-desc {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.offer-btn {
    background: white;
    color: var(--primary-dark);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.offer-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ===== TRANSACTIONS LIST ===== */
.transactions-section {
    padding: 0 20px 100px;
}

.txn-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.txn-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
}

.txn-item:hover {
    background: var(--bg-card);
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.txn-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.txn-icon.success { background: rgba(0, 200, 83, 0.15); color: var(--success); }
.txn-icon.danger { background: rgba(255, 23, 68, 0.15); color: var(--danger); }
.txn-icon.info { background: rgba(41, 121, 255, 0.15); color: var(--info); }
.txn-icon.warning { background: rgba(255, 214, 0, 0.15); color: var(--warning); }

.txn-details {
    flex: 1;
    min-width: 0;
}

.txn-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.txn-meta {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.txn-amount {
    text-align: right;
    flex-shrink: 0;
}

.txn-amount .amount {
    font-size: 16px;
    font-weight: 700;
    display: block;
}

.txn-amount .amount.positive { color: var(--success); }
.txn-amount .amount.negative { color: var(--danger); }

.txn-amount .status {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 12px 0 24px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    .bottom-nav {
        max-width: 100%;
        border-radius: 0;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    transition: var(--transition);
    padding: 4px 12px;
    position: relative;
}

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

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -12px;
    width: 40px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-item i {
    font-size: 24px;
    transition: var(--transition-bounce);
}

.nav-item:active i {
    transform: scale(0.85);
}

.nav-item.active i {
    transform: translateY(-2px);
}

/* ===== FLOATING ACTION BUTTON ===== */
.fab {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
    transition: var(--transition-bounce);
    z-index: 999;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 35px rgba(233, 30, 99, 0.5);
}

.fab:active {
    transform: scale(0.95);
}

/* ===== AUTH PAGES ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(60px);
}

.auth-page::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(60px);
}

.auth-header {
    padding: 40px 24px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.auth-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.3);
    animation: float 3s ease-in-out infinite;
}

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

.auth-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

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

.auth-body {
    flex: 1;
    padding: 20px 24px;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.form-input {
    width: 100%;
    padding: 16px;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 16px;
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
}

.form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.pin-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 24px 0;
}

.pin-input {
    width: 56px;
    height: 64px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    transition: var(--transition);
}

.pin-input:focus {
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
}

.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.btn:hover::after {
    transform: translateX(100%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
}

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

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text);
    border: 2px solid var(--border);
}

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

.btn-success {
    background: linear-gradient(135deg, var(--success), #00B248);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
}

.btn-block {
    margin-top: 8px;
}

.auth-footer {
    padding: 20px 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ===== MODALS & BOTTOM SHEETS ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-sheet {
    background: var(--bg-elevated);
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-sheet {
    transform: translateY(0);
}

.modal-handle {
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 0 auto 20px;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    animation: toastSlide 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: all;
}

@keyframes toastSlide {
    from { transform: translateY(-100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast.warning .toast-icon { color: var(--warning); }
.toast.info .toast-icon { color: var(--info); }

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: var(--text-secondary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
}

/* ===== SUCCESS ANIMATION ===== */
.success-animation {
    text-align: center;
    padding: 40px 20px;
}

.success-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success), #00B248);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(0, 200, 83, 0.3);
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-circle i {
    font-size: 48px;
    color: white;
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.success-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ===== SKELETON LOADING ===== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-card) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== QR SCANNER UI ===== */
.qr-scanner {
    position: relative;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1;
    margin: 20px auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
}

.qr-scanner-overlay {
    position: absolute;
    inset: 0;
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
}

.qr-scanner-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--accent);
    border-style: solid;
}

.qr-scanner-corner.tl { top: 20px; left: 20px; border-width: 4px 0 0 4px; }
.qr-scanner-corner.tr { top: 20px; right: 20px; border-width: 4px 4px 0 0; }
.qr-scanner-corner.bl { bottom: 20px; left: 20px; border-width: 0 0 4px 4px; }
.qr-scanner-corner.br { bottom: 20px; right: 20px; border-width: 0 4px 4px 0; }

.qr-scan-line {
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: scanMove 2s linear infinite;
    box-shadow: 0 0 10px var(--accent);
}

@keyframes scanMove {
    0% { top: 10%; }
    50% { top: 90%; }
    100% { top: 10%; }
}

/* ===== MERCHANT / ANALYTICS ===== */
.analytics-card {
    padding: 20px;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 16px;
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.analytics-value {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.analytics-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.analytics-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.analytics-trend.up {
    background: rgba(0, 200, 83, 0.1);
    color: var(--success);
}

.analytics-trend.down {
    background: rgba(255, 23, 68, 0.1);
    color: var(--danger);
}

/* ===== ADMIN PANEL ===== */
.admin-body {
    background: #f3f4f6;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: #1a1a2e;
    color: white;
    padding: 24px 0;
    z-index: 1000;
    transition: var(--transition);
}

.admin-sidebar-header {
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 16px;
}

.admin-sidebar-header h2 {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background: rgba(233, 30, 99, 0.1);
    color: white;
    border-left-color: var(--primary);
}

.admin-nav-item i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.admin-main {
    margin-left: 260px;
    padding: 24px;
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.stat-icon.pink { background: #fce4ec; color: var(--primary); }
.stat-icon.purple { background: #ede7f6; color: var(--secondary); }
.stat-icon.green { background: #e8f5e9; color: var(--success); }
.stat-icon.blue { background: #e3f2fd; color: var(--info); }

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #6b7280;
}

.admin-table-container {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    overflow-x: auto;
}

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

.admin-table th {
    text-align: left;
    padding: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table td {
    padding: 16px 12px;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
}

.admin-table tr:hover td {
    background: #f9fafb;
}

.status-badge {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.success { background: #e8f5e9; color: #2e7d32; }
.status-badge.pending { background: #fff3e0; color: #ef6c00; }
.status-badge.failed { background: #ffebee; color: #c62828; }
.status-badge.active { background: #e8f5e9; color: #2e7d32; }
.status-badge.suspended { background: #ffebee; color: #c62828; }

/* ===== RIPPLE EFFECT ===== */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::before {
    width: 300px;
    height: 300px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

.animate-slide-in {
    animation: slideInRight 0.4s ease forwards;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .actions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .actions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

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

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-secondary { color: var(--text-secondary); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.p-3 { padding: 16px; }
.p-4 { padding: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.w-100 { width: 100%; }
.rounded-lg { border-radius: var(--radius-lg); }
.shadow { box-shadow: var(--shadow); }

/* ===== PAGE TRANSITIONS ===== */
.page-content {
    animation: fadeInUp 0.4s ease;
}

/* ===== CONTACT LIST ===== */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.contact-item:hover {
    background: var(--bg-elevated);
    border-color: var(--border);
}

.contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
}

.contact-phone {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== AMOUNT INPUT ===== */
.amount-display {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin: 24px 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.amount-currency {
    font-size: 24px;
    font-weight: 600;
}

.numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 20px;
    max-width: 320px;
    margin: 0 auto;
}

.numpad-btn {
    aspect-ratio: 1;
    border: none;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-neu);
    display: flex;
    align-items: center;
    justify-content: center;
}

.numpad-btn:hover {
    background: var(--bg-card);
    transform: scale(1.05);
}

.numpad-btn:active {
    transform: scale(0.95);
    box-shadow: inset var(--shadow-neu);
}

.numpad-btn.action {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

/* ===== SEARCH BAR ===== */
.search-bar {
    position: relative;
    margin-bottom: 20px;
}

.search-bar input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.search-bar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
}

.search-bar i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 20px;
}

/* ===== TOGGLE SWITCH ===== */
.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    background: var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-switch.active {
    background: var(--primary);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch.active::after {
    left: 26px;
}

/* ===== SETTINGS ITEMS ===== */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}

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

.settings-item:hover {
    background: var(--bg-card);
}

.settings-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.settings-icon.pink { background: rgba(233, 30, 99, 0.1); color: var(--primary); }
.settings-icon.blue { background: rgba(41, 121, 255, 0.1); color: var(--info); }
.settings-icon.green { background: rgba(0, 200, 83, 0.1); color: var(--success); }
.settings-icon.orange { background: rgba(255, 109, 0, 0.1); color: #FF6D00; }
.settings-icon.purple { background: rgba(124, 77, 255, 0.1); color: var(--secondary); }

.settings-content {
    flex: 1;
}

.settings-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
}

.settings-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.settings-arrow {
    color: var(--text-secondary);
    font-size: 20px;
}

/* ===== PROFILE HEADER ===== */
.profile-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    color: white;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.profile-avatar-lg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    object-fit: cover;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.profile-phone {
    font-size: 14px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.kyc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

/* ===== LOAN / SAVINGS CARDS ===== */
.product-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
    margin-bottom: 16px;
    transition: var(--transition);
    cursor: pointer;
}

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

.product-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.product-rate {
    font-size: 24px;
    font-weight: 800;
    color: var(--success);
    margin-bottom: 4px;
}

.product-rate-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===== CHART CONTAINER ===== */
.chart-container {
    width: 100%;
    height: 200px;
    position: relative;
    margin: 16px 0;
}

/* ===== RESPONSIVE DESKTOP ===== */
@media (min-width: 1025px) {
    .app-shell {
        max-width: 1200px;
        display: grid;
        grid-template-columns: 280px 1fr;
    }

    .desktop-sidebar {
        display: flex;
        flex-direction: column;
        padding: 24px;
        background: var(--bg-elevated);
        border-right: 1px solid var(--border);
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
    }

    .desktop-nav-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        border-radius: var(--radius-md);
        color: var(--text);
        text-decoration: none;
        font-weight: 500;
        transition: var(--transition);
        margin-bottom: 4px;
    }

    .desktop-nav-item:hover,
    .desktop-nav-item.active {
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: white;
    }

    .desktop-nav-item i {
        font-size: 22px;
    }

    .bottom-nav {
        display: none;
    }

    .fab {
        bottom: 40px;
        right: 40px;
    }
}

@media (max-width: 1024px) {
    .desktop-sidebar {
        display: none;
    }
}
