@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
        width: 48px;
        height: 48px;
        padding: 0;
    }

    .main-nav {
        position: fixed;
        top: 73px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        background: rgba(13, 11, 26, 0.96);
        border: 1px solid var(--border);
        border-radius: 8px;
    }

    .main-nav.open { display: flex; }
    .site-footer { grid-template-columns: 1fr 1fr; }
    .hero-content,
    .split-showcase,
    .internal-hero,
    .image-internal-hero,
    .admin-page-head,
    .admin-grid,
    .admin-two-column,
    .investor-workspace,
    .wallet-workspace,
    .staking-workspace,
    .auth-investment-shell { grid-template-columns: 1fr; }
    .metaverse-hero {
        width: calc(100vw - 20px);
        min-height: auto;
        border-radius: 14px;
    }
    .investment-terminal { max-width: 480px; }
    .auth-side { min-height: 360px; }
    .wallet-mini-panels,
    .dashboard-card-grid,
    .dashboard-content-grid,
    .invest-card-grid,
    .stake-plan-grid { grid-template-columns: 1fr; }
    .wallet-action-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        overflow: visible;
    }
    .wallet-action-tiles .wallet-tile {
        min-width: 0;
    }
    .dashboard-action-row {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 8px;
    }
    .dashboard-action-card {
        min-height: 108px;
        padding: 10px 8px;
        border-radius: 18px;
    }
    .dashboard-action-card .wallet-icon {
        width: 46px;
        height: 46px;
    }
    .dashboard-action-card .wallet-icon svg {
        width: 24px;
        height: 24px;
    }
    .dashboard-action-card strong {
        font-size: clamp(0.65rem, 3vw, 0.95rem);
        overflow-wrap: anywhere;
    }
    .simple-invest,
    .simple-stake {
        gap: 16px;
    }
    .stats-strip { grid-template-columns: 1fr 1fr; }
    .market-strip,
    .platform-grid,
    .hero-investment-rails { grid-template-columns: 1fr 1fr; }
    body { padding-bottom: 86px; }
    .mobile-taskbar {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 30;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
        padding: 9px;
        border: 1px solid rgba(0, 207, 255, 0.34);
        border-radius: 18px;
        background: rgba(2, 3, 10, 0.88);
        box-shadow: 0 0 28px rgba(0, 120, 255, 0.28), 0 0 36px rgba(122, 28, 255, 0.22);
        backdrop-filter: blur(18px);
    }
    .mobile-taskbar a {
        min-height: 56px;
        display: grid;
        place-items: center;
        gap: 2px;
        color: var(--muted);
        font-family: "Rajdhani", sans-serif;
        font-size: 0.82rem;
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(0, 207, 255, 0.08), rgba(122, 28, 255, 0.12));
    }
    .mobile-taskbar span {
        width: 26px;
        height: 26px;
        display: grid;
        place-items: center;
        color: #fff;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--blue), var(--purple));
        box-shadow: 0 0 14px rgba(0, 207, 255, 0.28);
        font-weight: 700;
    }
    .mobile-taskbar svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
    }
    .mobile-taskbar .taskbar-logout {
        color: #ffdfe8;
        background: linear-gradient(135deg, rgba(255, 61, 0, 0.16), rgba(187, 44, 255, 0.16));
    }
    .mobile-taskbar .taskbar-logout span {
        background: linear-gradient(135deg, #ff3d00, #bb2cff);
        box-shadow: 0 0 14px rgba(255, 61, 0, 0.36);
    }
    .wallet-hero { grid-template-columns: 1fr; }
    .telegram-float {
        right: 14px;
        bottom: 96px;
    }
}

@media (max-width: 640px) {
    main { width: min(100% - 24px, 1180px); }
    .hero { min-height: auto; padding-top: 34px; }
    .actions, .quick-actions { grid-template-columns: 1fr; flex-direction: column; }
    .admin-toolbar,
    .admin-section-title,
    .admin-row-actions,
    .admin-row-actions.compact {
        display: grid;
        grid-template-columns: 1fr;
    }
    .admin-toolbar input,
    .admin-toolbar select,
    .admin-row-actions input,
    .admin-row-actions select {
        width: 100%;
    }
    .admin-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: thin;
    }
    .admin-nav a {
        flex: 0 0 auto;
        min-width: 112px;
    }
    .admin-page-head .page-title {
        font-size: clamp(2.05rem, 12vw, 3.25rem);
    }
    .admin-summary-card {
        min-height: auto;
    }
    .admin-table {
        min-width: 0;
    }
    .site-footer { grid-template-columns: 1fr; }
    .hero-content { padding: 26px 18px; }
    .stats-strip { grid-template-columns: 1fr; }
    .market-strip,
    .platform-grid,
    .internal-hero,
    .auth-investment-shell,
    .investor-workspace,
    .wallet-workspace,
    .staking-workspace,
    .workspace-metrics,
    .workspace-actions,
    .hero-investment-rails { grid-template-columns: 1fr; }
    .split-showcase > img { min-height: 250px; }
    .investment-home h1 { font-size: clamp(2.25rem, 12vw, 3.5rem); }
    .portfolio-total strong { font-size: 2rem; }
    .wallet-pay-card { border-radius: 28px; min-height: 230px; }
    .mobile-taskbar {
        left: 8px;
        right: 8px;
        bottom: 8px;
        gap: 5px;
        padding: 7px;
        border-radius: 16px;
    }
    .mobile-taskbar a {
        min-height: 52px;
        font-size: 0.72rem;
        border-radius: 12px;
    }
    .dashboard-action-row {
        gap: 5px;
    }
    .dashboard-action-card {
        min-height: 92px;
        padding: 8px 4px;
        border-radius: 14px;
    }
    .dashboard-action-card .wallet-icon {
        width: 40px;
        height: 40px;
    }
    .dashboard-action-card .wallet-icon svg {
        width: 21px;
        height: 21px;
    }
    .mobile-taskbar span {
        width: 24px;
        height: 24px;
    }
    .wallet-pay-meta { display: grid; gap: 8px; }
    .wallet-tile {
        min-height: 116px;
        padding: 12px 9px;
        border-radius: 18px;
    }
    .wallet-icon {
        width: 48px;
        height: 48px;
    }
    .wallet-icon svg {
        width: 25px;
        height: 25px;
    }
    .wallet-tile strong {
        font-size: clamp(0.82rem, 3.5vw, 1.05rem);
        line-height: 1.1;
        overflow-wrap: anywhere;
    }
    .wallet-tile small {
        font-size: 0.74rem;
    }
    .invest-card img { height: 135px; }
    .invest-card > div,
    .stake-plan-card { padding: 14px; }
    .invest-card p { min-height: auto; }

    table, thead, tbody, th, td, tr { display: block; }
    thead { display: none; }
    tr {
        padding: 12px;
        border-bottom: 1px solid rgba(255,255,255,0.14);
    }
    td {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        border: 0;
        padding: 8px 0;
    }
    td::before {
        content: attr(data-label);
        color: var(--cyan);
        font-family: "Rajdhani", sans-serif;
        font-weight: 700;
    }
}
