* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #4cc9f0;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4bb543;
    --error: #e74c3c;
    --warning: #f9c74f;
    --promo: #ff6b6b;
    --card-bg: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-radius: 16px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.12);
}

body {
    background: linear-gradient(135deg, #f5f7ff 0%, #e6e9ff 100%);
    color: var(--text-primary);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

body.modal-open {
    overflow: hidden;
}

@media (min-width: 361px) {
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
        position: relative;
    }
}

/* Screen Management */
.screen {
    display: none;
}

.screen.active {
    display: block;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7ff 0%, #e6e9ff 100%);
}

@media (min-width: 361px) {
    .screen.active {
        display: flex;
        justify-content: center;
        align-items: center;
        background: transparent;
    }
}

.mobile-container {
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #f5f7ff 0%, #e6e9ff 100%);
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 361px) {
    .screen.active {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
        position: relative;
    }
    
    .mobile-container {
        max-width: 360px;
        height: 700px;
        border-radius: 40px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        margin: 0 auto;
    }
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    padding: 12px 24px 8px;
    background-color: white;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.status-icons {
    display: flex;
    gap: 4px;
}

/* Login & Register Styles */
.login-header {
    text-align: center;
    padding: 40px 24px 30px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

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

.login-form {
    padding: 0 24px;
    flex: 1;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    z-index: 2;
}

.input-group .toggle-password {
    left: auto;
    right: 16px;
    cursor: pointer;
}

.form-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid #e1e5e9;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: all 0.3s;
    background-color: var(--light);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.input-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.checkbox input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s;
}

.checkbox input:checked + .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkbox input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.terms {
    margin-bottom: 25px;
}

.terms-link {
    color: var(--primary);
    text-decoration: none;
}

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

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Button Styles */
.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 25px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

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

.btn-action {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-action i {
    margin-right: 6px;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s;
}

.btn-icon:hover {
    background-color: var(--light);
    color: var(--primary);
}

/* Social Items */
.social-item {
    width: 50px;
    height: 50px;
    border: 2px solid #e1e5e9;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.social-item.google {
    color: #db4437;
}

.social-item.facebook {
    color: #4267B2;
}

.social-item.apple {
    color: #000000;
}

.social-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

/* Social Login */
.social-login {
    text-align: center;
    margin-bottom: 25px;
}

.social-login p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 14px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.auth-switch {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

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

.auth-switch a:hover {
    text-decoration: underline;
}

/* Header */
.header {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

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

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

/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, var(--promo), #ff8e8e);
    margin: 16px 24px;
    padding: 16px;
    border-radius: var(--border-radius);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
}

.promo-content {
    flex: 1;
    z-index: 1;
}

.promo-badge {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}

.promo-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.promo-content p {
    font-size: 12px;
    opacity: 0.9;
}

.promo-icon {
    font-size: 24px;
    opacity: 0.8;
    z-index: 1;
}

/* Loyalty Card */
.loyalty-card {
    background: linear-gradient(135deg, #ffd93d, #f9c74f);
    margin: 0 24px 16px;
    padding: 16px;
    border-radius: var(--border-radius);
    color: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.loyalty-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.loyalty-info i {
    font-size: 24px;
    color: var(--dark);
}

.loyalty-details {
    display: flex;
    flex-direction: column;
}

.loyalty-label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.loyalty-points {
    font-size: 18px;
    font-weight: 700;
}

.btn-redeem {
    background: var(--dark);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-redeem:hover {
    background: #000;
    transform: translateY(-1px);
}

/* Balance Card */
.balance-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    margin: 16px 24px;
    padding: 24px;
    border-radius: var(--border-radius);
    color: white;
    box-shadow: var(--shadow);
}

.balance-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.balance-actions {
    display: flex;
    justify-content: space-between;
}

/* Sections */
.section {
    padding: 0 24px;
    margin-bottom: 24px;
}

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

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.see-all-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

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

/* Quick Actions */
.quick-actions {
    display: flex;
    justify-content: space-between;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

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

.action-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    font-size: 20px;
    color: white;
    box-shadow: var(--shadow);
}

.action-promo {
    background: linear-gradient(135deg, var(--promo), #ff8e8e);
}

.action-scan {
    background: linear-gradient(135deg, #4ecdc4, #00b894);
}

.action-send {
    background: linear-gradient(135deg, #a166ab, #7d3c98);
}

.action-request {
    background: linear-gradient(135deg, #ffd93d, #f9c74f);
}

.action-item span {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Transactions */
.transactions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    transition: background-color 0.2s;
    border-radius: 8px;
    padding: 12px;
}

.transaction-item:hover {
    background-color: var(--light);
}

.transaction-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: #f0f4ff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 16px;
    color: var(--primary);
    font-size: 18px;
}

.transaction-details {
    flex: 1;
}

.transaction-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.transaction-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.cashback-badge {
    background: var(--success);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    margin-top: 4px;
    display: inline-block;
}

.transaction-amount {
    font-weight: 600;
    font-size: 16px;
}

.amount-negative {
    color: var(--error);
}

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

/* Bottom Navigation */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
    padding: 8px;
    border-radius: 8px;
}

.nav-item:hover {
    color: var(--primary);
    background-color: var(--light);
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

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

.nav-central {
    margin-top: -10px;
}

.nav-central-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
    transition: all 0.3s;
}

.nav-central-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(67, 97, 238, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-hover);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-body {
    padding: 20px;
}

.btn-block {
    width: 100%;
}

/* NFC Countdown */
.nfc-countdown {
    background: var(--warning);
    color: var(--dark);
    padding: 12px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
    margin-bottom: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.nfc-instructions {
    background: var(--light);
    padding: 12px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 16px;
    border-left: 4px solid var(--primary);
}

.nfc-instructions i {
    color: var(--primary);
    margin-right: 8px;
}

/* Top-up Summary */
.topup-summary, .redeem-summary {
    background: var(--light);
    padding: 16px;
    border-radius: var(--border-radius);
    margin: 16px 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #ddd;
    font-weight: 600;
    font-size: 16px;
}

/* Promo List */
.promo-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.promo-item {
    background: var(--light);
    padding: 16px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--promo);
}

.promo-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.promo-item-title {
    font-weight: 600;
    font-size: 16px;
}

.promo-badge-small {
    background: var(--promo);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.promo-item-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.promo-item-details {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

.promo-detail {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Loyalty Stats */
.loyalty-info-card {
    background: var(--light);
    padding: 16px;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
}

.loyalty-stats {
    display: flex;
    justify-content: space-between;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat span {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat strong {
    font-size: 16px;
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 400px) {
    .mobile-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    
    body {
        padding: 0;
    }
}

/* Enhanced NFC Styles */
.nfc-countdown.retry {
    background: linear-gradient(135deg, #ffd93d, #f9c74f) !important;
    color: #000 !important;
    border: 2px solid #f9c74f;
}

.nfc-countdown.final-attempt {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e) !important;
    color: white !important;
    animation: pulse-alert 1s infinite;
    border: 2px solid #ff6b6b;
}

@keyframes pulse-alert {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

/* Retry Modal Styles */
.retry-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.btn-secondary {
    background: #6c757d !important;
    color: white !important;
    border: none !important;
}

.btn-secondary:hover {
    background: #5a6268 !important;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: bounce 2s infinite;
    border: 2px solid white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}

/* Transaction Filters */
.transaction-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    background: var(--light);
    border-radius: var(--border-radius);
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.transaction-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
}

.btn-filter {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    align-self: flex-end;
}

.transaction-stats {
    background: var(--light);
    padding: 12px 16px;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    border-left: 4px solid var(--primary);
}

/* Circuit Breaker Status */
.circuit-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.circuit-status small {
    font-size: 10px;
    opacity: 0.8;
}

.circuit-status.open {
    background: #ff6b6b;
}

.circuit-status.closed {
    background: #4bb543;
}

.circuit-status.half-open {
    background: #f9c74f;
    color: black;
}

/* Enhanced Transaction Items */
.transaction-item.failed {
    opacity: 0.7;
    background: #fff5f5;
    border-left: 4px solid #e74c3c;
}

.transaction-item.pending {
    background: #fffbf0;
    border-left: 4px solid #f9c74f;
}

.retry-badge {
    background: #f9c74f;
    color: black;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
    display: inline-block;
}

/* Loading States */
.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
}

/* Trace ID Display */
.trace-id {
    font-size: 10px;
    color: var(--text-secondary);
    font-family: monospace;
    margin-top: 4px;
}

/* Enhanced Modal Styles */
.modal-content .retry-message {
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
    color: var(--text-primary);
}

/* Responsive Design for Enhanced Features */
@media (max-width: 400px) {
    .transaction-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .retry-actions {
        flex-direction: column;
    }
    
    .nfc-countdown {
        font-size: 14px;
        padding: 10px;
    }
    
    .circuit-status {
        margin-left: 0;
        margin-top: 8px;
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .transaction-filters select {
        width: 100%;
    }
    
    .btn-filter {
        width: 100%;
        margin-top: 8px;
    }
}

/* Success/Failure States */
.transaction-success {
    border-left: 4px solid #4bb543 !important;
}

.transaction-failure {
    border-left: 4px solid #e74c3c !important;
}

.transaction-warning {
    border-left: 4px solid #f9c74f !important;
}

/* Enhanced Button States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-processing {
    background: #95a5a6 !important;
    cursor: not-allowed;
}

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-success {
    background: #4bb543;
}

.status-warning {
    background: #f9c74f;
}

.status-error {
    background: #e74c3c;
}

.status-info {
    background: #3498db;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #4cc9f0;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4bb543;
    --error: #e74c3c;
    --warning: #f9c74f;
    --promo: #ff6b6b;
    --card-bg: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-radius: 16px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Screen Management - Duplicate removed, using main definition */

/* Enhanced System Status */
.system-status {
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 4px;
}

.system-status.online {
    background: var(--success);
    color: white;
}

.system-status.offline {
    background: var(--warning);
    color: black;
}

/* Enhanced Notification System */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 320px;
    padding: 16px;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid var(--primary);
}

.notification-toast.success {
    border-left-color: var(--success);
}

.notification-toast.error {
    border-left-color: var(--error);
}

.notification-toast.warning {
    border-left-color: var(--warning);
}

.notification-toast.info {
    border-left-color: var(--accent);
}

.notification-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.notification-toast.success .notification-icon {
    background: var(--success);
}

.notification-toast.error .notification-icon {
    background: var(--error);
}

.notification-toast.warning .notification-icon {
    background: var(--warning);
}

.notification-toast.info .notification-icon {
    background: var(--accent);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.notification-message {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.close-notification {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Enhanced NFC Countdown States */
.nfc-countdown.retry {
    background: linear-gradient(135deg, var(--warning), #f9c74f) !important;
    color: #000 !important;
    border: 2px solid #f9c74f;
}

.nfc-countdown.final-attempt {
    background: linear-gradient(135deg, var(--error), #ff8e8e) !important;
    color: white !important;
    animation: pulse-alert 1s infinite;
    border: 2px solid #ff6b6b;
}

@keyframes pulse-alert {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

/* Enhanced Analytics Dashboard */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 16px 0;
}

.analytics-card {
    background: var(--light);
    padding: 16px;
    border-radius: var(--border-radius);
    text-align: center;
    border-left: 4px solid var(--primary);
}

.analytics-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 16px;
}

.analytics-info span {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.analytics-info strong {
    font-size: 16px;
    color: var(--text-primary);
}

.analytics-section {
    margin-top: 20px;
}

.analytics-section h5 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--light);
    border-radius: 8px;
}

.category-name {
    font-weight: 500;
    font-size: 13px;
}

.category-amount {
    font-weight: 600;
    color: var(--primary);
    font-size: 13px;
}

.category-count {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Fraud Alerts Styles */
.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    padding: 16px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--warning);
    background: var(--light);
}

.alert-item.resolved {
    border-left-color: var(--success);
    opacity: 0.7;
}

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

.alert-type {
    font-weight: 600;
    font-size: 13px;
}

.alert-risk {
    font-size: 11px;
    padding: 2px 8px;
    background: var(--warning);
    border-radius: 10px;
    color: black;
}

.alert-item.resolved .alert-risk {
    background: var(--success);
    color: white;
}

.alert-description {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.alert-date {
    font-size: 10px;
    color: var(--text-secondary);
}

.alert-status {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    background: var(--warning);
    color: black;
}

.alert-item.resolved .alert-status {
    background: var(--success);
    color: white;
}

/* Enhanced Modal Styles */
.modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

.enhanced-section {
    margin-bottom: 20px;
}

.enhanced-section h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* Status Indicators */
.status-indicator {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

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

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

.status-warning {
    background: var(--warning);
    color: black;
}

/* Offline Badge */
.offline-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--warning);
    color: black;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
}

/* Loading States */
.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
}

.error-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--error);
}

.error-state i {
    font-size: 48px;
    margin-bottom: 16px;
}

/* Enhanced Header with Status */
.header {
    position: relative;
}

.header-actions {
    position: relative;
}

/* Keep all original styles from previous CSS and add these enhancements */

/* Enhanced Transaction Items */
.transaction-item {
    position: relative;
}

.trace-id {
    font-size: 9px;
    color: var(--text-secondary);
    font-family: monospace;
    margin-top: 2px;
    opacity: 0.7;
}

/* Enhanced Button States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-processing {
    background: #95a5a6 !important;
    cursor: not-allowed;
}

/* Network Status Indicator */
.network-status {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.network-offline {
    background: var(--error);
    color: white;
}

/* Responsive Design for Enhanced Features */
@media (max-width: 400px) {
    .mobile-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    
    body {
        padding: 0;
    }
    
    .notification-toast {
        width: 90%;
        right: 5%;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .system-status {
        position: relative;
        top: auto;
        right: auto;
        margin: 10px;
        justify-content: center;
    }
}

/* Fraud Check Warning */
.fraud-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: var(--border-radius);
    padding: 12px;
    margin-bottom: 16px;
    font-size: 12px;
}

.fraud-warning.high {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Security Badge */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--success);
    color: white;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

/* Enhanced Form Styles */
.enhanced-input {
    position: relative;
}

.input-hint {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    display: block;
}

/* Progress Indicators */
.progress-bar {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    margin: 8px 0;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

/* Retry Animation */
.retry-animation {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}

/* Keep all the original CSS styles from previous version */
/* ... (all the original CSS code remains here) ... */

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    padding: 12px 24px 8px;
    background-color: white;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.status-icons {
    display: flex;
    gap: 4px;
}

/* Login & Register Styles */
.login-header {
    text-align: center;
    padding: 40px 24px 30px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

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

.login-form {
    padding: 0 24px;
    flex: 1;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    z-index: 2;
}

.input-group .toggle-password {
    left: auto;
    right: 16px;
    cursor: pointer;
}

.form-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid #e1e5e9;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: all 0.3s;
    background-color: var(--light);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* ===== ENHANCED SYSTEM STATUS CARD ===== */
.system-status-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 12px 20px;
    padding: 20px;
    border-radius: 20px;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.status-title {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-title i {
    color: #4cc9f0;
}

.last-updated {
    font-size: 10px;
    opacity: 0.7;
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-label {
    font-size: 11px;
    opacity: 0.8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.online {
    background: #00ff88;
    box-shadow: 0 0 8px #00ff88;
}

.status-indicator.offline {
    background: #ff4444;
    box-shadow: 0 0 8px #ff4444;
}

.status-indicator.warning {
    background: #ffaa00;
    box-shadow: 0 0 8px #ffaa00;
}

/* ===== ENHANCED HEADER ===== */
.enhanced-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 12px;
    background: white;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-brand h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.security-badge {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

/* ===== ENHANCED PROMO BANNER ===== */
.enhanced-promo-banner {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    margin: 16px 20px;
    padding: 18px;
    border-radius: 18px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.enhanced-promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: rotate(45deg) translateX(-100%); }
    100% { transform: rotate(45deg) translateX(100%); }
}

.promo-content {
    flex: 1;
    z-index: 1;
}

.promo-badge {
    background: rgba(255,255,255,0.25);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 8px;
    backdrop-filter: blur(10px);
}

.promo-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.promo-content p {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
}

.promo-icon {
    font-size: 28px;
    opacity: 0.9;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

/* ===== IMPROVED HEADER ACTIONS ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-icon {
    background: rgba(67, 97, 238, 0.1);
    border: none;
    color: var(--primary);
    font-size: 16px;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

/* ===== FLOATING SYSTEM STATUS ===== */
.system-status {
    position: fixed;
    top: 15px;
    right: 15px;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.system-status.online {
    background: rgba(0, 255, 136, 0.9);
    color: #000;
}

.system-status.offline {
    background: rgba(255, 68, 68, 0.9);
    color: white;
}

.system-status.degraded {
    background: rgba(255, 170, 0, 0.9);
    color: #000;
}

/* ===== SCROLLABLE MAIN CONTENT ===== */
.main-app-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 80px; /* Space untuk bottom nav */
}

/* Custom Scrollbar */
.main-app-content::-webkit-scrollbar {
    width: 4px;
}

.main-app-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.main-app-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.main-app-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* ===== IMPROVED MOBILE LAYOUT ===== */
/* Mobile container styles moved to top */

/* Main content area yang compact */
.main-app-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    padding-bottom: 90px; /* Bottom space for nav */
    background: transparent;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    height: 100%;
}

/* Hilangkan padding berlebihan, gunakan margin yang konsisten */
.content-section {
    padding: 0 20px;
    margin-bottom: 16px;
}

/* Compact Header */
.compact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px 12px;
    background: transparent;
    position: relative;
    z-index: 100;
    margin-bottom: 4px;
    width: 100%;
    box-sizing: border-box;
}

.compact-header .header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.compact-header .header-brand h1 {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* System Status yang lebih compact */
.compact-status-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 16px;
    border-radius: 20px;
    color: white;
    margin: 8px 20px 16px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    box-sizing: border-box;
}

.compact-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.compact-status-title {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.compact-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.compact-status-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.compact-status-label {
    font-size: 10px;
    opacity: 0.8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.compact-status-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* Promo Banner Compact */
.compact-promo-banner {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    padding: 16px 18px;
    border-radius: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 20px 16px;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.compact-promo-content {
    flex: 1;
    z-index: 1;
}

.compact-promo-badge {
    background: rgba(255,255,255,0.25);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 6px;
}

.compact-promo-content h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.compact-promo-content p {
    font-size: 11px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.3;
}

.compact-promo-icon {
    font-size: 22px;
    opacity: 0.9;
    z-index: 1;
}

/* Balance Card Compact */
.compact-balance-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 24px 20px;
    border-radius: 24px;
    color: white;
    margin: 0 20px 20px;
    box-shadow: 0 8px 24px rgba(67, 97, 238, 0.4);
}

.balance-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 6px;
}

.balance-amount {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.balance-actions {
    display: flex;
    gap: 12px;
}

.btn-action-compact {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-action-compact:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Loyalty Card Compact */
.compact-loyalty-card {
    background: linear-gradient(135deg, #ffd93d, #f9c74f);
    padding: 16px 18px;
    border-radius: 20px;
    color: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 20px 20px;
    box-shadow: 0 4px 20px rgba(249, 199, 79, 0.3);
}

.compact-loyalty-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.compact-loyalty-info i {
    font-size: 20px;
    color: var(--dark);
}

.compact-loyalty-details {
    display: flex;
    flex-direction: column;
}

.loyalty-label {
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 2px;
}

.loyalty-points {
    font-size: 16px;
    font-weight: 700;
}

.btn-redeem-compact {
    background: var(--dark);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-redeem-compact:hover {
    background: #000;
    transform: translateY(-1px);
}

/* Quick Actions Compact */
.compact-quick-actions {
    padding: 0 20px;
    margin-bottom: 24px;
}

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

.section-header-compact h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.see-all-link-compact {
    color: var(--primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

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

@media (max-width: 340px) {
    .quick-actions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

.action-link {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.action-split {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.action-item-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 8px 4px;
}

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

.action-icon-compact {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    font-size: 20px;
    color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

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

.action-item-compact span {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 600;
    text-align: center;
}

/* Transactions Compact */
.compact-transactions {
    padding: 0 20px;
    margin-bottom: 24px;
}

/* Notifications Section */
.notifications-section-compact {
    padding: 0 20px;
    margin-bottom: 20px;
}

/* Recent Contacts */
.recent-contacts-compact {
    padding: 0 20px;
    margin-bottom: 20px;
}

.transactions-list-compact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.transaction-item {
    background: white;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.transaction-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.transaction-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.btn-receipt {
    background: var(--light);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.btn-receipt:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Bottom Navigation Improved */
.bottom-nav-compact {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

@media (min-width: 361px) {
    .bottom-nav-compact {
        left: 50%;
        transform: translateX(-50%);
        max-width: 360px;
        border-radius: 0 0 40px 40px;
    }
}

.nav-item-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    padding: 6px 8px;
    border-radius: 12px;
    flex: 1;
    max-width: 70px;
    gap: 4px;
}

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

.nav-item-compact i {
    font-size: 18px;
    margin-bottom: 2px;
}

.nav-item-compact.active {
    color: var(--primary);
    background: rgba(67, 97, 238, 0.1);
}

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

.nav-central-compact {
    margin-top: -8px;
}

.nav-central-icon-compact {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-central-icon-compact:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(67, 97, 238, 0.5);
}

.nav-central-icon-compact:active {
    transform: translateY(-1px) scale(0.98);
}

/* Status Bar Fixed */
.status-bar {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px 8px;
    background: transparent;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    position: relative;
    z-index: 101;
    width: 100%;
}

/* Header Fixed */
.enhanced-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px 12px;
    background: white;
    position: sticky;
    top: 44px; /* Height status bar */
    z-index: 99;
    border-bottom: 1px solid #f0f0f0;
}

/* ===== CONTENT SECTIONS SPACING ===== */
.content-section {
    padding: 0 24px;
    margin-bottom: 20px;
}

/* System Status Card */
.system-status-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 20px;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
}

/* Promo Banner */
.enhanced-promo-banner {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    padding: 18px;
    border-radius: 18px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

/* Balance Card */
.balance-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 24px;
    border-radius: var(--border-radius);
    color: white;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

/* Loyalty Card */
.loyalty-card {
    background: linear-gradient(135deg, #ffd93d, #f9c74f);
    padding: 16px;
    border-radius: var(--border-radius);
    color: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

/* Quick Actions */
.quick-actions-section {
    padding: 0 24px;
    margin-bottom: 24px;
}

/* Transactions Section */
.transactions-section {
    padding: 0 24px;
    margin-bottom: 24px;
}

/* Bottom Navigation Fixed */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 360px;
    background-color: white;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    z-index: 1000;
}

/* ===== LOADING STATES ===== */
.loading-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* ===== EMPTY STATES ===== */
.empty-transactions {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-transactions i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
}

.empty-transactions p {
    font-size: 14px;
    margin-bottom: 8px;
}

.empty-transactions small {
    font-size: 12px;
    opacity: 0.7;
}

/* ===== STATS PAGE ===== */
.stats-content {
    padding: 0 20px 20px;
}

.stats-summary-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-card.income {
    border-left: 4px solid var(--success);
}

.stat-card.expense {
    border-left: 4px solid var(--error);
}

.stat-card.transactions {
    border-left: 4px solid var(--primary);
}

.stat-card.success {
    border-left: 4px solid var(--warning);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.stat-card.income .stat-icon {
    background: var(--success);
}

.stat-card.expense .stat-icon {
    background: var(--error);
}

.stat-card.transactions .stat-icon {
    background: var(--primary);
}

.stat-card.success .stat-icon {
    background: var(--warning);
}

.stat-info {
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.stats-section {
    margin-bottom: 24px;
}

.stats-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.category-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-bar-item {
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.category-bar-header span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.category-bar-header strong {
    font-size: 14px;
    color: var(--primary);
}

.category-bar {
    width: 100%;
    height: 8px;
    background: var(--light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

.category-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.category-bar-item small {
    font-size: 11px;
    color: var(--text-secondary);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-item {
    background: white;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
}

.activity-details {
    flex: 1;
}

.activity-details span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.activity-details small {
    font-size: 11px;
    color: var(--text-secondary);
}

.activity-amount {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

/* ===== CARDS PAGE ===== */
.cards-content {
    padding: 0 20px 20px;
}

.cards-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-item {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 20px;
    border-radius: 20px;
    color: white;
    box-shadow: 0 4px 16px rgba(67, 97, 238, 0.3);
}

.card-item.backup {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.card-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.card-info p {
    font-size: 14px;
    opacity: 0.9;
}

.btn-icon-small {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-balance {
    margin-bottom: 16px;
}

.card-balance span {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.card-balance strong {
    font-size: 24px;
    font-weight: 800;
}

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

.card-type-badge {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
}

.btn-card-action {
    background: white;
    color: var(--primary);
    border: none;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* ===== SETTINGS PAGE ===== */
.settings-content {
    padding: 0 20px 20px;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--light);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

.setting-item {
    background: white;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.setting-item:hover {
    background: var(--light);
}

.setting-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
}

.setting-info {
    flex: 1;
}

.setting-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.setting-subtitle {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

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

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.settings-footer {
    padding: 20px 0;
}

.btn-secondary {
    background: var(--error) !important;
    color: white !important;
}

/* ===== TRANSACTION FILTERS ===== */
.transaction-filters-compact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    padding: 0;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 14px;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ===== QR SCANNER ===== */
.qr-scanner-container {
    text-align: center;
    padding: 20px;
}

.qr-scanner-placeholder {
    background: var(--light);
    border: 2px dashed #ddd;
    border-radius: 16px;
    padding: 40px 20px;
    margin-bottom: 20px;
}

.qr-scanner-placeholder i {
    font-size: 64px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.qr-scanner-placeholder p {
    color: var(--text-secondary);
    font-size: 14px;
}

.qr-input-fallback {
    margin-top: 20px;
}

/* ===== SEND/REQUEST MONEY ===== */
.send-summary {
    background: var(--light);
    padding: 16px;
    border-radius: 12px;
    margin: 16px 0;
}

/* ===== DARK MODE ===== */
body.dark-mode {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .mobile-container {
    background-color: #2a2a2a;
}

body.dark-mode .compact-header,
body.dark-mode .status-bar {
    background-color: #2a2a2a;
    border-bottom-color: #3a3a3a;
}

body.dark-mode .compact-status-card,
body.dark-mode .compact-promo-banner,
body.dark-mode .compact-balance-card {
    background: linear-gradient(135deg, #3a3a3a, #4a4a4a);
}

body.dark-mode .stat-card,
body.dark-mode .category-bar-item,
body.dark-mode .activity-item,
body.dark-mode .card-item,
body.dark-mode .setting-item {
    background: #333;
    color: #e0e0e0;
}

body.dark-mode .bottom-nav-compact {
    background-color: #2a2a2a;
    border-top-color: #3a3a3a;
}

body.dark-mode .modal-content {
    background: #2a2a2a;
    color: #e0e0e0;
}

body.dark-mode .form-input,
body.dark-mode .search-input,
body.dark-mode .filter-select {
    background: #333;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .form-input:focus,
body.dark-mode .search-input:focus,
body.dark-mode .filter-select:focus {
    border-color: var(--primary);
    background: #3a3a3a;
}

body.dark-mode .transaction-item {
    background: #333;
}

body.dark-mode .transaction-item:hover {
    background: #3a3a3a;
}

body.dark-mode .settings-list {
    background: #3a3a3a;
}

body.dark-mode .empty-state,
body.dark-mode .empty-transactions {
    color: #999;
}

/* ===== NOTIFICATIONS SECTION ===== */
.notifications-section-compact {
    padding: 0 20px 20px;
    margin-bottom: 20px;
}

.btn-clear-all {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.notifications-list-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.notification-item-compact {
    background: white;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 3px solid var(--primary);
}

.notification-item-compact.unread {
    background: #f0f4ff;
    border-left-color: var(--primary);
}

.notification-item-compact.success {
    border-left-color: var(--success);
}

.notification-item-compact.error {
    border-left-color: var(--error);
}

.notification-item-compact.warning {
    border-left-color: var(--warning);
}

.notification-icon-compact {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-item-compact.success .notification-icon-compact {
    background: rgba(75, 181, 67, 0.1);
    color: var(--success);
}

.notification-item-compact.error .notification-icon-compact {
    background: rgba(231, 76, 60, 0.1);
    color: var(--error);
}

.notification-item-compact.warning .notification-icon-compact {
    background: rgba(249, 199, 79, 0.1);
    color: var(--warning);
}

.notification-item-compact .notification-icon-compact {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}

.notification-content-compact {
    flex: 1;
}

.notification-title-compact {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.notification-message-compact {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.notification-time-compact {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ===== RECENT CONTACTS ===== */
.recent-contacts-compact {
    padding: 0 20px 20px;
    margin-bottom: 20px;
}

.contacts-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
}

.contacts-scroll::-webkit-scrollbar {
    display: none;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    min-width: 60px;
    transition: transform 0.2s;
}

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

.contact-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.contact-avatar.add-contact {
    background: var(--light);
    color: var(--primary);
    border: 2px dashed var(--primary);
}

.contact-name {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
}

/* ===== IMPROVED SEARCH INPUT ===== */
.search-wrapper {
    position: relative;
    margin-bottom: 8px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 14px;
    z-index: 2;
}

.search-input {
    padding-left: 40px !important;
}

/* ===== IMPROVED MODAL ===== */
.modal-content {
    position: relative;
    z-index: 10001;
    max-height: 90vh;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-modal:hover {
    background: var(--light);
    color: var(--text-primary);
}

/* ===== BIOMETRIC AUTH ===== */
.biometric-icon-container {
    text-align: center;
    padding: 40px 20px;
}

.biometric-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 48px;
    color: white;
    animation: pulse 2s infinite;
}

.biometric-icon-container p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

/* ===== EXPORT OPTIONS ===== */
.export-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.btn-export-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-export-option:hover {
    border-color: var(--primary);
    background: var(--light);
}

.btn-export-option.active {
    border-color: var(--primary);
    background: rgba(67, 97, 238, 0.1);
}

.btn-export-option i {
    font-size: 24px;
    color: var(--primary);
}

.btn-export-option span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== BUDGET TRACKING ===== */
.budget-summary {
    background: var(--light);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.budget-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.budget-item:last-child {
    margin-bottom: 0;
}

.budget-item span {
    font-size: 14px;
    color: var(--text-secondary);
}

.budget-item strong {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.budget-progress {
    margin-top: 16px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e1e5e9;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* ===== SPLIT BILL ===== */
.split-summary {
    background: var(--light);
    padding: 16px;
    border-radius: 12px;
    margin: 16px 0;
}

/* ===== PAYMENT LINKS ===== */
.link-copy-container {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.link-copy-container input {
    flex: 1;
}

.btn-copy-link {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.btn-share {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.btn-share:hover {
    border-color: var(--primary);
    background: var(--light);
}

.btn-share i {
    font-size: 20px;
    color: var(--primary);
}

/* ===== TRANSACTION RECEIPT ===== */
.receipt-content {
    background: white;
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.receipt-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #eee;
}

.receipt-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.receipt-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.receipt-item span {
    font-size: 13px;
    color: var(--text-secondary);
}

.receipt-item strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.receipt-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 2px solid #eee;
    color: var(--text-secondary);
    font-size: 12px;
}

.receipt-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== HELP CENTER ===== */
.help-categories {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--light);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.help-item {
    background: white;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.help-item:hover {
    background: var(--light);
}

.help-item i:first-child {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
}

.help-item > div {
    flex: 1;
}

.help-item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.help-item small {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

.help-item .fa-chevron-right {
    color: var(--text-secondary);
    font-size: 14px;
}

.contact-support {
    margin-top: 20px;
}

/* ===== SAVINGS GOALS ===== */
.savings-goals-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.savings-goal-item {
    background: white;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.goal-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.goal-deadline {
    font-size: 12px;
    color: var(--text-secondary);
}

.goal-progress {
    margin-top: 12px;
}

.goal-amounts {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 13px;
}

.goal-amounts span {
    color: var(--text-secondary);
}

.goal-amounts strong {
    color: var(--primary);
    font-weight: 700;
}

/* ===== REFERRAL PROGRAM ===== */
.referral-info {
    margin-bottom: 20px;
}

.referral-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-item {
    background: var(--light);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.stat-item span {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-item strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.referral-code-container {
    margin-bottom: 20px;
}

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

.referral-code-display {
    display: flex;
    gap: 8px;
    align-items: center;
}

.referral-code-display span {
    flex: 1;
    padding: 12px 16px;
    background: var(--light);
    border-radius: 12px;
    font-family: monospace;
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
}

.btn-copy {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
}

.referral-benefits {
    background: var(--light);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.referral-benefits h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.referral-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.referral-benefits li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 13px;
    color: var(--text-secondary);
}

.referral-benefits li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.share-referral {
    margin-top: 20px;
}

