@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    min-height: 100vh;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header */
.header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.header-title h1 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.portfolio-value {
    text-align: right;
}

.portfolio-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-amount {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Level 1 Navigation - Top Bar */
.top-nav {
    background: rgba(255, 255, 255, 0.05);
    padding: 0 2rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-nav-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.top-nav-item:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
}

.top-nav-item.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

/* Main Content Area */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Level 2 Navigation - Side Menu */
.side-nav {
    width: 280px;
    background: rgba(15, 23, 42, 0.6);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 1rem;
    overflow-y: auto;
}

.side-nav-item {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    border: none;
    width: 100%;
    text-align: left;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.side-nav-item i {
    width: 20px;
    text-align: center;
}

.side-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

.side-nav-item.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Level 3 - Content Display */
.content-area {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* Cards & Components */
.card {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-title {
    font-size: 13px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.card-value {
    font-size: 32px;
    font-weight: 700;
    color: #f1f5f9;
}

.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 14px;
    color: #94a3b8;
}

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* Chart Placeholders */
.chart-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    padding: 2rem;
    background: rgba(59, 130, 246, 0.05);
    border: 2px dashed rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    text-align: center;
}

.chart-placeholder i {
    font-size: 48px;
    color: #3b82f6;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.chart-placeholder h4 {
    color: #f1f5f9;
    font-size: 16px;
    font-weight: 600;
    margin: 0.5rem 0;
}

.chart-placeholder p {
    color: #94a3b8;
    font-size: 13px;
    margin: 0.5rem 0 0 0;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead {
    background: rgba(0, 0, 0, 0.2);
}

.data-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #94a3b8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Alert Items */
.alert-item {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid;
    padding: 1rem;
    border-radius: 8px;
}

.alert-item.critical {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.alert-item.warning {
    border-left-color: #fbbf24;
    background: rgba(251, 191, 36, 0.05);
}

.alert-item.info {
    border-left-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.alert-title {
    font-weight: 600;
    color: #f1f5f9;
    font-size: 14px;
}

.alert-message {
    color: #94a3b8;
    line-height: 1.5;
}

.alert-time {
    font-size: 12px;
    color: #64748b;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-warning {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-critical, .badge-error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Filter Toggle */
.filter-toggle {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.25rem;
    margin-bottom: 1.5rem;
}

.filter-toggle button {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-toggle button:hover {
    color: #e2e8f0;
}

.filter-toggle button.active {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

/* Stats */
.stat-positive {
    color: #22c55e !important;
    font-weight: 600;
}
.stat-negative {
    color: #ef4444 !important;
    font-weight: 600;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #475569;
    border-radius: 24px;
    transition: 0.3s;
}
.toggle-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
    background: #3b82f6;
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(26px);
}

/* Progress Bars */
.progress-container {
    margin-top: 1rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 13px;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    transition: width 0.3s ease;
}

/* Loading State */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: #64748b;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-right: 1rem;
}

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

/* Error State */
.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

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

/* Hide by default */
.domain-content {
    display: none;
    flex: 1;
    overflow: hidden;
}

.domain-content.active {
    display: flex;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablet & iPad (max-width: 768px) */
@media (max-width: 768px) {
    /* Header adjustments */
    .header {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .header-title h1 {
        font-size: 20px;
    }

    .logo {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .portfolio-amount {
        font-size: 18px;
    }

    /* Top navigation - scrollable */
    .top-nav {
        padding: 0 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .top-nav::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

    .top-nav-item {
        padding: 0.75rem 1rem;
        font-size: 13px;
        white-space: nowrap;
    }

    /* Side navigation - hide by default, show as overlay */
    .side-nav {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }

    .side-nav.mobile-open {
        left: 0;
    }

    /* Hamburger menu button */
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
        border-radius: 50%;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
        z-index: 999;
        transition: transform 0.2s;
    }

    .mobile-menu-toggle:active {
        transform: scale(0.95);
    }

    /* Content area adjustments */
    .content-area {
        padding: 1rem;
        width: 100%;
    }

    /* Grid adjustments */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Table responsiveness - Mobile card layout */
    .data-table {
        display: block;
        overflow-x: visible;
    }

    .data-table thead {
        display: none;
    }

    .data-table tbody {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .data-table tr {
        display: flex;
        flex-direction: column;
        border-radius: 16px;
        background: linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
        box-shadow:
            0 10px 40px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.05),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
        overflow: hidden;
    }

    /* Card Header - Asset Name */
    .data-table td[data-label="Asset"] {
        background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
        padding: 1.1rem 1.25rem;
        font-size: 16px;
        font-weight: 700;
        color: #fff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        letter-spacing: 0.3px;
    }

    .data-table td[data-label="Asset"]::before {
        display: none;
    }

    /* Regular cells */
    .data-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.85rem 1.25rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        color: #f1f5f9;
        font-size: 14px;
        font-weight: 500;
    }

    .data-table td:last-child {
        border-bottom: none;
        padding-bottom: 1.1rem;
    }

    /* Labels */
    .data-table td::before {
        content: attr(data-label);
        font-weight: 500;
        color: #64748b;
        text-transform: uppercase;
        font-size: 10px;
        letter-spacing: 0.8px;
        flex-shrink: 0;
    }

    /* Value cell - hero number */
    .data-table td[data-label="Value"] {
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.05) 100%);
        padding: 1rem 1.25rem;
        border-bottom: 1px solid rgba(34, 197, 94, 0.15);
    }

    .data-table td[data-label="Value"]::after {
        content: attr(data-value);
        font-size: 20px;
        font-weight: 800;
        color: #22c55e;
        letter-spacing: -0.5px;
    }

    /* Gain/Loss cell */
    .data-table td[data-label="Gain/Loss"] {
        padding: 0.9rem 1.25rem;
        font-size: 14px;
        font-weight: 600;
    }

    /* Status cell - bottom accent */
    .data-table td[data-label="Status"] {
        background: rgba(0, 0, 0, 0.2);
        padding: 1rem 1.25rem;
        font-weight: 600;
        font-size: 13px;
    }

    /* Positive/negative colors */
    .data-table .stat-positive {
        color: #4ade80 !important;
    }

    .data-table .stat-negative {
        color: #f87171 !important;
    }

    .data-table .stat-neutral {
        color: #94a3b8 !important;
    }

    /* Hide less important fields */
    .data-table td[data-label="Ticker"],
    .data-table td[data-label="Avg Cost"] {
        display: none;
    }

    /* Account badge style */
    .data-table td[data-label="Account"] {
        padding: 0.7rem 1.25rem;
        font-size: 12px;
        color: #94a3b8;
        background: rgba(0, 0, 0, 0.15);
    }

    /* Card adjustments */
    .card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 22px;
    }

    /* Touch-friendly buttons */
    .btn, .side-nav-item, .top-nav-item {
        min-height: 44px;
        min-width: 44px;
    }

    /* Chart adjustments */
    .chart-placeholder {
        min-height: 200px;
        padding: 1rem;
    }
}

/* Mobile Phone (max-width: 480px) */
@media (max-width: 480px) {
    /* Smaller fonts */
    body {
        font-size: 14px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .header-title h1 {
        font-size: 18px;
    }

    .header-info {
        width: 100%;
        justify-content: space-between;
    }

    .portfolio-value {
        text-align: left;
    }

    .portfolio-amount {
        font-size: 16px;
    }

    /* Section headers */
    .section-title {
        font-size: 18px;
    }

    .card-value {
        font-size: 24px;
    }

    /* Grid to single column */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Reduce spacing */
    .content-area {
        padding: 0.75rem;
    }

    .card {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    /* Alert items */
    .alert-item {
        padding: 0.75rem;
    }

    .alert-title {
        font-size: 13px;
    }

    .alert-message {
        font-size: 13px;
    }

    /* Filter toggle */
    .filter-toggle button {
        padding: 0.5rem 0.75rem;
        font-size: 12px;
    }

    /* Buttons full width on mobile */
    .btn {
        width: 100%;
        padding: 0.75rem;
    }

    /* Chart adjustments */
    .chart-placeholder {
        min-height: 150px;
    }

    .chart-placeholder i {
        font-size: 32px;
    }

    .chart-placeholder h4 {
        font-size: 14px;
    }

    /* ========================================
       AMAZING MOBILE HOLDING CARDS
       ======================================== */

    .mobile-holding-card {
        background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
        border-radius: 16px;
        padding: 0;
        margin-bottom: 1rem;
        border: 1px solid rgba(59, 130, 246, 0.2);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        overflow: hidden;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .mobile-holding-card:active {
        transform: scale(0.98);
    }

    /* Card Header - Ticker & Name */
    .mobile-card-header {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
        padding: 1rem;
        border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    }

    .mobile-card-ticker {
        font-size: 18px;
        font-weight: 700;
        color: #3b82f6;
        letter-spacing: 0.5px;
        margin-bottom: 0.25rem;
    }

    .mobile-card-name {
        font-size: 13px;
        color: #94a3b8;
        font-weight: 500;
    }

    /* Hero Section - Big Value & Gain/Loss */
    .mobile-card-hero {
        padding: 1.25rem 1rem;
        background: rgba(0, 0, 0, 0.2);
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }

    .mobile-card-value {
        font-size: 28px;
        font-weight: 700;
        color: #f1f5f9;
        flex: 1;
    }

    .mobile-card-gainloss {
        font-size: 20px;
        font-weight: 700;
        padding: 0.5rem 0.75rem;
        border-radius: 10px;
        text-align: right;
        min-width: 100px;
    }

    .mobile-card-gainloss.positive {
        color: #22c55e;
        background: rgba(34, 197, 94, 0.15);
        border: 1px solid rgba(34, 197, 94, 0.3);
    }

    .mobile-card-gainloss.negative {
        color: #ef4444;
        background: rgba(239, 68, 68, 0.15);
        border: 1px solid rgba(239, 68, 68, 0.3);
    }

    .mobile-card-gainloss.neutral {
        color: #94a3b8;
        background: rgba(148, 163, 184, 0.1);
        border: 1px solid rgba(148, 163, 184, 0.2);
    }

    /* Details Section */
    .mobile-card-details {
        padding: 1rem;
    }

    .mobile-detail-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .mobile-detail-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .mobile-detail-label {
        font-size: 13px;
        color: #94a3b8;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .mobile-detail-value {
        font-size: 14px;
        color: #e2e8f0;
        font-weight: 600;
        text-align: right;
    }

    /* Special styling for yield */
    .mobile-detail-value.yield-value {
        color: #22c55e;
        font-weight: 700;
    }

    /* Add subtle pulse animation for positive gains */
    .mobile-holding-card.positive .mobile-card-gainloss {
        animation: subtle-pulse 2s ease-in-out infinite;
    }

    @keyframes subtle-pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.85; }
    }

    /* ========================================
       AMAZING MOBILE CASH CARDS
       ======================================== */

    .mobile-cash-card {
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.15) 100%);
        border-radius: 16px;
        padding: 0;
        margin-bottom: 1rem;
        border: 1px solid rgba(34, 197, 94, 0.3);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        overflow: hidden;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .mobile-cash-card:active {
        transform: scale(0.98);
    }

    /* Card Header - Account Name & Owner */
    .mobile-cash-header {
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(16, 185, 129, 0.2) 100%);
        padding: 1rem;
        border-bottom: 1px solid rgba(34, 197, 94, 0.3);
    }

    .mobile-cash-account {
        font-size: 18px;
        font-weight: 700;
        color: #22c55e;
        letter-spacing: 0.3px;
        margin-bottom: 0.25rem;
    }

    .mobile-cash-owner {
        font-size: 13px;
        color: #94a3b8;
        font-weight: 500;
    }

    /* Hero Section - Total Cash Display */
    .mobile-cash-hero {
        padding: 1.5rem 1rem;
        background: rgba(0, 0, 0, 0.2);
        text-align: center;
    }

    .mobile-cash-label {
        font-size: 12px;
        color: #94a3b8;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }

    .mobile-cash-value {
        font-size: 32px;
        font-weight: 700;
        color: #22c55e;
        text-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
    }

    /* Details Section - Capital & Income Breakdown */
    .mobile-cash-details {
        padding: 1rem;
    }

    .mobile-cash-breakdown {
        display: flex;
        align-items: center;
        justify-content: space-around;
        gap: 1rem;
    }

    .mobile-cash-breakdown-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 10px;
    }

    .mobile-cash-breakdown-label {
        font-size: 11px;
        color: #94a3b8;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
    }

    .mobile-cash-breakdown-value {
        font-size: 16px;
        color: #e2e8f0;
        font-weight: 700;
    }

    .mobile-cash-breakdown-divider {
        width: 1px;
        height: 40px;
        background: linear-gradient(to bottom, transparent, rgba(34, 197, 94, 0.3), transparent);
    }

    /* Subtle glow animation for cash cards */
    .mobile-cash-card {
        animation: cash-glow 3s ease-in-out infinite;
    }

    @keyframes cash-glow {
        0%, 100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
        50% { box-shadow: 0 4px 16px rgba(34, 197, 94, 0.2); }
    }
}

/* Android-specific optimizations */
@media (max-width: 768px) {
    /* Prevent tap highlight flash */
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }

    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
    }

    /* Touch actions */
    button, a, .clickable {
        touch-action: manipulation;
    }

    /* Prevent zoom on input focus */
    input, select, textarea {
        font-size: 16px !important;
    }

    /* Better touch targets */
    button, a, input, select {
        min-height: 44px;
        min-width: 44px;
    }
}
