/* City Prime Bank - Dark Theme Styles */

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a2234;
    --bg-card-hover: #232d42;
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #2d3748;
    --gradient-blue: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    --gradient-card: linear-gradient(135deg, #1e3a5f 0%, #0d2137 100%);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
}

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

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

/* Mobile Container */
.mobile-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-primary);
    position: relative;
    padding-bottom: 80px;
}

/* Header */
.header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-primary);
}

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

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

.greeting-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.wave {
    font-size: 18px;
}

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

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

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

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--danger);
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Balance Card */
.balance-card {
    margin: 0 16px 20px;
    padding: 24px;
    background: var(--gradient-card);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

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

.card-type {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.balance-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.eye-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
}

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

.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    font-size: 12px;
    color: var(--success);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.last-updated {
    font-size: 12px;
    color: var(--text-muted);
}

/* Swipe Indicator */
.swipe-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 12px;
}

.swipe-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 3px;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    justify-content: space-around;
    padding: 0 16px;
    margin-bottom: 24px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

.action-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.3s;
}

.action-icon.yellow {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.action-icon.gray {
    background: var(--bg-card);
    border: 1px solid var(--border);
}

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

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

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

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

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.section-link {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Quick Transfer */
.beneficiaries {
    display: flex;
    gap: 16px;
}

.add-beneficiary {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px dashed var(--border);
    background: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
}

.no-beneficiaries {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    padding: 20px;
}

.no-beneficiaries i {
    font-size: 32px;
    opacity: 0.5;
}

/* Cards Section */
.credit-card {
    background: var(--gradient-blue);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.credit-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.card-bank {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-type-small {
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.card-number {
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-family: monospace;
}

.card-details {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.card-label {
    opacity: 0.7;
    margin-bottom: 4px;
}

/* Financial Services */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.service-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--border);
}

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

.service-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.service-icon.blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.service-icon.green { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.service-icon.purple { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.service-icon.orange { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }

.service-status {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

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

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

.service-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.service-btn {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-blue { background: var(--gradient-blue); color: white; }
.btn-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; }
.btn-purple { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); color: white; }
.btn-orange { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); color: white; }

/* Insights */
.insight-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

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

.insight-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.insight-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.progress-bar {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--warning) 0%, var(--success) 100%);
    border-radius: 3px;
    transition: width 0.5s;
}

.insight-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-card-small {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-icon-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 16px;
}

.stat-icon-small.green { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.stat-icon-small.red { background: rgba(239, 68, 68, 0.2); color: var(--danger); }

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

.stat-value-small {
    font-size: 18px;
    font-weight: 700;
}

.stat-value-small.green { color: var(--success); }
.stat-value-small.red { color: var(--danger); }

/* Activity */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.activity-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.activity-icon.green { background: rgba(16, 185, 129, 0.2); color: var(--success); }

.activity-details {
    flex: 1;
}

.activity-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

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

.activity-date {
    font-size: 11px;
    color: var(--text-muted);
}

.activity-action {
    color: var(--primary);
    font-size: 12px;
    text-decoration: none;
}

/* Achievements */
.achievement-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.achievement-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.achievement-title {
    font-size: 14px;
    font-weight: 600;
}

.achievement-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Help Section */
.help-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.help-card {
    padding: 16px;
    background: var(--bg-card);
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
}

.help-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 20px;
}

.help-icon.blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.help-icon.green { background: rgba(16, 185, 129, 0.2); color: var(--success); }

.help-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.help-desc {
    font-size: 11px;
    color: var(--text-muted);
}

/* Support Banner */
.support-banner {
    margin: 0 16px 24px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
}

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

.support-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.support-features {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.support-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.support-feature i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.support-feature i.blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.support-feature i.green { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.support-feature i.yellow { background: rgba(245, 158, 11, 0.2); color: var(--warning); }

.support-feature span {
    font-size: 10px;
    color: var(--text-muted);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    transition: all 0.3s;
}

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

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

.nav-item.active i {
    background: var(--gradient-blue);
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-top: -24px;
    box-shadow: var(--shadow);
}

/* Buttons */
.btn {
    padding: 14px 24px;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

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

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-block {
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

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

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s;
}

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

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

/* Toast */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

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

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.hidden {
    display: none !important;
}

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

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

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