:root {
    /* Colors */
    --primary-bg: #FFFFFF;
    --secondary-bg: #F8F9FA;
    --card-bg: #FFFFFF;

    --accent-blue: #3B82F6;
    --accent-blue-light: #EFF6FF;
    --accent-green: #10B981;
    --accent-green-light: #ECFDF5;
    --accent-orange: #F59E0B;
    --accent-orange-light: #FFFBEB;
    --accent-purple: #8B5CF6;
    --accent-purple-light: #F5F3FF;

    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-tertiary: #9CA3AF;

    --border-light: #E5E7EB;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --trans-fast: 0.15s ease;
    --trans-default: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--secondary-bg);
    color: var(--text-primary);
    line-height: 1.5;
    height: 100vh;
    overflow: hidden;
    /* App-like container */
    display: flex;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 480px;
    /* Mobile Viewport Lock */
    height: 100%;
    background-color: var(--primary-bg);
    position: relative;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    padding: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.logo-text-img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.user-profile .avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Main Content */
#main-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* Views Management */
.view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    padding: var(--space-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity var(--trans-default), transform var(--trans-default);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.view.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    z-index: 10;
}

/* Dashboard Elements */
.balance-card {
    background: linear-gradient(135deg, #111827, #374151);
    color: white;
    padding: 32px;
    border-radius: 24px;
    margin-bottom: 32px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.balance-label {
    font-size: 0.875rem;
    color: #9CA3AF;
    margin-bottom: var(--space-xs);
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    letter-spacing: -0.03em;
}

.balance-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    width: fit-content;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: 32px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.action-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--trans-fast);
}

.action-icon-box:active {
    transform: scale(0.95);
}

.action-icon-box.blue {
    background: var(--accent-blue-light);
    color: var(--accent-blue);
}

.action-icon-box.green {
    background: var(--accent-green-light);
    color: var(--accent-green);
}

.action-icon-box.orange {
    background: var(--accent-orange-light);
    color: var(--accent-orange);
}

.action-icon-box.purple {
    background: var(--accent-purple-light);
    color: var(--accent-purple);
}

.action-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
}

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

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

/* Transaction List */
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding-bottom: 80px;
}

.trans-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: var(--primary-bg);
    border: 1px solid var(--secondary-bg);
    transition: background-color var(--trans-fast);
}

.trans-item:hover {
    background-color: var(--secondary-bg);
}

.trans-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--secondary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-right: var(--space-md);
}

.trans-info {
    flex: 1;
}

.trans-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

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

.trans-amount {
    font-weight: 600;
}

.trans-amount.positive {
    color: var(--accent-green);
}

.trans-amount.negative {
    color: var(--text-primary);
}

/* Buttons */
.primary-btn,
.secondary-btn {
    padding: 16px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--trans-fast);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.primary-btn {
    background: linear-gradient(135deg, #1F2937, #000000);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.4);
}

.primary-btn:active {
    transform: scale(0.98);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

.full-width {
    width: 100%;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all var(--trans-fast);
}

.icon-btn:hover {
    background: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.icon-btn:active {
    transform: scale(0.95);
}

/* Keypad */
.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin: auto 0 var(--space-lg) 0;
}

.key {
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: 500;
    padding: 16px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background-color var(--trans-fast);
    color: var(--text-primary);
}

.key:active {
    background-color: var(--secondary-bg);
}

/* Scanner */
.scanner-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.scanner-viewport {
    width: 260px;
    height: 260px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    background: #000;
}

/* Force the video generated by html5-qrcode to fill the container and crop overflow */
.scanner-viewport video {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}

.camera-simulation {
    opacity: 0.3;
    width: 100%;
    height: 100%;
    /* Add a subtle grid/pattern to simulate camera feed placeholder */
    background-image: radial-gradient(#666 1px, transparent 1px);
    background-size: 20px 20px;
}

.scanner-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 4px solid white;
    border-radius: 4px;
}

.tl {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.tr {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.bl {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

.br {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

.scanner-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--accent-blue);
    top: 50%;
    box-shadow: 0 0 20px var(--accent-blue);
    animation: scan 2s infinite ease-in-out;
}

@keyframes scan {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(100px);
        opacity: 0;
    }
}

/* Inputs */
.amount-input-area {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: var(--space-xl) 0;
}

.amount-input-area .currency-symbol {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-right: 4px;
}

.amount-input-area input {
    border: none;
    font-size: 3.5rem;
    font-weight: 700;
    width: 200px;
    text-align: center;
    color: var(--text-primary);
    background: transparent;
    outline: none;
}

.input-group {
    margin-bottom: var(--space-lg);
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.contact-input-wrapper {
    background: var(--secondary-bg);
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-input-wrapper input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 1rem;
    outline: none;
    color: var(--text-primary);
}

/* Contacts */
.recent-contacts h4 {
    margin-bottom: var(--space-md);
}

.contact-scroll {
    display: flex;
    gap: var(--space-lg);
    overflow-x: auto;
    padding-bottom: 16px;
}

.contact-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 16px;
    background-color: var(--primary-bg);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--trans-fast);
    width: 100%;
}

.contact-item:hover {
    background-color: var(--secondary-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.contact-item:active {
    transform: scale(0.98);
}

.contact-item .avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.contact-info {
    text-align: left;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.contact-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

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

/* Pin Dots */
.pin-dots {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 48px;
}

.pin-dots .dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--border-light);
    transition: background 0.2s;
}

.pin-dots .dot.filled {
    background: var(--text-primary);
}

/* Success View */
.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.success-circle {
    width: 80px;
    height: 80px;
    background: var(--accent-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 24px;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

.success-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 8px;
}

.success-recipient {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.receipt-card {
    background: var(--secondary-bg);
    width: 100%;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 32px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.875rem;
}

.receipt-row:last-child {
    margin-bottom: 0;
}

/* Notification (Toast) */
.notification-toast {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    background: white;
    padding: 16px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 16px;
    align-items: center;
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 200;
    border: 1px solid var(--border-light);
}

.notification-toast.show {
    transform: translateY(0);
}

.notif-icon-box {
    width: 40px;
    height: 40px;
    background: var(--accent-blue-light);
    color: var(--accent-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hidden {
    display: none;
}

/* Authentication & Welcome */
.bg-blob {
    position: absolute;
    filter: blur(50px);
    z-index: 0;
    opacity: 0.6;
    animation: blobFloat 10s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 70%);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0) 70%);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.blob-top {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0) 70%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(20px, 20px) scale(1.1);
    }
}

.welcome-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--space-xl) 0;
    position: relative;
    z-index: 1;
}

.brand-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    display: flex;
    /* Ensure flex context for alignment */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* QR Center Logo Fix */
.qr-logo-center .material-icons-round {
    font-size: 28px;
    color: var(--text-primary);
}

/* Modern Logo Typography */
.modern-logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6); /* Blue to Purple gradient for finance/tech */
    border-radius: 24px; /* More squircle-like */
    padding: 6px;
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
    margin-bottom: var(--space-md);
    transform: rotate(-5deg); /* Slight dynamic tilt */
}

.modern-logo-icon {
    background: white;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563EB; /* Deep blue */
    transform: rotate(5deg); /* Counter-tilt the icon to keep it straight */
}

.modern-logo-icon.small {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    transform: none; /* No tilt for header small icon */
}

.modern-logo-icon.small .material-icons-round {
    font-size: 20px;
}

.modern-logo-container .modern-logo-icon.small {
    transform: rotate(5deg);
}

.modern-logo-icon.large {
    width: 80px;
    height: 80px;
}

.modern-logo-icon.large .material-icons-round {
    font-size: 48px;
}

.modern-logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(to right, #1E3A8A, #3B82F6); /* Dark blue to bright blue */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modern-logo-text.small {
    font-size: 1.25rem;
}

.modern-logo-text.large {
    font-size: 2.75rem;
    margin-bottom: var(--space-xs);
}

.brand-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-xs);
    background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.auth-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    animation-fill-mode: backwards;
    animation-delay: 0.2s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Forms */
.auth-form-container {
    padding-top: var(--space-lg);
    position: relative;
    z-index: 1;
    animation: fadeUp 0.6s ease-out;
}

.auth-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 1.125rem;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-left: 4px;
}

.input-field {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-field:focus-within {
    background: #FFFFFF;
    border-color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.input-field input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 1.05rem;
    color: var(--text-primary);
    outline: none;
    font-weight: 500;
}

/* Chrome autofill background fix */
.input-field input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

.input-field input::placeholder {
    color: #9CA3AF;
}

.input-field .material-icons-round {
    color: #9CA3AF;
    transition: color 0.3s ease;
}

.input-field:focus-within .material-icons-round {
    color: var(--text-primary);
}

.form-actions {
    margin-top: 48px;
    animation: fadeUp 0.8s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: backwards;
}

.no-border {
    border: none;
    padding-left: 0;
    background: transparent;
    position: relative;
    z-index: 2;
}

/* Ensure view has consistent background behavior */
.view {
    overflow-x: hidden;
}

/* QR Code View */
.qr-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding-bottom: 32px;
    position: relative;
    z-index: 1;
}

.qr-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 32px;
    border-radius: 32px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
    animation: fadeUp 0.6s ease-out;
}

.qr-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
}

.avatar-large {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--text-primary), #4B5563);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
}

.user-details h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.qr-frame {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto;
    padding: 10px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

#real-qr-code, #transport-qr-canvas {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    display: block;
}

#real-qr-code img, #real-qr-code canvas {
    width: 100%;
    height: 100%;
}

.qr-logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.qr-hint {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.qr-actions {
    width: 100%;
    max-width: 320px;
    animation: fadeUp 0.8s ease-out;
    animation-fill-mode: backwards;
    animation-delay: 0.2s;
}

/* Transport View */
.transport-card {
    background: linear-gradient(135deg, #1E3A8A, #3B82F6);
    color: white;
    border: none;
}

.transport-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.transport-logo h3 {
    color: white;
}

.balance-badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.transport-card .qr-hint {
    color: rgba(255, 255, 255, 0.8);
}

/* Gov Services View */
.gov-services-container {
    padding: var(--space-md) 0;
    animation: fadeUp 0.6s ease-out;
}

.gov-banner {
    background: linear-gradient(135deg, #4B5563, #1F2937);
    color: white;
    padding: 24px;
    border-radius: 24px;
    margin-bottom: var(--space-lg);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.gov-banner h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: white;
}

.gov-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.gov-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.gov-card {
    background: var(--primary-bg);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gov-card:active {
    transform: scale(0.96);
}

.gov-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--secondary-bg);
}

.gov-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gov-icon-box.green { background: var(--accent-green-light); color: var(--accent-green); }
.gov-icon-box.blue { background: var(--accent-blue-light); color: var(--accent-blue); }
.gov-icon-box.orange { background: var(--accent-orange-light); color: var(--accent-orange); }
.gov-icon-box.purple { background: var(--accent-purple-light); color: var(--accent-purple); }

.gov-card h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.gov-card p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}