/**
 * FinTech Banking Platform - Combined CSS
 * Version: 3.0.0
 * Single unified stylesheet
 */

:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --success: #10B981;
    --success-dark: #059669;
    --danger: #EF4444;
    --danger-dark: #DC2626;
    --warning: #F59E0B;
    --dark: #1F2937;
    --dark-bg: #0F172A;
    --gray: #6B7280;
    --gray-light: #9CA3AF;
    --light: #F3F4F6;
    --white: #FFFFFF;
    --card-bg: #FFFFFF;
    --border: #E5E7EB;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #F8FAFC;
    color: var(--dark);
    min-height: 100vh;
}


/* Stats Row */
.fbp-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

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

.stat-card i {
    font-size: 28px;
    color: var(--primary);
}

.stat-card span {
    display: block;
    font-size: 12px;
    color: var(--gray);
}

.stat-card strong {
    display: block;
    font-size: 20px;
}

/* Section Title */
.fbp-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0 16px;
}

.fbp-section-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
}

/* Actions Grid */
.fbp-actions-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.action-item {
    text-align: center;
    cursor: pointer;
}

.action-icon {
    width: 56px;
    height: 56px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    transition: transform 0.3s;
}

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

.action-icon i {
    font-size: 24px;
    color: white;
}

.gradient-purple { background: linear-gradient(135deg, #667eea, #764ba2); }
.gradient-blue { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.gradient-green { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.gradient-orange { background: linear-gradient(135deg, #fa709a, #fee140); }
.gradient-pink { background: linear-gradient(135deg, #f093fb, #f5576c); }
.gradient-gold { background: linear-gradient(135deg, #f6d365, #fda085); }

.action-item span {
    font-size: 12px;
    color: var(--dark);
}

/* Promo Banner */
.fbp-promo-banner {
    background: linear-gradient(135deg, #10B981, #059669);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    color: white;
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.promo-content i {
    font-size: 40px;
}

.promo-content h4 {
    margin: 0 0 4px;
}

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

.promo-content button {
    margin-left: auto;
    background: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    color: #059669;
    font-weight: bold;
    cursor: pointer;
}

/* Daily Reward */
.fbp-daily-reward {
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.reward-unclaimed {
    display: flex;
    align-items: center;
    gap: 16px;
}

.reward-unclaimed span {
    flex: 1;
    font-size: 16px;
}

.claim-btn {
    background: var(--success);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
}

.reward-claimed {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--success);
}

/* Transactions List */
.fbp-transactions-list {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

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

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

.txn-item strong {
    display: block;
    margin-bottom: 4px;
}

.txn-item small {
    font-size: 11px;
    color: var(--gray);
}

/* Games Teaser */
.fbp-games-teaser {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.game-teaser {
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.game-teaser:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.game-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.game-teaser span {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.game-teaser small {
    font-size: 10px;
    color: var(--gray);
}

/* Referral Card */
.fbp-referral-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
}

.fbp-referral-card i {
    font-size: 40px;
}

.fbp-referral-card h4 {
    margin: 0 0 4px;
}

.fbp-referral-card p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
}

.referral-btn {
    margin-left: auto;
    background: white;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    color: #667eea;
    font-weight: bold;
    cursor: pointer;
}

/* Loading Skeleton */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    height: 60px;
    border-radius: 12px;
    margin: 10px;
}

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


/* ==================== TRANSACTIONS ==================== */
.fbp-transaction-feed {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
}

.fbp-transaction-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

.fbp-transaction-icon {
    width: 45px;
    height: 45px;
    border-radius: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fbp-transaction-details {
    flex: 1;
}

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

.fbp-transaction-date {
    font-size: 11px;
    color: var(--gray);
}

.fbp-transaction-amount {
    font-weight: bold;
}

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

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

/* ==================== BOTTOM NAVIGATION ==================== */
.fbp-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 16px;
    border-top: 1px solid var(--border);
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.fbp-nav-item {
    text-align: center;
    color: var(--gray);
    cursor: pointer;
    flex: 1;
    transition: color 0.2s;
    background: none;
    border: none;
}

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

.fbp-nav-item i {
    font-size: 22px;
    display: block;
    margin-bottom: 4px;
}

.fbp-nav-item span {
    font-size: 11px;
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.fbp-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    z-index: 11000;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideUp 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 14px;
}

.fbp-toast.success { background: var(--success); }
.fbp-toast.error { background: var(--danger); }
.fbp-toast.warning { background: var(--warning); }

@keyframes slideUp {
    from { transform: translate(-50%, 100px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
 
    
    .fbp-balance-amount {
        font-size: 32px;
    }
    
    .fbp-actions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .fbp-games-teaser {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fbp-stats-row {
        gap: 10px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-card i {
        font-size: 22px;
    }
    
    .stat-card strong {
        font-size: 16px;
    }
    
    .crash-multiplier {
        font-size: 40px;
    }
    
    .prediction-buttons button {
        padding: 14px;
        font-size: 16px;
    }
    
    .game-actions {
        flex-direction: column;
    }
    
    .game-card {
        padding: 16px;
    }
}

@media (min-width: 769px) {
    .fbp-bottom-nav {
        display: none;
    }
}

/* ==================== GAME RESULTS ==================== */
.game-result {
    margin-top: 20px;
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    animation: fadeIn 0.3s;
}

.game-result.win {
    background: #D1FAE5;
    color: #059669;
}

.game-result.loss {
    background: #FEE2E2;
    color: #DC2626;
}

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

/* ==================== UTILITIES ==================== */
.fbp-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
}

.fbp-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

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

.fbp-btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}
/* Prediction Result Container */
.prediction-result-container {
    margin-top: 20px;
}

.prediction-waiting {
    text-align: center;
    padding: 20px;
    background: #1E293B;
    border-radius: 12px;
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loading-dots {
    display: inline-flex;
    gap: 4px;
}

.loading-dots:after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.prediction-result {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    animation: fadeIn 0.3s;
}

.prediction-result.win {
    background: #D1FAE5;
    color: #059669;
    border-left: 4px solid #10B981;
}

.prediction-result.loss {
    background: #FEE2E2;
    color: #DC2626;
    border-left: 4px solid #EF4444;
}

/* Current Price Animation */
.current-price.up {
    color: #10B981;
    animation: priceUp 0.3s ease;
}

.current-price.down {
    color: #EF4444;
    animation: priceDown 0.3s ease;
}

@keyframes priceUp {
    0% { transform: translateY(0); color: inherit; }
    50% { transform: translateY(-5px); color: #10B981; }
    100% { transform: translateY(0); color: #10B981; }
}

@keyframes priceDown {
    0% { transform: translateY(0); color: inherit; }
    50% { transform: translateY(5px); color: #EF4444; }
    100% { transform: translateY(0); color: #EF4444; }
}

/* Crash Game Enhancements */
.crash-multiplier.crashing {
    animation: crashPulse 0.1s infinite;
    color: #EF4444;
}

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

.history-item.win {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.history-item.loss {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

/* Race Game Enhancements */
.race-track-container {
    background: #0A0E17;
    border-radius: 16px;
    padding: 20px;
}

.race-start-btn {
    background: linear-gradient(135deg, #10B981, #059669);
}

/* Blast Game Enhancements */
.blast-area {
    cursor: crosshair;
    position: relative;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

/* Interest Game Enhancements */
.risk-select input {
    accent-color: #4F46E5;
}

/* Bonus Game Enhancements */
.challenge-card {
    transition: all 0.3s ease;
}

.challenge-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Modal Body Scroll */
.modal-body {
    max-height: calc(90vh - 70px);
    overflow-y: auto;
    padding: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .modal-body {
        padding: 16px;
    }
    
    .prediction-buttons button {
        padding: 12px;
        font-size: 14px;
    }
    
    .crash-chart-container,
    .prediction-chart-container {
        padding: 10px;
    }
    
    .crash-multiplier {
        font-size: 36px;
    }
    
    .bet-controls {
        justify-content: center;
    }
    
    .game-actions {
        flex-direction: column;
    }
}
/* Additional game styles */
.fbp-login-required {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    color: white;
}

.fbp-login-required a {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 30px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
}

/* Toast notifications */
.fbp-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1F2937;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
}

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

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #4F46E5;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4338CA;
}
/* Enhanced Transaction Styles for Dashboard */

/* Transaction Item Container */
.txn-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.txn-item:hover {
    background: var(--border-light);
    transform: translateX(4px);
}

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

/* Left Section */
.txn-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

/* Transaction Icon */
.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.credit {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.txn-icon.debit {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

.txn-icon.transfer {
    background: rgba(79, 70, 229, 0.15);
    color: #4F46E5;
}

.txn-icon.bill {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
}

.txn-icon.airtime {
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
}

.txn-icon.data {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.txn-icon.game_reward {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
}

/* Transaction Details */
.txn-details {
    flex: 1;
}

.txn-details strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.txn-details small {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--text-muted);
}

.txn-details small i {
    margin-right: 3px;
    font-size: 10px;
}

.txn-ref {
    font-family: monospace;
    background: var(--border-light);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Right Section */
.txn-right {
    text-align: right;
    flex-shrink: 0;
}

/* Transaction Amount */
.txn-amount {
    font-size: 16px;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.txn-amount.credit {
    color: #10B981;
}

.txn-amount.debit {
    color: #EF4444;
}

/* Status Badge */
.txn-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 500;
}

.txn-status-badge.status-completed {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.txn-status-badge.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
}

.txn-status-badge.status-failed {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

/* Arrow Indicator */
.txn-arrow {
    margin-left: 12px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.txn-item:hover .txn-arrow {
    transform: translateX(4px);
    color: var(--primary);
}

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

.fbp-empty-state i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.fbp-empty-state p {
    font-size: 14px;
}

/* Daily Reward Styling */
.reward-unclaimed {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(79, 70, 229, 0.05));
    border-radius: 16px;
}

.reward-unclaimed i {
    font-size: 32px;
    color: #F59E0B;
}

.reward-unclaimed .reward-info {
    flex: 1;
}

.reward-unclaimed .reward-info span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.reward-unclaimed .reward-info small {
    font-size: 11px;
    color: var(--text-muted);
}

.claim-btn {
    background: linear-gradient(135deg, #4F46E5, #4338CA);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.2s ease;
}

.claim-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.reward-claimed {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 16px;
}

.reward-claimed i {
    font-size: 28px;
    color: #10B981;
}

.reward-claimed .reward-info strong {
    display: block;
    font-size: 14px;
    color: #10B981;
}

.reward-claimed .reward-info small {
    font-size: 11px;
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .txn-item {
        padding: 12px;
    }
    
    .txn-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .txn-details strong {
        font-size: 13px;
    }
    
    .txn-details small {
        gap: 8px;
        font-size: 9px;
    }
    
    .txn-amount {
        font-size: 14px;
    }
    
    .txn-status-badge {
        padding: 2px 8px;
        font-size: 9px;
    }
}

/* Dark Theme Specific */
[data-theme="dark"] .txn-details small {
    color: #9CA3AF;
}

[data-theme="dark"] .txn-ref {
    background: rgba(255, 255, 255, 0.1);
}
/* Add to your main CSS file - Fix for Dark Mode Input Fields */
[data-theme="dark"] .fbp-input,
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea,
[data-theme="dark"] .input-with-icon input,
[data-theme="dark"] .custom-input,
[data-theme="dark"] .amount-input,
[data-theme="dark"] #accountNumber,
[data-theme="dark"] #transferAmount,
[data-theme="dark"] #description,
[data-theme="dark"] #transactionPin,
[data-theme="dark"] #p2pRecipient,
[data-theme="dark"] #p2pAmount,
[data-theme="dark"] #p2pPin,
[data-theme="dark"] #p2pNote,
[data-theme="dark"] #selfAmount,
[data-theme="dark"] #selfPin,
[data-theme="dark"] #airtimePhone,
[data-theme="dark"] #airtimeAmount,
[data-theme="dark"] #dataPhone,
[data-theme="dark"] #meterNumber,
[data-theme="dark"] #electricityAmount,
[data-theme="dark"] #smartcardNumber {
    background: #334155 !important;
    border-color: #475569 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .fbp-input:focus,
[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
    border-color: #818CF8 !important;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2) !important;
    outline: none;
}

[data-theme="dark"] .fbp-input::placeholder,
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #94a3b8 !important;
}

/* Fix select dropdown in dark mode */
[data-theme="dark"] select {
    background: #334155 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23cbd5e1' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E") right 10px center no-repeat !important;
    background-size: 20px !important;
    appearance: none;
    -webkit-appearance: none;
}

/* Fix network buttons in dark mode */
[data-theme="dark"] .network-btn {
    background: #334155 !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .network-btn span {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .network-btn.active {
    background: #4F46E5 !important;
    border-color: #4F46E5 !important;
}

[data-theme="dark"] .network-btn.active span {
    color: white !important;
}

/* Fix amount preset buttons */
[data-theme="dark"] .preset-btn {
    background: #334155 !important;
    border-color: #475569 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .preset-btn.active,
[data-theme="dark"] .preset-btn:hover {
    background: #4F46E5 !important;
    color: white !important;
}

/* Fix transfer type buttons */
[data-theme="dark"] .transfer-type {
    background: #334155 !important;
    border-color: #475569 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .transfer-type.active {
    background: #4F46E5 !important;
    color: white !important;
}

/* Fix provider buttons */
[data-theme="dark"] .provider-btn {
    background: #334155 !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .provider-btn span {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .provider-btn small {
    color: #94a3b8 !important;
}

[data-theme="dark"] .provider-btn.active {
    background: #4F46E5 !important;
}

[data-theme="dark"] .provider-btn.active span,
[data-theme="dark"] .provider-btn.active small {
    color: white !important;
}

/* Fix meter type buttons */
[data-theme="dark"] .meter-type {
    background: #334155 !important;
    border-color: #475569 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .meter-type.active {
    background: #4F46E5 !important;
    color: white !important;
}

/* Fix verify button */
[data-theme="dark"] .verify-btn {
    background: #4F46E5 !important;
}

[data-theme="dark"] .verify-btn:hover {
    background: #6366F1 !important;
}

/* Fix PIN toggle button */
[data-theme="dark"] .toggle-pin {
    color: #94a3b8 !important;
}

[data-theme="dark"] .toggle-pin:hover {
    color: #cbd5e1 !important;
}

/* Fix wallet cards in dark mode */
[data-theme="dark"] .wallet-card {
    background: #334155 !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .wallet-card .wallet-balance {
    color: #f1f5f9 !important;
}

/* Fix beneficiary items */
[data-theme="dark"] .beneficiary-item:hover {
    background: #334155 !important;
}

[data-theme="dark"] .beneficiary-info strong {
    color: #f1f5f9 !important;
}

/* Fix recent transfers */
[data-theme="dark"] .recent-item {
    border-color: #334155 !important;
}

[data-theme="dark"] .recent-info strong {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .recent-info small {
    color: #94a3b8 !important;
}

/* Fix search results in dark mode */
[data-theme="dark"] .p2p-search-results {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .search-result-item {
    border-color: #334155 !important;
}

[data-theme="dark"] .search-result-item:hover {
    background: #334155 !important;
}

[data-theme="dark"] .search-result-info strong {
    color: #f1f5f9 !important;
}

/* Fix recipient card */
[data-theme="dark"] .recipient-card {
    background: #312e81 !important;
}

[data-theme="dark"] .recipient-info strong {
    color: white !important;
}

/* Fix transaction modal in dark mode */
[data-theme="dark"] .fbp-modal-container-global {
    background: #1e293b !important;
}

[data-theme="dark"] .fbp-modal-header-global {
    border-color: #334155 !important;
}

/* Fix form cards */
[data-theme="dark"] .fbp-form-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}

/* Fix input groups */
[data-theme="dark"] .input-group label {
    color: #94a3b8 !important;
}

/* Fix currency symbol */
[data-theme="dark"] .currency-symbol {
    color: #94a3b8 !important;
}

/* Fix fee info */
[data-theme="dark"] .fee-info,
[data-theme="dark"] .balance-info {
    color: #94a3b8 !important;
}

/* Fix transfer summary */
[data-theme="dark"] .transfer-summary,
[data-theme="dark"] .p2p-summary,
[data-theme="dark"] .self-summary {
    background: #312e81 !important;
}

[data-theme="dark"] .summary-row {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .summary-row.total {
    border-color: #475569 !important;
}
.fbp-success-message {
    background: #10B98120;
    color: #10B981;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.fbp-success-message i {
    margin-right: 8px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ============================================
   NOTIFICATION MODAL - FULL SCREEN MOBILE
   ============================================ */

/* Notification Modal Overlay */
.fbp-notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Full screen on mobile */
.fbp-notification-modal .fbp-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    max-width: 100%;
    width: 100%;
    border-radius: 0;
    animation: slideUp 0.3s ease;
}

@media (min-width: 769px) {
    .fbp-notification-modal .fbp-modal-container {
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        transform: translate(-50%, -50%);
        max-width: 500px;
        max-height: 80vh;
        border-radius: 24px;
    }
    
    .fbp-notification-modal.active .fbp-modal-container {
        animation: modalSlideIn 0.3s ease;
    }
}

/* Notification Header */
.fbp-notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    position: sticky;
    top: 0;
    z-index: 10;
}

.fbp-notification-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fbp-notification-header h3 i {
    color: var(--primary);
}

.fbp-notification-header .header-actions {
    display: flex;
    gap: 12px;
}

.fbp-notification-header .mark-all-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    transition: var(--transition);
}

.fbp-notification-header .mark-all-btn:hover {
    background: var(--border-light);
}

.fbp-notification-header .close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--gray);
    line-height: 1;
}

/* Notification List */
.fbp-notification-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.notification-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: var(--bg-page);
    border-radius: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.notification-item.unread {
    background: rgba(79, 70, 229, 0.05);
    border-left: 3px solid var(--primary);
}

.notification-item:hover {
    transform: translateX(4px);
}

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

.notification-icon i {
    font-size: 22px;
    color: white;
}

.notification-content {
    flex: 1;
}

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

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

.notification-time {
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.notification-time i {
    font-size: 10px;
}

.notification-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

/* Empty State */
.notifications-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.notifications-empty i {
    font-size: 60px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.notifications-empty p {
    margin-bottom: 20px;
}

/* Loading State */
.notifications-loading {
    text-align: center;
    padding: 40px;
}

.notifications-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: 0 auto 12px;
}

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

/* Referral Stats Grid */
.referral-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    padding: 20px;
}

.referral-stats-grid .stat-card {
    background: var(--bg-page);
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    border: 1px solid var(--border);
}

.referral-stats-grid .stat-card i {
    font-size: 28px;
    margin-bottom: 8px;
}

.referral-stats-grid .stat-card.success i { color: #10B981; }
.referral-stats-grid .stat-card.warning i { color: #F59E0B; }
.referral-stats-grid .stat-card.primary i { color: var(--primary); }
.referral-stats-grid .stat-card.green i { color: #10B981; }

.referral-stats-grid .stat-card span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.referral-stats-grid .stat-card strong {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-primary);
}

/* Referral How It Works */
.referral-how-it-works {
    padding: 20px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-page);
}

.referral-how-it-works h4 {
    margin-bottom: 16px;
    font-size: 14px;
}

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

.step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.step-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
}

.step-badge {
    display: inline-block;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 6px;
}

.step-badge.pending {
    background: #F59E0B20;
    color: #F59E0B;
}

.step-badge.active {
    background: #10B98120;
    color: #10B981;
}

/* Referral Benefits Grid */
.referral-benefits {
    padding: 20px;
}

.referral-benefits h4 {
    margin-bottom: 16px;
    font-size: 14px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.benefit {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-page);
    border-radius: 12px;
}

.benefit i {
    font-size: 24px;
}

.benefit i.fa-star { color: #F59E0B; }
.benefit i.fa-chart-line { color: #10B981; }
.benefit i.fa-sync-alt { color: #8B5CF6; }
.benefit i.fa-trophy { color: #EF4444; }

.benefit strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

.benefit span {
    display: block;
    font-size: 11px;
    color: var(--text-primary);
}

.benefit small {
    font-size: 10px;
    color: var(--text-muted);
    display: block;
}

/* Referrals Table */
.referrals-list-section {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.referrals-list-section h4 {
    margin-bottom: 12px;
    font-size: 14px;
}

.referrals-table-wrapper {
    overflow-x: auto;
}

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

.referrals-table th,
.referrals-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}

.referrals-table th {
    color: var(--text-muted);
    font-weight: 500;
}

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

.referral-user .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* Share Referral Button */
.share-referral-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

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