.profile-home {
    --home-primary: var(--color-primary, #6756c8);
    --home-primary-hover: var(--color-primary-hover, #5949b8);
    --home-text: var(--color-text-primary, #15182b);
    --home-muted: var(--color-text-secondary, #000);
    --home-border: var(--color-border, #e2e5ee);
    color: var(--home-text);
    font-family: var(--font-family-base, "Montserrat", Arial, sans-serif);
    width: 100%;
    min-width: 0;
    padding-bottom: 24px;
}

.profile-home *,
.profile-home *::before,
.profile-home *::after {
    box-sizing: border-box;
}

.profile-home a {
    text-decoration: none;
}

.profile-home button,
.profile-home a {
    -webkit-tap-highlight-color: transparent;
}

.profile-home__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.profile-home__header h1 {
    margin: 0 0 3px;
    color: var(--home-text);
    font-size: clamp(22px, 2.3vw, 28px);
    font-weight: 800;
    line-height: 1.2;
}

.profile-home__header p {
    margin: 0;
    color: var(--home-muted);
    font-size: 13px;
    line-height: 1.5;
}

.profile-home__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.profile-home__button--primary {
    color: #fff;
    background: var(--home-primary);
}

.profile-home__button--primary:hover,
.profile-home__button--primary:focus-visible {
    color: #fff;
    background: var(--home-primary-hover);
    box-shadow: 0 5px 14px rgba(103, 86, 200, .16);
}

.profile-home__button--outline {
    border-color: #d9dced;
    color: var(--home-text);
    background: #fff;
}

.profile-home__button--outline:hover,
.profile-home__button--outline:focus-visible {
    border-color: var(--home-primary);
    color: var(--home-primary);
    background: #faf9ff;
}

.profile-home__button--danger-outline {
    border-color: #f1d4d9;
    color: #b73548;
    background: #fff;
}

.profile-home__button--danger-outline:hover,
.profile-home__button--danger-outline:focus-visible {
    border-color: #d84a59;
    color: #b73548;
    background: #fff5f6;
}

.profile-home__button--white {
    flex: 0 0 auto;
    color: #42349d;
    background: #fff;
}

.profile-home__button--white:hover,
.profile-home__button--white:focus-visible {
    color: #42349d;
    background: #f7f4ff;
}

.profile-home__notice {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 17px;
    padding: 13px 15px;
    border: 1px solid #d2ddef;
    border-radius: 11px;
    background: #f6f9ff;
    color: #315d9a;
    font-size: 12px;
    line-height: 1.5;
}

.profile-home__notice--success {
    border-color: #bfebd3;
    color: #16734e;
    background: #f1fff8;
}

.profile-home__notice--warning {
    border-color: #f0d4a8;
    color: #935d14;
    background: #fffaf0;
}

.profile-home__notice i {
    font-size: 19px;
}

.profile-home .profile-v2-promo[hidden] {
    display: none;
}

.profile-home__alert {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-width: 0;
    margin-bottom: 22px;
    padding: 26px 28px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 15px;
    background: linear-gradient(112deg, #4f419f 0%, #695ad2 100%);
    box-shadow: 0 12px 30px rgba(69, 61, 145, .12);
    color: #fff;
}

.profile-home__alert-icon {
    display: inline-flex;
    flex: 0 0 59px;
    align-items: center;
    justify-content: center;
    width: 59px;
    height: 59px;
    margin-top: 3px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .14);
    font-size: 30px;
}

.profile-home__alert-content {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    gap: 18px;
}

.profile-home__alert-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.profile-home__alert-heading>div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

.profile-home__alert-heading>div>strong {
    font-size: clamp(18px, 1.8vw, 23px);
    line-height: 1.2;
    font-weight: 800;
}

.profile-home__alert-heading>div>span {
    max-width: 780px;
    color: rgba(255, 255, 255, .86);
    font-size: 12px;
    line-height: 1.55;
}

.profile-home__alert-locked {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    min-width: 190px;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: rgba(255, 255, 255, .11);
    color: #fff;
}

.profile-home__alert-locked>i {
    font-size: 16px;
}

.profile-home__alert-locked>span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-home__alert-locked strong {
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
}

.profile-home__alert-locked small {
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    line-height: 1.3;
}


.profile-home__alert-available {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    min-width: 190px;
    padding: 11px 14px;
    border: 1px solid rgba(216, 255, 222, .2);
    border-radius: 10px;
    background: rgba(224, 255, 229, .12);
    color: #fff;
}

.profile-home__alert-available>i {
    color: #d7ffd9;
    font-size: 16px;
}

.profile-home__alert-available>span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-home__alert-available strong {
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
}

.profile-home__alert-available small {
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    line-height: 1.3;
}

.profile-home__alert-recovered {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.profile-home__alert-recovered-action {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.profile-home__alert-reconnect {
    align-self: flex-start;
    width: auto;
    min-width: 205px;
    max-width: 100%;
    padding-right: 20px;
    padding-left: 20px;
    white-space: nowrap;
}

.profile-home__alert-recovered-action>span {
    max-width: 420px;
    color: rgba(255, 255, 255, .7);
    font-size: 10px;
    line-height: 1.45;
}

.profile-home__alert-saved {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.profile-home__alert-saved span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .88);
    font-size: 11px;
    font-weight: 600;
}

.profile-home__alert-saved i {
    color: #d7ffd9;
    font-size: 13px;
}

.profile-home__alert-countdown {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.profile-home__alert-countdown-label {
    color: rgba(255, 255, 255, .68);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.profile-home__alert-countdown-time {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.profile-home__alert-countdown-item {
    display: flex;
    min-width: 54px;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.profile-home__alert-countdown-item strong {
    color: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: clamp(27px, 2.5vw, 36px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: .02em;
    font-variant-numeric: tabular-nums;
}

.profile-home__alert-countdown-item span {
    color: rgba(255, 255, 255, .6);
    font-size: 9px;
    font-weight: 600;
    line-height: 1.2;
}

.profile-home__alert-countdown-separator {
    margin-top: -1px;
    color: rgba(255, 255, 255, .52);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: clamp(27px, 2.5vw, 36px);
    font-weight: 700;
    line-height: 1;
}

.profile-home__alert-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.profile-home__alert-footer strong {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.profile-home__alert-footer span {
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    line-height: 1.45;
}

.profile-home__account,
.profile-home__subscription,
.profile-home__empty,
.profile-home__content-section>.profile-home__stats,
.profile-home__channel,
.profile-home__details-link {
    min-width: 0;
}

.profile-home__account,
.profile-home__subscription,
.profile-home__empty {
    border: 1px solid var(--home-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(27, 30, 55, .035);
}

.profile-home__account {
    padding: 14px 16px;
}

.profile-home__account h2,
.profile-home__content-section h2 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.profile-home__account-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.profile-home__identity {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 13px;
}

.profile-home__avatar {
    display: block;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #eef0f5;
    object-fit: cover;
}

.profile-home__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(145deg, #cdd1de, #e3e6f0);
    font-size: 34px;
}

.profile-home__avatar--placeholder svg {
    width: 36px;
    height: 36px;
}

.profile-home__identity-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 4px;
}

.profile-home__identity-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.profile-home__identity-title>strong {
    overflow-wrap: anywhere;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}

.profile-home__badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #edf0f7;
    color: #636d84;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.profile-home__badge--success {
    background: #e6f7ed;
    color: #0b8244;
}

.profile-home__badge--danger {
    background: #fff0f2;
    color: #bb3649;
}

.profile-home__identity-id {
    color: var(--home-muted);
    font-size: 12px;
}

.profile-home__identity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 1px;
}

.profile-home__identity-meta>div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.profile-home__identity-meta span {
    color: #000;
    font-size: 12px;
}

.profile-home__identity-meta strong {
    font-size: 12px;
    font-weight: 700;
}

.profile-home__account-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 1 auto;
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 0;
}

.profile-home__account-actions .profile-home__button {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 7px 10px;
    font-size: 11px;
    white-space: nowrap;
}

.profile-home__button--disabled {
    border-color: #e8eaf2;
    color: #9299aa;
    background: #f5f6fa;
    cursor: not-allowed;
}

.profile-home__account-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e9ebf2;
    color: var(--home-muted);
    font-size: 12px;
    line-height: 1.45;
}

.profile-home__account-foot i {
    color: #be4554;
    font-size: 16px;
}

.profile-home__content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.profile-home__content-section {
    min-width: 0;
}

.profile-home__content-section h2 {
    margin-bottom: 9px;
}

.profile-home__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.profile-home__stat {
    position: relative;
    min-width: 0;
    min-height: 100px;
    padding: 13px 14px;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    color: var(--home-text);
    background: #fff;
    box-shadow: 0 5px 17px rgba(27, 30, 55, .03);
    transition: background-color .16s ease, border-color .16s ease;
}

.profile-home__stat--summary {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 82px;
    background: linear-gradient(118deg, #f7f5ff 0%, #ffffff 88%);
}

.profile-home__stat-summary-content {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 14px;
}

.profile-home__stat-summary-icon {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--home-primary);
    background: #ede9ff;
    font-size: 20px;
}

.profile-home__stat-summary-content>div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-home__stat-label {
    color: var(--home-muted);
    font-size: 13px;
    line-height: 1.35;
}

.profile-home__stat-summary-value {
    color: var(--home-text);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.profile-home__stat-summary-hint,
.profile-home__stat-total {
    color: #8991a6;
    font-size: 12px;
    line-height: 1.4;
}

.profile-home__stat--metric {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profile-home a.profile-home__stat--metric:hover,
.profile-home a.profile-home__stat--metric:focus-visible {
    border-color: #bcb3eb;
    color: var(--home-text);
    background: #fbfaff;
}

.profile-home__stat--metric>.profile-home__stat-label {
    padding-right: 28px;
    min-height: 29px;
}

.profile-home__stat--metric>i {
    position: absolute;
    top: 15px;
    right: 16px;
    color: #a99cf0;
    font-size: 19px;
}

.profile-home__stat-count {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    color: var(--home-text);
    font-size: 23px;
    line-height: 1.12;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.profile-home__stat-count small {
    color: #9299ae;
    font-size: 12px;
    font-weight: 500;
}

.profile-home__details-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 44px;
    margin-top: 10px;
    padding: 12px 15px;
    border: 1px solid var(--home-border);
    border-radius: 11px;
    color: var(--home-primary);
    background: #fff;
    font-size: 12px;
    font-weight: 700;
}

.profile-home__details-link:hover,
.profile-home__details-link:focus-visible {
    color: var(--home-primary-hover);
    border-color: #bcb3eb;
}

.profile-home__channels {
    display: grid;
    gap: 10px;
}

.profile-home__channel {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 79px;
    padding: 12px 15px;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 17px rgba(27, 30, 55, .03);
}

.profile-home__channel-icon {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f0ecff;
    color: var(--home-primary);
    font-size: 19px;
}

.profile-home__channel-description {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.profile-home__channel-description strong {
    color: var(--home-text);
    font-size: 12px;
    font-weight: 800;
}

.profile-home__channel-description>span,
.profile-home__channel-description small {
    color: var(--home-muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.profile-home__channel-action {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--home-primary);
    background: #f1edff;
    font-size: 12px;
    font-weight: 700;
}

.profile-home__channel-action:hover,
.profile-home__channel-action:focus-visible {
    color: var(--home-primary-hover);
    background: #e8e2ff;
}

@media (max-width: 767.98px) {
    .profile-home__alert {
        gap: 14px;
        padding: 20px 18px;
    }

    .profile-home__alert-icon {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .profile-home__alert-heading {
        flex-direction: column;
        gap: 12px;
    }

    .profile-home__alert-locked {
        width: 100%;
        min-width: 0;
    }

    .profile-home__alert-available {
        width: 100%;
        min-width: 0;
    }

    .profile-home__alert-recovered-action {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-home__alert-reconnect {
        width: auto;
        min-width: 205px;
    }


    .profile-home__alert-countdown-time {
        gap: 7px;
    }
}

@media (max-width: 479.98px) {
    .profile-home__alert {
        flex-direction: column;
    }

    .profile-home__alert-content {
        width: 100%;
    }
}