/* =========================================================
   DASHBOARD
========================================================= */

.balance-section {
    width: 100%;

    min-height: inherit;

    display: flex;
    flex-direction: column;

    box-sizing: border-box;

    padding-top: 36px;
    padding-bottom: 60px;
}


/* =========================================================
   КАРТОЧКА БАЛАНСА
========================================================= */

.balance-card {
    position: relative;

    display: flex;
    align-items: center;

    gap: 18px;

    min-height: 132px;

    padding: 22px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            var(--bg-2) 0%,
            color-mix(
                in srgb,
                var(--bg-2) 82%,
                var(--bg-3)
            ) 100%
        );

    border: 1px solid var(--border-1);
    border-radius: 18px;

    box-shadow:
        0 2px 4px
        color-mix(
            in srgb,
            var(--text-1) 3%,
            transparent
        ),
        0 12px 30px
        color-mix(
            in srgb,
            var(--text-1) 6%,
            transparent
        );

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}


.balance-card:hover {
    transform: translateY(-2px);

    border-color:
        color-mix(
            in srgb,
            var(--border-1) 55%,
            var(--text-3)
        );

    box-shadow:
        0 4px 8px
        color-mix(
            in srgb,
            var(--text-1) 4%,
            transparent
        ),
        0 18px 38px
        color-mix(
            in srgb,
            var(--text-1) 8%,
            transparent
        );
}


/* =========================================================
   ИКОНКА БАЛАНСА
========================================================= */

.balance-card-icon {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    flex: 0 0 58px;

    color: var(--text-2);

    background: var(--bg-3);

    border: 1px solid var(--border-1);
    border-radius: 16px;

    font-size: 25px;

    box-shadow:
        inset 0 1px 0
        color-mix(
            in srgb,
            var(--bg-2) 85%,
            transparent
        );
}


.balance-card-icon i {
    line-height: 1;
}


/* =========================================================
   БАЛАНС — КОНТЕНТ
========================================================= */

.balance-card-content {
    position: relative;

    z-index: 2;

    min-width: 0;

    flex: 1;
}


.balance-card-label {
    margin-bottom: 6px;

    color: var(--text-3);

    font-size: 13px;
    font-weight: 600;

    line-height: 1.3;

    letter-spacing: .015em;
}


.balance-card-value {
    color: var(--text-1);

    font-size: clamp(26px, 3vw, 34px);
    font-weight: 750;

    line-height: 1.1;

    letter-spacing: -.035em;
}


/* =========================================================
   ДЕКОРАТИВНАЯ ИКОНКА
========================================================= */

.balance-card-decoration {
    position: absolute;

    top: 16px;
    right: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    color:
        color-mix(
            in srgb,
            var(--text-3) 55%,
            transparent
        );

    font-size: 14px;
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.balance-placeholder {
    display: block;

    width: 150px;
    max-width: 100%;
}


.balance-placeholder .placeholder {
    display: block;

    width: 100%;
    height: 28px;

    background: var(--bg-3);

    border-radius: 8px;
}


/* =========================================================
   ОШИБКА
========================================================= */

.balance-error {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 15px 17px;

    color: var(--text-1);

    background:
        color-mix(
            in srgb,
            var(--bg-2) 82%,
            var(--bg-3)
        );

    border: 1px solid var(--border-1);

    border-radius: 14px;
}


.balance-error-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    color: var(--text-2);

    background: var(--bg-3);

    border-radius: 10px;

    font-size: 17px;
}


.balance-error-text {
    color: var(--text-2);

    font-size: 14px;

    line-height: 1.5;
}


/* =========================================================
   НАВИГАЦИЯ ЛК
========================================================= */

.dashboard-navigation {
    margin-top: 34px;
}


.dashboard-navigation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 16px;
}


.dashboard-navigation-title {
    margin: 0 0 3px;

    color: var(--text-1);

    font-size: 19px;
    font-weight: 750;

    letter-spacing: -.025em;
}


.dashboard-navigation-subtitle {
    color: var(--text-3);

    font-size: 13px;
}


/* =========================================================
   КАРТОЧКА ССЫЛКИ
========================================================= */

.dashboard-link-card {
    position: relative;

    display: flex;
    align-items: center;

    gap: 14px;

    min-height: 112px;

    padding: 18px;

    overflow: hidden;

    color: var(--text-1);

    background: var(--bg-2);

    border: 1px solid var(--border-1);
    border-radius: 16px;

    text-decoration: none;

    box-shadow:
        0 2px 4px
        color-mix(
            in srgb,
            var(--text-1) 2%,
            transparent
        ),
        0 9px 24px
        color-mix(
            in srgb,
            var(--text-1) 5%,
            transparent
        );

    transition:
        transform .2s ease,
        background-color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}


.dashboard-link-card:hover {
    color: var(--text-1);

    transform: translateY(-2px);

    background:
        color-mix(
            in srgb,
            var(--bg-2) 68%,
            var(--bg-3)
        );

    border-color:
        color-mix(
            in srgb,
            var(--border-1) 50%,
            var(--text-3)
        );

    box-shadow:
        0 5px 10px
        color-mix(
            in srgb,
            var(--text-1) 3%,
            transparent
        ),
        0 16px 34px
        color-mix(
            in srgb,
            var(--text-1) 7%,
            transparent
        );
}


/* =========================================================
   ИКОНКА РАЗДЕЛА
========================================================= */

.dashboard-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    flex: 0 0 52px;

    color: var(--text-2);

    background: var(--bg-3);

    border: 1px solid var(--border-1);
    border-radius: 14px;

    font-size: 21px;

    transition:
        transform .2s ease,
        background-color .2s ease;
}


.dashboard-link-card:hover .dashboard-link-icon {
    transform: translateY(-1px);

    background:
        color-mix(
            in srgb,
            var(--bg-3) 82%,
            var(--bg-2)
        );
}


/* =========================================================
   ТЕКСТ РАЗДЕЛА
========================================================= */

.dashboard-link-content {
    min-width: 0;

    flex: 1;
}


.dashboard-link-title {
    margin-bottom: 5px;

    color: var(--text-1);

    font-size: 15px;
    font-weight: 700;

    line-height: 1.3;
}


.dashboard-link-description {
    max-width: 260px;

    color: var(--text-3);

    font-size: 12px;

    line-height: 1.45;
}


/* =========================================================
   СТРЕЛКА
========================================================= */

.dashboard-link-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    flex: 0 0 32px;

    color: var(--text-3);

    border-radius: 9px;

    font-size: 14px;

    transition:
        color .2s ease,
        background-color .2s ease,
        transform .2s ease;
}


.dashboard-link-card:hover .dashboard-link-arrow {
    color: var(--text-1);

    background: var(--bg-3);

    transform: translate(2px, -2px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    .balance-section {
        padding-top: 28px;
        padding-bottom: 50px;
    }


    .dashboard-navigation {
        margin-top: 28px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .balance-section {
        padding-top: 20px;
        padding-bottom: 40px;
    }


    .balance-card {
        min-height: 112px;

        gap: 14px;

        padding: 18px;

        border-radius: 15px;
    }


    .balance-card:hover {
        transform: none;
    }


    .balance-card-icon {
        width: 50px;
        height: 50px;

        flex-basis: 50px;

        border-radius: 14px;

        font-size: 22px;
    }


    .balance-card-label {
        margin-bottom: 5px;

        font-size: 12px;
    }


    .balance-card-value {
        font-size: 27px;
    }


    .balance-card-decoration {
        top: 13px;
        right: 13px;

        font-size: 13px;
    }


    .dashboard-navigation {
        margin-top: 26px;
    }


    .dashboard-navigation-header {
        margin-bottom: 14px;
    }


    .dashboard-navigation-title {
        font-size: 18px;
    }


    .dashboard-navigation-subtitle {
        font-size: 12px;
    }


    .dashboard-link-card {
        min-height: 100px;

        gap: 12px;

        padding: 15px;

        border-radius: 14px;
    }


    .dashboard-link-card:hover {
        transform: none;
    }


    .dashboard-link-icon {
        width: 46px;
        height: 46px;

        flex-basis: 46px;

        border-radius: 12px;

        font-size: 19px;
    }


    .dashboard-link-title {
        font-size: 14px;
    }


    .dashboard-link-description {
        font-size: 11px;
    }


    .dashboard-link-arrow {
        width: 28px;
        height: 28px;

        flex-basis: 28px;
    }

}