button[data-clan] {
    border: none !important;
}

.clan_participant_likes {
    cursor: pointer;
}

.clan_like_member_block {
    display: flex;
    gap: 16px;
}

.clan_member_like_info .text_h2_clan {
    font-weight: bold;
}

.clan_member_like_info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.clan_member_like_btn {
    background: linear-gradient(1deg, #222222 30%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    font-size: 18px;
    border-radius: 12px;
    width: fit-content;
    width: 34px;
}

.likes_area_clan svg{
    width: 12px;
    height: 12px;
    fill: #ff6f6f;
    margin-right: 5px;
}

.likes_area_clan {
    background: #ff6f6f4a;
    width: 45px;
    border-radius: 7px;
    height: 30px;
    display: flex;
    font-size: 10px;
    font-weight: 600;
    align-items: center;
    justify-content: center;
}

.clans_desc {
	background: var(--GLOBAL, radial-gradient(100% 100% at 50% 0, #414141 0, #383839 100%)) !important;
    color: #818181 !important;
    border-radius: 11px;
    padding: 0px 16px !important;
	font-size: 19px;
}

.clans_desc:hover {
	font-size: 19px;
}

.clans {
    display: flex;
    flex-direction: column;
	gap: 13px;
}

.clan_list_item {
	background: #3b3b3b url('/templates/solution/img/back_user.png') 0 0/cover no-repeat;
	padding: 20px;
	border-radius: 16px;
	display: flex;
	justify-content: space-between;
	transition: filter 0.2s, transform 0.15s;
	position: relative;
}

.clan_list_item::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 16px;
	background: linear-gradient(90deg, rgba(30,30,30,0.85) 0%, rgba(30,30,30,0.55) 60%, rgba(30,30,30,0.85) 100%);
	pointer-events: none;
	z-index: 0;
}

.clan_list_item > * {
	position: relative;
	z-index: 1;
}

.clan_list_item.clickable_clan {
	cursor: pointer;
}

.clan_list_item.clickable_clan:hover {
	filter: brightness(1.1);
	transform: translateY(-1px);
}

.clan_list_info {
	display: flex;
    gap: 15px;
    align-items: center;
}

.img_clan {
    width: 145px;
    height: 145px;
    object-fit: cover;
    border-radius: 16px;
}

.avatar_owner_clan {
    width: 16px;
    height: 16px;
    position: relative;
    border-radius: 4px;
}

.info_clan {
    display: flex;
    flex-direction: column;
    padding: 5px 0px;
    gap: 14px;
}

.flex_name_clan {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.name_clan {
    font-size: 18px;
    font-weight: 600;
}

.name_clan a {
    color: #ffff;
}

.users_clan_m {
    width: fit-content;
    background: #474747;
    padding: 4px 10px 4px 5px;
    font-size: 9.4px;
    border: solid 1px #555555;
    color: #9b9b9b;
    font-weight: 600;
    border-radius: 50px;
}

.users_tag_clan {
    padding: 3px 8px;
    background: linear-gradient(0deg, #616161 30%, #797979 100%);
    font-size: 10px;
    margin-right: 4px;
    color: #ffffff;
    font-weight: 600;
    border-radius: 50px;
}

.box_text_clan {
    display: flex;
    gap: 10px;
    align-items: center;
}

.flex_info_clan {
    display: flex;
    line-height: 15px;
    flex-direction: column;
	gap: 3px;
}

.creator_clan {
    display: flex;
    gap: 3px;
}

.date_clan {
    font-size: 12px;
    font-weight: 600;
}

.desp_info_clan {
    color: #828282;
    font-weight: 600;
    font-size: 11px !important;
}

.desp_info_clan {
    color: #898989;
    font-weight: 600;
    font-size: 11px !important;
}

.clan_list_data {
    display: flex;
    gap: 7px;
    border: dashed 1px #6b6b6b;
    border-radius: 14px;
    background: #6b6b6b2e;
    padding: 10px;
    flex-direction: column;
}

.likes_block_clan {
    height: 58px;
    background: radial-gradient(100% 100% at 50% 0, #4ddf9969 0, #38644f4a 100%);
    min-width: 110px;
    border-radius: 12px;
    padding: 0px 14px;
    line-height: 17px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    justify-content: center;
}

.likes_block_clan i {
    position: absolute;
    font-size: 45px;
    right: 0px;
    margin-right: -13px;
    color: #61dca02e;
    transform: rotate(348deg);
}

.kolvo__likes_clan {
    font-size: 13px;
    font-weight: 600;
    color: #61dca0;
}

.desp_right_clan {
    font-weight: 600;
    font-size: 11px;
    color: #ffffffd6
}

.rait_block_clan {
    height: 58px;
    border-radius: 12px;
    background: linear-gradient(0deg, #515151 30%, #636363 100%);
    min-width: 110px;
    padding: 0px 14px;
    line-height: 17px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    justify-content: center;
}

.rait_block_clan i {
    position: absolute;
    font-size: 43px;
    right: 0px;
    margin-right: -13px;
    color: #9296a045;
    transform: rotate(348deg);
}

.kolvo_rait_clan {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.block_clan_index {
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  padding: 0px 30px 30px 30px;
  display: flex;
  height: 400px;
  margin-bottom: 10px;
  box-shadow: 0px 5px 10px #13151a30;
  background: linear-gradient(1deg, #000000 30%, #000000 100%);
  flex-direction: column;
  justify-content: flex-end;
}

.cover_background_clan {
    width: 100%;
    opacity: 1;
    object-fit: cover;
    margin-left: -30px;
    bottom: 0px;
    position: absolute;
    height: 100%;
}

.bottom_clan_block {
    display: flex;
    position: relative;
    margin-bottom: 20px;
    width: 100%;
    z-index: 2;
    justify-content: space-between;
}

.gradient_online_clan {
    width: 100%;
    display: block;
    height: 810px;
    bottom: 0px;
    margin-left: -30px;
    position: absolute;
    z-index: 1;
    background: linear-gradient(360deg, #222222 10%, #3b3b3f36 100%);
}

.left_clan {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.right_side_clan {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-direction: column;
    justify-content: space-between;
}

.flex_buttons_clan {
	display: flex;
    gap: 5px;
    justify-content: space-around;
}

.flex_buttons_clan button {
	border-radius: 12px !important;
}

.status_clan {
    position: relative;
    z-index: 2;
    display: flex;
    background: var(--GLOBAL, radial-gradient(100% 100% at 50% 0, #292727 0, #353434 100%));
    border-radius: 12px;
    padding: 10px 10px 10px 18px;
    justify-content: space-between;
}

.left_status_clan {
    display: flex;
    gap: 10px;
    align-items: center;
}

.img_status_clan {
    width: 32px;
    height: 32px;
    border-radius: 50px;
}

.text_status_clan_flex {
    display: flex;
    line-height: 15px;
    font-weight: 600;
    flex-direction: column;
}

.name_status_clan {
    font-size: 11.5px;
}

.text_status_clan {
    font-size: 11px;
    color: #8d8d99;
}

.stats_clan_info {
    display: flex;
    justify-content: space-between;
    gap: 7px;
    padding: 10px;
    backdrop-filter: blur(3px);
    background: #0000001f;
    border-radius: 15px;
    flex-direction: column;
}

.likes_stats_clan {
    background: var(--GLOBAL, radial-gradient(100% 100% at 50% 0, #fd626273 0, #bd3e3e42 100%));
    height: 47px;
    min-width: 90px;
    border-radius: 10px;
    padding: 0px 14px;
    line-height: 17px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    justify-content: center;
}

.likes_stats_clan i {
    position: absolute;
    font-size: 45px;
    right: 0px;
    margin-right: -13px;
    color: #fe939430;
    transform: rotate(348deg);
}

.flex_clans_info_stats {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    line-height: 16px;
}

.name_clan_info {
    color: #fd8484;
}

.desp_clan_info {
    font-size: 10.5px;
}

.kills_stats_clan {
  background: var(--GLOBAL, radial-gradient(100% 100% at 50% 0, #ff855482 0, #ff85543d 100%));
  height: 47px;
  min-width: 90px;
  border-radius: 10px;
  padding: 0px 14px;
  line-height: 17px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  justify-content: center;
}

.kills_stats_clan i {
  position: absolute;
  font-size: 45px;
  right: 0px;
  margin-right: -13px;
  color: #ff9a7f30;
  transform: rotate(348deg);
}

.block_solution_clans {
    border-radius: 20px;
    background: linear-gradient(1deg, #222222 30%, #2d2d2d 100%);
    transition: .2s all;
    gap: 11px;
    padding: 17px;
    display: flex;
    margin-bottom: 5px;
    flex-direction: column;
}

.name_clan_info_kills {
    color: #ffb99d;
}

.reit_stats_clan {
    height: 47px;
    background: var(--GLOBAL, radial-gradient(100% 100% at 50% 0, #e5768d7d 0, #e5768d2e 100%));
    min-width: 110px;
    border-radius: 10px;
    padding: 0px 14px;
    line-height: 17px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    justify-content: center;
}

.reit_stats_clan i {
    position: absolute;
    font-size: 45px;
    right: 0px;
    margin-right: -13px;
    color: #e5768d3b;
    transform: rotate(348deg);
}

.name_clan_info_reit {
    color: #ff9db2;
}

/* Рамка вокруг аватара участника клана */
.clan_avatar_wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.clan_avatar_wrap .clan_avatar_frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 135%;
    height: 135%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    max-width: none;
}

/* Рамка вокруг аватара создателя в шапке клана */
.creator_avatar_wrap {
    position: relative;
    display: inline-flex;
    width: 16px;
    height: 16px;
    margin-right: 2px;
    vertical-align: middle;
}

.creator_avatar_wrap .clan_avatar_frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160%;
    height: 160%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    max-width: none;
}

/* Имя участника — превращаем в flex-строку для аккуратного выравнивания иконок */
.text_h1_clan,
.creator_clan,
.creator_clan a {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

/* Иконка верификации в имени участника */
.text_h1_clan .verification-badge,
.creator_clan .verification-badge {
    height: 13px !important;
    width: 13px !important;
    margin: 0 !important;
    position: static !important;
    top: auto !important;
    display: inline-block;
    flex-shrink: 0;
}

/* Бейджи рядом с именем */
.clan_badges {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    margin: 0 !important;
}

.clan_badges img,
.clan_badges video,
.clan_badges lottie-player {
    display: inline-block;
    margin: 0 !important;
    vertical-align: middle;
    flex-shrink: 0;
}

.player_block_clans {
    background: var(--GLOBAL, radial-gradient(100% 100% at 50% 0, #292727 0, #353434 100%));
    justify-content: space-between;
    display: flex;
    height: 75px;
    padding: 0px 23px;
    border-radius: 13px;
    align-items: center;
}

.name_and_img_clans {
    display: flex;
    gap: 9px;
    align-items: center;
    width: 160px;
}

.img_user_player_clan {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.content_player_flex {
    display: flex;
    flex-direction: column;
    line-height: 15px;
    font-weight: 600;
}

.text_h1_clan {
    text-overflow: ellipsis;
    max-width: 200px;
    overflow: hidden;
    white-space: nowrap;
}

.text_h2_clan {
    color: #828282;
    font-size: 11px;
}

.nick_clans {
    width: 200px;
}

.reit_clans {
    width: 80px;
}

.date_clans {
    width: 130px;
}

.clan_plus_slot {
    background: #49c98b17;
    display: flex;
    gap: 13px;
    padding: 15px 15px;
    color: #60c896;
    border: dashed 1px #49c98b87;
    margin-bottom: -5px;
    font-weight: bold;
    border-radius: 15px;
    font-size: 11px;
	margin-bottom: 15px;
}

.clan_slot_success {
    font-size: 12px;
    color: #60c896;
    margin-top: 5px;
    display: block;
}

.clan_change_cover img, .clan_change_avatar img {
	object-fit: cover;
}

#applications .block {
    padding: 0 !important;
    margin-bottom: 0 !important;
	background: transparent !important;
}

#role select {
	top: 0;
}

#role .clan_roles_item .input-group-btn {
	display: flex;
    gap: 10px;
}

#role .clan_roles_item {
	margin-bottom:15px;
}

#role .clan_roles_item button {
	height: 42px !important;
}

#role .form-control {
	margin-bottom: 0px !important;
}

.clan_roles_item {
	display: flex;
    gap: 10px;
    align-items: center;
}

.clans .block_solution {
	margin-bottom: 10px;
}

.clan_request_item {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    background: linear-gradient(1deg, #3a3a4678 30%, #3a3a46 100%);
    border-radius: 14px;
    padding: 10px;
    align-items: center;
	justify-content: space-between;
}

.clan_request_item .buttons {
    display: flex;
    gap: 10px;
}

.clan_request_item button {
	border-radius: 10px !important;
}

.btn_avatar_clan_setting {
    border: none;
    background: linear-gradient(0deg, #4f4f4fa6 30%, #4f4f4f 100%);
    height: 49px;
    border-radius: 10px;
    font-weight: 700;
    width: 150px;
    margin-top: 21px;
    font-size: 11px;
    cursor: pointer;
    transition: 0.2s;
    color: #fff
}

.btn_avatar_clan_setting:hover {
    opacity: .7
}

.block_status_edit {
    background: linear-gradient(1deg, #4242429e 30%, #424242 100%);
    padding: 20px 20px 10px 20px;
    border-radius: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
}

#clanStatus {
    height: 50px;
}

/* === Кнопки заявок в модалке (используем .friend_req_btn, но компактнее) === */
ul.applications li .buttons .friend_req_btn {
    flex: 0 0 auto;
    height: 34px;
    padding: 0 14px;
    font-size: 12px;
    border-radius: 8px;
}
ul.applications li .buttons .friend_req_btn i {
    font-size: 14px;
}

/* === Callout: новая заявка на вступление === */
.clan_join_callout {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 13px;
    background: linear-gradient(0deg, #343434 30%, #383838 100%);
    border-left: 3px solid #da9256;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease;
}
.clan_join_callout:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .32);
}
.clan_join_callout_icon {
    position: relative;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(23deg, #865023 0%, #da9256 55%);
    color: #fff;
    font-size: 20px;
    box-shadow: 0 0 0 2px rgba(218, 146, 86, .2);
}
.clan_join_callout_badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #ff5c5c;
    color: #fff;
    font-size: 10px;
    line-height: 18px;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(255, 92, 92, .35);
}
.clan_join_callout_body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.clan_join_callout_title {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}
.clan_join_callout_text {
    color: #b8b8b8;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
}
.clan_join_callout_text b {
    color: #da9256;
    font-weight: 700;
}
.clan_join_callout_btn {
    border: none;
    background: linear-gradient(23deg, #865023 0%, #da9256 55%);
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    padding: 9px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: filter .2s ease, box-shadow .2s ease;
    box-shadow: 0 4px 12px rgba(218, 146, 86, .28);
    text-transform: uppercase;
    letter-spacing: .3px;
}
.clan_join_callout_btn:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 16px rgba(218, 146, 86, .38);
}
@media (max-width: 575px) {
    .clan_join_callout {
        padding: 12px;
        gap: 10px;
    }
    .clan_join_callout_btn {
        padding: 8px 12px;
        font-size: 10px;
    }
}

/* === Управление кланом === */
.manage_clan_panel {
    background: linear-gradient(1deg, #222222 30%, #2d2d2d 100%);
    padding: 18px 20px;
    border-radius: 20px;
    margin-bottom: 13px;
}

.manage_clan_panel .manage_title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #c9c9d6;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.manage_title_row .manage_title {
    margin-bottom: 0 !important;
}

.manage_back_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    color: #c9c9d6;
    background: linear-gradient(360deg, #3f3f3f 0%, #43434373 55%);
    transition: 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

/* Кнопка «Назад» над карточкой клана — видна всем (гости + участники + админы) */
.clan_top_back {
    margin-bottom: 10px;
    display: flex;
}

.clan_top_back .manage_back_btn {
    height: 36px;
    padding: 0 16px;
    font-size: 12px;
}

.manage_back_btn:hover {
    background: linear-gradient(360deg, #4a4a4a 0%, #4a4a4a 55%);
    color: #fff;
}

.manage_back_btn i {
    font-size: 14px;
    line-height: 1;
}

.manage_clan_buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.manage_clan_buttons .manage_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 45px;
    padding: 0 18px;
    border-radius: 11px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    width: 100%;
    position: relative;
    white-space: nowrap;
    background: linear-gradient(23deg, #865023 0%, #da9256 55%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(218, 146, 86, 0.15);
    font-family: inherit;
}

.manage_clan_buttons .manage_btn i {
    font-size: 16px;
    line-height: 1;
    color: #fff;
}

.manage_clan_buttons .manage_btn:hover {
    opacity: 0.85;
    color: #fff;
    text-decoration: none;
}

.manage_clan_buttons .manage_btn:focus {
    outline: none;
}

.manage_clan_buttons .manage_btn .badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #ff5c5c;
    color: #fff;
    font-size: 10px;
    line-height: 18px;
    text-align: center;
    font-weight: 700;
}

/* === Общие стили для всех модалок модуля кланов === */
#settings .modal-title,
#role .modal-title,
#applications .modal-title,
#create_clan .modal-title,
#clans_desc .modal_head,
#clans_desc .flex_modal_head > span {
    color: #fff !important;
    font-weight: 700;
}

/* Кнопка-крестик закрытия в шапке модалки — белая, видна на тёмном фоне */
#settings .modal-header .close,
#role .modal-header .close,
#applications .modal-header .close,
#create_clan .modal-header .close,
#clans_desc .modal-header .close {
    color: #fff !important;
    opacity: 0.6;
    text-shadow: none;
}

#settings .modal-header .close:hover,
#role .modal-header .close:hover,
#applications .modal-header .close:hover,
#create_clan .modal-header .close:hover,
#clans_desc .modal-header .close:hover {
    opacity: 1;
}

/* === Модалка создания клана === */
#create_clan .modal-body .form-control {
    height: 42px;
    background: #2d2d2d;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    color: #e0e0e0;
    padding: 0 12px;
    font-size: 12px;
    width: 100%;
}

#create_clan .modal-body .video_btn_buy::after {
    display: none !important;
}

#create_clan .modal-body .price_btn_video {
    font-size: 8.5px;
    padding: 0 7px;
    height: 17px;
}

#settings .modal-header,
#role .modal-header,
#applications .modal-header,
#create_clan .modal-header {
    align-items: center;
}

/* Общий input-group для всех модалок: поле + кнопка одной высоты, кнопка фикс. ширины */
#settings .modal-body .input-group,
#role .modal-body .input-group,
#create_clan .modal-body .input-group {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 14px;
    width: 100%;
}

#settings .modal-body .input-group > .form-control,
#settings .modal-body .input-group > .clan_file_picker,
#settings .modal-body .input-group > select,
#role .modal-body .input-group > .form-control,
#role .modal-body .input-group > select,
#create_clan .modal-body .input-group > .form-control {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px !important;
    min-height: 42px;
    max-height: 42px;
    line-height: 40px !important;
    box-sizing: border-box !important;
    background: #2d2d2d;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    color: #e0e0e0;
    padding: 0 12px;
    font-size: 12px;
    margin: 0 !important;
}

#settings .modal-body .input-group > .input-group-btn,
#role .modal-body .input-group > .input-group-btn,
#create_clan .modal-body .input-group > .input-group-btn {
    flex: 0 0 130px;
    display: flex;
}

#settings .modal-body .input-group .input-group-btn .btn,
#role .modal-body .input-group .input-group-btn .btn,
#create_clan .modal-body .input-group .input-group-btn .btn {
    width: 100%;
    height: 42px !important;
    min-height: 42px;
    max-height: 42px;
    line-height: 1 !important;
    box-sizing: border-box !important;
    padding: 0 18px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(23deg, #865023 0%, #da9256 55%) !important;
    color: #fff !important;
    transition: 0.2s;
}

#settings .modal-body .input-group .input-group-btn .btn:hover,
#role .modal-body .input-group .input-group-btn .btn:hover,
#create_clan .modal-body .input-group .input-group-btn .btn:hover {
    opacity: 0.85;
}

#settings .modal-body .input-group .input-group-btn .btn::after,
#role .modal-body .input-group .input-group-btn .btn::after,
#create_clan .modal-body .input-group .input-group-btn .btn::after {
    display: none !important;
}

/* Лейблы в modal-body */
#settings .modal-body label,
#role .modal-body label,
#create_clan .modal-body label {
    position: static !important;
    top: auto !important;
    display: block !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #c9c9d6 !important;
    margin: 0 0 6px 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: default;
}

/* Отступ между группами полей */
#settings .modal-body .mt-3,
#create_clan .modal-body .mt-3,
#role .modal-body .mt-3 {
    margin-top: 14px !important;
}

/* Красивая кнопка выбора файла вместо стандартной "Выберите файл" */
#settings .modal-body .clan_file_picker {
    position: static !important;
    top: auto !important;
    flex: 1;
    min-width: 0;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    height: 42px !important;
    min-height: 42px;
    max-height: 42px;
    line-height: 1 !important;
    box-sizing: border-box !important;
    padding: 0 14px;
    border-radius: 10px;
    background: linear-gradient(360deg, #3f3f3f 0%, #43434373 55%);
    color: #c9c9d6 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: 0.2s;
    border: 1px dashed #555;
    margin: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#settings .modal-body .clan_file_picker:hover {
    background: linear-gradient(360deg, #4a4a4a 0%, #4a4a4a 55%);
    color: #fff !important;
    border-color: #6a6a6a;
}

#settings .modal-body .clan_file_picker i {
    font-size: 18px;
    color: #ffae6b;
    flex-shrink: 0;
}

#settings .modal-body .clan_file_picker_text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#settings .modal-body .clan_file_picker.has_file {
    border-style: solid;
    border-color: #ffae6b;
    color: #fff !important;
}

/* === Тосты модуля кланов в стиле шаблона solution (.result_danger / .result_uspeshno) === */
#clans_toast_box {
    position: fixed;
    top: 16px;
    right: 18px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

#clans_toast_box .clans_toast {
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    min-width: 260px;
    max-width: 380px;
}

#clans_toast_box .clans_toast.clans_toast_in {
    transform: translateX(0);
    opacity: 1;
}

#clans_toast_box .clans_toast.clans_toast_out {
    transform: translateX(120%);
    opacity: 0;
}

/* === Сайдбар на всех страницах кланов — скрываем топ-игроков и топ-донатеров === */
.clans_sidebar .block_t_u {
    display: none !important;
}

/* === На мобилке отключаем ВСЕ кастомные оформления страниц кланов === */
@media (max-width: 768px) {
    /* Обёртка .block — без отступов, фона, скруглений */
    .clan_block_wrap {
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }

    /* Карточка клана: убираем фоновую картинку back_user.png и оверлей */
    .clan_list_item {
        background: linear-gradient(1deg, #222222 30%, #2d2d2d 100%) !important;
        border-radius: 14px !important;
        padding: 14px !important;
    }
    .clan_list_item::before {
        display: none !important;
    }
    .clan_list_item.clickable_clan:hover {
        filter: none !important;
        transform: none !important;
    }

    /* На мобилке клик по всему блоку выключаем — пусть работает только клик по имени */
    .clan_list_item.clickable_clan {
        cursor: default !important;
    }

    /* Блок управления кланом — без декора */
    .clans.more .block_solution,
    .clans.more .manage_clan_panel,
    .clans.more .block_clan_index {
        background: linear-gradient(1deg, #222222 30%, #2d2d2d 100%) !important;
        box-shadow: none !important;
    }

    /* Кнопка "Назад к списку кланов" — компактнее */
    .clan_top_back .manage_back_btn {
        width: 100%;
        height: 38px;
    }
}

/* Скрываем промо-карточки сайдбара на мобильных в модуле кланов */
@media (max-width: 768px) {
    .clans_sidebar .block_open_cases,
    .clans_sidebar #activity-rewards-banner {
        display: none !important;
    }
}

/* === Магазин клана === */
.clan_shop_card {
    background: linear-gradient(1deg, #222222 30%, #2d2d2d 100%);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: 0.2s;
    height: 100%;
}

.clan_shop_card:hover {
    transform: translateY(-2px);
}

.clan_shop_card .bg {
    width: 100%;
    height: 160px;
    border-radius: 14px;
    background: #1a1a1a center/cover no-repeat;
    border: 1px solid #333;
}

.clan_shop_info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.clan_shop_name {
    font-size: 14px;
    font-weight: 700;
    color: #e0e0e0;
    line-height: 1.3;
}

.clan_shop_price {
    font-size: 12px;
    font-weight: 700;
    color: #ffae6b;
}

.clan_shop_buy {
    width: 100%;
    height: 42px;
    border-radius: 11px;
    border: none;
    background: radial-gradient(100% 100% at 50% 0, #ffae6b 0, #956238 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    text-shadow: #00000054 1px 0 10px;
}

.clan_shop_buy:hover {
    opacity: 0.85;
}

@media (max-width: 992px) {
	.clan_list_item {
		flex-direction: column;
		gap: 13px;
	}

	.users_clan_m {
    width: fit-content;
    background: #474747;
    padding: 4px 10px 4px 5px;
    font-size: 9.4px;
    border: solid 1px #555555;
    color: #9b9b9b;
    font-weight: 600;
    border-radius: 50px;
	text-align: center;
    }

.flex_buttons_clan {
	display: flex;
	gap: 5px;
	justify-content: space-around;
	flex-wrap: wrap;
}

    .left_clan {
        display: flex;
        gap: 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    .block_clan_index {
        height: 472px;
    }

    .status_clan {
        gap: 10px;
    }

    .player_block_clans {
        display: flex;
        height: fit-content;
        gap: 15px;
        padding: 23px 23px;
        border-radius: 13px;
        flex-direction: column;
        align-items: flex-start;
    }

	.clan_roles_item {
		flex-direction: column;
		align-items: start;
	}

	.manage_clan_buttons {
		grid-template-columns: repeat(2, 1fr);
	}

	#settings .modal-body .input-group {
		flex-direction: column;
		gap: 6px;
	}

	#settings .modal-body .input-group .input-group-btn .btn {
		width: 100%;
	}

	.clan_shop_card .bg {
		height: 300px;
	}
}
