.nickname_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
    position: relative;
    width: 100%;
}
.user_back,
.user_back video,
.user_back img {
    display: block;
    width: 100%;
}

.user_back {
    position: relative;
    height: 8em;
    border-radius: var(--br-10, 10px) 11px 0 0;
    overflow: visible; /* позволяем аватару выходить за пределы фона */
    padding-bottom: 50px; /* место для наплыва аватара */
}

.user_back video,
.user_back img,
.user_back .back_video {
    position: absolute !important;
    object-fit: cover;
    width: 100%;
    height: 91%;
    left: 0;
    top: 0;
}

/* Растягиваем фон ниже, чтобы покрывал никнейм */
.user_back #background {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: -60px; /* тянем фон ещё ниже блока */
    z-index: 0;
}

/* Контент под фоном поверх видео */
.user_sec_block {
    position: relative;
    z-index: 1;
}

.header_user_info {
    position: relative;
    z-index: 1; /* аватар и кнопки над фоном */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 12px;
    height: 100%;
}

.header_user_info .avatar_link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -42px; /* опускаем аватар ниже фона */
}

/* Сбрасываем глобальные правила из profiles для картинок в .header_user_info */
.header_user_info .rpg_avatar {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

/* Ряд с аватаром и соцкнопками по бокам */
.avatar_row {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -42px;
    display: flex;
    align-items: center;
    gap: 74px;
}

.avatar_socials {
    display: flex;
    flex-direction: row; /* горизонтально: иконки в ряд */
    align-items: center;
    gap: 6px;
    background: transparent; /* без подложки */
    border: none;
    padding: 0;
    width: auto; /* ширина по содержимому */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.avatar_socials.socials_left {
    left: 6px;
}

.avatar_socials.socials_right {
    right: 6px;
}

.avatar_socials .social__button-profile {
    height: 25px;
    width: 25px;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.avatar_socials .social__button-profile svg {
    height: 20px;
    width: 20px;
    fill: #fff;
}

/* Hover animation for social icons */
.avatar_socials .social__button-profile:hover {
    transform: scale(1.12);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.25));
}

@keyframes rpg-icon-pop {
    0% { transform: scale(1); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1.12); }
}

.avatar_socials .social__button-profile:hover svg {
    animation: rpg-icon-pop 240ms ease-out both;
}

/* Цвета брендов как в profiles */
.avatar_socials .vkontakte svg { fill: var(--brand-vkontakte-color, #4C75A3); }
.avatar_socials .telegram svg { fill: var(--brand-telegram-color, #2AABEE); }
.avatar_socials .discord svg { fill: var(--brand-discord-color, #5865F2); }

.avatar_socials .social__button-profile.disabled {
    opacity: 0.35;
    pointer-events: none;
    filter: grayscale(1);
    cursor: default;
}

/* Ensure copy Discord shows pointer hand */
.avatar_socials .discord.copy-btn { cursor: pointer; }

/* Toast for copy messages */

/* Цвет рамки по онлайн-статусу */
.avatar_link.online .rpg_avatar { border-color: #4CAF50; }
.avatar_link.offline .rpg_avatar { border-color: #c43333; }
/* RPG Profile Styles */
:root {
	/* Tuning knobs for calculator/input */
	--rpg-level-gap: 6px;
	--rpg-level-input-width: 64px;
	--rpg-level-input-height: 26px;
	--rpg-level-input-font-size: 13px;
	--rpg-level-input-bg: rgba(20, 20, 20, 0.9);
	--rpg-level-input-border: rgba(255, 255, 255, 0.15);
	--rpg-level-input-radius: 8px;
	--rpg-level-input-padding-x: 8px;
}

/* Заголовок карточки */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Кнопка полноэкранного режима */
.fullscreen_btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
}

.fullscreen_btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #4CAF50;
}

.fullscreen_btn svg {
    width: 16px;
    height: 16px;
}

/* Полноэкранный режим */
#rpg_skills_card.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: #1a1a1a;
    border-radius: 0;
    box-shadow: none;
    overflow-y: auto;
}

#rpg_skills_card.fullscreen .card-container {
    max-height: none;
    height: calc(100vh - 60px);
    overflow-y: auto;
}

#rpg_skills_card.fullscreen .fullscreen_btn svg {
    width: 24px;
    height: 24px;
}

#rpg_skills_card.fullscreen .fullscreen_btn svg path {
    d: path("M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z");
}
/* Мобильная версия */
@media (max-width: 768px) {
    /* Скрываем tabbar_mobile только в полноэкранном режиме */
    #rpg_skills_card.fullscreen ~ .tabbar_mobile,
    .tabbar_mobile:has(~ #rpg_skills_card.fullscreen),
    body:has(#rpg_skills_card.fullscreen) .tabbar_mobile {
        display: none !important;
    }
    
    /* Скрываем переключатель "Сменить количество колонок" на мобильных */
    .calculator_footer .skills_column:last-child {
        display: none !important;
    }
    
    /* Скрываем "Калькулятор прокачки" на мобильных */
    .calculator_footer .skills_column:first-child {
        display: none !important;
    }
    
    /* Скрываем весь контент карточки на мобильных по умолчанию */
    #rpg_skills_card .card-container {
        display: none;
    }
    
    /* Показываем только заголовок с кнопкой */
    #rpg_skills_card .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Показываем кнопку полноэкранного режима */
    .fullscreen_btn {
        display: flex !important;
    }
    
    /* В полноэкранном режиме показываем контент */
    #rpg_skills_card.fullscreen .card-container {
        display: block !important;
    }
    
    /* Скрываем нижнюю навигацию в полноэкранном режиме */
    #rpg_skills_card.fullscreen ~ * {
        display: none !important;
    }
    
    /* Скрываем все элементы после карточки навыков */
    body:has(#rpg_skills_card.fullscreen) .container > *:not(#rpg_skills_card),
    body:has(#rpg_skills_card.fullscreen) .container ~ * {
        display: none !important;
    }
    
    /* Переключатели в полноэкранном режиме на мобильных - 5 строчек */
    #rpg_skills_card.fullscreen .skills_columns {
        flex-direction: column;
        gap: 8px;
    }
    
    #rpg_skills_card.fullscreen .skills_column {
        width: 100%;
        flex: none;
    }
    
    #rpg_skills_card.fullscreen .skills_column .column_header {
        padding: 12px 16px;
        margin-bottom: 6px;
    }
    
    #rpg_skills_card.fullscreen .skills_column .column_header label {
        font-size: 14px;
        text-align: left;
        flex-direction: row;
        gap: 8px;
    }
    
    #rpg_skills_card.fullscreen .skills_column .column_header .toggle-track {
        margin: 0;
    }
    
    /* Адаптивные навыки */
    .skill_item {
        padding: 10px 12px;
        margin-bottom: 8px;
        min-height: 50px;
    }
    
    .skill_item .skill_name {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .skill_item .skill_level {
        font-size: 12px;
    }
    
    .skill_item .skill_level .current {
        font-size: 12px;
    }
    
    .skill_item .skill_level .max {
        font-size: 9px;
    }
    
    /* Адаптивная дополнительная информация */
    .skill_extra_info .extra_line {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 6px;
    }
    
    .skill_extra_info .extra_line .desc_label,
    .skill_extra_info .extra_line .more_label {
        font-size: 12px;
        margin-bottom: 2px;
    }
    
    .skill_extra_info .extra_line .num {
        font-size: 12px;
    }
    
    .skill_extra_info .extra_line r,
    .skill_extra_info .extra_line g,
    .skill_extra_info .extra_line x {
        font-size: 12px;
    }
    
    /* Адаптивный поиск */
    .skills_search input {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    /* Адаптивные нижние переключатели */
    .calculator_footer .skills_columns {
        flex-direction: row;
        gap: 6px;
    }
    
    .calculator_footer .skills_column {
        flex: 1;
    }
    
    .calculator_footer .column_header {
        padding: 8px 6px;
    }
    
    .calculator_footer .column_header label {
        font-size: 10px;
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    
    /* Адаптивный калькулятор */
    .calc_total_row {
        font-size: 13px;
        padding: 8px 12px;
        margin-top: 8px;
    }
    
    /* Адаптивные поля ввода */
    .level_input {
        width: 50px !important;
        height: 24px !important;
        font-size: 12px !important;
        padding: 2px 4px !important;
    }
    
    /* Адаптивный полноэкранный режим */
    #rpg_skills_card.fullscreen {
        padding: 10px;
    }
    
    #rpg_skills_card.fullscreen .card-container {
        height: calc(100vh - 80px);
        padding: 0;
    }
    
    /* Адаптивные колонки навыков - строго одна колонка на мобильных */
    #skills_display_columns {
        flex-direction: column;
    }
    
    #skills_display_columns .skills_column {
        width: 100%;
    }
    
    /* Принудительно делаем только одну колонку на мобильных */
    #rpg_skills_card.fullscreen #skills_display_columns .skills_column:not(:first-child) {
        display: none !important;
    }
}

@media (max-width: 480px) {
    /* Очень маленькие экраны */
    .skills_columns {
        gap: 4px;
    }
    
    .skills_column {
        min-width: calc(50% - 2px);
    }
    
    .skills_column .column_header {
        padding: 6px 4px;
    }
    
    .skills_column .column_header label {
        font-size: 10px;
    }
    
    .skill_item {
        padding: 8px 10px;
        min-height: 45px;
    }
    
    .skill_item .skill_name {
        font-size: 12px;
    }
    
    .skill_item .skill_level {
        font-size: 11px;
    }
    
    .skill_extra_info .extra_line {
        font-size: 11px;
    }
    
    .skills_search input {
        font-size: 13px;
        padding: 8px 10px;
    }
    
    .calculator_footer .column_header {
        padding: 6px 4px;
    }
    
    .calculator_footer .column_header label {
        font-size: 9px;
    }
    
    .level_input {
        width: 45px !important;
        height: 22px !important;
        font-size: 11px !important;
    }
}

.rpg_avatar {
    border-radius: 8px !important;
    width: 90px !important;
    height: 90px !important;
    object-fit: cover;
    border: 3px solid transparent;
    background: transparent;
    box-shadow: none;
    display: block;
    margin: 10px auto 0 auto; /* Отступ сверху для правильного позиционирования */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.avatar_link {
    position: relative;
    display: block;
    width: fit-content;
    margin: 0 auto; /* центрируем ссылку-обёртку */
}

.avatar_link:hover .rpg_avatar {
    transform: scale(1.06);
    box-shadow: none;
}

/* Tooltip */
.avatar_link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 5;
}

.avatar_link::before {
    content: "";
    position: absolute;
    bottom: calc(100% - 6px);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.85);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 5;
}

.avatar_link:hover::after,
.avatar_link:hover::before {
    opacity: 1;
}

.rpg_avatar_container {
    text-align: center;
    margin: 20px auto 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    position: relative;
}

.user_nickname {
    background: var(--bg-modal);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 auto;
    text-align: center;
    display: inline-block;
    width: fit-content;
    position: relative;
    z-index: 1;
}

.rpg_no_data {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.rpg_no_data_text {
    font-size: 14px;
    font-style: italic;
}

.rpg_exp_container {
    margin: 10px 0;
    text-align: center;
}

.rpg_exp_label {
    font-size: 14px;
    color: var(--text-default);
    margin-bottom: 8px;
    font-weight: 500;
}

.rpg_exp_bar {
    width: 90%;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    border: 2px solid #8B4513;
    display: flex;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0 auto 8px auto;
}

.rpg_exp_segment {
    height: 100%;
    background: linear-gradient(180deg, #8B4513, #654321);
    border-right: 1px solid rgba(0, 0, 0, 0.3);
    position: relative;
    flex: 1;
    min-width: 4px;
}

.rpg_exp_segment:last-child {
    border-right: none;
}

.rpg_exp_segment.filled {
    background: linear-gradient(180deg, #FFD700, #FFA500);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.rpg_exp_segment.empty {
    background: linear-gradient(180deg, #8B4513, #654321);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.rpg_exp_text {
    font-size: 13px;
    color: var(--text-default);
    font-weight: 500;
}

.rpg_buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.rpg_button {
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.rpg_button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.rpg_button.development {
    background-color: var(--span);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    position: relative;
}

.rpg_button.development:hover {
    background-color: var(--span);
}

.rpg_button_text {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.rpg_button.development .rpg_button_text {
    color: white;
}

/* Зеленый текст "В разработке" */
.rpg_button.development::after {
    content: "В разработке";
    position: absolute;
    top: 5px;
    right: 8px;
    color: #4CAF50;
    font-size: 10px;
    font-weight: bold;
}

/* Search Styles */
.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 12px 16px;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-result-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Skills Toggle */
.skill_toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.toggle-track {
    position: relative;
    width: 50px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.toggle-indicator {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.rpg_checkbox:checked + .toggle-track {
    background-color: #4CAF50;
}

.rpg_checkbox:checked + .toggle-track .toggle-indicator {
    transform: translateX(26px);
}

/* Skills Columns */
.skills_columns {
    display: flex;
    gap: 5px;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    flex: 1;
}

.skills_column {
    flex: 1;
}

.skills_column .column_header {
    padding: 12px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid #444;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skills_column .column_header:hover {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    border-color: #666;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.skills_column .column_header label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: white;
    font-weight: 500;
    font-size: 14px;
    margin: 0;
    width: 100%;
}

.skills_column .column_header label span:last-child {
    color: white;
    font-size: 13px;
    font-weight: 500;
}

.skill_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: background-color 0.2s ease;
    min-height: 40px;
}

.skill_item.has_extra_info {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
}

.skill_item.has_extra_info .skill_name,
.skill_item.has_extra_info .skill_level {
    margin-bottom: 0;
}

.skill_item.has_extra_info .skill_name {
    font-size: 13px;
}

.skill_item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.skill_item .skill_extra_info {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 6px;
    gap: 4px;
}

.skill_item .skill_extra_info .extra_line {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.4;
    display: block;
}

.skill_item .skill_extra_info .extra_line.desc {
	color: #ffffff;
	font-weight: normal;
}

.skill_item .skill_extra_info .extra_line .desc_label {
	font-weight: 700;
	color: #4CAF50;
	display: block;
	margin-bottom: 1px;
}

/* Кастомные теги для цветного текста */
.skill_item .skill_extra_info .extra_line r {
	color: #c26d6d;
	font-weight: 700;
	font-size: 13px;
}

.skill_item .skill_extra_info .extra_line r::before {
	content: "✖ ";
}

.skill_item .skill_extra_info .extra_line g {
	color: #82aa83;
	font-weight: 700;
	font-size: 13px;
}

.skill_item .skill_extra_info .extra_line g::before {
	content: "♥ ";
}

.skill_item .skill_extra_info .extra_line x {
	font-weight: 700;
	font-size: 13px;
	color: #53dbc3;
}

.skill_item .skill_extra_info .extra_line x::before {
	content: "• ";
}

.skill_item .skill_extra_info .extra_line .num {
	color: #4CAF50;
	font-weight: bold;
	font-size: 13px;
}

.skill_item .skill_extra_info .extra_line .more_label {
	font-weight: 700;
	color: #c43333;
	display: block;
	margin-bottom: 1px;
}

.skill_item .skill_extra_info .extra_line .num-blue {
	color: #4da3ff;
	font-weight: bold;
	font-size: 13px;
}

.skill_item .skill_extra_info .extra_line .num-red {
	color: #c43333;
	font-weight: bold;
	font-size: 13px;
}

/* Left column stats container for precise spacing */
.rpg_left_stats .stats_container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 10px 10px 10px; /* Отступы по бокам и снизу */
}

.rpg_left_stats .stats_row {
    display: flex;
    gap: 10px;
}

/* Ensure consistent edges with avatar card padding */
.rpg_left_stats {
    margin-top: 10px;
}

/* Skills Card Container */
.card:has(.skills_columns) {
    max-height: none;
    overflow: visible;
}

.card:has(.skills_columns) .card-container {
    max-height: none;
    height: auto;
    overflow: visible;
}

.skill_name {
    color: white;
    font-size: 14px;
    flex: 1;
}

.skill_level {
    color: #4CAF50;
    font-weight: bold;
    font-size: 13px;
    min-width: 20px;
    text-align: right;
}

.skill_level .current {
	color: #4CAF50;
	font-weight: bold;
    font-size: 13px;
}

.skill_level .max {
	color: #c43333;
	font-weight: bold;
	font-size: 8px;
}

.skill_level .sep {
	color: #ffffff;
	font-weight: 333;
}

/* Zero Commission теперь использует общие стили stats_row_full */

/* Stats Layout - Полностью переделанный дизайн */
.stats_container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.stats_row {
    display: flex;
    gap: 12px;
}

.stats_row_full {
    width: 100%;
    text-align: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 6px;
    margin: 0;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: none;
    box-shadow: none;
}

.stats_row_full:hover {
    background: var(--bg-modal);
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

.stats_column {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 6px;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: none;
    box-shadow: none;
}

.stats_column:hover {
    background: var(--bg-modal);
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

/* Make FREE placeholders neat and centered */
.card .rpg_no_data_text {
    width: 100%;
    text-align: center;
    margin: 10px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
}

.stats_row_full .title_column {
    font-size: 11px;
    color: white;
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stats_row_full .content_column {
    font-size: 14px;
    color: #4CAF50;
    font-weight: 600;
    text-shadow: none;
}

.stats_column .title_column {
    font-size: 11px;
    color: white;
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stats_column .content_column {
    font-size: 14px;
    color: #4CAF50;
    font-weight: 600;
    text-shadow: none;
}

/* Стиль для отсутствующей нулевой комиссии */
.stats_row_full .content_column.no_commission {
    color: #ef4444;
    text-shadow: none;
}

/* Search buttons row */
.search_buttons_row {
    display: flex;
    gap: 10px;
    padding: 0px;
}

.search_button {
    flex: 1;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 16px 12px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    position: relative;
}

.search_button:hover {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
}

.search_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

.search_button.disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

.search_button_title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    flex: 1;
}

.search_button_badge {
    position: absolute;
    top: 7px;
    right: 7px;
    color: #ffe40785;
    font-size: 10px;
    font-weight: 500;
    border-radius: 4px;
}

/* Адаптация кнопок навигации для мобильных устройств */
@media (max-width: 768px) {
    .search_buttons_row {
        flex-direction: column;
        gap: 8px;
    }
    
    .search_button {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
        min-height: 50px;
    }
    
    .search_button_title {
        font-size: 14px;
        font-weight: 500;
    }
    
    .search_button_badge {
        font-size: 10px;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .search_button {
        padding: 10px 12px;
        font-size: 13px;
        min-height: 45px;
    }
    
    .search_button_title {
        font-size: 13px;
    }
    
    .search_button_badge {
        font-size: 9px;
        padding: 1px 4px;
    }
}


/* Right Column Layout */
.col-md-9 {
    display: flex;
    flex-direction: column;
}

.col-md-9 .row {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin: 0;
}

.col-md-9 .col-md-6 {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    gap: 10px;
    height: 100%;
}

.col-md-9 .col-md-6 .card {
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.col-md-9 .col-md-6 .card .card-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Card Spacing */
.col-md-9 .card {
    margin-bottom: 0;
}

.col-md-9 .card:last-child {
    margin-bottom: 0;
}

/* Skills Card Specific */
.col-md-9 .col-md-6:last-child .card {
    height: 100%;
    max-height: none;
}

.card:has(.skills_columns) .card-container {
    max-height: none !important;
    height: auto !important;
}

/* Responsive */
@media (max-width: 768px) {
    .stats_row {
        flex-direction: column;
        gap: 10px;
    }
    
    .skills_columns {
        flex-direction: column;
        gap: 10px;
        max-height: 300px;
    }
    
    .col-md-9 .row {
        flex-direction: column;
        gap: 10px;
    }
    
    .rpg_buttons {
        gap: 6px;
    }
    
    .rpg_button {
        padding: 8px 12px;
    }
    
    .rpg_button_text {
        font-size: 13px;
    }
}

/* Топ 12 игроков RPG */
.rpg-top-players {
    padding: 2px;
}

.top-players-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 10px;
    margin-top: 10px;
}

.top-player-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid #444;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.top-player-item:hover {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    border-color: #666;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Красное свечение для текущего пользователя */
.top-player-item.current-user {
    background: linear-gradient(135deg, #2a1a1a 0%, #1a0a0a 100%);
    border: 2px solid #ff4444;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.5), 0 0 40px rgba(255, 68, 68, 0.3);
    animation: currentUserGlow 2s ease-in-out infinite alternate;
}

.top-player-item.current-user:hover {
    background: linear-gradient(135deg, #3a2a2a 0%, #2a1a1a 100%);
    border-color: #ff6666;
    box-shadow: 0 0 25px rgba(255, 68, 68, 0.7), 0 0 50px rgba(255, 68, 68, 0.4);
    transform: translateY(-2px);
}

@keyframes currentUserGlow {
    0% {
        box-shadow: 0 0 20px rgba(255, 68, 68, 0.5), 0 0 40px rgba(255, 68, 68, 0.3);
    }
    100% {
        box-shadow: 0 0 30px rgba(255, 68, 68, 0.8), 0 0 60px rgba(255, 68, 68, 0.5);
    }
}

/* Блок авторизации */
.auth_required_block {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #332b22 0%, #2a231c 100%);
    border-radius: 12px;
    border: 2px dashed #8b7a5e;
    margin: 20px 0;
    position: relative;
}

.auth_required_icon {
    width: 40px;
    height: 40px;
    background: #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    font-size: 20px;
    color: #000;
    font-weight: bold;
}

.auth_required_text {
    color: #8b7a5e;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Кнопка Steam - используем стандартные стили */
.steam-login-btn {
    background: rgba(220, 38, 38, 0.15) !important;
    color: #fff !important;
    font-weight: 700 !important;
    transition: all 0.3s ease;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

/* Плейсхолдер для 12-го блока */
.top-player-item.auth-placeholder {
    background: linear-gradient(135deg, #2a1a1a 0%, #1a0a0a 100%);
    border: 2px solid #ff4444;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.5), 0 0 40px rgba(255, 68, 68, 0.3);
    animation: currentUserGlow 2s ease-in-out infinite alternate;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.top-player-item.auth-placeholder:hover {
    background: linear-gradient(135deg, #3a2a2a 0%, #2a1a1a 100%);
    border-color: #ff6666;
    box-shadow: 0 0 25px rgba(255, 68, 68, 0.7), 0 0 50px rgba(255, 68, 68, 0.4);
    transform: translateY(-2px);
}

/* Стили для кнопки внутри плейсхолдера */
.top-player-item.auth-placeholder .player-level {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
}

/* placeholder avatar removed for guests */

.top-player-item.auth-placeholder .player-name {
    color: #ccc;
    font-style: italic;
}

.top-player-item.auth-placeholder .player-level {
    color: #888;
    font-size: 11px;
}

.player-rank {
    display: none; /* Скрываем ранг, чтобы не перекрывал ник */
}

.player-rank:first-child {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

.player-rank:nth-child(2) {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #333;
}

.player-rank:nth-child(3) {
    background: linear-gradient(135deg, #cd7f32 0%, #daa520 100%);
}

.player-avatar {
    margin-right: 12px;
    position: relative;
}

.player-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #555;
    transition: all 0.3s ease;
}

.top-player-item:hover .player-avatar img {
    border-color: #888;
    transform: scale(1.05);
}

.player-info {
    flex: 1;
    min-width: 0;
}

.player-name {
    font-weight: bold;
    color: #fff;
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-level {
    color: #aaa;
    font-size: 12px;
    display: flex;
    align-items: center;
}

.skill_item .skill_name .skill_index {
	color: #4CAF50;
	font-weight: 700;
	margin-right: 0px;
    font-size: 13px;
}

.no-data {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 40px 20px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 1200px) {
    .top-players-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .top-players-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .top-player-item {
        padding: 10px;
    }
    
    .player-avatar img {
        width: 40px;
        height: 40px;
    }
    
    .player-name {
        font-size: 13px;
    }
    
    .player-level {
        font-size: 11px;
    }
}

/* Размер шрифта для заголовков статистики */
.stats_column .title_column {
    font-size: 11px;
}

/* Align level input and max level on one line without shifting */
.skill_item .skill_level {
	display: flex;
	align-items: center;
	gap: var(--rpg-level-gap);
}

.skill_item .skill_level .current {
	display: flex;
	align-items: center;
}

/* Compact input for calculator mode */
.level_input {
	background: var(--rpg-level-input-bg);
	border: 1px solid var(--rpg-level-input-border);
	color: #fff;
	border-radius: var(--rpg-level-input-radius);
	width: var(--rpg-level-input-width);
	height: var(--rpg-level-input-height);
	padding: 0 var(--rpg-level-input-padding-x);
	line-height: var(--rpg-level-input-height);
	text-align: right;
	font-size: var(--rpg-level-input-font-size);
	font-weight: bold;
	box-sizing: border-box;
	outline: none;
}

/* Remove number arrows for better look */
.level_input::-webkit-outer-spin-button,
.level_input::-webkit-inner-spin-button { 
	-webkit-appearance: none; 
	margin: 0; 
}
.level_input[type=number] { 
	-moz-appearance: textfield; 
	appearance: textfield;
}

.calculator_footer {
	margin-top: 12px;
}

.calc_total_row {
	padding: 8px 12px;
	margin-top: 8px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 6px;
	font-size: 14px;
	color: #fff;
}

.calc_total_row .num {
	color: #4CAF50;
	font-weight: bold;
}

/* Apply same header style to calculator footer */
.calculator_footer .column_header {
	padding: 12px;
	margin-bottom: 8px;
	background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
	border: 1px solid #444;
	border-radius: 8px;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.calculator_footer .column_header:hover {
	background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
	border-color: #666;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Optional quick overrides (edit below instead of searching through the file) */
:root.rpg-calc-compact {
	--rpg-level-input-width: 56px;
	--rpg-level-input-height: 24px;
	--rpg-level-input-font-size: 12px;
	--rpg-level-gap: 4px;
}

/* Calculator mode: truncate skill names to 11 chars with tooltip */
.rpg-calc-compact .skill_item .skill_name {
    max-width: 15ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
}

.rpg-calc-compact .skill_item .skill_name:hover::after {
	content: attr(data-full-name);
	position: absolute;
	top: 100%;
	left: 0;
	background: rgba(0, 0, 0, 0.9);
	color: white;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	white-space: nowrap;
	z-index: 1000;
	pointer-events: none;
}

/* High-specificity override to beat global input styles */
.skills_columns .skill_item .skill_level .current input.level_input {
	background: var(--rpg-level-input-bg) !important;
	border: 1px solid var(--rpg-level-input-border) !important;
	color: #fff !important;
	border-radius: var(--rpg-level-input-radius) !important;
	width: var(--rpg-level-input-width) !important;
	height: var(--rpg-level-input-height) !important;
	padding: 0 var(--rpg-level-input-padding-x) !important;
	line-height: var(--rpg-level-input-height) !important;
	text-align: right !important;
	font-size: var(--rpg-level-input-font-size) !important;
	font-weight: bold !important;
	box-sizing: border-box !important;
	outline: none !important;
	appearance: textfield !important;
}

.skills_columns .skill_item .skill_level .current input.level_input::-webkit-outer-spin-button,
.skills_columns .skill_item .skill_level .current input.level_input::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
}
