/* ==========================================================================
   CSS VARIABLES & BASE SETUP
   ========================================================================== */
:root {
    --bg-body: #f4f7f9;
    --bg-surface: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --primary-color: #f97316;
    --primary-hover: #ea580c;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 15px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius-md: 10px;
    --radius-lg: 16px;
    --font-sans: 'Inter', sans-serif;
    --wrapper-bg: #f8f9fa;
}

body.dark-mode {
    --bg-body: #0f172a;
    --bg-surface: #1e293b;
    --border-color: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --wrapper-bg: #111827;
}

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

body {
    font-family: var(--font-sans); background-color: var(--bg-body); color: var(--text-primary);
    display: flex; height: 100vh; overflow: hidden; transition: background-color 0.3s, color 0.3s;
}

/* ==========================================================================
   LAYOUT, SIDEBAR, TABS & FORMS
   ========================================================================== */
.sidebar { width: 280px; background: var(--bg-surface); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; padding: 20px; z-index: 10; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; color: var(--text-primary); margin-bottom: 30px; font-weight: 700; }
.brand .logo-icon { background: var(--primary-color); color: white; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); }
.theme-section { flex: 1; overflow-y: auto; }
.theme-section h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); margin-bottom: 15px; }
.theme-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.theme-btn { background: transparent; border: 1px solid var(--border-color); padding: 12px; border-radius: var(--radius-md); cursor: pointer; text-align: left; color: var(--text-primary); font-weight: 500; transition: all 0.2s; display: flex; align-items: center; gap: 10px; }
.theme-btn:hover { background: var(--bg-body); border-color: var(--text-secondary); }
.theme-btn.active { background: rgba(249, 115, 22, 0.1); border-color: var(--primary-color); color: var(--primary-color); }
.theme-color-preview { width: 16px; height: 16px; border-radius: 50%; }
.sidebar-footer { padding-top: 20px; border-top: 1px solid var(--border-color); }
.toggle-btn { width: 100%; padding: 12px; background: var(--bg-body); border: 1px solid var(--border-color); color: var(--text-primary); border-radius: var(--radius-md); cursor: pointer; font-weight: 600; }

.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.top-nav { height: 70px; background: var(--bg-surface); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; padding: 0 30px; }
.tabs { display: flex; gap: 20px; }
.tab-btn { background: none; border: none; color: var(--text-secondary); font-size: 1rem; font-weight: 600; padding: 24px 0; cursor: pointer; border-bottom: 3px solid transparent; transition: 0.2s; }
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }
.nav-actions { display: flex; gap: 10px; }

.workspace { flex: 1; display: flex; overflow: hidden; position: relative; }
.left-panel, .right-panel { flex: 1; padding: 30px; overflow-y: auto; }
.left-panel { border-right: 1px solid var(--border-color); }
.right-panel { background: var(--bg-body); display: flex; flex-direction: column; }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease-in-out; }

.glass-form { background: var(--bg-surface); padding: 25px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-group.full-width { grid-column: 1 / -1; }
label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.req { color: var(--danger); }
input, select { padding: 12px 16px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-body); color: var(--text-primary); font-family: inherit; font-size: 0.95rem; transition: border 0.3s; }
input:focus, select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1); }
.input-with-icon { position: relative; display: flex; }
.input-with-icon input { flex: 1; padding-right: 45px; }
.input-with-icon .icon-btn { position: absolute; right: 5px; top: 5px; bottom: 5px; background: var(--bg-surface); border: none; color: var(--text-secondary); width: 35px; border-radius: var(--radius-md); cursor: pointer; }

.btn { padding: 12px 20px; border-radius: var(--radius-md); font-weight: 600; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s; border: none; }
.btn-sm { padding: 8px 15px; font-size: 0.85rem; }
.btn-primary { background: var(--primary-color); color: white; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-body); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--border-color); }
.btn-outline { background: transparent; border: 1px solid var(--border-color); color: var(--text-primary); }
.btn-outline:hover { background: var(--bg-body); }
.full-width { width: 100%; }

.export-actions { margin-top: 25px; display: flex; gap: 10px; flex-wrap: wrap; }
.csv-actions-top { display: flex; justify-content: flex-end; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 20px; }

/* BULK CSV UI */
.csv-upload-zone { border: 2px dashed var(--border-color); border-radius: var(--radius-lg); padding: 40px 20px; text-align: center; background: var(--bg-surface); transition: all 0.3s; }
.csv-upload-zone.dragover { border-color: var(--primary-color); background: rgba(249, 115, 22, 0.05); }
.cloud-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 15px; }
.bulk-stats { display: flex; gap: 15px; margin-top: 20px; }
.stat-box { flex: 1; padding: 15px; border-radius: var(--radius-md); background: var(--bg-surface); border: 1px solid var(--border-color); text-align: center; }
.stat-box.success strong { color: var(--success); }
.stat-box.error strong { color: var(--danger); }
.table-container { margin-top: 20px; max-height: 250px; overflow-y: auto; border-radius: var(--radius-md); border: 1px solid var(--border-color); background: var(--bg-surface); }
.bulk-table { width: 100%; border-collapse: collapse; text-align: left; }
.bulk-table th, .bulk-table td { padding: 12px; border-bottom: 1px solid var(--border-color); font-size: 0.9rem; }
.bulk-table th { background: var(--bg-body); position: sticky; top: 0; }

/* ==========================================================================
   RECEIPT PREVIEW WRAPPER
   ========================================================================== */
.preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.live-indicator { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--success); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: blink 1.5s infinite; }
@keyframes blink { 0%, 100% {opacity: 1;} 50% {opacity: 0.4;} }
@keyframes fadeIn { from {opacity: 0; transform: translateY(10px);} to {opacity: 1; transform: translateY(0);} }

.receipt-wrapper {
    flex: 1; display: flex; justify-content: center; padding: 30px;
    background-color: var(--wrapper-bg);
    background-image: linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow-y: auto;
}

/* ==========================================================================
   BASE RECEIPT STYLES (Foundation for all themes)
   ========================================================================== */
#receipt-card {
    width: 100%; max-width: 420px; background: #ffffff; border-radius: 20px; box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column; position: relative; font-family: var(--font-sans); color: #0f172a; transition: all 0.3s ease; margin: auto;
}

/* Base Top Section */
.rc-top { padding: 30px; text-align: center; position: relative; z-index: 2; }
.rc-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 25px; }
.rc-brand { display: flex; align-items: center; gap: 10px; }
.rc-logo { width: 32px; height: 32px; background: #f97316; color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.rc-brand-text { text-align: left; }
.rc-app-name { font-weight: 700; font-size: 1rem; line-height: 1.1; }
.rc-app-sub { font-size: 0.6rem; color: #64748b; letter-spacing: 0.5px; margin-top: 2px; text-transform: uppercase; }
.rc-txn-pill { background: #f1f5f9; padding: 4px 10px; border-radius: 12px; font-size: 0.7rem; font-weight: 600; color: #475569; letter-spacing: 0.5px; }

/* Success Check & Amount */
.rc-success-icon { margin: 0 auto 15px auto; width: 60px; height: 60px; background: rgba(16, 185, 129, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #10b981; font-size: 1.8rem; border: 4px solid rgba(16, 185, 129, 0.2); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0.05); }
.rc-status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; margin-bottom: 20px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; }

.rc-amount-box { margin-bottom: 10px; }
.rc-amount { font-size: 2.8rem; font-weight: 800; letter-spacing: -1px; color: #0f172a; display: flex; justify-content: center; align-items: baseline; }
.rc-amount .rc-decimals { font-size: 1.2rem; color: #64748b; font-weight: 600; margin-left: 2px; }
.rc-amount-words { font-size: 0.85rem; color: #64748b; margin-top: 5px; font-weight: 500; }
.rc-meta { font-size: 0.8rem; color: #64748b; margin-top: 15px; }
.rc-meta strong { color: #0f172a; }

/* Divider Cutout */
.rc-divider { position: relative; height: 0; border-top: 2px dashed #e2e8f0; margin: 0 15px; z-index: 1; }
.rc-divider::before, .rc-divider::after { content: ''; position: absolute; top: -12px; width: 24px; height: 24px; background-color: var(--wrapper-bg); border-radius: 50%; border: 1px solid transparent; }
.rc-divider::before { left: -27px; box-shadow: inset -2px 0 3px rgba(0,0,0,0.03); }
.rc-divider::after { right: -27px; box-shadow: inset 2px 0 3px rgba(0,0,0,0.03); }

/* Details Section */
.rc-bottom { padding: 30px; position: relative; z-index: 2; }
.rc-details-title { font-size: 0.7rem; font-weight: 700; color: #94a3b8; letter-spacing: 1px; margin-bottom: 15px; text-transform: uppercase; }
.rc-details { display: flex; flex-direction: column; gap: 15px; margin-bottom: 25px; }
.detail-row { display: flex; justify-content: space-between; align-items: center; }
.detail-row .label { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: #64748b; font-weight: 500; }
.detail-row .label i { width: 14px; text-align: center; opacity: 0.7; }
.detail-row .value { font-size: 0.85rem; font-weight: 600; color: #0f172a; text-align: right; max-width: 60%; word-break: break-all; }

/* Badges / Pills */
.rc-mode-pill { background: rgba(249, 115, 22, 0.1); color: #ea580c; padding: 3px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; }
.rc-status-text { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }

/* Status Colors */
.badge-completed { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.badge-completed .status-dot { background: #10b981; }
.badge-pending { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.badge-pending .status-dot { background: #f59e0b; }
.badge-failed { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.badge-failed .status-dot { background: #ef4444; }

/* Global Footer (Applied to ALL Themes uniquely) */
.rc-footer-logos { text-align: center; border-top: 1px solid #f1f5f9; padding-top: 20px; position: relative; margin-top: 10px; }
.rc-footer-title { position: absolute; top: -8px; left: 0; right: 0; text-align: center; }
.rc-footer-title span { background: #ffffff; padding: 0 10px; font-size: 0.6rem; color: #94a3b8; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.rc-banks { display: flex; justify-content: center; gap: 15px; margin-top: 15px; }
.rc-banks .bank { font-size: 0.65rem; color: #475569; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rc-banks .bank i { font-size: 1rem; color: #f97316; }

/* ==========================================================================
   10 PROFESSIONALLY CRAFTED DISTINCT THEMES
   ========================================================================== */

/* 1. Theme: Instant Pay (Default - Clean Wallet Style) */
.theme-instant-pay {} /* Perfectly uses standard variables */

/* 2. Theme: Dark NeoBank (Cred inspired, dark slate, cyan glow) */
.theme-dark-neo { background: #0f172a !important; color: #f8fafc !important; box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 1px #1e293b !important; }
.theme-dark-neo .rc-logo { background: #06b6d4; color: #fff; }
.theme-dark-neo .rc-app-sub { color: #94a3b8; }
.theme-dark-neo .rc-txn-pill { background: #1e293b; color: #94a3b8; }
.theme-dark-neo .rc-success-icon { background: rgba(6, 182, 212, 0.1); border-color: rgba(6, 182, 212, 0.2); color: #06b6d4; box-shadow: 0 0 15px rgba(6, 182, 212, 0.1); }
.theme-dark-neo .rc-amount { color: #f8fafc; font-family: 'Outfit', sans-serif; }
.theme-dark-neo .rc-amount .rc-decimals, .theme-dark-neo .rc-amount-words { color: #94a3b8; }
.theme-dark-neo .rc-meta, .theme-dark-neo .detail-row .label { color: #64748b; }
.theme-dark-neo .rc-meta strong, .theme-dark-neo .detail-row .value { color: #cbd5e1; }
.theme-dark-neo .rc-divider { border-top: 2px dashed #1e293b; }
.theme-dark-neo .rc-divider::before, .theme-dark-neo .rc-divider::after { background-color: var(--wrapper-bg); border-color: #1e293b; }
.theme-dark-neo .rc-mode-pill { background: #1e293b; color: #06b6d4; }
.theme-dark-neo .rc-footer-logos { border-top-color: #1e293b; }
.theme-dark-neo .rc-footer-title span { background: #0f172a; color: #64748b; }
.theme-dark-neo .rc-banks .bank { color: #64748b; }
.theme-dark-neo .rc-banks .bank i { color: #06b6d4; }

/* 3. Theme: Corporate Minimal (B2B Invoice style, Left aligned, Crisp) */
.theme-corp-min { border-radius: 4px !important; border: 1px solid #cbd5e1; box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important; border-top: 8px solid #2563eb; }
.theme-corp-min .rc-top { text-align: left; padding-bottom: 20px; }
.theme-corp-min .rc-header { flex-direction: row-reverse; } /* Logo right, txn left */
.theme-corp-min .rc-logo { background: #2563eb; border-radius: 4px; }
.theme-corp-min .rc-success-icon { display: none; } /* Hide big icon for pro look */
.theme-corp-min .rc-status-pill { display: none; } /* Hide secondary pill */
.theme-corp-min .rc-amount-box { margin-top: 20px; border-left: 4px solid #2563eb; padding-left: 15px; }
.theme-corp-min .rc-amount { justify-content: flex-start; font-size: 2.2rem; color: #1e293b; }
.theme-corp-min .rc-divider { display: none; } /* No cutouts */
.theme-corp-min .rc-bottom { border-top: 1px solid #e2e8f0; }
.theme-corp-min .detail-row { border-bottom: 1px solid #f1f5f9; padding-bottom: 8px; }
.theme-corp-min .rc-footer-logos { border-top: 1px solid #e2e8f0; }
.theme-corp-min .rc-footer-title span { color: #64748b; background: #fff; }
.theme-corp-min .rc-banks .bank i { color: #2563eb; }

/* 4. Theme: Prime Wallet (PhonePe style, deep purple top, white bottom) */
.theme-prime-wallet { background: #fff !important; border-radius: 24px !important; overflow: hidden; box-shadow: 0 15px 35px rgba(103, 58, 183, 0.15) !important; border: 1px solid #e2e8f0; }
.theme-prime-wallet .rc-top { background: linear-gradient(135deg, #673ab7, #512da8); color: #fff; border-radius: 0; padding-bottom: 40px; }
.theme-prime-wallet .rc-logo { background: #fff; color: #673ab7; border-radius: 50%; }
.theme-prime-wallet .rc-app-name { color: #fff; }
.theme-prime-wallet .rc-app-sub { color: #d1c4e9; }
.theme-prime-wallet .rc-txn-pill { background: rgba(255,255,255,0.2); color: #fff; }
.theme-prime-wallet .rc-amount { color: #fff; }
.theme-prime-wallet .rc-amount .rc-decimals, .theme-prime-wallet .rc-amount-words { color: rgba(255,255,255,0.8); }
.theme-prime-wallet .rc-meta { color: rgba(255,255,255,0.8); }
.theme-prime-wallet .rc-meta strong { color: #fff; }
.theme-prime-wallet .rc-success-icon { background: #fff; color: #10b981; border: none; box-shadow: 0 0 0 5px rgba(255,255,255,0.2); }
.theme-prime-wallet .rc-divider { display: none; }
.theme-prime-wallet .rc-bottom { background: #fff; border-radius: 24px 24px 0 0; margin-top: -20px; box-shadow: 0 -10px 20px rgba(0,0,0,0.1); padding-top: 30px; }
.theme-prime-wallet .rc-mode-pill { background: #ede7f6; color: #673ab7; }
.theme-prime-wallet .rc-footer-title span { color: #673ab7; }
.theme-prime-wallet .rc-banks .bank i { color: #673ab7; }

/* 5. Theme: Luxury Fintech (Premium Black/Metal card style) */
.theme-luxury { background: linear-gradient(145deg, #2a2a2a, #111111) !important; color: #e5cc8f !important; border-radius: 16px !important; border: 1px solid #4a4a4a; box-shadow: 0 20px 50px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1) !important; font-family: 'Playfair Display', serif; }
.theme-luxury .rc-top { padding-bottom: 20px; }
.theme-luxury .rc-logo { background: transparent; color: #e5cc8f; border: 1px solid #e5cc8f; border-radius: 0; }
.theme-luxury .rc-app-name { font-weight: 500; letter-spacing: 1px; color: #e5cc8f; }
.theme-luxury .rc-app-sub { color: #a19065; }
.theme-luxury .rc-txn-pill { background: transparent; color: #a19065; border: 1px solid #4a4a4a; border-radius: 4px; font-family: 'Inter', sans-serif; }
.theme-luxury .rc-success-icon { border: 1px solid #e5cc8f; background: transparent; color: #e5cc8f; box-shadow: none; }
.theme-luxury .rc-status-pill { border: 1px solid rgba(229, 204, 143, 0.3); background: transparent; color: #e5cc8f; font-family: 'Inter', sans-serif; }
.theme-luxury .status-dot { background: #e5cc8f; }
.theme-luxury .rc-amount { color: #ffffff; font-weight: 400; font-family: 'Playfair Display', serif; }
.theme-luxury .rc-amount .rc-decimals, .theme-luxury .rc-amount-words, .theme-luxury .rc-meta { color: #a19065; font-family: 'Inter', sans-serif; }
.theme-luxury .rc-meta strong { color: #e5cc8f; font-weight: 400; font-family: 'Playfair Display', serif; }
.theme-luxury .rc-divider { border-top: 1px solid rgba(229, 204, 143, 0.2); }
.theme-luxury .rc-divider::before, .theme-luxury .rc-divider::after { display: none; }
.theme-luxury .rc-details-title { color: #a19065; font-family: 'Inter', sans-serif; }
.theme-luxury .detail-row .label { color: rgba(229, 204, 143, 0.7); font-family: 'Inter', sans-serif; }
.theme-luxury .detail-row .value { color: #ffffff; font-weight: 400; font-family: 'Inter', sans-serif; }
.theme-luxury .rc-mode-pill, .theme-luxury .rc-status-text { background: transparent; color: #e5cc8f; border: 1px solid rgba(229, 204, 143, 0.4); font-weight: 400; }
.theme-luxury .rc-footer-logos { border-top-color: rgba(229, 204, 143, 0.2); }
.theme-luxury .rc-footer-title span { background: #1a1a1a; color: #a19065; font-family: 'Inter', sans-serif; border: 1px solid #333; padding: 2px 10px; border-radius: 12px; }
.theme-luxury .rc-banks .bank { color: #a19065; font-family: 'Inter', sans-serif; }
.theme-luxury .rc-banks .bank i { color: #e5cc8f; }

/* 6. Theme: Blue Corporate (Structured two-tone table layout) */
.theme-blue-corp { border-radius: 0 !important; border: 1px solid #94a3b8; box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important; background: #fff !important; }
.theme-blue-corp .rc-top { background: #0f172a; color: #fff; padding: 25px; border-bottom: 4px solid #3b82f6; }
.theme-blue-corp .rc-header { margin-bottom: 15px; }
.theme-blue-corp .rc-logo { background: #3b82f6; border-radius: 0; }
.theme-blue-corp .rc-app-name { color: #fff; }
.theme-blue-corp .rc-txn-pill { background: rgba(255,255,255,0.1); color: #fff; border-radius: 0; }
.theme-blue-corp .rc-success-icon { display: none; }
.theme-blue-corp .rc-status-pill { display: none; }
.theme-blue-corp .rc-amount { color: #fff; font-size: 2.4rem; justify-content: flex-start; }
.theme-blue-corp .rc-amount .rc-decimals, .theme-blue-corp .rc-amount-words { color: #94a3b8; text-align: left; }
.theme-blue-corp .rc-meta { color: #cbd5e1; text-align: left; border-top: 1px solid #334155; padding-top: 10px; margin-top: 10px; }
.theme-blue-corp .rc-meta strong { color: #fff; }
.theme-blue-corp .rc-divider { display: none; }
.theme-blue-corp .rc-bottom { padding: 25px; }
.theme-blue-corp .rc-details { display: table; width: 100%; border-collapse: collapse; }
.theme-blue-corp .detail-row { display: table-row; }
.theme-blue-corp .detail-row .label, .theme-blue-corp .detail-row .value { display: table-cell; border: 1px solid #e2e8f0; padding: 10px; }
.theme-blue-corp .detail-row .label { background: #f8fafc; font-weight: 600; text-align: left; width: 40%; }
.theme-blue-corp .detail-row .value { text-align: right; }
.theme-blue-corp .rc-footer-logos { border-top: 2px solid #e2e8f0; padding-top: 20px; }
.theme-blue-corp .rc-footer-title span { background: #fff; color: #3b82f6; }
.theme-blue-corp .rc-banks .bank i { color: #3b82f6; }

/* 7. Theme: Cyber/Crypto Web3 (Sleek dark grid, neon accents, monospace) */
.theme-cyber-check { background: #070f17 !important; background-image: radial-gradient(rgba(16, 185, 129, 0.1) 1px, transparent 1px) !important; background-size: 20px 20px !important; color: #a7f3d0 !important; border: 1px solid #1e293b; box-shadow: 0 0 40px rgba(16, 185, 129, 0.05) !important; border-radius: 20px !important; font-family: 'Space Mono', monospace; }
.theme-cyber-check .rc-logo { background: #10b981; color: #000; border-radius: 8px; }
.theme-cyber-check .rc-app-name { color: #fff; font-family: 'Syne', sans-serif; font-weight: 800; letter-spacing: 1px; }
.theme-cyber-check .rc-app-sub { color: #059669; }
.theme-cyber-check .rc-txn-pill { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); font-family: 'Space Mono', monospace; }
.theme-cyber-check .rc-success-icon { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.3); color: #10b981; box-shadow: none; }
.theme-cyber-check .rc-status-pill { background: transparent; border: 1px solid #10b981; color: #10b981; }
.theme-cyber-check .rc-amount { color: #fff; text-shadow: 0 0 10px rgba(16, 185, 129, 0.3); font-size: 2.5rem; }
.theme-cyber-check .rc-amount .rc-decimals, .theme-cyber-check .rc-amount-words { color: #059669; }
.theme-cyber-check .rc-meta, .theme-cyber-check .detail-row .label { color: #64748b; }
.theme-cyber-check .rc-meta strong, .theme-cyber-check .detail-row .value { color: #e2e8f0; font-family: 'Space Mono', monospace; }
.theme-cyber-check .rc-divider { border-top: 1px solid #1e293b; }
.theme-cyber-check .rc-divider::before, .theme-cyber-check .rc-divider::after { display: none; }
.theme-cyber-check .rc-details-title { color: #10b981; font-family: 'Space Mono', monospace; }
.theme-cyber-check .rc-mode-pill, .theme-cyber-check .rc-status-text { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.theme-cyber-check .rc-footer-logos { border-top: 1px solid #1e293b; }
.theme-cyber-check .rc-footer-title span { background: #070f17; color: #059669; border: 1px solid #1e293b; border-radius: 6px; }
.theme-cyber-check .rc-banks .bank { color: #64748b; }
.theme-cyber-check .rc-banks .bank i { color: #10b981; }

/* 8. Theme: Pastel Standard (Soft, playful, rounded UI) */
.theme-pastel { background: #fffbeb !important; border-radius: 35px !important; box-shadow: 0 20px 40px rgba(245, 158, 11, 0.1) !important; border: 4px solid #fef3c7; }
.theme-pastel .rc-logo { background: #f59e0b; color: #fff; border-radius: 12px; }
.theme-pastel .rc-app-name { color: #92400e; font-family: 'Outfit', sans-serif; font-size: 1.2rem; }
.theme-pastel .rc-app-sub { color: #d97706; }
.theme-pastel .rc-txn-pill { background: #fef3c7; color: #b45309; }
.theme-pastel .rc-success-icon { background: #dcfce7; color: #16a34a; border-color: #bbf7d0; box-shadow: none; width: 70px; height: 70px; font-size: 2rem; }
.theme-pastel .rc-status-pill { background: #dcfce7; color: #16a34a; }
.theme-pastel .rc-amount { color: #78350f; font-family: 'Outfit', sans-serif; }
.theme-pastel .rc-amount .rc-decimals, .theme-pastel .rc-amount-words { color: #92400e; }
.theme-pastel .rc-meta { color: #b45309; }
.theme-pastel .rc-meta strong { color: #78350f; }
.theme-pastel .rc-divider { border-top: 4px dotted #fde68a; margin: 0 20px; }
.theme-pastel .rc-divider::before, .theme-pastel .rc-divider::after { background-color: var(--wrapper-bg); border: none; width: 30px; height: 30px; top: -15px; }
.theme-pastel .rc-divider::before { left: -35px; }
.theme-pastel .rc-divider::after { right: -35px; }
.theme-pastel .rc-details-title { color: #d97706; }
.theme-pastel .detail-row { background: #fff; padding: 10px 15px; border-radius: 16px; margin-bottom: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.theme-pastel .detail-row .label { color: #92400e; }
.theme-pastel .detail-row .value { color: #78350f; font-family: 'Outfit', sans-serif; }
.theme-pastel .rc-mode-pill { background: #fef3c7; color: #d97706; }
.theme-pastel .rc-footer-logos { border-top-color: #fde68a; }
.theme-pastel .rc-footer-title span { background: #fffbeb; color: #b45309; }
.theme-pastel .rc-banks .bank { color: #92400e; }
.theme-pastel .rc-banks .bank i { color: #f59e0b; }

/* 9. Theme: Slate Professional (Monochromatic Enterprise dashboard style) */
.theme-slate { background: #ffffff !important; border-radius: 8px !important; border: 1px solid #cbd5e1; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05) !important; color: #334155; }
.theme-slate .rc-top { background: #f8fafc; border-bottom: 1px solid #e2e8f0; padding-bottom: 25px; border-radius: 8px 8px 0 0; }
.theme-slate .rc-logo { background: #475569; border-radius: 6px; }
.theme-slate .rc-app-name { color: #1e293b; }
.theme-slate .rc-txn-pill { background: #e2e8f0; color: #475569; border-radius: 4px; }
.theme-slate .rc-success-icon { width: 45px; height: 45px; font-size: 1.2rem; border-width: 2px; box-shadow: none; }
.theme-slate .rc-amount { font-size: 2.4rem; color: #0f172a; }
.theme-slate .rc-divider { display: none; } /* Replaced by border-bottom in rc-top */
.theme-slate .detail-row { border-bottom: 1px solid #f1f5f9; padding: 10px 0; }
.theme-slate .detail-row .label { color: #64748b; }
.theme-slate .detail-row .value { color: #1e293b; }
.theme-slate .rc-mode-pill, .theme-slate .rc-status-text { border-radius: 4px; }
.theme-slate .rc-footer-logos { border-top: 1px solid #e2e8f0; margin-top: 15px; }
.theme-slate .rc-footer-title span { background: #ffffff; color: #64748b; }
.theme-slate .rc-banks .bank i { color: #475569; }

/* 10. Theme: Bold Merchant (Neo-Brutalism, strong outlines, stark contrast) */
.theme-bold { background: #ffffff !important; border: 4px solid #000000; border-radius: 12px !important; box-shadow: 8px 8px 0px #000000 !important; color: #000 !important; font-family: 'Syne', sans-serif; }
.theme-bold .rc-top { padding-bottom: 15px; }
.theme-bold .rc-logo { background: #000; color: #fff; border-radius: 0; }
.theme-bold .rc-app-name { font-weight: 800; font-size: 1.3rem; text-transform: uppercase; }
.theme-bold .rc-txn-pill { background: #fff; color: #000; border: 2px solid #000; border-radius: 0; font-weight: 800; }
.theme-bold .rc-success-icon { background: #fff; color: #000; border: 4px solid #000; box-shadow: 4px 4px 0 #000; }
.theme-bold .rc-status-pill { border: 2px solid #000; border-radius: 0; background: #fff; color: #000; font-weight: 800; }
.theme-bold .status-dot { background: #000; border-radius: 0; }
.theme-bold .rc-amount { font-size: 3.5rem; font-weight: 800; border-bottom: 4px solid #000; padding-bottom: 10px; }
.theme-bold .rc-amount .rc-decimals, .theme-bold .rc-amount-words { color: #000; font-weight: 800; }
.theme-bold .rc-meta { color: #000; font-weight: 600; }
.theme-bold .rc-divider { display: none; }
.theme-bold .rc-details-title { color: #000; font-weight: 800; font-size: 0.9rem; border-bottom: 2px solid #000; padding-bottom: 5px; }
.theme-bold .detail-row { border-bottom: 2px solid #000; padding: 10px 0; }
.theme-bold .detail-row .label { color: #000; font-weight: 800; }
.theme-bold .detail-row .value { color: #000; font-weight: 800; }
.theme-bold .rc-mode-pill { background: #000; color: #fff; border-radius: 0; font-weight: 800; }
.theme-bold .rc-status-text { background: #fff; color: #000; border: 2px solid #000; border-radius: 0; font-weight: 800; }
.theme-bold .rc-footer-logos { border-top: 4px solid #000; padding-top: 25px; }
.theme-bold .rc-footer-title span { background: #ffffff; color: #000; font-weight: 800; border: 2px solid #000; padding: 4px 12px; }
.theme-bold .rc-banks .bank { color: #000; font-weight: 800; }
.theme-bold .rc-banks .bank i { color: #000; }


/* ==========================================================================
   OVERLAYS & TOASTS
   ========================================================================== */
.loader-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.8); display: none; flex-direction: column; align-items: center; justify-content: center; z-index: 9999; color: white; }
.loader-overlay.active { display: flex; }
.spinner { width: 50px; height: 50px; border: 4px solid rgba(255,255,255,0.2); border-top-color: var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 15px; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast-container { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 9999; }
.toast { background: var(--bg-surface); color: var(--text-primary); padding: 15px 20px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); border-left: 4px solid var(--primary-color); display: flex; align-items: center; gap: 10px; animation: slideIn 0.3s ease-out forwards; font-size: 0.9rem; font-weight: 500; }
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); } 
.toast.fade-out { animation: fadeOut 0.3s ease-in forwards; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { transform: translateX(100%); opacity: 0; } }

/* Scrollbars & Responsive */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

@media (max-width: 1024px) {
    .workspace { flex-direction: column; overflow-y: auto; }
    .left-panel, .right-panel { overflow-y: visible; border-right: none; }
    .right-panel { border-top: 1px solid var(--border-color); }
}
@media (max-width: 768px) {
    body { flex-direction: column; height: auto; overflow: visible; }
    .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); padding: 15px; height: auto; }
    .theme-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .top-nav { flex-direction: column; height: auto; padding: 15px; gap: 15px; }
    .form-grid { grid-template-columns: 1fr; }
}