/* Высота шапки от ширины колонки: те же пропорции, что у ПК (~945×260 → 189:52), без «полоски» на узком экране */
/* Заголовок имени на страницах профиля игрока (/users/view, newPage, stats, …) */
.user-profile-page-heading {
    font-size: 40px;
    font-family: 'Din Con', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
}

@media (max-width: 767px) {
    .user-profile-page-heading {
        font-size: 36px;
        font-weight: 700;
    }
}

.user-profile-head--hero {
    width: 100%;
    height: auto;
    aspect-ratio: 189 / 52;
    border-radius: 5px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.user-profile-head--hero::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.user-profile-head--hero.user-profile-head--no-overlay::after {
    display: none;
}

.user-profile-head--unified-bg.user-profile-head--no-overlay::before {
    display: none;
}

.user-profile-head--hero > * {
    position: relative;
    z-index: 1;
}

.user-profile-head--hero.user-profile-head--unified-bg::before {
    display: none;
}

.user-profile-head__notice {
    position: absolute;
    right: 12px;
    bottom: 10px;
    left: auto;
    top: auto;
    transform: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    max-width: calc(100% - 24px);
    padding: 0;
    margin: 0;
    text-align: left;
    color: #fff;
    z-index: 2;
}

.user-profile-head__edit,
.user-profile-head__grant-premium,
.user-profile-head__reset-avatar {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    font-size: 10px;
    line-height: 1.2;
    padding: 4px 10px;
    border-radius: 6px;
}

.user-profile-head__invite {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 16px;
    border-radius: 10px;
}

/* Светлая тема: кнопки на шапке (полупрозрачный фон фото + затемнение) */
html:not([data-theme="dark"]) .user-profile-head__edit,
html:not([data-theme="dark"]) .user-profile-head__grant-premium,
html:not([data-theme="dark"]) .user-profile-head__reset-avatar {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(15, 23, 42, 0.42);
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

html:not([data-theme="dark"]) .user-profile-head__edit:hover,
html:not([data-theme="dark"]) .user-profile-head__edit:focus,
html:not([data-theme="dark"]) .user-profile-head__grant-premium:hover,
html:not([data-theme="dark"]) .user-profile-head__grant-premium:focus,
html:not([data-theme="dark"]) .user-profile-head__reset-avatar:hover,
html:not([data-theme="dark"]) .user-profile-head__reset-avatar:focus {
    border-color: rgba(255, 255, 255, 0.75);
    background: rgba(15, 23, 42, 0.58);
    color: #fff !important;
}

html:not([data-theme="dark"]) .user-profile-head__grant-premium {
    border-color: rgba(255, 214, 120, 0.55);
    background: rgba(120, 75, 20, 0.55);
}

html:not([data-theme="dark"]) .user-profile-head__grant-premium:hover,
html:not([data-theme="dark"]) .user-profile-head__grant-premium:focus {
    border-color: rgba(255, 230, 160, 0.75);
    background: rgba(140, 90, 28, 0.65);
}

html:not([data-theme="dark"]) .user-profile-head__invite:not(.user-profile-head__invite--remove) {
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: linear-gradient(155deg, #22a53a 0%, #1a7a2e 55%, #145f24 100%);
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

html:not([data-theme="dark"]) .user-profile-head__invite:not(.user-profile-head__invite--remove):hover,
html:not([data-theme="dark"]) .user-profile-head__invite:not(.user-profile-head__invite--remove):focus {
    border-color: rgba(200, 255, 210, 0.85);
    color: #fff !important;
    background: linear-gradient(155deg, #28ba28 0%, #209020 55%, #187028 100%);
}

html:not([data-theme="dark"]) .user-profile-head__invite--remove {
    border: 1px solid rgba(255, 160, 160, 0.75);
    background: linear-gradient(155deg, #c62828 0%, #9b1c1c 55%, #7a1515 100%);
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

html:not([data-theme="dark"]) .user-profile-head__invite--remove:hover,
html:not([data-theme="dark"]) .user-profile-head__invite--remove:focus {
    border-color: rgba(255, 200, 200, 0.95);
    background: linear-gradient(155deg, #dc3545 0%, #b02a37 55%, #8f222e 100%);
    color: #fff !important;
}

html:not([data-theme="dark"]) .user-profile-head__invite.disabled,
html:not([data-theme="dark"]) .user-profile-head__invite[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(30, 41, 59, 0.55);
    box-shadow: none;
}

html[data-theme="dark"] .user-profile-head__edit,
html[data-theme="dark"] .user-profile-head__grant-premium,
html[data-theme="dark"] .user-profile-head__reset-avatar {
    border: 1px solid rgba(130, 178, 255, 0.42);
    background: linear-gradient(155deg, #2e3c55 0%, #1f283c 45%, #182030 100%);
    color: #e9f1ff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .user-profile-head__edit:hover,
html[data-theme="dark"] .user-profile-head__edit:focus,
html[data-theme="dark"] .user-profile-head__grant-premium:hover,
html[data-theme="dark"] .user-profile-head__grant-premium:focus,
html[data-theme="dark"] .user-profile-head__reset-avatar:hover,
html[data-theme="dark"] .user-profile-head__reset-avatar:focus {
    border-color: rgba(160, 200, 255, 0.55);
    color: #fff !important;
    background: linear-gradient(155deg, #3a4d6c 0%, #283449 50%, #1f2a3d 100%);
}

html[data-theme="dark"] .user-profile-head__grant-premium {
    border-color: rgba(230, 190, 90, 0.45);
    background: linear-gradient(155deg, #4a3d28 0%, #352a1c 50%, #2a2218 100%);
}

html[data-theme="dark"] .user-profile-head__grant-premium:hover,
html[data-theme="dark"] .user-profile-head__grant-premium:focus {
    border-color: rgba(255, 210, 120, 0.55);
    background: linear-gradient(155deg, #5c4a30 0%, #423420 50%, #362a1a 100%);
}

/* Тёмная тема: «Пригласить» — те же стили, что в светлой (зелёный градиент) */
html[data-theme="dark"] .user-profile-head__invite:not(.user-profile-head__invite--remove) {
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: linear-gradient(155deg, #22a53a 0%, #1a7a2e 55%, #145f24 100%);
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .user-profile-head__invite:not(.user-profile-head__invite--remove):hover,
html[data-theme="dark"] .user-profile-head__invite:not(.user-profile-head__invite--remove):focus {
    border-color: rgba(200, 255, 210, 0.85);
    color: #fff !important;
    background: linear-gradient(155deg, #28ba28 0%, #209020 55%, #187028 100%);
}

html[data-theme="dark"] .user-profile-head__invite--remove {
    border: 1px solid rgba(248, 113, 113, 0.55);
    background: linear-gradient(155deg, #7f1d1d 0%, #5c1515 50%, #451010 100%);
    color: #fef2f2 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .user-profile-head__invite--remove:hover,
html[data-theme="dark"] .user-profile-head__invite--remove:focus {
    border-color: rgba(252, 165, 165, 0.65);
    color: #fff !important;
    background: linear-gradient(155deg, #991b1b 0%, #731414 50%, #5a1010 100%);
}

html[data-theme="dark"] .user-profile-head__invite.disabled,
html[data-theme="dark"] .user-profile-head__invite[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(30, 41, 59, 0.65);
    box-shadow: none;
}

.user-profile-head__premium {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 12px;
    backdrop-filter: blur(6px);
}

.user-profile-head__premium i {
    font-size: 22px;
    line-height: 1;
    color: #fff;
    transform: translateX(3px);
}

.user-profile-head__banned-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: calc(100% - 24px);
    text-align: center;
    pointer-events: none;
}

.user-profile-head__banned-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    padding: 18px 36px;
    border-radius: 14px;
    background: linear-gradient(155deg, #dc2626 0%, #b91c1c 55%, #991b1b 100%);
    border: 2px solid rgba(254, 202, 202, 0.55);
    color: #fff;
    font-family: 'Din Con', Arial, sans-serif;
    font-size: 54px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    box-shadow: 0 10px 28px rgba(153, 27, 27, 0.45);
}

.user-profile-head__banned-caption {
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 15px;
    line-height: 1.35;
    backdrop-filter: blur(6px);
}

@media (max-width: 767px) {
    .user-profile-head__banned-badge {
        min-width: 180px;
        padding: 14px 24px;
        font-size: 40px;
    }

    .user-profile-head__banned-caption {
        font-size: 13px;
    }
}

@media (max-width: 479px) {
    .user-profile-head__banned-badge {
        min-width: 150px;
        padding: 12px 18px;
        font-size: 32px;
    }
}

.user-profile-tabs {
    margin-top: 10px;
}

/* Корень Vue «приглашение в сборную»: не оставлять лишний блок/текст между табами и сеткой профиля */
invite-to-nationals {
    display: contents;
}

/* Секции профиля: светлая тема — заголовок внутри блока (.black-head.push-down-10, как /users/contracts); тёмная — овальный h2 над блоком */
.user-profile-section {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.user-profile-section__title-wrap {
    display: none;
}

html:not([data-theme="dark"]) .user-profile-section--card .user-profile-section__title-wrap {
    display: none !important;
}

html[data-theme="dark"] .user-profile-section__heading-light {
    display: none !important;
}

/* Светлая тема: компактнее заголовки секций (.black-head внутри панели) */
html:not([data-theme="dark"]) .user-profile-section__panel .user-profile-section__heading-light.black-head {
    font-size: 13px;
    line-height: 1.25;
}

.user-profile-info-grid .uiblock-white {
    height: 100%;
}

.user-profile-top-row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.user-profile-player-info-block,
.user-profile-top-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.user-profile-player-info-block > .uiblock-inner,
.user-profile-top-card > .uiblock-inner {
    flex: 1 1 auto;
    min-height: 0;
}

.user-profile-top-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-profile-top-stack .user-profile-section__panel {
    margin-bottom: 0;
}

.user-profile-top-row {
    margin-bottom: 15px;
}

/* Светлая тема: верхний ряд — одна «полка» по нижнему краю (карточка | информация | награды + контракт). Только .user-profile-info-grid--top. */
@media (min-width: 1200px) {
    html:not([data-theme="dark"]) .user-profile-info-grid--top {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
    }

    html:not([data-theme="dark"]) .user-profile-info-grid--top > .col-lg-4,
    html:not([data-theme="dark"]) .user-profile-info-grid--top > .col-lg-8 {
        float: none;
    }

    html:not([data-theme="dark"]) .user-profile-info-grid--top > .col-lg-4 {
        width: 33.33333333%;
    }

    html:not([data-theme="dark"]) .user-profile-info-grid--top > .col-lg-8 {
        width: 66.66666667%;
    }

    html:not([data-theme="dark"]) .user-profile-info-grid--top .user-profile-top-row {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
    }

    html:not([data-theme="dark"]) .user-profile-info-grid--top .user-profile-top-row > .col-lg-6 {
        float: none;
        width: 50%;
    }
}

html:not([data-theme="dark"]) .user-profile-info-grid--top > .col-lg-4 > .user-profile-section {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

html:not([data-theme="dark"]) .user-profile-info-grid--top > .col-lg-8 {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

html:not([data-theme="dark"]) .user-profile-info-grid--top .user-profile-top-row {
    flex: 1 1 auto;
    min-height: 0;
}

html:not([data-theme="dark"]) .user-profile-info-grid--top .user-profile-top-card {
    flex: 1 1 auto;
    min-height: 0;
}

html:not([data-theme="dark"]) .user-profile-info-grid--top .user-profile-top-row > .col-lg-6:first-child > .user-profile-section {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

html:not([data-theme="dark"]) .user-profile-info-grid--top .user-profile-top-row > .col-lg-6:first-child .user-profile-player-info-block {
    flex: 1 1 auto;
    min-height: 0;
}

html:not([data-theme="dark"]) .user-profile-info-grid--top .user-profile-top-stack {
    flex: 1 1 auto;
    min-height: 0;
}

html:not([data-theme="dark"]) .user-profile-info-grid--top .user-profile-top-stack > .user-profile-section:first-child {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

html:not([data-theme="dark"]) .user-profile-info-grid--top .user-profile-top-stack > .user-profile-section:last-child {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

html:not([data-theme="dark"]) .user-profile-info-grid--top .user-profile-top-stack > .user-profile-section:first-child .user-profile-section__panel {
    margin-bottom: 0;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
}

html:not([data-theme="dark"]) .user-profile-info-grid--top .user-profile-top-stack > .user-profile-section:last-child .user-profile-section__panel {
    margin-bottom: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

html:not([data-theme="dark"]) .user-profile-info-grid--top .user-profile-top-stack > .user-profile-section:first-child .user-profile-section__panel > .uiblock-inner {
    flex: 0 1 auto;
    min-height: 0;
}

html:not([data-theme="dark"]) .user-profile-info-grid--top .user-profile-top-stack > .user-profile-section:last-child .user-profile-section__panel > .uiblock-inner {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

html:not([data-theme="dark"]) .user-profile-info-grid--top .user-profile-top-stack .uiblock-white.user-profile-section__panel {
    height: auto;
    min-height: 0;
}

.user-profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Card block: tighter paddings, centered card */
.profile-card-download-container > .uiblock-inner {
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-card-download-container .card-portlet {
    margin-left: auto !important;
    margin-right: auto !important;
    transform: translateY(-28px) scale(1.08);
    transform-origin: top center;
    width: 252px !important;
    min-width: 252px;
    max-width: none;
    flex-shrink: 0;
}

.profile-card-download-container .user-profile-actions {
    width: 100%;
    grid-template-columns: auto auto;
    justify-content: center;
    gap: 8px;
}

.profile-card-download-container .user-profile-actions .btn {
    width: auto;
    padding-left: 10px;
    padding-right: 10px;
    white-space: nowrap;
}

.user-profile-new-page-grid .profile-card-download-container .user-profile-actions {
    margin-top: 22px;
}

@media (max-width: 399px) {
    .profile-card-download-container .card-portlet {
        min-width: 0;
        transform: translateY(-20px) scale(min(1.08, calc((100vw - 36px) / 252)));
    }
}

/* Светлая тема: карточка компактнее, чтобы три колонки (карточка | игрок | награды+контракт) совпадали по верху/низу сетки */
@media (min-width: 1200px) {
    html:not([data-theme="dark"]) .user-profile-info-grid--top .profile-card-download-container > .uiblock-inner {
        padding: 8px 10px;
    }

    html:not([data-theme="dark"]) .user-profile-info-grid--top .profile-card-download-container .card-portlet {
        transform: scale(0.92);
        transform-origin: top center;
        margin-bottom: -28px;
    }

    html:not([data-theme="dark"]) .user-profile-info-grid--top .profile-card-download-container .user-profile-actions {
        margin-top: 4px;
    }
}

.user-profile-kv {
    list-style: none;
    margin: 0;
    padding: 0;
}

.user-profile-kv li {
    display: flex;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #edf2f6;
}

.user-profile-kv li:last-child {
    border-bottom: 0;
}

.user-profile-kv .k {
    color: #63768d;
    min-width: 190px;
}

.user-profile-contract-more {
    white-space: nowrap;
}

/* Строка «Подробная информация»: по умолчанию по центру (тёмная тема); в светлой — ниже, слева */
.user-profile-kv li.user-profile-contract-more-row {
    display: block;
    text-align: center;
}

.user-profile-kv li.user-profile-contract-more-row .k {
    display: block;
    width: 100%;
    min-width: 0 !important;
    flex: none;
    text-align: center;
}

.user-profile-kv li.user-profile-contract-more-row .v {
    display: none;
}

html:not([data-theme="dark"]) .user-profile-kv li.user-profile-contract-more-row {
    text-align: left;
}

html:not([data-theme="dark"]) .user-profile-kv li.user-profile-contract-more-row .k {
    text-align: left;
}

.user-profile-kv .v {
    color: #2c3e50;
    flex: 1 1 auto;
}

.user-profile-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    justify-content: center;
}

.user-profile-socials a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.user-profile-socials a i {
    font-size: 16px;
    color: #fff;
}

.user-profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.user-profile-stat {
    background: #fafbfd;
    border: 1px solid #e6ecf5;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    padding-bottom: 12px; /* slight offset from bottom for rank line */
}

.user-profile-stat .val {
    font-weight: 800;
    font-size: 18px;
    color: #2c3e50;
    line-height: 1.1;
}

.user-profile-stat .lbl {
    margin-top: 4px;
    font-size: 12px;
    color: #63768d;
}

.user-profile-stat .rk {
    margin-top: auto;
    padding-top: 6px;
    font-size: 11px;
    color: #8a9bb2;
    line-height: 1.15;
    white-space: nowrap;
}

/* Position distribution bar chart */
.user-profile-posdist > .uiblock-inner {
    padding-top: 14px;
    padding-bottom: 14px;
}

.user-profile-posdist-chart {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.user-profile-posdist-row {
    display: grid;
    grid-template-columns: 96px 1fr 40px;
    align-items: center;
    gap: 10px;
}

.user-profile-posdist-label {
    font-size: 12px;
    color: #2c3e50;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-profile-posdist-bar {
    height: 10px;
    background: #edf2f6;
    border-radius: 999px;
    overflow: hidden;
}

.user-profile-posdist-barFill {
    height: 100%;
    background: linear-gradient(90deg, #2ecc71 0%, #1abc9c 100%);
    border-radius: inherit;
    width: 0;
}

.user-profile-posdist-pct {
    text-align: right;
    font-size: 12px;
    color: #63768d;
    font-weight: 800;
}

/* Center positional rating field inside the profile block.
   Base theme sets `.positional-rating { width: 246px; }` which pins it to the left in wide columns. */
.positional-rating {
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.positional-rating .uiblock-white.p-5 {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Middle column stack: «Любимые позиции» + gamertag history */
.user-profile-mid-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-profile-gamertag-history__list .k {
    min-width: 150px;
}

.user-profile-gamertag-history__list .v {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-profile-gamertag-history__del {
    margin-left: auto;
    color: #c0392b;
    text-decoration: none;
    font-weight: 900;
    line-height: 1;
    opacity: .8;
}
.user-profile-gamertag-history__del:hover,
.user-profile-gamertag-history__del:focus {
    opacity: 1;
    color: #e74c3c;
    text-decoration: none;
}

.user-profile-gamertag-history__current .v {
    font-weight: 900;
}

@media (max-width: 991px) {
    .user-profile-posdist-row {
        grid-template-columns: 120px 1fr 46px;
    }
}

@media (max-width: 480px) {
    .user-profile-posdist-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .user-profile-posdist-pct {
        text-align: left;
    }
}

.user-profile-contract-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.user-profile-fav-awards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.user-profile-fav-award {
    display: block;
    text-decoration: none;
    border: 1px solid #e6ecf5;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
    height: 100%;
    position: relative;
}

.user-profile-fav-award--logo-only {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    min-height: 86px;
}

.user-profile-fav-award--logo-only img {
    width: 100%;
    max-width: 74px;
    height: auto;
    max-height: 64px;
    border-radius: 12px;
    object-fit: contain;
    background: #edf2f6;
}

.user-profile-award-count {
    position: absolute;
    right: 8px;
    bottom: 8px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #28ba28;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 22px;
    text-align: center;
    box-shadow: 0 0 0 3px #fff, 2px 3px 10px rgba(0,0,0,0.18);
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.user-profile-award-count--large {
    font-size: 11px;
    padding: 0 8px;
}

.user-award-popup {
    position: fixed;
    z-index: 10050;
    max-width: 288px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #cfd6df;
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
    font-size: 12px;
    line-height: 1.4;
    color: #333;
    text-align: left;
    text-transform: none;
    pointer-events: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity .12s ease;
}

.user-award-popup.is-visible {
    visibility: visible;
    opacity: 1;
}

.user-award-popup__title {
    font-weight: bold;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e8ecf1;
    color: #2c3e50;
}

.user-award-popup__desc {
    margin: 0 0 10px 0;
    color: #63768d;
}

.user-award-popup__label {
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #2c3e50;
}

.user-award-popup__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.user-award-popup__list li {
    margin: 0 0 6px 0;
    padding: 0;
    color: #333;
}

.user-profile-fav-award:hover {
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(63, 66, 87, 0.12);
}

.user-profile-fav-award__top {
    display: flex;
    gap: 10px;
    align-items: center;
}

.user-profile-fav-award__top img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    background: #edf2f6;
}

.user-profile-fav-award__name {
    font-weight: 800;
    color: #2c3e50;
    font-size: 13px;
    line-height: 1.2;
}

.user-profile-fav-award__desc {
    margin-top: 8px;
    font-size: 12px;
    color: #63768d;
    line-height: 1.35;
    max-height: 3.9em;
    overflow: hidden;
}

@media (max-width: 991px) {
    .user-profile-actions { grid-template-columns: 1fr; }
    .user-profile-kv .k { min-width: 150px; }
    .user-profile-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .user-profile-fav-awards { grid-template-columns: 1fr; }
}

/* —— /profile/update: «Персонализация» + превью фона карточки в одной строке —— */
.profile-card-bg-field {
    margin-bottom: 15px;
}
.profile-personal-row {
    margin-left: -15px;
    margin-right: -15px;
}
.profile-personal-row:before,
.profile-personal-row:after {
    display: table;
    content: " ";
}
.profile-personal-row:after {
    clear: both;
}
.profile-personal-row__banner > .black-head,
.profile-personal-row__card > .black-head {
    margin-top: 0;
}
.profile-personal-row__banner {
    margin-bottom: 15px;
}
.profile-personal-row__banner-body,
.profile-personal-row__card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
/* main.css задаёт .dv-customizations__0 { width: 49.75% } под два блока — здесь баннер на всю ширину колонки */
.profile-personal-row__banner .dv-customizations {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0;
}
.profile-personal-row__banner .dv-customizations.row {
    margin-left: 0;
    margin-right: 0;
}
.profile-personal-row__banner .dv-customizations__0 {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    float: none;
}

/* Фон шапки: 4 плитки (3 пресета + загрузка) — /profile/update */
.profile-header-pattern-picker {
    margin-bottom: 12px;
}
.profile-header-pattern-picker__title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #2c3e50;
}
.profile-header-pattern-picker__hint {
    font-size: 12px;
    margin-bottom: 12px;
}
.profile-header-pattern-picker__foot {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.45;
}
.profile-header-pattern-picker__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    align-items: stretch;
}
.profile-header-pattern-picker__item {
    position: relative;
    min-width: 0;
    padding: 3px;
    border: 2px solid #e2e8ef;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.profile-header-pattern-picker__btn {
    display: block;
    width: 100%;
    margin: 0;
    font: inherit;
    text-align: left;
    color: inherit;
    background: #fff;
}
.profile-header-pattern-picker__item:hover {
    border-color: #b8c5d4;
}
.profile-header-pattern-picker__btn:focus {
    outline: none;
    border-color: #5dade2;
    box-shadow: 0 0 0 2px rgba(93, 173, 226, 0.35);
}
.profile-header-pattern-picker__item--selected {
    border-color: #27ae60;
    box-shadow: 0 0 0 1px rgba(39, 174, 96, 0.35);
}
.profile-header-pattern-picker__thumb {
    display: block;
    width: 100%;
    padding-top: 27.513966%; /* ≈ 52/189 */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 4px;
    background-color: #eef2f6;
}
.profile-header-pattern-picker__thumb--filled {
    background-color: #1a1a1a;
}
.profile-header-pattern-picker__item--upload {
    display: block;
    margin-bottom: 0;
    cursor: pointer;
}
.profile-header-pattern-picker__item--upload:focus-within {
    border-color: #5dade2;
    box-shadow: 0 0 0 2px rgba(93, 173, 226, 0.35);
}
.profile-header-pattern-picker__file {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
    font-size: 0;
}
.profile-header-pattern-picker__upload-inner {
    position: relative;
    z-index: 1;
    display: block;
    pointer-events: none;
}
.profile-header-pattern-picker__item--upload .profile-header-pattern-picker__thumb {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.profile-header-pattern-picker__upload-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 5px 3px 4px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #2c3e50;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72));
    border-radius: 0 0 4px 4px;
}
.profile-header-pattern-picker__item--upload.profile-header-pattern-picker__item--selected .profile-header-pattern-picker__upload-text {
    color: #1e8449;
}
.profile-header-pattern-picker__overlay-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    font-weight: normal;
    cursor: pointer;
}
.profile-header-pattern-picker__overlay-hint {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.45;
}
.profile-header-crop-wrap {
    width: 100%;
    min-height: 220px;
    max-height: 62vh;
    background: #111;
    overflow: hidden;
}
.profile-header-crop-wrap img {
    display: block;
    max-width: 100%;
}
#js-profile-header-crop-modal .modal-dialog {
    width: min(920px, 96vw);
}
@media (min-width: 992px) {
    .profile-personal-row.row:before,
    .profile-personal-row.row:after {
        display: none;
        content: none;
    }
    .profile-personal-row {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
    }
    .profile-personal-row > .profile-personal-row__banner,
    .profile-personal-row > .profile-personal-row__card {
        display: flex;
        flex-direction: column;
        float: none;
        margin-bottom: 0;
    }
    .profile-personal-row > .profile-personal-row__banner.col-md-9 {
        flex: 0 0 75%;
        max-width: 75%;
        width: 75%;
    }
    .profile-personal-row > .profile-personal-row__card.col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
        width: 25%;
    }
    .profile-personal-row__banner {
        margin-bottom: 0;
    }
}
.profile-card-bg-preview__frame--aside {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 120px;
    padding: 8px 10px 10px;
    background: #f4f6f9;
    border: 1px solid #e2e8ef;
    border-radius: 6px;
    text-align: center;
    line-height: 0;
}
.profile-card-bg-preview__frame--aside img,
.profile-card-bg-preview__frame--aside #js-card-bg-preview-img {
    display: block;
    max-width: 100%;
    width: auto;
    max-height: 200px;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ========== Тёмная тема: профиль игрока (овальные заголовки + градиентные карточки) ========== */
html[data-theme="dark"] .user-profile-section__title-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 0 12px 0;
    padding: 0 6px;
    box-sizing: border-box;
}

html[data-theme="dark"] .user-profile-section__title {
    display: inline-block;
    max-width: 100%;
    margin: 0;
    padding: 8px 20px;
    font-family: 'Pt Sans', sans-serif;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-align: center;
    color: #e9f1ff;
    background: linear-gradient(145deg, #2f3c52 0%, #202a3d 55%, #1a2334 100%);
    border: 1px solid rgba(118, 166, 235, 0.38);
    border-radius: 999px;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] .user-profile-section__panel.uiblock-white {
    background: linear-gradient(158deg, #273143 0%, #1d2535 42%, #151d2c 100%) !important;
    border: 1px solid rgba(96, 132, 188, 0.28) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .user-profile-section__panel > .uiblock-inner.white {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .user-profile-section__panel .user-profile-kv li {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .user-profile-section__panel .user-profile-kv .k {
    color: #9eb2ce;
}

html[data-theme="dark"] .user-profile-section__panel .user-profile-kv .v {
    color: #e8eef8;
}

html[data-theme="dark"] .user-profile-section__panel .text-muted {
    color: #8a9bb8 !important;
}

html[data-theme="dark"] .user-profile-section__panel .user-profile-stat {
    background: rgba(0, 0, 0, 0.22);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .user-profile-section__panel .user-profile-stat .val {
    color: #f0f4fc;
}

html[data-theme="dark"] .user-profile-section__panel .user-profile-stat .lbl {
    color: #9eb2ce;
}

html[data-theme="dark"] .user-profile-section__panel .user-profile-stat .rk {
    color: #7d92b3;
}

html[data-theme="dark"] .user-profile-section__panel .user-profile-posdist-label {
    color: #dbe4f4;
}

html[data-theme="dark"] .user-profile-section__panel .user-profile-posdist-bar {
    background: rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .user-profile-section__panel .user-profile-posdist-pct {
    color: #aabbd6;
}

html[data-theme="dark"] .user-profile-section__panel .user-profile-fav-award {
    background: rgba(0, 0, 0, 0.22);
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .user-profile-section__panel .user-profile-fav-award--logo-only img {
    background: rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .user-profile-section__panel .user-profile-positional-inner.uiblock-white {
    background: rgba(0, 0, 0, 0.28) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .user-profile-section__panel .user-profile-fav-award__name {
    color: #e8eef8;
}

html[data-theme="dark"] .user-profile-section__panel .user-profile-fav-award__desc {
    color: #9eb2ce;
}

/* Тёмная тема: «Избранные награды» — компактная подложка снизу без налезания контракта (не трогаем min-height:0 у flex — иначе высота схлопывается и блок ниже заезжает вверх) */
html[data-theme="dark"] .user-profile-stack-awards.user-profile-section__panel.uiblock-white {
    padding-top: 0;
    padding-bottom: 0;
    overflow: visible;
}

html[data-theme="dark"] .user-profile-stack-awards.user-profile-section__panel > .uiblock-inner.white {
    overflow: visible;
}

html[data-theme="dark"] .user-profile-stack-awards .user-profile-fav-awards.user-profile-fav-awards--new-page {
    flex-shrink: 0;
}

html[data-theme="dark"] .user-profile-gamertag-history__current .v {
    color: #e8eef8;
}

/* Тёмная тема: кнопки под карточкой («рейтинг», «скачать») */
html[data-theme="dark"] .user-profile-section--card .user-profile-card-btn.btn-default {
    border: 1px solid rgba(118, 166, 235, 0.4);
    background: linear-gradient(155deg, #2f3d56 0%, #232d42 50%, #1a2333 100%) !important;
    color: #e9f1ff !important;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] .user-profile-section--card .user-profile-card-btn.btn-default:hover,
html[data-theme="dark"] .user-profile-section--card .user-profile-card-btn.btn-default:focus {
    border-color: rgba(160, 200, 255, 0.55);
    color: #fff !important;
    background: linear-gradient(155deg, #3a4d6c 0%, #2c384e 50%, #232f42 100%) !important;
}

html[data-theme="dark"] .user-profile-section--card .user-profile-card-btn .ico-info,
html[data-theme="dark"] .user-profile-section--card .user-profile-card-btn .ico-download2 {
    opacity: 0.95;
}

/* Тёмная тема: модалка «Как считается рейтинг» (#profile-rating-info-modal) */
html[data-theme="dark"] #profile-rating-info-modal.user-profile-rating-info-modal .modal-dialog {
    max-width: 520px;
}

html[data-theme="dark"] #profile-rating-info-modal.user-profile-rating-info-modal .modal-content {
    background: linear-gradient(180deg, #262d38 0%, #1e2430 100%);
    border: 1px solid rgba(118, 166, 235, 0.28);
    border-radius: 12px;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

html[data-theme="dark"] #profile-rating-info-modal.user-profile-rating-info-modal .modal-header {
    background: linear-gradient(155deg, #2f3d56 0%, #252f43 55%, #1f2738 100%);
    border-bottom: 1px solid rgba(118, 166, 235, 0.22);
    padding: 14px 16px;
}

html[data-theme="dark"] #profile-rating-info-modal.user-profile-rating-info-modal .modal-title {
    color: #f1f5ff !important;
    font-family: 'Pt Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0 !important;
}

html[data-theme="dark"] #profile-rating-info-modal.user-profile-rating-info-modal .modal-header > .close {
    color: #aabbd6 !important;
    opacity: 1 !important;
    text-shadow: none !important;
    padding: 4px 2px 0 12px !important;
}

html[data-theme="dark"] #profile-rating-info-modal.user-profile-rating-info-modal .modal-header > .close:hover,
html[data-theme="dark"] #profile-rating-info-modal.user-profile-rating-info-modal .modal-header > .close:focus {
    color: #fff !important;
}

html[data-theme="dark"] #profile-rating-info-modal.user-profile-rating-info-modal .modal-body {
    background: transparent;
    color: #c5cad3;
    font-size: 14px;
    line-height: 1.55;
    padding: 18px 20px;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none !important;
}

html[data-theme="dark"] #profile-rating-info-modal.user-profile-rating-info-modal .modal-footer {
    background: rgba(0, 0, 0, 0.18);
    border-top: 1px solid rgba(118, 166, 235, 0.18);
    padding: 12px 16px;
}

html[data-theme="dark"] #profile-rating-info-modal.user-profile-rating-info-modal .modal-footer .btn-default {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 7px 20px;
    background: linear-gradient(155deg, #2f3d56 0%, #232d42 50%, #1a2333 100%);
    border-color: rgba(118, 166, 235, 0.38);
    color: #e9f1ff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] #profile-rating-info-modal.user-profile-rating-info-modal .modal-footer .btn-default:hover,
html[data-theme="dark"] #profile-rating-info-modal.user-profile-rating-info-modal .modal-footer .btn-default:focus {
    background: linear-gradient(155deg, #3a4d6c 0%, #2c384e 50%, #232f42 100%);
    border-color: rgba(160, 200, 255, 0.5);
    color: #fff !important;
}

/* Тёмная тема: табы под шапкой профиля («Статистика», «Трофейная», …) */
html[data-theme="dark"] ul.user-profile-tabs.line-custom-navi.inline-custom {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 18px 0;
    padding: 0;
    list-style: none;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
}

html[data-theme="dark"] ul.user-profile-tabs.line-custom-navi.inline-custom > li {
    float: none;
    margin: 0;
    display: block;
}

html[data-theme="dark"] ul.user-profile-tabs.line-custom-navi.inline-custom > li > a {
    display: block;
    padding: 8px 14px;
    border-radius: 999px;
    text-align: center;
    background: rgba(0, 0, 0, 0.28);
    color: #aabbd6 !important;
    border: 1px solid rgba(118, 166, 235, 0.22);
    text-decoration: none !important;
    box-shadow: none !important;
    font-weight: 700;
}

html[data-theme="dark"] ul.user-profile-tabs.line-custom-navi.inline-custom > li > a:hover,
html[data-theme="dark"] ul.user-profile-tabs.line-custom-navi.inline-custom > li > a:focus {
    background: rgba(46, 62, 88, 0.9);
    color: #e9f1ff !important;
    border-color: rgba(160, 200, 255, 0.38);
}

html[data-theme="dark"] ul.user-profile-tabs.line-custom-navi.inline-custom > li.active > a,
html[data-theme="dark"] ul.user-profile-tabs.line-custom-navi.inline-custom > li.active > a:hover,
html[data-theme="dark"] ul.user-profile-tabs.line-custom-navi.inline-custom > li:hover.active > a,
html[data-theme="dark"] ul.user-profile-tabs.line-custom-navi.inline-custom > li.active > a:focus {
    background: linear-gradient(145deg, #2f3c52 0%, #243044 100%) !important;
    color: #fff !important;
    border-color: rgba(130, 178, 255, 0.45);
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    position: relative;
}

html[data-theme="dark"] ul.user-profile-tabs.line-custom-navi.inline-custom > li.active > a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 5px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e 0%, #5eead4 100%);
    opacity: 0.95;
}

/* Тёмная тема: «Подробная информация» в блоке «Контракт» */
html[data-theme="dark"] .user-profile-section__panel a.user-profile-contract-more.dotted-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    text-decoration: none !important;
    border-bottom: none !important;
    border-radius: 999px;
    border: 1px solid rgba(118, 166, 235, 0.4) !important;
    background: linear-gradient(155deg, #2f3d56 0%, #232d42 50%, #1a2333 100%) !important;
    color: #e9f1ff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

html[data-theme="dark"] .user-profile-section__panel a.user-profile-contract-more.dotted-link:hover,
html[data-theme="dark"] .user-profile-section__panel a.user-profile-contract-more.dotted-link:focus {
    border-color: rgba(160, 200, 255, 0.55) !important;
    color: #fff !important;
    background: linear-gradient(155deg, #3a4d6c 0%, #2c384e 50%, #232f42 100%) !important;
}

/* Тёмная тема: «Подробная информация» как .btn в блоке контракта (новая страница — без класса dotted-link) */
html[data-theme="dark"] .user-profile-stack-contract.user-profile-section__panel a.user-profile-contract-more.btn-default {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    text-decoration: none !important;
    border-radius: 999px;
    border: 1px solid rgba(118, 166, 235, 0.4) !important;
    background: linear-gradient(155deg, #2f3d56 0%, #232d42 50%, #1a2333 100%) !important;
    color: #e9f1ff !important;
    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] .user-profile-stack-contract.user-profile-section__panel a.user-profile-contract-more.btn-default:hover,
html[data-theme="dark"] .user-profile-stack-contract.user-profile-section__panel a.user-profile-contract-more.btn-default:focus {
    border-color: rgba(160, 200, 255, 0.55) !important;
    color: #fff !important;
    background: linear-gradient(155deg, #3a4d6c 0%, #2c384e 50%, #232f42 100%) !important;
}

/* Вкладка «Профиль»: три равные колонки, общая высота блоков */
.user-profile-new-page-grid + .user-profile-new-page-grid {
    margin-top: 22px;
}

/* Второй ряд: без общей высоты колонок и без растягивания панелей на всю высоту соседей */
.user-profile-new-page-grid.user-profile-new-page-grid--natural-heights .uiblock-white {
    height: auto;
}

.user-profile-new-page-grid > [class*="col-"] {
    margin-bottom: 15px;
}

.user-profile-new-page-grid .uiblock-white {
    height: 100%;
}

/* «Избранные награды»: не height:100% — иначе карточка тянется по высоте колонки, снизу пустота и визуально наезжает блок контракта */
.user-profile-new-page-grid .user-profile-stack-awards.user-profile-section__panel.uiblock-white {
    height: auto;
    align-self: stretch;
}

.user-profile-new-page-grid .user-profile-stack-awards.user-profile-section__panel > .uiblock-inner.white {
    flex: none;
    min-height: auto;
    box-sizing: border-box;
    padding-top: 20px;
    padding-bottom: 16px;
    padding-left: 20px;
    padding-right: 20px;
}

.user-profile-new-page__block-heading {
    margin-top: 0;
}

.user-profile-new-page-info-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
}

.user-profile-new-page-info-inner .user-profile-kv {
    flex: 1 1 auto;
}

.user-profile-socials--new-page {
    justify-content: center;
    margin-top: auto;
    padding-top: 12px;
}

.user-profile-fav-awards.user-profile-fav-awards--new-page {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

.user-profile-fav-awards.user-profile-fav-awards--new-page .user-profile-fav-award--logo-only {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 4px;
    min-height: 72px;
    box-sizing: border-box;
}

.user-profile-fav-awards.user-profile-fav-awards--new-page .user-profile-fav-award--logo-only img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 68px;
    object-fit: contain;
}

@media (max-width: 767px) {
    .user-profile-fav-awards.user-profile-fav-awards--new-page .user-profile-fav-award--logo-only {
        min-height: 62px;
    }

    .user-profile-fav-awards.user-profile-fav-awards--new-page .user-profile-fav-award--logo-only img {
        max-height: 54px;
    }
}

.user-profile-new-page-grid .user-profile-kv li.user-profile-contract-more-row--new-page {
    margin-top: 5px;
    text-align: center !important;
}

.user-profile-new-page-grid .user-profile-kv li.user-profile-contract-more-row--new-page .k {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex: none !important;
    min-width: 0 !important;
    max-width: 100% !important;
    text-align: center !important;
    width: 100% !important;
}

html:not([data-theme="dark"]) .user-profile-new-page-grid .user-profile-kv li.user-profile-contract-more-row--new-page,
html:not([data-theme="dark"]) .user-profile-new-page-grid .user-profile-kv li.user-profile-contract-more-row--new-page .k {
    text-align: center !important;
}

.user-profile-new-page-grid .user-profile-section {
    margin-bottom: 0;
}

.user-profile-new-page-col-stack {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
}

.user-profile-new-page-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
}

@media (min-width: 1200px) {
    .user-profile-new-page-grid {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .user-profile-new-page-grid > [class*="col-"] {
        float: none;
        width: 33.33333333%;
        display: flex;
        flex-direction: column;
        min-height: 0;
        margin-bottom: 0;
    }

    .user-profile-new-page-grid > [class*="col-"] > .user-profile-section,
    .user-profile-new-page-grid > [class*="col-"] > .user-profile-new-page-col-stack,
    .user-profile-new-page-grid > [class*="col-"] > .user-profile-mid-stack {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
        width: 100%;
    }

    .user-profile-new-page-grid .user-profile-section__panel {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
        margin-bottom: 0;
    }

    .user-profile-new-page-grid .user-profile-section__panel > .uiblock-inner {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .user-profile-new-page-stack > .user-profile-section:first-child {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .user-profile-new-page-stack > .user-profile-section:first-child .user-profile-section__panel {
        flex: 0 0 auto;
    }

    .user-profile-new-page-stack > .user-profile-section:last-child {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .user-profile-new-page-stack > .user-profile-section:last-child .user-profile-section__panel {
        flex: 1 1 auto;
        min-height: 0;
    }

    .user-profile-new-page-stack > .user-profile-section:last-child .user-profile-section__panel > .uiblock-inner {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .user-profile-new-page-grid .user-profile-mid-stack > .user-profile-section:first-child {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .user-profile-new-page-grid .user-profile-mid-stack > .user-profile-section:first-child .user-profile-section__panel {
        flex: 0 0 auto;
    }

    .user-profile-new-page-grid .user-profile-mid-stack > .user-profile-section:last-child {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .user-profile-new-page-grid .user-profile-mid-stack > .user-profile-section:last-child .user-profile-section__panel {
        flex: 1 1 auto;
        min-height: 0;
    }

    .user-profile-new-page-grid .user-profile-mid-stack > .user-profile-section:last-child .user-profile-section__panel > .uiblock-inner {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .user-profile-new-page-grid.user-profile-new-page-grid--natural-heights {
        align-items: flex-start;
    }

    .user-profile-new-page-grid.user-profile-new-page-grid--natural-heights > [class*="col-"] > .user-profile-section,
    .user-profile-new-page-grid.user-profile-new-page-grid--natural-heights > [class*="col-"] > .user-profile-mid-stack {
        flex: 0 0 auto;
    }

    .user-profile-new-page-grid.user-profile-new-page-grid--natural-heights .user-profile-section__panel {
        flex: 0 0 auto;
    }

    .user-profile-new-page-grid.user-profile-new-page-grid--natural-heights .user-profile-section__panel > .uiblock-inner {
        flex: 0 0 auto;
    }

    .user-profile-new-page-grid.user-profile-new-page-grid--natural-heights .user-profile-mid-stack > .user-profile-section:last-child {
        flex: 0 0 auto;
    }

    .user-profile-new-page-grid.user-profile-new-page-grid--natural-heights .user-profile-mid-stack > .user-profile-section:last-child .user-profile-section__panel {
        flex: 0 0 auto;
        min-height: 0;
    }

    .user-profile-new-page-grid.user-profile-new-page-grid--natural-heights .user-profile-mid-stack > .user-profile-section:last-child .user-profile-section__panel > .uiblock-inner {
        flex: 0 0 auto;
    }

    .user-profile-new-page-grid .user-profile-kv .k {
        min-width: 0;
        flex: 0 0 44%;
        max-width: 50%;
    }

    /* Карточка на вкладке «Профиль»: пропорционально крупнее базового макета */
    .user-profile-new-page-grid .profile-card-download-container .card-portlet {
        transform: translateY(-16px) scale(1.12);
        transform-origin: top center;
        margin-bottom: -40px;
    }

    html:not([data-theme="dark"]) .user-profile-new-page-grid .profile-card-download-container > .uiblock-inner {
        padding: 12px 12px;
    }
}

/* ========== Тёмная тема: вкладки профиля — статистика, трофейная, переходы, сравнение, гости ========== */

html[data-theme="dark"] .user-profile-pill-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 14px 0;
    padding: 0;
    list-style: none;
}

html[data-theme="dark"] .user-profile-pill-row > li {
    margin: 0;
}

html[data-theme="dark"] .user-profile-pill-row__label {
    color: #9eb2ce;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 8px 8px 0;
}

html[data-theme="dark"] .user-profile-stats-page .user-profile-pill-row a.dotted-link,
html[data-theme="dark"] .user-profile-achievements-page .user-profile-pill-row a.dotted-link {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none !important;
    border-bottom: none !important;
    background: rgba(0, 0, 0, 0.28);
    color: #aabbd6 !important;
    border: 1px solid rgba(118, 166, 235, 0.22);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: none !important;
}

html[data-theme="dark"] .user-profile-stats-page .user-profile-pill-row a.dotted-link:hover,
html[data-theme="dark"] .user-profile-stats-page .user-profile-pill-row a.dotted-link:focus,
html[data-theme="dark"] .user-profile-achievements-page .user-profile-pill-row a.dotted-link:hover,
html[data-theme="dark"] .user-profile-achievements-page .user-profile-pill-row a.dotted-link:focus {
    background: rgba(46, 62, 88, 0.9);
    color: #e9f1ff !important;
    border-color: rgba(160, 200, 255, 0.38);
}

html[data-theme="dark"] .user-profile-stats-page .user-profile-pill-row a.dotted-link.active,
html[data-theme="dark"] .user-profile-stats-page .user-profile-pill-row a.dotted-link.active:hover,
html[data-theme="dark"] .user-profile-stats-page .user-profile-pill-row a.dotted-link.active:focus,
html[data-theme="dark"] .user-profile-achievements-page .user-profile-pill-row a.dotted-link.active,
html[data-theme="dark"] .user-profile-achievements-page .user-profile-pill-row a.dotted-link.active:hover,
html[data-theme="dark"] .user-profile-achievements-page .user-profile-pill-row a.dotted-link.active:focus {
    background: linear-gradient(145deg, #2f3c52 0%, #243044 100%) !important;
    color: #fff !important;
    border-color: rgba(130, 178, 255, 0.45) !important;
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    position: relative;
}

html[data-theme="dark"] .user-profile-stats-page .user-profile-pill-row a.dotted-link.active::after,
html[data-theme="dark"] .user-profile-achievements-page .user-profile-pill-row a.dotted-link.active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e 0%, #5eead4 100%);
    opacity: 0.95;
}

html[data-theme="dark"] .user-profile-stats-page .user-profile-pill-row--stattype {
    gap: 5px;
    margin-bottom: 16px;
}

html[data-theme="dark"] .user-profile-stats-page .user-profile-pill-row--stattype a.dotted-link {
    text-transform: none;
    font-size: 12px;
    letter-spacing: 0.02em;
    font-weight: 600;
}

html[data-theme="dark"] .user-profile-achievements-page > a.dotted-link[data-toggle="modal"] {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    text-decoration: none !important;
    border: 1px solid rgba(118, 166, 235, 0.4) !important;
    background: linear-gradient(155deg, #2f3d56 0%, #232d42 50%, #1a2333 100%) !important;
    color: #e9f1ff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .user-profile-achievements-page > a.dotted-link[data-toggle="modal"]:hover,
html[data-theme="dark"] .user-profile-achievements-page > a.dotted-link[data-toggle="modal"]:focus {
    border-color: rgba(160, 200, 255, 0.55) !important;
    color: #fff !important;
}

html[data-theme="dark"] .user-profile-achievement-tile {
    padding: 14px 14px 16px;
    background: linear-gradient(158deg, #273143 0%, #1d2535 42%, #151d2c 100%);
    border: 1px solid rgba(96, 132, 188, 0.28);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .user-profile-achievement-tile .black-head {
    color: #e8eef8 !important;
}

html[data-theme="dark"] .user-profile-achievement-tile .fs12 {
    color: #aabbd6;
}

html[data-theme="dark"] .user-profile-achievements-page .list-view .loading {
    color: #9eb2ce;
}

html[data-theme="dark"] .user-profile-achievements-page .pagination,
html[data-theme="dark"] .user-profile-achievements-page ul#table-pager.user-profile-achievements-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 18px 0 8px;
    padding: 0;
    list-style: none;
}

html[data-theme="dark"] .user-profile-achievements-page .pagination > li,
html[data-theme="dark"] .user-profile-achievements-page ul#table-pager.user-profile-achievements-pager > li {
    margin: 0;
    display: inline-block;
}

html[data-theme="dark"] .user-profile-achievements-page .pagination > li > a,
html[data-theme="dark"] .user-profile-achievements-page .pagination > li > span,
html[data-theme="dark"] .user-profile-achievements-page ul#table-pager.user-profile-achievements-pager > li > a,
html[data-theme="dark"] .user-profile-achievements-page ul#table-pager.user-profile-achievements-pager > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(118, 166, 235, 0.25);
    color: #aabbd6 !important;
    text-decoration: none !important;
}

html[data-theme="dark"] .user-profile-achievements-page .pagination > li.active > a,
html[data-theme="dark"] .user-profile-achievements-page .pagination > li.active > span,
html[data-theme="dark"] .user-profile-achievements-page ul#table-pager.user-profile-achievements-pager > li.active > a,
html[data-theme="dark"] .user-profile-achievements-page ul#table-pager.user-profile-achievements-pager > li.selected > a {
    background: linear-gradient(145deg, #2f3c52 0%, #243044 100%) !important;
    border-color: rgba(130, 178, 255, 0.45);
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .user-profile-achievements-page .pagination > li > a:hover,
html[data-theme="dark"] .user-profile-achievements-page ul#table-pager.user-profile-achievements-pager > li > a:hover {
    background: rgba(46, 62, 88, 0.95);
    color: #e9f1ff !important;
    border-color: rgba(160, 200, 255, 0.38);
}

.user-profile-contracts-page ul.iconed-list li.user-profile-contracts-admin-actions {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    vertical-align: middle;
}
.user-profile-contracts-page ul.iconed-list li.user-profile-contracts-admin-actions > span {
    display: block;
    line-height: 0;
}

html[data-theme="dark"] .user-profile-contracts-page__title {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e9f1ff !important;
    background: linear-gradient(145deg, #2f3c52 0%, #202a3d 55%, #1a2334 100%);
    border: 1px solid rgba(118, 166, 235, 0.38);
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] .user-profile-contracts-table {
    background: linear-gradient(158deg, #273143 0%, #1d2535 42%, #151d2c 100%);
    border: 1px solid rgba(96, 132, 188, 0.28);
    border-radius: 14px;
    overflow: hidden;
    color: #e2e8f0;
    margin-bottom: 0;
}

html[data-theme="dark"] .user-profile-contracts-table > thead > tr > td {
    background: linear-gradient(155deg, #2f3d56 0%, #252f43 55%, #1f2738 100%);
    color: #cbd5e1 !important;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-color: rgba(118, 166, 235, 0.2) !important;
    padding: 12px 10px;
}

html[data-theme="dark"] .user-profile-contracts-table > tbody > tr > td {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.06) !important;
    color: #e8eef8;
    vertical-align: middle;
}

html[data-theme="dark"] .user-profile-contracts-table.table-hover > tbody > tr:hover > td {
    background: rgba(46, 62, 88, 0.55);
}

html[data-theme="dark"] .user-profile-contracts-table__row--muted > td {
    background: rgba(0, 0, 0, 0.32) !important;
}

html[data-theme="dark"] .user-profile-contracts-page ul.iconed-list li a.background-li,
html[data-theme="dark"] .user-profile-contracts-page ul.iconed-list li span.background-li {
    background: linear-gradient(155deg, #2f3d56 0%, #232d42 50%, #1a2333 100%) !important;
    border: 1px solid rgba(118, 166, 235, 0.35) !important;
    color: #e9f1ff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .user-profile-contracts-page ul.iconed-list li a.background-li:hover {
    border-color: rgba(160, 200, 255, 0.5) !important;
    color: #fff !important;
}

html[data-theme="dark"] .user-profile-contracts-page a.dotted-link {
    color: #93c5fd !important;
}

html[data-theme="dark"] #main-modal .modal-content .user-profile-contract-info-modal,
html[data-theme="dark"] #main-modal .modal-content .user-profile-contract-info-modal.transfers-modal-page {
    color: #c5cad3;
}

html[data-theme="dark"] #main-modal .modal-content .user-profile-contract-info-modal .modal-header {
    background: linear-gradient(155deg, #2f3d56 0%, #252f43 55%, #1f2738 100%);
    border-bottom: 1px solid rgba(118, 166, 235, 0.22);
    border-radius: 0;
}

html[data-theme="dark"] #main-modal .modal-content .user-profile-contract-info-modal .modal-title {
    color: #f1f5ff !important;
    font-family: 'Pt Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

html[data-theme="dark"] #main-modal .modal-content .user-profile-contract-info-modal .modal-header > .close {
    color: #aabbd6 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

html[data-theme="dark"] #main-modal .modal-content .user-profile-contract-info-modal .modal-header > .close:hover {
    color: #fff !important;
}

html[data-theme="dark"] #main-modal .modal-content .user-profile-contract-info-modal .modal-body {
    background: linear-gradient(180deg, #222831 0%, #1a1f28 100%);
    padding-top: 20px;
    padding-bottom: 20px;
}

html[data-theme="dark"] #main-modal .modal-content .user-profile-contract-info-modal .modal-body hr {
    border-top-color: rgba(118, 166, 235, 0.2);
}

html[data-theme="dark"] #main-modal .modal-content .user-profile-contract-info-modal a.black-head {
    color: #e9f1ff !important;
}

html[data-theme="dark"] #main-modal .modal-content .user-profile-contract-info-modal .list-stats {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(118, 166, 235, 0.18);
    border-radius: 12px;
    padding: 8px 4px;
}

html[data-theme="dark"] #main-modal .modal-content .user-profile-contract-info-modal .list-stats li .label {
    color: #9eb2ce !important;
}

html[data-theme="dark"] #main-modal .modal-content .user-profile-contract-info-modal .list-stats li .value {
    color: #f0f4fc !important;
}

html[data-theme="dark"] #main-modal .modal-content .user-profile-contract-info-modal .list-info li .list-info-icon {
    color: #5eead4 !important;
}

html[data-theme="dark"] #main-modal .modal-content .user-profile-contract-info-modal .list-info li .list-info-text {
    color: #aabbd6 !important;
}

html[data-theme="dark"] #main-modal .modal-content .user-profile-contract-info-modal .rubber_stamp {
    color: #7dd3fc;
    border-color: rgba(125, 211, 252, 0.65);
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

html[data-theme="dark"] .user-profile-compare-panel.panel {
    background: linear-gradient(158deg, #273143 0%, #1d2535 42%, #151d2c 100%);
    border: 1px solid rgba(96, 132, 188, 0.28);
    border-radius: 16px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .user-profile-compare-panel .panel-heading {
    background: linear-gradient(155deg, #2f3d56 0%, #252f43 55%, #1f2738 100%);
    border-bottom: 1px solid rgba(118, 166, 235, 0.22);
    border-radius: 15px 15px 0 0;
    color: #f1f5ff;
}

html[data-theme="dark"] .user-profile-compare-panel .panel-title {
    color: #f1f5ff !important;
    font-weight: 600;
    letter-spacing: 0.03em;
}

html[data-theme="dark"] .user-profile-compare-panel .panel-body {
    background: transparent;
    color: #c5cad3;
}

html[data-theme="dark"] .user-profile-compare-page .form-control {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(118, 166, 235, 0.28);
    color: #e9f1ff;
    border-radius: 10px;
}

html[data-theme="dark"] .user-profile-compare-page select.form-control {
    border: 1px solid rgba(130, 178, 255, 0.42);
    color: #f1f5ff;
    font-weight: 600;
    padding-top: 9px;
    padding-bottom: 9px;
    min-height: 40px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 2px 8px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #232f42;
    background-image: linear-gradient(180deg, #2f3d52 0%, #232f42 45%, #1a2333 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23aabbd6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: 0 0, right 10px center;
    background-size: 100% 100%, 14px 14px;
    padding-right: 36px;
}

html[data-theme="dark"] .user-profile-compare-page select.form-control:focus {
    border-color: rgba(160, 200, 255, 0.65);
    color: #fff;
    outline: none;
    box-shadow:
        0 0 0 2px rgba(96, 165, 250, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .user-profile-compare-page label {
    color: #9eb2ce;
    margin-right: 6px;
}

html[data-theme="dark"] .user-profile-compare-page .table {
    background: transparent;
    border-color: rgba(118, 166, 235, 0.15);
}

html[data-theme="dark"] .user-profile-compare-page .table-bordered > thead > tr > th,
html[data-theme="dark"] .user-profile-compare-page .table-bordered > tbody > tr > td {
    border-color: rgba(118, 166, 235, 0.15) !important;
    color: #e2e8f0;
}

html[data-theme="dark"] .user-profile-compare-page .table-bordered > thead > tr > th {
    background: linear-gradient(155deg, #2f3d56 0%, #232d42 100%);
    color: #cbd5e1 !important;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

html[data-theme="dark"] .user-profile-compare-page .table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(0, 0, 0, 0.12);
}

html[data-theme="dark"] .user-profile-compare-page .table-striped > tbody > tr:nth-of-type(even) > td {
    background-color: rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .user-profile-compare-page .progress {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    border: 1px solid rgba(118, 166, 235, 0.12);
}

html[data-theme="dark"] .user-profile-compare-page .well {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(118, 166, 235, 0.2);
    border-radius: 12px;
    color: #aabbd6;
}

html[data-theme="dark"] .user-profile-compare-page .well h5 {
    color: #e9f1ff;
    margin-top: 0;
}

html[data-theme="dark"] .user-profile-compare-page .alert-info {
    background: linear-gradient(155deg, rgba(30, 58, 95, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: #dbeafe;
    border-radius: 12px;
}

html[data-theme="dark"] .user-profile-compare-page .alert-warning {
    background: linear-gradient(155deg, rgba(80, 50, 20, 0.6) 0%, rgba(30, 22, 15, 0.95) 100%);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fde68a;
    border-radius: 12px;
}

html[data-theme="dark"] .user-profile-compare-page h4 {
    color: #e9f1ff;
    font-weight: 700;
}

html[data-theme="dark"] .user-profile-guest-card {
    background: linear-gradient(158deg, #273143 0%, #1d2535 42%, #151d2c 100%) !important;
    border: 1px solid rgba(96, 132, 188, 0.28) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .user-profile-guest-card .dotted-link {
    color: #93c5fd !important;
}

html[data-theme="dark"] .user-profile-guest-card .fs11 {
    color: #8a9bb8;
}

html[data-theme="dark"] .user-profile-guests-page .black-head {
    color: #e9f1ff !important;
}


/* Администратор: единая точка входа в действия профиля. */
.user-profile-head__settings {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    font-size: 22px;
    border-radius: 10px;
    color: #fff;
    background: rgba(25, 32, 42, .78);
    border: 1px solid rgba(255, 255, 255, .6);
}
.user-profile-head__settings:hover,
.user-profile-head__settings:focus {
    color: #fff;
    background: #253449;
}
.user-profile-admin-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.user-profile-admin-actions .btn {
    white-space: normal;
    text-align: left;
    padding: 12px 16px;
}
