/* K Payment - Indian Tricolor Theme */
:root {
    /* Indian Tricolor */
    --saffron: #FF9933;
    --white: #FFFFFF;
    --green: #138808;
    --navy-blue: #000080;
    
    /* Extended Palette */
    --saffron-light: #FFB366;
    --saffron-dark: #E67E00;
    --green-light: #1AB01A;
    --green-dark: #0D660D;
    
    /* Neutrals */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Semantic Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
    
    /* Gradients */
    --gradient-saffron: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-light) 100%);
    --gradient-green: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
    --gradient-tricolor: linear-gradient(180deg, var(--saffron) 0%, var(--saffron) 33%, var(--white) 33%, var(--white) 66%, var(--green) 66%, var(--green) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Typography */
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-primary: var(--gray-900);
    --bg-secondary: var(--gray-800);
    --bg-tertiary: var(--gray-700);
    --text-primary: var(--white);
    --text-secondary: var(--gray-300);
    --text-tertiary: var(--gray-400);
    --border-color: var(--gray-700);
}

[data-theme="light"] {
    --bg-primary: var(--white);
    --bg-secondary: var(--gray-50);
    --bg-tertiary: var(--gray-100);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-tertiary: var(--gray-500);
    --border-color: var(--gray-200);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

#app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

/* Screen Management */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-primary);
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.screen.active {
    transform: translateX(0);
    z-index: 20;
}

.screen-content {
    flex: 1;
    padding: var(--space-4);
    padding-bottom: calc(var(--space-4) + 80px);
}

/* Splash Screen */
#splash-screen {
    background: var(--gradient-tricolor);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.splash-content {
    text-align: center;
    padding: var(--space-8);
}

.logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-6);
}

.logo {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.logo-k {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--saffron) 0%, var(--navy-blue) 50%, var(--green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-payment-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: var(--navy-blue);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-payment-icon svg {
    width: 16px;
    height: 16px;
    color: var(--white);
}

.tricolor-stripe {
    position: absolute;
    left: -10px;
    right: -10px;
    height: 8px;
    border-radius: var(--radius-full);
    opacity: 0.6;
}

.tricolor-stripe.saffron {
    background: var(--saffron);
    top: -15px;
}

.tricolor-stripe.white {
    background: var(--white);
    top: 50%;
    transform: translateY(-50%);
}

.tricolor-stripe.green {
    background: var(--green);
    bottom: -15px;
}

.app-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: var(--space-2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tagline {
    font-size: 1rem;
    color: var(--navy-blue);
    opacity: 0.8;
    margin-bottom: var(--space-8);
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    margin: 0 auto;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    width: 0;
    background: var(--navy-blue);
    border-radius: var(--radius-full);
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Screen Headers */
.screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    padding-top: calc(var(--space-4) + env(safe-area-inset-top));
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 30;
}

.back-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.back-btn:hover {
    background: var(--gray-200);
}

.back-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}

.back-btn.light {
    background: rgba(255, 255, 255, 0.2);
}

.back-btn.light svg {
    color: var(--white);
}

.screen-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.placeholder {
    width: 40px;
}

/* Login Screen */
#login-screen .screen-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 80px);
}

.logo-small {
    width: 48px;
    height: 48px;
    background: var(--gradient-tricolor);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-small .logo-k {
    font-size: 1.5rem;
    color: var(--white);
    -webkit-text-fill-color: var(--white);
}

.input-group {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.country-code {
    padding: var(--space-4) var(--space-5);
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.input-field {
    flex: 1;
    padding: var(--space-4);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: var(--saffron);
}

.login-options {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.btn-secondary {
    flex: 1;
    padding: var(--space-4);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--saffron);
    background: var(--gray-50);
}

.btn-secondary svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    width: 100%;
    padding: var(--space-4);
    background: var(--gradient-saffron);
    border: none;
    border-radius: var(--radius-lg);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-md);
}

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

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

.btn-large {
    padding: var(--space-5);
    font-size: 1.125rem;
}

.btn-small {
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
}

.terms-text {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: var(--space-6);
}

/* OTP Screen */
.otp-inputs {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    margin-bottom: var(--space-6);
}

.otp-digit {
    width: 50px;
    height: 60px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s;
}

.otp-digit:focus {
    outline: none;
    border-color: var(--saffron);
    background: var(--gray-50);
}

.otp-timer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
}

#timer-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.resend-btn {
    background: none;
    border: none;
    color: var(--saffron);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
}

.resend-btn:disabled {
    color: var(--gray-400);
    cursor: not-allowed;
}

/* PIN Screen */
.pin-dots {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    margin-bottom: var(--space-8);
}

.pin-dot {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    transition: all 0.2s;
}

.pin-dot.filled {
    background: var(--saffron);
    border-color: var(--saffron);
}

.pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    max-width: 280px;
    margin: 0 auto;
}

.pin-key {
    aspect-ratio: 1;
    border: none;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-key:hover {
    background: var(--gray-200);
}

.pin-key:active {
    transform: scale(0.95);
}

.pin-key-empty {
    background: transparent;
    cursor: default;
}

.pin-key-back {
    background: var(--gray-200);
}

.pin-key-back svg {
    width: 24px;
    height: 24px;
}

/* Face Scan Screen */
.face-scan-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.face-scan-container {
    margin: var(--space-8) 0;
}

.face-scan-frame {
    width: 240px;
    height: 240px;
    border: 3px solid var(--saffron);
    border-radius: var(--radius-2xl);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 4px solid var(--saffron);
}

.corner-tl {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: var(--radius-lg);
}

.corner-tr {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
    border-top-right-radius: var(--radius-lg);
}

.corner-bl {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
    border-bottom-left-radius: var(--radius-lg);
}

.corner-br {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: var(--radius-lg);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--saffron);
    box-shadow: 0 0 10px var(--saffron);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.face-placeholder {
    width: 100px;
    height: 100px;
    color: var(--gray-300);
}

.face-placeholder svg {
    width: 100%;
    height: 100%;
}

.scan-status {
    text-align: center;
    margin-top: var(--space-4);
    color: var(--saffron);
    font-weight: 500;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    padding-top: calc(var(--space-4) + env(safe-area-inset-top));
    background: var(--gradient-saffron);
    color: var(--white);
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--saffron);
    cursor: pointer;
}

.user-details h3 {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 400;
}

.user-details h2 {
    font-size: 1.125rem;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: var(--space-2);
}

.icon-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.icon-btn svg {
    width: 22px;
    height: 22px;
    color: var(--white);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--error);
    border-radius: var(--radius-full);
    font-size: 0.625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-content {
    padding: var(--space-4);
    padding-bottom: 100px;
}

/* Balance Card */
.balance-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-top: calc(-1 * var(--space-6));
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
}

.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}

.balance-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.eye-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.eye-btn svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.balance-amount {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.currency {
    font-size: 1.5rem;
    margin-right: var(--space-1);
}

.upi-id {
    font-size: 0.875rem;
    color: var(--saffron);
    font-weight: 500;
    margin-bottom: var(--space-4);
}

.balance-actions {
    display: flex;
    gap: var(--space-3);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-color);
}

.balance-action-btn {
    flex: 1;
    padding: var(--space-3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    cursor: pointer;
    transition: all 0.2s;
}

.balance-action-btn:hover {
    border-color: var(--saffron);
    background: var(--gray-50);
}

.balance-action-btn svg {
    width: 18px;
    height: 18px;
}

/* Quick Actions */
.quick-actions {
    margin-top: var(--space-6);
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}

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

.action-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.action-icon.send {
    background: var(--gradient-saffron);
}

.action-icon.receive {
    background: var(--gradient-green);
}

.action-icon.scan {
    background: linear-gradient(135deg, var(--navy-blue) 0%, #1a1a6c 100%);
}

.action-icon.qr {
    background: linear-gradient(135deg, var(--info) 0%, #2563EB 100%);
}

.action-btn span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.stat-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.spent {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.stat-icon.received {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-icon svg {
    width: 22px;
    height: 22px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Recent Transactions */
.recent-transactions {
    margin-top: var(--space-6);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.view-all-btn {
    background: none;
    border: none;
    color: var(--saffron);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
}

.transaction-item:hover {
    background: var(--bg-tertiary);
}

.transaction-avatar {
    width: 44px;
    height: 44px;
    background: var(--gradient-saffron);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--white);
    font-size: 0.875rem;
}

.transaction-avatar.received {
    background: var(--gradient-green);
}

.transaction-info {
    flex: 1;
}

.transaction-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.transaction-meta {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.transaction-amount {
    text-align: right;
}

.transaction-amount .amount {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.875rem;
}

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

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

.transaction-amount .status {
    font-size: 0.625rem;
    color: var(--text-tertiary);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    padding: var(--space-2) var(--space-4);
    padding-bottom: calc(var(--space-2) + env(safe-area-inset-bottom));
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    z-index: 50;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn svg {
    width: 24px;
    height: 24px;
}

.nav-btn span {
    font-size: 0.625rem;
    font-weight: 500;
}

.nav-btn.active {
    color: var(--saffron);
}

/* Send Money Screen */
.recipient-section {
    margin-bottom: var(--space-6);
}

.input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.recipient-input-group {
    display: flex;
    gap: var(--space-2);
}

.recipient-input-group .input-field {
    flex: 1;
}

.contact-btn {
    width: 52px;
    height: 52px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.contact-btn:hover {
    border-color: var(--saffron);
}

.contact-btn svg {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
}

.quick-contacts {
    margin-bottom: var(--space-6);
}

.subsection-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

.contacts-scroll {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    padding-bottom: var(--space-2);
}

.contact-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    min-width: 70px;
    cursor: pointer;
    transition: all 0.2s;
}

.contact-chip:hover {
    border-color: var(--saffron);
    background: var(--gray-50);
}

.contact-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-saffron);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--white);
    font-size: 0.875rem;
}

.contact-chip span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.amount-section {
    margin-bottom: var(--space-6);
}

.amount-input-container {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.currency-symbol {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.amount-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.amount-input:focus {
    outline: none;
}

.amount-input::placeholder {
    color: var(--gray-300);
}

.quick-amounts {
    display: flex;
    gap: var(--space-2);
}

.quick-amount {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-amount:hover {
    border-color: var(--saffron);
    color: var(--saffron);
}

.remark-section {
    margin-bottom: var(--space-6);
}

/* Receive Money Screen */
.qr-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-6);
}

.qr-header {
    margin-bottom: var(--space-4);
}

.qr-user {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.qr-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-saffron);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--white);
    font-size: 1.125rem;
}

.qr-user-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.qr-user-info span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-code {
    width: 200px;
    height: 200px;
    background: var(--white);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
}

.qr-pattern {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qr-row {
    display: flex;
    gap: 2px;
    flex: 1;
}

.qr-cell {
    flex: 1;
    border-radius: 1px;
}

.qr-cell.filled {
    background: var(--gray-900);
}

.qr-hint {
    margin-top: var(--space-4);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.receive-actions {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.receive-actions .btn-secondary {
    flex: 1;
}

.payment-link-section {
    margin-top: var(--space-6);
}

.payment-link-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.link-info {
    display: flex;
    flex-direction: column;
}

.link-label {
    font-weight: 600;
    color: var(--text-primary);
}

.link-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Scan QR Screen */
#scan-qr-screen {
    background: var(--gray-900);
}

.scan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    padding-top: calc(var(--space-4) + env(safe-area-inset-top));
    color: var(--white);
}

.scan-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
}

.flash-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.flash-btn svg {
    width: 22px;
    height: 22px;
    color: var(--white);
}

.scan-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.camera-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.scan-frame {
    width: 280px;
    height: 280px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    position: relative;
}

.scan-frame .corner {
    border-color: var(--saffron);
    width: 40px;
    height: 40px;
}

.scan-frame .scan-line {
    background: var(--saffron);
    box-shadow: 0 0 20px var(--saffron);
}

.scan-instruction {
    margin-top: var(--space-6);
    color: var(--white);
    font-size: 0.875rem;
    opacity: 0.8;
}

.scan-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    padding: var(--space-6);
}

.scan-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
}

.scan-action-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scan-action-icon svg {
    width: 24px;
    height: 24px;
}

.scan-action span {
    font-size: 0.75rem;
}

/* Transaction History Screen */
.filter-tabs {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    overflow-x: auto;
    padding-bottom: var(--space-2);
}

.filter-tab {
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-tab.active {
    background: var(--saffron);
    border-color: var(--saffron);
    color: var(--white);
}

.transaction-list-full {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.export-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4);
    padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.export-bar .btn-secondary {
    flex: 1;
}

/* Bank Accounts Screen */
.bank-accounts-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.bank-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    border: 2px solid transparent;
    transition: all 0.2s;
}

.bank-card.primary {
    border-color: var(--saffron);
}

.bank-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.bank-logo {
    width: 48px;
    height: 48px;
    background: var(--gradient-saffron);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--white);
    font-size: 0.75rem;
}

.primary-badge {
    padding: var(--space-1) var(--space-3);
    background: rgba(255, 153, 51, 0.1);
    color: var(--saffron);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.bank-details {
    margin-bottom: var(--space-4);
}

.bank-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.account-number {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.account-balance {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.bank-actions {
    display: flex;
    gap: var(--space-3);
}

.bank-action-btn {
    flex: 1;
    padding: var(--space-3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.bank-action-btn:hover {
    border-color: var(--saffron);
    color: var(--saffron);
}

.add-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--saffron);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.add-btn svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

/* Rewards Screen */
.rewards-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.reward-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.reward-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.reward-card.cashback .reward-icon {
    background: rgba(255, 153, 51, 0.1);
    color: var(--saffron);
}

.reward-card.points .reward-icon {
    background: rgba(19, 136, 8, 0.1);
    color: var(--green);
}

.reward-icon svg {
    width: 24px;
    height: 24px;
}

.reward-info {
    display: flex;
    flex-direction: column;
}

.reward-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.reward-value {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.referral-section {
    margin-bottom: var(--space-6);
}

.referral-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-light) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    color: var(--white);
}

.referral-content h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.referral-content p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: var(--space-3);
}

.referral-code {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(255, 255, 255, 0.2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
}

.referral-code span {
    font-family: monospace;
    font-weight: 600;
    font-size: 0.875rem;
}

.copy-btn {
    padding: var(--space-1) var(--space-2);
    border: none;
    background: var(--white);
    color: var(--saffron);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.referral-illustration {
    width: 80px;
    height: 80px;
    opacity: 0.3;
}

.referral-illustration svg {
    width: 100%;
    height: 100%;
}

.achievements-section {
    margin-top: var(--space-6);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
}

.achievement {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    opacity: 0.5;
}

.achievement.unlocked {
    opacity: 1;
    background: var(--bg-secondary);
}

.achievement-icon {
    font-size: 1.5rem;
}

.achievement span {
    font-size: 0.625rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Notifications Screen */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.notification-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
}

.notification-item:hover {
    background: var(--bg-tertiary);
}

.notification-item.unread {
    border-left: 3px solid var(--saffron);
}

.notification-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.notification-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.notification-icon.info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.notification-icon svg {
    width: 22px;
    height: 22px;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    margin-bottom: var(--space-1);
}

.notification-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-1);
}

.notification-time {
    font-size: 0.625rem;
    color: var(--text-tertiary);
}

.clear-btn {
    background: none;
    border: none;
    color: var(--saffron);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

/* Chatbot Screen */
#chatbot-screen {
    background: var(--bg-secondary);
}

.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    padding-top: calc(var(--space-4) + env(safe-area-inset-top));
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.chatbot-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.chatbot-avatar {
    width: 44px;
    height: 44px;
    background: var(--gradient-saffron);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--white);
    font-size: 1.125rem;
}

.chatbot-details h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.status {
    font-size: 0.75rem;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: var(--radius-full);
}

.chatbot-messages {
    flex: 1;
    padding: var(--space-4);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.message {
    max-width: 80%;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    line-height: 1.5;
}

.message.bot {
    align-self: flex-start;
    background: var(--bg-primary);
    color: var(--text-primary);
    border-bottom-left-radius: var(--space-1);
}

.message.user {
    align-self: flex-end;
    background: var(--saffron);
    color: var(--white);
    border-bottom-right-radius: var(--space-1);
}

.suggested-questions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.suggested-q {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.suggested-q:hover {
    border-color: var(--saffron);
    color: var(--saffron);
}

.chatbot-input {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.chatbot-input input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.chatbot-input input:focus {
    outline: none;
    border-color: var(--saffron);
}

.send-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--saffron);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.send-btn svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

/* Security Screen */
.security-status {
    text-align: center;
    padding: var(--space-8) var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
}

.security-icon {
    font-size: 3rem;
    margin-bottom: var(--space-3);
}

.security-status h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.security-status p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.security-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.security-option {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.security-option:hover {
    background: var(--bg-tertiary);
}

.option-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-icon svg {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
}

.option-info {
    flex: 1;
    text-align: left;
}

.option-title {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.option-status {
    display: block;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.option-status.enabled {
    color: var(--success);
}

.chevron {
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
}

/* Admin Dashboard */
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    padding-top: calc(var(--space-4) + env(safe-area-inset-top));
    background: var(--navy-blue);
    color: var(--white);
}

.admin-info h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.admin-info span {
    font-size: 0.875rem;
    opacity: 0.8;
}

.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.analytics-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.analytics-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.analytics-icon.users {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.analytics-icon.transactions {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.analytics-icon.volume {
    background: rgba(255, 153, 51, 0.1);
    color: var(--saffron);
}

.analytics-icon.active {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.analytics-icon svg {
    width: 22px;
    height: 22px;
}

.analytics-info {
    display: flex;
    flex-direction: column;
}

.analytics-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.analytics-value {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.analytics-change {
    font-size: 0.625rem;
    font-weight: 600;
}

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

.admin-section {
    margin-bottom: var(--space-6);
}

.admin-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
}

.admin-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-action:hover {
    background: var(--bg-tertiary);
}

.admin-action svg {
    width: 24px;
    height: 24px;
    color: var(--saffron);
}

.admin-action span {
    font-size: 0.625rem;
    color: var(--text-secondary);
}

.admin-activity-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

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

.activity-icon.transaction {
    background: rgba(255, 153, 51, 0.1);
    color: var(--saffron);
}

.activity-icon.alert {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.activity-info {
    flex: 1;
}

.activity-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.activity-time {
    display: block;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    width: 90%;
    max-width: 360px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal.show .modal-content {
    transform: scale(1);
}

.success-animation {
    margin-bottom: var(--space-4);
}

.success-circle {
    width: 80px;
    height: 80px;
    background: var(--success);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: successPop 0.5s ease-out;
}

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

.success-circle svg {
    width: 40px;
    height: 40px;
    color: var(--white);
}

.modal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.success-amount {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--success);
    margin-bottom: var(--space-1);
}

.success-to {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-1);
}

.transaction-id {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: var(--space-6);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--gray-800);
    color: var(--white);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    z-index: 100;
    opacity: 0;
    transition: all 0.3s;
}

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

/* Filter Button */
.filter-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.filter-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

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

.screen-content > * {
    animation: fadeIn 0.3s ease-out;
}

/* Responsive */
@media (max-width: 480px) {
    #app {
        max-width: 100%;
    }
    
    .screen {
        max-width: 100%;
    }
}

/* Safe Area Support */
@supports (padding-top: env(safe-area-inset-top)) {
    .screen-header,
    .dashboard-header,
    .scan-header,
    .chatbot-header,
    .admin-header {
        padding-top: calc(var(--space-4) + env(safe-area-inset-top));
    }
    
    .bottom-nav {
        padding-bottom: calc(var(--space-2) + env(safe-area-inset-bottom));
    }
    
    .chatbot-input {
        padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
    }
    
    .export-bar {
        padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
    }
}