
.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: #000;
    --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: 14px;
}

.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: 13px;
}

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

.profile-v2-meta__link {
    margin-top: 6px;
    display: inline-flex;
    color: var(--profile-primary);
    font-size: 14px;
    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: 15px;
    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: 14px;
    font-weight: 700;
}

.profile-v2-connection__status {
    color: var(--profile-success);
    font-size: 13px;
    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: 13px;
    text-align: right;
}

.profile-v2-section-title {
    margin: 0 0 8px 2px;
    font-size: 15px;
    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: 13px;
    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: 12px;
    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: 13px;
}

.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: 13px;
    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;
}

