/* ============================================
   IPOTEKA XIZMATI - Premium Mobile Banking App
   ============================================ */

:root {
    --brand-primary: #0550CE;
    --brand-secondary: #4763B1;
    --brand-accent: #7791D2;
    --brand-light: #B0C3EB;
    --brand-soft: #D1E1FC;
    --bg-light: #F2F2F2;
    --text-dark: #1B1B1B;
    --glass-bg: rgba(255,255,255,0.7);
    --glass-border: rgba(255,255,255,0.3);
    --shadow-sm: 0 2px 8px rgba(5,80,206,0.08);
    --shadow-md: 0 8px 32px rgba(5,80,206,0.12);
    --shadow-lg: 0 16px 48px rgba(5,80,206,0.16);
    --shadow-xl: 0 24px 64px rgba(5,80,206,0.2);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 32px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

/* ============ iPhone 16 Pro Frame ============ */
.phone-frame {
    width: 393px;
    height: 852px;
    background: var(--bg-light);
    border-radius: 55px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 0 2px #333, 0 0 0 4px #555, 0 30px 80px rgba(0,0,0,0.5);
}

/* ============ Status Bar ============ */
.status-bar {
    height: 54px;
    background: var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    position: relative;
    z-index: 100;
}
.status-left { display: flex; align-items: center; gap: 4px; }
.status-time { font-size: 15px; font-weight: 700; color: var(--text-dark); letter-spacing: -0.3px; }
.status-notch {
    position: absolute;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    width: 120px;
    height: 34px;
    background: var(--text-dark);
    border-radius: 0 0 20px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.notch-camera {
    width: 10px;
    height: 10px;
    background: #2a2a2a;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
}
.status-right { display: flex; align-items: center; gap: 6px; }
.status-icon { width: 16px; height: 16px; color: var(--text-dark); }
.status-icon.battery { width: 24px; height: 16px; }

/* ============ App Container ============ */
.app-container {
    height: calc(100% - 54px);
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
}
.app-container::-webkit-scrollbar { display: none; }

/* ============ Screens ============ */
.screen {
    display: none;
    min-height: 100%;
    padding: 20px;
    animation: screenIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.screen.active { display: block; }
/* Force-hide all images in non-active screens to prevent flash on mobile */
.screen:not(.active) img,
.screen:not(.active) video,
.screen:not(.active) iframe {
    display: none !important;
}

@keyframes screenIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============ Splash Screen ============ */
.splash-screen {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary), var(--brand-accent));
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.splash-screen.active {
    opacity: 1;
    pointer-events: all;
}
.splash-screen.hidden {
    opacity: 0;
    transform: scale(1.1);
}
.splash-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.splash-logo-container {
    position: relative;
    width: 100px;
    height: 100px;
}
.splash-logo-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 1; }
}
.splash-logo { position: relative; z-index: 1; width: 100px; height: 100px; animation: floatLogo 3s ease-in-out infinite; }
.logo-img { width: 100%; height: 100%; object-fit: contain; border-radius: 16px; }
@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.splash-title {
    font-size: 28px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}
.splash-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
}
.splash-loader {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    overflow: hidden;
}
.splash-loader-bar {
    height: 100%;
    width: 0%;
    background: white;
    border-radius: 10px;
    animation: loadBar 2.5s ease-in-out forwards;
}
@keyframes loadBar {
    0% { width: 0%; }
    50% { width: 60%; }
    100% { width: 100%; }
}
.splash-version {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 10px;
}

/* ============ Login Screen ============ */
.login-screen.active {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 80px;
}
.login-bg-shapes {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    pointer-events: none;
}
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}
.shape-1 {
    width: 300px; height: 300px;
    background: var(--brand-primary);
    top: -100px; right: -80px;
    animation: floatShape 8s ease-in-out infinite;
}
.shape-2 {
    width: 200px; height: 200px;
    background: var(--brand-secondary);
    bottom: -50px; left: -60px;
    animation: floatShape 10s ease-in-out infinite reverse;
}
.shape-3 {
    width: 150px; height: 150px;
    background: var(--brand-accent);
    top: 40%; left: 50%;
    animation: floatShape 12s ease-in-out infinite;
}
@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.1); }
    66% { transform: translate(-10px, 15px) scale(0.9); }
}
.login-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px 0;
}
.login-header { text-align: center; }
.login-logo { width: 64px; height: 64px; margin: 0 auto 16px; }
.login-welcome { font-size: 28px; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.login-subtitle { font-size: 15px; color: #666; }

.login-methods {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.login-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    font-family: inherit;
}
.login-method svg { width: 24px; height: 24px; }
.login-method.active, .login-method:hover {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-group label { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border-radius: var(--radius-sm);
    padding: 0 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.input-wrapper:focus-within {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(5,80,206,0.1);
}
.input-prefix {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    padding-right: 8px;
    border-right: 1px solid #eee;
    margin-right: 8px;
}
.input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 16px 0;
    background: transparent;
    font-family: inherit;
    color: var(--text-dark);
}
.input-wrapper input::placeholder { color: #bbb; }

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary svg { width: 20px; height: 20px; }

/* PIN */
.login-pin { text-align: center; }
.pin-label { font-size: 16px; font-weight: 600; color: var(--text-dark); margin-bottom: 16px; }
.pin-dots { display: flex; gap: 12px; justify-content: center; margin-bottom: 24px; }
.pin-dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s ease;
}
.pin-dot.filled { background: var(--brand-primary); transform: scale(1.2); }
.pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 280px;
    margin: 0 auto;
}
.pin-key {
    width: 80px; height: 80px;
    border-radius: 50%;
    border: none;
    background: white;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pin-key:hover { background: var(--brand-soft); transform: scale(1.05); }
.pin-key:active { transform: scale(0.95); }
.pin-key.empty { background: transparent; box-shadow: none; cursor: default; }
.pin-key.backspace svg { width: 28px; height: 28px; }

.login-footer { text-align: center; }
.login-footer p { font-size: 12px; color: #999; }
.login-footer a { color: var(--brand-primary); text-decoration: none; font-weight: 600; }

/* ============ Home Screen ============ */
.home-screen { padding: 16px 20px; }
.home-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}
.greeting-text { font-size: 14px; color: #888; font-weight: 500; }
.user-name { font-size: 24px; font-weight: 800; color: var(--text-dark); margin-top: 2px; }
.icon-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: none;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.icon-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.icon-btn svg { width: 22px; height: 22px; color: var(--text-dark); }
.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px; height: 18px;
    background: #FF3B30;
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Balance Card */
.balance-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    cursor: pointer;
    transition: all 0.4s ease;
}
.balance-card:hover { transform: translateY(-4px); }
.balance-card-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary), var(--brand-accent));
    background-size: 200% 200%;
    animation: gradientMove 6s ease infinite;
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.balance-card-content {
    position: relative;
    padding: 24px;
    color: white;
}
.balance-label { font-size: 13px; opacity: 0.8; font-weight: 500; margin-bottom: 8px; }
.balance-amount { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.balance-currency { font-size: 16px; font-weight: 600; opacity: 0.9; }
.balance-value { font-size: 36px; font-weight: 800; letter-spacing: -1px; }
.balance-card-number { font-size: 18px; font-weight: 500; letter-spacing: 2px; opacity: 0.7; margin-bottom: 16px; }
.balance-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.balance-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
}
.balance-change.positive { color: #4CAF50; }
.balance-change svg { width: 16px; height: 16px; }
.balance-actions { display: flex; gap: 8px; }
.card-action-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.card-action-btn:hover { background: rgba(255,255,255,0.3); transform: scale(1.1); }
.card-action-btn svg { width: 18px; height: 18px; color: white; }

/* Sections */
.section { margin-bottom: 24px; }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.section-header h3 { font-size: 18px; font-weight: 700; color: var(--text-dark); }
.see-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-primary);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}
.see-all:hover { opacity: 0.7; }

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    font-family: inherit;
}
.quick-action:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.quick-action:active { transform: translateY(-2px); }
.qa-icon {
    width: 48px; height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qa-icon svg { width: 24px; height: 24px; }
.quick-action span { font-size: 11px; font-weight: 600; color: var(--text-dark); text-align: center; }

/* P2P Banner */
.p2p-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    cursor: pointer;
    transition: all 0.4s ease;
}
.p2p-banner:hover { transform: translateY(-4px); }
.p2p-banner-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    background-size: 200% 200%;
    animation: gradientMove 8s ease infinite;
}
.p2p-banner-content {
    position: relative;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.p2p-banner-text h4 { font-size: 18px; font-weight: 700; color: white; margin-bottom: 4px; }
.p2p-banner-text p { font-size: 13px; color: rgba(255,255,255,0.7); }
.p2p-banner-btn {
    padding: 12px 24px;
    background: white;
    color: var(--text-dark);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}
.p2p-banner-btn:hover { transform: scale(1.05); box-shadow: var(--shadow-md); }

/* News Scroll */
.news-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.news-scroll::-webkit-scrollbar { display: none; }
.news-card {
    min-width: 200px;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-card-img {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-card-img svg { width: 32px; height: 32px; }
.news-card-text { padding: 12px 14px; }
.news-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.news-card-text h4 { font-size: 14px; font-weight: 700; color: var(--text-dark); margin: 4px 0; }
.news-card-text p { font-size: 12px; color: #888; }

/* Exchange Rates */
.exchange-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}
.exchange-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.exchange-item:last-child { border-bottom: none; }
.exchange-flag { font-size: 24px; }
.exchange-info { flex: 1; }
.exchange-name { font-size: 15px; font-weight: 600; color: var(--text-dark); display: block; }
.exchange-rate { font-size: 13px; color: #888; }
.exchange-change { font-size: 13px; font-weight: 700; }
.exchange-change.positive { color: #4CAF50; }
.exchange-change.negative { color: #FF3B30; }

/* AI Card */
.ai-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    cursor: pointer;
    transition: all 0.4s ease;
}
.ai-card:hover { transform: translateY(-4px); }
.ai-card-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0.9;
}
.ai-card-content {
    position: relative;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.ai-card-icon {
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ai-card-icon svg { width: 24px; height: 24px; color: white; }
.ai-card-text { flex: 1; }
.ai-card-text h4 { font-size: 16px; font-weight: 700; color: white; }
.ai-card-text p { font-size: 13px; color: rgba(255,255,255,0.7); }
.ai-card-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.ai-card-btn:hover { background: rgba(255,255,255,0.3); transform: scale(1.1); }
.ai-card-btn svg { width: 20px; height: 20px; color: white; }

.bottom-spacer { height: 40px; }

/* ============ Screen Header ============ */
.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.back-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: none;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.back-btn:hover { transform: translateX(-2px); }
.back-btn svg { width: 22px; height: 22px; color: var(--text-dark); }
.screen-header h2 { font-size: 20px; font-weight: 800; color: var(--text-dark); }

/* ============ Transfer Screen ============ */
.transfer-methods {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}
.transfer-method {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: white;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    color: #888;
}
.transfer-method svg { width: 22px; height: 22px; }
.transfer-method.active {
    border-color: var(--brand-primary);
    background: var(--brand-soft);
    color: var(--brand-primary);
}
.transfer-method:hover { transform: translateY(-2px); }
.transfer-form { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.transfer-summary {
    background: white;
    border-radius: var(--radius-sm);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}
.summary-row.total {
    border-top: 1px solid #eee;
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 16px;
}
.recent-transfers { display: flex; flex-direction: column; gap: 8px; }
.transfer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.transfer-item:hover { transform: translateX(4px); }
.transfer-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}
.transfer-info { flex: 1; }
.transfer-name { font-size: 14px; font-weight: 600; color: var(--text-dark); display: block; }
.transfer-date { font-size: 12px; color: #999; }
.transfer-amount { font-size: 14px; font-weight: 700; }
.transfer-amount.negative { color: #FF3B30; }

/* ============ Success Modal ============ */
.modal {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 500;
    align-items: center;
    justify-content: center;
}
.modal.active { display: flex; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
}
.modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    width: 85%;
    text-align: center;
    animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn {
    from { transform: scale(0.8) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
.success-animation { margin-bottom: 20px; }
.success-circle {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: successPop 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.success-circle svg { width: 36px; height: 36px; }
.success-modal h3 { font-size: 22px; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.success-amount { font-size: 28px; font-weight: 800; color: var(--brand-primary); margin-bottom: 4px; }
.success-desc { font-size: 14px; color: #888; margin-bottom: 20px; }
.success-details {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 20px;
}
.success-detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
}
.success-detail span:first-child { color: #888; }
.success-detail span:last-child { font-weight: 600; color: var(--text-dark); }

/* ============ Utilities Screen ============ */
.utilities-balance {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.util-balance-label { font-size: 13px; color: #888; }
.util-balance-amount { font-size: 22px; font-weight: 800; color: var(--text-dark); }
.utilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.utility-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    font-family: inherit;
}
.utility-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.util-icon { font-size: 32px; width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.util-name { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.util-debt { font-size: 11px; color: #4CAF50; font-weight: 500; }
.util-debt.debt-owed { color: #FF3B30; }

/* ============ Mortgage Screen ============ */
.mortgage-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: white;
    padding: 4px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.mortgage-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}
.mortgage-tab.active {
    background: var(--brand-primary);
    color: white;
}
.property-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.property-image {
    height: 180px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
}
.property-badge {
    align-self: flex-start;
    padding: 6px 14px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: white;
}
.property-actions-top {
    display: flex;
    gap: 8px;
    align-self: flex-end;
}
.property-action-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
}
.property-action-btn svg { width: 16px; height: 16px; }

/* ============ Calculator Screen ============ */
.calculator-screen { background: var(--bg-light); }
.calc-card {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}
.calc-card-bg {
    position: absolute;
    top: -50%; right: -50%;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}
.calc-card-content { position: relative; z-index: 1; }
.calc-result { margin-bottom: 16px; }
.calc-result-label { font-size: 13px; color: rgba(255,255,255,0.7); display: block; margin-bottom: 4px; }
.calc-result-value { font-size: 28px; font-weight: 800; color: white; }
.calc-result-row { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; color: rgba(255,255,255,0.8); }
.calc-form { background: white; border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; }
.calc-group { margin-bottom: 20px; }
.calc-group label { font-size: 13px; font-weight: 600; color: var(--text-dark); display: block; margin-bottom: 8px; }
.calc-input-wrap { display: flex; align-items: center; gap: 12px; }
.calc-input-wrap input[type="range"] { flex: 1; -webkit-appearance: none; height: 6px; border-radius: 3px; background: var(--brand-soft); outline: none; }
.calc-input-wrap input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-primary); cursor: pointer; box-shadow: 0 2px 8px rgba(5,80,206,0.3); }
.calc-value { font-size: 14px; font-weight: 700; color: var(--brand-primary); min-width: 100px; text-align: right; }
.calc-breakdown { background: white; border-radius: var(--radius-lg); padding: 20px; }
.calc-breakdown h4 { font-size: 15px; font-weight: 700; margin-bottom: 16px; color: var(--text-dark); }
.breakdown-item { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.breakdown-item span:first-child { font-size: 13px; color: var(--text-dark); min-width: 70px; }
.breakdown-item span:last-child { font-size: 13px; font-weight: 600; color: var(--text-dark); min-width: 40px; text-align: right; }
.breakdown-bar { flex: 1; height: 8px; background: #E8ECF4; border-radius: 4px; overflow: hidden; }
.breakdown-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease; }

/* ============ Credit History Screen ============ */
.credit-screen { background: var(--bg-light); }
.credit-gauge-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.gauge-container { position: relative; width: 200px; height: 200px; margin-bottom: 20px; }
.gauge-svg { width: 200px; height: 200px; transform: rotate(0deg); }
.gauge-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.gauge-score { font-size: 36px; font-weight: 800; color: var(--brand-primary); display: block; }
.gauge-label { font-size: 14px; color: #666; font-weight: 500; }
.credit-stats { display: flex; gap: 16px; width: 100%; }
.credit-stat { flex: 1; text-align: center; padding: 12px; background: var(--bg-light); border-radius: var(--radius-md); }
.stat-value { font-size: 20px; font-weight: 800; color: var(--text-dark); display: block; }
.stat-label { font-size: 11px; color: #888; margin-top: 4px; display: block; }
.credit-timeline { padding: 0; }
.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #E8ECF4;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}
.timeline-dot.paid { background: #4CAF50; }
.timeline-dot.late { background: #FF6B6B; }
.timeline-content { flex: 1; }
.timeline-title { font-size: 14px; font-weight: 600; color: var(--text-dark); display: block; }
.timeline-desc { font-size: 12px; color: #888; }
.timeline-amount { font-size: 13px; font-weight: 700; color: #FF6B6B; }
.credit-tips {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #E8F4FD, #D1E1FC);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 16px;
}
.tip-icon { width: 40px; height: 40px; background: var(--brand-primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tip-icon svg { width: 20px; height: 20px; color: white; }
.tip-text h4 { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.tip-text p { font-size: 12px; color: #555; }

/* ============ Chart Card ============ */
.chart-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}
.chart-container { margin-bottom: 8px; }
.chart-labels { display: flex; justify-content: space-between; padding: 0 10px; }
.chart-labels span { font-size: 12px; color: #888; font-weight: 500; }

/* ============ AI Assistant Screen ============ */
.ai-screen { background: var(--bg-light); display: flex; flex-direction: column; }
.chat-container { flex: 1; overflow-y: auto; padding: 16px 0; display: flex; flex-direction: column; gap: 16px; }
.chat-container::-webkit-scrollbar { display: none; }
.chat-message { display: flex; gap: 10px; max-width: 85%; }
.chat-message.ai { align-self: flex-start; }
.chat-message.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-avatar {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.chat-avatar svg { width: 18px; height: 18px; color: white; }
.chat-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}
.chat-message.ai .chat-bubble {
    background: white;
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
}
.chat-message.user .chat-bubble {
    background: var(--brand-primary);
    color: white;
    border-bottom-right-radius: 4px;
}
.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
}
.suggestion-chip {
    padding: 8px 16px;
    background: white;
    border: 1px solid #E8ECF4;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}
.suggestion-chip:hover { background: var(--brand-soft); border-color: var(--brand-primary); color: var(--brand-primary); }
.chat-input-bar {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    background: var(--bg-light);
    position: sticky;
    bottom: 0;
}
.chat-input-wrap { flex: 1; background: white; border-radius: 24px; padding: 0 16px; display: flex; align-items: center; border: 1px solid #E8ECF4; }
.chat-input-wrap input { flex: 1; border: none; outline: none; font-size: 14px; padding: 12px 0; background: transparent; font-family: 'Inter', sans-serif; }
.chat-send-btn {
    width: 48px; height: 48px;
    background: var(--brand-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(5,80,206,0.3);
}
.chat-send-btn svg { width: 20px; height: 20px; color: white; }

/* ============ Profile Screen ============ */
.profile-screen { background: var(--bg-light); }
.profile-header {
    text-align: center;
    padding: 20px;
    position: relative;
    margin-bottom: 20px;
}
.profile-cover {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary), var(--brand-accent));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.profile-avatar { position: relative; z-index: 1; margin-bottom: 12px; }
.avatar-circle {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
}
.avatar-circle span { font-size: 32px; font-weight: 800; color: white; }
.profile-name { font-size: 22px; font-weight: 800; color: var(--text-dark); position: relative; z-index: 1; }
.profile-phone { font-size: 14px; color: #888; position: relative; z-index: 1; }
.profile-badge {
    display: inline-block;
    padding: 4px 14px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}
.profile-menu { display: flex; flex-direction: column; gap: 8px; }
.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: all 0.2s ease;
}
.profile-menu-item:hover { transform: translateX(4px); }
.profile-menu-item.logout { margin-top: 8px; }
.pmi-icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pmi-icon svg { width: 22px; height: 22px; }
.pmi-text { flex: 1; }
.pmi-text span:first-child { font-size: 15px; font-weight: 600; color: var(--text-dark); display: block; }
.pmi-sub { font-size: 12px; color: #888; }
.profile-menu-item > svg:last-child { width: 18px; height: 18px; color: #999; }
.toggle-switch { position: relative; width: 48px; height: 28px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #ccc;
    border-radius: 28px;
    transition: 0.3s;
}
.toggle-slider:before {
    content: "";
    position: absolute;
    height: 22px; width: 22px;
    left: 3px; bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--brand-primary); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); }

/* ============ QR Payments Screen ============ */
.qr-screen { background: var(--bg-light); }
.qr-tabs { display: flex; background: white; border-radius: var(--radius-md); padding: 4px; margin-bottom: 20px; }
.qr-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
}
.qr-tab.active { background: var(--brand-primary); color: white; box-shadow: 0 4px 12px rgba(5,80,206,0.3); }
.qr-scanner-frame {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 20px;
    border-radius: 24px;
    overflow: hidden;
    background: #1B1B1B;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scanner-corner {
    position: absolute;
    width: 30px; height: 30px;
    border-color: var(--brand-primary);
    border-style: solid;
    z-index: 2;
}
.scanner-corner.tl { top: 12px; left: 12px; border-width: 3px 0 0 3px; border-radius: 8px 0 0 0; }
.scanner-corner.tr { top: 12px; right: 12px; border-width: 3px 3px 0 0; border-radius: 0 8px 0 0; }
.scanner-corner.bl { bottom: 12px; left: 12px; border-width: 0 0 3px 3px; border-radius: 0 0 0 8px; }
.scanner-corner.br { bottom: 12px; right: 12px; border-width: 0 3px 3px 0; border-radius: 0 0 8px 0; }
.scanner-line {
    position: absolute;
    width: 80%;
    height: 2px;
    background: var(--brand-primary);
    top: 20%;
    left: 10%;
    animation: scanLine 2s ease-in-out infinite;
    box-shadow: 0 0 12px var(--brand-primary);
    z-index: 1;
}
@keyframes scanLine {
    0%, 100% { top: 20%; }
    50% { top: 75%; }
}
.scanner-placeholder { text-align: center; color: rgba(255,255,255,0.5); z-index: 1; }
.scanner-placeholder svg { width: 48px; height: 48px; margin-bottom: 12px; }
.scanner-placeholder p { font-size: 14px; }
.qr-code-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.qr-code-bg {
    position: absolute;
    top: -50%; right: -50%;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(5,80,206,0.05) 0%, transparent 70%);
}
.qr-code-svg { position: relative; z-index: 1; margin-bottom: 16px; }
.qr-amount-label { font-size: 14px; color: #888; position: relative; z-index: 1; }
.qr-account { font-size: 16px; font-weight: 700; color: var(--text-dark); position: relative; z-index: 1; }
.qr-actions { display: flex; gap: 12px; }
.btn-secondary {
    padding: 14px 24px;
    background: white;
    border: 1px solid #E8ECF4;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}
.btn-secondary:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

/* ============ Marketplace Screen ============ */
.marketplace-screen { background: var(--bg-light); }
.marketplace-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border-radius: var(--radius-md);
    padding: 0 16px;
    margin-bottom: 16px;
    border: 1px solid #E8ECF4;
}
.marketplace-search svg { width: 20px; height: 20px; color: #999; flex-shrink: 0; }
.marketplace-search input { flex: 1; border: none; outline: none; padding: 14px 0; font-size: 14px; background: transparent; font-family: 'Inter', sans-serif; }
.marketplace-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 16px;
    margin-bottom: 16px;
}
.marketplace-categories::-webkit-scrollbar { display: none; }
.mcat {
    padding: 8px 18px;
    background: white;
    border: 1px solid #E8ECF4;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.mcat.active { background: var(--brand-primary); color: white; border-color: var(--brand-primary); }
.marketplace-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.market-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.mcard-img {
    height: 120px;
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 10px;
}
.mcard-badge {
    padding: 4px 10px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    align-self: flex-start;
}
.mcard-fav {
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
}
.mcard-fav svg { width: 16px; height: 16px; }
.mcard-info { padding: 12px; }
.mcard-info h4 { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 2px; }
.mcard-info p { font-size: 11px; color: #888; margin-bottom: 8px; }
.mcard-footer { display: flex; justify-content: space-between; align-items: center; }
.mcard-price { font-size: 15px; font-weight: 800; color: var(--brand-primary); }
.mcard-btn {
    padding: 6px 14px;
    background: var(--brand-soft);
    border: none;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-primary);
    cursor: pointer;
}

/* ============ Bottom Navigation ============ */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    height: 72px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
    padding-bottom: 8px;
    z-index: 50;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 12px;
    position: relative;
    transition: all 0.3s ease;
}
.nav-item svg { width: 24px; height: 24px; color: #999; transition: all 0.3s ease; }
.nav-item span { font-size: 10px; font-weight: 500; color: #999; transition: all 0.3s ease; }
.nav-item.active svg { color: var(--brand-primary); }
.nav-item.active span { color: var(--brand-primary); font-weight: 700; }
.nav-item.active::before {
    content: '';
    position: absolute;
    top: -1px;
    width: 24px;
    height: 3px;
    background: var(--brand-primary);
    border-radius: 0 0 3px 3px;
}

/* ============ Bottom Spacer ============ */
.bottom-spacer { height: 80px; }

/* ============ Dark Mode ============ */
body.dark-mode .phone-frame { box-shadow: 0 0 0 2px #555, 0 0 0 4px #777, 0 30px 80px rgba(0,0,0,0.8); }
body.dark-mode .status-bar { background: #1a1a2e; }
body.dark-mode .status-time { color: white; }
body.dark-mode .status-icon { color: white; }
body.dark-mode .app-container { background: #1a1a2e; }
body.dark-mode .screen { background: #1a1a2e; }
body.dark-mode .home-header .greeting-text { color: rgba(255,255,255,0.6); }
body.dark-mode .home-header .user-name { color: white; }
body.dark-mode .section-header h3 { color: white; }
body.dark-mode .see-all { color: var(--brand-light); }
body.dark-mode .quick-action { background: #2a2a4e; }
body.dark-mode .quick-action span { color: white; }
body.dark-mode .exchange-card { background: #2a2a4e; }
body.dark-mode .exchange-name { color: white; }
body.dark-mode .exchange-rate { color: rgba(255,255,255,0.7); }
body.dark-mode .news-card { background: #2a2a4e; }
body.dark-mode .news-card-text h4 { color: white; }
body.dark-mode .news-card-text p { color: rgba(255,255,255,0.6); }
body.dark-mode .transfer-form { background: #2a2a4e; }
body.dark-mode .input-group label { color: rgba(255,255,255,0.7); }
body.dark-mode .input-wrapper { background: #3a3a5e; border-color: #4a4a6e; }
body.dark-mode .input-wrapper input { color: white; }
body.dark-mode .input-prefix { color: rgba(255,255,255,0.5); }
body.dark-mode .transfer-summary { background: #2a2a4e; }
body.dark-mode .summary-row span { color: rgba(255,255,255,0.7); }
body.dark-mode .transfer-item { background: #2a2a4e; }
body.dark-mode .transfer-name { color: white; }
body.dark-mode .transfer-date { color: rgba(255,255,255,0.5); }
body.dark-mode .recent-transfers { background: transparent; }
body.dark-mode .section { background: transparent; }
body.dark-mode .bottom-nav { background: rgba(26,26,46,0.95); border-top-color: rgba(255,255,255,0.05); }
body.dark-mode .calc-form { background: #2a2a4e; }
body.dark-mode .calc-group label { color: white; }
body.dark-mode .calc-breakdown { background: #2a2a4e; }
body.dark-mode .calc-breakdown h4 { color: white; }
body.dark-mode .breakdown-item span { color: rgba(255,255,255,0.8); }
body.dark-mode .credit-gauge-card { background: #2a2a4e; }
body.dark-mode .credit-stat { background: #3a3a5e; }
body.dark-mode .stat-value { color: white; }
body.dark-mode .credit-tips { background: linear-gradient(135deg, #1a2a4e, #2a3a5e); }
body.dark-mode .tip-text h4 { color: white; }
body.dark-mode .tip-text p { color: rgba(255,255,255,0.7); }
body.dark-mode .chat-bubble { background: #2a2a4e; color: white; }
body.dark-mode .chat-input-wrap { background: #2a2a4e; border-color: #4a4a6e; }
body.dark-mode .chat-input-wrap input { color: white; }
body.dark-mode .suggestion-chip { background: #2a2a4e; border-color: #4a4a6e; color: white; }
body.dark-mode .profile-menu-item { background: #2a2a4e; }
body.dark-mode .pmi-text span:first-child { color: white; }
body.dark-mode .profile-name { color: white; }
body.dark-mode .qr-code-display { background: #2a2a4e; }
body.dark-mode .qr-account { color: white; }
body.dark-mode .market-card { background: #2a2a4e; }
body.dark-mode .mcard-info h4 { color: white; }
body.dark-mode .marketplace-search { background: #2a2a4e; border-color: #4a4a6e; }
body.dark-mode .marketplace-search input { color: white; }
body.dark-mode .mcat { background: #2a2a4e; border-color: #4a4a6e; color: rgba(255,255,255,0.7); }
body.dark-mode .btn-secondary { background: #2a2a4e; border-color: #4a4a6e; color: white; }
body.dark-mode .utilities-balance { background: #2a2a4e; }
body.dark-mode .util-balance-amount { color: white; }
body.dark-mode .utility-card { background: #2a2a4e; }
body.dark-mode .util-name { color: white; }
body.dark-mode .profile-phone { color: rgba(255,255,255,0.6); }
body.dark-mode .modal-content { background: #2a2a4e; }
body.dark-mode .success-detail span { color: rgba(255,255,255,0.7); }
body.dark-mode .success-detail span:last-child { color: white; }
body.dark-mode .success-modal h3 { color: white; }
body.dark-mode .success-desc { color: rgba(255,255,255,0.6); }
body.dark-mode .mortgage-tabs { background: #2a2a4e; }
body.dark-mode .mortgage-tab { color: rgba(255,255,255,0.5); }
body.dark-mode .property-card { background: #2a2a4e; }
body.dark-mode .property-info h4 { color: white; }
body.dark-mode .property-location { color: rgba(255,255,255,0.6); }
body.dark-mode .property-details span { color: rgba(255,255,255,0.7); }
body.dark-mode .property-price .price-amount { color: white; }
body.dark-mode .property-price .price-month { color: rgba(255,255,255,0.6); }
body.dark-mode .qr-tabs { background: #2a2a4e; }
body.dark-mode .marketplace-categories { background: transparent; }
body.dark-mode .credit-timeline { background: transparent; }
body.dark-mode .timeline-title { color: white; }
body.dark-mode .timeline-desc { color: rgba(255,255,255,0.5); }
body.dark-mode .breakdown-bar { background: #4a4a6e; }

/* ============ Responsive ============ */
@media (max-width: 420px) {
    .phone-frame { width: 100%; height: 100vh; border-radius: 0; box-shadow: none; }
    .status-bar { padding: 0 16px; }
    .screen { padding: 16px; }
    .quick-actions-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .quick-action { padding: 12px 8px; }
    .quick-action span { font-size: 10px; }
    .marketplace-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
.btn-loader { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; vertical-align: middle; margin-left: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
