/*
 * Страница аккаунта пользователя.
 * Баланс выводится отдельно для каждого проекта.
 */

 /* Общий фон страницы аккаунта — такой же, как на главной */
.fi-layout {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 8%, rgba(96, 165, 250, 0.18) 0, transparent 28rem),
        radial-gradient(circle at 92% 12%, rgba(251, 191, 36, 0.20) 0, transparent 26rem),
        radial-gradient(circle at 12% 68%, rgba(52, 211, 153, 0.11) 0, transparent 27rem),
        radial-gradient(circle at 88% 76%, rgba(167, 139, 250, 0.14) 0, transparent 30rem),
        linear-gradient(rgba(255, 255, 255, 0.52) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.52) 1px, transparent 1px),
        linear-gradient(180deg, #f9fbff 0%, #f4f7fc 48%, #eef3f9 100%);
    background-size:
        auto,
        auto,
        auto,
        auto,
        56px 56px,
        56px 56px,
        auto;
}

.siteinapp-account {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    min-width: 0;
}

.siteinapp-account__profile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.siteinapp-account__profile-data {
    min-width: 0;
}

.siteinapp-account__eyebrow {
    margin-bottom: 5px;
    color: rgb(107 114 128);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.siteinapp-account__name {
    margin: 0;
    color: rgb(17 24 39);
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.siteinapp-account__email {
    margin-top: 4px;
    color: rgb(107 114 128);
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.siteinapp-account__balance-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.siteinapp-account__balance-title {
    margin: 0;
    color: rgb(17 24 39);
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
}

.siteinapp-account__balance-description {
    margin: 5px 0 0;
    color: rgb(107 114 128);
    font-size: 14px;
    line-height: 1.55;
}

.siteinapp-account__projects {
    display: grid;
    gap: 16px;
}

.siteinapp-account__project {
    min-width: 0;
}

.siteinapp-account__project-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.siteinapp-account__project-title-block {
    min-width: 0;
}

.siteinapp-account__project-name {
    margin: 0;
    color: rgb(17 24 39);
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.siteinapp-account__project-domain {
    margin-top: 3px;
    color: rgb(107 114 128);
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.siteinapp-account__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.siteinapp-account__stat {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid rgb(229 231 235);
    border-radius: 12px;
    background: rgb(249 250 251);
}

.siteinapp-account__stat-label {
    color: rgb(107 114 128);
    font-size: 12px;
    line-height: 1.4;
}

.siteinapp-account__stat-value {
    margin-top: 4px;
    color: rgb(17 24 39);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.siteinapp-account__project-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgb(229 231 235);
}

.siteinapp-account__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 12px;
    text-align: center;
}

.siteinapp-account__empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 9999px;
    background: rgb(254 243 199);
    color: rgb(217 119 6);
}

.siteinapp-account__empty-icon-svg {
    width: 24px;
    height: 24px;
}

.siteinapp-account__empty-title {
    margin: 0;
    color: rgb(17 24 39);
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
}

.siteinapp-account__empty-description {
    max-width: 520px;
    margin: 7px 0 16px;
    color: rgb(107 114 128);
    font-size: 14px;
    line-height: 1.55;
}

.dark .siteinapp-account__name,
.dark .siteinapp-account__balance-title,
.dark .siteinapp-account__project-name,
.dark .siteinapp-account__stat-value,
.dark .siteinapp-account__empty-title {
    color: rgb(243 244 246);
}

.dark .siteinapp-account__eyebrow,
.dark .siteinapp-account__email,
.dark .siteinapp-account__balance-description,
.dark .siteinapp-account__project-domain,
.dark .siteinapp-account__stat-label,
.dark .siteinapp-account__empty-description {
    color: rgb(156 163 175);
}

.dark .siteinapp-account__stat {
    border-color: rgb(55 65 81);
    background: rgb(31 41 55);
}

.dark .siteinapp-account__project-footer {
    border-top-color: rgb(55 65 81);
}

.dark .siteinapp-account__empty-icon {
    background: rgb(69 26 3);
    color: rgb(251 191 36);
}

@media (max-width: 767px) {
    .siteinapp-account__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .siteinapp-account__profile {
        align-items: stretch;
    }

    .siteinapp-account__profile > .fi-btn {
        justify-content: center;
        width: 100%;
    }

    .siteinapp-account__project-footer > .fi-btn {
        justify-content: center;
        width: 100%;
    }
}
