@media (max-width: 800px) {

    .auth-page {
        display: block;
        min-height: 100vh;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        min-height: 100vh;
        padding: 28px 22px;
        align-items: flex-start;
    }

    .auth-form-container {
        max-width: 460px;
        margin: 0 auto;
        padding-top: 20px;
    }

    .mobile-brand {
        display: block;
    }

    .auth-heading h2 {
        font-size: 28px;
    }

}


@media (max-width: 480px) {

    .auth-form-panel {
        padding: 22px 18px;
    }

    .auth-form-container {
        padding-top: 10px;
    }

    .mobile-brand {
        margin-bottom: 38px;
    }

    .auth-heading {
        margin-bottom: 27px;
    }

    .auth-heading h2 {
        font-size: 26px;
    }

    .form-options {
        align-items: flex-start;
    }

}

@media (max-width: 480px) {

    .signup-terms {
        font-size: 12px;
    }

}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

    .sidebar {
        width: 215px;
    }

    .dashboard-content {
        padding-left: 24px;
        padding-right: 24px;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .investment-values {
        gap: 22px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 800px) {

    body {
        padding-bottom: 70px;
    }


    /* Sidebar */

    .sidebar {
        display: none;
    }


    /* Header */

    .top-header {
        height: 62px;

        justify-content: space-between;

        padding: 0 17px;
    }

    .mobile-page-title {
        display: block;

        font-size: 16px;
        font-weight: 650;
    }

    .header-actions {
        gap: 8px;
    }

    .user-name,
    .chevron {
        display: none;
    }

    .user-menu {
        margin-left: 2px;
    }


    /* Dashboard */

    .dashboard-content {
        padding: 24px 17px 30px;
    }

    .welcome-section {
        margin-bottom: 20px;
    }

    .welcome-section h1 {
        font-size: 22px;
    }

    .welcome-section p {
        font-size: 13px;
    }


    /* Portfolio */

     .portfolio-summary {
        grid-template-columns: 3fr 1.2fr;
        min-height: 155px;
    }

    .portfolio-current {
        padding: 21px 18px;
    }

    .portfolio-value {
        font-size: 28px;
    }

    .portfolio-grow {
        padding: 18px 15px;
    }

    .grow-icon {
        width: 34px;
        height: 34px;
    }

    .grow-content strong {
        font-size: 12px;
    }

    .grow-content small {
        font-size: 10px;
    }

    /* Quick Actions */

    .quick-actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .quick-action {
        min-height: 62px;
    }


    /* Grid */

    .dashboard-grid {
        display: block;
    }

    .dashboard-grid > .dashboard-section {
        margin-bottom: 28px;
    }


    /* Investments */

    .investment-item {
        min-height: 82px;

        padding: 14px;
    }

    .investment-values {
        gap: 12px;
    }

    .investment-values > div {
        min-width: 50px;
    }

    .investment-values span {
        font-size: 9px;
    }

    .investment-values strong {
        font-size: 11px;
    }


    /* Mobile navigation */

    .mobile-navigation {
        position: fixed;

        left: 0;
        right: 0;
        bottom: 0;

        z-index: 100;

        height: 68px;

        display: grid;
        grid-template-columns: repeat(4, 1fr);

        background: var(--background);
        /*border-top: 1px solid var(--border);*/

        padding: 5px 4px;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 4px;

        color: #fff;
        text-decoration: none;

        font-size: 9px;
        font-weight: 500;
    }

    .mobile-nav-item svg {
        width: 20px;
        height: 20px;

        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
    }

    .mobile-nav-item.active {
        color: var(--primary);
        font-weight: 600;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .dashboard-content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .portfolio-summary {
        /*padding: 21px 18px;*/
    }

    .portfolio-value {
        font-size: 20px;
    }

    .portfolio-profit {
        flex-wrap: wrap;
    }

    .investment-item {
        align-items: flex-start;
        gap: 10px;
    }

    .investment-values {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .investment-values > div:nth-child(1) {
        display: none;
    }

    .investment-values > div {
        min-width: auto;
    }

    .market-item {
        padding-left: 14px;
        padding-right: 14px;
    }

}



@media (max-width: 800px) {

    .referral-section {
        flex-direction: column;
        align-items: stretch;

        gap: 20px;

        padding: 20px;
    }

    .referral-action {
        width: 100%;
    }

}