/* =========================================================
   PROFILE V2 — BASE
   ========================================================= */
.profile-page-v2 {
    --profile-primary: var(--color-primary, #6756c8);
    --profile-primary-hover: var(--color-primary-hover, #5949b8);
    --profile-text: var(--color-text-primary, #15182b);
    --profile-muted: var(--color-text-secondary, #697087);
    --profile-border: var(--color-border, #e2e5ee);
    --profile-surface: var(--color-surface, #fff);
    --profile-success: var(--color-success, #27a844);
    width: 100%;
    min-width: 0;
    color: var(--profile-text);
}

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

.profile-page-v2 a {
    text-decoration: none;
}

.profile-page-v2__stack {
    display: grid;
    gap: 14px;
}

.profile-v2-button {
    min-height: 40px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--profile-primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.profile-v2-button:hover,
.profile-v2-button:focus-visible {
    color: #fff;
    background: var(--profile-primary-hover);
}

.profile-v2-button--danger {
    background: #dc4955;
}

.profile-v2-button--danger:hover,
.profile-v2-button--danger:focus-visible {
    background: #c93c47;
}

.profile-v2-hero {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    background: var(--profile-surface);
    border: 1px solid var(--profile-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(30, 33, 55, .04);
}

.profile-v2-card {
    min-width: 0;
    padding: 18px 20px;
}

.profile-v2-card+.profile-v2-card {
    border-left: 1px solid var(--profile-border);
}

.profile-v2-user {
    min-width: 0;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}

.profile-v2-avatar {
    position: relative;
    width: 112px;
    height: 112px;
}

.profile-v2-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--profile-border);
    background: #f1f2f7;
}

.profile-v2-avatar__camera {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--profile-border);
    border-radius: 50%;
    background: #fff;
    color: var(--profile-muted);
    box-shadow: 0 4px 12px rgba(30, 33, 55, .10);
}

.profile-v2-avatar__camera svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.profile-v2-user__main {
    min-width: 0;
}

.profile-v2-user__top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.profile-v2-user__name {
    margin: 0;
    font-size: clamp(20px, 1.6vw, 24px);
    line-height: 1.15;
    font-weight: 700;
}

.profile-v2-status {
    padding: 4px 9px;
    border-radius: 6px;
    background: #eaf7ed;
    color: #23853a;
    font-size: 11px;
    font-weight: 700;
}

.profile-v2-status--off {
    background: #fff0f1;
    color: #b5323e;
}

.profile-v2-user__id {
    margin-top: 6px;
    color: var(--profile-muted);
    font-size: 13px;
}

.profile-v2-meta {
    margin-top: 17px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}

.profile-v2-meta__item {
    min-width: 0;
}

.profile-v2-meta__item+.profile-v2-meta__item {
    padding-left: 22px;
    border-left: 1px solid var(--profile-border);
}

.profile-v2-meta__label {
    display: block;
    color: var(--profile-muted);
    font-size: 11px;
}

.profile-v2-meta__value {
    margin-top: 4px;
    display: block;
    font-size: 13px;
    font-weight: 700;
}

.profile-v2-meta__link {
    margin-top: 6px;
    display: inline-flex;
    color: var(--profile-primary);
    font-size: 12px;
    font-weight: 600;
}

.profile-v2-user__actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-v2-user__actions .profile-v2-button {
    min-height: 34px;
    padding-inline: 11px;
    font-size: 11px;
}

.profile-v2-connections__title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
}

.profile-v2-connections {
    display: grid;
    gap: 6px;
}

.profile-v2-connection {
    min-height: 44px;
    display: grid;
    grid-template-columns: 36px minmax(110px, 1fr) auto minmax(80px, auto);
    gap: 9px;
    align-items: center;
}

.profile-v2-connection__icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--profile-primary);
}

.profile-v2-connection__icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.profile-v2-connection__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
}

.profile-v2-connection__status {
    color: var(--profile-success);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.profile-v2-connection__status--off {
    color: #9a6470;
}

.profile-v2-connection__value {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--profile-muted);
    font-size: 11px;
    text-align: right;
}

.profile-v2-section-title {
    margin: 0 0 8px 2px;
    font-size: 13px;
    font-weight: 700;
}

.profile-v2-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.profile-v2-stat {
    min-width: 0;
    min-height: 82px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 8px;
    align-items: center;
    color: inherit;
    background: var(--profile-surface);
    border: 1px solid var(--profile-border);
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(30, 33, 55, .03);
}

.profile-v2-stat:hover {
    color: inherit;
    border-color: #d3cdef;
}

.profile-v2-stat__label {
    min-height: 28px;
    color: var(--profile-muted);
    font-size: 11px;
    line-height: 1.25;
}

.profile-v2-stat__value {
    margin-top: 5px;
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
}

.profile-v2-stat__value small {
    color: var(--profile-muted);
    font-size: 10px;
    font-weight: 500;
}

.profile-v2-stat__chart {
    width: 100%;
    color: #7768ef;
}

.profile-v2-stat__chart svg {
    width: 100%;
    height: 38px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.profile-v2-stat__donut {
    width: 48px;
    height: 48px;
    margin-left: auto;
    border-radius: 50%;
    background: conic-gradient(var(--profile-primary) 0 72%, #bcb4f4 72% 88%, #ebe8ff 88% 100%);
    position: relative;
}

.profile-v2-stat__donut::after {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: #fff;
}

.profile-v2-details,
.profile-v2-help {
    border: 1px solid var(--profile-border);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.profile-v2-details summary,
.profile-v2-help summary {
    min-height: 44px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    list-style: none;
}

.profile-v2-details summary::-webkit-details-marker,
.profile-v2-help summary::-webkit-details-marker {
    display: none;
}

.profile-v2-details__body,
.profile-v2-help__body {
    padding: 4px 14px 14px;
    border-top: 1px solid var(--profile-border);
}

.profile-v2-details__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding-top: 10px;
}

.profile-v2-details__title {
    margin: 10px 0 7px;
    font-size: 12px;
    font-weight: 700;
}

.profile-v2-details__row {
    padding: 4px 0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--profile-muted);
    font-size: 11px;
}

.profile-v2-details__row strong {
    color: var(--profile-text);
}

.profile-v2-details__links {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.profile-v2-details__links a {
    color: var(--profile-primary);
    font-size: 11px;
    font-weight: 600;
}

.profile-v2-help__iframe {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #11152a;
}

.profile-v2-help__iframe iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.profile-v2-auth {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid var(--profile-border);
    border-radius: 12px;
    background: #fff;
}

.profile-v2-auth__actions {
    margin-bottom: 14px;
    display: flex;
    justify-content: flex-end;
}

.profile-v2-auth__video {
    margin-top: 18px;
}

/* =========================================================
   ALERTS
   ========================================================= */
.profile-v2-alert-center {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.profile-v2-alert {
    overflow: hidden;

    margin: 0;

    background: #fff;
    border: 1px solid #eadcdf;
    border-left: 4px solid #dc3942;
    border-radius: 12px;

    box-shadow: 0 5px 18px rgba(31, 35, 54, .05);
}

.profile-v2-alert__summary {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto 24px;
    align-items: center;
    gap: 12px;

    min-height: 64px;

    padding: 12px 16px;

    cursor: pointer;
    list-style: none;

    background: #fffafa;
}

.profile-v2-alert__summary::-webkit-details-marker {
    display: none;
}

.profile-v2-alert__icon {
    width: 40px;
    height: 40px;

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

    flex: 0 0 40px;

    border-radius: 10px;

    color: #d9363e;
    background: #ffe8ea;

    font-size: 18px;
}

.profile-v2-alert__heading {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 3px;
}

.profile-v2-alert__heading strong {
    color: #191b2e;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.profile-v2-alert__heading span {
    color: #777d90;

    font-size: 12px;
    line-height: 1.4;
}

.profile-v2-alert__badge {
    padding: 6px 10px;

    color: #ba2d34;
    background: #ffe6e8;

    border-radius: 999px;

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

    white-space: nowrap;
}

.profile-v2-alert__chevron {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #8b8fa0;

    transition: transform .2s ease;
}

.profile-v2-alert[open] .profile-v2-alert__chevron {
    transform: rotate(180deg);
}

.profile-v2-alert__body {
    padding: 16px;

    border-top: 1px solid #f1e7e8;

    background: #fff;
}

.profile-v2-alert__message {
    margin-bottom: 14px;

    color: #656b7d;

    font-size: 13px;
    line-height: 1.5;
}

.profile-v2-alert__message strong {
    display: block;

    margin-bottom: 3px;

    color: #292c3e;
}

.profile-v2-alert__message p {
    margin: 0;
}

.profile-v2-alert__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-v2-alert__button {
    display: grid;

    grid-template-columns: 34px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;

    min-width: 230px;
    min-height: 52px;

    padding: 8px 11px;

    border-radius: 10px;

    color: #fff !important;
    background: #dc3942;

    text-decoration: none !important;

    box-shadow: 0 5px 15px rgba(220, 57, 66, .19);

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

.profile-v2-alert__button:hover {
    color: #fff !important;
    background: #c92f38;

    transform: translateY(-1px);

    box-shadow: 0 8px 20px rgba(220, 57, 66, .26);
}

.profile-v2-alert__button-icon {
    width: 34px;
    height: 34px;

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

    border-radius: 8px;

    background: rgba(255, 255, 255, .14);

    font-size: 15px;
}

.profile-v2-alert__button-content {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 1px;
}

.profile-v2-alert__button-content strong {
    color: #fff;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.profile-v2-alert__button-content small {
    color: rgba(255, 255, 255, .70);

    font-size: 9px;
    line-height: 1.2;
}

.profile-v2-alert__button-arrow {
    font-size: 14px;
}

/* ===== Alert variants ===== */

.profile-v2-alert--danger {
    border-color: #eadcdf;
    border-left-color: #dc3942;
}

.profile-v2-alert--danger .profile-v2-alert__summary {
    background: #fffafa;
}

.profile-v2-alert--danger .profile-v2-alert__icon {
    color: #d9363e;
    background: #ffe8ea;
}

.profile-v2-alert--danger .profile-v2-alert__badge {
    color: #ba2d34;
    background: #ffe6e8;
}



.profile-v2-alert--warning {
    border-color: #eee0b8;
    border-left-color: #d98a12;
}

.profile-v2-alert--warning .profile-v2-alert__summary {
    background: #fffdf7;
}

.profile-v2-alert--warning .profile-v2-alert__icon {
    color: #b96d00;
    background: #fff0cf;
}

.profile-v2-alert--warning .profile-v2-alert__badge {
    color: #996000;
    background: #fff0cf;
}

.profile-v2-alert--warning .profile-v2-alert__message {
    background: #fffaf0;
}

.profile-v2-alert__button--danger {
    color: #fff !important;
    background: #dc3942;
}

.profile-v2-alert__button--danger:hover,
.profile-v2-alert__button--danger:focus-visible {
    color: #fff !important;
    background: #c92f38;
}

.profile-v2-alert__button--warning {
    color: #fff !important;
    background: #d98a12;
    box-shadow: 0 5px 14px rgba(217, 138, 18, .23);
}

.profile-v2-alert__button--warning:hover,
.profile-v2-alert__button--warning:focus-visible {
    color: #fff !important;
    background: #c67909;
}

.profile-v2-alert__button:active {
    transform: translateY(0);
}

/* =========================================================
   SETTING ATTENTION
   ========================================================= */
.settings-v2-card.is-attention {
    border-color: #6756c8 !important;
    box-shadow:
        0 0 0 4px rgba(103, 86, 200, .18),
        0 12px 32px rgba(37, 40, 59, .14);

    animation: settingAttentionPulse .65s ease-in-out 3;
}

@keyframes settingAttentionPulse {

    0%,
    100% {
        transform: scale(1);
        background-color: #fff;
    }

    50% {
        transform: scale(1.008);
        background-color: #f4f1ff;
        box-shadow:
            0 0 0 6px rgba(103, 86, 200, .22),
            0 14px 34px rgba(37, 40, 59, .16);
    }
}

/* =========================================================
   PROMO
   ========================================================= */
.profile-v2-promo {
    position: relative;
    overflow: hidden;

    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 18px;

    padding: 18px 20px;
    margin-bottom: 18px;

    color: #fff;

    background:
        radial-gradient(circle at 10% 0%, rgba(255, 255, 255, .16), transparent 35%),
        linear-gradient(120deg, #29244f 0%, #5144b7 50%, #725be0 100%);

    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;

    box-shadow: 0 12px 34px rgba(61, 49, 143, .20);
}

/* visual */

.profile-v2-promo__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-v2-promo__visual-icon {
    width: 52px;
    height: 52px;

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

    border-radius: 14px;

    color: #5144b7;
    background: #fff;

    font-size: 21px;

    box-shadow: 0 8px 22px rgba(18, 12, 55, .20);
}

.profile-v2-promo__visual-caption {
    display: none;
}

/* content */

.profile-v2-promo__content {
    min-width: 0;
}

.profile-v2-promo__badge {
    display: inline-flex;

    margin-bottom: 6px;
    padding: 4px 8px;

    border-radius: 999px;

    background: rgba(255, 255, 255, .11);
    color: rgba(255, 255, 255, .90);

    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.profile-v2-promo__title {
    display: block;

    margin-bottom: 4px;

    font-size: 16px;
    line-height: 1.3;
}

.profile-v2-promo__text {
    display: block;

    max-width: 520px;

    color: rgba(255, 255, 255, .72);

    font-size: 12px;
    line-height: 1.45;
}

.profile-v2-promo__progress {
    overflow: hidden;

    max-width: 420px;
    height: 4px;

    margin-top: 11px;

    border-radius: 999px;

    background: rgba(255, 255, 255, .13);
}

.profile-v2-promo__progress-bar {
    width: 100%;
    height: 100%;

    background: #fff;

    border-radius: inherit;

    transition: width .7s linear;
}

/* timer */

.profile-v2-promo__time-label {
    display: block;

    margin-bottom: 6px;

    color: rgba(255, 255, 255, .55);

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

    text-align: center;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.profile-v2-promo__timer {
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.profile-v2-promo__timer-item {
    width: 46px;

    text-align: center;
}

.profile-v2-promo__timer-item strong {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 36px;

    border-radius: 8px;

    background: rgba(16, 13, 47, .28);
    border: 1px solid rgba(255, 255, 255, .10);

    font-size: 18px;
    font-weight: 700;
}

.profile-v2-promo__timer-item span {
    display: block;

    margin-top: 4px;

    color: rgba(255, 255, 255, .48);

    font-size: 9px;
}

.profile-v2-promo__separator {
    padding-top: 5px;

    color: rgba(255, 255, 255, .50);

    font-size: 18px;
}

/* action */

.profile-v2-promo__action {
    min-width: 180px;
}

.profile-v2-promo__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 44px;
    padding: 10px 15px;

    border-radius: 9px;

    background: #fff;
    color: #5144b7 !important;

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

    text-decoration: none !important;

    box-shadow: 0 8px 20px rgba(17, 13, 50, .18);
}

.profile-v2-promo__hint {
    display: block;

    margin-top: 5px;

    color: rgba(255, 255, 255, .42);

    font-size: 9px;
    text-align: center;
}

/* ===== Promo states ===== */

.profile-v2-promo__button {
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background-color .18s ease;
}

.profile-v2-promo__button:hover,
.profile-v2-promo__button:focus-visible {
    color: #4539a3 !important;
    background: #f8f6ff;
    transform: translateY(-2px);
    box-shadow: 0 11px 26px rgba(17, 13, 50, .24);
}

.profile-v2-promo__button:active {
    transform: translateY(0);
}

.profile-v2-promo__button i {
    transition: transform .18s ease;
}

.profile-v2-promo__button:hover i {
    transform: translateX(3px);
}

.profile-v2-promo.is-urgent {
    box-shadow:
        0 12px 38px rgba(108, 69, 213, .30),
        inset 0 1px 0 rgba(255, 255, 255, .10);
}

.profile-v2-promo.is-urgent .profile-v2-promo__timer-item strong {
    animation: promoTimerPulse 1.7s ease-in-out infinite;
}

@keyframes promoTimerPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(255, 255, 255, .08);
    }
}

.profile-v2-promo.is-expired {
    opacity: 0;
    transform: translateY(-8px);
    transition:
        opacity .35s ease,
        transform .35s ease;
}

.profile-v2-alert--info {
    border-color: #ded9fa;
    border-left-color: #6756c8;
}

.profile-v2-alert--info .profile-v2-alert__summary {
    background: #faf9ff;
}

.profile-v2-alert--info .profile-v2-alert__icon {
    color: #6756c8;
    background: #ebe7ff;
}

.profile-v2-alert--info .profile-v2-alert__badge {
    color: #5949b8;
    background: #ebe7ff;
}

.profile-v2-alert--info .profile-v2-alert__chevron {
    color: #6756c8;
}

.profile-v2-alert__video {
    position: relative;

    width: 100%;
    height: 0;

    padding-bottom: 56.25%;

    overflow: hidden;

    border-radius: 10px;
    background: #11152a;
}

.profile-v2-alert__video iframe {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    border: 0;
}

.sidebar__footer a {
    color: inherit;
}


.profile-v2-card--profile {
    display: flex;
    align-items: center;
}

.profile-v2-button--secondary {
    color: var(--profile-primary) !important;
    background: #f2f0fb;
}

.profile-v2-button--secondary:hover,
.profile-v2-button--secondary:focus-visible {
    color: var(--profile-primary-hover) !important;
    background: #eae7f8;
}

.profile-v2-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.profile-v2-status i {
    font-size: 6px;
}

.profile-v2-meta__date {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 5px;
    color: var(--profile-text);
    font-size: 13px;
}

.profile-v2-meta__date-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--profile-primary);
    background: #f0edff;
    font-size: 14px;
}

.profile-v2-card--channels {
    min-width: 0;
}

.profile-v2-channels__header {
    margin-bottom: 13px;
}

.profile-v2-channels__title {
    margin: 0;
    color: var(--profile-text);
    font-size: 14px;
    font-weight: 700;
}

.profile-v2-channels__description {
    margin: 3px 0 0;
    color: var(--profile-muted);
    font-size: 11px;
    line-height: 1.4;
}

.profile-v2-channels {
    display: grid;
    gap: 8px;
}

.profile-v2-channel {
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 10px;
    border: 1px solid var(--profile-border);
    border-radius: 10px;
    background: #fff;
    transition:
        border-color .18s ease,
        background-color .18s ease,
        box-shadow .18s ease;
}

.profile-v2-channel.is-connected {
    border-color: #dceadf;
    background: #fcfffc;
}

.profile-v2-channel.is-warning {
    border-color: #efd6a6;
    background: #fffdf8;
}

.profile-v2-channel.is-error {
    border-color: #efd6a6;
    background: #fffdf8;
}


.profile-v2-channel__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.profile-v2-channel__icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.profile-v2-channel__icon--telegram {
    color: #168bd2;
    background: #e8f6ff;
}

.profile-v2-channel__icon--vk {
    color: #3979db;
    background: #eaf2ff;
}

.profile-v2-channel__icon--phone {
    color: #6756c8;
    background: #efecff;
}

.profile-v2-channel__content {
    min-width: 0;
}

.profile-v2-channel__top {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 8px;
}

.profile-v2-channel__name {
    color: var(--profile-text);
    font-size: 12px;
    font-weight: 700;
}

.profile-v2-channel__status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #9095a6;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.profile-v2-channel__status.is-success {
    color: #289044;
}

.profile-v2-channel__status.is-warning {
    color: #c07a0c;
}

.profile-v2-channel__status.is-pending {
    color: #7565bf;
}

.profile-v2-channel__status i {
    font-size: 9px;
}

.profile-v2-channel__value {
    margin-top: 4px;
    color: #656b7d;
    font-size: 11px;
}

.profile-v2-channel__value strong {
    color: var(--profile-text);
    font-weight: 700;
}

.profile-v2-channel__username {
    margin-left: 5px;
    color: var(--profile-muted);
}

.profile-v2-channel__hint {
    margin-top: 3px;
    color: #9095a6;
    font-size: 9px;
    line-height: 1.35;
}

.profile-v2-channel__hint--warning {
    color: #a96b09;
}

.profile-v2-channel__action {
    min-width: 92px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
}

.profile-v2-channel__button {
    min-width: 110px;
    min-height: 34px;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 8px;
    color: #fff !important;
    background: var(--profile-primary);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none !important;
    transition:
        background-color .18s ease,
        transform .18s ease;
}

.profile-v2-channel__button:hover,
.profile-v2-channel__button:focus-visible {
    color: #fff !important;
    background: var(--profile-primary-hover);
    transform: translateY(-1px);
}

.profile-v2-channel__button--secondary {
    color: var(--profile-primary) !important;
    background: #f0edff;
}

.profile-v2-channel__button--secondary:hover,
.profile-v2-channel__button--secondary:focus-visible {
    color: var(--profile-primary-hover) !important;
    background: #e8e4fb;
}

.profile-v2-channel__check {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--profile-primary);
    font-size: 9px;
    font-weight: 600;
    text-decoration: none !important;
}

/* =========================================================
   RESPONSIVE — LAPTOP
   ========================================================= */
@media (max-width: 1199px) {
    .profile-v2-hero {
        grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr);
    }

    .profile-v2-user {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 14px;
    }

    .profile-v2-avatar {
        width: 92px;
        height: 92px;
    }

    .profile-v2-card {
        padding: 16px;
    }
}

/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */
@media (max-width: 1023px) {
    .profile-v2-hero {
        grid-template-columns: 1fr;
    }

    .profile-v2-card+.profile-v2-card {
        border-left: 0;
        border-top: 1px solid var(--profile-border);
    }

    .profile-v2-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-v2-details__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-v2-hero {
        grid-template-columns: 1fr;
    }

    .profile-v2-card+.profile-v2-card {
        border-left: 0;
        border-top: 1px solid var(--profile-border);
    }
}

@media (max-width: 1023px) {
    .profile-v2-promo {
        grid-template-columns: 56px minmax(0, 1fr) auto;
        gap: 14px;
    }

    .profile-v2-promo__visual {
        grid-column: 1;
        grid-row: 1;
    }

    .profile-v2-promo__content {
        grid-column: 2;
        grid-row: 1;
    }

    .profile-v2-promo__time {
        grid-column: 3;
        grid-row: 1;
        min-width: 170px;
    }

    .profile-v2-promo__action {
        grid-column: 2 / -1;
        grid-row: 2;
        min-width: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .profile-v2-promo__button {
        min-width: 180px;
    }

    .profile-v2-promo__hint {
        margin-top: 0;
        text-align: left;
    }
}

/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */
@media (max-width: 767px) {
    .profile-page-v2__stack {
        gap: 12px;
    }

    .profile-v2-hero {
        border-radius: 10px;
    }

    .profile-v2-user {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 12px;
    }

    .profile-v2-avatar {
        width: 82px;
        height: 82px;
    }

    .profile-v2-avatar__camera {
        width: 30px;
        height: 30px;
    }

    .profile-v2-card {
        padding: 14px;
    }

    .profile-v2-meta {
        margin-top: 14px;
    }

    .profile-v2-meta__item+.profile-v2-meta__item {
        padding-left: 14px;
    }

    .profile-v2-user__actions {
        grid-column: 1 / -1;
    }

    .profile-v2-connection {
        min-height: 48px;
        grid-template-columns: 36px minmax(90px, 1fr) auto;
    }

    .profile-v2-connection__value {
        grid-column: 2 / -1;
        max-width: none;
        margin-top: -8px;
        text-align: left;
    }

    .profile-v2-stats {
        gap: 8px;
    }

    .profile-v2-stat {
        min-height: 94px;
        padding: 11px;
        grid-template-columns: minmax(0, 1fr) 68px;
    }

    .profile-v2-stat__value {
        font-size: 19px;
    }

    .profile-v2-details__grid {
        grid-template-columns: 1fr;
    }

    .settings-v2-card {
        position: relative;
        scroll-margin-top: 90px;
    }
}

@media (max-width: 767px) {

    .profile-v2-promo {
        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 0;

        border-radius: 16px;
    }

    /* полноценная верхняя шапка */

    .profile-v2-promo__visual {
        width: 100%;
        min-height: 108px;

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

        gap: 9px;

        padding: 16px;

        background:
            radial-gradient(circle at 50% 0%,
                rgba(255, 255, 255, .18),
                transparent 65%),
            rgba(255, 255, 255, .035);

        border-bottom: 1px solid rgba(255, 255, 255, .10);
    }

    .profile-v2-promo__visual-icon {
        width: 52px;
        height: 52px;

        border-radius: 16px;

        font-size: 22px;

        box-shadow:
            0 10px 28px rgba(15, 10, 50, .25),
            0 0 0 6px rgba(255, 255, 255, .07);
    }

    .profile-v2-promo__visual-caption {
        display: block;

        color: rgba(255, 255, 255, .68);

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

        text-align: center;
        text-transform: uppercase;
        letter-spacing: .09em;
    }

    /* текст теперь реально 100% */

    .profile-v2-promo__content {
        width: 100%;

        padding: 18px 16px;
    }

    .profile-v2-promo__badge {
        margin-bottom: 9px;
    }

    .profile-v2-promo__title {
        width: 100%;

        margin-bottom: 7px;

        font-size: 18px;
    }

    .profile-v2-promo__text {
        width: 100%;
        max-width: none;

        font-size: 13px;
        line-height: 1.5;
    }

    .profile-v2-promo__progress {
        width: 100%;
        max-width: none;

        height: 5px;

        margin-top: 15px;
    }

    /* таймер отдельным полноценным блоком */

    .profile-v2-promo__time {
        width: auto;

        margin: 0 16px;
        padding: 14px;

        border-radius: 12px;

        background: rgba(15, 12, 46, .20);
        border: 1px solid rgba(255, 255, 255, .08);
    }

    .profile-v2-promo__time-label {
        margin-bottom: 10px;
    }

    .profile-v2-promo__timer {
        display: grid;

        grid-template-columns:
            minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr);

        width: 100%;
    }

    .profile-v2-promo__timer-item {
        width: 100%;
    }

    .profile-v2-promo__timer-item strong {
        width: 100%;
        height: 50px;

        font-size: 24px;
    }

    .profile-v2-promo__separator {
        display: flex;
        align-items: center;
        justify-content: center;

        height: 50px;

        padding: 0;
    }

    /* кнопка снизу */

    .profile-v2-promo__action {
        width: 100%;

        padding: 16px;
    }

    .profile-v2-promo__button {
        width: 100%;
        min-height: 50px;

        font-size: 14px;

        border-radius: 10px;
    }

    .profile-v2-promo__hint {
        margin-top: 7px;
    }
}

@media (max-width: 767px) {

    .profile-v2-alert {
        width: 100%;

        margin-bottom: 12px;

        border-left-width: 1px;
        border-top: 4px solid #dc3942;

        border-radius: 14px;
    }

    /* ШАПКА */

    .profile-v2-alert__summary {
        display: grid !important;

        grid-template-columns: 46px minmax(0, 1fr) 28px;
        grid-template-areas:
            "icon heading chevron"
            "badge badge badge";

        gap: 10px 12px;

        width: 100%;
        min-height: 0;

        padding: 14px;

        align-items: center;
    }

    .profile-v2-alert__icon {
        grid-area: icon;

        width: 46px;
        height: 46px;

        border-radius: 12px;

        font-size: 20px;
    }

    .profile-v2-alert__heading {
        grid-area: heading;

        width: 100%;
        min-width: 0;
    }

    .profile-v2-alert__heading strong {
        font-size: 14px;
        line-height: 1.25;
    }

    .profile-v2-alert__heading span {
        margin-top: 2px;

        font-size: 11px;
        line-height: 1.35;
    }

    .profile-v2-alert__chevron {
        grid-area: chevron;

        width: 28px;
        height: 28px;

        border-radius: 8px;

        background: rgba(220, 57, 66, .07);
    }

    .profile-v2-alert__badge {
        grid-area: badge;

        justify-self: start;

        display: inline-flex;
        align-items: center;

        margin-top: 2px;
        padding: 5px 8px;

        font-size: 9px;
    }

    /* ТЕЛО */

    .profile-v2-alert__body {
        width: 100%;

        padding: 14px;
    }

    .profile-v2-alert__message {
        width: 100%;

        margin-bottom: 12px;
        padding: 11px 12px;

        border-radius: 9px;

        background: #fff6f6;

        font-size: 12px;
    }

    /* CTA */

    .profile-v2-alert__actions {
        display: grid;

        grid-template-columns: 1fr;

        width: 100%;
        gap: 8px;
    }

    .profile-v2-alert__button {
        width: 100%;
        min-width: 0;
        min-height: 58px;

        grid-template-columns: 38px minmax(0, 1fr) 20px;
        gap: 11px;

        padding: 9px 11px;

        border-radius: 11px;

        text-align: left;
    }

    .profile-v2-alert__button-icon {
        width: 38px;
        height: 38px;

        border-radius: 9px;

        font-size: 17px;
    }

    .profile-v2-alert__button-content strong {
        font-size: 13px;
    }

    .profile-v2-alert__button-content small {
        margin-top: 2px;

        font-size: 10px;
    }

    .profile-v2-alert__button-arrow {
        justify-self: end;

        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .profile-v2-alert--warning {
        border-top-color: #d98a12;
    }

    .profile-v2-alert--warning .profile-v2-alert__chevron {
        background: rgba(217, 138, 18, .08);
    }
}

@media (max-width: 767px) {
    .profile-v2-user {
        align-items: start;
    }

    .profile-v2-meta {
        grid-template-columns: 1fr 1fr;
    }

    .profile-v2-user__actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .profile-v2-user__actions .profile-v2-button {
        width: 100%;
        min-height: 44px;
    }

    .profile-v2-channels__header {
        margin-bottom: 12px;
    }

    .profile-v2-channels__title {
        font-size: 15px;
    }

    .profile-v2-channel {
        grid-template-columns: 42px minmax(0, 1fr);
        grid-template-areas:
            "icon content"
            "action action";
        gap: 10px 11px;
        padding: 12px;
        border-radius: 11px;
    }

    .profile-v2-channel__icon {
        grid-area: icon;
    }

    .profile-v2-channel__content {
        grid-area: content;
    }

    .profile-v2-channel__action {
        grid-area: action;
        width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .profile-v2-channel__button {
        width: 100%;
        min-height: 44px;
        font-size: 12px;
    }

    .profile-v2-channel__check {
        min-height: 38px;
        border-radius: 8px;
        background: #f3f0ff;
        font-size: 11px;
    }

    .profile-v2-channel__name {
        font-size: 13px;
    }

    .profile-v2-channel__value {
        font-size: 11px;
    }

    .profile-v2-channel__hint {
        font-size: 10px;
    }
}


/* =========================================================
   RESPONSIVE — SMALL MOBILE
   ========================================================= */
@media (max-width: 420px) {
    .profile-v2-user {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .profile-v2-avatar {
        width: 72px;
        height: 72px;
    }

    .profile-v2-user__name {
        font-size: 19px;
    }

    .profile-v2-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-v2-stat {
        grid-template-columns: 1fr;
        min-height: 105px;
    }

    .profile-v2-stat__chart,
    .profile-v2-stat__donut {
        display: none;
    }
}

@media (max-width: 420px) {
    .profile-v2-meta {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .profile-v2-meta__item+.profile-v2-meta__item {
        padding-left: 0;
        padding-top: 12px;
        border-left: 0;
        border-top: 1px solid var(--profile-border);
    }
}

@media (max-width: 359px) {
    .profile-v2-promo__content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .profile-v2-promo__time {
        margin-left: 14px;
        margin-right: 14px;
        padding-left: 9px;
        padding-right: 9px;
    }

    .profile-v2-promo__action {
        padding-left: 14px;
        padding-right: 14px;
    }

    .profile-v2-promo__title {
        font-size: 17px;
    }

    .profile-v2-promo__timer-item strong {
        height: 46px;
        font-size: 20px;
    }

    .profile-v2-alert__summary,
    .profile-v2-alert__body {
        padding-left: 12px;
        padding-right: 12px;
    }

    .profile-v2-alert__summary {
        grid-template-columns: 42px minmax(0, 1fr) 26px;
        gap: 9px;
    }

    .profile-v2-alert__icon {
        width: 42px;
        height: 42px;
    }

    .profile-v2-alert__heading strong {
        font-size: 13px;
    }

    .profile-v2-alert__button {
        grid-template-columns: 36px minmax(0, 1fr) 18px;
    }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */
@media (prefers-reduced-motion: reduce) {

    .profile-v2-promo,
    .profile-v2-promo *,
    .profile-v2-alert__button,
    .profile-v2-alert__chevron,
    .settings-v2-card.is-attention {
        animation: none !important;
        transition: none !important;
    }
}