@media (max-width: 720px), (max-device-width: 920px), (pointer: coarse), (hover: none) {
    body { overflow-x: hidden; }

    .app-container {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        z-index: 90;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
        background: rgba(11, 15, 25, 0.96);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-right: none;
        border-bottom: none;
        backdrop-filter: blur(16px);
    }

    .logo,
    .exchange-rate-widget {
        display: none;
    }

    .nav-menu {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(64px, 1fr);
        grid-template-columns: none;
        gap: 4px;
        overflow-x: auto;
        padding-bottom: 0;
        scrollbar-width: none;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-item {
        min-width: 52px;
        width: auto;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        padding: 8px 4px;
        border-radius: 8px;
        min-height: 56px;
        font-size: 10px;
        line-height: 1.15;
        text-align: center;
    }

    .nav-item i {
        width: auto;
        font-size: 17px;
    }

    .nav-item span {
        display: block;
        max-width: 100%;
        white-space: normal;
        word-break: keep-all;
    }

    .main-content {
        padding: 16px 12px calc(96px + env(safe-area-inset-bottom));
    }

    .main-header {
        margin-bottom: 16px;
    }

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

    .header-title p,
    .header-desc {
        font-size: 12px;
        line-height: 1.45;
    }

    .summary-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .summary-card {
        min-height: 0;
        padding: 18px;
    }

    .num-display {
        font-size: 28px;
    }

    .dashboard-grid,
    .analysis-grid {
        gap: 14px;
    }

    .chart-container-card,
    .calendar-card,
    .table-card,
    .pie-chart-card {
        padding: 18px;
    }

    .chart-wrapper {
        height: 260px;
    }

    .calendar-grid-body {
        gap: 5px;
    }

    .calendar-day {
        border-radius: 8px;
        font-size: 12px;
    }

    .day-dot {
        bottom: 4px;
        background: #ef4444;
    }

    .modal-content {
        width: calc(100vw - 24px);
        max-height: 86vh;
        overflow-y: auto;
    }
}
